UNPKG

plotly.js

Version:

The open source javascript graphing library that powers plotly

1,983 lines • 1.75 MB
/**
* plotly.js (gl3d - minified) v4.1.1
* Copyright 2012-2026, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
(
 function(root, factory) {
  if (typeof module === "object" && module.exports) {
   module.exports = factory();
  } else {
   root.moduleName = factory();
  }
} (typeof self !== "undefined" ? self : this, () => {
"use strict";var Plotly=(()=>{var EY=Object.create;var nf=Object.defineProperty,LY=Object.defineProperties,DY=Object.getOwnPropertyDescriptor,RY=Object.getOwnPropertyDescriptors,FY=Object.getOwnPropertyNames,x_=Object.getOwnPropertySymbols,PY=Object.getPrototypeOf,w_=Object.prototype.hasOwnProperty,IY=Object.prototype.propertyIsEnumerable;var __=(e,r,t)=>r in e?nf(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,xt=(e,r)=>{for(var t in r||(r={}))w_.call(r,t)&&__(e,t,r[t]);if(x_)for(var t of x_(r))IY.call(r,t)&&__(e,t,r[t]);return e},qt=(e,r)=>LY(e,RY(r));var af=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(n){throw t=[n],n}};var xe=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},of=(e,r)=>{for(var t in r)nf(e,t,{get:r[t],enumerable:!0})},M_=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of FY(r))!w_.call(e,a)&&a!==t&&nf(e,a,{get:()=>r[a],enumerable:!(n=DY(r,a))||n.enumerable});return e};var Gp=(e,r,t)=>(t=e!=null?EY(PY(e)):{},M_(r||!e||!e.__esModule?nf(t,"default",{value:e,enumerable:!0}):t,e)),Kn=e=>M_(nf({},"__esModule",{value:!0}),e);var lf=xe(T_=>{"use strict";T_.version="4.1.1"});var k_=xe((A_,Nv)=>{(function(r,t,n){t[r]=t[r]||n(),typeof Nv!="undefined"&&Nv.exports&&(Nv.exports=t[r])})("Promise",typeof window!="undefined"?window:A_,function(){"use strict";var r,t,n,a=Object.prototype.toString,o=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(k,S,b,T){return Object.defineProperty(k,S,{value:b,writable:!0,configurable:T!==!1})}}catch(m){r=function(S,b,T){return S[b]=T,S}}n=(function(){var k,S,b;function T(h,_){this.fn=h,this.self=_,this.next=void 0}return{add:function(_,y){b=new T(_,y),S?S.next=b:k=b,S=b,b=void 0},drain:function(){var _=k;for(k=S=t=void 0;_;)_.fn.call(_.self),_=_.next}}})();function i(m,k){n.add(m,k),t||(t=o(n.drain))}function l(m){var k,S=typeof m;return m!=null&&(S=="object"||S=="function")&&(k=m.then),typeof k=="function"?k:!1}function u(){for(var m=0;m<this.chain.length;m++)s(this,this.state===1?this.chain[m].success:this.chain[m].failure,this.chain[m]);this.chain.length=0}function s(m,k,S){var b,T;try{k===!1?S.reject(m.msg):(k===!0?b=m.msg:b=k.call(void 0,m.msg),b===S.promise?S.reject(TypeError("Promise-chain cycle")):(T=l(b))?T.call(b,S.resolve,S.reject):S.resolve(b))}catch(h){S.reject(h)}}function f(m){var k,S=this;if(!S.triggered){S.triggered=!0,S.def&&(S=S.def);try{(k=l(m))?i(function(){var b=new x(S);try{k.call(m,function(){f.apply(b,arguments)},function(){c.apply(b,arguments)})}catch(T){c.call(b,T)}}):(S.msg=m,S.state=1,S.chain.length>0&&i(u,S))}catch(b){c.call(new x(S),b)}}}function c(m){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=m,k.state=2,k.chain.length>0&&i(u,k))}function p(m,k,S,b){for(var T=0;T<k.length;T++)(function(_){m.resolve(k[_]).then(function(v){S(_,v)},b)})(T)}function x(m){this.def=m,this.triggered=!1}function g(m){this.promise=m,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function w(m){if(typeof m!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var k=new g(this);this.then=function(b,T){var h={success:typeof b=="function"?b:!0,failure:typeof T=="function"?T:!1};return h.promise=new this.constructor(function(y,v){if(typeof y!="function"||typeof v!="function")throw TypeError("Not a function");h.resolve=y,h.reject=v}),k.chain.push(h),k.state!==0&&i(u,k),h.promise},this.catch=function(b){return this.then(void 0,b)};try{m.call(void 0,function(b){f.call(k,b)},function(b){c.call(k,b)})}catch(S){c.call(k,S)}}var M=r({},"constructor",w,!1);return w.prototype=M,r(M,"__NPO__",0,!1),r(w,"resolve",function(k){var S=this;return k&&typeof k=="object"&&k.__NPO__===1?k:new S(function(T,h){if(typeof T!="function"||typeof h!="function")throw TypeError("Not a function");T(k)})}),r(w,"reject",function(k){return new this(function(b,T){if(typeof b!="function"||typeof T!="function")throw TypeError("Not a function");T(k)})}),r(w,"all",function(k){var S=this;return a.call(k)!="[object Array]"?S.reject(TypeError("Not an array")):k.length===0?S.resolve([]):new S(function(T,h){if(typeof T!="function"||typeof h!="function")throw TypeError("Not a function");var _=k.length,y=Array(_),v=0;p(S,k,function(d,D){y[d]=D,++v===_&&T(y)},h)})}),r(w,"race",function(k){var S=this;return a.call(k)!="[object Array]"?S.reject(TypeError("Not an array")):new S(function(T,h){if(typeof T!="function"||typeof h!="function")throw TypeError("Not a function");p(S,k,function(y,v){T(v)},h)})}),w})});var nt=xe((M3e,qv)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(C){return r.call(C)},n=self.document;function a(C){return C&&(C.ownerDocument||C.document||C).documentElement}function o(C){return C&&(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(C){t=function(N){for(var U=N.length,H=new Array(U);U--;)H[U]=N[U];return H}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(C){var i=this.Element.prototype,l=i.setAttribute,u=i.setAttributeNS,s=this.CSSStyleDeclaration.prototype,f=s.setProperty;i.setAttribute=function(N,U){l.call(this,N,U+"")},i.setAttributeNS=function(N,U,H){u.call(this,N,U,H+"")},s.setProperty=function(N,U,H){f.call(this,N,U+"",H)}}e.ascending=c;function c(C,N){return C<N?-1:C>N?1:C>=N?0:NaN}e.descending=function(C,N){return N<C?-1:N>C?1:N>=C?0:NaN},e.min=function(C,N){var U=-1,H=C.length,X,W;if(arguments.length===1){for(;++U<H;)if((W=C[U])!=null&&W>=W){X=W;break}for(;++U<H;)(W=C[U])!=null&&X>W&&(X=W)}else{for(;++U<H;)if((W=N.call(C,C[U],U))!=null&&W>=W){X=W;break}for(;++U<H;)(W=N.call(C,C[U],U))!=null&&X>W&&(X=W)}return X},e.max=function(C,N){var U=-1,H=C.length,X,W;if(arguments.length===1){for(;++U<H;)if((W=C[U])!=null&&W>=W){X=W;break}for(;++U<H;)(W=C[U])!=null&&W>X&&(X=W)}else{for(;++U<H;)if((W=N.call(C,C[U],U))!=null&&W>=W){X=W;break}for(;++U<H;)(W=N.call(C,C[U],U))!=null&&W>X&&(X=W)}return X},e.extent=function(C,N){var U=-1,H=C.length,X,W,se;if(arguments.length===1){for(;++U<H;)if((W=C[U])!=null&&W>=W){X=se=W;break}for(;++U<H;)(W=C[U])!=null&&(X>W&&(X=W),se<W&&(se=W))}else{for(;++U<H;)if((W=N.call(C,C[U],U))!=null&&W>=W){X=se=W;break}for(;++U<H;)(W=N.call(C,C[U],U))!=null&&(X>W&&(X=W),se<W&&(se=W))}return[X,se]};function p(C){return C===null?NaN:+C}function x(C){return!isNaN(C)}e.sum=function(C,N){var U=0,H=C.length,X,W=-1;if(arguments.length===1)for(;++W<H;)x(X=+C[W])&&(U+=X);else for(;++W<H;)x(X=+N.call(C,C[W],W))&&(U+=X);return U},e.mean=function(C,N){var U=0,H=C.length,X,W=-1,se=H;if(arguments.length===1)for(;++W<H;)x(X=p(C[W]))?U+=X:--se;else for(;++W<H;)x(X=p(N.call(C,C[W],W)))?U+=X:--se;if(se)return U/se},e.quantile=function(C,N){var U=(C.length-1)*N+1,H=Math.floor(U),X=+C[H-1],W=U-H;return W?X+W*(C[H]-X):X},e.median=function(C,N){var U=[],H=C.length,X,W=-1;if(arguments.length===1)for(;++W<H;)x(X=p(C[W]))&&U.push(X);else for(;++W<H;)x(X=p(N.call(C,C[W],W)))&&U.push(X);if(U.length)return e.quantile(U.sort(c),.5)},e.variance=function(C,N){var U=C.length,H=0,X,W,se=0,ne=-1,fe=0;if(arguments.length===1)for(;++ne<U;)x(X=p(C[ne]))&&(W=X-H,H+=W/++fe,se+=W*(X-H));else for(;++ne<U;)x(X=p(N.call(C,C[ne],ne)))&&(W=X-H,H+=W/++fe,se+=W*(X-H));if(fe>1)return se/(fe-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function g(C){return{left:function(N,U,H,X){for(arguments.length<3&&(H=0),arguments.length<4&&(X=N.length);H<X;){var W=H+X>>>1;C(N[W],U)<0?H=W+1:X=W}return H},right:function(N,U,H,X){for(arguments.length<3&&(H=0),arguments.length<4&&(X=N.length);H<X;){var W=H+X>>>1;C(N[W],U)>0?X=W:H=W+1}return H}}}var w=g(c);e.bisectLeft=w.left,e.bisect=e.bisectRight=w.right,e.bisector=function(C){return g(C.length===1?function(N,U){return c(C(N),U)}:C)},e.shuffle=function(C,N,U){(H=arguments.length)<3&&(U=C.length,H<2&&(N=0));for(var H=U-N,X,W;H;)W=Math.random()*H--|0,X=C[H+N],C[H+N]=C[W+N],C[W+N]=X;return C},e.permute=function(C,N){for(var U=N.length,H=new Array(U);U--;)H[U]=C[N[U]];return H},e.pairs=function(C){for(var N=0,U=C.length-1,H,X=C[0],W=new Array(U<0?0:U);N<U;)W[N]=[H=X,X=C[++N]];return W},e.transpose=function(C){if(!(W=C.length))return[];for(var N=-1,U=e.min(C,M),H=new Array(U);++N<U;)for(var X=-1,W,se=H[N]=new Array(W);++X<W;)se[X]=C[X][N];return H};function M(C){return C.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(C){var N=[];for(var U in C)N.push(U);return N},e.values=function(C){var N=[];for(var U in C)N.push(C[U]);return N},e.entries=function(C){var N=[];for(var U in C)N.push({key:U,value:C[U]});return N},e.merge=function(C){for(var N=C.length,U,H=-1,X=0,W,se;++H<N;)X+=C[H].length;for(W=new Array(X);--N>=0;)for(se=C[N],U=se.length;--U>=0;)W[--X]=se[U];return W};var m=Math.abs;e.range=function(C,N,U){if(arguments.length<3&&(U=1,arguments.length<2&&(N=C,C=0)),(N-C)/U===1/0)throw new Error("infinite range");var H=[],X=k(m(U)),W=-1,se;if(C*=X,N*=X,U*=X,U<0)for(;(se=C+U*++W)>N;)H.push(se/X);else for(;(se=C+U*++W)<N;)H.push(se/X);return H};function k(C){for(var N=1;C*N%1;)N*=10;return N}function S(C,N){for(var U in N)Object.defineProperty(C.prototype,U,{value:N[U],enumerable:!1})}e.map=function(C,N){var U=new b;if(C instanceof b)C.forEach(function(ne,fe){U.set(ne,fe)});else if(Array.isArray(C)){var H=-1,X=C.length,W;if(arguments.length===1)for(;++H<X;)U.set(H,C[H]);else for(;++H<X;)U.set(N.call(C,W=C[H],H),W)}else for(var se in C)U.set(se,C[se]);return U};function b(){this._=Object.create(null)}var T="__proto__",h="\0";S(b,{has:v,get:function(C){return this._[_(C)]},set:function(C,N){return this._[_(C)]=N},remove:A,keys:d,values:function(){var C=[];for(var N in this._)C.push(this._[N]);return C},entries:function(){var C=[];for(var N in this._)C.push({key:y(N),value:this._[N]});return C},size:D,empty:E,forEach:function(C){for(var N in this._)C.call(this,y(N),this._[N])}});function _(C){return(C+="")===T||C[0]===h?h+C:C}function y(C){return(C+="")[0]===h?C.slice(1):C}function v(C){return _(C)in this._}function A(C){return(C=_(C))in this._&&delete this._[C]}function d(){var C=[];for(var N in this._)C.push(y(N));return C}function D(){var C=0;for(var N in this._)++C;return C}function E(){for(var C in this._)return!1;return!0}e.nest=function(){var C={},N=[],U=[],H,X;function W(ne,fe,we){if(we>=N.length)return X?X.call(C,fe):H?fe.sort(H):fe;for(var Me=-1,De=fe.length,Re=N[we++],Ge,Je,Ie,Ne=new b,Ue;++Me<De;)(Ue=Ne.get(Ge=Re(Je=fe[Me])))?Ue.push(Je):Ne.set(Ge,[Je]);return ne?(Je=ne(),Ie=function(Ze,$e){Je.set(Ze,W(ne,$e,we))}):(Je={},Ie=function(Ze,$e){Je[Ze]=W(ne,$e,we)}),Ne.forEach(Ie),Je}function se(ne,fe){if(fe>=N.length)return ne;var we=[],Me=U[fe++];return ne.forEach(function(De,Re){we.push({key:De,values:se(Re,fe)})}),Me?we.sort(function(De,Re){return Me(De.key,Re.key)}):we}return C.map=function(ne,fe){return W(fe,ne,0)},C.entries=function(ne){return se(W(e.map,ne,0),0)},C.key=function(ne){return N.push(ne),C},C.sortKeys=function(ne){return U[N.length-1]=ne,C},C.sortValues=function(ne){return H=ne,C},C.rollup=function(ne){return X=ne,C},C},e.set=function(C){var N=new R;if(C)for(var U=0,H=C.length;U<H;++U)N.add(C[U]);return N};function R(){this._=Object.create(null)}S(R,{has:v,add:function(C){return this._[_(C+="")]=!0,C},remove:A,values:d,size:D,empty:E,forEach:function(C){for(var N in this._)C.call(this,y(N))}}),e.behavior={};function z(C){return C}e.rebind=function(C,N){for(var U=1,H=arguments.length,X;++U<H;)C[X=arguments[U]]=I(C,N,N[X]);return C};function I(C,N,U){return function(){var H=U.apply(N,arguments);return H===N?C:H}}function P(C,N){if(N in C)return N;N=N.charAt(0).toUpperCase()+N.slice(1);for(var U=0,H=L.length;U<H;++U){var X=L[U]+N;if(X in C)return X}}var L=["webkit","ms","moz","Moz","o","O"];function F(){}e.dispatch=function(){for(var C=new B,N=-1,U=arguments.length;++N<U;)C[arguments[N]]=O(C);return C};function B(){}B.prototype.on=function(C,N){var U=C.indexOf("."),H="";if(U>=0&&(H=C.slice(U+1),C=C.slice(0,U)),C)return arguments.length<2?this[C].on(H):this[C].on(H,N);if(arguments.length===2){if(N==null)for(C in this)this.hasOwnProperty(C)&&this[C].on(H,null);return this}};function O(C){var N=[],U=new b;function H(){for(var X=N,W=-1,se=X.length,ne;++W<se;)(ne=X[W].on)&&ne.apply(this,arguments);return C}return H.on=function(X,W){var se=U.get(X),ne;return arguments.length<2?se&&se.on:(se&&(se.on=null,N=N.slice(0,ne=N.indexOf(se)).concat(N.slice(ne+1)),U.remove(X)),W&&N.push(U.set(X,{on:W})),C)},H}e.event=null;function V(){e.event.preventDefault()}function K(){for(var C=e.event,N;N=C.sourceEvent;)C=N;return C}function j(C){for(var N=new B,U=0,H=arguments.length;++U<H;)N[arguments[U]]=O(N);return N.of=function(X,W){return function(se){try{var ne=se.sourceEvent=e.event;se.target=C,e.event=se,N[se.type].apply(X,W)}finally{e.event=ne}}},N}e.requote=function(C){return C.replace(G,"\\$&")};var G=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,q={}.__proto__?function(C,N){C.__proto__=N}:function(C,N){for(var U in N)C[U]=N[U]};function J(C){return q(C,Q),C}var te=function(C,N){return N.querySelector(C)},Z=function(C,N){return N.querySelectorAll(C)},ie=function(C,N){var U=C.matches||C[P(C,"matchesSelector")];return ie=function(H,X){return U.call(H,X)},ie(C,N)};typeof Sizzle=="function"&&(te=function(C,N){return Sizzle(C,N)[0]||null},Z=Sizzle,ie=Sizzle.matchesSelector),e.selection=function(){return e.select(n.documentElement)};var Q=e.selection.prototype=[];Q.select=function(C){var N=[],U,H,X,W;C=re(C);for(var se=-1,ne=this.length;++se<ne;){N.push(U=[]),U.parentNode=(X=this[se]).parentNode;for(var fe=-1,we=X.length;++fe<we;)(W=X[fe])?(U.push(H=C.call(W,W.__data__,fe,se)),H&&"__data__"in W&&(H.__data__=W.__data__)):U.push(null)}return J(N)};function re(C){return typeof C=="function"?C:function(){return te(C,this)}}Q.selectAll=function(C){var N=[],U,H;C=ue(C);for(var X=-1,W=this.length;++X<W;)for(var se=this[X],ne=-1,fe=se.length;++ne<fe;)(H=se[ne])&&(N.push(U=t(C.call(H,H.__data__,ne,X))),U.parentNode=H);return J(N)};function ue(C){return typeof C=="function"?C:function(){return Z(C,this)}}var ee="http://www.w3.org/1999/xhtml",ae={svg:"http://www.w3.org/2000/svg",xhtml:ee,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};e.ns={prefix:ae,qualify:function(C){var N=C.indexOf(":"),U=C;return N>=0&&(U=C.slice(0,N))!=="xmlns"&&(C=C.slice(N+1)),ae.hasOwnProperty(U)?{space:ae[U],local:C}:C}},Q.attr=function(C,N){if(arguments.length<2){if(typeof C=="string"){var U=this.node();return C=e.ns.qualify(C),C.local?U.getAttributeNS(C.space,C.local):U.getAttribute(C)}for(N in C)this.each(ce(N,C[N]));return this}return this.each(ce(C,N))};function ce(C,N){C=e.ns.qualify(C);function U(){this.removeAttribute(C)}function H(){this.removeAttributeNS(C.space,C.local)}function X(){this.setAttribute(C,N)}function W(){this.setAttributeNS(C.space,C.local,N)}function se(){var fe=N.apply(this,arguments);fe==null?this.removeAttribute(C):this.setAttribute(C,fe)}function ne(){var fe=N.apply(this,arguments);fe==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,fe)}return N==null?C.local?H:U:typeof N=="function"?C.local?ne:se:C.local?W:X}function Te(C){return C.trim().replace(/\s+/g," ")}Q.classed=function(C,N){if(arguments.length<2){if(typeof C=="string"){var U=this.node(),H=(C=Se(C)).length,X=-1;if(N=U.classList){for(;++X<H;)if(!N.contains(C[X]))return!1}else for(N=U.getAttribute("class");++X<H;)if(!ke(C[X]).test(N))return!1;return!0}for(N in C)this.each(ge(N,C[N]));return this}return this.each(ge(C,N))};function ke(C){return new RegExp("(?:^|\\s+)"+e.requote(C)+"(?:\\s+|$)","g")}function Se(C){return(C+"").trim().split(/^|\s+/)}function ge(C,N){C=Se(C).map(Le);var U=C.length;function H(){for(var W=-1;++W<U;)C[W](this,N)}function X(){for(var W=-1,se=N.apply(this,arguments);++W<U;)C[W](this,se)}return typeof N=="function"?X:H}function Le(C){var N=ke(C);return function(U,H){if(X=U.classList)return H?X.add(C):X.remove(C);var X=U.getAttribute("class")||"";H?(N.lastIndex=0,N.test(X)||U.setAttribute("class",Te(X+" "+C))):U.setAttribute("class",Te(X.replace(N," ")))}}Q.style=function(C,N,U){var H=arguments.length;if(H<3){if(typeof C!="string"){H<2&&(N="");for(U in C)this.each(Ce(U,C[U],N));return this}if(H<2){var X=this.node();return o(X).getComputedStyle(X,null).getPropertyValue(C)}U=""}return this.each(Ce(C,N,U))};function Ce(C,N,U){function H(){this.style.removeProperty(C)}function X(){this.style.setProperty(C,N,U)}function W(){var se=N.apply(this,arguments);se==null?this.style.removeProperty(C):this.style.setProperty(C,se,U)}return N==null?H:typeof N=="function"?W:X}Q.property=function(C,N){if(arguments.length<2){if(typeof C=="string")return this.node()[C];for(N in C)this.each(le(N,C[N]));return this}return this.each(le(C,N))};function le(C,N){function U(){delete this[C]}function H(){this[C]=N}function X(){var W=N.apply(this,arguments);W==null?delete this[C]:this[C]=W}return N==null?U:typeof N=="function"?X:H}Q.text=function(C){return arguments.length?this.each(typeof C=="function"?function(){var N=C.apply(this,arguments);this.textContent=N==null?"":N}:C==null?function(){this.textContent=""}:function(){this.textContent=C}):this.node().textContent},Q.html=function(C){return arguments.length?this.each(typeof C=="function"?function(){var N=C.apply(this,arguments);this.innerHTML=N==null?"":N}:C==null?function(){this.innerHTML=""}:function(){this.innerHTML=C}):this.node().innerHTML},Q.append=function(C){return C=Y(C),this.select(function(){return this.appendChild(C.apply(this,arguments))})};function Y(C){function N(){var H=this.ownerDocument,X=this.namespaceURI;return X===ee&&H.documentElement.namespaceURI===ee?H.createElement(C):H.createElementNS(X,C)}function U(){return this.ownerDocument.createElementNS(C.space,C.local)}return typeof C=="function"?C:(C=e.ns.qualify(C)).local?U:N}Q.insert=function(C,N){return C=Y(C),N=re(N),this.select(function(){return this.insertBefore(C.apply(this,arguments),N.apply(this,arguments)||null)})},Q.remove=function(){return this.each($)};function $(){var C=this.parentNode;C&&C.removeChild(this)}Q.data=function(C,N){var U=-1,H=this.length,X,W;if(!arguments.length){for(C=new Array(H=(X=this[0]).length);++U<H;)(W=X[U])&&(C[U]=W.__data__);return C}function se(Me,De){var Re,Ge=Me.length,Je=De.length,Ie=Math.min(Ge,Je),Ne=new Array(Je),Ue=new Array(Je),Ze=new Array(Ge),$e,He;if(N){var ar=new b,vr=new Array(Ge),pr;for(Re=-1;++Re<Ge;)($e=Me[Re])&&(ar.has(pr=N.call($e,$e.__data__,Re))?Ze[Re]=$e:ar.set(pr,$e),vr[Re]=pr);for(Re=-1;++Re<Je;)($e=ar.get(pr=N.call(De,He=De[Re],Re)))?$e!==!0&&(Ne[Re]=$e,$e.__data__=He):Ue[Re]=pe(He),ar.set(pr,!0);for(Re=-1;++Re<Ge;)Re in vr&&ar.get(vr[Re])!==!0&&(Ze[Re]=Me[Re])}else{for(Re=-1;++Re<Ie;)$e=Me[Re],He=De[Re],$e?($e.__data__=He,Ne[Re]=$e):Ue[Re]=pe(He);for(;Re<Je;++Re)Ue[Re]=pe(De[Re]);for(;Re<Ge;++Re)Ze[Re]=Me[Re]}Ue.update=Ne,Ue.parentNode=Ne.parentNode=Ze.parentNode=Me.parentNode,ne.push(Ue),fe.push(Ne),we.push(Ze)}var ne=me([]),fe=J([]),we=J([]);if(typeof C=="function")for(;++U<H;)se(X=this[U],C.call(X,X.parentNode.__data__,U));else for(;++U<H;)se(X=this[U],C);return fe.enter=function(){return ne},fe.exit=function(){return we},fe};function pe(C){return{__data__:C}}Q.datum=function(C){return arguments.length?this.property("__data__",C):this.property("__data__")},Q.filter=function(C){var N=[],U,H,X;typeof C!="function"&&(C=oe(C));for(var W=0,se=this.length;W<se;W++){N.push(U=[]),U.parentNode=(H=this[W]).parentNode;for(var ne=0,fe=H.length;ne<fe;ne++)(X=H[ne])&&C.call(X,X.__data__,ne,W)&&U.push(X)}return J(N)};function oe(C){return function(){return ie(this,C)}}Q.order=function(){for(var C=-1,N=this.length;++C<N;)for(var U=this[C],H=U.length-1,X=U[H],W;--H>=0;)(W=U[H])&&(X&&X!==W.nextSibling&&X.parentNode.insertBefore(W,X),X=W);return this},Q.sort=function(C){C=ve.apply(this,arguments);for(var N=-1,U=this.length;++N<U;)this[N].sort(C);return this.order()};function ve(C){return arguments.length||(C=c),function(N,U){return N&&U?C(N.__data__,U.__data__):!N-!U}}Q.each=function(C){return he(this,function(N,U,H){C.call(N,N.__data__,U,H)})};function he(C,N){for(var U=0,H=C.length;U<H;U++)for(var X=C[U],W=0,se=X.length,ne;W<se;W++)(ne=X[W])&&N(ne,W,U);return C}Q.call=function(C){var N=t(arguments);return C.apply(N[0]=this,N),this},Q.empty=function(){return!this.node()},Q.node=function(){for(var C=0,N=this.length;C<N;C++)for(var U=this[C],H=0,X=U.length;H<X;H++){var W=U[H];if(W)return W}return null},Q.size=function(){var C=0;return he(this,function(){++C}),C};function me(C){return q(C,be),C}var be=[];e.selection.enter=me,e.selection.enter.prototype=be,be.append=Q.append,be.empty=Q.empty,be.node=Q.node,be.call=Q.call,be.size=Q.size,be.select=function(C){for(var N=[],U,H,X,W,se,ne=-1,fe=this.length;++ne<fe;){X=(W=this[ne]).update,N.push(U=[]),U.parentNode=W.parentNode;for(var we=-1,Me=W.length;++we<Me;)(se=W[we])?(U.push(X[we]=H=C.call(W.parentNode,se.__data__,we,ne)),H.__data__=se.__data__):U.push(null)}return J(N)},be.insert=function(C,N){return arguments.length<2&&(N=ye(this)),Q.insert.call(this,C,N)};function ye(C){var N,U;return function(H,X,W){var se=C[W].update,ne=se.length,fe;for(W!=U&&(U=W,N=0),X>=N&&(N=X+1);!(fe=se[N])&&++N<ne;);return fe}}e.select=function(C){var N;return typeof C=="string"?(N=[te(C,n)],N.parentNode=n.documentElement):(N=[C],N.parentNode=a(C)),J([N])},e.selectAll=function(C){var N;return typeof C=="string"?(N=t(Z(C,n)),N.parentNode=n.documentElement):(N=t(C),N.parentNode=null),J([N])},Q.on=function(C,N,U){var H=arguments.length;if(H<3){if(typeof C!="string"){H<2&&(N=!1);for(U in C)this.each(de(U,C[U],N));return this}if(H<2)return(H=this.node()["__on"+C])&&H._;U=!1}return this.each(de(C,N,U))};function de(C,N,U){var H="__on"+C,X=C.indexOf("."),W=Ae;X>0&&(C=C.slice(0,X));var se=_e.get(C);se&&(C=se,W=Pe);function ne(){var Me=this[H];Me&&(this.removeEventListener(C,Me,Me.$),delete this[H])}function fe(){var Me=W(N,t(arguments));ne.call(this),this.addEventListener(C,this[H]=Me,Me.$=U),Me._=N}function we(){var Me=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),De;for(var Re in this)if(De=Re.match(Me)){var Ge=this[Re];this.removeEventListener(De[1],Ge,Ge.$),delete this[Re]}}return X?N?fe:ne:N?F:we}var _e=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&_e.forEach(function(C){"on"+C in n&&_e.remove(C)});function Ae(C,N){return function(U){var H=e.event;e.event=U,N[0]=this.__data__;try{C.apply(this,N)}finally{e.event=H}}}function Pe(C,N){var U=Ae(C,N);return function(H){var X=this,W=H.relatedTarget;(!W||W!==X&&!(W.compareDocumentPosition(X)&8))&&U.call(X,H)}}var Fe,Ye=0;function qe(C){var N=".dragsuppress-"+ ++Ye,U="click"+N,H=e.select(o(C)).on("touchmove"+N,V).on("dragstart"+N,V).on("selectstart"+N,V);if(Fe==null&&(Fe="onselectstart"in C?!1:P(C.style,"userSelect")),Fe){var X=a(C).style,W=X[Fe];X[Fe]="none"}return function(se){if(H.on(N,null),Fe&&(X[Fe]=W),se){var ne=function(){H.on(U,null)};H.on(U,function(){V(),ne()},!0),setTimeout(ne,0)}}}e.mouse=function(C){return Oe(C,K())};var Be=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Oe(C,N){N.changedTouches&&(N=N.changedTouches[0]);var U=C.ownerSVGElement||C;if(U.createSVGPoint){var H=U.createSVGPoint();if(Be<0){var X=o(C);if(X.scrollX||X.scrollY){U=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var W=U[0][0].getScreenCTM();Be=!(W.f||W.e),U.remove()}}return Be?(H.x=N.pageX,H.y=N.pageY):(H.x=N.clientX,H.y=N.clientY),H=H.matrixTransform(C.getScreenCTM().inverse()),[H.x,H.y]}var se=C.getBoundingClientRect();return[N.clientX-se.left-C.clientLeft,N.clientY-se.top-C.clientTop]}e.touch=function(C,N,U){if(arguments.length<3&&(U=N,N=K().changedTouches),N){for(var H=0,X=N.length,W;H<X;++H)if((W=N[H]).identifier===U)return Oe(C,W)}},e.behavior.drag=function(){var C=j(X,"drag","dragstart","dragend"),N=null,U=W(F,e.mouse,o,"mousemove","mouseup"),H=W(We,e.touch,z,"touchmove","touchend");function X(){this.on("mousedown.drag",U).on("touchstart.drag",H)}function W(se,ne,fe,we,Me){return function(){var De=this,Re=e.event.target.correspondingElement||e.event.target,Ge=De.parentNode,Je=C.of(De,arguments),Ie=0,Ne=se(),Ue=".drag"+(Ne==null?"":"-"+Ne),Ze,$e=e.select(fe(Re)).on(we+Ue,vr).on(Me+Ue,pr),He=qe(Re),ar=ne(Ge,Ne);N?(Ze=N.apply(De,arguments),Ze=[Ze.x-ar[0],Ze.y-ar[1]]):Ze=[0,0],Je({type:"dragstart"});function vr(){var dr=ne(Ge,Ne),mr,br;dr&&(mr=dr[0]-ar[0],br=dr[1]-ar[1],Ie|=mr|br,ar=dr,Je({type:"drag",x:dr[0]+Ze[0],y:dr[1]+Ze[1],dx:mr,dy:br}))}function pr(){ne(Ge,Ne)&&($e.on(we+Ue,null).on(Me+Ue,null),He(Ie),Je({type:"dragend"}))}}}return X.origin=function(se){return arguments.length?(N=se,X):N},e.rebind(X,C,"on")};function We(){return e.event.changedTouches[0].identifier}e.touches=function(C,N){return arguments.length<2&&(N=K().touches),N?t(N).map(function(U){var H=Oe(C,U);return H.identifier=U.identifier,H}):[]};var Xe=1e-6,tr=Xe*Xe,ir=Math.PI,je=2*ir,Ke=je-Xe,Ee=ir/2,ze=ir/180,Qe=180/ir;function er(C){return C>0?1:C<0?-1:0}function wr(C,N,U){return(N[0]-C[0])*(U[1]-C[1])-(N[1]-C[1])*(U[0]-C[0])}function Vr(C){return C>1?0:C<-1?ir:Math.acos(C)}function Mr(C){return C>1?Ee:C<-1?-Ee:Math.asin(C)}function Rr(C){return((C=Math.exp(C))-1/C)/2}function Qr(C){return((C=Math.exp(C))+1/C)/2}function Sr(C){return((C=Math.exp(2*C))-1)/(C+1)}function Wr(C){return(C=Math.sin(C/2))*C}var bt=Math.SQRT2,Jr=2,lt=4;e.interpolateZoom=function(C,N){var U=C[0],H=C[1],X=C[2],W=N[0],se=N[1],ne=N[2],fe=W-U,we=se-H,Me=fe*fe+we*we,De,Re;if(Me<tr)Re=Math.log(ne/X)/bt,De=function(Ze){return[U+Ze*fe,H+Ze*we,X*Math.exp(bt*Ze*Re)]};else{var Ge=Math.sqrt(Me),Je=(ne*ne-X*X+lt*Me)/(2*X*Jr*Ge),Ie=(ne*ne-X*X-lt*Me)/(2*ne*Jr*Ge),Ne=Math.log(Math.sqrt(Je*Je+1)-Je),Ue=Math.log(Math.sqrt(Ie*Ie+1)-Ie);Re=(Ue-Ne)/bt,De=function(Ze){var $e=Ze*Re,He=Qr(Ne),ar=X/(Jr*Ge)*(He*Sr(bt*$e+Ne)-Rr(Ne));return[U+ar*fe,H+ar*we,X*He/Qr(bt*$e+Ne)]}}return De.duration=Re*1e3,De},e.behavior.zoom=function(){var C={x:0,y:0,k:1},N,U,H,X=[960,500],W=Cn,se=250,ne=0,fe="mousedown.zoom",we="mousemove.zoom",Me="mouseup.zoom",De,Re="touchstart.zoom",Ge,Je=j($e,"zoomstart","zoom","zoomend"),Ie,Ne,Ue,Ze;zr||(zr="onwheel"in n?(lr=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in n?(lr=function(){return e.event.wheelDelta},"mousewheel"):(lr=function(){return-e.event.detail},"MozMousePixelScroll"));function $e(fr){fr.on(fe,Dr).on(zr+".zoom",Jt).on("dblclick.zoom",yt).on(Re,ct)}$e.event=function(fr){fr.each(function(){var qr=Je.of(this,arguments),Ur=C;Kl?e.select(this).transition().each("start.zoom",function(){C=this.__chart__||{x:0,y:0,k:1},br(qr)}).tween("zoom:zoom",function(){var vt=X[0],Ht=X[1],sn=U?U[0]:vt/2,Dn=U?U[1]:Ht/2,Jn=e.interpolateZoom([(sn-C.x)/C.k,(Dn-C.y)/C.k,vt/C.k],[(sn-Ur.x)/Ur.k,(Dn-Ur.y)/Ur.k,vt/Ur.k]);return function(la){var $n=Jn(la),pa=vt/$n[2];this.__chart__=C={x:sn-$n[0]*pa,y:Dn-$n[1]*pa,k:pa},Nr(qr)}}).each("interrupt.zoom",function(){_r(qr)}).each("end.zoom",function(){_r(qr)}):(this.__chart__=C,br(qr),Nr(qr),_r(qr))})},$e.translate=function(fr){return arguments.length?(C={x:+fr[0],y:+fr[1],k:C.k},mr(),$e):[C.x,C.y]},$e.scale=function(fr){return arguments.length?(C={x:C.x,y:C.y,k:null},vr(+fr),mr(),$e):C.k},$e.scaleExtent=function(fr){return arguments.length?(W=fr==null?Cn:[+fr[0],+fr[1]],$e):W},$e.center=function(fr){return arguments.length?(H=fr&&[+fr[0],+fr[1]],$e):H},$e.size=function(fr){return arguments.length?(X=fr&&[+fr[0],+fr[1]],$e):X},$e.duration=function(fr){return arguments.length?(se=+fr,$e):se},$e.x=function(fr){return arguments.length?(Ne=fr,Ie=fr.copy(),C={x:0,y:0,k:1},$e):Ne},$e.y=function(fr){return arguments.length?(Ze=fr,Ue=fr.copy(),C={x:0,y:0,k:1},$e):Ze};function He(fr){return[(fr[0]-C.x)/C.k,(fr[1]-C.y)/C.k]}function ar(fr){return[fr[0]*C.k+C.x,fr[1]*C.k+C.y]}function vr(fr){C.k=Math.max(W[0],Math.min(W[1],fr))}function pr(fr,qr){qr=ar(qr),C.x+=fr[0]-qr[0],C.y+=fr[1]-qr[1]}function dr(fr,qr,Ur,vt){fr.__chart__={x:C.x,y:C.y,k:C.k},vr(Math.pow(2,vt)),pr(U=qr,Ur),fr=e.select(fr),se>0&&(fr=fr.transition().duration(se)),fr.call($e.event)}function mr(){Ne&&Ne.domain(Ie.range().map(function(fr){return(fr-C.x)/C.k}).map(Ie.invert)),Ze&&Ze.domain(Ue.range().map(function(fr){return(fr-C.y)/C.k}).map(Ue.invert))}function br(fr){ne++||fr({type:"zoomstart"})}function Nr(fr){mr(),fr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function _r(fr){--ne||(fr({type:"zoomend"}),U=null)}function Dr(){var fr=this,qr=Je.of(fr,arguments),Ur=0,vt=e.select(o(fr)).on(we,Dn).on(Me,Jn),Ht=He(e.mouse(fr)),sn=qe(fr);Fv.call(fr),br(qr);function Dn(){Ur=1,pr(e.mouse(fr),Ht),Nr(qr)}function Jn(){vt.on(we,null).on(Me,null),sn(Ur),_r(qr)}}function ct(){var fr=this,qr=Je.of(fr,arguments),Ur={},vt=0,Ht,sn=".zoom-"+e.event.changedTouches[0].identifier,Dn="touchmove"+sn,Jn="touchend"+sn,la=[],$n=e.select(fr),pa=qe(fr);ga(),br(qr),$n.on(fe,null).on(Re,ga);function zn(){var di=e.touches(fr);return Ht=C.k,di.forEach(function(Rn){Rn.identifier in Ur&&(Ur[Rn.identifier]=He(Rn))}),di}function ga(){var di=e.event.target;e.select(di).on(Dn,Ql).on(Jn,CY),la.push(di);for(var Rn=e.event.changedTouches,Ya=0,Gi=Rn.length;Ya<Gi;++Ya)Ur[Rn[Ya].identifier]=null;var Xa=zn(),d0=Date.now();if(Xa.length===1){if(d0-Ge<500){var jl=Xa[0];dr(fr,jl,Ur[jl.identifier],Math.floor(Math.log(C.k)/Math.LN2)+1),V()}Ge=d0}else if(Xa.length>1){var jl=Xa[0],$o=Xa[1],zv=jl[0]-$o[0],b_=jl[1]-$o[1];vt=zv*zv+b_*b_}}function Ql(){var di=e.touches(fr),Rn,Ya,Gi,Xa;Fv.call(fr);for(var d0=0,jl=di.length;d0<jl;++d0,Xa=null)if(Gi=di[d0],Xa=Ur[Gi.identifier]){if(Ya)break;Rn=Gi,Ya=Xa}if(Xa){var $o=($o=Gi[0]-Rn[0])*$o+($o=Gi[1]-Rn[1])*$o,zv=vt&&Math.sqrt($o/vt);Rn=[(Rn[0]+Gi[0])/2,(Rn[1]+Gi[1])/2],Ya=[(Ya[0]+Xa[0])/2,(Ya[1]+Xa[1])/2],vr(zv*Ht)}Ge=null,pr(Rn,Ya),Nr(qr)}function CY(){if(e.event.touches.length){for(var di=e.event.changedTouches,Rn=0,Ya=di.length;Rn<Ya;++Rn)delete Ur[di[Rn].identifier];for(var Gi in Ur)return void zn()}e.selectAll(la).on(sn,null),$n.on(fe,Dr).on(Re,ct),pa(),_r(qr)}}function Jt(){var fr=Je.of(this,arguments);De?clearTimeout(De):(Fv.call(this),N=He(U=H||e.mouse(this)),br(fr)),De=setTimeout(function(){De=null,_r(fr)},50),V(),vr(Math.pow(2,lr()*.002)*C.k),pr(U,N),Nr(fr)}function yt(){var fr=e.mouse(this),qr=Math.log(C.k)/Math.LN2;dr(this,fr,He(fr),e.event.shiftKey?Math.ceil(qr)-1:Math.floor(qr)+1)}return e.rebind($e,Je,"on")};var Cn=[0,1/0],lr,zr;e.color=rt;function rt(){}rt.prototype.toString=function(){return this.rgb()+""},e.hsl=Or;function Or(C,N,U){return this instanceof Or?(this.h=+C,this.s=+N,void(this.l=+U)):arguments.length<2?C instanceof Or?new Or(C.h,C.s,C.l):pv(""+C,gv,Or):new Or(C,N,U)}var Gr=Or.prototype=new rt;Gr.brighter=function(C){return C=Math.pow(.7,arguments.length?C:1),new Or(this.h,this.s,this.l/C)},Gr.darker=function(C){return C=Math.pow(.7,arguments.length?C:1),new Or(this.h,this.s,C*this.l)},Gr.rgb=function(){return pt(this.h,this.s,this.l)};function pt(C,N,U){var H,X;C=isNaN(C)?0:(C%=360)<0?C+360:C,N=isNaN(N)||N<0?0:N>1?1:N,U=U<0?0:U>1?1:U,X=U<=.5?U*(1+N):U+N-U*N,H=2*U-X;function W(ne){return ne>360?ne-=360:ne<0&&(ne+=360),ne<60?H+(X-H)*ne/60:ne<180?X:ne<240?H+(X-H)*(240-ne)/60:H}function se(ne){return Math.round(W(ne)*255)}return new dn(se(C+120),se(C),se(C-120))}e.hcl=at;function at(C,N,U){return this instanceof at?(this.h=+C,this.c=+N,void(this.l=+U)):arguments.length<2?C instanceof at?new at(C.h,C.c,C.l):C instanceof St?Oi(C.l,C.a,C.b):Oi((C=yv((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new at(C,N,U)}var Ct=at.prototype=new rt;Ct.brighter=function(C){return new at(this.h,this.c,Math.min(100,this.l+gt*(arguments.length?C:1)))},Ct.darker=function(C){return new at(this.h,this.c,Math.max(0,this.l-gt*(arguments.length?C:1)))},Ct.rgb=function(){return Zt(this.h,this.c,this.l).rgb()};function Zt(C,N,U){return isNaN(C)&&(C=0),isNaN(N)&&(N=0),new St(U,Math.cos(C*=ze)*N,Math.sin(C)*N)}e.lab=St;function St(C,N,U){return this instanceof St?(this.l=+C,this.a=+N,void(this.b=+U)):arguments.length<2?C instanceof St?new St(C.l,C.a,C.b):C instanceof at?Zt(C.h,C.c,C.l):yv((C=dn(C)).r,C.g,C.b):new St(C,N,U)}var gt=18,Et=.95047,Lt=1,da=1.08883,Wn=St.prototype=new rt;Wn.brighter=function(C){return new St(Math.min(100,this.l+gt*(arguments.length?C:1)),this.a,this.b)},Wn.darker=function(C){return new St(Math.max(0,this.l-gt*(arguments.length?C:1)),this.a,this.b)},Wn.rgb=function(){return Ha(this.l,this.a,this.b)};function Ha(C,N,U){var H=(C+16)/116,X=H+N/500,W=H-U/200;return X=xo(X)*Et,H=xo(H)*Lt,W=xo(W)*da,new dn(wo(3.2404542*X-1.5371385*H-.4985314*W),wo(-.969266*X+1.8760108*H+.041556*W),wo(.0556434*X-.2040259*H+1.0572252*W))}function Oi(C,N,U){return C>0?new at(Math.atan2(U,N)*Qe,Math.sqrt(N*N+U*U),C):new at(NaN,NaN,C)}function xo(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function _o(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function wo(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=dn;function dn(C,N,U){return this instanceof dn?(this.r=~~C,this.g=~~N,void(this.b=~~U)):arguments.length<2?C instanceof dn?new dn(C.r,C.g,C.b):pv(""+C,dn,pt):new dn(C,N,U)}function Wo(C){return new dn(C>>16,C>>8&255,C&255)}function Ui(C){return Wo(C)+""}var Hi=dn.prototype=new rt;Hi.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var N=this.r,U=this.g,H=this.b,X=30;return!N&&!U&&!H?new dn(X,X,X):(N&&N<X&&(N=X),U&&U<X&&(U=X),H&&H<X&&(H=X),new dn(Math.min(255,N/C),Math.min(255,U/C),Math.min(255,H/C)))},Hi.darker=function(C){return C=Math.pow(.7,arguments.length?C:1),new dn(C*this.r,C*this.g,C*this.b)},Hi.hsl=function(){return gv(this.r,this.g,this.b)},Hi.toString=function(){return"#"+Zo(this.r)+Zo(this.g)+Zo(this.b)};function Zo(C){return C<16?"0"+Math.max(0,C).toString(16):Math.min(255,C).toString(16)}function pv(C,N,U){var H=0,X=0,W=0,se,ne,fe;if(se=/([a-z]+)\((.*)\)/.exec(C=C.toLowerCase()),se)switch(ne=se[2].split(","),se[1]){case"hsl":return U(parseFloat(ne[0]),parseFloat(ne[1])/100,parseFloat(ne[2])/100);case"rgb":return N(Wu(ne[0]),Wu(ne[1]),Wu(ne[2]))}return(fe=Ar.get(C))?N(fe.r,fe.g,fe.b):(C!=null&&C.charAt(0)==="#"&&!isNaN(fe=parseInt(C.slice(1),16))&&(C.length===4?(H=(fe&3840)>>4,H=H>>4|H,X=fe&240,X=X>>4|X,W=fe&15,W=W<<4|W):C.length===7&&(H=(fe&16711680)>>16,X=(fe&65280)>>8,W=fe&255)),N(H,X,W))}function gv(C,N,U){var H=Math.min(C/=255,N/=255,U/=255),X=Math.max(C,N,U),W=X-H,se,ne,fe=(X+H)/2;return W?(ne=fe<.5?W/(X+H):W/(2-X-H),C==X?se=(N-U)/W+(N<U?6:0):N==X?se=(U-C)/W+2:se=(C-N)/W+4,se*=60):(se=NaN,ne=fe>0&&fe<1?0:se),new Or(se,ne,fe)}function yv(C,N,U){C=Xu(C),N=Xu(N),U=Xu(U);var H=_o((.4124564*C+.3575761*N+.1804375*U)/Et),X=_o((.2126729*C+.7151522*N+.072175*U)/Lt),W=_o((.0193339*C+.119192*N+.9503041*U)/da);return St(116*X-16,500*(H-X),200*(X-W))}function Xu(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function Wu(C){var N=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(N*2.55):N}var Ar=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Ar.forEach(function(C,N){Ar.set(C,Wo(N))});function Tr(C){return typeof C=="function"?C:function(){return C}}e.functor=Tr,e.xhr=ht(z);function ht(C){return function(N,U,H){return arguments.length===2&&typeof U=="function"&&(H=U,U=null),hr(N,U,C,H)}}function hr(C,N,U,H){var X={},W=e.dispatch("beforesend","progress","load","error"),se={},ne=new XMLHttpRequest,fe=null;self.XDomainRequest&&!("withCredentials"in ne)&&/^(http(s)?:)?\/\//.test(C)&&(ne=new XDomainRequest),"onload"in ne?ne.onload=ne.onerror=we:ne.onreadystatechange=function(){ne.readyState>3&&we()};function we(){var Me=ne.status,De;if(!Me&&Dt(ne)||Me>=200&&Me<300||Me===304){try{De=U.call(X,ne)}catch(Re){W.error.call(X,Re);return}W.load.call(X,De)}else W.error.call(X,ne)}return ne.onprogress=function(Me){var De=e.event;e.event=Me;try{W.progress.call(X,ne)}finally{e.event=De}},X.header=function(Me,De){return Me=(Me+"").toLowerCase(),arguments.length<2?se[Me]:(De==null?delete se[Me]:se[Me]=De+"",X)},X.mimeType=function(Me){return arguments.length?(N=Me==null?null:Me+"",X):N},X.responseType=function(Me){return arguments.length?(fe=Me,X):fe},X.response=function(Me){return U=Me,X},["get","post"].forEach(function(Me){X[Me]=function(){return X.send.apply(X,[Me].concat(t(arguments)))}}),X.send=function(Me,De,Re){if(arguments.length===2&&typeof De=="function"&&(Re=De,De=null),ne.open(Me,C,!0),N!=null&&!("accept"in se)&&(se.accept=N+",*/*"),ne.setRequestHeader)for(var Ge in se)ne.setRequestHeader(Ge,se[Ge]);return N!=null&&ne.overrideMimeType&&ne.overrideMimeType(N),fe!=null&&(ne.responseType=fe),Re!=null&&X.on("error",Re).on("load",function(Je){Re(null,Je)}),W.beforesend.call(X,ne),ne.send(De==null?null:De),X},X.abort=function(){return ne.abort(),X},e.rebind(X,W,"on"),H==null?X:X.get(Zn(H))}function Zn(C){return C.length===1?function(N,U){C(N==null?U:null)}:C}function Dt(C){var N=C.responseType;return N&&N!=="text"?C.response:C.responseText}e.dsv=function(C,N){var U=new RegExp('["'+C+`
]`),H=C.charCodeAt(0);function X(we,Me,De){arguments.length<3&&(De=Me,Me=null);var Re=hr(we,N,Me==null?W:se(Me),De);return Re.row=function(Ge){return arguments.length?Re.response((Me=Ge)==null?W:se(Ge)):Me},Re}function W(we){return X.parse(we.responseText)}function se(we){return function(Me){return X.parse(Me.responseText,we)}}X.parse=function(we,Me){var De;return X.parseRows(we,function(Re,Ge){if(De)return De(Re,Ge-1);var Je=function(Ie){for(var Ne={},Ue=Re.length,Ze=0;Ze<Ue;++Ze)Ne[Re[Ze]]=Ie[Ze];return Ne};De=Me?function(Ie,Ne){return Me(Je(Ie),Ne)}:Je})},X.parseRows=function(we,Me){var De={},Re={},Ge=[],Je=we.length,Ie=0,Ne=0,Ue,Ze;function $e(){if(Ie>=Je)return Re;if(Ze)return Ze=!1,De;var ar=Ie;if(we.charCodeAt(ar)===34){for(var vr=ar;vr++<Je;)if(we.charCodeAt(vr)===34){if(we.charCodeAt(vr+1)!==34)break;++vr}Ie=vr+2;var pr=we.charCodeAt(vr+1);return pr===13?(Ze=!0,we.charCodeAt(vr+2)===10&&++Ie):pr===10&&(Ze=!0),we.slice(ar+1,vr).replace(/""/g,'"')}for(;Ie<Je;){var pr=we.charCodeAt(Ie++),dr=1;if(pr===10)Ze=!0;else if(pr===13)Ze=!0,we.charCodeAt(Ie)===10&&(++Ie,++dr);else if(pr!==H)continue;return we.slice(ar,Ie-dr)}return we.slice(ar)}for(;(Ue=$e())!==Re;){for(var He=[];Ue!==De&&Ue!==Re;)He.push(Ue),Ue=$e();Me&&(He=Me(He,Ne++))==null||Ge.push(He)}return Ge},X.format=function(we){if(Array.isArray(we[0]))return X.formatRows(we);var Me=new R,De=[];return we.forEach(function(Re){for(var Ge in Re)Me.has(Ge)||De.push(Me.add(Ge))}),[De.map(fe).join(C)].concat(we.map(function(Re){return De.map(function(Ge){return fe(Re[Ge])}).join(C)})).join(`
`)},X.formatRows=function(we){return we.map(ne).join(`
`)};function ne(we){return we.map(fe).join(C)}function fe(we){return U.test(we)?'"'+we.replace(/\"/g,'""')+'"':we}return X},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv("	","text/tab-separated-values");var En,Ln,Va,Zl,i6=this[P(this,"requestAnimationFrame")]||function(C){setTimeout(C,17)};e.timer=function(){mv.apply(this,arguments)};function mv(C,N,U){var H=arguments.length;H<2&&(N=0),H<3&&(U=Date.now());var X=U+N,W={c:C,t:X,n:null};return Ln?Ln.n=W:En=W,Ln=W,Va||(Zl=clearTimeout(Zl),Va=1,i6(gp)),W}function gp(){var C=o6(),N=l6()-C;N>24?(isFinite(N)&&(clearTimeout(Zl),Zl=setTimeout(gp,N)),Va=0):(Va=1,i6(gp))}e.timer.flush=function(){o6(),l6()};function o6(){for(var C=Date.now(),N=En;N;)C>=N.t&&N.c(C-N.t)&&(N.c=null),N=N.n;return C}function l6(){for(var C,N=En,U=1/0;N;)N.c?(N.t<U&&(U=N.t),N=(C=N).n):N=C?C.n=N.n:En=N.n;return Ln=C,U}e.round=function(C,N){return N?Math.round(C*(N=Math.pow(10,N)))/N:Math.round(C)},e.geom={};function s0(C){return C[0]}function Zu(C){return C[1]}e.geom.hull=function(C){var N=s0,U=Zu;if(arguments.length)return H(C);function H(X){if(X.length<3)return[];var W=Tr(N),se=Tr(U),ne,fe=X.length,we=[],Me=[];for(ne=0;ne<fe;ne++)we.push([+W.call(this,X[ne],ne),+se.call(this,X[ne],ne),ne]);for(we.sort(DV),ne=0;ne<fe;ne++)Me.push([we[ne][0],-we[ne][1]]);var De=s6(we),Re=s6(Me),Ge=Re[0]===De[0],Je=Re[Re.length-1]===De[De.length-1],Ie=[];for(ne=De.length-1;ne>=0;--ne)Ie.push(X[we[De[ne]][2]]);for(ne=+Ge;ne<Re.length-Je;++ne)Ie.push(X[we[Re[ne]][2]]);return Ie}return H.x=function(X){return arguments.length?(N=X,H):N},H.y=function(X){return arguments.length?(U=X,H):U},H};function s6(C){for(var N=C.length,U=[0,1],H=2,X=2;X<N;X++){for(;H>1&&wr(C[U[H-2]],C[U[H-1]],C[X])<=0;)--H;U[H++]=X}return U.slice(0,H)}function DV(C,N){return C[0]-N[0]||C[1]-N[1]}e.geom.polygon=function(C){return q(C,bv),C};var bv=e.geom.polygon.prototype=[];bv.area=function(){for(var C=-1,N=this.length,U,H=this[N-1],X=0;++C<N;)U=H,H=this[C],X+=U[1]*H[0]-U[0]*H[1];return X*.5},bv.centroid=function(C){var N=-1,U=this.length,H=0,X=0,W,se=this[U-1],ne;for(arguments.length||(C=-1/(6*this.area()));++N<U;)W=se,se=this[N],ne=W[0]*se[1]-se[0]*W[1],H+=(W[0]+se[0])*ne,X+=(W[1]+se[1])*ne;return[H*C,X*C]},bv.clip=function(C){for(var N,U=u6(C),H=-1,X=this.length-u6(this),W,se,ne=this[X-1],fe,we,Me;++H<X;){for(N=C.slice(),C.length=0,fe=this[H],we=N[(se=N.length-U)-1],W=-1;++W<se;)Me=N[W],yp(Me,ne,fe)?(yp(we,ne,fe)||C.push(mp(we,Me,ne,fe)),C.push(Me)):yp(we,ne,fe)&&C.push(mp(we,Me,ne,fe)),we=Me;U&&C.push(C[0]),ne=fe}return C};function yp(C,N,U){return(U[0]-N[0])*(C[1]-N[1])<(U[1]-N[1])*(C[0]-N[0])}function mp(C,N,U,H){var X=C[0],W=U[0],se=N[0]-X,ne=H[0]-W,fe=C[1],we=U[1],Me=N[1]-fe,De=H[1]-we,Re=(ne*(fe-we)-De*(X-W))/(De*se-ne*Me);return[X+Re*se,fe+Re*Me]}function u6(C){var N=C[0],U=C[C.length-1];return!(N[0]-U[0]||N[1]-U[1])}var u0,Jl,f0,f6=[],bp,Ju,c6=[];function RV(){wv(this),this.edge=this.site=this.circle=null}function v6(C){var N=f6.pop()||new RV;return N.site=C,N}function xp(C){v0(C),f0.remove(C),f6.push(C),wv(C)}function FV(C){var N=C.circle,U=N.x,H=N.cy,X={x:U,y:H},W=C.P,se=C.N,ne=[C];xp(C);for(var fe=W;fe.circle&&m(U-fe.circle.x)<Xe&&m(H-fe.circle.cy)<Xe;)W=fe.P,ne.unshift(fe),xp(fe),fe=W;ne.unshift(fe),v0(fe);for(var we=se;we.circle&&m(U-we.circle.x)<Xe&&m(H-we.circle.cy)<Xe;)se=we.N,ne.push(we),xp(we),we=se;ne.push(we),v0(we);var Me=ne.length,De;for(De=1;De<Me;++De)we=ne[De],fe=ne[De-1],xv(we.edge,fe.site,we.site,X);fe=ne[0],we=ne[Me-1],we.edge=$u(fe.site,we.site,null,X),c0(fe),c0(we)}function PV(C){for(var N=C.x,U=C.y,H,X,W,se,ne=f0._;ne;)if(W=h6(ne,U)-N,W>Xe)ne=ne.L;else if(se=N-IV(ne,U),se>Xe){if(!ne.R){H=ne;break}ne=ne.R}else{W>-Xe?(H=ne.P,X=ne):se>-Xe?(H=ne,X=ne.N):H=X=ne;break}var fe=v6(C);if(f0.insert(H,fe),!(!H&&!X)){if(H===X){v0(H),X=v6(H.site),f0.insert(fe,X),fe.edge=X.edge=$u(H.site,fe.site),c0(H),c0(X);return}if(!X){fe.edge=$u(H.site,fe.site);return}v0(H),v0(X);var we=H.site,Me=we.x,De=we.y,Re=C.x-Me,Ge=C.y-De,Je=X.site,Ie=Je.x-Me,Ne=Je.y-De,Ue=2*(Re*Ne-Ge*Ie),Ze=Re*Re+Ge*Ge,$e=Ie*Ie+Ne*Ne,He={x:(Ne*Ze-Ge*$e)/Ue+Me,y:(Re*$e-Ie*Ze)/Ue+De};xv(X.edge,we,Je,He),fe.edge=$u(we,C,null,He),X.edge=$u(C,Je,null,He),c0(H),c0(X)}}function h6(C,N){var U=C.site,H=U.x,X=U.y,W=X-N;if(!W)return H;var se=C.P;if(!se)return-1/0;U=se.site;var ne=U.x,fe=U.y,we=fe-N;if(!we)return ne;var Me=ne-H,De=1/W-1/we,Re=Me/we;return De?(-Re+Math.sqrt(Re*Re-2*De*(Me*Me/(-2*we)-fe+we/2+X-W/2)))/De+H:(H+ne)/2}function IV(C,N){var U=C.N;if(U)return h6(U,N);var H=C.site;return H.y===N?H.x:1/0}function d6(C){this.site=C,this.edges=[]}d6.prototype.prepare=function(){for(var C=this.edges,N=C.length,U;N--;)U=C[N].edge,(!U.b||!U.a)&&C.splice(N,1);return C.sort(p6),C.length};function zV(C){for(var N=C[0][0],U=C[1][0],H=C[0][1],X=C[1][1],W,se,ne,fe,we=Jl,Me=we.length,De,Re,Ge,Je,Ie,Ne;Me--;)if(De=we[Me],!(!De||!De.prepare()))for(Ge=De.edges,Je=Ge.length,Re=0;Re<Je;)Ne=Ge[Re].end(),ne=Ne.x,fe=Ne.y,Ie=Ge[++Re%Je].start(),W=Ie.x,se=Ie.y,(m(ne-W)>Xe||m(fe-se)>Xe)&&(Ge.splice(Re,0,new _v(UV(De.site,Ne,m(ne-N)<Xe&&X-fe>Xe?{x:N,y:m(W-N)<Xe?se:X}:m(fe-X)<Xe&&U-ne>Xe?{x:m(se-X)<Xe?W:U,y:X}:m(ne-U)<Xe&&fe-H>Xe?{x:U,y:m(W-U)<Xe?se:H}:m(fe-H)<Xe&&ne-N>Xe?{x:m(se-H)<Xe?W:N,y:H}:null),De.site,null)),++Je)}function p6(C,N){return N.angle-C.angle}function NV(){wv(this),this.x=this.y=this.arc=this.site=this.cy=null}function c0(C){var N=C.P,U=C.N;if(!(!N||!U)){var H=N.site,X=C.site,W=U.site;if(H!==W){var se=X.x,ne=X.y,fe=H.x-se,we=H.y-ne,Me=W.x-se,Ne=W.y-ne,De=2*(fe*Ne-we*Me);if(!(De>=-tr)){var Re=fe*fe+we*we,Ge=Me*Me+Ne*Ne,Je=(Ne*Re-we*Ge)/De,Ie=(fe*Ge-Me*Re)/De,Ne=Ie+ne,Ue=c6.pop()||new NV;Ue.arc=C,Ue.site=X,Ue.x=Je+se,Ue.y=Ne+Math.sqrt(Je*Je+Ie*Ie),Ue.cy=Ne,C.circle=Ue;for(var Ze=null,$e=Ju._;$e;)if(Ue.y<$e.y||Ue.y===$e.y&&Ue.x<=$e.x)if($e.L)$e=$e.L;else{Ze=$e.P;break}else if($e.R)$e=$e.R;else{Ze=$e;break}Ju.insert(Ze,Ue),Ze||(bp=Ue)}}}}function v0(C){var N=C.circle;N&&(N.P||(bp=N.N),Ju.remove(N),c6.push(N),wv(N),C.circle=null)}function qV(C,N,U,H){return function(X){var W=X.a,se=X.b,ne=W.x,fe=W.y,we=se.x,Me=se.y,De=0,Re=1,Ge=we-ne,Je=Me-fe,Ie;if(Ie=C-ne,!(!Ge&&Ie>0)){if(Ie/=Ge,Ge<0){if(Ie<De)return;Ie<Re&&(Re=Ie)}else if(Ge>0){if(Ie>Re)return;Ie>De&&(De=Ie)}if(Ie=U-ne,!(!Ge&&Ie<0)){if(Ie/=Ge,Ge<0){if(Ie>Re)return;Ie>De&&(De=Ie)}else if(Ge>0){if(Ie<De)return;Ie<Re&&(Re=Ie)}if(Ie=N-fe,!(!Je&&Ie>0)){if(Ie/=Je,Je<0){if(Ie<De)return;Ie<Re&&(Re=Ie)}else if(Je>0){if(Ie>Re)return;Ie>De&&(De=Ie)}if(Ie=H-fe,!(!Je&&Ie<0)){if(Ie/=Je,Je<0){if(Ie>Re)return;Ie>De&&(De=Ie)}else if(Je>0){if(Ie<De)return;Ie<Re&&(Re=Ie)}return De>0&&(X.a={x:ne+De*Ge,y:fe+De*Je}),Re<1&&(X.b={x:ne+Re*Ge,y:fe+Re*Je}),X}}}}}}function BV(C){for(var N=u0,U=qV(C[0][0],C[0][1],C[1][0],C[1][1]),H=N.length,X;H--;)X=N[H],(!OV(X,C)||!U(X)||m(X.a.x-X.b.x)<Xe&&m(X.a.y-X.b.y)<Xe)&&(X.a=X.b=null,N.splice(H,1))}function OV(C,N){var U=C.b;if(U)return!0;var H=C.a,X=N[0][0],W=N[1][0],se=N[0][1],ne=N[1][1],fe=C.l,we=C.r,Me=fe.x,De=fe.y,Re=we.x,Ge=we.y,Je=(Me+Re)/2,Ie=(De+Ge)/2,Ne,Ue;if(Ge===De){if(Je<X||Je>=W)return;if(Me>Re){if(!H)H={x:Je,y:se};else if(H.y>=ne)return;U={x:Je,y:ne}}else{if(!H)H={x:Je,y:ne};else if(H.y<se)return;U={x:Je,y:se}}}else if(Ne=(Me-Re)/(Ge-De),Ue=Ie-Ne*Je,Ne<-1||Ne>1)if(Me>Re){if(!H)H={x:(se-Ue)/Ne,y:se};else if(H.y>=ne)return;U={x:(ne-Ue)/Ne,y:ne}}else{if(!H)H={x:(ne-Ue)/Ne,y:ne};else if(H.y<se)return;U={x:(se-Ue)/Ne,y:se}}else if(De<Ge){if(!H)H={x:X,y:Ne*X+Ue};else if(H.x>=W)return;U={x:W,y:Ne*W+Ue}}else{if(!H)H={x:W,y:Ne*W+Ue};else if(H.x<X)return;U={x:X,y:Ne*X+Ue}}return C.a=H,C.b=U,!0}function g6(C,N){this.l=C,this.r=N,this.a=this.b=null}function $u(C,N,U,H){var X=new g6(C,N);return u0.push(X),U&&xv(X,C,N,U),H&&xv(X,N,C,H),Jl[C.i].edges.push(new _v(X,C,N)),Jl[N.i].edges.push(new _v(X,N,C)),X}function UV(C,N,U){var H=new g6(C,null);return H.a=N,H.b=U,u0.push(H),H}function xv(C,N,U,H){!C.a&&!C.b?(C.a=H,C.l=N,C.r=U):C.l===U?C.b=H:C.a=H}function _v(C,N,U){var H=C.a,X=C.b;this.edge=C,this.site=N,this.angle=U?Math.atan2(U.y-N.y,U.x-N.x):C.l===N?Math.atan2(X.x-H.x,H.y-X.y):Math.atan2(H.x-X.x,X.y-H.y)}_v.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function _p(){this._=null}function wv(C){C.U=C.C=C.L=C.R=C.P=C.N=null}_p.prototype={insert:function(C,N){var U,H,X;if(C){if(N.P=C,N.N=C.N,C.N&&(C.N.P=N),C.N=N,C.R){for(C=C.R;C.L;)C=C.L;C.L=N}else C.R=N;U=C}else this._?(C=y6(this._),N.P=null,N.N=C,C.P=C.L=N,U=C):(N.P=N.N=null,this._=N,U=null);for(N.L=N.R=null,N.U=U,N.C=!0,C=N;U&&U.C;)H=U.U,U===H.L?(X=H.R,X&&X.C?(U.C=X.C=!1,H.C=!0,C=H):(C===U.R&&(Ku(this,U),C=U,U=C.U),U.C=!1,H.C=!0,Qu(this,H))):(X=H.L,X&&X.C?(U.C=X.C=!1,H.C=!0,C=H):(C===U.L&&(Qu(this,U),C=U,U=C.U),U.C=!1,H.C=!0,Ku(this,H))),U=C.U;this._.C=!1},remove:function(C){C.N&&(C.N.P=C.P),C.P&&(C.P.N=C.N),C.N=C.P=null;var N=C.U,U,H=C.L,X=C.R,W,se;if(H?X?W=y6(X):W=H:W=X,N?N.L===C?N.L=W:N.R=W:this._=W,H&&X?(se=W.C,W.C=C.C,W.L=H,H.U=W,W!==X?(N=W.U,W.U=C.U,C=W.R,N.L=C,W.R=X,X.U=W):(W.U=N,N=W,C=W.R)):(se=C.C,C=W),C&&(C.U=N),!se){if(C&&C.C){C.C=!1;return}do{if(C===this._)break;if(C===N.L){if(U=N.R,U.C&&(U.C=!1,N.C=!0,Ku(this,N),U=N.R),U.L&&U.L.C||U.R&&U.R.C){(!U.R||!U.R.C)&&(U.L.C=!1,U.C=!0,Qu(this,U),U=N.R),U.C=N.C,N.C=U.R.C=!1,Ku(this,N),C=this._;break}}else if(U=N.L,U.C&&(U.C=!1,N.C=!0,Qu(this,N),U=N.L),U.L&&U.L.C||U.R&&U.R.C){(!U.L||!U.L.C)&&(U.R.C=!1,U.C=!0,Ku(this,U),U=N.L),U.C=N.C,N.C=U.L.C=!1,Qu(this,N),C=this._;break}U.C=!0,C=N,N=N.U}while(!C.C);C&&(C.C=!1)}}};function Ku(C,N){var U=N,H=N.R,X=U.U;X?X.L===U?X.L=H:X.R=H:C._=H,H.U=X,U.U=H,U.R=H.L,U.R&&(U.R.U=U),H.L=U}function Qu(C,N){var U=N,H=N.L,X=U.U;X?X.L===U?X.L=H:X.R=H:C._=H,H.U=X,U.U=H,U.L=H.R,U.L&&(U.L.U=U),H.R=U}function y6(C){for(;C.L;)C=C.L;return C}function wp(C,N){var U=C.sort(HV).pop(),H,X,W;for(u0=[],Jl=new Array(C.length),f0=new _p,Ju=new _p;;)if(W=bp,U&&(!W||U.y<W.y||U.y===W.y&&U.x<W.x))(U.x!==H||U.y!==X)&&(Jl[U.i]=new d6(U),PV(U),H=U.x,X=U.y),U=C.pop();else if(W)FV(W.arc);else break;N&&(BV(N),zV(N));var se={cells:Jl,edges:u0};return f0=Ju=u0=Jl=null,se}function HV(C,N){return N.y-C.y||N.x-C.x}e.geom.voronoi=function(C){var N=s0,U=Zu,H=N,X=U,W=Mv;if(C)return se(C);function se(fe){var we=new Array(fe.length),Me=W[0][0],De=W[0][1],Re=W[1][0],Ge=W[1][1];return wp(ne(fe),W).cells.forEach(function(Je,Ie){var Ne=Je.edges,Ue=Je.site,Ze=we[Ie]=Ne.length?Ne.map(function($e){var He=$e.start();return[He.x,He.y]}):Ue.x>=Me&&Ue.x<=Re&&Ue.y>=De&&Ue.y<=Ge?[[Me,Ge],[Re,Ge],[Re,De],[Me,De]]:[];Ze.point=fe[Ie]}),we}function ne(fe){return fe.map(function(we,Me){return{x:Math.round(H(we,Me)/Xe)*Xe,y:Math.round(X(we,Me)/Xe)*Xe,i:Me}})}return se.links=function(fe){return wp(ne(fe)).edges.filter(function(we){return we.l&&we.r}).map(function(we){return{source:fe[we.l.i],target:fe[we.r.i]}})},se.triangles=function(fe){var we=[];return wp(ne(fe)).cells.forEach(function(Me,De){for(var Re=Me.site,Ge=Me.edges.sort(p6),Je=-1,Ie=Ge.length,Ne,Ue,Ze=Ge[Ie-1].edge,$e=Ze.l===Re?Ze.r:Ze.l;++Je<Ie;)Ne=Ze,Ue=$e,Ze=Ge[Je].edge,$e=Ze.l===Re?Ze.r:Ze.l,De<Ue.i&&De<$e.i&&VV(Re,Ue,$e)<0&&we.push([fe[De],fe[Ue.i],fe[$e.i]])}),we},se.x=function(fe){return arguments.length?(H=Tr(N=fe),se):N},se.y=function(fe){return arguments.length?(X=Tr(U=fe),se):U},se.clipExtent=function(fe){return arguments.length?(W=fe==null?Mv:fe,se):W===Mv?null:W},se.size=function(fe){return arguments.length?se.clipExtent(fe&&[[0,0],fe]):W===Mv?null:W&&W[1]},se};var Mv=[[-1e6,-1e6],[1e6,1e6]];function VV(C,N,U){return(C.x-U.x)*(N.y-C.y)-(C.x-N.x)*(U.y-C.y)}e.geom.delaunay=function(C){return e.geom.voronoi().triangles(C)},e.geom.quadtree=function(C,N,U,H,X){var W=s0,se=Zu,ne;if(ne=arguments.length)return W=GV,se=YV,ne===3&&(X=U,H=N,U=N=0),fe(C);function fe(we){var Me,De=Tr(W),Re=Tr(se),Ge,Je,Ie,Ne,Ue,Ze,$e,He;if(N!=null)Ue=N,Ze=U,$e=H,He=X;else if($e=He=-(Ue=Ze=1/0),Ge=[],Je=[],Ne=we.length,ne)for(Ie=0;Ie<Ne;++Ie)Me=we[Ie],Me.x<Ue&&(Ue=Me.x),Me.y<Ze&&(Ze=Me.y),Me.x>$e&&($e=Me.x),Me.y>He&&(He=Me.y),Ge.push(Me.x),Je.push(Me.y);else for(Ie=0;Ie<Ne;++Ie){var ar=+De(Me=we[Ie],Ie),vr=+Re(Me,Ie);ar<Ue&&(Ue=ar),vr<Ze&&(Ze=vr),ar>$e&&($e=ar),vr>He&&(He=vr),Ge.push(ar),Je.push(vr)}var pr=$e-Ue,dr=He-Ze;pr>dr?He=Ze+pr:$e=Ue+dr;function mr(_r,Dr,ct,Jt,yt,fr,qr,Ur){if(!(isNaN(ct)||isNaN(Jt)))if(_r.leaf){var vt=_r.x,Ht=_r.y;if(vt!=null)if(m(vt-ct)+m(Ht-Jt)<.01)br(_r,Dr,ct,Jt,yt,fr,qr,Ur);else{var sn=_r.point;_r.x=_r.y=_r.point=null,br(_r,sn,vt,Ht,yt,fr,qr,Ur),br(_r,Dr,ct,Jt,yt,fr,qr,Ur)}else _r.x=ct,_r.y=Jt,_r.point=Dr}else br(_r,Dr,ct,Jt,yt,fr,qr,Ur)}function br(_r,Dr,ct,Jt,yt,fr,qr,Ur){var vt=(yt+qr)*.5,Ht=(fr+Ur)*.5,sn=ct>=vt,Dn=Jt>=Ht,Jn=Dn<<1|sn;_r.leaf=!1,_r=_r.nodes[Jn]||(_r.nodes[Jn]=m6()),sn?yt=vt:qr=vt,Dn?fr=Ht:Ur=Ht,mr(_r,Dr,ct,Jt,yt,fr,qr,Ur)}var Nr=m6();if(Nr.add=function(_r){mr(Nr,_r,+De(_r,++Ie),+Re(_r,Ie),Ue,Ze,$e,He)},Nr.visit=function(_r){ju(_r,Nr,Ue,Ze,$e,He)},Nr.find=function(_r){return XV(Nr,_r[0],_r[1],Ue,Ze,$e,He)},Ie=-1,N==null){for(;++Ie<Ne;)mr(Nr,we[Ie],Ge[Ie],Je[Ie],Ue,Ze,$e,He);--Ie}else we.forEach(Nr.add);return Ge=Je=we=Me=null,Nr}return fe.x=function(we){return arguments.length?(W=we,fe):W},fe.y=function(we){return arguments.length?(se=we,fe):se},fe.extent=function(we){return arguments.length?(we==null?N=U=H=X=null:(N=+we[0][0],U=+we[0][1],H=+we[1][0],X=+we[1][1]),fe):N==null?null:[[N,U],[H,X]]},fe.size=function(we){return arguments.length?(we==null?N=U=H=X=null:(N=U=0,H=+we[0],X=+we[1]),fe):N==null?null:[H-N,X-U]},fe};function GV(C){return C.x}function YV(C){return C.y}function m6(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function ju(C,N,U,H,X,W){if(!C(N,U,H,X,W)){var se=(U+X)*.5,ne=(H+W)*.5,fe=N.nodes;fe[0]&&ju(C,fe[0],U,H,se,ne),fe[1]&&ju(C,fe[1],se,H,X,ne),fe[2]&&ju(C,fe[2],U,ne,se,W),fe[3]&&ju(C,fe[3],se,ne,X,W)}}function XV(C,N,U,H,X,W,se){var ne=1/0,fe;return(function we(Me,De,Re,Ge,Je){if(!(De>W||Re>se||Ge<H||Je<X)){if(Ie=Me.point){var Ie,Ne=N-Me.x,Ue=U-Me.y,Ze=Ne*Ne+Ue*Ue;if(Ze<ne){var $e=Math.sqrt(ne=Ze);H=N-$e,X=U-$e,W=N+$e,se=U+$e,fe=Ie}}for(var He=Me.nodes,ar=(De+Ge)*.5,vr=(Re+Je)*.5,pr=N>=ar,dr=U>=vr,mr=dr<<1|pr,br=mr+4;mr<br;++mr)if(Me=He[mr&3])switch(mr&3){case 0:we(Me,De,Re,ar,vr);break;case 1:we(Me,ar,Re,Ge,vr);break;case 2:we(Me,De,vr,ar,Je);break;case 3:we(Me,ar,vr,Ge,Je);break}}})(C,H,X,W,se),fe}e.interpolateRgb=Mp;function Mp(C,N){C=e.rgb(C),N=e.rgb(N);var U=C.r,H=C.g,X=C.b,W=N.r-U,se=N.g-H,ne=N.b-X;return function(fe){return"#"+Zo(Math.round(U+W*fe))+Zo(Math.round(H+se*fe))+Zo(Math.round(X+ne*fe))}}e.interpolateObject=b6;function b6(C,N){var U={},H={},X;for(X in C)X in N?U[X]=$l(C[X],N[X]):H[X]=C[X];for(X in N)X in C||(H[X]=N[X]);return function(W){for(X in U)H[X]=U[X](W);return H}}e.interpolateNumber=Mo;function Mo(C,N){return C=+C,N=+N,function(U){return C*(1-U)+N*U}}e.interpolateString=x6;function x6(C,N){var U=Tp.lastIndex=Ap.lastIndex=0,H,X,W,se=-1,ne=[],fe=[];for(C=C+"",N=N+"";(H=Tp.exec(C))&&(X=Ap.exec(N));)(W=X.index)>U&&(W=N.slice(U,W),ne[se]?ne[se]+=W:ne[++se]=W),(H=H[0])===(X=X[0])?ne[se]?ne[se]+=X:ne[++se]=X:(ne[++se]=null,fe.push({i:se,x:Mo(H,X)})),U=Ap.lastIndex;return U<N.length&&(W=N.slice(U),ne[se]?ne[se]+=W:ne[++se]=W),ne.length<2?fe[0]?(N=fe[0].x,function(we){return N(we)+""}):function(){return N}:(N=fe.length,function(we){for(var Me=0,De;Me<N;++Me)ne[(De=fe[Me]).i]=De.x(we);return ne.join("")})}var Tp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ap=new RegExp(Tp.source,"g");e.interpolate=$l;function $l(C,N){for(var U=e.interpolators.length,H;--U>=0&&!(H=e.interpolators[U](C,N)););return H}e.interpolators=[function(C,N){var U=typeof N;return(U==="string"?Ar.has(N.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(N)?Mp:x6:N instanceof rt?Mp:Array.isArray(N)?Tv:U==="object"&&isNaN(N)?b6:Mo)(C,N)}],e.interpolateArray=Tv;function Tv(C,N){var U=[],H=[],X=C.length,W=N.length,se=Math.min(C.length,N.length),ne;for(ne=0;ne<se;++ne)U.push($l(C[ne],N[ne]));for(;ne<X;++ne)H[ne]=C[ne];for(;ne<W;++ne)H[ne]=N[ne];return function(fe){for(ne=0;ne<se;++ne)H[ne]=U[ne](fe);return H}}var _6=function(){return z},WV=e.map({linear:_6,poly:jV,quad:function(){return $V},cubic:function(){return KV},sin:function(){return eG},exp:function(){return rG},circle:function(){return tG},elastic:nG,back:aG,bounce:function(){return iG}}),ZV=e.map({in:z,out:w6,"in-out":M6,"out-in":function(C){return M6(w6(C))}});e.ease=function(C){var N=C.indexOf("-"),U=N>=0?C.slice(0,N):C,H=N>=0?C.slice(N+1):"in";return U=WV.get(U)||_6,H=ZV.get(H)||z,JV(H(U.apply(null,r.call(arguments,1))))};function JV(C){return function(N){return N<=0?0:N>=1?1:C(N)}}function w6(C){return function(N){return 1-C(1-N)}}function M6(C){return function(N){return .5*(N<.5?C(2*N):2-C(2-2*N))}}function $V(C){return C*C}function KV(C){return C*C*C}function QV(C){if(C<=0)return 0;if(C>=1)return 1;var N=C*C,U=N*C;return 4*(C<.5?U:3*(C-N)+U-.75)}function jV(C){return function(N){return Math.pow(N,C)}}function eG(C){return 1-Math.cos(C*Ee)}function rG(C){return Math.pow(2,10*(C-1))}function tG(C){return 1-Math.sqrt(1-C*C)}function nG(C,N){var U;return arguments.length<2&&(N=.45),arguments.length?U=N/je*Math.asin(1/C):(C=1,U=N/4),function(H){return 1+C*Math.pow(2,-10*H)*Math.sin((H-U)*je/N)}}function aG(C){return C||(C=1.70158),function(N){return N*N*((C+1)*N-C)}}function iG(C){return C<1/2.75?7.5625*C*C:C<2/2.75?7.5625*(C-=1.5/2.75)*C+.75:C<2.5/2.75?7.5625*(C-=2.25/2.75)*C+.9375:7.5625*(C-=2.625/2.75)*C+.984375}e.interpolateHcl=oG;function oG(C,N){C=e.hcl(C),N=e.hcl(N);var U=C.h,H=C.c,X=C.l,W=N.h-U,se=N.c-H,ne=N.l-X;return isNaN(se)&&(se=0,H=isNaN(H)?N.c:H),isNaN(W)?(W=0,U=isNaN(U)?N.h:U):W>180?W-=360:W<-180&&(W+=360),function(fe){return Zt(U+W*fe,H+se*fe,X+ne*fe)+""}}e.interpolateHsl=lG;function lG(C,N){C=e.hsl(C),N=e.hsl(N);var U=C.h,H=C.s,X=C.l,W=N.h-U,se=N.s-H,ne=N.l-X;return isNaN(se)&&(se=0,H=isNaN(H)?N.s:H),isNaN(W)?(W=0,U=isNaN(U)?N.h:U):W>180?W-=360:W<-180&&(W+=360),function(fe){return pt(U+W*fe,H+se*fe,X+ne*fe)+""}}e.interpolateLab=sG;function sG(C,N){C=e.lab(C),N=e.lab(N);var U=C.l,H=C.a,X=C.b,W=N.l-U,se=N.a-H,ne=N.b-X;return function(fe){return Ha(U+W*fe,H+se*fe,X+ne*fe)+""}}e.interpolateRound=T6;function T6(C,N){return N-=C,function(U){return Math.round(C+N*U)}}e.transform=function(C){var N=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(U){if(U!=null){N.setAttribute("transform",U);var H=N.transform.baseVal.consolidate()}return new A6(H?H.matrix:fG)})(C)};function A6(C){var N=[C.a,C.b],U=[C.c,C.d],H=S6(N),X=k6(N,U),W=S6(uG(U,N,-X))||0;N[0]*U[1]<U[0]*N[1]&&(N[0]*=-1,N[1]*=-1,H*=-1,X*=-1),this.rotate=(H?Math.atan2(N[1],N[0]):Math.atan2(-U[0],U[1]))*Qe,this.translate=[C.e,C.f],this.scale=[H,W],this.skew=W?Math.atan2(X,W)*Qe:0}A6.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function k6(C,N){return C[0]*N[0]+C[1]*N[1]}function S6(C){var N=Math.sqrt(k6(C,C));return N&&(C[0]/=N,C[1]/=N),N}function uG(C,N,U){return C[0]+=U*N[0],C[1]+=U*N[1],C}var fG={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=C6;function h0(C){return C.length?C.pop()+",":""}function cG(C,N,U,H){if(C[0]!==N[0]||C[1]!==N[1]){var X=U.push("translate(",null,",",null,")");H.push({i:X-4,x:Mo(C[0],N[0])},{i:X-2,x:Mo(C[1],N[1])})}else(N[0]||N[1])&&U.push("translate("+N+")")}function vG(C,N,U,H){C!==N?(C-N>180?N+=360:N-C>180&&(C+=360),H.push({i:U.push(h0(U)+"rotate(",null,")")-2,x:Mo(C,N)})):N&&U.push(h0(U)+"rotate("+N+")")}function hG(C,N,U,H){C!==N?H.push({i:U.push(h0(U)+"skewX(",null,")")-2,x:Mo(C,N)}):N&&U.push(h0(U)+"skewX("+N+")")}function dG(C,N,U,H){if(C[0]!==N[0]||C[1]!==N[1]){var X=U.push(h0(U)+"scale(",null,",",null,")");H.push({i:X-4,x:Mo(C[0],N[0])},{i:X-2,x:Mo(C[1],N[1])})}else(N[0]!==1||N[1]!==1)&&U.push(h0(U)+"scale("+N+")")}function C6(C,N){var U=[],H=[];return C=e.transform(C),N=e.transform(N),cG(C.translate,N.translate,U,H),vG(C.rotate,N.rotate,U,H),hG(C.skew,N.skew,U,H),dG(C.scale,N.scale,U,H),C=N=null,function(X){for(var W=-1,se=H.length,ne;++W<se;)U[(ne=H[W]).i]=ne.x(X);return U.join("")}}function pG(C,N){return N=(N-=C=+C)||1/N,function(U){return(U-C)/N}}function gG(C,N){return N=(N-=C=+C)||1/N,function(U){return Math.max(0,Math.min(1,(U-C)/N))}}e.layout={},e.layout.bundle=function(){return function(C){for(var N=[],U=-1,H=C.length;++U<H;)N.push(yG(C[U]));return N}};function yG(C){for(var N=C.source,U=C.target,H=mG(N,U),X=[N];N!==H;)N=N.parent,X.push(N);for(var W=X.length;U!==H;)X.splice(W,0,U),U=U.parent;return X}function E6(C){for(var N=[],U=C.parent;U!=null;)N.push(C),C=U,U=U.parent;return N.push(C),N}function mG(C,N){if(C===N)return C;for(var U=E6(C),H=E6(N),X=U.pop(),W=H.pop(),se=null;X===W;)se=X,X=U.pop(),W=H.pop();return se}e.layout.chord=function(){var C={},N,U,H,X,W=0,se,ne,fe;function we(){var De={},Re=[],Ge=e.range(X),Je=[],Ie,Ne,Ue,Ze,$e;for(N=[],U=[],Ie=0,Ze=-1;++Ze<X;){for(Ne=0,$e=-1;++$e<X;)Ne+=H[Ze][$e];Re.push(Ne),Je.push(e.range(X)),Ie+=Ne}for(se&&Ge.sort(function(Nr,_r){return se(Re[Nr],Re[_r])}),ne&&Je.forEach(function(Nr,_r){Nr.sort(function(Dr,ct){return ne(H[_r][Dr],H[_r][ct])})}),Ie=(je-W*X)/Ie,Ne=0,Ze=-1;++Ze<X;){for(Ue=Ne,$e=-1;++$e<X;){var He=Ge[Ze],ar=Je[He][$e],vr=H[He][ar],pr=Ne,dr=Ne+=vr*Ie;De[He+"-"+ar]={index:He,subindex:ar,startAngle:pr,endAngle:dr,value:vr}}U[He]={index:He,startAngle:Ue,endAngle:Ne,value:Re[He]},Ne+=W}for(Ze=-1;++Ze<X;)for($e=Ze-1;++$e<X;){var mr=De[Ze+"-"+$e],br=De[$e+"-"+Ze];(mr.value||br.value)&&N.push(mr.value<br.value?{source:br,target:mr}:{source:mr,target:br})}fe&&Me()}function Me(){N.sort(function(De,Re){return fe((De.source.value+De.target.value)/2,(Re.source.value+Re.target.value)/2)})}return C.matrix=function(De){return arguments.length?(X=(H=De)&&H.length,N=U=null,C):H},C.padding=function(De){return arguments.length?(W=De,N=U=null,C):W},C.sortGroups=function(De){return arguments.length?(se=De,N=U=null,C):se},C.sortSubgroups=function(De){return arguments.length?(ne=De,N=null,C):ne},C.sortChords=function(De){return arguments.length?(fe=De,N&&Me(),C):fe},C.chords=function(){return N||we(),N},C.groups=function(){return U||we(),U},C},e.layout.force=function(){var C={},N=e.dispatch("start","tick","end"),U,H=[1,1],X,W,se=.9,ne=MG,fe=TG,we=-30,Me=AG,De=.1,Re=.64,Ge=[],Je=[],Ie,Ne,Ue;function Ze(He){return function(ar,vr,pr,dr){if(ar.point!==He){var mr=ar.cx-He.x,br=ar.cy-He.y,Nr=dr-vr,_r=mr*mr+br*br;if(Nr*Nr/Re<_r){if(_r<Me){var Dr=ar.charge/_r;He.px-=mr*Dr,He.py-=br*Dr}return!0}if(ar.point&&_r&&_r<Me){var Dr=ar.pointCharge/_r;He.px-=mr*Dr,He.py-=br*Dr}}return!ar.charge}}C.tick=function(){if((W*=.99)<.005)return U=null,N.end({type:"end",alpha:W=0}),!0;var He=Ge.length,ar=Je.length,vr,pr,dr,mr,br,Nr,_r,Dr,ct;for(pr=0;pr<ar;++pr)dr=Je[pr],mr=dr.source,br=dr.target,Dr=br.x-mr.x,ct=br.y-mr.y,(Nr=Dr*Dr+ct*ct)&&(Nr=W*Ne[pr]*((Nr=Math.sqrt(Nr))-Ie[pr])/Nr,Dr*=Nr,ct*=Nr,br.x-=Dr*(_r=mr.weight+br.weight?mr.weight/(mr.weight+br.weight):.5),br.y-=ct*_r,mr.x+=Dr*(_r=1-_r),mr.y+=ct*_r);if((_r=W*De)&&(Dr=H[0]/2,ct=H[1]/2,pr=-1,_r))for(;++pr<He;)dr=Ge[pr],dr.x+=(Dr-dr.x)*_r,dr.y+=(ct-dr.y)*_r;if(we)for(L6(vr=e.geom.quadtree(Ge),W,Ue),pr=-1;++pr<He;)(dr=Ge[pr]).fixed||vr.visit(Ze(dr));for(pr=-1;++pr<He;)dr=Ge[pr],dr.fixed?(dr.x=dr.px,dr.y=dr.py):(dr.x-=(dr.px-(dr.px=dr.x))*se,dr.y-=(dr.py-(dr.py=dr.y))*se);N.tick({type:"tick",alpha:W})},C.nodes=function(He){return arguments.length?(Ge=He,C):Ge},C.links=function(He){return arguments.length?(Je=He,C):Je},C.size=function(He){return arguments.length?(H=He,C):H},C.linkDistance=function(He){return arguments.length?(ne=typeof He=="function"?He:+He,C):ne},C.distance=C.linkDistance,C.linkStrength=function(He){return arguments.length?(fe=typeof He=="function"?He:+He,C):fe},C.friction=function(He){return arguments.length?(se=+He,C):se},C.charge=function(He){return arguments.length?(we=typeof He=="function"?He:+He,C):we},C.chargeDistance=function(He){return arguments.length?(Me=He*He,C):Math.sqrt(Me)},C.gravity=function(He){return arguments.length?(De=+He,C):De},C.theta=function(He){return arguments.length?(Re=He*He,C):Math.sqrt(Re)},C.alpha=function(He){return arguments.length?(He=+He,W?He>0?W=He:(U.c=null,U.t=NaN,U=null,N.end({type:"end",alpha:W=0})):He>0&&(N.start({type:"start",alpha:W=He}),U=mv(C.tick)),C):W},C.start=function(){var He,ar=Ge.length,vr=Je.length,pr=H[0],dr=H[1],mr,br;for(He=0;He<ar;++He)(br=Ge[He]).index=He,br.weight=0;for(He=0;He<vr;++He)br=Je[He],typeof br.source=="number"&&(br.source=Ge[br.source]),typeof br.target=="number"&&(br.target=Ge[br.target]),++br.source.weight,++br.target.weight;for(He=0;He<ar;++He)br=Ge[He],isNaN(br.x)&&(br.x=Nr("x",pr)),isNaN(br.y)&&(br.y=Nr("y",dr)),isNaN(br.px)&&(br.px=br.x),isNaN(br.py)&&(br.py=br.y);if(Ie=[],typeof ne=="function")for(He=0;He<vr;++He)Ie[He]=+ne.call(this,Je[He],He);else for(He=0;He<vr;++He)Ie[He]=ne;if(Ne=[],typeof fe=="function")for(He=0;He<vr;++He)Ne[He]=+fe.call(this,Je[He],He);else for(He=0;He<vr;++He)Ne[He]=fe;if(Ue=[],typeof we=="function")for(He=0;He<ar;++He)Ue[He]=+we.call(this,Ge[He],He);else for(He=0;He<ar;++He)Ue[He]=we;function Nr(_r,Dr){if(!mr){for(mr=new Array(ar),yt=0;yt<ar;++yt)mr[yt]=[];for(yt=0;yt<vr;++yt){var ct=Je[yt];mr[ct.source.index].push(ct.target),mr[ct.target.index].push(ct.source)}}for(var Jt=mr[He],yt=-1,fr=Jt.length,qr;++yt<fr;)if(!isNaN(qr=Jt[yt][_r]))return qr;return Math.random()*Dr}return C.resume()},C.resume=function(){return C.alpha(.1)},C.stop=function(){return C.alpha(0)},C.drag=function(){if(X||(X=e.behavior.drag().origin(z).on("dragstart.force",bG).on("drag.force",$e).on("dragend.force",xG)),!arguments.length)return X;this.on("mouseover.force",_G).on("mouseout.force",wG).call(X)};function $e(He){He.px=e.event.x,He.py=e.event.y,C.resume()}return e.rebind(C,N,"on")};function bG(C){C.fixed|=2}function xG(C){C.fixed&=-7}function _G(C){C.fixed|=4,C.px=C.x,C.py=C.y}function wG(C){C.fixed&=-5}function L6(C,N,U){var H=0,X=0;if(C.charge=0,!C.leaf)for(var W=C.nodes,se=W.length,ne=-1,fe;++ne<se;)fe=W[ne],fe!=null&&(L6(fe,N,U),C.charge+=fe.charge,H+=fe.charge*fe.cx,X+=fe.charge*fe.cy);if(C.point){C.leaf||(C.point.x+=Math.random()-.5,C.point.y+=Math.random()-.5);var we=N*U[C.point.index];C.charge+=C.pointCharge=we,H+=we*C.point.x,X+=we*C.point.y}C.cx=H/C.charge,C.cy=X/C.charge}var MG=20,TG=1,AG=1/0;e.layout.hierarchy=function(){var C=CG,N=kG,U=SG;function H(X){var W=[X],se=[],ne;for(X.depth=0;(ne=W.pop())!=null;)if(se.push(ne),(we=N.call(H,ne,ne.depth))&&(fe=we.length)){for(var fe,we,Me;--fe>=0;)W.push(Me=we[fe]),Me.parent=ne,Me.depth=ne.depth+1;U&&(ne.value=0),ne.children=we}else U&&(ne.value=+U.call(H,ne,ne.depth)||0),delete ne.children;return Vi(X,function(De){var Re,Ge;C&&(Re=De.children)&&Re.sort(C),U&&(Ge=De.parent)&&(Ge.value+=De.value)}),se}return H.sort=function(X){return arguments.length?(C=X,H):C},H.children=function(X){return arguments.length?(N=X,H):N},H.value=function(X){return arguments.length?(U=X,H):U},H.revalue=function(X){return U&&(rf(X,function(W){W.children&&(W.value=0)}),Vi(X,function(W){var se;W.children||(W.value=+U.call(H,W,W.depth)||0),(se=W.parent)&&(se.value+=W.value)})),X},H};function ef(C,N){return e.rebind(C,N,"sort","children","value"),C.nodes=C,C.links=EG,C}function rf(C,N){for(var U=[C];(C=U.pop())!=null;)if(N(C),(X=C.children)&&(H=X.length))for(var H,X;--H>=0;)U.push(X[H])}function Vi(C,N){for(var U=[C],H=[];(C=U.pop())!=null;)if(H.push(C),(se=C.children)&&(W=se.length))for(var X=-1,W,se;++X<W;)U.push(se[X]);for(;(C=H.pop())!=null;)N(C)}function kG(C){return C.children}function SG(C){return C.value}function CG(C,N){return N.value-C.value}function EG(C){return e.merge(C.map(function(N){return(N.children||[]).map(function(U){return{source:N,target:U}})}))}e.layout.partition=function(){var C=e.layout.hierarchy(),N=[1,1];function U(W,se,ne,fe){var we=W.children;if(W.x=se,W.y=W.depth*fe,W.dx=ne,W.dy=fe,we&&(De=we.length)){var Me=-1,De,Re,Ge;for(ne=W.value?ne/W.value:0;++Me<De;)U(Re=we[Me],se,Ge=Re.value*ne,fe),se+=Ge}}function H(W){var se=W.children,ne=0;if(se&&(we=se.length))for(var fe=-1,we;++fe<we;)ne=Math.max(ne,H(se[fe]));return 1+ne}function X(W,se){var ne=C.call(this,W,se);return U(ne[0],0,N[0],N[1]/H(ne[0])),ne}return X.size=function(W){return arguments.length?(N=W,X):N},ef(X,C)},e.layout.pie=function(){var C=Number,N=D6,U=0,H=je,X=0;function W(se){var ne=se.length,fe=se.map(function(Ze,$e){return+C.call(W,Ze,$e)}),we=+(typeof U=="function"?U.apply(this,arguments):U),Me=(typeof H=="function"?H.apply(this,arguments):H)-we,De=Math.min(Math.abs(Me)/ne,+(typeof X=="function"?X.apply(this,arguments):X)),Re=De*(Me<0?-1:1),Ge=e.sum(fe),Je=Ge?(Me-ne*Re)/Ge:0,Ie=e.range(ne),Ne=[],Ue;return N!=null&&Ie.sort(N===D6?function(Ze,$e){return fe[$e]-fe[Ze]}:function(Ze,$e){return N(se[Ze],se[$e])}),Ie.forEach(function(Ze){Ne[Ze]={data:se[Ze],value:Ue=fe[Ze],startAngle:we,endAngle:we+=Ue*Je+Re,padAngle:De}}),Ne}return W.value=function(se){return arguments.length?(C=se,W):C},W.sort=function(se){return arguments.length?(N=se,W):N},W.startAngle=function(se){return arguments.length?(U=se,W):U},W.endAngle=function(se){return arguments.length?(H=se,W):H},W.padAngle=function(se){return arguments.length?(X=se,W):X},W};var D6={};e.layout.stack=function(){var C=z,N=kp,U=Sp,H=RG,X=LG,W=DG;function se(ne,fe){if(!(Je=ne.length))return ne;var we=ne.map(function(Ze,$e){return C.call(se,Ze,$e)}),Me=we.map(function(Ze){return Ze.map(function($e,He){return[X.call(se,$e,He),W.call(se,$e,He)]})}),De=N.call(se,Me,fe);we=e.permute(we,De),Me=e.permute(Me,De);var Re=U.call(se,Me,fe),Ge=we[0].length,Je,Ie,Ne,Ue;for(Ne=0;Ne<Ge;++Ne)for(H.call(se,we[0][Ne],Ue=Re[Ne],Me[0][Ne][1]),Ie=1;Ie<Je;++Ie)H.call(se,we[Ie][Ne],Ue+=Me[Ie-1][Ne][1],Me[Ie][Ne][1]);return ne}return se.values=function(ne){return arguments.length?(C=ne,se):C},se.order=function(ne){return arguments.length?(N=typeof ne=="function"?ne:FG.get(ne)||kp,se):N},se.offset=function(ne){return arguments.length?(U=typeof ne=="function"?ne:PG.get(ne)||Sp,se):U},se.x=function(ne){return arguments.length?(X=ne,se):X},se.y=function(ne){return arguments.length?(W=ne,se):W},se.out=function(ne){return arguments.length?(H=ne,se):H},se};function LG(C){return C.x}function DG(C){return C.y}function RG(C,N,U){C.y0=N,C.y=U}var FG=e.map({"inside-out":function(C){var N=C.length,U,H,X=C.map(IG),W=C.map(zG),se=e.range(N).sort(function(De,Re){return X[De]-X[Re]}),ne=0,fe=0,we=[],Me=[];for(U=0;U<N;++U)H=se[U],ne<fe?(ne+=W[H],we.push(H)):(fe+=W[H],Me.push(H));return Me.reverse().concat(we)},reverse:function(C){return e.range(C.length).reverse()},default:kp}),PG=e.map({silhouette:function(C){var N=C.length,U=C[0].length,H=[],X=0,W,se,ne,fe=[];for(se=0;se<U;++se){for(W=0,ne=0;W<N;W++)ne+=C[W][se][1];ne>X&&(X=ne),H.push(ne)}for(se=0;se<U;++se)fe[se]=(X-H[se])/2;return fe},wiggle:function(C){var N=C.length,U=C[0],H=U.length,X,W,se,ne,fe,we,Me,De,Re,Ge=[];for(Ge[0]=De=Re=0,W=1;W<H;++W){for(X=0,ne=0;X<N;++X)ne+=C[X][W][1];for(X=0,fe=0,Me=U[W][0]-U[W-1][0];X<N;++X){for(se=0,we=(C[X][W][1]-C[X][W-1][1])/(2*Me);se<X;++se)we+=(C[se][W][1]-C[se][W-1][1])/Me;fe+=we*C[X][W][1]}Ge[W]=De-=ne?fe/ne*Me:0,De<Re&&(Re=De)}for(W=0;W<H;++W)Ge[W]-=Re;return Ge},expand:function(C){var N=C.length,U=C[0].length,H=1/N,X,W,se,ne=[];for(W=0;W<U;++W){for(X=0,se=0;X<N;X++)se+=C[X][W][1];if(se)for(X=0;X<N;X++)C[X][W][1]/=se;else for(X=0;X<N;X++)C[X][W][1]=H}for(W=0;W<U;++W)ne[W]=0;return ne},zero:Sp});function kp(C){return e.range(C.length)}function Sp(C){for(var N=-1,U=C[0].length,H=[];++N<U;)H[N]=0;return H}function IG(C){for(var N=1,U=0,H=C[0][1],X,W=C.length;N<W;++N)(X=C[N][1])>H&&(U=N,H=X);return U}function zG(C){return C.reduce(NG,0)}function NG(C,N){return C+N[1]}e.layout.histogram=function(){var C=!0,N=Number,U=BG,H=qG;function X(W,Re){for(var ne=[],fe=W.map(N,this),we=U.call(this,fe,Re),Me=H.call(this,we,fe,Re),De,Re=-1,Ge=fe.length,Je=Me.length-1,Ie=C?1:1/Ge,Ne;++Re<Je;)De=ne[Re]=[],De.dx=Me[Re+1]-(De.x=Me[Re]),De.y=0;if(Je>0)for(Re=-1;++Re<Ge;)Ne=fe[Re],Ne>=we[0]&&Ne<=we[1]&&(De=ne[e.bisect(Me,Ne,1,Je)-1],De.y+=Ie,De.push(W[Re]));return ne}return X.value=function(W){return arguments.length?(N=W,X):N},X.range=function(W){return arguments.length?(U=Tr(W),X):U},X.bins=function(W){return arguments.length?(H=typeof W=="number"?function(se){return R6(se,W)}:Tr(W),X):H},X.frequency=function(W){return arguments.length?(C=!!W,X):C},X};function qG(C,N){return R6(C,Math.ceil(Math.log(N.length)/Math.LN2+1))}function R6(C,N){for(var U=-1,H=+C[0],X=(C[1]-H)/N,W=[];++U<=N;)W[U]=X*U+H;return W}function BG(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(OG),N=0,U=[1,1],H;function X(W,se){var ne=C.call(this,W,se),fe=ne[0],we=U[0],Me=U[1],De=H==null?Math.sqrt:typeof H=="function"?H:function(){return H};if(fe.x=fe.y=0,Vi(fe,function(Ge){Ge.r=+De(Ge.value)}),Vi(fe,I6),N){var Re=N*(H?1:Math.max(2*fe.r/we,2*fe.r/Me))/2;Vi(fe,function(Ge){Ge.r+=Re}),Vi(fe,I6),Vi(fe,function(Ge){Ge.r-=Re})}return z6(fe,we/2,Me/2,H?1:1/Math.max(2*fe.r/we,2*fe.r/Me)),ne}return X.size=function(W){return arguments.length?(U=W,X):U},X.radius=function(W){return arguments.length?(H=W==null||typeof W=="function"?W:+W,X):H},X.padding=function(W){return arguments.length?(N=+W,X):N},ef(X,C)};function OG(C,N){return C.value-N.value}function Cp(C,N){var U=C._pack_next;C._pack_next=N,N._pack_prev=C,N._pack_next=U,U._pack_prev=N}function F6(C,N){C._pack_next=N,N._pack_prev=C}function P6(C,N){var U=N.x-C.x,H=N.y-C.y,X=C.r+N.r;return .999*X*X>U*U+H*H}function I6(C){if(!(N=C.children)||!(Re=N.length))return;var N,U=1/0,H=-1/0,X=1/0,W=-1/0,se,ne,fe,we,Me,De,Re;function Ge(He){U=Math.min(He.x-He.r,U),H=Math.max(He.x+He.r,H),X=Math.min(He.y-He.r,X),W=Math.max(He.y+He.r,W)}if(N.forEach(UG),se=N[0],se.x=-se.r,se.y=0,Ge(se),Re>1&&(ne=N[1],ne.x=ne.r,ne.y=0,Ge(ne),Re>2))for(fe=N[2],N6(se,ne,fe),Ge(fe),Cp(se,fe),se._pack_prev=fe,Cp(fe,ne),ne=se._pack_next,we=3;we<Re;we++){N6(se,ne,fe=N[we]);var Je=0,Ie=1,Ne=1;for(Me=ne._pack_next;Me!==ne;Me=Me._pack_next,Ie++)if(P6(Me,fe)){Je=1;break}if(Je==1)for(De=se._pack_prev;De!==Me._pack_prev&&!P6(De,fe);De=De._pack_prev,Ne++);Je?(Ie<Ne||Ie==Ne&&ne.r<se.r?F6(se,ne=Me):F6(se=De,ne),we--):(Cp(se,fe),ne=fe,Ge(fe))}var Ue=(U+H)/2,Ze=(X+W)/2,$e=0;for(we=0;we<Re;we++)fe=N[we],fe.x-=Ue,fe.y-=Ze,$e=Math.max($e,fe.r+Math.sqrt(fe.x*fe.x+fe.y*fe.y));C.r=$e,N.forEach(HG)}function UG(C){C._pack_next=C._pack_prev=C}function HG(C){delete C._pack_next,delete C._pack_prev}function z6(C,N,U,H){var X=C.children;if(C.x=N+=H*C.x,C.y=U+=H*C.y,C.r*=H,X)for(var W=-1,se=X.length;++W<se;)z6(X[W],N,U,H)}function N6(C,N,U){var H=C.r+U.r,X=N.x-C.x,W=N.y-C.y;if(H&&(X||W)){var se=N.r+U.r,ne=X*X+W*W;se*=se,H*=H;var fe=.5+(H-se)/(2*ne),we=Math.sqrt(Math.max(0,2*se*(H+ne)-(H-=ne)*H-se*se))/(2*ne);U.x=C.x+fe*X+we*W,U.y=C.y+fe*W-we*X}else U.x=C.x+H,U.y=C.y}e.layout.tree=function(){var C=e.layout.hierarchy().sort(null).value(null),N=q6,U=[1,1],H=null;function X(Me,De){var Re=C.call(this,Me,De),Ge=Re[0],Je=W(Ge);if(Vi(Je,se),Je.parent.m=-Je.z,rf(Je,ne),H)rf(Ge,we);else{var Ie=Ge,Ne=Ge,Ue=Ge;rf(Ge,function(ar){ar.x<Ie.x&&(Ie=ar),ar.x>Ne.x&&(Ne=ar),ar.depth>Ue.depth&&(Ue=ar)});var Ze=N(Ie,Ne)/2-Ie.x,$e=U[0]/(Ne.x+N(Ne,Ie)/2+Ze),He=U[1]/(Ue.depth||1);rf(Ge,function(ar){ar.x=(ar.x+Ze)*$e,ar.y=ar.depth*He})}return Re}function W(Me){for(var De={A:null,children:[Me]},Re=[De],Ge;(Ge=Re.pop())!=null;)for(var Je=Ge.children,Ie,Ne=0,Ue=Je.length;Ne<Ue;++Ne)Re.push((Je[Ne]=Ie={_:Je[Ne],parent:Ge,children:(Ie=Je[Ne].children)&&Ie.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Ne}).a=Ie);return De.children[0]}function se(Me){var De=Me.children,Re=Me.parent.children,Ge=Me.i?Re[Me.i-1]:null;if(De.length){GG(Me);var Je=(De[0].z+De[De.length-1].z)/2;Ge?(Me.z=Ge.z+N(Me._,Ge._),Me.m=Me.z-Je):Me.z=Je}else Ge&&(Me.z=Ge.z+N(Me._,Ge._));Me.parent.A=fe(Me,Ge,Me.parent.A||Re[0])}function ne(Me){Me._.x=Me.z+Me.parent.m,Me.m+=Me.parent.m}function fe(Me,De,Re){if(De){for(var Ge=Me,Je=Me,Ie=De,Ne=Ge.parent.children[0],Ue=Ge.m,Ze=Je.m,$e=Ie.m,He=Ne.m,ar;Ie=Lp(Ie),Ge=Ep(Ge),Ie&&Ge;)Ne=Ep(Ne),Je=Lp(Je),Je.a=Me,ar=Ie.z+$e-Ge.z-Ue+N(Ie._,Ge._),ar>0&&(VG(YG(Ie,Me,Re),Me,ar),Ue+=ar,Ze+=ar),$e+=Ie.m,Ue+=Ge.m,He+=Ne.m,Ze+=Je.m;Ie&&!Lp(Je)&&(Je.t=Ie,Je.m+=$e-Ze),Ge&&!Ep(Ne)&&(Ne.t=Ge,Ne.m+=Ue-He,Re=Me)}return Re}function we(Me){Me.x*=U[0],Me.y=Me.depth*U[1]}return X.separation=function(Me){return arguments.length?(N=Me,X):N},X.size=function(Me){return arguments.length?(H=(U=Me)==null?we:null,X):H?null:U},X.nodeSize=function(Me){return arguments.length?(H=(U=Me)==null?null:we,X):H?U:null},ef(X,C)};function q6(C,N){return C.parent==N.parent?1:2}function Ep(C){var N=C.children;return N.length?N[0]:C.t}function Lp(C){var N=C.children,U;return(U=N.length)?N[U-1]:C.t}function VG(C,N,U){var H=U/(N.i-C.i);N.c-=H,N.s+=U,C.c+=H,N.z+=U,N.m+=U}function GG(C){for(var N=0,U=0,H=C.children,X=H.length,W;--X>=0;)W=H[X],W.z+=N,W.m+=N,N+=W.s+(U+=W.c)}function YG(C,N,U){return C.a.parent===N.parent?C.a:U}e.layout.cluster=function(){var C=e.layout.hierarchy().sort(null).value(null),N=q6,U=[1,1],H=!1;function X(W,se){var ne=C.call(this,W,se),fe=ne[0],we,Me=0;Vi(fe,function(Ie){var Ne=Ie.children;Ne&&Ne.length?(Ie.x=WG(Ne),Ie.y=XG(Ne)):(Ie.x=we?Me+=N(Ie,we):0,Ie.y=0,we=Ie)});var De=B6(fe),Re=O6(fe),Ge=De.x-N(De,Re)/2,Je=Re.x+N(Re,De)/2;return Vi(fe,H?function(Ie){Ie.x=(Ie.x-fe.x)*U[0],Ie.y=(fe.y-Ie.y)*U[1]}:function(Ie){Ie.x=(Ie.x-Ge)/(Je-Ge)*U[0],Ie.y=(1-(fe.y?Ie.y/fe.y:1))*U[1]}),ne}return X.separation=function(W){return arguments.length?(N=W,X):N},X.size=function(W){return arguments.length?(H=(U=W)==null,X):H?null:U},X.nodeSize=function(W){return arguments.length?(H=(U=W)!=null,X):H?U:null},ef(X,C)};function XG(C){return 1+e.max(C,function(N){return N.y})}function WG(C){return C.reduce(function(N,U){return N+U.x},0)/C.length}function B6(C){var N=C.children;return N&&N.length?B6(N[0]):C}function O6(C){var N=C.children,U;return N&&(U=N.length)?O6(N[U-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),N=Math.round,U=[1,1],H=null,X=Dp,W=!1,se,ne="squarify",fe=.5*(1+Math.sqrt(5));function we(Ie,Ne){for(var Ue=-1,Ze=Ie.length,$e,He;++Ue<Ze;)He=($e=Ie[Ue]).value*(Ne<0?0:Ne),$e.area=isNaN(He)||He<=0?0:He}function Me(Ie){var Ne=Ie.children;if(Ne&&Ne.length){var Ue=X(Ie),Ze=[],$e=Ne.slice(),He,ar=1/0,vr,pr=ne==="slice"?Ue.dx:ne==="dice"?Ue.dy:ne==="slice-dice"?Ie.depth&1?Ue.dy:Ue.dx:Math.min(Ue.dx,Ue.dy),dr;for(we($e,Ue.dx*Ue.dy/Ie.value),Ze.area=0;(dr=$e.length)>0;)Ze.push(He=$e[dr-1]),Ze.area+=He.area,ne!=="squarify"||(vr=Re(Ze,pr))<=ar?($e.pop(),ar=vr):(Ze.area-=Ze.pop().area,Ge(Ze,pr,Ue,!1),pr=Math.min(Ue.dx,Ue.dy),Ze.length=Ze.area=0,ar=1/0);Ze.length&&(Ge(Ze,pr,Ue,!0),Ze.length=Ze.area=0),Ne.forEach(Me)}}function De(Ie){var Ne=Ie.children;if(Ne&&Ne.length){var Ue=X(Ie),Ze=Ne.slice(),$e,He=[];for(we(Ze,Ue.dx*Ue.dy/Ie.value),He.area=0;$e=Ze.pop();)He.push($e),He.area+=$e.area,$e.z!=null&&(Ge(He,$e.z?Ue.dx:Ue.dy,Ue,!Ze.length),He.length=He.area=0);Ne.forEach(De)}}function Re(Ie,Ne){for(var Ue=Ie.area,Ze,$e=0,He=1/0,ar=-1,vr=Ie.length;++ar<vr;)(Ze=Ie[ar].area)&&(Ze<He&&(He=Ze),Ze>$e&&($e=Ze));return Ue*=Ue,Ne*=Ne,Ue?Math.max(Ne*$e*fe/Ue,Ue/(Ne*He*fe)):1/0}function Ge(Ie,Ne,Ue,Ze){var $e=-1,He=Ie.length,ar=Ue.x,vr=Ue.y,pr=Ne?N(Ie.area/Ne):0,dr;if(Ne==Ue.dx){for((Ze||pr>Ue.dy)&&(pr=Ue.dy);++$e<He;)dr=Ie[$e],dr.x=ar,dr.y=vr,dr.dy=pr,ar+=dr.dx=Math.min(Ue.x+Ue.dx-ar,pr?N(dr.area/pr):0);dr.z=!0,dr.dx+=Ue.x+Ue.dx-ar,Ue.y+=pr,Ue.dy-=pr}else{for((Ze||pr>Ue.dx)&&(pr=Ue.dx);++$e<He;)dr=Ie[$e],dr.x=ar,dr.y=vr,dr.dx=pr,vr+=dr.dy=Math.min(Ue.y+Ue.dy-vr,pr?N(dr.area/pr):0);dr.z=!1,dr.dy+=Ue.y+Ue.dy-vr,Ue.x+=pr,Ue.dx-=pr}}function Je(Ie){var Ne=se||C(Ie),Ue=Ne[0];return Ue.x=Ue.y=0,Ue.value?(Ue.dx=U[0],Ue.dy=U[1]):Ue.dx=Ue.dy=0,se&&C.revalue(Ue),we([Ue],Ue.dx*Ue.dy/Ue.value),(se?De:Me)(Ue),W&&(se=Ne),Ne}return Je.size=function(Ie){return arguments.length?(U=Ie,Je):U},Je.padding=function(Ie){if(!arguments.length)return H;function Ne($e){var He=Ie.call(Je,$e,$e.depth);return He==null?Dp($e):U6($e,typeof He=="number"?[He,He,He,He]:He)}function Ue($e){return U6($e,Ie)}var Ze;return X=(H=Ie)==null?Dp:(Ze=typeof Ie)=="function"?Ne:(Ze==="number"&&(Ie=[Ie,Ie,Ie,Ie]),Ue),Je},Je.round=function(Ie){return arguments.length?(N=Ie?Math.round:Number,Je):N!=Number},Je.sticky=function(Ie){return arguments.length?(W=Ie,se=null,Je):W},Je.ratio=function(Ie){return arguments.length?(fe=Ie,Je):fe},Je.mode=function(Ie){return arguments.length?(ne=Ie+"",Je):ne},ef(Je,C)};function Dp(C){return{x:C.x,y:C.y,dx:C.dx,dy:C.dy}}function U6(C,N){var U=C.x+N[3],H=C.y+N[0],X=C.dx-N[1]-N[3],W=C.dy-N[0]-N[2];return X<0&&(U+=X/2,X=0),W<0&&(H+=W/2,W=0),{x:U,y:H,dx:X,dy:W}}e.random={normal:function(C,N){var U=arguments.length;return U<2&&(N=1),U<1&&(C=0),function(){var H,X,W;do H=Math.random()*2-1,X=Math.random()*2-1,W=H*H+X*X;while(!W||W>1);return C+N*H*Math.sqrt(-2*Math.log(W)/W)}},logNormal:function(){var C=e.random.normal.apply(e,arguments);return function(){return Math.exp(C())}},bates:function(C){var N=e.random.irwinHall(C);return function(){return N()/C}},irwinHall:function(C){return function(){for(var N=0,U=0;U<C;U++)N+=Math.random();return N}}},e.scale={};function Av(C){var N=C[0],U=C[C.length-1];return N<U?[N,U]:[U,N]}function kv(C){return C.rangeExtent?C.rangeExtent():Av(C.range())}function ZG(C,N,U,H){var X=U(C[0],C[1]),W=H(N[0],N[1]);return function(se){return W(X(se))}}function Rp(C,N){var U=0,H=C.length-1,X=C[U],W=C[H],se;return W<X&&(se=U,U=H,H=se,se=X,X=W,W=se),C[U]=N.floor(X),C[H]=N.ceil(W),C}function H6(C){return C?{floor:function(N){return Math.floor(N/C)*C},ceil:function(N){return Math.ceil(N/C)*C}}:JG}var JG={floor:z,ceil:z};function $G(C,N,U,H){var X=[],W=[],se=0,ne=Math.min(C.length,N.length)-1;for(C[ne]<C[0]&&(C=C.slice().reverse(),N=N.slice().reverse());++se<=ne;)X.push(U(C[se-1],C[se])),W.push(H(N[se-1],N[se]));return function(fe){var we=e.bisect(C,fe,1,ne)-1;return W[we](X[we](fe))}}e.scale.linear=function(){return V6([0,1],[0,1],$l,!1)};function V6(C,N,U,H){var X,W;function se(){var fe=Math.min(C.length,N.length)>2?$G:ZG,we=H?gG:pG;return X=fe(C,N,we,U),W=fe(N,C,we,$l),ne}function ne(fe){return X(fe)}return ne.invert=function(fe){return W(fe)},ne.domain=function(fe){return arguments.length?(C=fe.map(Number),se()):C},ne.range=function(fe){return arguments.length?(N=fe,se()):N},ne.rangeRound=function(fe){return ne.range(fe).interpolate(T6)},ne.clamp=function(fe){return arguments.length?(H=fe,se()):H},ne.interpolate=function(fe){return arguments.length?(U=fe,se()):U},ne.ticks=function(fe){return Pp(C,fe)},ne.tickFormat=function(fe,we){return d3_scale_linearTickFormat(C,fe,we)},ne.nice=function(fe){return Y6(C,fe),se()},ne.copy=function(){return V6(C,N,U,H)},se()}function G6(C,N){return e.rebind(C,N,"range","rangeRound","interpolate","clamp")}function Y6(C,N){return Rp(C,H6(Fp(C,N)[2])),Rp(C,H6(Fp(C,N)[2])),C}function Fp(C,N){N==null&&(N=10);var U=Av(C),H=U[1]-U[0],X=Math.pow(10,Math.floor(Math.log(H/N)/Math.LN10)),W=N/H*X;return W<=.15?X*=10:W<=.35?X*=5:W<=.75&&(X*=2),U[0]=Math.ceil(U[0]/X)*X,U[1]=Math.floor(U[1]/X)*X+X*.5,U[2]=X,U}function Pp(C,N){return e.range.apply(e,Fp(C,N))}var KG={s:1,g:1,p:1,r:1,e:1};function X6(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function x3e(C,N){var U=X6(N[2]);return C in KG?Math.abs(U-X6(Math.max(m(N[0]),m(N[1]))))+ +(C!=="e"):U-(C==="%")*2}e.scale.log=function(){return W6(e.scale.linear().domain([0,1]),10,!0,[1,10])};function W6(C,N,U,H){function X(ne){return(U?Math.log(ne<0?0:ne):-Math.log(ne>0?0:-ne))/Math.log(N)}function W(ne){return U?Math.pow(N,ne):-Math.pow(N,-ne)}function se(ne){return C(X(ne))}return se.invert=function(ne){return W(C.invert(ne))},se.domain=function(ne){return arguments.length?(U=ne[0]>=0,C.domain((H=ne.map(Number)).map(X)),se):H},se.base=function(ne){return arguments.length?(N=+ne,C.domain(H.map(X)),se):N},se.nice=function(){var ne=Rp(H.map(X),U?Math:QG);return C.domain(ne),H=ne.map(W),se},se.ticks=function(){var ne=Av(H),fe=[],we=ne[0],Me=ne[1],De=Math.floor(X(we)),Re=Math.ceil(X(Me)),Ge=N%1?2:N;if(isFinite(Re-De)){if(U){for(;De<Re;De++)for(var Je=1;Je<Ge;Je++)fe.push(W(De)*Je);fe.push(W(De))}else for(fe.push(W(De));De++<Re;)for(var Je=Ge-1;Je>0;Je--)fe.push(W(De)*Je);for(De=0;fe[De]<we;De++);for(Re=fe.length;fe[Re-1]>Me;Re--);fe=fe.slice(De,Re)}return fe},se.copy=function(){return W6(C.copy(),N,U,H)},G6(se,C)}var QG={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return Z6(e.scale.linear(),1,[0,1])};function Z6(C,N,U){var H=Sv(N),X=Sv(1/N);function W(se){return C(H(se))}return W.invert=function(se){return X(C.invert(se))},W.domain=function(se){return arguments.length?(C.domain((U=se.map(Number)).map(H)),W):U},W.ticks=function(se){return Pp(U,se)},W.tickFormat=function(se,ne){return d3_scale_linearTickFormat(U,se,ne)},W.nice=function(se){return W.domain(Y6(U,se))},W.exponent=function(se){return arguments.length?(H=Sv(N=se),X=Sv(1/N),C.domain(U.map(H)),W):N},W.copy=function(){return Z6(C.copy(),N,U)},G6(W,C)}function Sv(C){return function(N){return N<0?-Math.pow(-N,C):Math.pow(N,C)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return J6([],{t:"range",a:[[]]})};function J6(C,N){var U,H,X;function W(ne){return H[((U.get(ne)||(N.t==="range"?U.set(ne,C.push(ne)):NaN))-1)%H.length]}function se(ne,fe){return e.range(C.length).map(function(we){return ne+fe*we})}return W.domain=function(ne){if(!arguments.length)return C;C=[],U=new b;for(var fe=-1,we=ne.length,Me;++fe<we;)U.has(Me=ne[fe])||U.set(Me,C.push(Me));return W[N.t].apply(W,N.a)},W.range=function(ne){return arguments.length?(H=ne,X=0,N={t:"range",a:arguments},W):H},W.rangePoints=function(ne,fe){arguments.length<2&&(fe=0);var we=ne[0],Me=ne[1],De=C.length<2?(we=(we+Me)/2,0):(Me-we)/(C.length-1+fe);return H=se(we+De*fe/2,De),X=0,N={t:"rangePoints",a:arguments},W},W.rangeRoundPoints=function(ne,fe){arguments.length<2&&(fe=0);var we=ne[0],Me=ne[1],De=C.length<2?(we=Me=Math.round((we+Me)/2),0):(Me-we)/(C.length-1+fe)|0;return H=se(we+Math.round(De*fe/2+(Me-we-(C.length-1+fe)*De)/2),De),X=0,N={t:"rangeRoundPoints",a:arguments},W},W.rangeBands=function(ne,fe,we){arguments.length<2&&(fe=0),arguments.length<3&&(we=fe);var Me=ne[1]<ne[0],De=ne[Me-0],Re=ne[1-Me],Ge=(Re-De)/(C.length-fe+2*we);return H=se(De+Ge*we,Ge),Me&&H.reverse(),X=Ge*(1-fe),N={t:"rangeBands",a:arguments},W},W.rangeRoundBands=function(ne,fe,we){arguments.length<2&&(fe=0),arguments.length<3&&(we=fe);var Me=ne[1]<ne[0],De=ne[Me-0],Re=ne[1-Me],Ge=Math.floor((Re-De)/(C.length-fe+2*we));return H=se(De+Math.round((Re-De-(C.length-fe)*Ge)/2),Ge),Me&&H.reverse(),X=Math.round(Ge*(1-fe)),N={t:"rangeRoundBands",a:arguments},W},W.rangeBand=function(){return X},W.rangeExtent=function(){return Av(N.a[0])},W.copy=function(){return J6(C,N)},W.domain(C)}e.scale.category10=function(){return e.scale.ordinal().range(jG)},e.scale.category20=function(){return e.scale.ordinal().range(eY)},e.scale.category20b=function(){return e.scale.ordinal().range(rY)},e.scale.category20c=function(){return e.scale.ordinal().range(tY)};var jG=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Ui),eY=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Ui),rY=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Ui),tY=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Ui);e.scale.quantile=function(){return $6([],[])};function $6(C,N){var U;function H(){var W=0,se=N.length;for(U=[];++W<se;)U[W-1]=e.quantile(C,W/se);return X}function X(W){if(!isNaN(W=+W))return N[e.bisect(U,W)]}return X.domain=function(W){return arguments.length?(C=W.map(p).filter(x).sort(c),H()):C},X.range=function(W){return arguments.length?(N=W,H()):N},X.quantiles=function(){return U},X.invertExtent=function(W){return W=N.indexOf(W),W<0?[NaN,NaN]:[W>0?U[W-1]:C[0],W<U.length?U[W]:C[C.length-1]]},X.copy=function(){return $6(C,N)},H()}e.scale.quantize=function(){return K6(0,1,[0,1])};function K6(C,N,U){var H,X;function W(ne){return U[Math.max(0,Math.min(X,Math.floor(H*(ne-C))))]}function se(){return H=U.length/(N-C),X=U.length-1,W}return W.domain=function(ne){return arguments.length?(C=+ne[0],N=+ne[ne.length-1],se()):[C,N]},W.range=function(ne){return arguments.length?(U=ne,se()):U},W.invertExtent=function(ne){return ne=U.indexOf(ne),ne=ne<0?NaN:ne/H+C,[ne,ne+1/H]},W.copy=function(){return K6(C,N,U)},se()}e.scale.threshold=function(){return Q6([.5],[0,1])};function Q6(C,N){function U(H){if(H<=H)return N[e.bisect(C,H)]}return U.domain=function(H){return arguments.length?(C=H,U):C},U.range=function(H){return arguments.length?(N=H,U):N},U.invertExtent=function(H){return H=N.indexOf(H),[C[H-1],C[H]]},U.copy=function(){return Q6(C,N)},U}e.scale.identity=function(){return j6([0,1])};function j6(C){function N(U){return+U}return N.invert=N,N.domain=N.range=function(U){return arguments.length?(C=U.map(N),N):C},N.ticks=function(U){return Pp(C,U)},N.tickFormat=function(U,H){return d3_scale_linearTickFormat(C,U,H)},N.copy=function(){return j6(C)},N}e.svg={};function nY(){return 0}e.svg.arc=function(){var C=aY,N=iY,U=nY,H=Cv,X=e_,W=r_,se=oY;function ne(){var we=Math.max(0,+C.apply(this,arguments)),Me=Math.max(0,+N.apply(this,arguments)),De=X.apply(this,arguments)-Ee,Re=W.apply(this,arguments)-Ee,Ge=Math.abs(Re-De),Je=De>Re?0:1;if(Me<we&&(Ie=Me,Me=we,we=Ie),Ge>=Ke)return fe(Me,Je)+(we?fe(we,1-Je):"")+"Z";var Ie,Ne,Ue,Ze,$e=0,He=0,ar,vr,pr,dr,mr,br,Nr,_r,Dr=[];if((Ze=(+se.apply(this,arguments)||0)/2)&&(Ue=H===Cv?Math.sqrt(we*we+Me*Me):+H.apply(this,arguments),Je||(He*=-1),Me&&(He=Mr(Ue/Me*Math.sin(Ze))),we&&($e=Mr(Ue/we*Math.sin(Ze)))),Me){ar=Me*Math.cos(De+He),vr=Me*Math.sin(De+He),pr=Me*Math.cos(Re-He),dr=Me*Math.sin(Re-He);var ct=Math.abs(Re-De-2*He)<=ir?0:1;if(He&&Ev(ar,vr,pr,dr)===Je^ct){var Jt=(De+Re)/2;ar=Me*Math.cos(Jt),vr=Me*Math.sin(Jt),pr=dr=null}}else ar=vr=0;if(we){mr=we*Math.cos(Re-$e),br=we*Math.sin(Re-$e),Nr=we*Math.cos(De+$e),_r=we*Math.sin(De+$e);var yt=Math.abs(De-Re+2*$e)<=ir?0:1;if($e&&Ev(mr,br,Nr,_r)===1-Je^yt){var fr=(De+Re)/2;mr=we*Math.cos(fr),br=we*Math.sin(fr),Nr=_r=null}}else mr=br=0;if(Ge>Xe&&(Ie=Math.min(Math.abs(Me-we)/2,+U.apply(this,arguments)))>.001){Ne=we<Me^Je?0:1;var qr=Ie,Ur=Ie;if(Ge<ir){var vt=Nr==null?[mr,br]:pr==null?[ar,vr]:mp([ar,vr],[Nr,_r],[pr,dr],[mr,br]),Ht=ar-vt[0],sn=vr-vt[1],Dn=pr-vt[0],Jn=dr-vt[1],la=1/Math.sin(Math.acos((Ht*Dn+sn*Jn)/(Math.sqrt(Ht*Ht+sn*sn)*Math.sqrt(Dn*Dn+Jn*Jn)))/2),$n=Math.sqrt(vt[0]*vt[0]+vt[1]*vt[1]);Ur=Math.min(Ie,(we-$n)/(la-1)),qr=Math.min(Ie,(Me-$n)/(la+1))}if(pr!=null){var pa=Lv(Nr==null?[mr,br]:[Nr,_r],[ar,vr],Me,qr,Je),zn=Lv([pr,dr],[mr,br],Me,qr,Je);Ie===qr?Dr.push("M",pa[0],"A",qr,",",qr," 0 0,",Ne," ",pa[1],"A",Me,",",Me," 0 ",1-Je^Ev(pa[1][0],pa[1][1],zn[1][0],zn[1][1]),",",Je," ",zn[1],"A",qr,",",qr," 0 0,",Ne," ",zn[0]):Dr.push("M",pa[0],"A",qr,",",qr," 0 1,",Ne," ",zn[0])}else Dr.push("M",ar,",",vr);if(Nr!=null){var ga=Lv([ar,vr],[Nr,_r],we,-Ur,Je),Ql=Lv([mr,br],pr==null?[ar,vr]:[pr,dr],we,-Ur,Je);Ie===Ur?Dr.push("L",Ql[0],"A",Ur,",",Ur," 0 0,",Ne," ",Ql[1],"A",we,",",we," 0 ",Je^Ev(Ql[1][0],Ql[1][1],ga[1][0],ga[1][1]),",",1-Je," ",ga[1],"A",Ur,",",Ur," 0 0,",Ne," ",ga[0]):Dr.push("L",Ql[0],"A",Ur,",",Ur," 0 0,",Ne," ",ga[0])}else Dr.push("L",mr,",",br)}else Dr.push("M",ar,",",vr),pr!=null&&Dr.push("A",Me,",",Me," 0 ",ct,",",Je," ",pr,",",dr),Dr.push("L",mr,",",br),Nr!=null&&Dr.push("A",we,",",we," 0 ",yt,",",1-Je," ",Nr,",",_r);return Dr.push("Z"),Dr.join("")}function fe(we,Me){return"M0,"+we+"A"+we+","+we+" 0 1,"+Me+" 0,"+-we+"A"+we+","+we+" 0 1,"+Me+" 0,"+we}return ne.innerRadius=function(we){return arguments.length?(C=Tr(we),ne):C},ne.outerRadius=function(we){return arguments.length?(N=Tr(we),ne):N},ne.cornerRadius=function(we){return arguments.length?(U=Tr(we),ne):U},ne.padRadius=function(we){return arguments.length?(H=we==Cv?Cv:Tr(we),ne):H},ne.startAngle=function(we){return arguments.length?(X=Tr(we),ne):X},ne.endAngle=function(we){return arguments.length?(W=Tr(we),ne):W},ne.padAngle=function(we){return arguments.length?(se=Tr(we),ne):se},ne.centroid=function(){var we=(+C.apply(this,arguments)+ +N.apply(this,arguments))/2,Me=(+X.apply(this,arguments)+ +W.apply(this,arguments))/2-Ee;return[Math.cos(Me)*we,Math.sin(Me)*we]},ne};var Cv="auto";function aY(C){return C.innerRadius}function iY(C){return C.outerRadius}function e_(C){return C.startAngle}function r_(C){return C.endAngle}function oY(C){return C&&C.padAngle}function Ev(C,N,U,H){return(C-U)*N-(N-H)*C>0?0:1}function Lv(C,N,U,H,X){var W=C[0]-N[0],se=C[1]-N[1],ne=(X?H:-H)/Math.sqrt(W*W+se*se),fe=ne*se,we=-ne*W,Me=C[0]+fe,De=C[1]+we,Re=N[0]+fe,Ge=N[1]+we,Je=(Me+Re)/2,Ie=(De+Ge)/2,Ne=Re-Me,Ue=Ge-De,Ze=Ne*Ne+Ue*Ue,$e=U-H,He=Me*Ge-Re*De,ar=(Ue<0?-1:1)*Math.sqrt(Math.max(0,$e*$e*Ze-He*He)),vr=(He*Ue-Ne*ar)/Ze,pr=(-He*Ne-Ue*ar)/Ze,dr=(He*Ue+Ne*ar)/Ze,mr=(-He*Ne+Ue*ar)/Ze,br=vr-Je,Nr=pr-Ie,_r=dr-Je,Dr=mr-Ie;return br*br+Nr*Nr>_r*_r+Dr*Dr&&(vr=dr,pr=mr),[[vr-fe,pr-we],[vr*U/$e,pr*U/$e]]}function t_(){return!0}function n_(C){var N=s0,U=Zu,H=t_,X=hi,W=X.key,se=.7;function ne(fe){var we=[],Me=[],De=-1,Re=fe.length,Ge,Je=Tr(N),Ie=Tr(U);function Ne(){we.push("M",X(C(Me),se))}for(;++De<Re;)H.call(this,Ge=fe[De],De)?Me.push([+Je.call(this,Ge,De),+Ie.call(this,Ge,De)]):Me.length&&(Ne(),Me=[]);return Me.length&&Ne(),we.length?we.join(""):null}return ne.x=function(fe){return arguments.length?(N=fe,ne):N},ne.y=function(fe){return arguments.length?(U=fe,ne):U},ne.defined=function(fe){return arguments.length?(H=fe,ne):H},ne.interpolate=function(fe){return arguments.length?(typeof fe=="function"?W=X=fe:W=(X=Ip.get(fe)||hi).key,ne):W},ne.tension=function(fe){return arguments.length?(se=fe,ne):se},ne}e.svg.line=function(){return n_(z)};var Ip=e.map({linear:hi,"linear-closed":a_,step:lY,"step-before":zp,"step-after":Np,basis:i_,"basis-open":cY,"basis-closed":vY,bundle:hY,cardinal:fY,"cardinal-open":sY,"cardinal-closed":uY,monotone:gY});Ip.forEach(function(C,N){N.key=C,N.closed=/-closed$/.test(C)});function hi(C){return C.length>1?C.join("L"):C+"Z"}function a_(C){return C.join("L")+"Z"}function lY(C){for(var N=0,U=C.length,H=C[0],X=[H[0],",",H[1]];++N<U;)X.push("H",(H[0]+(H=C[N])[0])/2,"V",H[1]);return U>1&&X.push("H",H[0]),X.join("")}function zp(C){for(var N=0,U=C.length,H=C[0],X=[H[0],",",H[1]];++N<U;)X.push("V",(H=C[N])[1],"H",H[0]);return X.join("")}function Np(C){for(var N=0,U=C.length,H=C[0],X=[H[0],",",H[1]];++N<U;)X.push("H",(H=C[N])[0],"V",H[1]);return X.join("")}function sY(C,N){return C.length<4?hi(C):C[1]+Dv(C.slice(1,-1),qp(C,N))}function uY(C,N){return C.length<3?a_(C):C[0]+Dv((C.push(C[0]),C),qp([C[C.length-2]].concat(C,[C[1]]),N))}function fY(C,N){return C.length<3?hi(C):C[0]+Dv(C,qp(C,N))}function Dv(C,N){if(N.length<1||C.length!=N.length&&C.length!=N.length+2)return hi(C);var U=C.length!=N.length,H="",X=C[0],W=C[1],se=N[0],ne=se,fe=1;if(U&&(H+="Q"+(W[0]-se[0]*2/3)+","+(W[1]-se[1]*2/3)+","+W[0]+","+W[1],X=C[1],fe=2),N.length>1){ne=N[1],W=C[fe],fe++,H+="C"+(X[0]+se[0])+","+(X[1]+se[1])+","+(W[0]-ne[0])+","+(W[1]-ne[1])+","+W[0]+","+W[1];for(var we=2;we<N.length;we++,fe++)W=C[fe],ne=N[we],H+="S"+(W[0]-ne[0])+","+(W[1]-ne[1])+","+W[0]+","+W[1]}if(U){var Me=C[fe];H+="Q"+(W[0]+ne[0]*2/3)+","+(W[1]+ne[1]*2/3)+","+Me[0]+","+Me[1]}return H}function qp(C,N){for(var U=[],H=(1-N)/2,X,W=C[0],se=C[1],ne=1,fe=C.length;++ne<fe;)X=W,W=se,se=C[ne],U.push([H*(se[0]-X[0]),H*(se[1]-X[1])]);return U}function i_(C){if(C.length<3)return hi(C);var N=1,U=C.length,H=C[0],X=H[0],W=H[1],se=[X,X,X,(H=C[1])[0]],ne=[W,W,W,H[1]],fe=[X,",",W,"L",Ga(Jo,se),",",Ga(Jo,ne)];for(C.push(C[U-1]);++N<=U;)H=C[N],se.shift(),se.push(H[0]),ne.shift(),ne.push(H[1]),Bp(fe,se,ne);return C.pop(),fe.push("L",H),fe.join("")}function cY(C){if(C.length<4)return hi(C);for(var N=[],U=-1,H=C.length,X,W=[0],se=[0];++U<3;)X=C[U],W.push(X[0]),se.push(X[1]);for(N.push(Ga(Jo,W)+","+Ga(Jo,se)),--U;++U<H;)X=C[U],W.shift(),W.push(X[0]),se.shift(),se.push(X[1]),Bp(N,W,se);return N.join("")}function vY(C){for(var N,U=-1,H=C.length,X=H+4,W,se=[],ne=[];++U<4;)W=C[U%H],se.push(W[0]),ne.push(W[1]);for(N=[Ga(Jo,se),",",Ga(Jo,ne)],--U;++U<X;)W=C[U%H],se.shift(),se.push(W[0]),ne.shift(),ne.push(W[1]),Bp(N,se,ne);return N.join("")}function hY(C,N){var U=C.length-1;if(U)for(var H=C[0][0],X=C[0][1],W=C[U][0]-H,se=C[U][1]-X,ne=-1,fe,we;++ne<=U;)fe=C[ne],we=ne/U,fe[0]=N*fe[0]+(1-N)*(H+we*W),fe[1]=N*fe[1]+(1-N)*(X+we*se);return i_(C)}function Ga(C,N){return C[0]*N[0]+C[1]*N[1]+C[2]*N[2]+C[3]*N[3]}var o_=[0,2/3,1/3,0],l_=[0,1/3,2/3,0],Jo=[0,1/6,2/3,1/6];function Bp(C,N,U){C.push("C",Ga(o_,N),",",Ga(o_,U),",",Ga(l_,N),",",Ga(l_,U),",",Ga(Jo,N),",",Ga(Jo,U))}function Op(C,N){return(N[1]-C[1])/(N[0]-C[0])}function dY(C){for(var N=0,U=C.length-1,H=[],X=C[0],W=C[1],se=H[0]=Op(X,W);++N<U;)H[N]=(se+(se=Op(X=W,W=C[N+1])))/2;return H[N]=se,H}function pY(C){for(var N=[],U,H,X,W,se=dY(C),ne=-1,fe=C.length-1;++ne<fe;)U=Op(C[ne],C[ne+1]),m(U)<Xe?se[ne]=se[ne+1]=0:(H=se[ne]/U,X=se[ne+1]/U,W=H*H+X*X,W>9&&(W=U*3/Math.sqrt(W),se[ne]=W*H,se[ne+1]=W*X));for(ne=-1;++ne<=fe;)W=(C[Math.min(fe,ne+1)][0]-C[Math.max(0,ne-1)][0])/(6*(1+se[ne]*se[ne])),N.push([W||0,se[ne]*W||0]);return N}function gY(C){return C.length<3?hi(C):C[0]+Dv(C,pY(C))}e.svg.line.radial=function(){var C=n_(s_);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function s_(C){for(var N,U=-1,H=C.length,X,W;++U<H;)N=C[U],X=N[0],W=N[1]-Ee,N[0]=X*Math.cos(W),N[1]=X*Math.sin(W);return C}function u_(C){var N=s0,U=s0,H=0,X=Zu,W=t_,se=hi,ne=se.key,fe=se,we="L",Me=.7;function De(Re){var Ge=[],Je=[],Ie=[],Ne=-1,Ue=Re.length,Ze,$e=Tr(N),He=Tr(H),ar=N===U?function(){return pr}:Tr(U),vr=H===X?function(){return dr}:Tr(X),pr,dr;function mr(){Ge.push("M",se(C(Ie),Me),we,fe(C(Je.reverse()),Me),"Z")}for(;++Ne<Ue;)W.call(this,Ze=Re[Ne],Ne)?(Je.push([pr=+$e.call(this,Ze,Ne),dr=+He.call(this,Ze,Ne)]),Ie.push([+ar.call(this,Ze,Ne),+vr.call(this,Ze,Ne)])):Je.length&&(mr(),Je=[],Ie=[]);return Je.length&&mr(),Ge.length?Ge.join(""):null}return De.x=function(Re){return arguments.length?(N=U=Re,De):U},De.x0=function(Re){return arguments.length?(N=Re,De):N},De.x1=function(Re){return arguments.length?(U=Re,De):U},De.y=function(Re){return arguments.length?(H=X=Re,De):X},De.y0=function(Re){return arguments.length?(H=Re,De):H},De.y1=function(Re){return arguments.length?(X=Re,De):X},De.defined=function(Re){return arguments.length?(W=Re,De):W},De.interpolate=function(Re){return arguments.length?(typeof Re=="function"?ne=se=Re:ne=(se=Ip.get(Re)||hi).key,fe=se.reverse||se,we=se.closed?"M":"L",De):ne},De.tension=function(Re){return arguments.length?(Me=Re,De):Me},De}zp.reverse=Np,Np.reverse=zp,e.svg.area=function(){return u_(z)},e.svg.area.radial=function(){var C=u_(s_);return C.radius=C.x,delete C.x,C.innerRadius=C.x0,delete C.x0,C.outerRadius=C.x1,delete C.x1,C.angle=C.y,delete C.y,C.startAngle=C.y0,delete C.y0,C.endAngle=C.y1,delete C.y1,C};function f_(C){return C.source}function c_(C){return C.target}e.svg.chord=function(){var C=f_,N=c_,U=yY,H=e_,X=r_;function W(Me,De){var Re=se(this,C,Me,De),Ge=se(this,N,Me,De);return"M"+Re.p0+fe(Re.r,Re.p1,Re.a1-Re.a0)+(ne(Re,Ge)?we(Re.r,Re.p1,Re.r,Re.p0):we(Re.r,Re.p1,Ge.r,Ge.p0)+fe(Ge.r,Ge.p1,Ge.a1-Ge.a0)+we(Ge.r,Ge.p1,Re.r,Re.p0))+"Z"}function se(Me,De,Re,Ge){var Je=De.call(Me,Re,Ge),Ie=U.call(Me,Je,Ge),Ne=H.call(Me,Je,Ge)-Ee,Ue=X.call(Me,Je,Ge)-Ee;return{r:Ie,a0:Ne,a1:Ue,p0:[Ie*Math.cos(Ne),Ie*Math.sin(Ne)],p1:[Ie*Math.cos(Ue),Ie*Math.sin(Ue)]}}function ne(Me,De){return Me.a0==De.a0&&Me.a1==De.a1}function fe(Me,De,Re){return"A"+Me+","+Me+" 0 "+ +(Re>ir)+",1 "+De}function we(Me,De,Re,Ge){return"Q 0,0 "+Ge}return W.radius=function(Me){return arguments.length?(U=Tr(Me),W):U},W.source=function(Me){return arguments.length?(C=Tr(Me),W):C},W.target=function(Me){return arguments.length?(N=Tr(Me),W):N},W.startAngle=function(Me){return arguments.length?(H=Tr(Me),W):H},W.endAngle=function(Me){return arguments.length?(X=Tr(Me),W):X},W};function yY(C){return C.radius}e.svg.diagonal=function(){var C=f_,N=c_,U=v_;function H(X,W){var se=C.call(this,X,W),ne=N.call(this,X,W),fe=(se.y+ne.y)/2,we=[se,{x:se.x,y:fe},{x:ne.x,y:fe},ne];return we=we.map(U),"M"+we[0]+"C"+we[1]+" "+we[2]+" "+we[3]}return H.source=function(X){return arguments.length?(C=Tr(X),H):C},H.target=function(X){return arguments.length?(N=Tr(X),H):N},H.projection=function(X){return arguments.length?(U=X,H):U},H};function v_(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),N=v_,U=C.projection;return C.projection=function(H){return arguments.length?U(mY(N=H)):N},C};function mY(C){return function(){var N=C.apply(this,arguments),U=N[0],H=N[1]-Ee;return[U*Math.cos(H),U*Math.sin(H)]}}e.svg.symbol=function(){var C=xY,N=bY;function U(H,X){return(d_.get(C.call(this,H,X))||h_)(N.call(this,H,X))}return U.type=function(H){return arguments.length?(C=Tr(H),U):C},U.size=function(H){return arguments.length?(N=Tr(H),U):N},U};function bY(){return 64}function xY(){return"circle"}function h_(C){var N=Math.sqrt(C/ir);return"M0,"+N+"A"+N+","+N+" 0 1,1 0,"+-N+"A"+N+","+N+" 0 1,1 0,"+N+"Z"}var d_=e.map({circle:h_,cross:function(C){var N=Math.sqrt(C/5)/2;return"M"+-3*N+","+-N+"H"+-N+"V"+-3*N+"H"+N+"V"+-N+"H"+3*N+"V"+N+"H"+N+"V"+3*N+"H"+-N+"V"+N+"H"+-3*N+"Z"},diamond:function(C){var N=Math.sqrt(C/(2*p_)),U=N*p_;return"M0,"+-N+"L"+U+",0 0,"+N+" "+-U+",0Z"},square:function(C){var N=Math.sqrt(C)/2;return"M"+-N+","+-N+"L"+N+","+-N+" "+N+","+N+" "+-N+","+N+"Z"},"triangle-down":function(C){var N=Math.sqrt(C/Rv),U=N*Rv/2;return"M0,"+U+"L"+N+","+-U+" "+-N+","+-U+"Z"},"triangle-up":function(C){var N=Math.sqrt(C/Rv),U=N*Rv/2;return"M0,"+-U+"L"+N+","+U+" "+-N+","+U+"Z"}});e.svg.symbolTypes=d_.keys();var Rv=Math.sqrt(3),p_=Math.tan(30*ze);Q.transition=function(C){for(var N=Kl||++y_,U=Hp(C),H=[],X,W,se=Pv||{time:Date.now(),ease:QV,delay:0,duration:250},ne=-1,fe=this.length;++ne<fe;){H.push(X=[]);for(var we=this[ne],Me=-1,De=we.length;++Me<De;)(W=we[Me])&&Iv(W,Me,U,N,se),X.push(W)}return tf(H,U,N)},Q.interrupt=function(C){return this.each(C==null?Fv:g_(Hp(C)))};var Fv=g_(Hp());function g_(C){return function(){var N,U,H;(N=this[C])&&(H=N[U=N.active])&&(H.timer.c=null,H.timer.t=NaN,--N.count?delete N[U]:delete this[C],N.active+=.5,H.event&&H.event.interrupt.call(this,this.__data__,H.index))}}function tf(C,N,U){return q(C,ln),C.namespace=N,C.id=U,C}var ln=[],y_=0,Kl,Pv;ln.call=Q.call,ln.empty=Q.empty,ln.node=Q.node,ln.size=Q.size,e.transition=function(C,N){return C&&C.transition?Kl?C.transition(N):C:e.selection().transition(C)},e.transition.prototype=ln,ln.select=function(C){var N=this.id,U=this.namespace,H=[],X,W,se;C=re(C);for(var ne=-1,fe=this.length;++ne<fe;){H.push(X=[]);for(var we=this[ne],Me=-1,De=we.length;++Me<De;)(se=we[Me])&&(W=C.call(se,se.__data__,Me,ne))?("__data__"in se&&(W.__data__=se.__data__),Iv(W,Me,U,N,se[U][N]),X.push(W)):X.push(null)}return tf(H,U,N)},ln.selectAll=function(C){var N=this.id,U=this.namespace,H=[],X,W,se,ne,fe;C=ue(C);for(var we=-1,Me=this.length;++we<Me;)for(var De=this[we],Re=-1,Ge=De.length;++Re<Ge;)if(se=De[Re]){fe=se[U][N],W=C.call(se,se.__data__,Re,we),H.push(X=[]);for(var Je=-1,Ie=W.length;++Je<Ie;)(ne=W[Je])&&Iv(ne,Je,U,N,fe),X.push(ne)}return tf(H,U,N)},ln.filter=function(C){var N=[],U,H,X;typeof C!="function"&&(C=oe(C));for(var W=0,se=this.length;W<se;W++){N.push(U=[]);for(var H=this[W],ne=0,fe=H.length;ne<fe;ne++)(X=H[ne])&&C.call(X,X.__data__,ne,W)&&U.push(X)}return tf(N,this.namespace,this.id)},ln.tween=function(C,N){var U=this.id,H=this.namespace;return arguments.length<2?this.node()[H][U].tween.get(C):he(this,N==null?function(X){X[H][U].tween.remove(C)}:function(X){X[H][U].tween.set(C,N)})};function Up(C,N,U,H){var X=C.id,W=C.namespace;return he(C,typeof U=="function"?function(se,ne,fe){se[W][X].tween.set(N,H(U.call(se,se.__data__,ne,fe)))}:(U=H(U),function(se){se[W][X].tween.set(N,U)}))}ln.attr=function(C,N){if(arguments.length<2){for(N in C)this.attr(N,C[N]);return this}var U=C=="transform"?C6:$l,H=e.ns.qualify(C);function X(){this.removeAttribute(H)}function W(){this.removeAttributeNS(H.space,H.local)}function se(fe){return fe==null?X:(fe+="",function(){var we=this.getAttribute(H),Me;return we!==fe&&(Me=U(we,fe),function(De){this.setAttribute(H,Me(De))})})}function ne(fe){return fe==null?W:(fe+="",function(){var we=this.getAttributeNS(H.space,H.local),Me;return we!==fe&&(Me=U(we,fe),function(De){this.setAttributeNS(H.space,H.local,Me(De))})})}return Up(this,"attr."+C,N,H.local?ne:se)},ln.attrTween=function(C,N){var U=e.ns.qualify(C);function H(W,se){var ne=N.call(this,W,se,this.getAttribute(U));return ne&&function(fe){this.setAttribute(U,ne(fe))}}function X(W,se){var ne=N.call(this,W,se,this.getAttributeNS(U.space,U.local));return ne&&function(fe){this.setAttributeNS(U.space,U.local,ne(fe))}}return this.tween("attr."+C,U.local?X:H)},ln.style=function(C,N,U){var H=arguments.length;if(H<3){if(typeof C!="string"){H<2&&(N="");for(U in C)this.style(U,C[U],N);return this}U=""}function X(){this.style.removeProperty(C)}function W(se){return se==null?X:(se+="",function(){var ne=o(this).getComputedStyle(this,null).getPropertyValue(C),fe;return ne!==se&&(fe=$l(ne,se),function(we){this.style.setProperty(C,fe(we),U)})})}return Up(this,"style."+C,N,W)},ln.styleTween=function(C,N,U){arguments.length<3&&(U="");function H(X,W){var se=N.call(this,X,W,o(this).getComputedStyle(this,null).getPropertyValue(C));return se&&function(ne){this.style.setProperty(C,se(ne),U)}}return this.tween("style."+C,H)},ln.text=function(C){return Up(this,"text",C,_Y)};function _Y(C){return C==null&&(C=""),function(){this.textContent=C}}ln.remove=function(){var C=this.namespace;return this.each("end.transition",function(){var N;this[C].count<2&&(N=this.parentNode)&&N.removeChild(this)})},ln.ease=function(C){var N=this.id,U=this.namespace;return arguments.length<1?this.node()[U][N].ease:(typeof C!="function"&&(C=e.ease.apply(e,arguments)),he(this,function(H){H[U][N].ease=C}))},ln.delay=function(C){var N=this.id,U=this.namespace;return arguments.length<1?this.node()[U][N].delay:he(this,typeof C=="function"?function(H,X,W){H[U][N].delay=+C.call(H,H.__data__,X,W)}:(C=+C,function(H){H[U][N].delay=C}))},ln.duration=function(C){var N=this.id,U=this.namespace;return arguments.length<1?this.node()[U][N].duration:he(this,typeof C=="function"?function(H,X,W){H[U][N].duration=Math.max(1,C.call(H,H.__data__,X,W))}:(C=Math.max(1,C),function(H){H[U][N].duration=C}))},ln.each=function(C,N){var U=this.id,H=this.namespace;if(arguments.length<2){var X=Pv,W=Kl;try{Kl=U,he(this,function(se,ne,fe){Pv=se[H][U],C.call(se,se.__data__,ne,fe)})}finally{Pv=X,Kl=W}}else he(this,function(se){var ne=se[H][U];(ne.event||(ne.event=e.dispatch("start","end","interrupt"))).on(C,N)});return this},ln.transition=function(){for(var C=this.id,N=++y_,U=this.namespace,H=[],X,W,se,ne,fe=0,we=this.length;fe<we;fe++){H.push(X=[]);for(var W=this[fe],Me=0,De=W.length;Me<De;Me++)(se=W[Me])&&(ne=se[U][C],Iv(se,Me,U,N,{time:ne.time,ease:ne.ease,delay:ne.delay+ne.duration,duration:ne.duration})),X.push(se)}return tf(H,U,N)};function Hp(C){return C==null?"__transition__":"__transition_"+C+"__"}function Iv(C,N,U,H,X){var W=C[U]||(C[U]={active:0,count:0}),se=W[H],ne,fe,we,Me,De;function Re(Ie){var Ne=se.delay;if(fe.t=Ne+ne,Ne<=Ie)return Ge(Ie-Ne);fe.c=Ge}function Ge(Ie){var Ne=W.active,Ue=W[Ne];Ue&&(Ue.timer.c=null,Ue.timer.t=NaN,--W.count,delete W[Ne],Ue.event&&Ue.event.interrupt.call(C,C.__data__,Ue.index));for(var Ze in W)if(+Ze<H){var $e=W[Ze];$e.timer.c=null,$e.timer.t=NaN,--W.count,delete W[Ze]}fe.c=Je,mv(function(){return fe.c&&Je(Ie||1)&&(fe.c=null,fe.t=NaN),1},0,ne),W.active=H,se.event&&se.event.start.call(C,C.__data__,N),De=[],se.tween.forEach(function(He,ar){(ar=ar.call(C,C.__data__,N))&&De.push(ar)}),Me=se.ease,we=se.duration}function Je(Ie){for(var Ne=Ie/we,Ue=Me(Ne),Ze=De.length;Ze>0;)De[--Ze].call(C,Ue);if(Ne>=1)return se.event&&se.event.end.call(C,C.__data__,N),--W.count?delete W[H]:delete C[U],1}se||(ne=X.time,fe=mv(Re,0,ne),se=W[H]={tween:new b,time:ne,timer:fe,delay:X.delay,duration:X.duration,ease:X.ease,index:N},X=null,++W.count)}e.svg.axis=function(){var C=e.scale.linear(),N=m_,U=6,H=6,X=3,W=[10],se=null,ne;function fe(we){we.each(function(){var Me=e.select(this),De=this.__chart__||C,Re=this.__chart__=C.copy(),Ge=se==null?Re.ticks?Re.ticks.apply(Re,W):Re.domain():se,Je=ne==null?Re.tickFormat?Re.tickFormat.apply(Re,W):z:ne,Ie=Me.selectAll(".tick").data(Ge,Re),Ne=Ie.enter().insert("g",".domain").attr("class","tick").style("opacity",Xe),Ue=e.transition(Ie.exit()).style("opacity",Xe).remove(),Ze=e.transition(Ie.order()).style("opacity",1),$e=Math.max(U,0)+X,He,ar=kv(Re),vr=Me.selectAll(".domain").data([0]),pr=(vr.enter().append("path").attr("class","domain"),e.transition(vr));Ne.append("line"),Ne.append("text");var dr=Ne.select("line"),mr=Ze.select("line"),br=Ie.select("text").text(Je),Nr=Ne.select("text"),_r=Ze.select("text"),Dr=N==="top"||N==="left"?-1:1,ct,Jt,yt,fr;if(N==="bottom"||N==="top"?(He=MY,ct="x",yt="y",Jt="x2",fr="y2",br.attr("dy",Dr<0?"0em":".71em").style("text-anchor","middle"),pr.attr("d","M"+ar[0]+","+Dr*H+"V0H"+ar[1]+"V"+Dr*H)):(He=TY,ct="y",yt="x",Jt="y2",fr="x2",br.attr("dy",".32em").style("text-anchor",Dr<0?"end":"start"),pr.attr("d","M"+Dr*H+","+ar[0]+"H0V"+ar[1]+"H"+Dr*H)),dr.attr(fr,Dr*U),Nr.attr(yt,Dr*$e),mr.attr(Jt,0).attr(fr,Dr*U),_r.attr(ct,0).attr(yt,Dr*$e),Re.rangeBand){var qr=Re,Ur=qr.rangeBand()/2;De=Re=function(vt){return qr(vt)+Ur}}else De.rangeBand?De=Re:Ue.call(He,Re,De);Ne.call(He,De,Re),Ze.call(He,Re,Re)})}return fe.scale=function(we){return arguments.length?(C=we,fe):C},fe.orient=function(we){return arguments.length?(N=we in wY?we+"":m_,fe):N},fe.ticks=function(){return arguments.length?(W=t(arguments),fe):W},fe.tickValues=function(we){return arguments.length?(se=we,fe):se},fe.tickFormat=function(we){return arguments.length?(ne=we,fe):ne},fe.tickSize=function(we){var Me=arguments.length;return Me?(U=+we,H=+arguments[Me-1],fe):U},fe.innerTickSize=function(we){return arguments.length?(U=+we,fe):U},fe.outerTickSize=function(we){return arguments.length?(H=+we,fe):H},fe.tickPadding=function(we){return arguments.length?(X=+we,fe):X},fe.tickSubdivide=function(){return arguments.length&&fe},fe};var m_="bottom",wY={top:1,right:1,bottom:1,left:1};function MY(C,N,U){C.attr("transform",function(H){var X=N(H);return"translate("+(isFinite(X)?X:U(H))+",0)"})}function TY(C,N,U){C.attr("transform",function(H){var X=N(H);return"translate(0,"+(isFinite(X)?X:U(H))+")"})}e.svg.brush=function(){var C=j(Me,"brushstart","brush","brushend"),N=null,U=null,H=[0,0],X=[0,0],W,se,ne=!0,fe=!0,we=Vp[0];function Me(Ie){Ie.each(function(){var Ne=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Je).on("touchstart.brush",Je),Ue=Ne.selectAll(".background").data([0]);Ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ne.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ze=Ne.selectAll(".resize").data(we,z);Ze.exit().remove(),Ze.enter().append("g").attr("class",function(vr){return"resize "+vr}).style("cursor",function(vr){return AY[vr]}).append("rect").attr("x",function(vr){return/[ew]$/.test(vr)?-3:null}).attr("y",function(vr){return/^[ns]/.test(vr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ze.style("display",Me.empty()?"none":null);var $e=e.transition(Ne),He=e.transition(Ue),ar;N&&(ar=kv(N),He.attr("x",ar[0]).attr("width",ar[1]-ar[0]),Re($e)),U&&(ar=kv(U),He.attr("y",ar[0]).attr("height",ar[1]-ar[0]),Ge($e)),De($e)})}Me.event=function(Ie){Ie.each(function(){var Ne=C.of(this,arguments),Ue={x:H,y:X,i:W,j:se},Ze=this.__chart__||Ue;this.__chart__=Ue,Kl?e.select(this).transition().each("start.brush",function(){W=Ze.i,se=Ze.j,H=Ze.x,X=Ze.y,Ne({type:"brushstart"})}).tween("brush:brush",function(){var $e=Tv(H,Ue.x),He=Tv(X,Ue.y);return W=se=null,function(ar){H=Ue.x=$e(ar),X=Ue.y=He(ar),Ne({type:"brush",mode:"resize"})}}).each("end.brush",function(){W=Ue.i,se=Ue.j,Ne({type:"brush",mode:"resize"}),Ne({type:"brushend"})}):(Ne({type:"brushstart"}),Ne({type:"brush",mode:"resize"}),Ne({type:"brushend"}))})};function De(Ie){Ie.selectAll(".resize").attr("transform",function(Ne){return"translate("+H[+/e$/.test(Ne)]+","+X[+/^s/.test(Ne)]+")"})}function Re(Ie){Ie.select(".extent").attr("x",H[0]),Ie.selectAll(".extent,.n>rect,.s>rect").attr("width",H[1]-H[0])}function Ge(Ie){Ie.select(".extent").attr("y",X[0]),Ie.selectAll(".extent,.e>rect,.w>rect").attr("height",X[1]-X[0])}function Je(){var Ie=this,Ne=e.select(e.event.target),Ue=C.of(Ie,arguments),Ze=e.select(Ie),$e=Ne.datum(),He=!/^(n|s)$/.test($e)&&N,ar=!/^(e|w)$/.test($e)&&U,vr=Ne.classed("extent"),pr=qe(Ie),dr,mr=e.mouse(Ie),br,Nr=e.select(o(Ie)).on("keydown.brush",ct).on("keyup.brush",Jt);if(e.event.changedTouches?Nr.on("touchmove.brush",yt).on("touchend.brush",qr):Nr.on("mousemove.brush",yt).on("mouseup.brush",qr),Ze.interrupt().selectAll("*").interrupt(),vr)mr[0]=H[0]-mr[0],mr[1]=X[0]-mr[1];else if($e){var _r=+/w$/.test($e),Dr=+/^n/.test($e);br=[H[1-_r]-mr[0],X[1-Dr]-mr[1]],mr[0]=H[_r],mr[1]=X[Dr]}else e.event.altKey&&(dr=mr.slice());Ze.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ne.style("cursor")),Ue({type:"brushstart"}),yt();function ct(){e.event.keyCode==32&&(vr||(dr=null,mr[0]-=H[1],mr[1]-=X[1],vr=2),V())}function Jt(){e.event.keyCode==32&&vr==2&&(mr[0]+=H[1],mr[1]+=X[1],vr=0,V())}function yt(){var Ur=e.mouse(Ie),vt=!1;br&&(Ur[0]+=br[0],Ur[1]+=br[1]),vr||(e.event.altKey?(dr||(dr=[(H[0]+H[1])/2,(X[0]+X[1])/2]),mr[0]=H[+(Ur[0]<dr[0])],mr[1]=X[+(Ur[1]<dr[1])]):dr=null),He&&fr(Ur,N,0)&&(Re(Ze),vt=!0),ar&&fr(Ur,U,1)&&(Ge(Ze),vt=!0),vt&&(De(Ze),Ue({type:"brush",mode:vr?"move":"resize"}))}function fr(Ur,vt,Ht){var sn=kv(vt),Dn=sn[0],Jn=sn[1],la=mr[Ht],$n=Ht?X:H,pa=$n[1]-$n[0],zn,ga;if(vr&&(Dn-=la,Jn-=pa+la),zn=(Ht?fe:ne)?Math.max(Dn,Math.min(Jn,Ur[Ht])):Ur[Ht],vr?ga=(zn+=la)+pa:(dr&&(la=Math.max(Dn,Math.min(Jn,2*dr[Ht]-zn))),la<zn?(ga=zn,zn=la):ga=la),$n[0]!=zn||$n[1]!=ga)return Ht?se=null:W=null,$n[0]=zn,$n[1]=ga,!0}function qr(){yt(),Ze.style("pointer-events","all").selectAll(".resize").style("display",Me.empty()?"none":null),e.select("body").style("cursor",null),Nr.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),pr(),Ue({type:"brushend"})}}return Me.x=function(Ie){return arguments.length?(N=Ie,we=Vp[!N<<1|!U],Me):N},Me.y=function(Ie){return arguments.length?(U=Ie,we=Vp[!N<<1|!U],Me):U},Me.clamp=function(Ie){return arguments.length?(N&&U?(ne=!!Ie[0],fe=!!Ie[1]):N?ne=!!Ie:U&&(fe=!!Ie),Me):N&&U?[ne,fe]:N?ne:U?fe:null},Me.extent=function(Ie){var Ne,Ue,Ze,$e,He;return arguments.length?(N&&(Ne=Ie[0],Ue=Ie[1],U&&(Ne=Ne[0],Ue=Ue[0]),W=[Ne,Ue],N.invert&&(Ne=N(Ne),Ue=N(Ue)),Ue<Ne&&(He=Ne,Ne=Ue,Ue=He),(Ne!=H[0]||Ue!=H[1])&&(H=[Ne,Ue])),U&&(Ze=Ie[0],$e=Ie[1],N&&(Ze=Ze[1],$e=$e[1]),se=[Ze,$e],U.invert&&(Ze=U(Ze),$e=U($e)),$e<Ze&&(He=Ze,Ze=$e,$e=He),(Ze!=X[0]||$e!=X[1])&&(X=[Ze,$e])),Me):(N&&(W?(Ne=W[0],Ue=W[1]):(Ne=H[0],Ue=H[1],N.invert&&(Ne=N.invert(Ne),Ue=N.invert(Ue)),Ue<Ne&&(He=Ne,Ne=Ue,Ue=He))),U&&(se?(Ze=se[0],$e=se[1]):(Ze=X[0],$e=X[1],U.invert&&(Ze=U.invert(Ze),$e=U.invert($e)),$e<Ze&&(He=Ze,Ze=$e,$e=He))),N&&U?[[Ne,Ze],[Ue,$e]]:N?[Ne,Ue]:U&&[Ze,$e])},Me.clear=function(){return Me.empty()||(H=[0,0],X=[0,0],W=se=null),Me},Me.empty=function(){return!!N&&H[0]==H[1]||!!U&&X[0]==X[1]},e.rebind(Me,C,"on")};var AY={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Vp=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=ht(function(C){return C.responseText}),e.json=function(C,N){return hr(C,"application/json",kY,N)};function kY(C){return JSON.parse(C.responseText)}e.html=function(C,N){return hr(C,"text/html",SY,N)};function SY(C){var N=n.createRange();return N.selectNode(n.body),N.createContextualFragment(C.responseText)}e.xml=ht(function(C){return C.responseXML}),typeof qv=="object"&&qv.exports?qv.exports=e:this.d3=e}).apply(self)});var Yp=xe((Bv,S_)=>{(function(e,r){typeof Bv=="object"&&typeof S_!="undefined"?r(Bv):(e=e||self,r(e.d3=e.d3||{}))})(Bv,function(e){"use strict";var r=new Date,t=new Date;function n(oe,ve,he,me){function be(ye){return oe(ye=arguments.length===0?new Date:new Date(+ye)),ye}return be.floor=function(ye){return oe(ye=new Date(+ye)),ye},be.ceil=function(ye){return oe(ye=new Date(ye-1)),ve(ye,1),oe(ye),ye},be.round=function(ye){var de=be(ye),_e=be.ceil(ye);return ye-de<_e-ye?de:_e},be.offset=function(ye,de){return ve(ye=new Date(+ye),de==null?1:Math.floor(de)),ye},be.range=function(ye,de,_e){var Ae=[],Pe;if(ye=be.ceil(ye),_e=_e==null?1:Math.floor(_e),!(ye<de)||!(_e>0))return Ae;do Ae.push(Pe=new Date(+ye)),ve(ye,_e),oe(ye);while(Pe<ye&&ye<de);return Ae},be.filter=function(ye){return n(function(de){if(de>=de)for(;oe(de),!ye(de);)de.setTime(de-1)},function(de,_e){if(de>=de)if(_e<0)for(;++_e<=0;)for(;ve(de,-1),!ye(de););else for(;--_e>=0;)for(;ve(de,1),!ye(de););})},he&&(be.count=function(ye,de){return r.setTime(+ye),t.setTime(+de),oe(r),oe(t),Math.floor(he(r,t))},be.every=function(ye){return ye=Math.floor(ye),!isFinite(ye)||!(ye>0)?null:ye>1?be.filter(me?function(de){return me(de)%ye===0}:function(de){return be.count(0,de)%ye===0}):be}),be}var a=n(function(){},function(oe,ve){oe.setTime(+oe+ve)},function(oe,ve){return ve-oe});a.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?n(function(ve){ve.setTime(Math.floor(ve/oe)*oe)},function(ve,he){ve.setTime(+ve+he*oe)},function(ve,he){return(he-ve)/oe}):a};var o=a.range,i=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,c=n(function(oe){oe.setTime(oe-oe.getMilliseconds())},function(oe,ve){oe.setTime(+oe+ve*i)},function(oe,ve){return(ve-oe)/i},function(oe){return oe.getUTCSeconds()}),p=c.range,x=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*i)},function(oe,ve){oe.setTime(+oe+ve*l)},function(oe,ve){return(ve-oe)/l},function(oe){return oe.getMinutes()}),g=x.range,w=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*i-oe.getMinutes()*l)},function(oe,ve){oe.setTime(+oe+ve*u)},function(oe,ve){return(ve-oe)/u},function(oe){return oe.getHours()}),M=w.range,m=n(function(oe){oe.setHours(0,0,0,0)},function(oe,ve){oe.setDate(oe.getDate()+ve)},function(oe,ve){return(ve-oe-(ve.getTimezoneOffset()-oe.getTimezoneOffset())*l)/s},function(oe){return oe.getDate()-1}),k=m.range;function S(oe){return n(function(ve){ve.setDate(ve.getDate()-(ve.getDay()+7-oe)%7),ve.setHours(0,0,0,0)},function(ve,he){ve.setDate(ve.getDate()+he*7)},function(ve,he){return(he-ve-(he.getTimezoneOffset()-ve.getTimezoneOffset())*l)/f})}var b=S(0),T=S(1),h=S(2),_=S(3),y=S(4),v=S(5),A=S(6),d=b.range,D=T.range,E=h.range,R=_.range,z=y.range,I=v.range,P=A.range,L=n(function(oe){oe.setDate(1),oe.setHours(0,0,0,0)},function(oe,ve){oe.setMonth(oe.getMonth()+ve)},function(oe,ve){return ve.getMonth()-oe.getMonth()+(ve.getFullYear()-oe.getFullYear())*12},function(oe){return oe.getMonth()}),F=L.range,B=n(function(oe){oe.setMonth(0,1),oe.setHours(0,0,0,0)},function(oe,ve){oe.setFullYear(oe.getFullYear()+ve)},function(oe,ve){return ve.getFullYear()-oe.getFullYear()},function(oe){return oe.getFullYear()});B.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(ve){ve.setFullYear(Math.floor(ve.getFullYear()/oe)*oe),ve.setMonth(0,1),ve.setHours(0,0,0,0)},function(ve,he){ve.setFullYear(ve.getFullYear()+he*oe)})};var O=B.range,V=n(function(oe){oe.setUTCSeconds(0,0)},function(oe,ve){oe.setTime(+oe+ve*l)},function(oe,ve){return(ve-oe)/l},function(oe){return oe.getUTCMinutes()}),K=V.range,j=n(function(oe){oe.setUTCMinutes(0,0,0)},function(oe,ve){oe.setTime(+oe+ve*u)},function(oe,ve){return(ve-oe)/u},function(oe){return oe.getUTCHours()}),G=j.range,q=n(function(oe){oe.setUTCHours(0,0,0,0)},function(oe,ve){oe.setUTCDate(oe.getUTCDate()+ve)},function(oe,ve){return(ve-oe)/s},function(oe){return oe.getUTCDate()-1}),J=q.range;function te(oe){return n(function(ve){ve.setUTCDate(ve.getUTCDate()-(ve.getUTCDay()+7-oe)%7),ve.setUTCHours(0,0,0,0)},function(ve,he){ve.setUTCDate(ve.getUTCDate()+he*7)},function(ve,he){return(he-ve)/f})}var Z=te(0),ie=te(1),Q=te(2),re=te(3),ue=te(4),ee=te(5),ae=te(6),ce=Z.range,Te=ie.range,ke=Q.range,Se=re.range,ge=ue.range,Le=ee.range,Ce=ae.range,le=n(function(oe){oe.setUTCDate(1),oe.setUTCHours(0,0,0,0)},function(oe,ve){oe.setUTCMonth(oe.getUTCMonth()+ve)},function(oe,ve){return ve.getUTCMonth()-oe.getUTCMonth()+(ve.getUTCFullYear()-oe.getUTCFullYear())*12},function(oe){return oe.getUTCMonth()}),Y=le.range,$=n(function(oe){oe.setUTCMonth(0,1),oe.setUTCHours(0,0,0,0)},function(oe,ve){oe.setUTCFullYear(oe.getUTCFullYear()+ve)},function(oe,ve){return ve.getUTCFullYear()-oe.getUTCFullYear()},function(oe){return oe.getUTCFullYear()});$.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(ve){ve.setUTCFullYear(Math.floor(ve.getUTCFullYear()/oe)*oe),ve.setUTCMonth(0,1),ve.setUTCHours(0,0,0,0)},function(ve,he){ve.setUTCFullYear(ve.getUTCFullYear()+he*oe)})};var pe=$.range;e.timeDay=m,e.timeDays=k,e.timeFriday=v,e.timeFridays=I,e.timeHour=w,e.timeHours=M,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=x,e.timeMinutes=g,e.timeMonday=T,e.timeMondays=D,e.timeMonth=L,e.timeMonths=F,e.timeSaturday=A,e.timeSaturdays=P,e.timeSecond=c,e.timeSeconds=p,e.timeSunday=b,e.timeSundays=d,e.timeThursday=y,e.timeThursdays=z,e.timeTuesday=h,e.timeTuesdays=E,e.timeWednesday=_,e.timeWednesdays=R,e.timeWeek=b,e.timeWeeks=d,e.timeYear=B,e.timeYears=O,e.utcDay=q,e.utcDays=J,e.utcFriday=ee,e.utcFridays=Le,e.utcHour=j,e.utcHours=G,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=V,e.utcMinutes=K,e.utcMonday=ie,e.utcMondays=Te,e.utcMonth=le,e.utcMonths=Y,e.utcSaturday=ae,e.utcSaturdays=Ce,e.utcSecond=c,e.utcSeconds=p,e.utcSunday=Z,e.utcSundays=ce,e.utcThursday=ue,e.utcThursdays=ge,e.utcTuesday=Q,e.utcTuesdays=ke,e.utcWednesday=re,e.utcWednesdays=Se,e.utcWeek=Z,e.utcWeeks=ce,e.utcYear=$,e.utcYears=pe,Object.defineProperty(e,"__esModule",{value:!0})})});var p0=xe((Ov,C_)=>{(function(e,r){typeof Ov=="object"&&typeof C_!="undefined"?r(Ov,Yp()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Ov,function(e,r){"use strict";function t(Ee){if(0<=Ee.y&&Ee.y<100){var ze=new Date(-1,Ee.m,Ee.d,Ee.H,Ee.M,Ee.S,Ee.L);return ze.setFullYear(Ee.y),ze}return new Date(Ee.y,Ee.m,Ee.d,Ee.H,Ee.M,Ee.S,Ee.L)}function n(Ee){if(0<=Ee.y&&Ee.y<100){var ze=new Date(Date.UTC(-1,Ee.m,Ee.d,Ee.H,Ee.M,Ee.S,Ee.L));return ze.setUTCFullYear(Ee.y),ze}return new Date(Date.UTC(Ee.y,Ee.m,Ee.d,Ee.H,Ee.M,Ee.S,Ee.L))}function a(Ee,ze,Qe){return{y:Ee,m:ze,d:Qe,H:0,M:0,S:0,L:0}}function o(Ee){var ze=Ee.dateTime,Qe=Ee.date,er=Ee.time,wr=Ee.periods,Vr=Ee.days,Mr=Ee.shortDays,Rr=Ee.months,Qr=Ee.shortMonths,Sr=p(wr),Wr=x(wr),bt=p(Vr),Jr=x(Vr),lt=p(Mr),Cn=x(Mr),lr=p(Rr),zr=x(Rr),rt=p(Qr),Or=x(Qr),Gr={a:_o,A:wo,b:dn,B:Wo,c:null,d:L,e:L,f:K,g:ee,G:ce,H:F,I:B,j:O,L:V,m:j,M:G,p:Ui,q:Hi,Q:qe,s:Be,S:q,u:J,U:te,V:ie,w:Q,W:re,x:null,X:null,y:ue,Y:ae,Z:Te,"%":Ye},pt={a:Zo,A:pv,b:gv,B:yv,c:null,d:ke,e:ke,f:le,g:_e,G:Pe,H:Se,I:ge,j:Le,L:Ce,m:Y,M:$,p:Xu,q:Wu,Q:qe,s:Be,S:pe,u:oe,U:ve,V:me,w:be,W:ye,x:null,X:null,y:de,Y:Ae,Z:Fe,"%":Ye},at={a:Et,A:Lt,b:da,B:Wn,c:Ha,d:y,e:y,f:R,g:b,G:S,H:A,I:A,j:v,L:E,m:_,M:d,p:gt,q:h,Q:I,s:P,S:D,u:w,U:M,V:m,w:g,W:k,x:Oi,X:xo,y:b,Y:S,Z:T,"%":z};Gr.x=Ct(Qe,Gr),Gr.X=Ct(er,Gr),Gr.c=Ct(ze,Gr),pt.x=Ct(Qe,pt),pt.X=Ct(er,pt),pt.c=Ct(ze,pt);function Ct(Ar,Tr){return function(ht){var hr=[],Zn=-1,Dt=0,En=Ar.length,Ln,Va,Zl;for(ht instanceof Date||(ht=new Date(+ht));++Zn<En;)Ar.charCodeAt(Zn)===37&&(hr.push(Ar.slice(Dt,Zn)),(Va=i[Ln=Ar.charAt(++Zn)])!=null?Ln=Ar.charAt(++Zn):Va=Ln==="e"?" ":"0",(Zl=Tr[Ln])&&(Ln=Zl(ht,Va)),hr.push(Ln),Dt=Zn+1);return hr.push(Ar.slice(Dt,Zn)),hr.join("")}}function Zt(Ar,Tr){return function(ht){var hr=a(1900,void 0,1),Zn=St(hr,Ar,ht+="",0),Dt,En;if(Zn!=ht.length)return null;if("Q"in hr)return new Date(hr.Q);if("s"in hr)return new Date(hr.s*1e3+("L"in hr?hr.L:0));if(Tr&&!("Z"in hr)&&(hr.Z=0),"p"in hr&&(hr.H=hr.H%12+hr.p*12),hr.m===void 0&&(hr.m="q"in hr?hr.q:0),"V"in hr){if(hr.V<1||hr.V>53)return null;"w"in hr||(hr.w=1),"Z"in hr?(Dt=n(a(hr.y,0,1)),En=Dt.getUTCDay(),Dt=En>4||En===0?r.utcMonday.ceil(Dt):r.utcMonday(Dt),Dt=r.utcDay.offset(Dt,(hr.V-1)*7),hr.y=Dt.getUTCFullYear(),hr.m=Dt.getUTCMonth(),hr.d=Dt.getUTCDate()+(hr.w+6)%7):(Dt=t(a(hr.y,0,1)),En=Dt.getDay(),Dt=En>4||En===0?r.timeMonday.ceil(Dt):r.timeMonday(Dt),Dt=r.timeDay.offset(Dt,(hr.V-1)*7),hr.y=Dt.getFullYear(),hr.m=Dt.getMonth(),hr.d=Dt.getDate()+(hr.w+6)%7)}else("W"in hr||"U"in hr)&&("w"in hr||(hr.w="u"in hr?hr.u%7:"W"in hr?1:0),En="Z"in hr?n(a(hr.y,0,1)).getUTCDay():t(a(hr.y,0,1)).getDay(),hr.m=0,hr.d="W"in hr?(hr.w+6)%7+hr.W*7-(En+5)%7:hr.w+hr.U*7-(En+6)%7);return"Z"in hr?(hr.H+=hr.Z/100|0,hr.M+=hr.Z%100,n(hr)):t(hr)}}function St(Ar,Tr,ht,hr){for(var Zn=0,Dt=Tr.length,En=ht.length,Ln,Va;Zn<Dt;){if(hr>=En)return-1;if(Ln=Tr.charCodeAt(Zn++),Ln===37){if(Ln=Tr.charAt(Zn++),Va=at[Ln in i?Tr.charAt(Zn++):Ln],!Va||(hr=Va(Ar,ht,hr))<0)return-1}else if(Ln!=ht.charCodeAt(hr++))return-1}return hr}function gt(Ar,Tr,ht){var hr=Sr.exec(Tr.slice(ht));return hr?(Ar.p=Wr[hr[0].toLowerCase()],ht+hr[0].length):-1}function Et(Ar,Tr,ht){var hr=lt.exec(Tr.slice(ht));return hr?(Ar.w=Cn[hr[0].toLowerCase()],ht+hr[0].length):-1}function Lt(Ar,Tr,ht){var hr=bt.exec(Tr.slice(ht));return hr?(Ar.w=Jr[hr[0].toLowerCase()],ht+hr[0].length):-1}function da(Ar,Tr,ht){var hr=rt.exec(Tr.slice(ht));return hr?(Ar.m=Or[hr[0].toLowerCase()],ht+hr[0].length):-1}function Wn(Ar,Tr,ht){var hr=lr.exec(Tr.slice(ht));return hr?(Ar.m=zr[hr[0].toLowerCase()],ht+hr[0].length):-1}function Ha(Ar,Tr,ht){return St(Ar,ze,Tr,ht)}function Oi(Ar,Tr,ht){return St(Ar,Qe,Tr,ht)}function xo(Ar,Tr,ht){return St(Ar,er,Tr,ht)}function _o(Ar){return Mr[Ar.getDay()]}function wo(Ar){return Vr[Ar.getDay()]}function dn(Ar){return Qr[Ar.getMonth()]}function Wo(Ar){return Rr[Ar.getMonth()]}function Ui(Ar){return wr[+(Ar.getHours()>=12)]}function Hi(Ar){return 1+~~(Ar.getMonth()/3)}function Zo(Ar){return Mr[Ar.getUTCDay()]}function pv(Ar){return Vr[Ar.getUTCDay()]}function gv(Ar){return Qr[Ar.getUTCMonth()]}function yv(Ar){return Rr[Ar.getUTCMonth()]}function Xu(Ar){return wr[+(Ar.getUTCHours()>=12)]}function Wu(Ar){return 1+~~(Ar.getUTCMonth()/3)}return{format:function(Ar){var Tr=Ct(Ar+="",Gr);return Tr.toString=function(){return Ar},Tr},parse:function(Ar){var Tr=Zt(Ar+="",!1);return Tr.toString=function(){return Ar},Tr},utcFormat:function(Ar){var Tr=Ct(Ar+="",pt);return Tr.toString=function(){return Ar},Tr},utcParse:function(Ar){var Tr=Zt(Ar+="",!0);return Tr.toString=function(){return Ar},Tr}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(Ee,ze,Qe){var er=Ee<0?"-":"",wr=(er?-Ee:Ee)+"",Vr=wr.length;return er+(Vr<Qe?new Array(Qe-Vr+1).join(ze)+wr:wr)}function c(Ee){return Ee.replace(s,"\\$&")}function p(Ee){return new RegExp("^(?:"+Ee.map(c).join("|")+")","i")}function x(Ee){for(var ze={},Qe=-1,er=Ee.length;++Qe<er;)ze[Ee[Qe].toLowerCase()]=Qe;return ze}function g(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+1));return er?(Ee.w=+er[0],Qe+er[0].length):-1}function w(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+1));return er?(Ee.u=+er[0],Qe+er[0].length):-1}function M(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.U=+er[0],Qe+er[0].length):-1}function m(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.V=+er[0],Qe+er[0].length):-1}function k(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.W=+er[0],Qe+er[0].length):-1}function S(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+4));return er?(Ee.y=+er[0],Qe+er[0].length):-1}function b(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.y=+er[0]+(+er[0]>68?1900:2e3),Qe+er[0].length):-1}function T(Ee,ze,Qe){var er=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ze.slice(Qe,Qe+6));return er?(Ee.Z=er[1]?0:-(er[2]+(er[3]||"00")),Qe+er[0].length):-1}function h(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+1));return er?(Ee.q=er[0]*3-3,Qe+er[0].length):-1}function _(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.m=er[0]-1,Qe+er[0].length):-1}function y(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.d=+er[0],Qe+er[0].length):-1}function v(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+3));return er?(Ee.m=0,Ee.d=+er[0],Qe+er[0].length):-1}function A(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.H=+er[0],Qe+er[0].length):-1}function d(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.M=+er[0],Qe+er[0].length):-1}function D(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.S=+er[0],Qe+er[0].length):-1}function E(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+3));return er?(Ee.L=+er[0],Qe+er[0].length):-1}function R(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+6));return er?(Ee.L=Math.floor(er[0]/1e3),Qe+er[0].length):-1}function z(Ee,ze,Qe){var er=u.exec(ze.slice(Qe,Qe+1));return er?Qe+er[0].length:-1}function I(Ee,ze,Qe){var er=l.exec(ze.slice(Qe));return er?(Ee.Q=+er[0],Qe+er[0].length):-1}function P(Ee,ze,Qe){var er=l.exec(ze.slice(Qe));return er?(Ee.s=+er[0],Qe+er[0].length):-1}function L(Ee,ze){return f(Ee.getDate(),ze,2)}function F(Ee,ze){return f(Ee.getHours(),ze,2)}function B(Ee,ze){return f(Ee.getHours()%12||12,ze,2)}function O(Ee,ze){return f(1+r.timeDay.count(r.timeYear(Ee),Ee),ze,3)}function V(Ee,ze){return f(Ee.getMilliseconds(),ze,3)}function K(Ee,ze){return V(Ee,ze)+"000"}function j(Ee,ze){return f(Ee.getMonth()+1,ze,2)}function G(Ee,ze){return f(Ee.getMinutes(),ze,2)}function q(Ee,ze){return f(Ee.getSeconds(),ze,2)}function J(Ee){var ze=Ee.getDay();return ze===0?7:ze}function te(Ee,ze){return f(r.timeSunday.count(r.timeYear(Ee)-1,Ee),ze,2)}function Z(Ee){var ze=Ee.getDay();return ze>=4||ze===0?r.timeThursday(Ee):r.timeThursday.ceil(Ee)}function ie(Ee,ze){return Ee=Z(Ee),f(r.timeThursday.count(r.timeYear(Ee),Ee)+(r.timeYear(Ee).getDay()===4),ze,2)}function Q(Ee){return Ee.getDay()}function re(Ee,ze){return f(r.timeMonday.count(r.timeYear(Ee)-1,Ee),ze,2)}function ue(Ee,ze){return f(Ee.getFullYear()%100,ze,2)}function ee(Ee,ze){return Ee=Z(Ee),f(Ee.getFullYear()%100,ze,2)}function ae(Ee,ze){return f(Ee.getFullYear()%1e4,ze,4)}function ce(Ee,ze){var Qe=Ee.getDay();return Ee=Qe>=4||Qe===0?r.timeThursday(Ee):r.timeThursday.ceil(Ee),f(Ee.getFullYear()%1e4,ze,4)}function Te(Ee){var ze=Ee.getTimezoneOffset();return(ze>0?"-":(ze*=-1,"+"))+f(ze/60|0,"0",2)+f(ze%60,"0",2)}function ke(Ee,ze){return f(Ee.getUTCDate(),ze,2)}function Se(Ee,ze){return f(Ee.getUTCHours(),ze,2)}function ge(Ee,ze){return f(Ee.getUTCHours()%12||12,ze,2)}function Le(Ee,ze){return f(1+r.utcDay.count(r.utcYear(Ee),Ee),ze,3)}function Ce(Ee,ze){return f(Ee.getUTCMilliseconds(),ze,3)}function le(Ee,ze){return Ce(Ee,ze)+"000"}function Y(Ee,ze){return f(Ee.getUTCMonth()+1,ze,2)}function $(Ee,ze){return f(Ee.getUTCMinutes(),ze,2)}function pe(Ee,ze){return f(Ee.getUTCSeconds(),ze,2)}function oe(Ee){var ze=Ee.getUTCDay();return ze===0?7:ze}function ve(Ee,ze){return f(r.utcSunday.count(r.utcYear(Ee)-1,Ee),ze,2)}function he(Ee){var ze=Ee.getUTCDay();return ze>=4||ze===0?r.utcThursday(Ee):r.utcThursday.ceil(Ee)}function me(Ee,ze){return Ee=he(Ee),f(r.utcThursday.count(r.utcYear(Ee),Ee)+(r.utcYear(Ee).getUTCDay()===4),ze,2)}function be(Ee){return Ee.getUTCDay()}function ye(Ee,ze){return f(r.utcMonday.count(r.utcYear(Ee)-1,Ee),ze,2)}function de(Ee,ze){return f(Ee.getUTCFullYear()%100,ze,2)}function _e(Ee,ze){return Ee=he(Ee),f(Ee.getUTCFullYear()%100,ze,2)}function Ae(Ee,ze){return f(Ee.getUTCFullYear()%1e4,ze,4)}function Pe(Ee,ze){var Qe=Ee.getUTCDay();return Ee=Qe>=4||Qe===0?r.utcThursday(Ee):r.utcThursday.ceil(Ee),f(Ee.getUTCFullYear()%1e4,ze,4)}function Fe(){return"+0000"}function Ye(){return"%"}function qe(Ee){return+Ee}function Be(Ee){return Math.floor(+Ee/1e3)}var Oe;We({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 We(Ee){return Oe=o(Ee),e.timeFormat=Oe.format,e.timeParse=Oe.parse,e.utcFormat=Oe.utcFormat,e.utcParse=Oe.utcParse,Oe}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function tr(Ee){return Ee.toISOString()}var ir=Date.prototype.toISOString?tr:e.utcFormat(Xe);function je(Ee){var ze=new Date(Ee);return isNaN(ze)?null:ze}var Ke=+new Date("2000-01-01T00:00:00.000Z")?je:e.utcParse(Xe);e.isoFormat=ir,e.isoParse=Ke,e.timeFormatDefaultLocale=We,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var Xp=xe((Uv,E_)=>{(function(e,r){typeof Uv=="object"&&typeof E_!="undefined"?r(Uv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Uv,(function(e){"use strict";function r(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function t(_,y){if((v=(_=y?_.toExponential(y-1):_.toExponential()).indexOf("e"))<0)return null;var v,A=_.slice(0,v);return[A.length>1?A[0]+A.slice(2):A,+_.slice(v+1)]}function n(_){return _=t(Math.abs(_)),_?_[1]:NaN}function a(_,y){return function(v,A){for(var d=v.length,D=[],E=0,R=_[0],z=0;d>0&&R>0&&(z+R+1>A&&(R=Math.max(1,A-z)),D.push(v.substring(d-=R,d+R)),!((z+=R+1)>A));)R=_[E=(E+1)%_.length];return D.reverse().join(y)}}function o(_){return function(y){return y.replace(/[0-9]/g,function(v){return _[+v]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(_){if(!(y=i.exec(_)))throw new Error("invalid format: "+_);var y;return new u({fill:y[1],align:y[2],sign:y[3],symbol:y[4],zero:y[5],width:y[6],comma:y[7],precision:y[8]&&y[8].slice(1),trim:y[9],type:y[10]})}l.prototype=u.prototype;function u(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}u.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 s(_){e:for(var y=_.length,v=1,A=-1,d;v<y;++v)switch(_[v]){case".":A=d=v;break;case"0":A===0&&(A=v),d=v;break;default:if(!+_[v])break e;A>0&&(A=0);break}return A>0?_.slice(0,A)+_.slice(d+1):_}var f;function c(_,y){var v=t(_,y);if(!v)return _+"";var A=v[0],d=v[1],D=d-(f=Math.max(-8,Math.min(8,Math.floor(d/3)))*3)+1,E=A.length;return D===E?A:D>E?A+new Array(D-E+1).join("0"):D>0?A.slice(0,D)+"."+A.slice(D):"0."+new Array(1-D).join("0")+t(_,Math.max(0,y+D-1))[0]}function p(_,y){var v=t(_,y);if(!v)return _+"";var A=v[0],d=v[1];return d<0?"0."+new Array(-d).join("0")+A:A.length>d+1?A.slice(0,d+1)+"."+A.slice(d+1):A+new Array(d-A.length+2).join("0")}var x={"%":function(_,y){return(_*100).toFixed(y)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:r,e:function(_,y){return _.toExponential(y)},f:function(_,y){return _.toFixed(y)},g:function(_,y){return _.toPrecision(y)},o:function(_){return Math.round(_).toString(8)},p:function(_,y){return p(_*100,y)},r:p,s:c,X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function g(_){return _}var w=Array.prototype.map,M=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function m(_){var y=_.grouping===void 0||_.thousands===void 0?g:a(w.call(_.grouping,Number),_.thousands+""),v=_.currency===void 0?"":_.currency[0]+"",A=_.currency===void 0?"":_.currency[1]+"",d=_.decimal===void 0?".":_.decimal+"",D=_.numerals===void 0?g:o(w.call(_.numerals,String)),E=_.percent===void 0?"%":_.percent+"",R=_.minus===void 0?"-":_.minus+"",z=_.nan===void 0?"NaN":_.nan+"";function I(L){L=l(L);var F=L.fill,B=L.align,O=L.sign,V=L.symbol,K=L.zero,j=L.width,G=L.comma,q=L.precision,J=L.trim,te=L.type;te==="n"?(G=!0,te="g"):x[te]||(q===void 0&&(q=12),J=!0,te="g"),(K||F==="0"&&B==="=")&&(K=!0,F="0",B="=");var Z=V==="$"?v:V==="#"&&/[boxX]/.test(te)?"0"+te.toLowerCase():"",ie=V==="$"?A:/[%p]/.test(te)?E:"",Q=x[te],re=/[defgprs%]/.test(te);q=q===void 0?6:/[gprs]/.test(te)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function ue(ee){var ae=Z,ce=ie,Te,ke,Se;if(te==="c")ce=Q(ee)+ce,ee="";else{ee=+ee;var ge=ee<0||1/ee<0;if(ee=isNaN(ee)?z:Q(Math.abs(ee),q),J&&(ee=s(ee)),ge&&+ee==0&&O!=="+"&&(ge=!1),ae=(ge?O==="("?O:R:O==="-"||O==="("?"":O)+ae,ce=(te==="s"?M[8+f/3]:"")+ce+(ge&&O==="("?")":""),re){for(Te=-1,ke=ee.length;++Te<ke;)if(Se=ee.charCodeAt(Te),48>Se||Se>57){ce=(Se===46?d+ee.slice(Te+1):ee.slice(Te))+ce,ee=ee.slice(0,Te);break}}}G&&!K&&(ee=y(ee,1/0));var Le=ae.length+ee.length+ce.length,Ce=Le<j?new Array(j-Le+1).join(F):"";switch(G&&K&&(ee=y(Ce+ee,Ce.length?j-ce.length:1/0),Ce=""),B){case"<":ee=ae+ee+ce+Ce;break;case"=":ee=ae+Ce+ee+ce;break;case"^":ee=Ce.slice(0,Le=Ce.length>>1)+ae+ee+ce+Ce.slice(Le);break;default:ee=Ce+ae+ee+ce;break}return D(ee)}return ue.toString=function(){return L+""},ue}function P(L,F){var B=I((L=l(L),L.type="f",L)),O=Math.max(-8,Math.min(8,Math.floor(n(F)/3)))*3,V=Math.pow(10,-O),K=M[8+O/3];return function(j){return B(V*j)+K}}return{format:I,formatPrefix:P}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(_){return k=m(_),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function b(_){return Math.max(0,-n(Math.abs(_)))}function T(_,y){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(y)/3)))*3-n(Math.abs(_)))}function h(_,y){return _=Math.abs(_),y=Math.abs(y)-_,Math.max(0,n(y)-n(_))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=m,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=T,e.precisionRound=h,Object.defineProperty(e,"__esModule",{value:!0})}))});var D_=xe((T3e,L_)=>{"use strict";L_.exports=function(e){for(var r=e.length,t,n=0;n<r;n++)if(t=e.charCodeAt(n),(t<9||t>13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var it=xe((A3e,R_)=>{"use strict";var zY=D_();R_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&zY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var pn=xe((k3e,F_)=>{"use strict";F_.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Wp=xe((Hv,P_)=>{(function(e,r){typeof Hv=="object"&&typeof P_!="undefined"?r(Hv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Hv,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n<r.length;n++)t[r.charCodeAt(n)]=n;var a=function(i){var l=new Uint8Array(i),u,s=l.length,f="";for(u=0;u<s;u+=3)f+=r[l[u]>>2],f+=r[(l[u]&3)<<4|l[u+1]>>4],f+=r[(l[u+1]&15)<<2|l[u+2]>>6],f+=r[l[u+2]&63];return s%3===2?f=f.substring(0,f.length-1)+"=":s%3===1&&(f=f.substring(0,f.length-2)+"=="),f},o=function(i){var l=i.length*.75,u=i.length,s,f=0,c,p,x,g;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var w=new ArrayBuffer(l),M=new Uint8Array(w);for(s=0;s<u;s+=4)c=t[i.charCodeAt(s)],p=t[i.charCodeAt(s+1)],x=t[i.charCodeAt(s+2)],g=t[i.charCodeAt(s+3)],M[f++]=c<<2|p>>4,M[f++]=(p&15)<<4|x>>2,M[f++]=(x&3)<<6|g&63;return w};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})}))});var es=xe((S3e,I_)=>{"use strict";I_.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var sa=xe(pi=>{"use strict";var NY=Wp().decode,qY=es(),Zp=Array.isArray,BY=ArrayBuffer,OY=DataView;function z_(e){return BY.isView(e)&&!(e instanceof OY)}pi.isTypedArray=z_;function Vv(e){return Zp(e)||z_(e)}pi.isArrayOrTypedArray=Vv;function UY(e){return!Vv(e[0])}pi.isArray1D=UY;pi.ensureArray=function(e,r){return Zp(e)||(e=[]),e.length=r,e};var Tn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Tn.uint8c=Tn.u1c;Tn.uint8=Tn.u1;Tn.int8=Tn.i1;Tn.uint16=Tn.u2;Tn.int16=Tn.i2;Tn.uint32=Tn.u4;Tn.int32=Tn.i4;Tn.float32=Tn.f4;Tn.float64=Tn.f8;function Jp(e){return e.constructor===ArrayBuffer}pi.isArrayBuffer=Jp;pi.decodeTypedArraySpec=function(e){var r=[],t=HY(e),n=t.dtype,a=Tn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;Jp(i)||(i=NY(i));var l=t.shape===void 0?[i.byteLength/o]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,c=+l[0],p=o*c,x=0;if(u===1)r=new a(i);else if(u===2)for(s=+l[1],f=0;f<s;f++)r[f]=new a(i,x,c),x+=p;else if(u===3){s=+l[1];for(var g=+l[2],w=0;w<g;w++)for(r[w]=[],f=0;f<s;f++)r[w][f]=new a(i,x,c),x+=p}else throw new Error("ndim: "+u+'is not supported with the shape:"'+t.shape+'"');return r.bdata=t.bdata,r.dtype=t.dtype,r.shape=l.reverse().join(","),e._inputArray=r,r};pi.isTypedArraySpec=function(e){return qY(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||Jp(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function HY(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}pi.concat=function(){var e=[],r=!0,t=0,n,a,o,i,l,u,s,f;for(o=0;o<arguments.length;o++)i=arguments[o],u=i.length,u&&(a?e.push(i):(a=i,l=u),Zp(i)?n=!1:(r=!1,t?n!==i.constructor&&(n=!1):n=i.constructor),t+=u);if(!t)return[];if(!e.length)return a;if(r)return a.concat.apply(a,e);if(n){for(s=new n(t),s.set(a),o=0;o<e.length;o++)i=e[o],s.set(i,l),l+=i.length;return s}for(s=new Array(t),f=0;f<a.length;f++)s[f]=a[f];for(o=0;o<e.length;o++){for(i=e[o],f=0;f<i.length;f++)s[l+f]=i[f];l+=f}return s};pi.maxRowLength=function(e){return N_(e,Math.max,0)};pi.minRowLength=function(e){return N_(e,Math.min,1/0)};function N_(e,r,t){if(Vv(e))if(Vv(e[0])){for(var n=t,a=0;a<e.length;a++)n=r(n,e[a].length);return n}else return e.length;return 0}});var Gv=xe((E3e,H_)=>{"use strict";var q_=it(),Kp=sa().isArrayOrTypedArray;H_.exports=function(r,t){if(q_(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var n=t.split("."),a,o,i,l;for(l=0;l<n.length;l++)if(String(n[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<n.length;){if(a=String(n[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),a){if(a[1])n[l]=a[1];else if(l===0)n.splice(0,1);else throw"bad property string";for(o=a[2].slice(1,-1).split("]["),i=0;i<o.length;i++)l++,n.splice(l,0,Number(o[i]))}l++}return typeof r!="object"?XY(r,t,n):{set:O_(r,n,t),get:B_(r,n),astr:t,parts:n,obj:r}};function B_(e,r){return function(t){var n=e,a,o,i,l,u;for(l=0;l<r.length-1;l++){if(a=r[l],a===-1){for(o=!0,i=[],u=0;u<n.length;u++)i[u]=B_(n[u],r.slice(l+1))(t),i[u]!==i[0]&&(o=!1);return o?i[0]:i}if(typeof a=="number"&&!Kp(n)||(n=n[a],typeof n!="object"||n===null))return}if(!(typeof n!="object"||n===null)&&(i=n[r[l]],!(!t&&i===null)))return i}}var VY=/(^|\.)args\[/;function $p(e,r){return e===void 0||e===null&&!r.match(VY)}function O_(e,r,t){return function(n){var a=e,o="",i=[[e,o]],l=$p(n,t),u,s;for(s=0;s<r.length-1;s++){if(u=r[s],typeof u=="number"&&!Kp(a))throw"array index but container is not an array";if(u===-1){if(l=!YY(a,r.slice(s+1),n,t),l)break;return}if(!U_(a,u,r[s+1],l))break;if(a=a[u],typeof a!="object"||a===null)throw"container is not an object";o=GY(o,u),i.push([a,o])}if(l){if(s===r.length-1&&(delete a[r[s]],Array.isArray(a)&&+r[s]===a.length-1))for(;a.length&&a[a.length-1]===void 0;)a.pop()}else a[r[s]]=n}}function GY(e,r){var t=r;return q_(r)?t="["+r+"]":e&&(t="."+r),e+t}function YY(e,r,t,n){var a=Kp(t),o=!0,i=t,l=n.replace("-1",0),u=a?!1:$p(t,l),s=r[0],f;for(f=0;f<e.length;f++)l=n.replace("-1",f),a&&(i=t[f%t.length],u=$p(i,l)),u&&(o=!1),U_(e,f,s,u)&&O_(e[f],r,n.replace("-1",f))(i);return o}function U_(e,r,t,n){if(e[r]===void 0){if(n)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function XY(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var X_=xe((L3e,Y_)=>{"use strict";var g0=Gv(),WY=/^\w*$/,ZY=0,V_=1,Yv=2,G_=3,rs=4;Y_.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=g0(r,t),i=l.get()):i=r,t=t||"";var s={};if(i)for(o=0;o<i.length;o++)s[i[o][n]]=o;var f=WY.test(a),c={set:function(p,x){var g=x===null?rs:ZY;if(!i){if(!l||g===rs)return;i=[],l.set(i)}var w=s[p];if(w===void 0){if(g===rs)return;g=g|G_,w=i.length,s[p]=w}else x!==(f?i[w][a]:g0(i[w],a).get())&&(g=g|Yv);var M=i[w]=i[w]||{};return M[n]=p,f?M[a]=x:g0(M,a).set(x),x!==null&&(g=g&~rs),u[w]=u[w]|g,c},get:function(p){if(i){var x=s[p];if(x!==void 0)return f?i[x][a]:g0(i[x],a).get()}},rename:function(p,x){var g=s[p];return g===void 0||(u[g]=u[g]|V_,s[x]=g,delete s[p],i[g][n]=x),c},remove:function(p){var x=s[p];if(x===void 0)return c;var g=i[x];if(Object.keys(g).length>2)return u[x]=u[x]|Yv,c.set(p,null);if(f){for(o=x;o<i.length;o++)u[o]=u[o]|G_;for(o=x;o<i.length;o++)s[i[o][n]]--;i.splice(x,1),delete s[p]}else g0(g,a).set(null),u[x]=u[x]|Yv|rs;return c},constructUpdate:function(){for(var p,x,g={},w=Object.keys(u),M=0;M<w.length;M++)x=w[M],p=t+"["+x+"]",i[x]?(u[x]&V_&&(g[p+"."+n]=i[x][n]),u[x]&Yv&&(f?g[p+"."+a]=u[x]&rs?null:i[x][a]:g[p+"."+a]=u[x]&rs?null:g0(i[x],a).get())):g[p]=null;return g}};return c}});var Z_=xe((D3e,W_)=>{"use strict";var JY=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,$Y=/^[^\.\[\]]+$/;W_.exports=function(e,r){for(;r;){var t=e.match(JY);if(t)e=t[1];else if(e.match($Y))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Xv=xe((R3e,J_)=>{"use strict";var KY=it();J_.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return KY(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var Q_=xe((F3e,K_)=>{"use strict";var $_=sa().isArrayOrTypedArray,sf=es();K_.exports=function e(r,t){for(var n in t){var a=t[n],o=r[n];if(o!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if($_(a)&&$_(o)&&sf(a[0])){if(n==="customdata"||n==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;l<i;l++)o[l]!==a[l]&&sf(a[l])&&sf(o[l])&&e(o[l],a[l])}else sf(a)&&sf(o)&&(e(o,a),Object.keys(o).length||delete r[n])}}});var y0={};of(y0,{mod:()=>QY,modHalf:()=>jY});function QY(e,r){let t=e%r;return t<0?t+r:t}function jY(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var m0=af(()=>{"use strict"});var Rt=xe(cf=>{"use strict";var j_=es(),uf=Array.isArray;function eX(e,r){var t,n;for(t=0;t<e.length;t++){if(n=e[t],n!==null&&typeof n=="object")return!1;n!==void 0&&(r[t]=n)}return!0}cf.extendFlat=function(...e){return ff(e,!1,!1,!1)};cf.extendDeep=function(...e){return ff(e,!0,!1,!1)};cf.extendDeepAll=function(...e){return ff(e,!0,!0,!1)};cf.extendDeepNoArrays=function(...e){return ff(e,!0,!1,!0)};function ff(e,r,t,n){var a=e[0],o=e.length,i,l,u,s,f,c,p;if(o===2&&uf(a)&&uf(e[1])&&a.length===0){if(p=eX(e[1],a),p)return a;a.splice(0,a.length)}for(var x=1;x<o;x++){i=e[x];for(l in i)u=a[l],s=i[l],n&&uf(s)?a[l]=s:r&&s&&(j_(s)||(f=uf(s)))?(f?(f=!1,c=u&&uf(u)?u:[]):c=u&&j_(u)?u:{},a[l]=ff([c,s],r,t,n)):(typeof s!="undefined"||t)&&(a[l]=s)}return a}});var Nn=xe((I3e,e7)=>{"use strict";e7.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var o={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(o.size.dflt="auto"),e.autoColor&&(o.color.dflt="auto"),e.arrayOk&&(o.family.arrayOk=!0,o.weight.arrayOk=!0,o.style.arrayOk=!0,e.noFontVariant||(o.variant.arrayOk=!0),e.noFontTextcase||(o.textcase.arrayOk=!0),e.noFontLineposition||(o.lineposition.arrayOk=!0),e.noFontShadow||(o.shadow.arrayOk=!0),o.size.arrayOk=!0,o.color.arrayOk=!0),o}});var vf=xe((z3e,r7)=>{"use strict";r7.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var ts=xe((N3e,a7)=>{"use strict";var t7=vf(),n7=Nn(),Qp=n7({editType:"none"});Qp.family.dflt=t7.HOVERFONT;Qp.size.dflt=t7.HOVERFONTSIZE;a7.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Qp,grouptitlefont:n7({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Wv=xe((q3e,i7)=>{"use strict";var rX=Nn(),hf=ts().hoverlabel,df=Rt().extendFlat;i7.exports={hoverlabel:{bgcolor:df({},hf.bgcolor,{arrayOk:!0}),bordercolor:df({},hf.bordercolor,{arrayOk:!0}),font:rX({arrayOk:!0,editType:"none"}),align:df({},hf.align,{arrayOk:!0}),namelength:df({},hf.namelength,{arrayOk:!0}),showarrow:df({},hf.showarrow),editType:"none"}}});var qn=xe((B3e,o7)=>{"use strict";var tX=Nn(),nX=Wv();o7.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:tX({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:nX.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var Q8=xe((X3e,K8)=>{var Gg=Object.defineProperty,aX=Object.getOwnPropertyDescriptor,iX=Object.getOwnPropertyNames,oX=Object.prototype.hasOwnProperty,lX=(e,r)=>{for(var t in r)Gg(e,t,{get:r[t],enumerable:!0})},sX=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of iX(r))!oX.call(e,a)&&a!==t&&Gg(e,a,{get:()=>r[a],enumerable:!(n=aX(r,a))||n.enumerable});return e},uX=e=>sX(Gg({},"__esModule",{value:!0}),e),g7={};lX(g7,{a98:()=>e$,average:()=>iW,averageAngle:()=>Wi,averageNumber:()=>F7,blend:()=>aJ,blerp:()=>Tg,clampChroma:()=>TJ,clampGamut:()=>y3,clampRgb:()=>MJ,colorsNamed:()=>m7,convertA98ToXyz65:()=>Ag,convertCubehelixToRgb:()=>D7,convertDlchToLab65:()=>th,convertHsiToRgb:()=>U7,convertHslToRgb:()=>G7,convertHsvToRgb:()=>$g,convertHwbToRgb:()=>Z7,convertItpToXyz65:()=>Sg,convertJabToJch:()=>Eg,convertJabToRgb:()=>t3,convertJabToXyz65:()=>e3,convertJchToJab:()=>Lg,convertLab65ToDlch:()=>nh,convertLab65ToRgb:()=>wf,convertLab65ToXyz65:()=>Wg,convertLabToLch:()=>To,convertLabToRgb:()=>a3,convertLabToXyz50:()=>hh,convertLchToLab:()=>Ao,convertLchuvToLuv:()=>l3,convertLrgbToOklab:()=>s3,convertLrgbToRgb:()=>us,convertLuvToLchuv:()=>o3,convertLuvToXyz50:()=>ih,convertOkhslToOklab:()=>Fg,convertOkhsvToOklab:()=>Ig,convertOklabToLrgb:()=>k0,convertOklabToOkhsl:()=>Rg,convertOklabToOkhsv:()=>Pg,convertOklabToRgb:()=>Af,convertP3ToXyz65:()=>zg,convertProphotoToXyz50:()=>Bg,convertRec2020ToXyz65:()=>Ug,convertRgbToCubehelix:()=>L7,convertRgbToHsi:()=>H7,convertRgbToHsl:()=>Y7,convertRgbToHsv:()=>Kg,convertRgbToHwb:()=>J7,convertRgbToJab:()=>r3,convertRgbToLab:()=>i3,convertRgbToLab65:()=>Mf,convertRgbToLrgb:()=>ss,convertRgbToOklab:()=>Tf,convertRgbToXyb:()=>M8,convertRgbToXyz50:()=>A0,convertRgbToXyz65:()=>Ko,convertRgbToYiq:()=>L8,convertXybToRgb:()=>T8,convertXyz50ToLab:()=>dh,convertXyz50ToLuv:()=>ah,convertXyz50ToProphoto:()=>qg,convertXyz50ToRgb:()=>T0,convertXyz50ToXyz65:()=>C8,convertXyz65ToA98:()=>kg,convertXyz65ToItp:()=>Cg,convertXyz65ToJab:()=>jg,convertXyz65ToLab65:()=>Zg,convertXyz65ToP3:()=>Ng,convertXyz65ToRec2020:()=>Og,convertXyz65ToRgb:()=>Qo,convertXyz65ToXyz50:()=>S8,convertYiqToRgb:()=>D8,converter:()=>Ft,cubehelix:()=>r$,differenceCie76:()=>QX,differenceCie94:()=>jX,differenceCiede2000:()=>eW,differenceCmc:()=>rW,differenceEuclidean:()=>M0,differenceHueChroma:()=>_f,differenceHueNaive:()=>R7,differenceHueSaturation:()=>xf,differenceHyab:()=>tW,differenceItp:()=>aW,differenceKotsarenkoRamos:()=>nW,displayable:()=>g3,dlab:()=>t$,dlch:()=>n$,easingGamma:()=>X8,easingInOutSine:()=>QJ,easingMidpoint:()=>B8,easingSmootherstep:()=>$J,easingSmoothstep:()=>WJ,easingSmoothstepInverse:()=>ZJ,filterBrightness:()=>FJ,filterContrast:()=>PJ,filterDeficiencyDeuter:()=>YJ,filterDeficiencyProt:()=>GJ,filterDeficiencyTrit:()=>XJ,filterGrayscale:()=>NJ,filterHueRotate:()=>BJ,filterInvert:()=>qJ,filterSaturate:()=>zJ,filterSepia:()=>IJ,fixupAlpha:()=>yn,fixupHueDecreasing:()=>WX,fixupHueIncreasing:()=>XX,fixupHueLonger:()=>YX,fixupHueShorter:()=>Xi,formatCss:()=>KZ,formatHex:()=>QZ,formatHex8:()=>jZ,formatHsl:()=>rJ,formatRgb:()=>eJ,getMode:()=>Qn,hsi:()=>a$,hsl:()=>i$,hsv:()=>o$,hwb:()=>l$,inGamut:()=>yh,interpolate:()=>hJ,interpolateWith:()=>U8,interpolateWithPremultipliedAlpha:()=>dJ,interpolatorLinear:()=>xr,interpolatorPiecewise:()=>C7,interpolatorSplineBasis:()=>V8,interpolatorSplineBasisClosed:()=>G8,interpolatorSplineMonotone:()=>yJ,interpolatorSplineMonotone2:()=>mJ,interpolatorSplineMonotoneClosed:()=>bJ,interpolatorSplineNatural:()=>pJ,interpolatorSplineNaturalClosed:()=>gJ,itp:()=>s$,jab:()=>u$,jch:()=>f$,lab:()=>c$,lab65:()=>v$,lch:()=>h$,lch65:()=>d$,lchuv:()=>p$,lerp:()=>as,lrgb:()=>g$,luv:()=>y$,mapAlphaDivide:()=>q8,mapAlphaMultiply:()=>N8,mapTransferGamma:()=>uJ,mapTransferLinear:()=>h3,mapper:()=>kf,modeA98:()=>E7,modeCubehelix:()=>P7,modeDlab:()=>B7,modeDlch:()=>O7,modeHsi:()=>V7,modeHsl:()=>Jg,modeHsv:()=>Qg,modeHwb:()=>K7,modeItp:()=>e8,modeJab:()=>r8,modeJch:()=>t8,modeLab:()=>ph,modeLab65:()=>a8,modeLch:()=>gh,modeLch65:()=>o8,modeLchuv:()=>u8,modeLrgb:()=>f8,modeLuv:()=>c8,modeOkhsl:()=>h8,modeOkhsv:()=>d8,modeOklab:()=>g8,modeOklch:()=>m8,modeP3:()=>b8,modeProphoto:()=>x8,modeRec2020:()=>_8,modeRgb:()=>ls,modeXyb:()=>A8,modeXyz50:()=>k8,modeXyz65:()=>E8,modeYiq:()=>R8,nearest:()=>SJ,okhsl:()=>m$,okhsv:()=>b$,oklab:()=>x$,oklch:()=>_$,p3:()=>w$,parse:()=>A7,parseHex:()=>x7,parseHsl:()=>W7,parseHslLegacy:()=>X7,parseHwb:()=>$7,parseLab:()=>n8,parseLch:()=>i8,parseNamed:()=>b7,parseOklab:()=>p8,parseOklch:()=>y8,parseRgb:()=>k7,parseRgbLegacy:()=>_7,parseTransparent:()=>S7,prophoto:()=>M$,random:()=>sJ,rec2020:()=>T$,removeParser:()=>MX,rgb:()=>A$,round:()=>F8,samples:()=>wJ,serializeHex:()=>v3,serializeHex8:()=>P8,serializeHsl:()=>z8,serializeRgb:()=>I8,toGamut:()=>AJ,trilerp:()=>PX,unlerp:()=>FX,useMode:()=>_t,useParser:()=>M7,wcagContrast:()=>jJ,wcagLuminance:()=>Vg,xyb:()=>k$,xyz50:()=>S$,xyz65:()=>C$,yiq:()=>E$});K8.exports=uX(g7);var fX=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},y7=fX,cX={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},m7=cX,vX=e=>y7(m7[e.toLowerCase()],6),b7=vX,hX=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,dX=e=>{let r;return(r=e.match(hX))?y7(parseInt(r[1],16),r[1].length):void 0},x7=dX,ya="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",O3e=`(?:${ya}|none)`,yf=`${ya}%`,U3e=`(?:${ya}%|none)`,Yg=`(?:${ya}%|${ya})`,pX=`(?:${ya}%|${ya}|none)`,gX=`(?:${ya}(deg|grad|rad|turn)|${ya})`,H3e=`(?:${ya}(deg|grad|rad|turn)|${ya}|none)`,_0="\\s*,\\s*",V3e=new RegExp("^"+pX+"$"),yX=new RegExp(`^rgba?\\(\\s*${ya}${_0}${ya}${_0}${ya}\\s*(?:,\\s*${Yg}\\s*)?\\)$`),mX=new RegExp(`^rgba?\\(\\s*${yf}${_0}${yf}${_0}${yf}\\s*(?:,\\s*${Yg}\\s*)?\\)$`),bX=e=>{let r={mode:"rgb"},t;if(t=e.match(yX))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(mX))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},_7=bX,xX=(e,r)=>e===void 0?void 0:typeof e!="object"?A7(e):e.mode!==void 0?e:r?qt(xt({},e),{mode:r}):void 0,gi=xX,_X=(e="rgb")=>r=>(r=gi(r,e))!==void 0?r.mode===e?r:Yi[r.mode][e]?Yi[r.mode][e](r):e==="rgb"?Yi[r.mode].rgb(r):Yi.rgb[e](Yi[r.mode].rgb(r)):void 0,Ft=_X,Yi={},w7={},w0=[],Xg={},wX=e=>e,_t=e=>(Yi[e.mode]=xt(xt({},Yi[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{Yi[r]||(Yi[r]={}),Yi[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=wX)}),w7[e.mode]=e,(e.parse||[]).forEach(r=>{M7(r,e.mode)}),Ft(e.mode)),Qn=e=>w7[e],M7=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");Xg[e]=r}else typeof e=="function"&&w0.indexOf(e)<0&&w0.push(e)},MX=e=>{if(typeof e=="string")delete Xg[e];else if(typeof e=="function"){let r=w0.indexOf(e);r>0&&w0.splice(r,1)}},wg=/[^\x00-\x7F]|[a-zA-Z_]/,TX=/[^\x00-\x7F]|[-\w]/,gr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Yr=0;function Zv(e){let r=e[Yr],t=e[Yr+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Yr+2]):r==="."?/\d/.test(t):/\d/.test(r)}function Mg(e){if(Yr>=e.length)return!1;let r=e[Yr];if(wg.test(r))return!0;if(r==="-"){if(e.length-Yr<2)return!1;let t=e[Yr+1];return!!(t==="-"||wg.test(t))}return!1}var AX={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function pf(e){let r="";if((e[Yr]==="-"||e[Yr]==="+")&&(r+=e[Yr++]),r+=Jv(e),e[Yr]==="."&&/\d/.test(e[Yr+1])&&(r+=e[Yr++]+Jv(e)),(e[Yr]==="e"||e[Yr]==="E")&&((e[Yr+1]==="-"||e[Yr+1]==="+")&&/\d/.test(e[Yr+2])?r+=e[Yr++]+e[Yr++]+Jv(e):/\d/.test(e[Yr+1])&&(r+=e[Yr++]+Jv(e))),Mg(e)){let t=Qv(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:gr.Hue,value:r*AX[t]}:void 0}return e[Yr]==="%"?(Yr++,{type:gr.Percentage,value:+r}):{type:gr.Number,value:+r}}function Jv(e){let r="";for(;/\d/.test(e[Yr]);)r+=e[Yr++];return r}function Qv(e){let r="";for(;Yr<e.length&&TX.test(e[Yr]);)r+=e[Yr++];return r}function kX(e){let r=Qv(e);return e[Yr]==="("?(Yr++,{type:gr.Function,value:r}):r==="none"?{type:gr.None,value:void 0}:{type:gr.Ident,value:r}}function SX(e=""){let r=e.trim(),t=[],n;for(Yr=0;Yr<r.length;){if(n=r[Yr++],n===`
`||n==="	"||n===" "){for(;Yr<r.length&&(r[Yr]===`
`||r[Yr]==="	"||r[Yr]===" ");)Yr++;continue}if(n===",")return;if(n===")"){t.push({type:gr.ParenClose});continue}if(n==="+"){if(Yr--,Zv(r)){t.push(pf(r));continue}return}if(n==="-"){if(Yr--,Zv(r)){t.push(pf(r));continue}if(Mg(r)){t.push({type:gr.Ident,value:Qv(r)});continue}return}if(n==="."){if(Yr--,Zv(r)){t.push(pf(r));continue}return}if(n==="/"){for(;Yr<r.length&&(r[Yr]===`
`||r[Yr]==="	"||r[Yr]===" ");)Yr++;let a;if(Zv(r)&&(a=pf(r),a.type!==gr.Hue)){t.push({type:gr.Alpha,value:a});continue}if(Mg(r)&&Qv(r)==="none"){t.push({type:gr.Alpha,value:{type:gr.None,value:void 0}});continue}return}if(/\d/.test(n)){Yr--,t.push(pf(r));continue}if(wg.test(n)){Yr--,t.push(kX(r));continue}return}return t}function CX(e){e._i=0;let r=e[e._i++];if(!r||r.type!==gr.Function||r.value!=="color"||(r=e[e._i++],r.type!==gr.Ident))return;let t=Xg[r.value];if(!t)return;let n={mode:t},a=T7(e,!1);if(!a)return;let o=Qn(t).channels;for(let i=0,l,u;i<o.length;i++)l=a[i],u=o[i],l.type!==gr.None&&(n[u]=l.type===gr.Number?l.value:l.value/100,u==="alpha"&&(n[u]=Math.max(0,Math.min(1,n[u]))));return n}function T7(e,r){let t=[],n;for(;e._i<e.length;){if(n=e[e._i++],n.type===gr.None||n.type===gr.Number||n.type===gr.Alpha||n.type===gr.Percentage||r&&n.type===gr.Hue){t.push(n);continue}if(n.type===gr.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==gr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:gr.None,value:void 0}),t.every(a=>a.type!==gr.Alpha)?t:void 0}}function EX(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==gr.Function)return;let n=T7(e,r);if(n)return n.unshift(t.value),n}var LX=e=>{if(typeof e!="string")return;let r=SX(e),t=r?EX(r,!0):void 0,n,a=0,o=w0.length;for(;a<o;)if((n=w0[a++](e,t))!==void 0)return n;return r?CX(r):void 0},A7=LX;function DX(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,n,a,o,i]=r;if(!(n.type===gr.Hue||a.type===gr.Hue||o.type===gr.Hue))return n.type!==gr.None&&(t.r=n.type===gr.Number?n.value/255:n.value/100),a.type!==gr.None&&(t.g=a.type===gr.Number?a.value/255:a.value/100),o.type!==gr.None&&(t.b=o.type===gr.Number?o.value/255:o.value/100),i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var k7=DX,RX=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,S7=RX,as=(e,r,t)=>e+t*(r-e),FX=(e,r,t)=>(t-e)/(r-e),Tg=(e,r,t,n,a,o)=>as(as(e,r,a),as(t,n,a),o),PX=(e,r,t,n,a,o,i,l,u,s,f)=>as(Tg(e,r,t,n,u,s),Tg(a,o,i,l,u,s),f),IX=e=>{let r=[];for(let t=0;t<e.length-1;t++){let n=e[t],a=e[t+1];n===void 0&&a===void 0?r.push(void 0):n!==void 0&&a!==void 0?r.push([n,a]):r.push(n!==void 0?[n,n]:[a,a])}return r},C7=e=>r=>{let t=IX(r);return n=>{let a=n*t.length,o=n>=1?t.length-1:Math.max(Math.floor(a),0),i=t[o];return i===void 0?void 0:e(i[0],i[1],a-o)}},xr=C7(as),yn=e=>{let r=!1,t=e.map(n=>n!==void 0?(r=!0,n):1);return r?t:e},zX={mode:"rgb",channels:["r","g","b","alpha"],parse:[k7,x7,_7,b7,S7,"srgb"],serialize:"srgb",interpolate:{r:xr,g:xr,b:xr,alpha:{use:xr,fixup:yn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},ls=zX,jp=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),NX=e=>{let r=jp(e.r),t=jp(e.g),n=jp(e.b),a={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*n,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*n,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*n};return e.alpha!==void 0&&(a.alpha=e.alpha),a},Ag=NX,eg=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),qX=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"a98",r:eg(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:eg(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:eg(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return n!==void 0&&(a.alpha=n),a},kg=qX,rg=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},BX=({r:e,g:r,b:t,alpha:n})=>{let a={mode:"lrgb",r:rg(e),g:rg(r),b:rg(t)};return n!==void 0&&(a.alpha=n),a},ss=BX,OX=e=>{let{r,g:t,b:n,alpha:a}=ss(e),o={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*n,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*n,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*n};return a!==void 0&&(o.alpha=a),o},Ko=OX,tg=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},UX=({r:e,g:r,b:t,alpha:n},a="rgb")=>{let o={mode:a,r:tg(e),g:tg(r),b:tg(t)};return n!==void 0&&(o.alpha=n),o},us=UX,HX=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=us({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return n!==void 0&&(a.alpha=n),a},Qo=HX,VX=qt(xt({},ls),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>kg(Ko(e)),xyz65:kg},toMode:{rgb:e=>Qo(Ag(e)),xyz65:Ag}}),E7=VX,GX=e=>(e=e%360)<0?e+360:e,Bn=GX,lh=(e,r)=>e.map((t,n,a)=>{if(t===void 0)return t;let o=Bn(t);return n===0||e[n-1]===void 0?o:r(o-Bn(a[n-1]))}).reduce((t,n)=>!t.length||n===void 0||t[t.length-1]===void 0?(t.push(n),t):(t.push(n+t[t.length-1]),t),[]),Xi=e=>lh(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),YX=e=>lh(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),XX=e=>lh(e,r=>r>=0?r:r+360),WX=e=>lh(e,r=>r<=0?r:r-360),Fn=[-.14861,1.78277,-.29227,-.90649,1.97294,0],ZX=Math.PI/180,JX=180/Math.PI,l7=Fn[3]*Fn[4],s7=Fn[1]*Fn[4],u7=Fn[1]*Fn[2]-Fn[0]*Fn[3],$X=({r:e,g:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(u7*t+e*l7-r*s7)/(u7+l7-s7),o=t-a,i=(Fn[4]*(r-a)-Fn[2]*o)/Fn[3],l={mode:"cubehelix",l:a,s:a===0||a===1?void 0:Math.sqrt(o*o+i*i)/(Fn[4]*a*(1-a))};return l.s&&(l.h=Math.atan2(i,o)*JX-120),n!==void 0&&(l.alpha=n),l},L7=$X,KX=({h:e,s:r,l:t,alpha:n})=>{let a={mode:"rgb"};e=(e===void 0?0:e+120)*ZX,t===void 0&&(t=0);let o=r===void 0?0:r*t*(1-t),i=Math.cos(e),l=Math.sin(e);return a.r=t+o*(Fn[0]*i+Fn[1]*l),a.g=t+o*(Fn[2]*i+Fn[3]*l),a.b=t+o*(Fn[4]*i+Fn[5]*l),n!==void 0&&(a.alpha=n),a},D7=KX,xf=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=Bn(e.h),n=Bn(r.h),a=Math.sin((n-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*a},R7=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=Bn(e.h),n=Bn(r.h);return Math.abs(n-t)>180?t-(n-360*Math.sign(n-t)):n-t},_f=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=Bn(e.h),n=Bn(r.h),a=Math.sin((n-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*a},M0=(e="rgb",r=[1,1,1,0])=>{let t=Qn(e),n=t.channels,a=t.difference,o=Ft(e);return(i,l)=>{let u=o(i),s=o(l);return Math.sqrt(n.reduce((f,c,p)=>{let x=a[c]?a[c](u,s):u[c]-s[c];return f+(r[p]||0)*Math.pow(isNaN(x)?0:x,2)},0))}},QX=()=>M0("lab65"),jX=(e=1,r=.045,t=.015)=>{let n=Ft("lab65");return(a,o)=>{let i=n(a),l=n(o),u=i.l,s=i.a,f=i.b,c=Math.sqrt(s*s+f*f),p=l.l,x=l.a,g=l.b,w=Math.sqrt(x*x+g*g),M=Math.pow(u-p,2),m=Math.pow(c-w,2),k=Math.pow(s-x,2)+Math.pow(f-g,2)-m;return Math.sqrt(M/Math.pow(e,2)+m/Math.pow(1+r*c,2)+k/Math.pow(1+t*c,2))}},eW=(e=1,r=1,t=1)=>{let n=Ft("lab65");return(a,o)=>{let i=n(a),l=n(o),u=i.l,s=i.a,f=i.b,c=Math.sqrt(s*s+f*f),p=l.l,x=l.a,g=l.b,w=Math.sqrt(x*x+g*g),M=(c+w)/2,m=.5*(1-Math.sqrt(Math.pow(M,7)/(Math.pow(M,7)+Math.pow(25,7)))),k=s*(1+m),S=x*(1+m),b=Math.sqrt(k*k+f*f),T=Math.sqrt(S*S+g*g),h=Math.abs(k)+Math.abs(f)===0?0:Math.atan2(f,k);h+=(h<0)*2*Math.PI;let _=Math.abs(S)+Math.abs(g)===0?0:Math.atan2(g,S);_+=(_<0)*2*Math.PI;let y=p-u,v=T-b,A=b*T===0?0:_-h;A-=(A>Math.PI)*2*Math.PI,A+=(A<-Math.PI)*2*Math.PI;let d=2*Math.sqrt(b*T)*Math.sin(A/2),D=(u+p)/2,E=(b+T)/2,R;b*T===0?R=h+_:(R=(h+_)/2,R-=(Math.abs(h-_)>Math.PI)*Math.PI,R+=(R<0)*2*Math.PI);let z=Math.pow(D-50,2),I=1-.17*Math.cos(R-Math.PI/6)+.24*Math.cos(2*R)+.32*Math.cos(3*R+Math.PI/30)-.2*Math.cos(4*R-63*Math.PI/180),P=1+.015*z/Math.sqrt(20+z),L=1+.045*E,F=1+.015*E*I,B=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*R-275)/25,2)),O=2*Math.sqrt(Math.pow(E,7)/(Math.pow(E,7)+Math.pow(25,7))),V=-1*Math.sin(2*B)*O;return Math.sqrt(Math.pow(y/(e*P),2)+Math.pow(v/(r*L),2)+Math.pow(d/(t*F),2)+V*v/(r*L)*d/(t*F))}},rW=(e=1,r=1)=>{let t=Ft("lab65");return(n,a)=>{let o=t(n),i=o.l,l=o.a,u=o.b,s=Math.sqrt(l*l+u*u),f=Math.atan2(u,l);f=f+2*Math.PI*(f<0);let c=t(a),p=c.l,x=c.a,g=c.b,w=Math.sqrt(x*x+g*g),M=Math.pow(i-p,2),m=Math.pow(s-w,2),k=Math.pow(l-x,2)+Math.pow(u-g,2)-m,S=Math.sqrt(Math.pow(s,4)/(Math.pow(s,4)+1900)),b=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),T=i<16?.511:.040975*i/(1+.01765*i),h=.0638*s/(1+.0131*s)+.638,_=h*(S*b+1-S);return Math.sqrt(M/Math.pow(e*T,2)+m/Math.pow(r*h,2)+k/Math.pow(_,2))}},tW=()=>{let e=Ft("lab65");return(r,t)=>{let n=e(r),a=e(t),o=n.l-a.l,i=n.a-a.a,l=n.b-a.b;return Math.abs(o)+Math.sqrt(i*i+l*l)}},nW=()=>M0("yiq",[.5053,.299,.1957]),aW=()=>M0("itp",[518400,129600,518400]),Wi=e=>{let r=e.reduce((n,a)=>{if(a!==void 0){let o=a*Math.PI/180;n.sin+=Math.sin(o),n.cos+=Math.cos(o)}return n},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},F7=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,n)=>t+n,0)/r.length:void 0},ng=e=>typeof e=="function";function iW(e,r="rgb",t){let n=Qn(r),a=e.map(Ft(r));return n.channels.reduce((o,i)=>{let l=a.map(u=>u[i]).filter(u=>u!==void 0);if(l.length){let u;ng(t)?u=t:t&&ng(t[i])?u=t[i]:n.average&&ng(n.average[i])?u=n.average[i]:u=F7,o[i]=u(l,i)}return o},{mode:r})}var oW={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:L7},toMode:{rgb:D7},interpolate:{h:{use:xr,fixup:Xi},s:xr,l:xr,alpha:{use:xr,fixup:yn}},difference:{h:xf},average:{h:Wi}},P7=oW,lW=({l:e,a:r,b:t,alpha:n},a="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let o=Math.sqrt(r*r+t*t),i={mode:a,l:e,c:o};return o&&(i.h=Bn(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(i.alpha=n),i},To=lW,sW=({l:e,c:r,h:t,alpha:n},a="lab")=>{t===void 0&&(t=0);let o={mode:a,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return n!==void 0&&(o.alpha=n),o},Ao=sW,I7=Math.pow(29,3)/Math.pow(3,3),z7=Math.pow(6,3)/Math.pow(29,3),gn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},x0={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},G3e=Math.pow(29,3)/Math.pow(3,3),Y3e=Math.pow(6,3)/Math.pow(29,3),ag=e=>Math.pow(e,3)>z7?Math.pow(e,3):(116*e-16)/I7,uW=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(e+16)/116,o=r/500+a,i=a-t/200,l={mode:"xyz65",x:ag(o)*x0.X,y:ag(a)*x0.Y,z:ag(i)*x0.Z};return n!==void 0&&(l.alpha=n),l},Wg=uW,fW=e=>Qo(Wg(e)),wf=fW,ig=e=>e>z7?Math.cbrt(e):(I7*e+16)/116,cW=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=ig(e/x0.X),o=ig(r/x0.Y),i=ig(t/x0.Z),l={mode:"lab65",l:116*o-16,a:500*(a-o),b:200*(o-i)};return n!==void 0&&(l.alpha=n),l},Zg=cW,vW=e=>{let r=Zg(Ko(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Mf=vW,jv=1,N7=1,bf=26/180*Math.PI,eh=Math.cos(bf),rh=Math.sin(bf),q7=100/Math.log(139/100),hW=({l:e,c:r,h:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"lab65",l:(Math.exp(e*jv/q7)-1)/.0039},o=(Math.exp(.0435*r*N7*jv)-1)/.075,i=o*Math.cos(t/180*Math.PI-bf),l=o*Math.sin(t/180*Math.PI-bf);return a.a=i*eh-l/.83*rh,a.b=i*rh+l/.83*eh,n!==void 0&&(a.alpha=n),a},th=hW,dW=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=r*eh+t*rh,o=.83*(t*eh-r*rh),i=Math.sqrt(a*a+o*o),l={mode:"dlch",l:q7/jv*Math.log(1+.0039*e),c:Math.log(1+.075*i)/(.0435*N7*jv)};return l.c&&(l.h=Bn((Math.atan2(o,a)+bf)/Math.PI*180)),n!==void 0&&(l.alpha=n),l},nh=dW,f7=e=>th(To(e,"dlch")),c7=e=>Ao(nh(e),"dlab"),pW={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:f7,rgb:e=>wf(f7(e))},fromMode:{lab65:c7,rgb:e=>c7(Mf(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:xr,a:xr,b:xr,alpha:{use:xr,fixup:yn}}},B7=pW,gW={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:th,dlab:e=>Ao(e,"dlab"),rgb:e=>wf(th(e))},fromMode:{lab65:nh,dlab:e=>To(e,"dlch"),rgb:e=>nh(Mf(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:xr,c:xr,h:{use:xr,fixup:Xi},alpha:{use:xr,fixup:yn}},difference:{h:_f},average:{h:Wi}},O7=gW;function U7({h:e,s:r,i:t,alpha:n}){e=Bn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:t*(1+r*(3/(2-a)-1)),g:t*(1+r*(3*(1-a)/(2-a)-1)),b:t*(1-r)};break;case 1:o={r:t*(1+r*(3*(1-a)/(2-a)-1)),g:t*(1+r*(3/(2-a)-1)),b:t*(1-r)};break;case 2:o={r:t*(1-r),g:t*(1+r*(3/(2-a)-1)),b:t*(1+r*(3*(1-a)/(2-a)-1))};break;case 3:o={r:t*(1-r),g:t*(1+r*(3*(1-a)/(2-a)-1)),b:t*(1+r*(3/(2-a)-1))};break;case 4:o={r:t*(1+r*(3*(1-a)/(2-a)-1)),g:t*(1-r),b:t*(1+r*(3/(2-a)-1))};break;case 5:o={r:t*(1+r*(3/(2-a)-1)),g:t*(1-r),b:t*(1+r*(3*(1-a)/(2-a)-1))};break;default:o={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return o.mode="rgb",n!==void 0&&(o.alpha=n),o}function H7({r:e,g:r,b:t,alpha:n}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.max(e,r,t),o=Math.min(e,r,t),i={mode:"hsi",s:e+r+t===0?0:1-3*o/(e+r+t),i:(e+r+t)/3};return a-o!==0&&(i.h=(a===e?(r-t)/(a-o)+(r<t)*6:a===r?(t-e)/(a-o)+2:(e-r)/(a-o)+4)*60),n!==void 0&&(i.alpha=n),i}var yW={mode:"hsi",toMode:{rgb:U7},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:H7},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:xr,fixup:Xi},s:xr,i:xr,alpha:{use:xr,fixup:yn}},difference:{h:xf},average:{h:Wi}},V7=yW;function G7({h:e,s:r,l:t,alpha:n}){e=Bn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let a=t+r*(t<.5?t:1-t),o=a-(a-t)*2*Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:a,g:o,b:2*t-a};break;case 1:i={r:o,g:a,b:2*t-a};break;case 2:i={r:2*t-a,g:a,b:o};break;case 3:i={r:2*t-a,g:o,b:a};break;case 4:i={r:o,g:2*t-a,b:a};break;case 5:i={r:a,g:2*t-a,b:o};break;default:i={r:2*t-a,g:2*t-a,b:2*t-a}}return i.mode="rgb",n!==void 0&&(i.alpha=n),i}function Y7({r:e,g:r,b:t,alpha:n}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.max(e,r,t),o=Math.min(e,r,t),i={mode:"hsl",s:a===o?0:(a-o)/(1-Math.abs(a+o-1)),l:.5*(a+o)};return a-o!==0&&(i.h=(a===e?(r-t)/(a-o)+(r<t)*6:a===r?(t-e)/(a-o)+2:(e-r)/(a-o)+4)*60),n!==void 0&&(i.alpha=n),i}var mW=(e,r)=>{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},bW=mW,xW=new RegExp(`^hsla?\\(\\s*${gX}${_0}${yf}${_0}${yf}\\s*(?:,\\s*${Yg}\\s*)?\\)$`),_W=e=>{let r=e.match(xW);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=bW(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},X7=_W;function wW(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,n,a,o,i]=r;if(n.type!==gr.None){if(n.type===gr.Percentage)return;t.h=n.value}if(a.type!==gr.None){if(a.type===gr.Hue)return;t.s=a.value/100}if(o.type!==gr.None){if(o.type===gr.Hue)return;t.l=o.value/100}return i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var W7=wW,MW={mode:"hsl",toMode:{rgb:G7},fromMode:{rgb:Y7},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[W7,X7],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:xr,fixup:Xi},s:xr,l:xr,alpha:{use:xr,fixup:yn}},difference:{h:xf},average:{h:Wi}},Jg=MW;function $g({h:e,s:r,v:t,alpha:n}){e=Bn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:t,g:t*(1-r*a),b:t*(1-r)};break;case 1:o={r:t*(1-r*a),g:t,b:t*(1-r)};break;case 2:o={r:t*(1-r),g:t,b:t*(1-r*a)};break;case 3:o={r:t*(1-r),g:t*(1-r*a),b:t};break;case 4:o={r:t*(1-r*a),g:t*(1-r),b:t};break;case 5:o={r:t,g:t*(1-r),b:t*(1-r*a)};break;default:o={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return o.mode="rgb",n!==void 0&&(o.alpha=n),o}function Kg({r:e,g:r,b:t,alpha:n}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.max(e,r,t),o=Math.min(e,r,t),i={mode:"hsv",s:a===0?0:1-o/a,v:a};return a-o!==0&&(i.h=(a===e?(r-t)/(a-o)+(r<t)*6:a===r?(t-e)/(a-o)+2:(e-r)/(a-o)+4)*60),n!==void 0&&(i.alpha=n),i}var TW={mode:"hsv",toMode:{rgb:$g},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:Kg},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:xr,fixup:Xi},s:xr,v:xr,alpha:{use:xr,fixup:yn}},difference:{h:xf},average:{h:Wi}},Qg=TW;function Z7({h:e,w:r,b:t,alpha:n}){if(r===void 0&&(r=0),t===void 0&&(t=0),r+t>1){let a=r+t;r/=a,t/=a}return $g({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:n})}function J7(e){let r=Kg(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,n=r.v!==void 0?r.v:0,a={mode:"hwb",w:(1-t)*n,b:1-n};return r.h!==void 0&&(a.h=r.h),r.alpha!==void 0&&(a.alpha=r.alpha),a}function AW(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,n,a,o,i]=r;if(n.type!==gr.None){if(n.type===gr.Percentage)return;t.h=n.value}if(a.type!==gr.None){if(a.type===gr.Hue)return;t.w=a.value/100}if(o.type!==gr.None){if(o.type===gr.Hue)return;t.b=o.value/100}return i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var $7=AW,kW={mode:"hwb",toMode:{rgb:Z7},fromMode:{rgb:J7},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[$7],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:xr,fixup:Xi},w:xr,b:xr,alpha:{use:xr,fixup:yn}},difference:{h:R7},average:{h:Wi}},K7=kW,Q7=203,sh=.1593017578125,j7=78.84375,uh=.8359375,fh=18.8515625,ch=18.6875;function og(e){if(e<0)return 0;let r=Math.pow(e,1/j7);return 1e4*Math.pow(Math.max(0,r-uh)/(fh-ch*r),1/sh)}function lg(e){if(e<0)return 0;let r=Math.pow(e/1e4,sh);return Math.pow((uh+fh*r)/(1+ch*r),j7)}var sg=e=>Math.max(e/Q7,0),SW=({i:e,t:r,p:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=og(e+.008609037037932761*r+.11102962500302593*t),o=og(e-.00860903703793275*r-.11102962500302599*t),i=og(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:sg(2.070152218389422*a-1.3263473389671556*o+.2066510476294051*i),y:sg(.3647385209748074*a+.680566024947227*o-.0453045459220346*i),z:sg(-.049747207535812*a-.0492609666966138*o+1.1880659249923042*i)};return n!==void 0&&(l.alpha=n),l},Sg=SW,ug=(e=0)=>Math.max(e*Q7,0),CW=({x:e,y:r,z:t,alpha:n})=>{let a=ug(e),o=ug(r),i=ug(t),l=lg(.3592832590121217*a+.6976051147779502*o-.0358915932320289*i),u=lg(-.1920808463704995*a+1.1004767970374323*o+.0753748658519118*i),s=lg(.0070797844607477*a+.0748396662186366*o+.8433265453898765*i),f=.5*l+.5*u,c=1.61376953125*l-3.323486328125*u+1.709716796875*s,p=4.378173828125*l-4.24560546875*u-.132568359375*s,x={mode:"itp",i:f,t:c,p};return n!==void 0&&(x.alpha=n),x},Cg=CW,EW={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Sg,rgb:e=>Qo(Sg(e))},fromMode:{xyz65:Cg,rgb:e=>Cg(Ko(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:xr,t:xr,p:xr,alpha:{use:xr,fixup:yn}}},e8=EW,LW=134.03437499999998,DW=16295499532821565e-27,fg=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,sh);return Math.pow((uh+fh*r)/(1+ch*r),LW)},cg=(e=0)=>Math.max(e*203,0),RW=({x:e,y:r,z:t,alpha:n})=>{e=cg(e),r=cg(r),t=cg(t);let a=1.15*e-.15*t,o=.66*r+.34*e,i=fg(.41478972*a+.579999*o+.014648*t),l=fg(-.20151*a+1.120649*o+.0531008*t),u=fg(-.0166008*a+.2648*o+.6684799*t),s=(i+l)/2,f={mode:"jab",j:.44*s/(1-.56*s)-DW,a:3.524*i-4.066708*l+.542708*u,b:.199076*i+1.096799*l-1.295875*u};return n!==void 0&&(f.alpha=n),f},jg=RW,FW=134.03437499999998,v7=16295499532821565e-27,vg=e=>{if(e<0)return 0;let r=Math.pow(e,1/FW);return 1e4*Math.pow((uh-r)/(ch*r-fh),1/sh)},hg=e=>e/203,PW=({j:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(e+v7)/(.44+.56*(e+v7)),o=vg(a+.13860504*r+.058047316*t),i=vg(a-.13860504*r-.058047316*t),l=vg(a-.096019242*r-.8118919*t),u={mode:"xyz65",x:hg(1.661373024652174*o-.914523081304348*i+.23136208173913045*l),y:hg(-.3250758611844533*o+1.571847026732543*i-.21825383453227928*l),z:hg(-.090982811*o-.31272829*i+1.5227666*l)};return n!==void 0&&(u.alpha=n),u},e3=PW,IW=e=>{let r=jg(Ko(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},r3=IW,zW=e=>Qo(e3(e)),t3=zW,NW={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:r3,xyz65:jg},toMode:{rgb:t3,xyz65:e3},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:xr,a:xr,b:xr,alpha:{use:xr,fixup:yn}}},r8=NW,qW=({j:e,a:r,b:t,alpha:n})=>{r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.sqrt(r*r+t*t),o={mode:"jch",j:e,c:a};return a&&(o.h=Bn(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(o.alpha=n),o},Eg=qW,BW=({j:e,c:r,h:t,alpha:n})=>{t===void 0&&(t=0);let a={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return n!==void 0&&(a.alpha=n),a},Lg=BW,OW={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Lg,rgb:e=>t3(Lg(e))},fromMode:{rgb:e=>Eg(r3(e)),jab:Eg},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:xr,fixup:Xi},c:xr,j:xr,alpha:{use:xr,fixup:yn}},difference:{h:_f},average:{h:Wi}},t8=OW,vh=Math.pow(29,3)/Math.pow(3,3),n3=Math.pow(6,3)/Math.pow(29,3),dg=e=>Math.pow(e,3)>n3?Math.pow(e,3):(116*e-16)/vh,UW=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(e+16)/116,o=r/500+a,i=a-t/200,l={mode:"xyz50",x:dg(o)*gn.X,y:dg(a)*gn.Y,z:dg(i)*gn.Z};return n!==void 0&&(l.alpha=n),l},hh=UW,HW=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=us({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return n!==void 0&&(a.alpha=n),a},T0=HW,VW=e=>T0(hh(e)),a3=VW,GW=e=>{let{r,g:t,b:n,alpha:a}=ss(e),o={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*n,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*n,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*n};return a!==void 0&&(o.alpha=a),o},A0=GW,pg=e=>e>n3?Math.cbrt(e):(vh*e+16)/116,YW=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=pg(e/gn.X),o=pg(r/gn.Y),i=pg(t/gn.Z),l={mode:"lab",l:116*o-16,a:500*(a-o),b:200*(o-i)};return n!==void 0&&(l.alpha=n),l},dh=YW,XW=e=>{let r=dh(A0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},i3=XW;function WW(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,n,a,o,i]=r;if(!(n.type===gr.Hue||a.type===gr.Hue||o.type===gr.Hue))return n.type!==gr.None&&(t.l=Math.min(Math.max(0,n.value),100)),a.type!==gr.None&&(t.a=a.type===gr.Number?a.value:a.value*125/100),o.type!==gr.None&&(t.b=o.type===gr.Number?o.value:o.value*125/100),i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var n8=WW,ZW={mode:"lab",toMode:{xyz50:hh,rgb:a3},fromMode:{xyz50:dh,rgb:i3},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[n8],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:xr,a:xr,b:xr,alpha:{use:xr,fixup:yn}}},ph=ZW,JW=qt(xt({},ph),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Wg,rgb:wf},fromMode:{xyz65:Zg,rgb:Mf},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),a8=JW;function $W(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,n,a,o,i]=r;if(n.type!==gr.None){if(n.type===gr.Hue)return;t.l=Math.min(Math.max(0,n.value),100)}if(a.type!==gr.None&&(t.c=Math.max(0,a.type===gr.Number?a.value:a.value*150/100)),o.type!==gr.None){if(o.type===gr.Percentage)return;t.h=o.value}return i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var i8=$W,KW={mode:"lch",toMode:{lab:Ao,rgb:e=>a3(Ao(e))},fromMode:{rgb:e=>To(i3(e)),lab:To},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[i8],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:xr,fixup:Xi},c:xr,l:xr,alpha:{use:xr,fixup:yn}},difference:{h:_f},average:{h:Wi}},gh=KW,QW=qt(xt({},gh),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Ao(e,"lab65"),rgb:e=>wf(Ao(e,"lab65"))},fromMode:{rgb:e=>To(Mf(e),"lch65"),lab65:e=>To(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),o8=QW,jW=({l:e,u:r,v:t,alpha:n})=>{r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.sqrt(r*r+t*t),o={mode:"lchuv",l:e,c:a};return a&&(o.h=Bn(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(o.alpha=n),o},o3=jW,eZ=({l:e,c:r,h:t,alpha:n})=>{t===void 0&&(t=0);let a={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return n!==void 0&&(a.alpha=n),a},l3=eZ,l8=(e,r,t)=>4*e/(e+15*r+3*t),s8=(e,r,t)=>9*r/(e+15*r+3*t),rZ=l8(gn.X,gn.Y,gn.Z),tZ=s8(gn.X,gn.Y,gn.Z),nZ=e=>e<=n3?vh*e:116*Math.cbrt(e)-16,aZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=nZ(r/gn.Y),o=l8(e,r,t),i=s8(e,r,t);!isFinite(o)||!isFinite(i)?a=o=i=0:(o=13*a*(o-rZ),i=13*a*(i-tZ));let l={mode:"luv",l:a,u:o,v:i};return n!==void 0&&(l.alpha=n),l},ah=aZ,iZ=(e,r,t)=>4*e/(e+15*r+3*t),oZ=(e,r,t)=>9*r/(e+15*r+3*t),lZ=iZ(gn.X,gn.Y,gn.Z),sZ=oZ(gn.X,gn.Y,gn.Z),uZ=({l:e,u:r,v:t,alpha:n})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let a=r/(13*e)+lZ,o=t/(13*e)+sZ,i=gn.Y*(e<=8?e/vh:Math.pow((e+16)/116,3)),l=i*(9*a)/(4*o),u=i*(12-3*a-20*o)/(4*o),s={mode:"xyz50",x:l,y:i,z:u};return n!==void 0&&(s.alpha=n),s},ih=uZ,fZ=e=>o3(ah(A0(e))),cZ=e=>T0(ih(l3(e))),vZ={mode:"lchuv",toMode:{luv:l3,rgb:cZ},fromMode:{rgb:fZ,luv:o3},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:xr,fixup:Xi},c:xr,l:xr,alpha:{use:xr,fixup:yn}},difference:{h:_f},average:{h:Wi}},u8=vZ,hZ=qt(xt({},ls),{mode:"lrgb",toMode:{rgb:us},fromMode:{rgb:ss},parse:["srgb-linear"],serialize:"srgb-linear"}),f8=hZ,dZ={mode:"luv",toMode:{xyz50:ih,rgb:e=>T0(ih(e))},fromMode:{xyz50:ah,rgb:e=>ah(A0(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:xr,u:xr,v:xr,alpha:{use:xr,fixup:yn}}},c8=dZ,pZ=({r:e,g:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),o=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),i=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*a+.7936177747023054*o-.0040720430116193*i,a:1.9779985324311684*a-2.42859224204858*o+.450593709617411*i,b:.0259040424655478*a+.7827717124575296*o-.8086757549230774*i};return n!==void 0&&(l.alpha=n),l},s3=pZ,gZ=e=>{let r=s3(ss(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Tf=gZ,yZ=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),o=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),i=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*a-3.3077115392580616*o+.2309699031821044*i,g:-1.2684379732850317*a+2.6097573492876887*o-.3413193760026573*i,b:-.0041960761386756*a-.7034186179359362*o+1.7076146940746117*i};return n!==void 0&&(l.alpha=n),l},k0=yZ,mZ=e=>us(k0(e)),Af=mZ;function Dg(e){let n=1.170873786407767;return .5*(n*e-.206+Math.sqrt((n*e-.206)*(n*e-.206)+4*.03*n*e))}function oh(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function bZ(e,r){let t,n,a,o,i,l,u,s;-1.88170328*e-.80936493*r>1?(t=1.19086277,n=1.76576728,a=.59662641,o=.75515197,i=.56771245,l=4.0767416621,u=-3.3077115913,s=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,n=-.45954404,a=.08285427,o=.1254107,i=.14503204,l=-1.2684380046,u=2.6097574011,s=-.3413193965):(t=1.35733652,n=-.00915799,a=-1.1513021,o=-.50559606,i=.00692167,l=-.0041960863,u=-.7034186147,s=1.707614701);let f=t+n*e+a*r+o*e*e+i*e*r,c=.3963377774*e+.2158037573*r,p=-.1055613458*e-.0638541728*r,x=-.0894841775*e-1.291485548*r;{let g=1+f*c,w=1+f*p,M=1+f*x,m=g*g*g,k=w*w*w,S=M*M*M,b=3*c*g*g,T=3*p*w*w,h=3*x*M*M,_=6*c*c*g,y=6*p*p*w,v=6*x*x*M,A=l*m+u*k+s*S,d=l*b+u*T+s*h,D=l*_+u*y+s*v;f=f-A*d/(d*d-.5*A*D)}return f}function u3(e,r){let t=bZ(e,r),n=k0({l:1,a:t*e,b:t*r}),a=Math.cbrt(1/Math.max(n.r,n.g,n.b)),o=a*t;return[a,o]}function xZ(e,r,t,n,a,o=null){o||(o=u3(e,r));let i;if((t-a)*o[1]-(o[0]-a)*n<=0)i=o[1]*a/(n*o[0]+o[1]*(a-t));else{i=o[1]*(a-1)/(n*(o[0]-1)+o[1]*(a-t));{let l=t-a,u=n,s=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,p=l+u*s,x=l+u*f,g=l+u*c;{let w=a*(1-i)+i*t,M=i*n,m=w+M*s,k=w+M*f,S=w+M*c,b=m*m*m,T=k*k*k,h=S*S*S,_=3*p*m*m,y=3*x*k*k,v=3*g*S*S,A=6*p*p*m,d=6*x*x*k,D=6*g*g*S,E=4.0767416621*b-3.3077115913*T+.2309699292*h-1,R=4.0767416621*_-3.3077115913*y+.2309699292*v,z=4.0767416621*A-3.3077115913*d+.2309699292*D,I=R/(R*R-.5*E*z),P=-E*I,L=-1.2684380046*b+2.6097574011*T-.3413193965*h-1,F=-1.2684380046*_+2.6097574011*y-.3413193965*v,B=-1.2684380046*A+2.6097574011*d-.3413193965*D,O=F/(F*F-.5*L*B),V=-L*O,K=-.0041960863*b-.7034186147*T+1.707614701*h-1,j=-.0041960863*_-.7034186147*y+1.707614701*v,G=-.0041960863*A-.7034186147*d+1.707614701*D,q=j/(j*j-.5*K*G),J=-K*q;P=I>=0?P:1e6,V=O>=0?V:1e6,J=q>=0?J:1e6,i+=Math.min(P,Math.min(V,J))}}}return i}function f3(e,r,t=null){t||(t=u3(e,r));let n=t[0],a=t[1];return[a/n,a/(1-n)]}function v8(e,r,t){let n=u3(r,t),a=xZ(r,t,e,1,e,n),o=f3(r,t,n),i=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),u=a/Math.min(e*o[0],(1-e)*o[1]),s=e*i,f=(1-e)*l,c=.9*u*Math.sqrt(Math.sqrt(1/(1/(s*s*s*s)+1/(f*f*f*f))));return s=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(s*s)+1/(f*f))),c,a]}function Rg(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,a={mode:"okhsl",l:Dg(r)};e.alpha!==void 0&&(a.alpha=e.alpha);let o=Math.sqrt(t*t+n*n);if(!o)return a.s=0,a;let[i,l,u]=v8(r,t/o,n/o),s;if(o<l){let f=0,c=.8*i,p=1-c/l;s=(o-f)/(c+p*(o-f))*.8}else{let f=l,c=.2*l*l*1.25*1.25/i,p=1-c/(u-l);s=.8+.2*((o-f)/(c+p*(o-f)))}return s&&(a.s=s,a.h=Bn(Math.atan2(n,t)*180/Math.PI)),a}function Fg(e){let r=e.h!==void 0?e.h:0,t=e.s!==void 0?e.s:0,n=e.l!==void 0?e.l:0,a={mode:"oklab",l:oh(n)};if(e.alpha!==void 0&&(a.alpha=e.alpha),!t||n===1)return a.a=a.b=0,a;let o=Math.cos(r/180*Math.PI),i=Math.sin(r/180*Math.PI),[l,u,s]=v8(a.l,o,i),f,c,p,x;t<.8?(f=1.25*t,c=0,p=.8*l,x=1-p/u):(f=5*(t-.8),c=u,p=.2*u*u*1.25*1.25/l,x=1-p/(s-u));let g=c+f*p/(1-x*f);return a.a=g*o,a.b=g*i,a}var _Z=qt(xt({},Jg),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Rg,rgb:e=>Rg(Tf(e))},toMode:{oklab:Fg,rgb:e=>Af(Fg(e))}}),h8=_Z;function Pg(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,a=Math.sqrt(t*t+n*n),o=a?t/a:1,i=a?n/a:1,[l,u]=f3(o,i),s=.5,f=1-s/l,c=u/(a+r*u),p=c*r,x=c*a,g=oh(p),w=x*g/p,M=k0({l:g,a:o*w,b:i*w}),m=Math.cbrt(1/Math.max(M.r,M.g,M.b,0));r=r/m,a=a/m*Dg(r)/r,r=Dg(r);let k={mode:"okhsv",s:a?(s+u)*x/(u*s+u*f*x):0,v:r?r/p:0};return k.s&&(k.h=Bn(Math.atan2(n,t)*180/Math.PI)),e.alpha!==void 0&&(k.alpha=e.alpha),k}function Ig(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,a=e.v!==void 0?e.v:0,o=Math.cos(t/180*Math.PI),i=Math.sin(t/180*Math.PI),[l,u]=f3(o,i),s=.5,f=1-s/l,c=1-n*s/(s+u-u*f*n),p=n*u*s/(s+u-u*f*n),x=oh(c),g=p*x/c,w=k0({l:x,a:o*g,b:i*g}),M=Math.cbrt(1/Math.max(w.r,w.g,w.b,0)),m=oh(a*c),k=p*m/c;return r.l=m*M,r.a=k*o*M,r.b=k*i*M,r}var wZ=qt(xt({},Qg),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Pg,rgb:e=>Pg(Tf(e))},toMode:{oklab:Ig,rgb:e=>Af(Ig(e))}}),d8=wZ;function MZ(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,n,a,o,i]=r;if(!(n.type===gr.Hue||a.type===gr.Hue||o.type===gr.Hue))return n.type!==gr.None&&(t.l=Math.min(Math.max(0,n.type===gr.Number?n.value:n.value/100),1)),a.type!==gr.None&&(t.a=a.type===gr.Number?a.value:a.value*.4/100),o.type!==gr.None&&(t.b=o.type===gr.Number?o.value:o.value*.4/100),i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var p8=MZ,TZ=qt(xt({},ph),{mode:"oklab",toMode:{lrgb:k0,rgb:Af},fromMode:{lrgb:s3,rgb:Tf},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[p8],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),g8=TZ;function AZ(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,n,a,o,i]=r;if(n.type!==gr.None){if(n.type===gr.Hue)return;t.l=Math.min(Math.max(0,n.type===gr.Number?n.value:n.value/100),1)}if(a.type!==gr.None&&(t.c=Math.max(0,a.type===gr.Number?a.value:a.value*.4/100)),o.type!==gr.None){if(o.type===gr.Percentage)return;t.h=o.value}return i.type!==gr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===gr.Number?i.value:i.value/100))),t}var y8=AZ,kZ=qt(xt({},gh),{mode:"oklch",toMode:{oklab:e=>Ao(e,"oklab"),rgb:e=>Af(Ao(e,"oklab"))},fromMode:{rgb:e=>To(Tf(e),"oklch"),oklab:e=>To(e,"oklch")},parse:[y8],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),m8=kZ,SZ=e=>{let{r,g:t,b:n,alpha:a}=ss(e),o={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*n,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*n,z:0*r+.0451133818589026*t+1.043944368900976*n};return a!==void 0&&(o.alpha=a),o},zg=SZ,CZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=us({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return n!==void 0&&(a.alpha=n),a},Ng=CZ,EZ=qt(xt({},ls),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>Ng(Ko(e)),xyz65:Ng},toMode:{rgb:e=>Qo(zg(e)),xyz65:zg}}),b8=EZ,gg=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},LZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"prophoto",r:gg(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:gg(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:gg(e*0+r*0+1.2119675456389452*t)};return n!==void 0&&(a.alpha=n),a},qg=LZ,yg=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},DZ=e=>{let r=yg(e.r),t=yg(e.g),n=yg(e.b),a={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*n,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*n,z:0*r+0*t+.8251046025104602*n};return e.alpha!==void 0&&(a.alpha=e.alpha),a},Bg=DZ,RZ=qt(xt({},ls),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:qg,rgb:e=>qg(A0(e))},toMode:{xyz50:Bg,rgb:e=>T0(Bg(e))}}),x8=RZ,h7=1.09929682680944,FZ=.018053968510807,mg=e=>{let r=Math.abs(e);return r>FZ?(Math.sign(e)||1)*(h7*Math.pow(r,.45)-(h7-1)):4.5*e},PZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"rec2020",r:mg(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:mg(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:mg(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return n!==void 0&&(a.alpha=n),a},Og=PZ,d7=1.09929682680944,IZ=.018053968510807,bg=(e=0)=>{let r=Math.abs(e);return r<IZ*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+d7-1)/d7,1/.45)},zZ=e=>{let r=bg(e.r),t=bg(e.g),n=bg(e.b),a={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*n,y:.262700212011267*r+.6779980715188708*t+.059301716469862*n,z:0*r+.0280726930490874*t+1.0609850577107909*n};return e.alpha!==void 0&&(a.alpha=e.alpha),a},Ug=zZ,NZ=qt(xt({},ls),{mode:"rec2020",fromMode:{xyz65:Og,rgb:e=>Og(Ko(e))},toMode:{xyz65:Ug,rgb:e=>Qo(Ug(e))},parse:["rec2020"],serialize:"rec2020"}),_8=NZ,is=.0037930732552754493,w8=Math.cbrt(is),xg=e=>Math.cbrt(e)-w8,qZ=e=>{let{r,g:t,b:n,alpha:a}=ss(e),o=xg(.3*r+.622*t+.078*n+is),i=xg(.23*r+.692*t+.078*n+is),l=xg(.2434226892454782*r+.2047674442449682*t+.5518098665095535*n+is),u={mode:"xyb",x:(o-i)/2,y:(o+i)/2,b:l-(o+i)/2};return a!==void 0&&(u.alpha=a),u},M8=qZ,_g=e=>Math.pow(e+w8,3),BZ=({x:e,y:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=_g(e+r)-is,o=_g(r-e)-is,i=_g(t+r)-is,l=us({r:11.031566904639861*a-9.866943908131562*o-.16462299650829934*i,g:-3.2541473810744237*a+4.418770377582723*o-.16462299650829934*i,b:-3.6588512867136815*a+2.7129230459360922*o+1.9459282407775895*i});return n!==void 0&&(l.alpha=n),l},T8=BZ,OZ={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:T8},fromMode:{rgb:M8},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:xr,y:xr,b:xr,alpha:{use:xr,fixup:yn}}},A8=OZ,UZ={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:T0,lab:dh},fromMode:{rgb:A0,lab:hh},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:xr,y:xr,z:xr,alpha:{use:xr,fixup:yn}}},k8=UZ,HZ=e=>{let{x:r,y:t,z:n,alpha:a}=e;r===void 0&&(r=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*n,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*n,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*n};return a!==void 0&&(o.alpha=a),o},S8=HZ,VZ=e=>{let{x:r,y:t,z:n,alpha:a}=e;r===void 0&&(r=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*n,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*n,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*n};return a!==void 0&&(o.alpha=a),o},C8=VZ,GZ={mode:"xyz65",toMode:{rgb:Qo,xyz50:S8},fromMode:{rgb:Ko,xyz50:C8},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:xr,y:xr,z:xr,alpha:{use:xr,fixup:yn}}},E8=GZ,YZ=({r:e,g:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return n!==void 0&&(a.alpha=n),a},L8=YZ,XZ=({y:e,i:r,q:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return n!==void 0&&(a.alpha=n),a},D8=XZ,WZ={mode:"yiq",toMode:{rgb:D8},fromMode:{rgb:L8},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:xr,i:xr,q:xr,alpha:{use:xr,fixup:yn}}},R8=WZ,ZZ=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,JZ=(e=4)=>r=>typeof r=="number"?ZZ(r,e):r,F8=JZ,gf=F8(2),mf=e=>Math.max(0,Math.min(1,e||0)),os=e=>Math.round(mf(e)*255),c3=Ft("rgb"),$Z=Ft("hsl"),v3=e=>{if(e===void 0)return;let r=os(e.r),t=os(e.g),n=os(e.b);return"#"+(1<<24|r<<16|t<<8|n).toString(16).slice(1)},P8=e=>{if(e===void 0)return;let r=os(e.alpha!==void 0?e.alpha:1);return v3(e)+(256|r).toString(16).slice(1)},I8=e=>{if(e===void 0)return;let r=os(e.r),t=os(e.g),n=os(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${n})`:`rgba(${r}, ${t}, ${n}, ${gf(mf(e.alpha))})`},z8=e=>{if(e===void 0)return;let r=gf(e.h||0),t=gf(mf(e.s)*100)+"%",n=gf(mf(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${n})`:`hsla(${r}, ${t}, ${n}, ${gf(mf(e.alpha))})`},KZ=e=>{let r=gi(e);if(!r)return;let t=Qn(r.mode);if(!t.serialize||typeof t.serialize=="string"){let n=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((a,o)=>{a!=="alpha"&&(n+=(o?" ":"")+(r[a]!==void 0?r[a]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(n+=` / ${r.alpha}`),n+")"}if(typeof t.serialize=="function")return t.serialize(r)},QZ=e=>v3(c3(e)),jZ=e=>P8(c3(e)),eJ=e=>I8(c3(e)),rJ=e=>z8($Z(e)),tJ={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},nJ=(e,r="normal",t="rgb")=>{let n=typeof r=="function"?r:tJ[r],a=Ft(t),o=Qn(t).channels;return e.map(l=>{let u=a(l);return u.alpha===void 0&&(u.alpha=1),u}).reduce((l,u)=>{if(l===void 0)return u;let s=u.alpha+l.alpha*(1-u.alpha);return o.reduce((f,c)=>(c!=="alpha"&&(s===0?f[c]=0:(f[c]=u.alpha*(1-l.alpha)*u[c]+u.alpha*l.alpha*n(l[c],u[c])+(1-u.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/s)))),f),{mode:t,alpha:s})})},aJ=nJ,iJ=([e,r])=>e+Math.random()*(r-e),oJ=e=>Object.keys(e).reduce((r,t)=>{let n=e[t];return r[t]=Array.isArray(n)?n:[n,n],r},{}),lJ=(e="rgb",r={})=>{let t=Qn(e),n=oJ(r);return t.channels.reduce((a,o)=>((n.alpha||o!=="alpha")&&(a[o]=iJ(n[o]||t.ranges[o])),a),{mode:e})},sJ=lJ,kf=(e,r="rgb",t=!1)=>{let n=r?Qn(r).channels:null,a=r?Ft(r):gi;return o=>{let i=a(o);if(!i)return;let l=(n||Qn(i.mode).channels).reduce((s,f)=>{let c=e(i[f],f,i,r);return c!==void 0&&!isNaN(c)&&(s[f]=c),s},{mode:i.mode});if(!t)return l;let u=gi(o);return u&&u.mode!==l.mode?Ft(u.mode)(l):l}},N8=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,q8=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,h3=(e=1,r=0)=>(t,n)=>n!=="alpha"?t*e+r:t,uJ=(e=1,r=1,t=0)=>(n,a)=>a!=="alpha"?e*Math.pow(n,r)+t:n,fJ=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,n,a,o;for(;r<e.length;){if(e[r]===void 0){for(n=r,a=e[r-1],t=r;e[t]===void 0;)t++;for(o=(e[t]-a)/(t-r+1);r<t;)e[r]=a+(r+1-n)*o,r++}else e[r]<e[r-1]&&(e[r]=e[r-1]);r++}return e},cJ=fJ,vJ=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),B8=vJ,$v=e=>typeof e=="function",ns=e=>e&&typeof e=="object",p7=e=>typeof e=="number",O8=(e,r="rgb",t,n)=>{let a=Qn(r),o=Ft(r),i=[],l=[],u={};e.forEach(p=>{Array.isArray(p)?(i.push(o(p[0])),l.push(p[1])):p7(p)||$v(p)?u[l.length]=p:(i.push(o(p)),l.push(void 0))}),cJ(l);let s=a.channels.reduce((p,x)=>{let g;return ns(t)&&ns(t[x])&&t[x].fixup?g=t[x].fixup:ns(a.interpolate[x])&&a.interpolate[x].fixup?g=a.interpolate[x].fixup:g=w=>w,p[x]=g(i.map(w=>w[x])),p},{});if(n){let p=i.map((x,g)=>a.channels.reduce((w,M)=>(w[M]=s[M][g],w),{mode:r}));s=a.channels.reduce((x,g)=>(x[g]=p.map(w=>{let M=n(w[g],g,w,r);return isNaN(M)?void 0:M}),x),{})}let f=a.channels.reduce((p,x)=>{let g;return $v(t)?g=t:ns(t)&&$v(t[x])?g=t[x]:ns(t)&&ns(t[x])&&t[x].use?g=t[x].use:$v(a.interpolate[x])?g=a.interpolate[x]:ns(a.interpolate[x])&&(g=a.interpolate[x].use),p[x]=g(s[x]),p},{}),c=i.length-1;return p=>{if(p=Math.min(Math.max(0,p),1),p<=l[0])return i[0];if(p>l[c])return i[c];let x=0;for(;l[x]<p;)x++;let g=l[x-1],w=l[x]-g,M=(p-g)/w,m=u[x]||u[0];m!==void 0&&(p7(m)&&(m=B8((m-g)/w)),M=m(M));let k=(x-1+M)/c;return a.channels.reduce((S,b)=>{let T=f[b](k);return T!==void 0&&(S[b]=T),S},{mode:r})}},hJ=(e,r="rgb",t)=>O8(e,r,t),U8=(e,r)=>(t,n="rgb",a)=>{let o=r?kf(r,n):void 0,i=O8(t,n,a,e);return o?l=>o(i(l)):i},dJ=U8(N8,q8),Kv=(e,r)=>(e+r)%r,H8=(e,r,t,n,a)=>{let o=a*a,i=o*a;return((1-3*a+3*o-i)*e+(4-6*o+3*i)*r+(1+3*a+3*o-3*i)*t+i*n)/6},V8=e=>r=>{let t=e.length-1,n=r>=1?t-1:Math.max(0,Math.floor(r*t));return H8(n>0?e[n-1]:2*e[n]-e[n+1],e[n],e[n+1],n<t-1?e[n+2]:2*e[n+1]-e[n],(r-n/t)*t)},G8=e=>r=>{let t=e.length-1,n=Math.floor(r*t);return H8(e[Kv(n-1,e.length)],e[Kv(n,e.length)],e[Kv(n+1,e.length)],e[Kv(n+2,e.length)],(r-n/t)*t)},Y8=e=>{let r,t=e.length-1,n=new Array(t),a=new Array(t),o=new Array(t);for(n[1]=1/4,a[1]=(6*e[1]-e[0])/4,r=2;r<t;++r)n[r]=1/(4-n[r-1]),a[r]=(6*e[r]-(r==t-1?e[t]:0)-a[r-1])*n[r];for(o[0]=e[0],o[t]=e[t],t-1>0&&(o[t-1]=a[t-1]),r=t-2;r>0;--r)o[r]=a[r]-n[r]*o[r+1];return o},pJ=e=>V8(Y8(e)),gJ=e=>G8(Y8(e)),b0=Math.sign,Hg=Math.min,Sa=Math.abs,d3=e=>{let r=e.length-1,t=[],n=[],a=[];for(let o=0;o<r;o++)t.push((e[o+1]-e[o])*r),n.push(o>0?.5*(e[o+1]-e[o-1])*r:void 0),a.push(o>0?(b0(t[o-1])+b0(t[o]))*Hg(Sa(t[o-1]),Sa(t[o]),.5*Sa(n[o])):void 0);return[t,n,a]},p3=(e,r,t)=>{let n=e.length-1,a=n*n;return o=>{let i;o>=1?i=n-1:i=Math.max(0,Math.floor(o*n));let l=o-i/n,u=l*l,s=u*l;return(r[i]+r[i+1]-2*t[i])*a*s+(3*t[i]-2*r[i]-r[i+1])*n*u+r[i]*l+e[i]}},yJ=e=>{if(e.length<3)return xr(e);let r=e.length-1,[t,,n]=d3(e);return n[0]=t[0],n[r]=t[r-1],p3(e,n,t)},mJ=e=>{if(e.length<3)return xr(e);let r=e.length-1,[t,n,a]=d3(e);return n[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,n[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,a[0]=n[0]*t[0]<=0?0:Sa(n[0])>2*Sa(t[0])?2*t[0]:n[0],a[r]=n[r]*t[r-1]<=0?0:Sa(n[r])>2*Sa(t[r-1])?2*t[r-1]:n[r],p3(e,a,t)},bJ=e=>{let r=e.length-1,[t,n,a]=d3(e);n[0]=.5*(e[1]-e[r])*r,n[r]=.5*(e[0]-e[r-1])*r;let o=(e[0]-e[r])*r,i=o;return a[0]=(b0(o)+b0(t[0]))*Hg(Sa(o),Sa(t[0]),.5*Sa(n[0])),a[r]=(b0(t[r-1])+b0(i))*Hg(Sa(t[r-1]),Sa(i),.5*Sa(n[r])),p3(e,a,t)},xJ=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),X8=xJ,_J=(e=2,r=1)=>{let t=X8(r);if(e<2)return e<1?[]:[t(.5)];let n=[];for(let a=0;a<e;a++)n.push(t(a/(e-1)));return n},wJ=_J,W8=Ft("rgb"),Z8=e=>{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},J8=e=>Z8(W8(e)),$8=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function g3(e){return $8(W8(e))}function yh(e="rgb"){let{gamut:r}=Qn(e);if(!r)return n=>!0;let t=Ft(typeof r=="string"?r:e);return n=>$8(t(n))}function MJ(e){return e=gi(e),e===void 0||g3(e)?e:Ft(e.mode)(J8(e))}function y3(e="rgb"){let{gamut:r}=Qn(e);if(!r)return o=>gi(o);let t=typeof r=="string"?r:e,n=Ft(t),a=yh(t);return o=>{let i=gi(o);if(!i)return;let l=n(i);if(a(l))return i;let u=Z8(l);return i.mode===u.mode?u:Ft(i.mode)(u)}}function TJ(e,r="lch",t="rgb"){e=gi(e);let n=t==="rgb"?g3:yh(t),a=t==="rgb"?J8:y3(t);if(e===void 0||n(e))return e;let o=Ft(e.mode);e=Ft(r)(e);let i=qt(xt({},e),{c:0});if(!n(i))return o(a(i));let l=0,u=e.c!==void 0?e.c:0,s=Qn(r).ranges.c,f=(s[1]-s[0])/Math.pow(2,13),c=i.c;for(;u-l>f;)i.c=l+(u-l)*.5,n(i)?(c=i.c,l=i.c):u=i.c;return o(n(i)?i:qt(xt({},i),{c}))}function AJ(e="rgb",r="oklch",t=M0("oklch"),n=.02){let a=Ft(e),o=Qn(e);if(!o.gamut)return f=>a(f);let i=yh(e),l=y3(e),u=Ft(r),{ranges:s}=Qn(r);if(!s.l||!s.c)throw new Error("LCH-like space expected");return f=>{if(f=gi(f),f===void 0)return;let c=xt({},u(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=s.l[1]){let M=qt(xt({},o.white),{mode:e});return f.alpha!==void 0&&(M.alpha=f.alpha),M}if(c.l<=s.l[0]){let M=qt(xt({},o.black),{mode:e});return f.alpha!==void 0&&(M.alpha=f.alpha),M}if(i(c))return a(c);let p=0,x=c.c,g=(s.c[1]-s.c[0])/4e3,w=l(c);for(;x-p>g;)c.c=(p+x)*.5,w=l(c),i(c)||t&&n>0&&t(c,w)<=n?p=c.c:x=c.c;return a(i(c)?c:w)}}var kJ=(e,r=M0(),t=n=>n)=>{let n=e.map((a,o)=>({color:t(a),i:o}));return(a,o=1,i=1/0)=>(isFinite(o)&&(o=Math.max(1,Math.min(o,n.length-1))),n.forEach(l=>{l.d=r(a,l.color)}),n.sort((l,u)=>l.d-u.d).slice(0,o).filter(l=>l.d<i).map(l=>e[l.i]))},SJ=kJ,m3=e=>Math.max(e,0),b3=e=>Math.max(Math.min(e,1),0),CJ=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),EJ=e=>{let r=1-b3(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},LJ=e=>{let r=m3(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},DJ=e=>{let r=1-b3(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},RJ=e=>{let r=Math.PI*e/180,t=Math.cos(r),n=Math.sin(r);return[.213+t*.787-n*.213,.715-t*.715-n*.715,.072-t*.072+n*.928,0,.213-t*.213+n*.143,.715+t*.285+n*.14,.072-t*.072-n*.283,0,.213-t*.213-n*.787,.715-t*.715+n*.715,.072+t*.928+n*.072,0,0,0,0,1]},mh=(e,r,t=!1)=>{let n=Ft(r),a=Qn(r).channels;return o=>{let i=n(o);if(!i)return;let l={mode:r},u,s=a.length;for(let c=0;c<e.length;c++)u=a[Math.floor(c/s)],i[u]!==void 0&&(l[u]=(l[u]||0)+e[c]*(i[a[c%s]]||0));if(!t)return l;let f=gi(o);return f&&l.mode!==f.mode?Ft(f.mode)(l):l}},FJ=(e=1,r="rgb")=>{let t=m3(e);return kf(h3(t),r,!0)},PJ=(e=1,r="rgb")=>{let t=m3(e);return kf(h3(t,(1-t)/2),r,!0)},IJ=(e=1,r="rgb")=>mh(EJ(e),r,!0),zJ=(e=1,r="rgb")=>mh(LJ(e),r,!0),NJ=(e=1,r="rgb")=>mh(DJ(e),r,!0),qJ=(e=1,r="rgb")=>{let t=b3(e);return kf((n,a)=>a==="alpha"?n:CJ(t,1-t,n),r,!0)},BJ=(e=0,r="rgb")=>mh(RJ(e),r,!0),OJ=Ft("rgb"),UJ=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],HJ=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],VJ=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],x3=(e,r)=>{let t=Math.max(0,Math.min(1,r)),n=Math.round(t/.1),a=Math.round(t%.1),o=e[n];if(a>0&&n<e.length-1){let i=e[n+1];o=o.map((l,u)=>as(o[u],i[u],a))}return i=>{let l=gi(i);if(l===void 0)return;let{r:u,g:s,b:f}=OJ(l),c={mode:"rgb",r:o[0]*u+o[1]*s+o[2]*f,g:o[3]*u+o[4]*s+o[5]*f,b:o[6]*u+o[7]*s+o[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),Ft(l.mode)(c)}},GJ=(e=1)=>x3(UJ,e),YJ=(e=1)=>x3(HJ,e),XJ=(e=1)=>x3(VJ,e),WJ=e=>e*e*(3-2*e),ZJ=e=>.5-Math.sin(Math.asin(1-2*e)/3),JJ=e=>e*e*e*(e*(e*6-15)+10),$J=JJ,KJ=e=>(1-Math.cos(e*Math.PI))/2,QJ=KJ;function Vg(e){let r=Ft("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function jJ(e,r){let t=Vg(e),n=Vg(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}var e$=_t(E7),r$=_t(P7),t$=_t(B7),n$=_t(O7),a$=_t(V7),i$=_t(Jg),o$=_t(Qg),l$=_t(K7),s$=_t(e8),u$=_t(r8),f$=_t(t8),c$=_t(ph),v$=_t(a8),h$=_t(gh),d$=_t(o8),p$=_t(u8),g$=_t(f8),y$=_t(c8),m$=_t(h8),b$=_t(d8),x$=_t(g8),_$=_t(m8),w$=_t(b8),M$=_t(x8),T$=_t(_8),A$=_t(ls),k$=_t(A8),S$=_t(k8),C$=_t(E8),E$=_t(R8)});var jo=xe((Z3e,tw)=>{"use strict";var j8={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},ew={};function rw(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),rw(n,r[t]))}}rw(j8,ew);tw.exports={configAttributes:j8,dfltConfig:ew}});var w3=xe((J3e,nw)=>{"use strict";var _3=nt(),L$=it(),Sf=[];nw.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||Sf.indexOf(e)!==-1)return;Sf.push(e);var n=1e3;L$(r)?n=r:r==="long"&&(n=3e3);var a=_3.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var o=a.selectAll(".notifier-note").data(Sf);function i(u){u.duration(700).style("opacity",0).each("end",function(s){var f=Sf.indexOf(s);f!==-1&&Sf.splice(f,1),_3.select(this).remove()})}o.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(u){var s=_3.select(this);s.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){s.transition().call(i)});for(var f=s.append("p"),c=u.split(/<br\s*\/?>/g),p=0;p<c.length;p++)p&&f.append("br"),f.append("span").text(c[p]);r==="stick"?s.transition().duration(350).style("opacity",1):s.transition().duration(700).style("opacity",1).transition().delay(n).call(i)})}});var el=xe(($3e,aw)=>{"use strict";var S0=jo().dfltConfig,M3=w3(),T3=aw.exports={};T3.log=function(){var e;if(S0.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(S0.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);M3(t.join("<br>"),"long")}};T3.warn=function(){var e;if(S0.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(S0.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);M3(t.join("<br>"),"stick")}};T3.error=function(){var e;if(S0.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(S0.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);M3(t.join("<br>"),"stick")}}});var Zi=xe(fs=>{"use strict";fs.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];fs.defaultLine="#444";fs.lightLine="#eee";fs.background="#fff";fs.borderLine="#BEC8D9";fs.lightFraction=1e3/11});var Xr=xe((Q3e,hw)=>{"use strict";var{converter:iw,formatHex:D$,formatRgb:R$,wcagContrast:F$,wcagLuminance:P$}=Q8(),{isArrayOrTypedArray:ow}=sa(),{warn:I$}=el(),{background:Ef,defaultLine:S3,defaults:z$,lightLine:N$}=Zi(),lw=iw("rgb"),q$=iw("hsl"),sw=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return lw(r)}catch(t){return}},jn=e=>e>0?e>1?1:e:0,B$={mode:"rgb",r:0,g:0,b:0,alpha:1},A3=e=>Math.round(e*255e6)/255e6,uw=e=>qt(xt({},e),{r:A3(e.r),g:A3(e.g),b:A3(e.b)}),Ca=e=>R$(uw(e)),O$=e=>D$(uw(e)),U$=e=>{var r,t,n,a;return typeof e=="string"?`"${e}"`:ow(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(a=(n=e.constructor)==null?void 0:n.name)!=null?a:"Object":`${typeof e} ${e}`},Vt=(e,r)=>{var n;let t=sw(e);return t?((n=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&I$(`Invalid color specifier: ${U$(e)}. Defaulting to "#000"`),B$)},Cf=e=>Ca(qt(xt({},Vt(e)),{alpha:1})),H$=e=>e?Vt(e).alpha:0,fw=e=>ow(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),V$=e=>{let[r,t,n,a]=e,o=Math.max(r,t,n)>1?1/255:1,i=a!=null?a:1;return{mode:"rgb",r:r*o,g:t*o,b:n*o,alpha:i>1?i/255:i}},G$=(e,r)=>{let t=fw(e)?V$(e):Vt(e,!0),n=[jn(t.r),jn(t.g),jn(t.b),jn(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(n,a=>Math.round(a*255)):r==="float32"?Float32Array.from(n):r==="float64"?Float64Array.from(n):n},Y$=(e,r)=>Ca(qt(xt({},Vt(e)),{alpha:jn(r)})),cw=(e,r)=>{let t=Vt(e),n=t.alpha;if(n===1)return Ca(t);let a=Vt(r||Ef),o=a.alpha,i=(l,u)=>(o===1?u:1-o+u*o)*(1-n)+l*n;return Ca({mode:"rgb",r:i(t.r,a.r),g:i(t.g,a.g),b:i(t.b,a.b)})},X$=(e,r,t)=>{let n=Vt(e),a=Vt(r),o=(i,l)=>t*i+(1-t)*l;return Ca({mode:"rgb",r:o(n.r,a.r),g:o(n.g,a.g),b:o(n.b,a.b)})},k3=(e,r)=>{let t=Vt(e),n=q$(t)||{mode:"hsl",h:0,s:0,l:0};return Ca(lw(qt(xt({},n),{l:jn((n.l*100+r)/100),alpha:t.alpha})))},bh=(e,r)=>F$(Vt(e),Vt(r)),vw=e=>bh(e,Ef)>bh(e,S3),W$=Ca(Vt(Ef)),Z$=Ca(Vt(S3)),J$=(e,r,t)=>(Vt(e).alpha!==1&&(e=cw(e,Ef)),vw(e)?r?k3(e,r):W$:t?k3(e,-t):Z$),$$=(e,r)=>{e.style({stroke:Cf(r),"stroke-opacity":Vt(r).alpha})},K$=(e,r)=>{e.style({fill:Cf(r),"fill-opacity":Vt(r).alpha})},Q$=(e,r)=>!!(e&&r&&Cf(e)===Cf(r)),j$=e=>sw(e)!==void 0,eK=(e,r)=>{r=r===0?0:r||10;let t=Vt(e),n=r/100;return Ca(qt(xt({},t),{r:jn(t.r+n),g:jn(t.g+n),b:jn(t.b+n)}))},rK=(e,r,t)=>{let n=Vt(e),a=Vt(r),o=t/100,i=a.alpha-n.alpha,l=2*o-1,u=((l*i===-1?l:(l+i)/(1+l*i))+1)/2,s=1-u,f=(c,p)=>s*c+u*p;return Ca({mode:"rgb",r:f(n.r,a.r),g:f(n.g,a.g),b:f(n.b,a.b),alpha:n.alpha*(1-o)+a.alpha*o})},tK=(e,r=["#000","#fff"])=>{let t,n=-1/0;for(let a of r){let o=bh(e,a);o>n&&(n=o,t=Ca(Vt(a)))}return t},nK=e=>Ca(Vt(e)),aK=e=>O$(Vt(e)).toUpperCase(),iK=e=>{let r=Vt(e);return[jn(r.r)*255,jn(r.g)*255,jn(r.b)*255,jn(r.alpha)]},oK=([e,r,t,n])=>Ca({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:n}),lK=e=>{let r=Vt(e);return P$({mode:"rgb",r:jn(r.r),g:jn(r.g),b:jn(r.b)})};hw.exports={addOpacity:Y$,adjustLightness:k3,background:Ef,brighten:eK,combine:cw,contrast:J$,defaultLine:S3,defaults:z$,equals:Q$,fill:K$,hexString:aK,interpolate:X$,isChannelArray:fw,isDark:vw,isValid:j$,lightLine:N$,luminosity:lK,mix:rK,mostReadable:tK,normalize:G$,opacity:H$,parse:Vt,rgb:Cf,rgbaArray:iK,rgbaArrayToString:oK,rgbaString:nK,stroke:$$,wcagContrast:bh}});var cs=xe((eye,gw)=>{"use strict";var sK=Xr(),xh={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)"]]},dw=xh.RdBu;function uK(e,r){if(r||(r=dw),!e)return r;function t(){try{e=xh[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),pw(e)?e:r}function pw(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t<e.length;t++){var n=e[t];if(n.length!==2||+n[0]<r||!sK.isValid(n[1]))return!1;r=+n[0]}return!0}function fK(e){return xh[e]!==void 0?!0:pw(e)}gw.exports={scales:xh,defaultScale:dw,get:uK,isValid:fK}});var _h=xe((rye,yw)=>{"use strict";yw.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var C0={};of(C0,{counter:()=>cK});function cK(e,r="",t,n){let a=r+(t?"":"$"),o=n===!1?"":"^";return e==="xy"?new RegExp(o+"x"+C3+"y"+C3+a):new RegExp(o+e+C3+a)}var C3,E0=af(()=>{"use strict";C3="([2-9]|[1-9][0-9]+)?"});var xw=xe(ma=>{"use strict";var E3=it(),mw=Rt().extendFlat,vK=qn(),hK=cs(),L3=Xr(),dK=_h().DESELECTDIM,L0=Gv(),bw=(E0(),Kn(C0)).counter,pK=(m0(),Kn(y0)).modHalf,yi=sa().isArrayOrTypedArray,rl=sa().isTypedArraySpec,tl=sa().decodeTypedArraySpec;ma.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(yi(e)?e:rl(e)?tl(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;n<t.length;n++){var a=String(t[n]);if(a.charAt(0)==="/"&&a.charAt(a.length-1)==="/"){var o=new RegExp(a.slice(1,-1));if(o.test(e))return!0}else if(e===t[n])return!0}return!1}},boolean:{coerceFunction:function(e,r,t,n){let a=o=>o===!0||o===!1;a(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,n){rl(e)&&(e=tl(e)),!E3(e)||n.min!==void 0&&e<n.min||n.max!==void 0&&e>n.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}rl(e)&&(e=tl(e)),e%1||!E3(e)||n.min!==void 0&&e<n.min||n.max!==void 0&&e>n.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){rl(e)&&(e=tl(e)),L3.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(n=>L3.isValid(n))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(hK.get(e,t))}},angle:{coerceFunction:function(e,r,t){rl(e)&&(e=tl(e)),e==="auto"?r.set("auto"):E3(e)?r.set(pK(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||bw(t);let o=i=>typeof i=="string"&&a.test(i);o(e)||n.arrayOk&&yi(e)&&e.length>0&&e.every(o)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!bw(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),o=0;o<a.length;){var i=a[o];n.flags.indexOf(i)===-1||a.indexOf(i)<o?a.splice(o,1):o++}a.length?r.set(a.join("+")):r.set(t)}},any:{coerceFunction:function(e,r,t){e===void 0?r.set(t):r.set(rl(e)?tl(e):e)}},info_array:{coerceFunction:function(e,r,t,n){function a(k,S,b){var T,h={set:function(_){T=_}};return b===void 0&&(b=S.dflt),ma.valObjectMeta[S.valType].coerceFunction(k,h,b,S),T}if(rl(e)&&(e=tl(e)),!yi(e)){r.set(t);return}var o=n.dimensions===2||n.dimensions==="1-2"&&Array.isArray(e)&&yi(e[0]),i=n.items,l=[],u=Array.isArray(i),s=u&&o&&yi(i[0]),f=o&&u&&!s,c=u&&!f?i.length:e.length,p,x,g,w,M,m;if(t=Array.isArray(t)?t:[],o)for(p=0;p<c;p++)for(l[p]=[],g=yi(e[p])?e[p]:[],f?M=i.length:u?M=i[p].length:M=g.length,x=0;x<M;x++)f?w=i[x]:u?w=i[p][x]:w=i,m=a(g[x],w,(t[p]||[])[x]),m!==void 0&&(l[p][x]=m);else for(p=0;p<c;p++)m=a(e[p],u?i[p]:i,t[p]),m!==void 0&&(l[p]=m);r.set(l)},validateFunction:function(e,r){if(!yi(e))return!1;var t=r.items,n=Array.isArray(t),a=r.dimensions===2;if(!r.freeLength&&e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(a){if(!yi(e[o])||!r.freeLength&&e[o].length!==t[o].length)return!1;for(var i=0;i<e[o].length;i++)if(!wh(e[o][i],n?t[o][i]:t))return!1}else if(!wh(e[o],n?t[o]:t))return!1;return!0}}};ma.coerce=function(e,r,t,n,a){var o=L0(t,n).get(),i=L0(e,n),l=L0(r,n),u=i.get(),s=r._template;if(u===void 0&&s&&(u=L0(s,n).get(),s=0),a===void 0&&(a=o.dflt),o.arrayOk){if(yi(u))return l.set(u),u;if(rl(u))return u=tl(u),l.set(u),u}var f=ma.valObjectMeta[o.valType].coerceFunction;f(u,l,a,o);var c=l.get();return s&&c===a&&!wh(u,o)&&(u=L0(s,n).get(),f(u,l,a,o),c=l.get()),c};ma.coerce2=function(e,r,t,n,a){var o=L0(e,n),i=ma.coerce(e,r,t,n,a),l=o.get();return l!=null?i:!1};ma.coerceFont=function(e,r,t,n){n||(n={}),t=mw({},t),t=mw(t,n.overrideDflt||{});var a={family:e(r+".family",t.family),size:e(r+".size",t.size),color:e(r+".color",t.color),weight:e(r+".weight",t.weight),style:e(r+".style",t.style)};if(n.noFontVariant||(a.variant=e(r+".variant",t.variant)),n.noFontLineposition||(a.lineposition=e(r+".lineposition",t.lineposition)),n.noFontTextcase||(a.textcase=e(r+".textcase",t.textcase)),!n.noFontShadow){var o=t.shadow;o==="none"&&n.autoShadowDflt&&(o="auto"),a.shadow=e(r+".shadow",o)}return a};ma.coercePattern=function(e,r,t,n){var a=e(r+".shape"),o;if(a||(o=e(r+".path")),a||o){a&&e(r+".solidity"),e(r+".size");var i=e(r+".fillmode"),l=i==="overlay";if(!n){var u=e(r+".bgcolor",l?t:void 0);e(r+".fgcolor",l?L3.contrast(u):t)}e(r+".fgopacity",l?.5:1)}};ma.coerceHoverinfo=function(e,r,t){var n=r._module.attributes,a=n.hoverinfo?n:vK,o=a.hoverinfo,i;if(t._dataLength===1){var l=o.dflt==="all"?o.flags.slice():o.dflt.split("+");l.splice(l.indexOf("name"),1),i=l.join("+")}return ma.coerce(e,r,a,"hoverinfo",i)};ma.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var n,a;!yi(t)&&!e.selected&&!e.unselected&&(n=t,a=dK*t),r("selected.marker.opacity",n),r("unselected.marker.opacity",a)}}};function wh(e,r){var t=ma.valObjectMeta[r.valType];if(r.arrayOk&&yi(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var n={},a=n,o={set:function(i){a=i}};return t.coerceFunction(e,o,n,r),a!==n}ma.validate=wh});var Mh=xe((nye,_w)=>{"use strict";_w.exports=function(){}});var D3=xe((aye,ww)=>{"use strict";ww.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a<r.length;a++)if(r[a]instanceof RegExp&&r[a].toString()===n)return r;r.push(t)}else(t||t===0)&&r.indexOf(t)===-1&&r.push(t);return r}});var Tw=xe((iye,Mw)=>{Mw.exports=gK;function gK(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var kw=xe((oye,Aw)=>{Aw.exports=yK;function yK(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var Cw=xe((lye,Sw)=>{Sw.exports=mK;function mK(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var R3=xe((sye,Ew)=>{Ew.exports=bK;function bK(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Dw=xe((uye,Lw)=>{Lw.exports=xK;function xK(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],o=r[6],i=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=o,e[11]=r[14],e[12]=a,e[13]=i,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var Fw=xe((fye,Rw)=>{Rw.exports=_K;function _K(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],c=r[9],p=r[10],x=r[11],g=r[12],w=r[13],M=r[14],m=r[15],k=t*l-n*i,S=t*u-a*i,b=t*s-o*i,T=n*u-a*l,h=n*s-o*l,_=a*s-o*u,y=f*w-c*g,v=f*M-p*g,A=f*m-x*g,d=c*M-p*w,D=c*m-x*w,E=p*m-x*M,R=k*E-S*D+b*d+T*A-h*v+_*y;return R?(R=1/R,e[0]=(l*E-u*D+s*d)*R,e[1]=(a*D-n*E-o*d)*R,e[2]=(w*_-M*h+m*T)*R,e[3]=(p*h-c*_-x*T)*R,e[4]=(u*A-i*E-s*v)*R,e[5]=(t*E-a*A+o*v)*R,e[6]=(M*b-g*_-m*S)*R,e[7]=(f*_-p*b+x*S)*R,e[8]=(i*D-l*A+s*y)*R,e[9]=(n*A-t*D-o*y)*R,e[10]=(g*h-w*b+m*k)*R,e[11]=(c*b-f*h-x*k)*R,e[12]=(l*v-i*d-u*y)*R,e[13]=(t*d-n*v+a*y)*R,e[14]=(w*S-g*T-M*k)*R,e[15]=(f*T-c*S+p*k)*R,e):null}});var Iw=xe((cye,Pw)=>{Pw.exports=wK;function wK(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],c=r[9],p=r[10],x=r[11],g=r[12],w=r[13],M=r[14],m=r[15];return e[0]=l*(p*m-x*M)-c*(u*m-s*M)+w*(u*x-s*p),e[1]=-(n*(p*m-x*M)-c*(a*m-o*M)+w*(a*x-o*p)),e[2]=n*(u*m-s*M)-l*(a*m-o*M)+w*(a*s-o*u),e[3]=-(n*(u*x-s*p)-l*(a*x-o*p)+c*(a*s-o*u)),e[4]=-(i*(p*m-x*M)-f*(u*m-s*M)+g*(u*x-s*p)),e[5]=t*(p*m-x*M)-f*(a*m-o*M)+g*(a*x-o*p),e[6]=-(t*(u*m-s*M)-i*(a*m-o*M)+g*(a*s-o*u)),e[7]=t*(u*x-s*p)-i*(a*x-o*p)+f*(a*s-o*u),e[8]=i*(c*m-x*w)-f*(l*m-s*w)+g*(l*x-s*c),e[9]=-(t*(c*m-x*w)-f*(n*m-o*w)+g*(n*x-o*c)),e[10]=t*(l*m-s*w)-i*(n*m-o*w)+g*(n*s-o*l),e[11]=-(t*(l*x-s*c)-i*(n*x-o*c)+f*(n*s-o*l)),e[12]=-(i*(c*M-p*w)-f*(l*M-u*w)+g*(l*p-u*c)),e[13]=t*(c*M-p*w)-f*(n*M-a*w)+g*(n*p-a*c),e[14]=-(t*(l*M-u*w)-i*(n*M-a*w)+g*(n*u-a*l)),e[15]=t*(l*p-u*c)-i*(n*p-a*c)+f*(n*u-a*l),e}});var Nw=xe((vye,zw)=>{zw.exports=MK;function MK(e){var r=e[0],t=e[1],n=e[2],a=e[3],o=e[4],i=e[5],l=e[6],u=e[7],s=e[8],f=e[9],c=e[10],p=e[11],x=e[12],g=e[13],w=e[14],M=e[15],m=r*i-t*o,k=r*l-n*o,S=r*u-a*o,b=t*l-n*i,T=t*u-a*i,h=n*u-a*l,_=s*g-f*x,y=s*w-c*x,v=s*M-p*x,A=f*w-c*g,d=f*M-p*g,D=c*M-p*w;return m*D-k*d+S*A+b*v-T*y+h*_}});var Bw=xe((hye,qw)=>{qw.exports=TK;function TK(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=r[4],u=r[5],s=r[6],f=r[7],c=r[8],p=r[9],x=r[10],g=r[11],w=r[12],M=r[13],m=r[14],k=r[15],S=t[0],b=t[1],T=t[2],h=t[3];return e[0]=S*n+b*l+T*c+h*w,e[1]=S*a+b*u+T*p+h*M,e[2]=S*o+b*s+T*x+h*m,e[3]=S*i+b*f+T*g+h*k,S=t[4],b=t[5],T=t[6],h=t[7],e[4]=S*n+b*l+T*c+h*w,e[5]=S*a+b*u+T*p+h*M,e[6]=S*o+b*s+T*x+h*m,e[7]=S*i+b*f+T*g+h*k,S=t[8],b=t[9],T=t[10],h=t[11],e[8]=S*n+b*l+T*c+h*w,e[9]=S*a+b*u+T*p+h*M,e[10]=S*o+b*s+T*x+h*m,e[11]=S*i+b*f+T*g+h*k,S=t[12],b=t[13],T=t[14],h=t[15],e[12]=S*n+b*l+T*c+h*w,e[13]=S*a+b*u+T*p+h*M,e[14]=S*o+b*s+T*x+h*m,e[15]=S*i+b*f+T*g+h*k,e}});var Uw=xe((dye,Ow)=>{Ow.exports=AK;function AK(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,c,p,x,g,w,M,m;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*o+r[12],e[13]=r[1]*n+r[5]*a+r[9]*o+r[13],e[14]=r[2]*n+r[6]*a+r[10]*o+r[14],e[15]=r[3]*n+r[7]*a+r[11]*o+r[15]):(i=r[0],l=r[1],u=r[2],s=r[3],f=r[4],c=r[5],p=r[6],x=r[7],g=r[8],w=r[9],M=r[10],m=r[11],e[0]=i,e[1]=l,e[2]=u,e[3]=s,e[4]=f,e[5]=c,e[6]=p,e[7]=x,e[8]=g,e[9]=w,e[10]=M,e[11]=m,e[12]=i*n+f*a+g*o+r[12],e[13]=l*n+c*a+w*o+r[13],e[14]=u*n+p*a+M*o+r[14],e[15]=s*n+x*a+m*o+r[15]),e}});var Vw=xe((pye,Hw)=>{Hw.exports=kK;function kK(e,r,t){var n=t[0],a=t[1],o=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*o,e[9]=r[9]*o,e[10]=r[10]*o,e[11]=r[11]*o,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Yw=xe((gye,Gw)=>{Gw.exports=SK;function SK(e,r,t,n){var a=n[0],o=n[1],i=n[2],l=Math.sqrt(a*a+o*o+i*i),u,s,f,c,p,x,g,w,M,m,k,S,b,T,h,_,y,v,A,d,D,E,R,z;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,o*=l,i*=l,u=Math.sin(t),s=Math.cos(t),f=1-s,c=r[0],p=r[1],x=r[2],g=r[3],w=r[4],M=r[5],m=r[6],k=r[7],S=r[8],b=r[9],T=r[10],h=r[11],_=a*a*f+s,y=o*a*f+i*u,v=i*a*f-o*u,A=a*o*f-i*u,d=o*o*f+s,D=i*o*f+a*u,E=a*i*f+o*u,R=o*i*f-a*u,z=i*i*f+s,e[0]=c*_+w*y+S*v,e[1]=p*_+M*y+b*v,e[2]=x*_+m*y+T*v,e[3]=g*_+k*y+h*v,e[4]=c*A+w*d+S*D,e[5]=p*A+M*d+b*D,e[6]=x*A+m*d+T*D,e[7]=g*A+k*d+h*D,e[8]=c*E+w*R+S*z,e[9]=p*E+M*R+b*z,e[10]=x*E+m*R+T*z,e[11]=g*E+k*R+h*z,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Ww=xe((yye,Xw)=>{Xw.exports=CK;function CK(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[4],i=r[5],l=r[6],u=r[7],s=r[8],f=r[9],c=r[10],p=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=o*a+s*n,e[5]=i*a+f*n,e[6]=l*a+c*n,e[7]=u*a+p*n,e[8]=s*a-o*n,e[9]=f*a-i*n,e[10]=c*a-l*n,e[11]=p*a-u*n,e}});var Jw=xe((mye,Zw)=>{Zw.exports=EK;function EK(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[8],f=r[9],c=r[10],p=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a-s*n,e[1]=i*a-f*n,e[2]=l*a-c*n,e[3]=u*a-p*n,e[8]=o*n+s*a,e[9]=i*n+f*a,e[10]=l*n+c*a,e[11]=u*n+p*a,e}});var Kw=xe((bye,$w)=>{$w.exports=LK;function LK(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[4],f=r[5],c=r[6],p=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a+s*n,e[1]=i*a+f*n,e[2]=l*a+c*n,e[3]=u*a+p*n,e[4]=s*a-o*n,e[5]=f*a-i*n,e[6]=c*a-l*n,e[7]=p*a-u*n,e}});var jw=xe((xye,Qw)=>{Qw.exports=DK;function DK(e,r,t){var n,a,o,i=t[0],l=t[1],u=t[2],s=Math.sqrt(i*i+l*l+u*u);return Math.abs(s)<1e-6?null:(s=1/s,i*=s,l*=s,u*=s,n=Math.sin(r),a=Math.cos(r),o=1-a,e[0]=i*i*o+a,e[1]=l*i*o+u*n,e[2]=u*i*o-l*n,e[3]=0,e[4]=i*l*o-u*n,e[5]=l*l*o+a,e[6]=u*l*o+i*n,e[7]=0,e[8]=i*u*o+l*n,e[9]=l*u*o-i*n,e[10]=u*u*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var r9=xe((_ye,e9)=>{e9.exports=RK;function RK(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=n+n,u=a+a,s=o+o,f=n*l,c=n*u,p=n*s,x=a*u,g=a*s,w=o*s,M=i*l,m=i*u,k=i*s;return e[0]=1-(x+w),e[1]=c+k,e[2]=p-m,e[3]=0,e[4]=c-k,e[5]=1-(f+w),e[6]=g+M,e[7]=0,e[8]=p+m,e[9]=g-M,e[10]=1-(f+x),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var n9=xe((wye,t9)=>{t9.exports=FK;function FK(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var i9=xe((Mye,a9)=>{a9.exports=PK;function PK(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var l9=xe((Tye,o9)=>{o9.exports=IK;function IK(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var u9=xe((Aye,s9)=>{s9.exports=zK;function zK(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var c9=xe((kye,f9)=>{f9.exports=NK;function NK(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var h9=xe((Sye,v9)=>{v9.exports=qK;function qK(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=t+t,l=n+n,u=a+a,s=t*i,f=n*i,c=n*l,p=a*i,x=a*l,g=a*u,w=o*i,M=o*l,m=o*u;return e[0]=1-c-g,e[1]=f+m,e[2]=p-M,e[3]=0,e[4]=f-m,e[5]=1-s-g,e[6]=x+w,e[7]=0,e[8]=p+M,e[9]=x-w,e[10]=1-s-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var p9=xe((Cye,d9)=>{d9.exports=BK;function BK(e,r,t,n,a,o,i){var l=1/(t-r),u=1/(a-n),s=1/(o-i);return e[0]=o*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o*2*u,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*u,e[10]=(i+o)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*o*2*s,e[15]=0,e}});var y9=xe((Eye,g9)=>{g9.exports=OK;function OK(e,r,t,n,a){var o=1/Math.tan(r/2),i=1/(n-a);return e[0]=o/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*i,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*i,e[15]=0,e}});var b9=xe((Lye,m9)=>{m9.exports=UK;function UK(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),o=Math.tan(r.downDegrees*Math.PI/180),i=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),u=2/(i+l),s=2/(a+o);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-((i-l)*u*.5),e[9]=(a-o)*s*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var _9=xe((Dye,x9)=>{x9.exports=HK;function HK(e,r,t,n,a,o,i){var l=1/(r-t),u=1/(n-a),s=1/(o-i);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*u,e[14]=(i+o)*s,e[15]=1,e}});var M9=xe((Rye,w9)=>{var VK=R3();w9.exports=GK;function GK(e,r,t,n){var a,o,i,l,u,s,f,c,p,x,g=r[0],w=r[1],M=r[2],m=n[0],k=n[1],S=n[2],b=t[0],T=t[1],h=t[2];return Math.abs(g-b)<1e-6&&Math.abs(w-T)<1e-6&&Math.abs(M-h)<1e-6?VK(e):(f=g-b,c=w-T,p=M-h,x=1/Math.sqrt(f*f+c*c+p*p),f*=x,c*=x,p*=x,a=k*p-S*c,o=S*f-m*p,i=m*c-k*f,x=Math.sqrt(a*a+o*o+i*i),x?(x=1/x,a*=x,o*=x,i*=x):(a=0,o=0,i=0),l=c*i-p*o,u=p*a-f*i,s=f*o-c*a,x=Math.sqrt(l*l+u*u+s*s),x?(x=1/x,l*=x,u*=x,s*=x):(l=0,u=0,s=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=o,e[5]=u,e[6]=c,e[7]=0,e[8]=i,e[9]=s,e[10]=p,e[11]=0,e[12]=-(a*g+o*w+i*M),e[13]=-(l*g+u*w+s*M),e[14]=-(f*g+c*w+p*M),e[15]=1,e)}});var A9=xe((Fye,T9)=>{T9.exports=YK;function YK(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var F3=xe((Pye,k9)=>{k9.exports={create:Tw(),clone:kw(),copy:Cw(),identity:R3(),transpose:Dw(),invert:Fw(),adjoint:Iw(),determinant:Nw(),multiply:Bw(),translate:Uw(),scale:Vw(),rotate:Yw(),rotateX:Ww(),rotateY:Jw(),rotateZ:Kw(),fromRotation:jw(),fromRotationTranslation:r9(),fromScaling:n9(),fromTranslation:i9(),fromXRotation:l9(),fromYRotation:u9(),fromZRotation:c9(),fromQuat:h9(),frustum:p9(),perspective:y9(),perspectiveFromFieldOfView:b9(),ortho:_9(),lookAt:M9(),str:A9()}});var Th=xe($t=>{"use strict";var XK=F3();$t.init2dArray=function(e,r){for(var t=new Array(e),n=0;n<e;n++)t[n]=new Array(r);return t};$t.transposeRagged=function(e){var r=0,t=e.length,n,a;for(n=0;n<t;n++)r=Math.max(r,e[n].length);var o=new Array(r);for(n=0;n<r;n++)for(o[n]=new Array(t),a=0;a<t;a++)o[n][a]=e[a][n];return o};$t.dot=function(e,r){if(!(e.length&&r.length)||e.length!==r.length)return null;var t=e.length,n,a;if(e[0].length)for(n=new Array(t),a=0;a<t;a++)n[a]=$t.dot(e[a],r);else if(r[0].length){var o=$t.transposeRagged(r);for(n=new Array(o.length),a=0;a<o.length;a++)n[a]=$t.dot(e,o[a])}else for(n=0,a=0;a<t;a++)n+=e[a]*r[a];return n};$t.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};$t.rotationMatrix=function(e){var r=e*Math.PI/180;return[[Math.cos(r),-Math.sin(r),0],[Math.sin(r),Math.cos(r),0],[0,0,1]]};$t.rotationXYMatrix=function(e,r,t){return $t.dot($t.dot($t.translationMatrix(r,t),$t.rotationMatrix(e)),$t.translationMatrix(-r,-t))};$t.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return $t.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};$t.apply2DTransform=function(e){return function(){var r=arguments;r.length===3&&(r=r[0]);var t=arguments.length===1?r[0]:[r[0],r[1]];return $t.dot(e,[t[0],t[1],1]).slice(0,2)}};$t.apply2DTransform2=function(e){var r=$t.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};$t.convertCssMatrix=function(e){if(e){var r=e.length;if(r===16)return e;if(r===6)return[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]};$t.inverseTransformMatrix=function(e){var r=[];return XK.invert(r,e),[[r[0],r[1],r[2],r[3]],[r[4],r[5],r[6],r[7]],[r[8],r[9],r[10],r[11]],[r[12],r[13],r[14],r[15]]]}});var Lf=xe((zye,R9)=>{"use strict";var WK=nt(),S9=el(),ZK=Th(),JK=F3();function $K(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function KK(e){var r=WK.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function C9(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function QK(e,r){E9("global",e,r)}function E9(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o?o.insertRule?o.insertRule(r+"{"+t+"}",0):o.addRule?o.addRule(r,t,0):S9.warn("addStyleRule failed"):S9.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function jK(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&C9(t)}function eQ(e,r,t,n,a,o){var i=n.split(":"),l=a.split(":"),u="data-btn-style-event-added";o||(o=document),o.querySelectorAll(e).forEach(function(s){s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[i[0]]=i[1])}),s.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[i[0]]=i[1]:f.style[l[0]]=l[1])}),s.setAttribute(u,!0))})}function rQ(e){var r=D9(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=L9(n);if(a){var o=ZK.convertCssMatrix(a);t=JK.multiply(t,t,o)}}),t}function L9(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function D9(e){for(var r=[];tQ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function tQ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function nQ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}R9.exports={getGraphDiv:$K,isPlotDiv:KK,removeElement:C9,addStyleRule:QK,addRelatedStyleRule:E9,deleteRelatedStyleRule:jK,setStyleOnHover:eQ,getFullTransformMatrix:rQ,getElementTransformMatrix:L9,getElementAndAncestors:D9,equalDomRects:nQ}});var Df=xe((Nye,F9)=>{"use strict";F9.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var ea=xe((qye,O9)=>{"use strict";var I9=Rt().extendFlat,aQ=es(),z9={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},N9={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},iQ=z9.flags.slice().concat(["fullReplot"]),oQ=N9.flags.slice().concat("layoutReplot");O9.exports={traces:z9,layout:N9,traceFlags:function(){return P9(iQ)},layoutFlags:function(){return P9(oQ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a<n.length;a++)e[n[a]]=!0},overrideAll:q9};function P9(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function q9(e,r,t){var n=I9({},e);for(var a in n){var o=n[a];aQ(o)&&(n[a]=B9(o,r,t,a))}return t==="from-root"&&(n.editType=r),n}function B9(e,r,t,n){if(e.valType){var a=I9({},e);if(a.editType=r,Array.isArray(e.items)){a.items=new Array(e.items.length);for(var o=0;o<e.items.length;o++)a.items[o]=B9(e.items[o],r,"from-root")}return a}else return q9(e,r,n.charAt(0)==="_"?"nested":"from-root")}});var nl=xe(P3=>{"use strict";P3.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};P3.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var I3=xe((Oye,U9)=>{"use strict";U9.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var mi=xe(D0=>{"use strict";var{DATE_FORMAT_LINK:lQ,FORMAT_LINK:sQ}=I3(),uQ=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function fQ({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,sQ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,lQ,"for details on the date formatting syntax.",uQ].join(" ")}D0.templateFormatStringDescription=fQ;D0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>xt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});D0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>xt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});D0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});D0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Sh=xe((Vye,W9)=>{"use strict";function al(e,r){return r?r.d2l(e):e}function H9(e,r){return r?r.l2d(e):e}function cQ(e){return e.x0}function vQ(e){return e.x1}function hQ(e){return e.y0}function dQ(e){return e.y1}function V9(e){return e.x0shift||0}function G9(e){return e.x1shift||0}function Y9(e){return e.y0shift||0}function X9(e){return e.y1shift||0}function Ah(e,r){return al(e.x1,r)+G9(e)-al(e.x0,r)-V9(e)}function kh(e,r,t){return al(e.y1,t)+X9(e)-al(e.y0,t)-Y9(e)}function pQ(e,r){return Math.abs(Ah(e,r))}function gQ(e,r,t){return Math.abs(kh(e,r,t))}function yQ(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ah(e,r),2)+Math.pow(kh(e,r,t),2))}function mQ(e,r){return H9((al(e.x1,r)+G9(e)+al(e.x0,r)+V9(e))/2,r)}function bQ(e,r,t){return H9((al(e.y1,t)+X9(e)+al(e.y0,t)+Y9(e))/2,t)}function xQ(e,r,t){return e.type!=="line"?void 0:kh(e,r,t)/Ah(e,r)}var _Q=["x0","x1","y0","y1","dy","height","ycenter"],wQ=["x0","x1","y0","y1","dx","width","xcenter"];W9.exports={x0:cQ,x1:vQ,y0:hQ,y1:dQ,slope:xQ,dx:Ah,dy:kh,width:pQ,height:gQ,length:yQ,xcenter:mQ,ycenter:bQ,simpleXVariables:_Q,simpleYVariables:wQ}});var $9=xe((Gye,J9)=>{"use strict";var MQ=ea().overrideAll,vs=qn(),Z9=Nn(),TQ=nl().dash,il=Rt().extendFlat,{shapeTexttemplateAttrs:AQ,templatefallbackAttrs:kQ}=mi(),SQ=Sh();J9.exports=MQ({newshape:{visible:il({},vs.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:il({},vs.legend,{}),legendgroup:il({},vs.legendgroup,{}),legendgrouptitle:{text:il({},vs.legendgrouptitle.text,{}),font:Z9({})},legendrank:il({},vs.legendrank,{}),legendwidth:il({},vs.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:il({},TQ,{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:il({},vs.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:AQ({newshape:!0},{keys:Object.keys(SQ)}),texttemplatefallback:kQ({editType:"arraydraw"}),font:Z9({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Q9=xe((Yye,K9)=>{"use strict";var CQ=nl().dash,EQ=Rt().extendFlat;K9.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:EQ({},CQ,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Ch=xe((Xye,j9)=>{"use strict";j9.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var R0=xe((Wye,nM)=>{"use strict";var z3=Nn(),LQ=Df(),Eh=Zi(),eM=$9(),rM=Q9(),DQ=Ch(),tM=Rt().extendFlat,Lh=z3({editType:"calc"});Lh.family.dflt='"Open Sans", verdana, arial, sans-serif';Lh.size.dflt=12;Lh.color.dflt=Eh.defaultLine;nM.exports={font:Lh,title:{text:{valType:"string",editType:"layoutstyle"},font:z3({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:z3({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:tM(DQ({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:Eh.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Eh.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Eh.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:eM.newshape,activeshape:eM.activeshape,newselection:rM.newselection,activeselection:rM.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:tM({},LQ.transition,{editType:"none"})}});var aM=xe(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Cr=xe($r=>{"use strict";var N3=el(),iM=Mh(),oM=D3(),$ye=Lf().addStyleRule,lM=Rt(),RQ=qn(),FQ=R0(),PQ=lM.extendFlat,q3=lM.extendDeepAll;$r.modules={};$r.allCategories={};$r.allTypes=[];$r.subplotsRegistry={};$r.componentsRegistry={};$r.layoutArrayContainers=[];$r.layoutArrayRegexes=[];$r.traceLayoutAttributes={};$r.localeRegistry={};$r.apiMethodRegistry={};$r.collectableSubplotTypes=null;$r.register=function(r){if($r.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t<r.length;t++){var n=r[t];if(!n)throw new Error("Invalid module was attempted to be registered!");switch(n.moduleType){case"trace":IQ(n);break;case"component":NQ(n);break;case"locale":qQ(n);break;case"apiMethod":var a=n.name;$r.apiMethodRegistry[a]=n.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};$r.getModule=function(e){var r=$r.modules[cM(e)];return r?r._module:!1};$r.traceIs=function(e,r){if(e=cM(e),e==="various")return!1;var t=$r.modules[e];return t||(e&&N3.log("Unrecognized trace type "+e+"."),t=$r.modules[RQ.type.dflt]),!!t.categories[r]};$r.getComponentMethod=function(e,r){var t=$r.componentsRegistry[e];return t&&t[r]||iM};$r.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return $r.apiMethodRegistry[e].apply(null,r)};function IQ(e){var r=e.name,t=e.categories,n=e.meta;if($r.modules[r]){N3.log("Type "+r+" already registered");return}$r.subplotsRegistry[e.basePlotModule.name]||zQ(e.basePlotModule);for(var a={},o=0;o<t.length;o++)a[t[o]]=!0,$r.allCategories[t[o]]=!0;$r.modules[r]={_module:e,categories:a},n&&Object.keys(n).length&&($r.modules[r].meta=n),$r.allTypes.push(r);for(var i in $r.componentsRegistry)uM(i,r);e.layoutAttributes&&PQ($r.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,u=l.name;u==="map"&&aM(),(u==="geo"||u==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function zQ(e){var r=e.name;if($r.subplotsRegistry[r]){N3.log("Plot type "+r+" already registered.");return}sM(e),$r.subplotsRegistry[r]=e;for(var t in $r.componentsRegistry)fM(t,e.name)}function NQ(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;$r.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&oM($r.layoutArrayContainers,r),sM(e));for(var t in $r.modules)uM(r,t);for(var n in $r.subplotsRegistry)fM(r,n);e.schema&&e.schema.layout&&q3(FQ,e.schema.layout)}function qQ(e){var r=e.name,t=r.split("-")[0],n=e.dictionary,a=e.format,o=n&&Object.keys(n).length,i=a&&Object.keys(a).length,l=$r.localeRegistry,u=l[r];if(u||(l[r]=u={}),t!==r){var s=l[t];s||(l[t]=s={}),o&&s.dictionary===u.dictionary&&(s.dictionary=n),i&&s.format===u.format&&(s.format=a)}o&&(u.dictionary=n),i&&(u.format=a)}function sM(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)oM($r.layoutArrayRegexes,r[t])}}function uM(e,r){var t=$r.componentsRegistry[e].schema;if(!(!t||!t.traces)){var n=t.traces[r];n&&q3($r.modules[r]._module.attributes,n)}}function fM(e,r){var t=$r.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var n=$r.subplotsRegistry[r],a=n.layoutAttributes,o=n.attr==="subplot"?n.name:n.attr;Array.isArray(o)&&(o=o[0]);var i=t.subplots[o];a&&i&&q3(a,i)}}function cM(e){return typeof e=="object"&&(e=e.type),e}});var xM=xe(Kt=>{"use strict";var BQ=p0().timeFormat,mM=it(),B3=el(),ll=(m0(),Kn(y0)).mod,I0=pn(),Wa=I0.BADNUM,ba=I0.ONEDAY,Rf=I0.ONEHOUR,ol=I0.ONEMIN,P0=I0.ONESEC,Ff=I0.EPOCHJD,ko=Cr(),vM=p0().utcFormat,OQ=/^\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,UQ=/^\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,hM=new Date().getFullYear()-70;function So(e){return e&&ko.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Kt.dateTick0=function(e,r){var t=HQ(e,!!r);if(r<2)return t;var n=Kt.dateTime2ms(t,e);return n+=ba*(r-1),Kt.ms2DateTime(n,0,e)};function HQ(e,r){return So(e)?r?ko.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:ko.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Kt.dfltRange=function(e){return So(e)?ko.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Kt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Rh,Fh;Kt.dateTime2ms=function(e,r){if(Kt.isJSDate(e)){var t=e.getTimezoneOffset()*ol,n=(e.getUTCMinutes()-e.getMinutes())*ol+(e.getUTCSeconds()-e.getSeconds())*P0+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*ol;t=t-a/2+ll(n-t+a/2,a)}return e=Number(e)-t,e>=Rh&&e<=Fh?e:Wa}if(typeof e!="string"&&typeof e!="number")return Wa;e=String(e);var o=So(r),i=e.charAt(0);o&&(i==="G"||i==="g")&&(e=e.slice(1),r="");var l=o&&r.slice(0,7)==="chinese",u=e.match(l?UQ:OQ);if(!u)return Wa;var s=u[1],f=u[3]||"1",c=Number(u[5]||1),p=Number(u[7]||0),x=Number(u[9]||0),g=Number(u[11]||0);if(o){if(s.length===2)return Wa;s=Number(s);var w;try{var M=ko.getComponentMethod("calendars","getCal")(r);if(l){var m=f.charAt(f.length-1)==="i";f=parseInt(f,10),w=M.newDate(s,M.toMonthIndex(s,f,m),c)}else w=M.newDate(s,Number(f),c)}catch(S){return Wa}return w?(w.toJD()-Ff)*ba+p*Rf+x*ol+g*P0:Wa}s.length===2?s=(Number(s)+2e3-hM)%100+hM:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,c,p,x));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==c?Wa:k.getTime()+g*P0};Rh=Kt.MIN_MS=Kt.dateTime2ms("-9999");Fh=Kt.MAX_MS=Kt.dateTime2ms("9999-12-31 23:59:59.9999");Kt.isDateTime=function(e,r){return Kt.dateTime2ms(e,r)!==Wa};function F0(e,r){return String(e+Math.pow(10,r)).slice(1)}var Dh=90*ba,dM=3*Rf,pM=5*ol;Kt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Rh&&e<=Fh))return Wa;r||(r=0);var n=Math.floor(ll(e+.05,1)*10),a=Math.round(e-n/10),o,i,l,u,s,f;if(So(t)){var c=Math.floor(a/ba)+Ff,p=Math.floor(ll(e,ba));try{o=ko.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(x){o=vM("G%Y-%m-%d")(new Date(a))}if(o.charAt(0)==="-")for(;o.length<11;)o="-0"+o.slice(1);else for(;o.length<10;)o="0"+o;i=r<Dh?Math.floor(p/Rf):0,l=r<Dh?Math.floor(p%Rf/ol):0,u=r<dM?Math.floor(p%ol/P0):0,s=r<pM?p%P0*10+n:0}else f=new Date(a),o=vM("%Y-%m-%d")(f),i=r<Dh?f.getUTCHours():0,l=r<Dh?f.getUTCMinutes():0,u=r<dM?f.getUTCSeconds():0,s=r<pM?f.getUTCMilliseconds()*10+n:0;return bM(o,i,l,u,s)};Kt.ms2DateTimeLocal=function(e){if(!(e>=Rh+ba&&e<=Fh-ba))return Wa;var r=Math.floor(ll(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=BQ("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return bM(n,a,o,i,l)};function bM(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+F0(r,2)+":"+F0(t,2),(n||a)&&(e+=":"+F0(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+F0(a,o)}return e}Kt.cleanDate=function(e,r,t){if(e===Wa)return r;if(Kt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(So(t))return B3.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Kt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Kt.isDateTime(e,t))return B3.error("unrecognized date",e),r;return e};var VQ=/%\d?f/g,GQ=/%h/g,YQ={1:"1",2:"1",3:"2",4:"2"};function gM(e,r,t,n){e=e.replace(VQ,function(o){var i=Math.min(+o.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(i).slice(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(GQ,function(){return YQ[t("%q")(a)]}),So(n))try{e=ko.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var XQ=[59,59.9,59.99,59.999,59.9999];function WQ(e,r){var t=ll(e+.05,ba),n=F0(Math.floor(t/Rf),2)+":"+F0(ll(Math.floor(t/ol),60),2);if(r!=="M"){mM(r)||(r=0);var a=Math.min(ll(e/P0,60),XQ[r]),o=(100+a).toFixed(r).slice(1);r>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+o}return n}Kt.formatDate=function(e,r,t,n,a,o){if(a=So(a)&&a,!r)if(t==="y")r=o.year;else if(t==="m")r=o.month;else if(t==="d")r=o.dayMonth+`
`+o.year;else return WQ(e,t)+`
`+gM(o.dayMonthYear,e,n,a);return gM(r,e,n,a)};var yM=3*ba;Kt.incrementMonth=function(e,r,t){t=So(t)&&t;var n=ll(e,ba);if(e=Math.round(e-n),t)try{var a=Math.round(e/ba)+Ff,o=ko.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-Ff)*ba+n}catch(u){B3.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+yM);return l.setUTCMonth(l.getUTCMonth()+r)+n-yM};Kt.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=So(r)&&ko.getComponentMethod("calendars","getCal")(r),s=0;s<e.length;s++){if(l=e[s],!mM(l)){o++;continue}if(!(l%ba))if(u)try{i=u.fromJD(l/ba+Ff),i.day()===1?i.month()===1?t++:n++:a++}catch(c){}else i=new Date(l),i.getUTCDate()===1?i.getUTCMonth()===0?t++:n++:a++}n+=t,a+=n;var f=e.length-o;return{exactYears:t/f,exactMonths:n/f,exactDays:a/f}}});var O3=xe((jye,_M)=>{"use strict";_M.exports=function(r){return r}});var H3=xe(Co=>{"use strict";var ZQ=it(),JQ=el(),$Q=O3(),KQ=pn().BADNUM,U3=1e-9;Co.findBin=function(e,r,t){if(ZQ(r.start))return t?Math.ceil((e-r.start)/r.size-U3)-1:Math.floor((e-r.start)/r.size+U3);var n=0,a=r.length,o=0,i=a>1?(r[a-1]-r[0])/(a-1):1,l,u;for(i>=0?u=t?QQ:jQ:u=t?rj:ej,e+=i*U3*(t?-1:1)*(i>=0?1:-1);n<a&&o++<100;)l=Math.floor((n+a)/2),u(r[l],e)?n=l+1:a=l;return o>90&&JQ.log("Long binary search..."),n-1};function QQ(e,r){return e<r}function jQ(e,r){return e<=r}function ej(e,r){return e>r}function rj(e,r){return e>=r}Co.sorterAsc=function(e,r){return e-r};Co.sorterDes=function(e,r){return r-e};Co.distinctVals=function(e){var r=e.slice();r.sort(Co.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===KQ;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,o=[],i,l=0;l<=t;l++){var u=r[l],s=u-i;i===void 0?(o.push(u),i=u):s>a&&(n=Math.min(n,s),o.push(u),i=u)}return{vals:o,minDiff:n}};Co.roundUp=function(e,r,t){for(var n=0,a=r.length-1,o,i=0,l=t?0:1,u=t?1:0,s=t?Math.ceil:Math.floor;n<a&&i++<100;)o=s((n+a)/2),r[o]<=e?n=o+l:a=o-u;return r[n]};Co.sort=function(e,r){for(var t=0,n=0,a=1;a<e.length;a++){var o=r(e[a],e[a-1]);if(o<0?t=1:o>0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};Co.findIndexOfMin=function(e,r){r=r||$Q;for(var t=1/0,n,a=0;a<e.length;a++){var o=r(e[a]);o<t&&(t=o,n=a)}return n}});var Ph={};of(Ph,{default:()=>nj});function tj(e){return Object.keys(e).sort()}var nj,Ih=af(()=>{"use strict";nj=tj});var wM=xe(Qt=>{"use strict";var Pf=it(),aj=sa().isArrayOrTypedArray;Qt.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),Pf(r)||(r=!1),aj(t[0])){for(o=new Array(n),a=0;a<n;a++)o[a]=Qt.aggNums(e,r,t[a]);t=o}for(a=0;a<n;a++)Pf(r)?Pf(t[a])&&(r=e(+r,+t[a])):r=t[a];return r};Qt.len=function(e){return Qt.aggNums(function(r){return r+1},0,e)};Qt.mean=function(e,r){return r||(r=Qt.len(e)),Qt.aggNums(function(t,n){return t+n},0,e)/r};Qt.geometricMean=function(e,r){return r||(r=Qt.len(e)),Math.pow(Qt.aggNums(function(t,n){return t*n},1,e),1/r)};Qt.midRange=function(e){if(!(e===void 0||e.length===0))return(Qt.aggNums(Math.max,null,e)+Qt.aggNums(Math.min,null,e))/2};Qt.variance=function(e,r,t){return r||(r=Qt.len(e)),Pf(t)||(t=Qt.mean(e,r)),Qt.aggNums(function(n,a){return n+Math.pow(a-t,2)},0,e)/r};Qt.stdev=function(e,r,t){return Math.sqrt(Qt.variance(e,r,t))};Qt.median=function(e){var r=e.slice().sort();return Qt.interp(r,.5)};Qt.interp=function(e,r){if(!Pf(r))throw"n should be a finite number";if(r=r*e.length-.5,r<0)return e[0];if(r>e.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var SM=xe((tme,kM)=>{"use strict";var MM=(m0(),Kn(y0)),V3=MM.mod,ij=MM.modHalf,If=Math.PI,sl=2*If;function oj(e){return e/180*If}function lj(e){return e/If*180}function G3(e){return Math.abs(e[1]-e[0])>sl-1e-14}function TM(e,r){return ij(r-e,sl)}function sj(e,r){return Math.abs(TM(e,r))}function AM(e,r){if(G3(r))return!0;var t,n;r[0]<r[1]?(t=r[0],n=r[1]):(t=r[1],n=r[0]),t=V3(t,sl),n=V3(n,sl),t>n&&(n+=sl);var a=V3(e,sl),o=a+sl;return a>=t&&a<=n||o>=t&&o<=n}function uj(e,r,t,n){if(!AM(r,n))return!1;var a,o;return t[0]<t[1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]),e>=a&&e<=o}function Y3(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=G3([t,n]),u,s,f,c,p;l?(u=0,s=If,f=sl):t<n?(u=t,f=n):(u=n,f=t),e<r?(c=e,p=r):(c=r,p=e);function x(m,k){return[m*Math.cos(k)+a,o-m*Math.sin(k)]}var g=Math.abs(f-u)<=If?0:1;function w(m,k,S){return"A"+[m,m]+" "+[0,g,S]+" "+x(m,k)}var M;return l?c===null?M="M"+x(p,u)+w(p,s,0)+w(p,f,0)+"Z":M="M"+x(c,u)+w(c,s,0)+w(c,f,0)+"ZM"+x(p,u)+w(p,s,1)+w(p,f,1)+"Z":c===null?(M="M"+x(p,u)+w(p,f,0),i&&(M+="L0,0Z")):M="M"+x(c,u)+"L"+x(p,u)+w(p,f,0)+"L"+x(c,f)+w(c,u,1)+"Z",M}function fj(e,r,t,n,a){return Y3(null,e,r,t,n,a,0)}function cj(e,r,t,n,a){return Y3(null,e,r,t,n,a,1)}function vj(e,r,t,n,a,o){return Y3(e,r,t,n,a,o,1)}kM.exports={deg2rad:oj,rad2deg:lj,angleDelta:TM,angleDist:sj,isFullCircle:G3,isAngleInsideSector:AM,isPtInsideSector:uj,pathArc:fj,pathSector:cj,pathAnnulus:vj}});var CM=xe(hs=>{"use strict";hs.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};hs.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};hs.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};hs.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};hs.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};hs.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var DM=xe(ds=>{"use strict";var X3=(m0(),Kn(y0)).mod;ds.segmentsIntersect=LM;function LM(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,c=n-r,p=o-r,x=l-o,g=u*x-f*c;if(g===0)return null;var w=(s*x-f*p)/g,M=(s*c-u*p)/g;return M<0||M>1||w<0||w>1?null:{x:e+u*w,y:r+c*w}}ds.segmentDistance=function(r,t,n,a,o,i,l,u){if(LM(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,c=l-o,p=u-i,x=s*s+f*f,g=c*c+p*p,w=Math.min(zh(s,f,x,o-r,i-t),zh(s,f,x,l-r,u-t),zh(c,p,g,r-o,t-i),zh(c,p,g,n-o,a-i));return Math.sqrt(w)};function zh(e,r,t,n,a){var o=n*e+a*r;if(o<0)return n*n+a*a;if(o>t){var i=n-e,l=a-r;return i*i+l*l}else{var u=n*r-a*e;return u*u/t}}var Nh,W3,EM;ds.getTextLocation=function(r,t,n,a){if((r!==W3||a!==EM)&&(Nh={},W3=r,EM=a),Nh[n])return Nh[n];var o=r.getPointAtLength(X3(n-a/2,t)),i=r.getPointAtLength(X3(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(X3(n,t)),s=(u.x*4+o.x+i.x)/6,f=(u.y*4+o.y+i.y)/6,c={x:s,y:f,theta:l};return Nh[n]=c,c};ds.clearLocationCache=function(){W3=null};ds.getVisibleSegment=function(r,t,n){var a=t.left,o=t.right,i=t.top,l=t.bottom,u=0,s=r.getTotalLength(),f=s,c,p;function x(w){var M=r.getPointAtLength(w);w===0?c=M:w===s&&(p=M);var m=M.x<a?a-M.x:M.x>o?M.x-o:0,k=M.y<i?i-M.y:M.y>l?M.y-l:0;return Math.sqrt(m*m+k*k)}for(var g=x(u);g;){if(u+=g+n,u>f)return;g=x(u)}for(g=x(f);g;){if(f-=g+n,u>f)return;g=x(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(c.x-p.x)<.1&&Math.abs(c.y-p.y)<.1}};ds.findPointOnPath=function(r,t,n,a){a=a||{};for(var o=a.pathLength||r.getTotalLength(),i=a.tolerance||.001,l=a.iterationLimit||30,u=r.getPointAtLength(0)[n]>r.getPointAtLength(o)[n]?-1:1,s=0,f=0,c=o,p,x,g;s<l;){if(p=(f+c)/2,x=r.getPointAtLength(p),g=x[n]-t,Math.abs(g)<i)return x;u*g>0?c=p:f=p,s++}return x}});var qh=xe(zf=>{"use strict";var Eo={};zf.throttle=function(r,t,n){var a=Eo[r],o=Date.now();if(!a){for(var i in Eo)Eo[i].ts<o-6e4&&delete Eo[i];a=Eo[r]={ts:0,timer:null}}RM(a);function l(){n(),a.ts=Date.now(),a.onDone&&(a.onDone(),a.onDone=null)}if(o>a.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};zf.done=function(e){var r=Eo[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};zf.clear=function(e){if(e)RM(Eo[e]),delete Eo[e];else for(var r in Eo)zf.clear(r)};function RM(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var PM=xe((ome,FM)=>{"use strict";FM.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var IM=xe((lme,Bh)=>{"use strict";Bh.exports=Z3;Bh.exports.isMobile=Z3;Bh.exports.default=Z3;var hj=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,dj=/CrOS/,pj=/android|ipad|playbook|silk/i;function Z3(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=hj.test(r)&&!dj.test(r)||!!e.tablet&&pj.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var NM=xe((sme,zM)=>{"use strict";var gj=it(),yj=IM();zM.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=mj(),typeof t!="string")return!0;var n=yj({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),o=1;o<a.length;o++){var i=a[o];if(i.indexOf("Safari")!==-1)for(var l=o-1;l>-1;l--){var u=a[l];if(u.slice(0,8)==="Version/"){var s=u.slice(8).split(".")[0];if(gj(s)&&(s=+s),s>=13)return!0}}}return n};function mj(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var BM=xe((ume,qM)=>{"use strict";var bj=nt();qM.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(i){return i[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var o=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(i){i[0][o]=bj.select(this)}),a}});var UM=xe((fme,OM)=>{"use strict";var xj=Cr();OM.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var o=r._context.locales,i=0;i<2;i++){var l=(o[n]||{}).dictionary;if(l){var u=l[t];if(u)return u}o=xj.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var VM=xe((cme,HM)=>{"use strict";HM.exports=function(r){for(var t={},n=[],a=0,o=0;o<r.length;o++){var i=r[o];t[i]!==1&&(t[i]=1,n[a++]=i)}return n}});var YM=xe((vme,GM)=>{"use strict";GM.exports=function(r){for(var t=Mj(r)?wj:_j,n=[],a=0;a<r.length;a++){var o=r[a];t(o)&&n.push(o)}return n};function _j(e){return e.visible===!0}function wj(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function Mj(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var WM=xe((hme,XM)=>{"use strict";XM.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,o=String(a).length;if(o>16){var i=String(t).length,l=String(r).length;if(o>=l+i){var u=parseFloat(a).toPrecision(12);u.indexOf("e+")===-1&&(a=+u)}}return a}});var $M={};of($M,{default:()=>kj});function Aj(e){return typeof e=="string"&&(e=e.replace(Tj,"")),(0,ZM.default)(e)?Number(e):JM.BADNUM}var ZM,JM,Tj,kj,KM=af(()=>{"use strict";ZM=Gp(it()),JM=Gp(pn()),Tj=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;kj=Aj});var eT=xe((dme,jM)=>{"use strict";var Sj=/<[^>]*>/g,Cj=/[\p{S}\p{P}]/gu,Ej=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,Lj=/�/g,Dj=/\s+/g,Oh="-",QM=Oh.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Rj=new RegExp(QM+"{3,}","g"),Fj=new RegExp(QM+"$","g"),Pj=60;function Ij(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}jM.exports=function(r,t=Pj){var n=Ij(r!=null?r:"").replace(Lj,"").replace(Sj," ").replace(Cj,a=>a===Oh?a:"").toLowerCase().trim().replace(Dj,Oh).replace(Ej,"").replace(Rj,Oh);return n.length<=t?n:Array.from(n).slice(0,t).join("").replace(Fj,"")}});var rr=xe((pme,vT)=>{"use strict";var Nf=nt(),zj=p0().utcFormat,Nj=Xp().format,oT=it(),lT=pn(),sT=lT.FP_SAFE,qj=-sT,rT=lT.BADNUM,Ve=vT.exports={};Ve.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],n=r.slice(t.length);return!/^[~,.0$#]/.test(n)&&/[&fps]/.test(n)?t+"~"+n:r};var tT={};Ve.warnBadFormat=function(e){var r=String(e);tT[r]||(tT[r]=1,Ve.warn('encountered bad format: "'+r+'"'))};Ve.noFormat=function(e){return String(e)};Ve.numberFormat=function(e){var r;try{r=Nj(Ve.adjustFormat(e))}catch(t){return Ve.warnBadFormat(e),Ve.noFormat}return r};Ve.nestedProperty=Gv();Ve.keyedContainer=X_();Ve.relativeAttr=Z_();Ve.isPlainObject=es();Ve.toLogRange=Xv();Ve.relinkPrivateKeys=Q_();var ul=sa();Ve.isArrayBuffer=ul.isArrayBuffer;Ve.isTypedArray=ul.isTypedArray;Ve.isArrayOrTypedArray=ul.isArrayOrTypedArray;Ve.isArray1D=ul.isArray1D;Ve.ensureArray=ul.ensureArray;Ve.concat=ul.concat;Ve.maxRowLength=ul.maxRowLength;Ve.minRowLength=ul.minRowLength;var uT=(m0(),Kn(y0));Ve.mod=uT.mod;Ve.modHalf=uT.modHalf;var fl=xw();Ve.valObjectMeta=fl.valObjectMeta;Ve.coerce=fl.coerce;Ve.coerce2=fl.coerce2;Ve.coerceFont=fl.coerceFont;Ve.coercePattern=fl.coercePattern;Ve.coerceHoverinfo=fl.coerceHoverinfo;Ve.coerceSelectionMarkerOpacity=fl.coerceSelectionMarkerOpacity;Ve.validate=fl.validate;var Ea=xM();Ve.dateTime2ms=Ea.dateTime2ms;Ve.isDateTime=Ea.isDateTime;Ve.ms2DateTime=Ea.ms2DateTime;Ve.ms2DateTimeLocal=Ea.ms2DateTimeLocal;Ve.cleanDate=Ea.cleanDate;Ve.isJSDate=Ea.isJSDate;Ve.formatDate=Ea.formatDate;Ve.incrementMonth=Ea.incrementMonth;Ve.dateTick0=Ea.dateTick0;Ve.dfltRange=Ea.dfltRange;Ve.findExactDates=Ea.findExactDates;Ve.MIN_MS=Ea.MIN_MS;Ve.MAX_MS=Ea.MAX_MS;var ps=H3();Ve.findBin=ps.findBin;Ve.sorterAsc=ps.sorterAsc;Ve.sorterDes=ps.sorterDes;Ve.distinctVals=ps.distinctVals;Ve.roundUp=ps.roundUp;Ve.sort=ps.sort;Ve.findIndexOfMin=ps.findIndexOfMin;Ve.sortObjectKeys=(Ih(),Kn(Ph)).default;var Lo=wM();Ve.aggNums=Lo.aggNums;Ve.len=Lo.len;Ve.mean=Lo.mean;Ve.geometricMean=Lo.geometricMean;Ve.median=Lo.median;Ve.midRange=Lo.midRange;Ve.variance=Lo.variance;Ve.stdev=Lo.stdev;Ve.interp=Lo.interp;var bi=Th();Ve.init2dArray=bi.init2dArray;Ve.transposeRagged=bi.transposeRagged;Ve.dot=bi.dot;Ve.translationMatrix=bi.translationMatrix;Ve.rotationMatrix=bi.rotationMatrix;Ve.rotationXYMatrix=bi.rotationXYMatrix;Ve.apply3DTransform=bi.apply3DTransform;Ve.apply2DTransform=bi.apply2DTransform;Ve.apply2DTransform2=bi.apply2DTransform2;Ve.convertCssMatrix=bi.convertCssMatrix;Ve.inverseTransformMatrix=bi.inverseTransformMatrix;var Ji=SM();Ve.deg2rad=Ji.deg2rad;Ve.rad2deg=Ji.rad2deg;Ve.angleDelta=Ji.angleDelta;Ve.angleDist=Ji.angleDist;Ve.isFullCircle=Ji.isFullCircle;Ve.isAngleInsideSector=Ji.isAngleInsideSector;Ve.isPtInsideSector=Ji.isPtInsideSector;Ve.pathArc=Ji.pathArc;Ve.pathSector=Ji.pathSector;Ve.pathAnnulus=Ji.pathAnnulus;var N0=CM();Ve.isLeftAnchor=N0.isLeftAnchor;Ve.isCenterAnchor=N0.isCenterAnchor;Ve.isRightAnchor=N0.isRightAnchor;Ve.isTopAnchor=N0.isTopAnchor;Ve.isMiddleAnchor=N0.isMiddleAnchor;Ve.isBottomAnchor=N0.isBottomAnchor;var q0=DM();Ve.segmentsIntersect=q0.segmentsIntersect;Ve.segmentDistance=q0.segmentDistance;Ve.getTextLocation=q0.getTextLocation;Ve.clearLocationCache=q0.clearLocationCache;Ve.getVisibleSegment=q0.getVisibleSegment;Ve.findPointOnPath=q0.findPointOnPath;var Vh=Rt();Ve.extendFlat=Vh.extendFlat;Ve.extendDeep=Vh.extendDeep;Ve.extendDeepAll=Vh.extendDeepAll;Ve.extendDeepNoArrays=Vh.extendDeepNoArrays;var J3=el();Ve.log=J3.log;Ve.warn=J3.warn;Ve.error=J3.error;var Bj=(E0(),Kn(C0));Ve.counterRegex=Bj.counter;var $3=qh();Ve.throttle=$3.throttle;Ve.throttleDone=$3.done;Ve.clearThrottle=$3.clear;var xi=Lf();Ve.getGraphDiv=xi.getGraphDiv;Ve.isPlotDiv=xi.isPlotDiv;Ve.removeElement=xi.removeElement;Ve.addStyleRule=xi.addStyleRule;Ve.addRelatedStyleRule=xi.addRelatedStyleRule;Ve.deleteRelatedStyleRule=xi.deleteRelatedStyleRule;Ve.setStyleOnHover=xi.setStyleOnHover;Ve.getFullTransformMatrix=xi.getFullTransformMatrix;Ve.getElementTransformMatrix=xi.getElementTransformMatrix;Ve.getElementAndAncestors=xi.getElementAndAncestors;Ve.equalDomRects=xi.equalDomRects;Ve.clearResponsive=PM();Ve.preserveDrawingBuffer=NM();Ve.makeTraceGroups=BM();Ve._=UM();Ve.notifier=w3();Ve.filterUnique=VM();Ve.filterVisible=YM();Ve.pushUnique=D3();Ve.increment=WM();Ve.cleanNumber=(KM(),Kn($M)).default;Ve.slugify=eT();Ve.ensureNumber=function(r){return oT(r)?(r=Number(r),r>sT||r<qj?rT:r):rT};Ve.isIndex=function(e,r){return r!==void 0&&e>=r?!1:oT(e)&&e>=0&&e%1===0};Ve.noop=Mh();Ve.identity=O3();Ve.repeat=function(e,r){for(var t=new Array(r),n=0;n<r;n++)t[n]=e;return t};Ve.swapAttrs=function(e,r,t,n){t||(t="x"),n||(n="y");for(var a=0;a<r.length;a++){var o=r[a],i=Ve.nestedProperty(e,o.replace("?",t)),l=Ve.nestedProperty(e,o.replace("?",n)),u=i.get();i.set(l.get()),l.set(u)}};Ve.raiseToTop=function(r){r.parentNode.appendChild(r)};Ve.cancelTransition=function(e){return e.transition().duration(0)};Ve.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Ve.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Ve.simpleMap=function(e,r,t,n,a){for(var o=e.length,i=new Array(o),l=0;l<o;l++)i[l]=r(e[l],t,n,a);return i};Ve.randstr=function e(r,t,n,a){if(n||(n=16),t===void 0&&(t=24),t<=0)return"0";var o=Math.log(Math.pow(2,t))/Math.log(n),i="",l,u,s;for(l=2;o===1/0;l*=2)o=Math.log(Math.pow(2,t/l))/Math.log(n)*l;var f=o-Math.floor(o);for(l=0;l<Math.floor(o);l++)s=Math.floor(Math.random()*n).toString(n),i=s+i;f&&(u=Math.pow(n,f),s=Math.floor(Math.random()*u).toString(n),i=s+i);var c=parseInt(i,n);return r&&r[i]||c!==1/0&&c>=Math.pow(2,t)?a>10?(Ve.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};Ve.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Ve.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,o=new Array(a),i=new Array(t),l,u,s,f;for(l=0;l<a;l++)o[l]=(1-Math.cos(Math.PI*(l+1)/r))/(2*r);for(l=0;l<t;l++){for(f=0,u=0;u<a;u++)s=l+u+1-r,s<-t?s-=n*Math.round(s/n):s>=n&&(s-=n*Math.floor(s/n)),s<0?s=-1-s:s>=t&&(s=n-1-s),f+=e[s]*o[u];i[l]=f}return i};Ve.syncOrAsync=function(e,r,t){var n,a;function o(){return Ve.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(o);return t&&t(r)};Ve.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Ve.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,o,i;for(o=0;o<t.length;o++)i=e[t[o]],i!=null?n=!0:a=!1;if(n&&!a)for(o=0;o<t.length;o++)e[t[o]]=r[t[o]]}};Ve.mergeArray=function(e,r,t,n){var a=typeof n=="function";if(Ve.isArrayOrTypedArray(e))for(var o=Math.min(e.length,r.length),i=0;i<o;i++){var l=e[i];r[i][t]=a?n(l):l}};Ve.mergeArrayCastPositive=function(e,r,t){return Ve.mergeArray(e,r,t,function(n){var a=+n;return isFinite(a)&&a>0?a:0})};Ve.fillArray=function(e,r,t,n){if(n=n||Ve.identity,Ve.isArrayOrTypedArray(e))for(var a=0;a<r.length;a++)r[a][t]=n(e[a])};Ve.castOption=function(e,r,t,n){n=n||Ve.identity;var a=Ve.nestedProperty(e,t).get();return Ve.isArrayOrTypedArray(a)?Array.isArray(r)&&Ve.isArrayOrTypedArray(a[r[0]])?n(a[r[0]][r[1]]):n(a[r]):a};Ve.extractOption=function(e,r,t,n){if(t in e)return e[t];var a=Ve.nestedProperty(r,n).get();if(!Array.isArray(a))return a};Ve.tagSelected=function(e,r,t){var n=r.selectedpoints;function a(s){return s!==void 0&&s<e.length}for(var o=0;o<n.length;o++){var i=n[o];if(Ve.isIndex(i)||Ve.isArrayOrTypedArray(i)&&Ve.isIndex(i[0])&&Ve.isIndex(i[1])){var l=i,u=t?t[l]:l;a(u)&&(e[u].selected=1)}}};Ve.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var n=Ve.nestedProperty(e,t).get();return Ve.isArrayOrTypedArray(n)?n:!1}else if(Ve.isArrayOrTypedArray(t))return t;return!1};function fT(e,r,t){var n={};typeof r!="object"&&(r={});var a=t==="pieLike"?-1:3,o=Object.keys(e),i,l,u;for(i=0;i<o.length;i++)l=o[i],u=e[l],!(l.charAt(0)==="_"||typeof u=="function")&&(l==="module"?n[l]=u:Array.isArray(u)?l==="colorscale"||a===-1?n[l]=u.slice():n[l]=u.slice(0,a):Ve.isTypedArray(u)?a===-1?n[l]=u.subarray():n[l]=u.subarray(0,a):u&&typeof u=="object"?n[l]=fT(e[l],r[l],t):n[l]=u);for(o=Object.keys(r),i=0;i<o.length;i++)l=o[i],u=r[l],(typeof u!="object"||!(l in n)||typeof n[l]!="object")&&(n[l]=u);return n}Ve.minExtend=fT;Ve.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};Ve.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var Oj=/Version\/[\d\.]+.*Safari/;Ve.isSafari=function(){return Oj.test(window.navigator.userAgent)};var Uj=/iPad|iPhone|iPod/;Ve.isIOS=function(){return Uj.test(window.navigator.userAgent)};var Hj=/Macintosh.+AppleWebKit.+Gecko\)$/;Ve.isMacWKWebView=()=>Hj.test(window.navigator.userAgent);var Vj=/Firefox\/(\d+)\.\d+/;Ve.getFirefoxVersion=function(){var e=Vj.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Ve.isD3Selection=function(e){return e instanceof Nf.selection};Ve.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var o=e.append(r);return t&&o.classed(t,!0),n&&o.call(n),o};Ve.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var o=e.append(r).attr("id",t);return n&&o.call(n),o};Ve.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},o=0;o<t.length;o++){var i=t[o],l=null,u=t[o].match(/(.*)\[([0-9]+)\]/);u?(i=u[1],l=u[2],n=n[i]=[],o===t.length-1?n[l]=r:n[l]={},n=n[l]):(o===t.length-1?n[i]=r:n[i]={},n=n[i])}return a};var Gj=/^([^\[\.]+)\.(.+)?/,Yj=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Uh(e){return e.slice(0,2)==="__"}Ve.expandObjectPaths=function(e){var r,t,n,a,o,i,l;if(typeof e=="object"&&!Array.isArray(e)){for(t in e)if(e.hasOwnProperty(t))if(r=t.match(Gj)){if(a=e[t],n=r[1],Uh(n))continue;delete e[t],e[n]=Ve.extendDeepNoArrays(e[n]||{},Ve.objectFromPath(t,Ve.expandObjectPaths(a))[n])}else if(r=t.match(Yj)){if(a=e[t],n=r[1],Uh(n))continue;if(o=parseInt(r[2]),delete e[t],e[n]=e[n]||[],r[3]===".")l=r[4],i=e[n][o]=e[n][o]||{},Ve.extendDeepNoArrays(i,Ve.objectFromPath(l,Ve.expandObjectPaths(a)));else{if(Uh(n))continue;e[n][o]=Ve.expandObjectPaths(a)}}else{if(Uh(t))continue;e[t]=Ve.expandObjectPaths(e[t])}}return e};Ve.numSeparate=function(e,r,t){if(t||(t=!1),typeof r!="string"||r.length===0)throw new Error("Separator string required for formatting!");typeof e=="number"&&(e=String(e));var n=/(\d+)(\d{3})/,a=r.charAt(0),o=r.charAt(1),i=e.split("."),l=i[0],u=i.length>1?a+i[1]:"";if(o&&(i.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+o+"$2");return l+u};Ve.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var cT=/^\w*$/;Ve.templateString=function(e,r){var t={};return e.replace(Ve.TEMPLATE_STRING_REGEX,function(n,a){var o;return cT.test(a)?o=r[a]:(t[a]=t[a]||Ve.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var Xj={max:10,count:0,name:"hovertemplate"};Ve.hovertemplateString=e=>K3(qt(xt({},e),{opts:Xj}));var Wj={max:10,count:0,name:"texttemplate"};Ve.texttemplateString=e=>K3(qt(xt({},e),{opts:Wj}));var Zj=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Jj(e){var r=e.match(Zj);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var $j={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ve.texttemplateStringForShapes=e=>K3(qt(xt({},e),{opts:$j}));var nT=/^[:|\|]/;function K3({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:o}){return o.replace(Ve.TEMPLATE_STRING_REGEX,(i,l,u)=>{let s=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),p=["xother_","yother_"].includes(l),x=s||f||p||c;(f||c)&&(l=l.substring(1)),(p||c)&&(l=l.substring(0,l.length-1));let g=null,w=null;if(a.parseMultDiv){var M=Jj(l);l=M.key,g=M.op,w=M.number}let m;if(x){if(n[l]===void 0)return"";m=n[l]}else for(let T of e)if(T){if(T.hasOwnProperty(l)){m=T[l];break}if(cT.test(l)||(m=Ve.nestedProperty(T,l).get(!0)),m!==void 0)break}if(m===void 0){let{count:T,max:h,name:_}=a,y=t===!1?i:t;return T<h&&Ve.warn([`Variable '${l}' in ${_} could not be found!`,"Please verify that the template is correct.",`Using value: '${y}'.`].join(" ")),T===h&&Ve.warn(`Too many '${_}' warnings - additional warnings will be suppressed.`),a.count++,y}if(g==="*"&&(m*=w),g==="/"&&(m/=w),u){var k;if(u[0]===":"&&(k=r?r.numberFormat:Ve.numberFormat,m!==""&&(m=k(u.replace(nT,""))(m))),u[0]==="|"){k=r?r.timeFormat:zj;var S=Ve.dateTime2ms(m);m=Ve.formatDate(S,u.replace(nT,""),!1,k)}}else{var b=l+"Label";n.hasOwnProperty(b)&&(m=n[b])}return x&&(m="("+m+")",(f||c)&&(m=" "+m),(p||c)&&(m=m+" ")),m})}var Hh=48,aT=57;Ve.subplotSort=function(e,r){for(var t=Math.min(e.length,r.length)+1,n=0,a=0,o=0;o<t;o++){var i=e.charCodeAt(o)||0,l=r.charCodeAt(o)||0,u=i>=Hh&&i<=aT,s=l>=Hh&&l<=aT;if(u&&(n=10*n+i-Hh),s&&(a=10*a+l-Hh),!u||!s){if(n!==a)return n-a;if(i!==l)return i-l}}return a-n};var z0=2e9;Ve.seedPseudoRandom=function(){z0=2e9};Ve.pseudoRandom=function(){var e=z0;return z0=(69069*z0+1)%4294967296,Math.abs(z0-e)<429496729?Ve.pseudoRandom():z0/4294967296};Ve.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=Ve.extractOption(e,r,"htx","hovertext");if(Ve.isValidTextValue(a))return n(a);var o=Ve.extractOption(e,r,"tx","text");if(Ve.isValidTextValue(o))return n(o)};Ve.isValidTextValue=function(e){return e||e===0};Ve.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n<r;n++)t.indexOf(".")!==-1&&(t=t.replace("0%","%"),t=t.replace(".%","%"));return t};Ve.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};Ve.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};Ve.strRotate=function(e){return e?"rotate("+e+")":""};Ve.strScale=function(e){return e!==1?"scale("+e+")":""};Ve.getTextTransform=function(e){var r=e.noCenter,t=e.textX,n=e.textY,a=e.targetX,o=e.targetY,i=e.anchorX||0,l=e.anchorY||0,u=e.rotate,s=e.scale;return s?s>1&&(s=1):s=0,Ve.strTranslate(a-s*(t+i),o-s*(n+l))+Ve.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};Ve.setTransormAndDisplay=function(e,r){e.attr("transform",Ve.getTextTransform(r)),e.style("display",r.scale?null:"none")};Ve.ensureUniformFontSize=function(e,r){var t=Ve.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Ve.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Ve.bigFont=function(e){return Math.round(1.2*e)};var iT=Ve.getFirefoxVersion(),Kj=iT!==null&&iT<86;Ve.getPositionFromD3Event=function(){return Kj?[Nf.event.layerX,Nf.event.layerY]:[Nf.event.offsetX,Nf.event.offsetY]}});var pT=xe(()=>{"use strict";var Qj=rr(),hT={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Q3 in hT)dT=Q3.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Qj.addStyleRule(dT,hT[Q3]);var dT,Q3});var j3=xe((bme,gT)=>{gT.exports=!0});var ry=xe((xme,yT)=>{"use strict";var jj=j3(),ey;typeof window.matchMedia=="function"?ey=!window.matchMedia("(hover: none)").matches:ey=jj;yT.exports=ey});var Xh=xe((_me,ty)=>{"use strict";var B0=typeof Reflect=="object"?Reflect:null,mT=B0&&typeof B0.apply=="function"?B0.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},Gh;B0&&typeof B0.ownKeys=="function"?Gh=B0.ownKeys:Object.getOwnPropertySymbols?Gh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Gh=function(r){return Object.getOwnPropertyNames(r)};function eee(e){console&&console.warn&&console.warn(e)}var xT=Number.isNaN||function(r){return r!==r};function Pt(){Pt.init.call(this)}ty.exports=Pt;ty.exports.once=aee;Pt.EventEmitter=Pt;Pt.prototype._events=void 0;Pt.prototype._eventsCount=0;Pt.prototype._maxListeners=void 0;var bT=10;function Yh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Pt,"defaultMaxListeners",{enumerable:!0,get:function(){return bT},set:function(e){if(typeof e!="number"||e<0||xT(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");bT=e}});Pt.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};Pt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||xT(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function _T(e){return e._maxListeners===void 0?Pt.defaultMaxListeners:e._maxListeners}Pt.prototype.getMaxListeners=function(){return _T(this)};Pt.prototype.emit=function(r){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var a=r==="error",o=this._events;if(o!==void 0)a=a&&o.error===void 0;else if(!a)return!1;if(a){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var u=o[r];if(u===void 0)return!1;if(typeof u=="function")mT(u,this,t);else for(var s=u.length,f=kT(u,s),n=0;n<s;++n)mT(f[n],this,t);return!0};function wT(e,r,t,n){var a,o,i;if(Yh(t),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",r,t.listener?t.listener:t),o=e._events),i=o[r]),i===void 0)i=o[r]=t,++e._eventsCount;else if(typeof i=="function"?i=o[r]=n?[t,i]:[i,t]:n?i.unshift(t):i.push(t),a=_T(e),a>0&&i.length>a&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=i.length,eee(l)}return e}Pt.prototype.addListener=function(r,t){return wT(this,r,t,!1)};Pt.prototype.on=Pt.prototype.addListener;Pt.prototype.prependListener=function(r,t){return wT(this,r,t,!0)};function ree(){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 MT(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=ree.bind(n);return a.listener=t,n.wrapFn=a,a}Pt.prototype.once=function(r,t){return Yh(t),this.on(r,MT(this,r,t)),this};Pt.prototype.prependOnceListener=function(r,t){return Yh(t),this.prependListener(r,MT(this,r,t)),this};Pt.prototype.removeListener=function(r,t){var n,a,o,i,l;if(Yh(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){l=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():tee(n,o),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Pt.prototype.off=Pt.prototype.removeListener;Pt.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),i;for(a=0;a<o.length;++a)i=o[a],i!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[r],typeof t=="function")this.removeListener(r,t);else if(t!==void 0)for(a=t.length-1;a>=0;a--)this.removeListener(r,t[a]);return this};function TT(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?nee(a):kT(a,a.length)}Pt.prototype.listeners=function(r){return TT(this,r,!0)};Pt.prototype.rawListeners=function(r){return TT(this,r,!1)};Pt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):AT.call(e,r)};Pt.prototype.listenerCount=AT;function AT(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Pt.prototype.eventNames=function(){return this._eventsCount>0?Gh(this._events):[]};function kT(e,r){for(var t=new Array(r),n=0;n<r;++n)t[n]=e[n];return t}function tee(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function nee(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function aee(e,r){return new Promise(function(t,n){function a(i){e.removeListener(r,o),n(i)}function o(){typeof e.removeListener=="function"&&e.removeListener("error",a),t([].slice.call(arguments))}ST(e,r,o,{once:!0}),r!=="error"&&iee(e,a,{once:!0})})}function iee(e,r,t){typeof e.on=="function"&&ST(e,"error",r,t)}function ST(e,r,t,n){if(typeof e.on=="function")n.once?e.once(r,t):e.on(r,t);else if(typeof e.addEventListener=="function")e.addEventListener(r,function a(o){n.once&&e.removeEventListener(r,a),t(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var qf=xe((wme,CT)=>{"use strict";var ny=Xh().EventEmitter,oee={init:function(e){if(e._ev instanceof ny)return e;var r=new ny,t=new ny;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var o=a._events[r];if(!o)return;function i(u){if(u.listener){if(a.removeListener(r,u.listener),!u.fired)return u.fired=!0,u.listener.apply(a,[t])}else return u.apply(a,[t])}o=Array.isArray(o)?o:[o];var l;for(l=0;l<o.length-1;l++)i(o[l]);return n=i(o[l]),n},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};CT.exports=oee});var DT=xe((Mme,LT)=>{"use strict";var ET=rr(),lee=jo().dfltConfig;function see(e,r){for(var t=[],n,a=0;a<r.length;a++)n=r[a],n===e?t[a]=n:typeof n=="object"?t[a]=Array.isArray(n)?ET.extendDeep([],n):ET.extendDeepAll({},n):t[a]=n;return t}var Do={};Do.add=function(e,r,t,n,a){var o,i;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},i=e.undoQueue.index,e.autoplay){e.undoQueue.inSequence||(e.autoplay=!1);return}!e.undoQueue.sequence||e.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(i,e.undoQueue.queue.length-i,o),e.undoQueue.index+=1):o=e.undoQueue.queue[i-1],e.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(r),o.undo.args.unshift(t),o.redo.calls.push(n),o.redo.args.push(a)),e.undoQueue.queue.length>lee.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Do.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Do.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Do.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n<t.undo.calls.length;n++)Do.plotDo(r,t.undo.calls[n],t.undo.args[n]);r.undoQueue.inSequence=!1,r.autoplay=!1}};Do.redo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index>=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n<t.redo.calls.length;n++)Do.plotDo(r,t.redo.calls[n],t.redo.args[n]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};Do.plotDo=function(e,r,t){e.autoplay=!0,t=see(e,t),r.apply(null,t)};LT.exports=Do});var ay=xe((Tme,RT)=>{"use strict";RT.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var H0=xe(un=>{"use strict";var Za=Cr(),Bf=rr(),Zh=qn(),iy=R0(),uee=ay(),fee=Df(),cee=jo().configAttributes,FT=ea(),_i=Bf.extendDeepAll,O0=Bf.isPlainObject,vee=Bf.isArrayOrTypedArray,Jh=Bf.nestedProperty,hee=Bf.valObjectMeta,oy="_isSubplotObj",$h="_isLinkedToArray",dee="_arrayAttrRegexps",IT="_deprecated",ly=[oy,$h,dee,IT];un.IS_SUBPLOT_OBJ=oy;un.IS_LINKED_TO_ARRAY=$h;un.DEPRECATED=IT;un.UNDERSCORE_ATTRS=ly;un.get=function(){var e={};return Za.allTypes.forEach(function(r){e[r]=gee(r)}),{defs:{valObjects:hee,metaKeys:ly.concat(["description","role","editType","impliedEdits"]),editType:{traces:FT.traces,layout:FT.layout},impliedEdits:{}},traces:e,layout:yee(),frames:mee(),animation:U0(fee),config:U0(cee)}};un.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(ly.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!un.isValObject(i)&&O0(i)&&o!=="impliedEdits"&&un.crawl(i,r,a+1,l)}})};un.isValObject=function(e){return e&&e.valType!==void 0};un.findArrayAttributes=function(e){var r=[],t=[],n=[],a,o;function i(u,s,f,c){t=t.slice(0,c).concat([s]),n=n.slice(0,c).concat([u&&u._isLinkedToArray]);var p=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));p&&l(a,0,"")}function l(u,s,f){var c=u[t[s]],p=f+t[s];if(s===t.length-1)vee(c)&&r.push(o+p);else if(n[s]){if(Array.isArray(c))for(var x=0;x<c.length;x++)O0(c[x])&&l(c[x],s+1,p+"["+x+"].")}else O0(c)&&l(c,s+1,p+".")}return a=e,o="",un.crawl(Zh,i),e._module&&e._module.attributes&&un.crawl(e._module.attributes,i),r};un.getTraceValObject=function(e,r){var t=r[0],n=1,a,o,i=e._module;if(i||(i=(Za.modules[e.type||Zh.type.dflt]||{})._module),!i)return!1;if(a=i.attributes,o=a&&a[t],!o){var l=i.basePlotModule;l&&l.attributes&&(o=l.attributes[t])}return o||(o=Zh[t]),zT(o,r,n)};un.getLayoutValObject=function(e,r){var t=pee(e,r[0]);return zT(t,r,1)};function pee(e,r){var t,n,a,o,i=e._basePlotModules;if(i){var l;for(t=0;t<i.length;t++){if(a=i[t],a.attrRegex&&a.attrRegex.test(r)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!l&&a.layoutAttributes&&(l=a.layoutAttributes)}var u=a.baseLayoutAttrOverrides;if(u&&r in u)return u[r]}if(l)return l}var s=e._modules;if(s){for(t=0;t<s.length;t++)if(o=s[t].layoutAttributes,o&&r in o)return o[r]}for(n in Za.componentsRegistry){if(a=Za.componentsRegistry[n],a.name==="colorscale"&&r.indexOf("coloraxis")===0)return a.layoutAttributes[r];if(!a.schema&&r===a.name)return a.layoutAttributes}return r in iy?iy[r]:!1}function zT(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(Wh(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var n=e[r[t]];if(O0(n))e=n;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!Wh(r[t]))return!1}else if(e.valType==="info_array"){t++;var a=r[t];if(!Wh(a))return!1;var o=e.items;if(Array.isArray(o)){if(a>=o.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var i=r[t];if(!Wh(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function Wh(e){return e===Math.round(e)&&e>=0}function gee(e){var r,t;r=Za.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=_i({},Zh),o=_i({},r.attributes);un.crawl(o,function(u,s,f,c,p){Jh(a,p).set(void 0),u===void 0&&Jh(o,p).set(void 0)}),_i(n,a),Za.traceIs(e,"noOpacity")&&delete n.opacity,Za.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),Za.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,_i(n,o),t.attributes&&_i(n,t.attributes),n.type=e;var i={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:U0(n)};if(r.layoutAttributes){var l={};_i(l,r.layoutAttributes),i.layoutAttributes=U0(l)}return r.animatable||un.crawl(i,function(u){un.isValObject(u)&&"anim"in u&&delete u.anim}),i}function yee(){var e={},r,t;_i(e,iy);for(r in Za.subplotsRegistry)if(t=Za.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n<t.attr.length;n++)PT(e,t,t.attr[n]);else{var a=t.attr==="subplot"?t.name:t.attr;PT(e,t,a)}for(r in Za.componentsRegistry){t=Za.componentsRegistry[r];var o=t.schema;if(o&&(o.subplots||o.layout)){var i=o.subplots;if(i&&i.xaxis&&!i.yaxis)for(var l in i.xaxis)delete e.yaxis[l];delete e.xaxis.shift,delete e.xaxis.autoshift}else t.name==="colorscale"?_i(e,t.layoutAttributes):t.layoutAttributes&&wee(e,t.layoutAttributes,t.name)}return{layoutAttributes:U0(e)}}function mee(){var e={frames:_i({},uee)};return U0(e),e.frames}function U0(e){return bee(e),xee(e),_ee(e),e}function bee(e){function r(t,n,a){!un.isValObject(t)&&O0(t)&&(t.role="object")}un.crawl(e,r)}function xee(e){function r(t,n,a){if(t){var o=t[$h];o&&(delete t[$h],a[n]={items:{}},a[n].items[o]=t,a[n].role="object")}}un.crawl(e,r)}function _ee(e){function r(t){for(var n in t)if(O0(t[n]))r(t[n]);else if(Array.isArray(t[n]))for(var a=0;a<t[n].length;a++)r(t[n][a]);else t[n]instanceof RegExp&&(t[n]=t[n].toString())}r(e)}function PT(e,r,t){var n=Jh(e,t),a=_i({},r.layoutAttributes);a[oy]=!0,n.set(a)}function wee(e,r,t){var n=Jh(e,t);n.set(_i(n.get()||{},r))}});var wt=xe(gs=>{"use strict";var V0=rr(),Mee=qn(),cl="templateitemname",sy={name:{valType:"string",editType:"none"}};sy[cl]={valType:"string",editType:"calc"};gs.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=sy.name,r[cl]=sy[cl],r};gs.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(o){t=V0.coerce(o,{},Mee,"type");var i={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,i._template=n[l]}return i}return{newTrace:a}};gs.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);V0.isPlainObject(a)||(a=null);var o=e[r]={_template:a};return o};gs.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[qT(r)],o=n&&n[r];(!Array.isArray(o)||!o.length)&&(o=[]);var i={};function l(s){var f={name:s.name,_input:s},c=f[cl]=s[cl];if(!NT(c))return f._template=a,f;for(var p=0;p<o.length;p++){var x=o[p];if(x.name===c)return i[c]=1,f._template=x,f}return f[t]=s[t]||!1,f._template=!1,f}function u(){for(var s=[],f=0;f<o.length;f++){var c=o[f],p=c.name;if(NT(p)&&!i[p]){var x={_template:c,name:p,_input:{_templateitemname:p}};x[cl]=c[cl],s.push(x),i[p]=1}}return s}return{newItem:l,defaultItems:u}};function NT(e){return e&&typeof e=="string"}function qT(e){var r=e.length-1;return e.charAt(r)!=="s"&&V0.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}gs.arrayDefaultKey=qT;gs.arrayEditor=function(e,r,t){var n=(V0.nestedProperty(e,r).get()||[]).length,a=t._index,o=a>=n&&(t._input||{})._templateitemname;o&&(a=n);var i=r+"["+a+"]",l;function u(){l={},o&&(l[i]={},l[i][cl]=o)}u();function s(x,g){l[x]=g}function f(x,g){o?V0.nestedProperty(l[i],x).set(g):l[i+"."+x]=g}function c(){var x=l;return u(),x}function p(x,g){x&&f(x,g);var w=c();for(var M in w)V0.nestedProperty(e,M).set(w[M])}return{modifyBase:s,modifyItem:f,getUpdateObj:c,applyUpdate:p}}});var mn=xe((Sme,BT)=>{"use strict";var Of=(E0(),Kn(C0)).counter;BT.exports={idRegex:{x:Of("x","( domain)?"),y:Of("y","( domain)?")},attrRegex:Of("[xy]axis"),xAxisMatch:Of("xaxis"),yAxisMatch:Of("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var fn=xe(xa=>{"use strict";var Tee=Cr(),uy=mn();xa.id2name=function(r){if(!(typeof r!="string"||!r.match(uy.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};xa.name2id=function(r){if(r.match(uy.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};xa.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(uy.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var o=r.split(" ")[0].slice(1).replace(/^0+/,"");return o==="1"&&(o=""),r.charAt(0)+o+(a&&n?" domain":"")}};xa.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=xa.listIds(e,r),o=new Array(a.length),i;for(i=0;i<a.length;i++){var l=a[i];o[i]=n[l.charAt(0)+"axis"+l.slice(1)]}if(!t){var u=n._subplots.gl3d||[];for(i=0;i<u.length;i++){var s=n[u[i]];r?o.push(s[r+"axis"]):o.push(s.xaxis,s.yaxis,s.zaxis)}}return o};xa.listIds=function(e,r){var t=e._fullLayout;if(!t)return[];var n=t._subplots;return r?n[r+"axis"]:n.xaxis.concat(n.yaxis)};xa.getFromId=function(e,r,t){var n=e._fullLayout;return r=r===void 0||typeof r!="string"?r:r.replace(" domain",""),t==="x"?r=r.replace(/y[0-9]*/,""):t==="y"&&(r=r.replace(/x[0-9]*/,"")),n[xa.id2name(r)]};xa.getFromTrace=function(e,r,t){var n=e._fullLayout,a=null;if(Tee.traceIs(r,"gl3d")){var o=r.scene;o.slice(0,5)==="scene"&&(a=n[o][t+"axis"])}else a=xa.getFromId(e,r[t+"axis"]||t);return a};xa.idSort=function(e,r){var t=e.charAt(0),n=r.charAt(0);return t!==n?t>n?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};xa.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function OT(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}xa.isLinked=function(e,r){return OT(r,e._axisMatchGroups)||OT(r,e._axisConstraintGroups)}});var vl=xe((Eme,UT)=>{"use strict";function Aee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function kee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}UT.exports={clearOutlineControllers:Aee,clearOutline:kee}});var Kh=xe((Lme,HT)=>{"use strict";HT.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Uf=xe(jh=>{"use strict";var Qh=Cr(),Dme=mn().SUBPLOT_PATTERN;jh.getSubplotCalcData=function(e,r,t){var n=Qh.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,o=[],i=0;i<e.length;i++){var l=e[i],u=l[0].trace;u[a]===t&&o.push(l)}return o};jh.getModuleCalcData=function(e,r,t){var n=[],a=[],o;if(typeof r=="string"?o=Qh.getModule(r).plot:typeof r=="function"?o=r:o=r.plot,!o)return[n,e];for(var i=t,l=0;l<e.length;l++){var u=e[l],s=u[0].trace,f=s.zorder!==void 0;s.visible!==!0||s._length===0||(s._module&&s._module.plot===o&&(!f||s.zorder===i)?n.push(u):a.push(u))}return[n,a]};jh.getSubplotData=function(r,t,n){if(!Qh.subplotsRegistry[t])return[];for(var a=Qh.subplotsRegistry[t].attr,o=[],i,l,u,s=0;s<r.length;s++)i=r[s],i[a]===n&&o.push(i);return o}});var XT=xe(ys=>{"use strict";var See=Cr(),G0=rr();ys.manageCommandObserver=function(e,r,t,n){var a={},o=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var i=ys.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(i)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(i){VT(e,i,a.cache),a.check=function(){if(o){var f=VT(e,i,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:i.type,prop:i.prop,traces:i.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u<l.length;u++)e._internalOn(l[u],a.check);a.remove=function(){for(var s=0;s<l.length;s++)e._removeInternalListener(l[s],a.check)}}else G0.log("Unable to automatically bind plot updates to API command"),a.lookupTable={},a.remove=function(){};return a.disable=function(){o=!1},a.enable=function(){o=!0},r&&(r._commandObserver=a),a};ys.hasSimpleAPICommandBindings=function(e,r,t){var n,a=r.length,o;for(n=0;n<a;n++){var i,l=r[n],u=l.method,s=l.args;if(Array.isArray(s)||(s=[]),!u)return!1;var f=ys.computeAPICommandBindings(e,u,s);if(f.length!==1)return!1;if(!o)o=f[0],Array.isArray(o.traces)&&o.traces.sort();else{if(i=f[0],i.type!==o.type||i.prop!==o.prop)return!1;if(Array.isArray(o.traces))if(Array.isArray(i.traces)){i.traces.sort();for(var c=0;c<o.traces.length;c++)if(o.traces[c]!==i.traces[c])return!1}else return!1;else if(i.prop!==o.prop)return!1}i=f[0];var p=i.value;if(Array.isArray(p))if(p.length===1)p=p[0];else return!1;t&&(t[p]=n)}return o};function VT(e,r,t){var n,a,o,i=!1;if(r.type==="data")n=e._fullData[r.traces!==null?r.traces[0]:0];else if(r.type==="layout")n=e._fullLayout;else return!1;return a=G0.nestedProperty(n,r.prop).get(),o=t[r.type]=t[r.type]||{},o.hasOwnProperty(r.prop)&&o[r.prop]!==a&&(i=!0),o[r.prop]=a,{changed:i,value:a}}ys.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var n=See.apiMethodRegistry[r],a=[e];Array.isArray(t)||(t=[]);for(var o=0;o<t.length;o++)a.push(t[o]);return n.apply(null,a).catch(function(i){return G0.warn("API call to Plotly."+r+" rejected.",i),Promise.reject(i)})};ys.computeAPICommandBindings=function(e,r,t){var n;switch(Array.isArray(t)||(t=[]),r){case"restyle":n=YT(e,t);break;case"relayout":n=GT(e,t);break;case"update":n=YT(e,[t[0],t[2]]).concat(GT(e,[t[1]]));break;case"animate":n=Cee(e,t);break;default:n=[]}return n};function Cee(e,r){return Array.isArray(r[0])&&r[0].length===1&&["string","number"].indexOf(typeof r[0][0])!==-1?[{type:"layout",prop:"_currentFrame",value:r[0][0].toString()}]:[]}function GT(e,r){var t=[],n=r[0],a={};if(typeof n=="string")a[n]=r[1];else if(G0.isPlainObject(n))a=n;else return t;return fy(a,function(o,i,l){t.push({type:"layout",prop:o,value:l})},"",0),t}function YT(e,r){var t,n,a,o,i=[];if(n=r[0],a=r[1],t=r[2],o={},typeof n=="string")o[n]=a;else if(G0.isPlainObject(n))o=n,t===void 0&&(t=a);else return i;return t===void 0&&(t=null),fy(o,function(l,u,s){var f,c;if(Array.isArray(s)){c=s.slice();var p=Math.min(c.length,e.data.length);t&&(p=Math.min(p,t.length)),f=[];for(var x=0;x<p;x++)f[x]=t?t[x]:x}else c=s,f=t?t.slice():null;if(f===null)Array.isArray(c)&&(c=c[0]);else if(Array.isArray(f)){if(!Array.isArray(c)){var g=c;c=[];for(var w=0;w<f.length;w++)c[w]=g}c.length=Math.min(f.length,c.length)}i.push({type:"data",prop:l,traces:f,value:c})},"",0),i}function fy(e,r,t,n){Object.keys(e).forEach(function(a){var o=e[a];if(a[0]!=="_"){var i=t+(n>0?".":"")+a;G0.isPlainObject(o)?fy(o,r,i,n+1):r(i,a,o)}})}});var bn=xe((Ime,tA)=>{"use strict";var Pme=nt(),Eee=p0().timeFormatLocale,Lee=Xp().formatLocale,Hf=it(),Dee=Wp(),Ree=lf().version,ot=Cr(),Fee=H0(),Pee=wt(),yr=rr(),Iee=Xr(),WT=pn().BADNUM,_a=fn(),zee=vl().clearOutline,Nee=Kh(),cy=Df(),qee=ay(),Bee=Uf().getModuleCalcData,ZT=yr.relinkPrivateKeys,ms=yr._,sr=tA.exports={};yr.extendFlat(sr,ot);sr.attributes=qn();sr.attributes.type.values=sr.allTypes;sr.fontAttrs=Nn();sr.layoutAttributes=R0();var r1=XT();sr.executeAPICommand=r1.executeAPICommand;sr.computeAPICommandBindings=r1.computeAPICommandBindings;sr.manageCommandObserver=r1.manageCommandObserver;sr.hasSimpleAPICommandBindings=r1.hasSimpleAPICommandBindings;sr.redrawText=function(e){return e=yr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ot.getComponentMethod("annotations","draw")(e),ot.getComponentMethod("legend","draw")(e),ot.getComponentMethod("colorbar","draw")(e),r(sr.previousPromises(e)))},300)})};sr.resize=function(e){e=yr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||yr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||yr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,ot.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};sr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};sr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var n=sr.graphJson(e,!1,"object");n.version=Ree;var a=new URL(r);a.searchParams.set("origin",window.location.origin);var o=window.open(a.href,"_blank");if(!o){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var i=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(o.postMessage({type:"chart",chart:n},t),window.removeEventListener("message",i),e.emit("plotly_afterexport"))};return window.addEventListener("message",i),!1};var Oee=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Uee=["year","month","dayMonth","dayMonthYear"];sr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},o=e.layout||{},i=e._fullData||[],l=e._fullData=[],u=e.data||[],s=e.calcdata||[],f=e._context||{},c;e._transitionData||sr.createTransitionData(e),a._dfltTitle={plot:ms(e,"Click to enter Plot title"),subtitle:ms(e,"Click to enter Plot subtitle"),x:ms(e,"Click to enter X axis title"),y:ms(e,"Click to enter Y axis title"),colorbar:ms(e,"Click to enter Colorscale title"),annotation:ms(e,"new text")},a._traceWord=ms(e,"trace");var p=JT(e,Oee);if(n._initialAutoSizeIsDone){var x=n.width,g=n.height;sr.supplyLayoutGlobalDefaults(o,a,p),o.width||(a.width=x),o.height||(a.height=g),sr.sanitizeMargins(a)}else{sr.supplyLayoutGlobalDefaults(o,a,p);var w=!o.width||!o.height,M=a.autosize,m=f.autosizable,k=w&&(M||m);k?sr.plotAutoSize(e,o,a):w&&sr.sanitizeMargins(a),!M&&w&&(o.width=a.width,o.height=a.height)}a._d3locale=Gee(p,a.separators),a._extraFormat=JT(e,Uee),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=Vee(),b=a._splomAxes={x:{},y:{}},T=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=Hee(i,u),sr.supplyDataDefaults(u,l,o,a);var h=Object.keys(b.x),_=Object.keys(b.y);if(h.length>1&&_.length>1){for(ot.getComponentMethod("grid","sizeDefaults")(o,a),c=0;c<h.length;c++)yr.pushUnique(S.xaxis,h[c]);for(c=0;c<_.length;c++)yr.pushUnique(S.yaxis,_[c]);for(var y in T)yr.pushUnique(S.cartesian,y)}if(a._has=sr._hasPlotType.bind(a),i.length===l.length)for(c=0;c<l.length;c++)ZT(l[c],i[c]);sr.supplyLayoutModuleDefaults(o,a,l,e._transitionData);var v=a._visibleModules,A=[];for(c=0;c<v.length;c++){var d=v[c].crossTraceDefaults;d&&yr.pushUnique(A,d)}for(c=0;c<A.length;c++)A[c](l,a);a._hasOnlyLargeSploms=a._basePlotModules.length===1&&a._basePlotModules[0].name==="splom"&&h.length>15&&_.length>15&&a.shapes.length===0&&a.images.length===0,sr.linkSubplots(l,a,i,n),sr.cleanPlot(l,a,i,n);var D=!!(n._has&&n._has("cartesian")),E=!!(a._has&&a._has("cartesian")),R=D,z=E;R&&!z?n._bgLayer.remove():z&&!R&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&zee({_fullLayout:n}),Yee(l,a),ZT(a,n),ot.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var I=a._tracePreGUI,P={},L;for(L in I)P[L]="old";for(c=0;c<l.length;c++)L=l[c].uid,P[L]||(I[L]={}),P[L]="new";for(L in P)P[L]==="old"&&delete I[L];QT(a),ot.getComponentMethod("rangeslider","makeData")(a),!t&&s.length===l.length&&sr.supplyDefaultsUpdateCalc(s,l)};sr.supplyDefaultsUpdateCalc=function(e,r){for(var t=0;t<r.length;t++){var n=r[t],a=(e[t]||[])[0];a&&a.trace&&(a.trace=n)}};function Hee(e,r){var t=r.length,n,a=e.length,o=new Array(t),i={};function l(f,c){o[c]=f,i[f]=1}function u(f,c){if(f&&typeof f=="string"&&!i[f])return l(f,c),!0}for(n=0;n<t;n++){var s=r[n].uid;typeof s=="number"&&(s=String(s)),!u(s,n)&&(n<a&&u(e[n].uid,n)||l(yr.randstr(i),n))}return o}function Vee(){var e=ot.collectableSubplotTypes,r={},t,n;if(!e){e=[];var a=ot.subplotsRegistry;for(var o in a){var i=a[o],l=i.attr;if(l&&(e.push(o),Array.isArray(l)))for(n=0;n<l.length;n++)yr.pushUnique(e,l[n])}}for(t=0;t<e.length;t++)r[e[t]]=[];return r}function JT(e,r){var t=e._context.locale;t||(t="en-US");var n=!1,a={};function o(c){for(var p=!0,x=0;x<r.length;x++){var g=r[x];a[g]||(c[g]?a[g]=c[g]:p=!1)}p&&(n=!0)}for(var i=0;i<2;i++){for(var l=e._context.locales,u=0;u<2;u++){var s=(l[t]||{}).format;if(s&&(o(s),n))break;l=ot.localeRegistry}var f=t.split("-")[0];if(n||f===t)break;t=f}return n||o(ot.localeRegistry.en.format),a}function Gee(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=Lee(e).format(yr.adjustFormat(t))}catch(n){return yr.warnBadFormat(t),yr.noFormat}return t},timeFormat:Eee(e).utcFormat}}function Yee(e,r){var t,n=[];r.meta&&(t=r._meta={meta:r.meta,layout:{meta:r.meta}});for(var a=0;a<e.length;a++){var o=e[a];o.meta?n[o.index]=o._meta={meta:o.meta}:r.meta&&(o._meta={meta:r.meta}),r.meta&&(o._meta.layout={meta:r.meta})}n.length&&(t||(t=r._meta={}),t.data=n)}sr.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])};sr._hasPlotType=function(e){var r,t=this._basePlotModules||[];for(r=0;r<t.length;r++)if(t[r].name===e)return!0;var n=this._modules||[];for(r=0;r<n.length;r++){var a=n[r].name;if(a===e)return!0;var o=ot.modules[a];if(o&&o.categories[e])return!0}return!1};sr.cleanPlot=function(e,r,t,n){var a,o,i=n._basePlotModules||[];for(a=0;a<i.length;a++){var l=i[a];l.clean&&l.clean(e,r,t,n)}var u=n._has&&n._has("gl"),s=r._has&&r._has("gl");u&&!s&&n._glcontainer!==void 0&&(n._glcontainer.selectAll(".gl-canvas").remove(),n._glcontainer.selectAll(".no-webgl").remove(),n._glcanvas=null);var f=!!n._infolayer;e:for(a=0;a<t.length;a++){var c=t[a],p=c.uid;for(o=0;o<e.length;o++){var x=e[o];if(p===x.uid)continue e}f&&n._infolayer.select(".cb"+p).remove()}};sr.linkSubplots=function(e,r,t,n){var a,o,i=n._plots||{},l=r._plots={},u=r._subplots,s={_fullData:e,_fullLayout:r},f=u.cartesian||[];for(a=0;a<f.length;a++){var c=f[a],p=i[c],x=_a.getFromId(s,c,"x"),g=_a.getFromId(s,c,"y"),w;for(p?w=l[c]=p:(w=l[c]={},w.id=c),x._counterAxes.push(g._id),g._counterAxes.push(x._id),x._subplotsWith.push(c),g._subplotsWith.push(c),w.xaxis=x,w.yaxis=g,w._hasClipOnAxisFalse=!1,o=0;o<e.length;o++){var M=e[o];if(M.xaxis===w.xaxis._id&&M.yaxis===w.yaxis._id&&M.cliponaxis===!1){w._hasClipOnAxisFalse=!0;break}}}var m=_a.list(s,null,!0),k;for(a=0;a<m.length;a++){k=m[a];var S=null;k.overlaying&&(S=_a.getFromId(s,k.overlaying),S&&S.overlaying&&(k.overlaying=!1,S=null)),k._mainAxis=S||k,S&&(k.domain=S.domain.slice()),k._anchorAxis=k.anchor==="free"?null:_a.getFromId(s,k.anchor)}for(a=0;a<m.length;a++)if(k=m[a],k._counterAxes.sort(_a.idSort),k._subplotsWith.sort(yr.subplotSort),k._mainSubplot=Xee(k,r),k._counterAxes.length&&(k.spikemode&&k.spikemode.indexOf("across")!==-1||k.automargin&&k.mirror&&k.anchor!=="free"||ot.getComponentMethod("rangeslider","isVisible")(k))){var b=1,T=0;for(o=0;o<k._counterAxes.length;o++){var h=_a.getFromId(s,k._counterAxes[o]);b=Math.min(b,h.domain[0]),T=Math.max(T,h.domain[1])}b<T&&(k._counterDomainMin=b,k._counterDomainMax=T)}};function Xee(e,r){var t={_fullLayout:r},n=e._id.charAt(0)==="x",a=e._mainAxis._anchorAxis,o="",i="",l="";if(a&&(l=a._mainAxis._id,o=n?e._id+l:l+e._id),!o||!r._plots[o]){o="";for(var u=e._counterAxes,s=0;s<u.length;s++){var f=u[s],c=n?e._id+f:f+e._id;i||(i=c);var p=_a.getFromId(t,f);if(l&&p.overlaying===l){o=c;break}}}return o||i}sr.supplyDataDefaults=function(e,r,t,n){var a=n._modules,o=n._visibleModules,i=n._basePlotModules,l=0,u=0,s,f,c;function p(k){r.push(k);var S=k._module;S&&(yr.pushUnique(a,S),k.visible===!0&&yr.pushUnique(o,S),yr.pushUnique(i,k._module.basePlotModule),l++,k._input.visible!==!1&&u++)}var x={},g=[],w=(t.template||{}).data||{},M=Pee.traceTemplater(w);for(s=0;s<e.length;s++)c=e[s],f=M.newTrace(c),f.uid=n._traceUids[s],sr.supplyTraceDefaults(c,f,u,n,s),f.index=s,f._input=c,p(f),ot.traceIs(f,"carpetAxis")&&(x[f.carpet]=f),ot.traceIs(f,"carpetDependent")&&g.push(s);for(s=0;s<g.length;s++)if(f=r[g[s]],!!f.visible){var m=x[f.carpet];if(f._carpet=m,!m||!m.visible){f.visible=!1;continue}f.xaxis=m.xaxis,f.yaxis=m.yaxis}};sr.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function n(a,o){return yr.coerce(e||{},t,cy,a,o)}if(n("mode"),n("direction"),n("fromcurrent"),Array.isArray(e.frame))for(t.frame=[],r=0;r<e.frame.length;r++)t.frame[r]=sr.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=sr.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=sr.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=sr.supplyAnimationTransitionDefaults(e.transition||{});return t};sr.supplyAnimationFrameDefaults=function(e){var r={};function t(n,a){return yr.coerce(e||{},r,cy.frame,n,a)}return t("duration"),t("redraw"),r};sr.supplyAnimationTransitionDefaults=function(e){var r={};function t(n,a){return yr.coerce(e||{},r,cy.transition,n,a)}return t("duration"),t("easing"),r};sr.supplyFrameDefaults=function(e){var r={};function t(n,a){return yr.coerce(e,r,qee,n,a)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};sr.supplyTraceDefaults=function(e,r,t,n,a){var o=n.colorway||Iee.defaults,i=o[t%o.length],l;function u(S,b){return yr.coerce(e,r,sr.attributes,S,b)}var s=u("visible");u("type"),u("name",n._traceWord+" "+a),u("uirevision",n.uirevision);var f=sr.getModule(r);if(r._module=f,f){var c=f.basePlotModule,p=c.attr,x=c.attributes;if(p&&x){var g=n._subplots,w="";if(Array.isArray(p))for(l=0;l<p.length;l++){var M=p[l],m=yr.coerce(e,r,x,M);g[M]&&yr.pushUnique(g[M],m),w+=m}else w=yr.coerce(e,r,x,p);g[c.name]&&yr.pushUnique(g[c.name],w)}}if(s&&(u("customdata"),u("ids"),u("meta"),ot.traceIs(r,"showLegend")?(yr.coerce(e,r,f.attributes.showlegend?f.attributes:sr.attributes,"showlegend"),yr.coerce(e,r,f.attributes.legend?f.attributes:sr.attributes,"legend"),u("legendwidth"),u("legendgroup"),u("legendgrouptitle.text"),yr.coerce(e,r,f.attributes.legend?f.attributes:sr.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,i,n),ot.traceIs(r,"noOpacity")||u("opacity"),ot.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),ot.traceIs(r,"noHover")||(r.hovertemplate||yr.coerceHoverinfo(e,r,n),r.type!=="parcats"&&ot.getComponentMethod("fx","supplyDefaults")(e,r,i,n)),f&&f.selectPoints)){var k=u("selectedpoints");yr.isTypedArray(k)&&(r.selectedpoints=Array.from(k))}return r};sr.supplyLayoutGlobalDefaults=function(e,r,t){function n(c,p){return yr.coerce(e,r,sr.layoutAttributes,c,p)}var a=e.template;yr.isPlainObject(a)&&(r.template=a,r._template=a.layout,r._dataTemplate=a.data),n("autotypenumbers");var o=yr.coerceFont(n,"font"),i=o.size;yr.coerceFont(n,"title.font",o,{overrideDflt:{size:Math.round(i*1.4)}}),n("title.text",r._dfltTitle.plot),n("title.xref");var l=n("title.yref");n("title.pad.t"),n("title.pad.r"),n("title.pad.b"),n("title.pad.l");var u=n("title.automargin");n("title.x"),n("title.xanchor"),n("title.y"),n("title.yanchor"),n("title.subtitle.text",r._dfltTitle.subtitle),yr.coerceFont(n,"title.subtitle.font",o,{overrideDflt:{size:Math.round(r.title.font.size*.7)}}),u&&(l==="paper"&&(r.title.y!==0&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y===0?"top":"bottom")),l==="container"&&(r.title.y==="auto"&&(r.title.y=1),r.title.yanchor==="auto"&&(r.title.yanchor=r.title.y<.5?"bottom":"top")));var s=n("uniformtext.mode");s&&n("uniformtext.minsize"),n("autosize",!(e.width&&e.height)),n("width"),n("height"),n("minreducedwidth"),n("minreducedheight"),n("margin.l"),n("margin.r"),n("margin.t"),n("margin.b"),n("margin.pad"),n("margin.autoexpand"),e.width&&e.height&&sr.sanitizeMargins(r),ot.getComponentMethod("grid","sizeDefaults")(e,r),n("paper_bgcolor"),n("separators",t.decimal+t.thousands),n("colorway"),n("datarevision");var f=n("uirevision");n("editrevision",f),n("selectionrevision",f),ot.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),ot.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,n),ot.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,n),n("meta"),yr.isPlainObject(e.transition)&&(n("transition.duration"),n("transition.easing"),n("transition.ordering")),ot.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),ot.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,n),yr.coerce(e,r,Nee,"scattermode")};function e1(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}sr.plotAutoSize=function(r,t,n){var a=r._context||{},o=a.frameMargins,i,l,u=yr.isPlotDiv(r);if(u&&r.emit("plotly_autosize"),a.fillFrame)i=window.innerWidth,l=window.innerHeight,document.body.style.overflow="hidden";else{var s=u?window.getComputedStyle(r):{};if(i=e1(s.width)||e1(s.maxWidth)||n.width,l=e1(s.height)||e1(s.maxHeight)||n.height,Hf(o)&&o>0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var c=sr.layoutAttributes.width.min,p=sr.layoutAttributes.height.min;i<c&&(i=c),l<p&&(l=p);var x=!t.width&&Math.abs(n.width-i)>1,g=!t.height&&Math.abs(n.height-l)>1;(g||x)&&(x&&(n.width=i),g&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),sr.sanitizeMargins(n)};sr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=ot.componentsRegistry,o=r._basePlotModules,i,l,u,s=ot.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(ot.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(yr.subplotSort);for(l=0;l<o.length;l++)u=o[l],u.supplyLayoutDefaults&&u.supplyLayoutDefaults(e,r,t);var c=r._modules;for(l=0;l<c.length;l++)u=c[l],u.supplyLayoutDefaults&&u.supplyLayoutDefaults(e,r,t);for(i in a)u=a[i],u.supplyLayoutDefaults&&u.supplyLayoutDefaults(e,r,t)};sr.purge=function(e){var r=e._fullLayout||{};r._glcontainer!==void 0&&(r._glcontainer.selectAll(".gl-canvas").remove(),r._glcontainer.remove(),r._glcanvas=null),r._modeBar&&r._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),yr.clearThrottle(),yr.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()};sr.style=function(e){var r=e._fullLayout._visibleModules,t=[],n;for(n=0;n<r.length;n++){var a=r[n];a.style&&yr.pushUnique(t,a.style)}for(n=0;n<t.length;n++)t[n](e)};sr.sanitizeMargins=function(e){if(!(!e||!e.margin)){var r=e.width,t=e.height,n=e.margin,a=r-(n.l+n.r),o=t-(n.t+n.b),i;a<0&&(i=(r-1)/(n.l+n.r),n.l=Math.floor(i*n.l),n.r=Math.floor(i*n.r)),o<0&&(i=(t-1)/(n.t+n.b),n.t=Math.floor(i*n.t),n.b=Math.floor(i*n.b))}};sr.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};sr.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function QT(e){var r=e.margin;if(!e._size){var t=e._size={l:Math.round(r.l),r:Math.round(r.r),t:Math.round(r.t),b:Math.round(r.b),p:Math.round(r.pad)};t.w=Math.round(e.width)-t.l-t.r,t.h=Math.round(e.height)-t.t-t.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={}),e._reservedMargin||(e._reservedMargin={})}var jT=2,eA=2;sr.autoMargin=function(e,r,t){var n=e._fullLayout,a=n.width,o=n.height,i=n.margin,l=n.minreducedwidth,u=n.minreducedheight,s=yr.constrain(a-i.l-i.r,jT,l),f=yr.constrain(o-i.t-i.b,eA,u),c=Math.max(0,a-s),p=Math.max(0,o-f),x=n._pushmargin,g=n._pushmarginIds;if(i.autoexpand!==!1){if(!t)delete x[r],delete g[r];else{var w=t.pad;if(w===void 0&&(w=Math.min(12,i.l,i.r,i.t,i.b)),c){var M=(t.l+t.r)/c;M>1&&(t.l/=M,t.r/=M)}if(p){var m=(t.t+t.b)/p;m>1&&(t.t/=m,t.b/=m)}var k=t.xl!==void 0?t.xl:t.x,S=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;x[r]={l:{val:k,size:t.l+w},r:{val:S,size:t.r+w},b:{val:T,size:t.b+w},t:{val:b,size:t.t+w}},g[r]=1}if(!n._replotting)return sr.doAutoMargin(e)}};function Wee(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=_a.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}sr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),QT(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=yr.extendFlat({},a),u=o.l,s=o.r,f=o.t,c=o.b,p=r._pushmargin,x=r._pushmarginIds,g=r.minreducedwidth,w=r.minreducedheight;if(o.autoexpand!==!1){for(var M in p)x[M]||delete p[M];var m=e._fullLayout._reservedMargin;for(var k in m)for(var S in m[k]){var b=m[k][S];i[S]=Math.max(i[S],b)}p.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:c}};for(var T in i){var h=0;for(var _ in p)_!=="base"&&Hf(p[_][T].size)&&(h=p[_][T].size>h?p[_][T].size:h);var y=Math.max(0,o[T]-h);i[T]=Math.max(0,i[T]-y)}for(var v in p){var A=p[v].l||{},d=p[v].b||{},D=A.val,E=A.size,R=d.val,z=d.size,I=t-i.r-i.l,P=n-i.t-i.b;for(var L in p){if(Hf(E)&&p[L].r){var F=p[L].r.val,B=p[L].r.size;if(F>D){var O=(E*F+(B-I)*D)/(F-D),V=(B*(1-D)+(E-I)*(1-F))/(F-D);O+V>u+s&&(u=O,s=V)}}if(Hf(z)&&p[L].t){var K=p[L].t.val,j=p[L].t.size;if(K>R){var G=(z*K+(j-P)*R)/(K-R),q=(j*(1-R)+(z-P)*(1-K))/(K-R);G+q>c+f&&(c=G,f=q)}}}}}var J=yr.constrain(t-o.l-o.r,jT,g),te=yr.constrain(n-o.t-o.b,eA,w),Z=Math.max(0,t-J),ie=Math.max(0,n-te);if(Z){var Q=(u+s)/Z;Q>1&&(u/=Q,s/=Q)}if(ie){var re=(c+f)/ie;re>1&&(c/=re,f/=re)}if(a.l=Math.round(u)+i.l,a.r=Math.round(s)+i.r,a.t=Math.round(f)+i.t,a.b=Math.round(c)+i.b,a.p=Math.round(o.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(sr.didMarginChange(l,a)||Wee(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ue=3*(1+Object.keys(x).length);if(r._redrawFromAutoMarginCount<ue)return ot.call("_doPlot",e);r._size=l,yr.warn("Too many auto-margin redraws.")}Zee(e)};function Zee(e){var r=_a.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var n=0;n<r.length;n++){var a=r[n][t];a&&a()}})}var $T=["l","r","t","b","p","w","h"];sr.didMarginChange=function(e,r){for(var t=0;t<$T.length;t++){var n=$T[t],a=e[n],o=r[n];if(!Hf(a)||Math.abs(o-a)>1)return!0}return!1};sr.graphJson=function(e,r=!1,t="json",n=!1,a=!1){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&sr.supplyDefaults(e);var o=n?e._fullData:e.data,i=n?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(c,p){if(typeof c=="function")return p?"_function_":null;if(yr.isPlainObject(c)){var x={};return Object.keys(c).sort().forEach(function(m){if(["_","["].indexOf(m.charAt(0))===-1){if(typeof c[m]=="function"){p&&(x[m]="_function");return}x[m]=u(c[m],p)}}),x}var g=Array.isArray(c),w=yr.isTypedArray(c);if((g||w)&&c.dtype&&c.shape){var M=c.bdata;return u({dtype:c.dtype,shape:c.shape,bdata:yr.isArrayBuffer(M)?Dee.encode(M):M},p)}return g?c.map(function(m){return u(m,p)}):w?yr.simpleMap(c,yr.identity):yr.isJSDate(c)?yr.ms2DateTimeLocal(+c):c}var s={data:(o||[]).map(function(c){var p=u(c);return r&&delete p.fit,p})};if(!r&&(s.layout=u(i),n)){var f=i._size;s.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(s.frames=u(l)),a&&(s.config=u(e._context,!0)),t==="object"?s:JSON.stringify(s)};sr.modifyFrames=function(e,r){var t,n,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(t=0;t<r.length;t++)switch(n=r[t],n.type){case"replace":a=n.value;var l=(o[n.index]||{}).name,u=a.name;o[n.index]=i[u]=a,u!==l&&(delete i[l],i[u]=a);break;case"insert":a=n.value,i[a.name]=a,o.splice(n.index,0,a);break;case"delete":a=o[n.index],delete i[a.name],o.splice(n.index,1);break}return Promise.resolve()};sr.computeFrame=function(e,r){var t=e._transitionData._frameHash,n,a,o,i;if(!r)throw new Error("computeFrame must be given a string frame name");var l=t[r.toString()];if(!l)return!1;for(var u=[l],s=[l.name];l.baseframe&&(l=t[l.baseframe.toString()])&&s.indexOf(l.name)===-1;)u.push(l),s.push(l.name);for(var f={};l=u.pop();)if(l.layout&&(f.layout=sr.extendLayout(f.layout,l.layout)),l.data){if(f.data||(f.data=[]),a=l.traces,!a)for(a=[],n=0;n<l.data.length;n++)a[n]=n;for(f.traces||(f.traces=[]),n=0;n<l.data.length;n++)o=a[n],o!=null&&(i=f.traces.indexOf(o),i===-1&&(i=f.data.length,f.traces[i]=o),f.data[i]=sr.extendTrace(f.data[i],l.data[n]))}return f};sr.recomputeFrameHash=function(e){for(var r=e._transitionData._frameHash={},t=e._transitionData._frames,n=0;n<t.length;n++){var a=t[n];a&&a.name&&(r[a.name]=a)}};sr.extendObjectWithContainers=function(e,r,t){var n,a,o,i,l,u,s,f,c=yr.extendDeepNoArrays({},r||{}),p=yr.expandObjectPaths(c),x={};if(t&&t.length)for(o=0;o<t.length;o++)n=yr.nestedProperty(p,t[o]),a=n.get(),a===void 0?yr.nestedProperty(x,t[o]).set(null):(n.set(null),yr.nestedProperty(x,t[o]).set(a));if(e=yr.extendDeepNoArrays(e||{},p),t&&t.length){for(o=0;o<t.length;o++)if(l=yr.nestedProperty(x,t[o]),s=l.get(),!!s){for(u=yr.nestedProperty(e,t[o]),f=u.get(),Array.isArray(f)||(f=[],u.set(f)),i=0;i<s.length;i++){var g=s[i];g===null?f[i]=null:f[i]=sr.extendObjectWithContainers(f[i],g)}u.set(f)}}return e};sr.dataArrayContainers=["dimensions"];sr.layoutArrayContainers=ot.layoutArrayContainers;sr.extendTrace=function(e,r){return sr.extendObjectWithContainers(e,r,sr.dataArrayContainers)};sr.extendLayout=function(e,r){return sr.extendObjectWithContainers(e,r,sr.layoutArrayContainers)};sr.transition=function(e,r,t,n,a,o){var i={redraw:a.redraw},l={},u=[];return i.prepareFn=function(){for(var s=Array.isArray(r)?r.length:0,f=n.slice(0,s),c=0;c<f.length;c++){var p=f[c],x=e._fullData[p],g=x._module;if(g){if(g.animatable){var w=g.basePlotModule.name;l[w]||(l[w]=[]),l[w].push(p)}e.data[f[c]]=sr.extendTrace(e.data[f[c]],r[c])}}var M=yr.expandObjectPaths(yr.extendDeepNoArrays({},t)),m=/^[xy]axis[0-9]*$/;for(var k in M)m.test(k)&&delete M[k].range;sr.extendLayout(e.layout,M),delete e.calcdata,sr.supplyDefaults(e),sr.doCalcdata(e);var S=yr.expandObjectPaths(t);if(S){var b=e._fullLayout._plots;for(var T in b){var h=b[T],_=h.xaxis,y=h.yaxis,v=_.range.slice(),A=y.range.slice(),d=null,D=null,E=null,R=null;Array.isArray(S[_._name+".range"])?d=S[_._name+".range"].slice():Array.isArray((S[_._name]||{}).range)&&(d=S[_._name].range.slice()),Array.isArray(S[y._name+".range"])?D=S[y._name+".range"].slice():Array.isArray((S[y._name]||{}).range)&&(D=S[y._name].range.slice()),v&&d&&(_.r2l(v[0])!==_.r2l(d[0])||_.r2l(v[1])!==_.r2l(d[1]))&&(E={xr0:v,xr1:d}),A&&D&&(y.r2l(A[0])!==y.r2l(D[0])||y.r2l(A[1])!==y.r2l(D[1]))&&(R={yr0:A,yr1:D}),(E||R)&&u.push(yr.extendFlat({plotinfo:h},E,R))}}return Promise.resolve()},i.runFn=function(s){var f,c=e._fullLayout._basePlotModules,p=u.length,x;if(t)for(x=0;x<c.length;x++)c[x].transitionAxes&&c[x].transitionAxes(e,u,o,s);p?(f=yr.extendFlat({},o),f.duration=0,delete l.cartesian):f=o;for(var g in l){var w=l[g],M=e._fullData[w[0]]._module;M.basePlotModule.plot(e,w,f,s)}},rA(e,o,i)};sr.transitionFromReact=function(e,r,t,n){var a=e._fullLayout,o=a.transition,i={},l=[];return i.prepareFn=function(){var u=a._plots;i.redraw=!1,r.anim==="some"&&(i.redraw=!0),t.anim==="some"&&(i.redraw=!0);for(var s in u){var f=u[s],c=f.xaxis,p=f.yaxis,x=n[c._name].range.slice(),g=n[p._name].range.slice(),w=c.range.slice(),M=p.range.slice();c.setScale(),p.setScale();var m=null,k=null;(c.r2l(x[0])!==c.r2l(w[0])||c.r2l(x[1])!==c.r2l(w[1]))&&(m={xr0:x,xr1:w}),(p.r2l(g[0])!==p.r2l(M[0])||p.r2l(g[1])!==p.r2l(M[1]))&&(k={yr0:g,yr1:M}),(m||k)&&l.push(yr.extendFlat({plotinfo:f},m,k))}return Promise.resolve()},i.runFn=function(u){for(var s=e._fullData,f=e._fullLayout,c=f._basePlotModules,p,x,g,w=[],M=0;M<s.length;M++)w.push(M);function m(){if(e._fullLayout)for(var S=0;S<c.length;S++)c[S].transitionAxes&&c[S].transitionAxes(e,l,p,u)}function k(){if(e._fullLayout)for(var S=0;S<c.length;S++)c[S].plot(e,g,x,u)}l.length&&r.anim?o.ordering==="traces first"?(p=yr.extendFlat({},o,{duration:0}),g=w,x=o,setTimeout(m,o.duration),k()):(p=o,g=null,x=yr.extendFlat({},o,{duration:0}),setTimeout(k,p.duration),m()):l.length?(p=o,m()):r.anim&&(g=w,x=o,k())},rA(e,o,i)};function rA(e,r,t){var n=!1;function a(c){var p=Promise.resolve();if(!c)return p;for(;c.length;)p=p.then(c.shift());return p}function o(c){if(c)for(;c.length;)c.shift()}function i(){return e.emit("plotly_transitioning",[]),new Promise(function(c){e._transitioning=!0,r.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return ot.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var p=0,x=0;function g(){return p++,function(){x++,!n&&x===p&&l(c)}}t.runFn(g),setTimeout(g())})}function l(c){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return ot.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function u(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var s=[sr.previousPromises,u,t.prepareFn,sr.rehover,sr.reselect,i],f=yr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}sr.doCalcdata=function(e,r){var t=_a.list(e),n=e._fullData,a=e._fullLayout,o,i,l,u=new Array(n.length),s=(e.calcdata||[]).slice();for(e.calcdata=u,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l<n.length;l++)if(Array.isArray(r)&&r.indexOf(l)===-1){u[l]=s[l];continue}for(l=0;l<n.length;l++)o=n[l],o._arrayAttrs=Fee.findArrayAttributes(o),o._extremes={};var f=a._subplots.polar||[];for(l=0;l<f.length;l++)t.push(a[f[l]].radialaxis,a[f[l]].angularaxis);for(var c in a._colorAxes){var p=a[c];p.cauto!==!1&&(delete p.cmin,delete p.cmax)}function x(w,M){if(o=n[w],i=o._module,!!i.isContainer===M){var m=[];o.visible===!0&&o._length!==0&&i&&i.calc&&(m=i.calc(e,o)),(!Array.isArray(m)||!m[0])&&(m=[{x:WT,y:WT}]),m[0].t||(m[0].t={}),m[0].trace=o,u[w]=m}}for(Kee(t,n,a),l=0;l<n.length;l++)x(l,!0);for(l=0;l<n.length;l++)x(l,!1);KT(e);var g=$ee(t,e);if(g.length){for(a._numBoxes=0,a._numViolins=0,l=0;l<g.length;l++)x(g[l],!0);for(l=0;l<g.length;l++)x(g[l],!1);KT(e)}ot.getComponentMethod("fx","calc")(e),ot.getComponentMethod("errorbars","calc")(e)};var Jee=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function $ee(e,r){var t=[],n,a,o,i,l;function u(L,F,B){var O=F._id.charAt(0);if(L==="histogram2dcontour"){var V=F._counterAxes[0],K=_a.getFromId(r,V),j=O==="x"||V==="x"&&K.type==="category",G=O==="y"||V==="y"&&K.type==="category";return function(q,J){return q===0||J===0||j&&q===B[J].length-1||G&&J===B.length-1?-1:(O==="y"?J:q)-1}}else return function(q,J){return O==="y"?J:q}}var s={min:function(L){return yr.aggNums(Math.min,null,L)},max:function(L){return yr.aggNums(Math.max,null,L)},sum:function(L){return yr.aggNums(function(F,B){return F+B},null,L)},total:function(L){return yr.aggNums(function(F,B){return F+B},null,L)},mean:function(L){return yr.mean(L)},"geometric mean":function(L){return yr.geometricMean(L)},median:function(L){return yr.median(L)}};function f(L,F){return L[1]-F[1]}function c(L,F){return F[1]-L[1]}for(n=0;n<e.length;n++){var p=e[n];if(p.type==="category"){var x=p.categoryorder.match(Jee);if(x){var g=x[1],w=x[2],M=p._id.charAt(0),m=M==="x",k=[];for(a=0;a<p._categories.length;a++)k.push([p._categories[a],[]]);for(a=0;a<p._traceIndices.length;a++){var S=p._traceIndices[a],b=r._fullData[S];if(b.visible===!0){var T=b.type;ot.traceIs(b,"histogram")&&(delete b._xautoBinFinished,delete b._yautoBinFinished);var h=T==="splom",_=T==="scattergl",y=r.calcdata[S];for(o=0;o<y.length;o++){var v=y[o],A,d;if(h){var D=b._axesDim[p._id];if(!m){var E=b._diag[D][0];E&&(p=r._fullLayout[_a.id2name(E)])}var R=v.trace.dimensions[D].values;for(i=0;i<R.length;i++)for(A=p._categoriesMap[R[i]],l=0;l<v.trace.dimensions.length;l++)if(l!==D){var z=v.trace.dimensions[l];k[A][1].push(z.values[i])}}else if(_){for(i=0;i<v.t.x.length;i++)m?(A=v.t.x[i],d=v.t.y[i]):(A=v.t.y[i],d=v.t.x[i]),k[A][1].push(d);v.t&&v.t._scene&&delete v.t._scene.dirty}else if(v.hasOwnProperty("z")){d=v.z;var I=u(b.type,p,d);for(i=0;i<d.length;i++)for(l=0;l<d[i].length;l++)A=I(l,i),A+1&&k[A][1].push(d[i][l])}else{if(A=v.p,A===void 0&&(A=v[M]),isNaN(A)||A<0)continue;for(d=v.s,d===void 0&&(d=v.v),d===void 0&&(d=m?v.y:v.x),Array.isArray(d)||(d===void 0?d=[]:d=[d]),i=0;i<d.length;i++)k[A][1].push(d[i])}}}}p._categoriesValue=k;var P=[];for(a=0;a<k.length;a++)P.push([k[a][0],s[g](k[a][1])]);P.sort(w==="descending"?c:f),p._categoriesAggregatedValue=P,p._initialCategories=P.map(function(L){return L[0]}),t=t.concat(p.sortByInitialCategories())}}}return t}function Kee(e,r,t){var n={};function a(u){u.clearCalc(),u.type==="multicategory"&&u.setupMultiCategory(r),n[u._id]=1}yr.simpleMap(e,a);for(var o=t._axisMatchGroups||[],i=0;i<o.length;i++)for(var l in o[i])n[l]||a(t[_a.id2name(l)])}function KT(e){var r=e._fullLayout,t=r._visibleModules,n={},a,o,i;for(o=0;o<t.length;o++){var l=t[o],u=l.crossTraceCalc;if(u){var s=l.basePlotModule.name;n[s]?yr.pushUnique(n[s],u):n[s]=[u]}}for(i in n){var f=n[i],c=r._subplots[i];if(Array.isArray(c))for(a=0;a<c.length;a++){var p=c[a],x=i==="cartesian"?r._plots[p]:r[p];for(o=0;o<f.length;o++)f[o](e,x,p)}else for(o=0;o<f.length;o++)f[o](e)}}sr.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};sr.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};sr.reselect=function(e){var r=e._fullLayout,t=(e.layout||{}).selections,n=r._previousSelections;r._previousSelections=t;var a=r._reselect||JSON.stringify(t)!==JSON.stringify(n);ot.getComponentMethod("selections","reselect")(e,a)};sr.generalUpdatePerTraceModule=function(e,r,t,n){var a=r.traceHash,o={},i;for(i=0;i<t.length;i++){var l=t[i],u=l[0].trace;u.visible&&(o[u.type]=o[u.type]||[],o[u.type].push(l))}for(var s in a)if(!o[s]){var f=a[s][0],c=f[0].trace;c.visible=!1,o[s]=[f]}for(var p in o){var x=o[p],g=x[0][0].trace._module;g.plot(e,r,yr.filterVisible(x),n)}r.traceHash=o};sr.plotBasePlot=function(e,r,t,n,a){var o=ot.getModule(e),i=Bee(r.calcdata,o)[0];o.plot(r,i,n,a)};sr.cleanBasePlot=function(e,r,t,n,a){var o=a._has&&a._has(e),i=t._has&&t._has(e);o&&!i&&a["_"+e+"layer"].selectAll("g.trace").remove()}});var hl=xe(bs=>{"use strict";bs.xmlns="http://www.w3.org/2000/xmlns/";bs.svg="http://www.w3.org/2000/svg";bs.xlink="http://www.w3.org/1999/xlink";bs.svgAttrs={xmlns:bs.svg,"xmlns:xlink":bs.xlink}});var On=xe((Nme,nA)=>{"use strict";nA.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Un=xe(La=>{"use strict";var cn=nt(),Ja=rr(),Qee=Ja.strTranslate,vy=hl(),jee=On().LINE_SPACING,ere=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,uA=e=>e?e.match(ere):null;La.matchTex=uA;La.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&uA(n);a&&!are()&&(a=null);var o=cn.select(e.node().parentNode);if(o.empty())return;var i=e.attr("class")?e.attr("class").split(" ")[0]:"text";i+="-math",o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){o.empty()||(i=e.attr("class")+"-math",o.select("svg."+i).remove()),e.text("").style("white-space","pre");var u=dre(e.node(),n);u&&e.style("pointer-events","all"),La.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(u){e.style("display","none");var s=parseInt(e.node().style.fontSize,10),f={fontSize:s},c=e.attr("text-anchor");ire(a[2],f,function(p,x,g){o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove();var w=p&&p.select("svg");if(!w||!w.node()){l(),u();return}e.style("display","none");var M=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});M.node().appendChild(w.node()),x&&x.node()&&w.node().insertBefore(x.node().cloneNode(!0),w.node().firstChild);var m=g.width,k=g.height;w.attr({class:i,height:k,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var S=e.node().style.fill||"black",b=w.select("g");b.attr({fill:S,stroke:S});var T=b.node().getBoundingClientRect(),h=T.width,_=T.height;(h>m||_>k)&&(w.style("overflow","hidden"),T=w.node().getBoundingClientRect(),h=T.width,_=T.height);var y=+e.attr("x"),v=+e.attr("y"),A=s||e.node().getBoundingClientRect().height,d=-A/4;i[0]==="y"?M.attr({transform:"rotate("+[-90,y,v]+")"+Qee(-h/2,d-_/2)}):i[0]==="l"?v=d-_/2:i[0]==="a"&&i.indexOf("atitle")!==0?(y=0,v=d):(y=y-h*(c==="middle"?.5:c==="end"?1:0),v=v+d-_/2),w.attr({x:y,y:v}),t&&t.call(e,M),u(M)})})):l(),e};var rre=/(<|&lt;|&#60;)/g,tre=/(>|&gt;|&#62;)/g;function nre(e){return e.replace(rre,"\\lt ").replace(tre,"\\gt ")}var hy=null,fA=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,aA=!1,iA=!1;function are(){let e=fA();return e===3||e===4?!0:(e===null?aA||(aA=!0,Ja.warn("MathJax is not loaded. Math equations will not be rendered.")):iA||(iA=!0,Ja.warn("Unsupported MathJax version:",MathJax.version)),!1)}function ire(e,r,t){let n=fA();var a;let o=function(){if(!hy){let s=MathJax._.output.svg_ts.SVG,f=Ja.extendFlat({},MathJax.config.svg,{fontCache:"local"});n===4&&(f.linebreaks=Ja.extendFlat({},f.linebreaks,{inline:!1})),hy=MathJax._.mathjax.mathjax.document(document,Ja.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new s(f)}))}let l="math-output-"+Ja.randstr({},64);a=cn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let u=nre(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return hy.convert(u,{display:!1})}).then(function(s){a.node().appendChild(s)})},i=function(){let l=a.select(".MathJax"),u=!l.empty()&&a.select("svg").node();if(!u)Ja.log("There was an error in the tex syntax.",e),t();else{let s=u.getBoundingClientRect(),f=l.select("defs");t(l,f,s)}a.remove()};Promise.resolve().then(o).then(i).catch(l=>{Ja.log("MathJax typesetting failed.",e,l),a&&a.remove(),t()})}var cA={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"},ore={sub:"0.3em",sup:"-0.6em"},lre={sub:"-0.21em",sup:"0.42em"},oA="\u200B",lA=["http:","https:","mailto:","",void 0,":"],vA=La.NEWLINES=/(\r\n?|\n)/g,py=/(<[^<>]*>)/,gy=/<(\/?)([^ >]*)(\s+(.*))?>/i,sre=/<br(\s+.*)?>/i;La.BR_TAG_ALL=/<br(\s+.*)?>/gi;var hA=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,dA=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,pA=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,ure=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function xs(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&t1(n)}var fre=/(^|;)\s*color:/;La.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",o=a.length,i=e.split(py),l=[],u="",s=0,f=0;f<i.length;f++){var c=i[f],p=c.match(gy),x=p&&p[2].toLowerCase();if(x)n.indexOf(x)!==-1&&(l.push(c),u=x);else{var g=c.length;if(s+g<t)l.push(c),s+=g;else if(s<t){var w=t-s;u&&(u!=="br"||w<=o||g<=o)&&l.pop(),t>o?l.push(c.slice(0,Math.max(0,w-o))+a):l.push(c.slice(0,w));break}u=""}}return l.join("")};var cre={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},vre=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function t1(e){return e.replace(vre,function(r,t){var n;return t.charAt(0)==="#"?n=hre(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=cre[t],n||r})}La.convertEntities=t1;function hre(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function dre(e,r){r=r.replace(vA," ");var t=!1,n=[],a,o=-1;function i(){o++;var h=document.createElementNS(vy.svg,"tspan");cn.select(h).attr({class:"line",dy:o*jee+"em"}),e.appendChild(h),a=h;var _=n;if(n=[{node:h}],_.length>1)for(var y=1;y<_.length;y++)l(_[y])}function l(h){var _=h.type,y={},v;if(_==="a"){v="a";var A=h.target,d=h.href,D=h.popup;d&&(y={"xlink:xlink:show":A==="_blank"||A.charAt(0)!=="_"?"new":"replace",target:A,"xlink:xlink:href":d},D&&(y.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+D+'");return false;'))}else v="tspan";h.style&&(y.style=h.style);var E=document.createElementNS(vy.svg,v);if(_==="sup"||_==="sub"){u(a,oA),a.appendChild(E);var R=document.createElementNS(vy.svg,"tspan");u(R,oA),cn.select(R).attr("dy",lre[_]),y.dy=ore[_],a.appendChild(E),a.appendChild(R)}else a.appendChild(E);cn.select(E).attr(y),a=h.node=E,n.push(h)}function u(h,_){h.appendChild(document.createTextNode(_))}function s(h){if(n.length===1){Ja.log("Ignoring unexpected end tag </"+h+">.",r);return}var _=n.pop();h!==_.type&&Ja.log("Start tag <"+_.type+"> doesnt match end tag <"+h+">. Pretending it did match.",r),a=n[n.length-1].node}var f=sre.test(r);f?i():(a=e,n=[{node:e}]);for(var c=r.split(py),p=0;p<c.length;p++){var x=c[p],g=x.match(gy),w=g&&g[2].toLowerCase(),M=cA[w];if(w==="br")i();else if(M===void 0)u(a,t1(x));else if(g[1])s(w);else{var m=g[4],k={type:w},S=xs(m,hA);if(S?(S=S.replace(fre,"$1 fill:"),M&&(S+=";"+M)):M&&(S=M),S&&(k.style=S),w==="a"){t=!0;var b=xs(m,dA);if(b){var T=gA(b);T&&(k.href=T,k.target=xs(m,pA)||"_blank",k.popup=xs(m,ure))}}l(k)}}return t}function gA(e){var r=encodeURI(decodeURI(e)),t=document.createElement("a"),n=document.createElement("a");t.href=e,n.href=r;var a=t.protocol,o=n.protocol;return lA.indexOf(a)!==-1&&lA.indexOf(o)!==-1?r:""}La.sanitizeHTML=function(r){r=r.replace(vA," ");for(var t=document.createElement("p"),n=t,a=[],o=r.split(py),i=0;i<o.length;i++){var l=o[i],u=l.match(gy),s=u&&u[2].toLowerCase();if(s in cA)if(u[1])a.length&&(n=a.pop());else{var f=u[4],c=xs(f,hA),p=c?{style:c}:{};if(s==="a"){var x=xs(f,dA);if(x){var g=gA(x);if(g){p.href=g;var w=xs(f,pA);w&&(p.target=w)}}}var M=document.createElement(s);n.appendChild(M),cn.select(M).attr(p),n=M,a.push(M)}else n.appendChild(document.createTextNode(t1(l)))}var m="innerHTML";return t[m]};La.lineCount=function(r){return r.selectAll("tspan.line").size()||1};La.positionText=function(r,t,n){return r.each(function(){var a=cn.select(this);function o(u,s){return s===void 0?(s=a.attr(u),s===null&&(a.attr(u,0),s=0)):a.attr(u,s),s}var i=o("x",t),l=o("y",n);this.nodeName==="text"&&a.selectAll("tspan.line").attr({x:i,y:l})})};function sA(e,r,t){var n=t.horizontalAlign,a=t.verticalAlign||"top",o=e.node().getBoundingClientRect(),i=r.node().getBoundingClientRect(),l,u,s;return a==="bottom"?u=function(){return o.bottom-l.height}:a==="middle"?u=function(){return o.top+(o.height-l.height)/2}:u=function(){return o.top},n==="right"?s=function(){return o.right-l.width}:n==="center"?s=function(){return o.left+(o.width-l.width)/2}:s=function(){return o.left},function(){l=this.node().getBoundingClientRect();var f=s()-i.left,c=u()-i.top,p=t.gd||{};if(t.gd){p._fullLayout._calcInverseTransform(p);var x=Ja.apply3DTransform(p._fullLayout._invTransform)(f,c);f=x[0],c=x[1]}return this.style({top:c+"px",left:f+"px","z-index":1e3}),this}}var dy="1px ";La.makeTextShadow=function(e){var r=dy,t=dy,n=dy;return r+t+n+e+", -"+r+"-"+t+n+e+", "+r+"-"+t+n+e+", -"+r+t+n+e};La.makeEditable=function(e,r){var t=r.gd,n=r.delegate,a=cn.dispatch("edit","input","cancel"),o=n||e;if(e.style({"pointer-events":n?"none":"all"}),e.size()!==1)throw new Error("boo");function i(){u(),e.style({opacity:0});var s=o.attr("class"),f;s?f="."+s.split(" ")[0]+"-math-group":f="[class*=-math-group]",f&&cn.select(e.node().parentNode).select(f).style({opacity:0})}function l(s){var f=s.node(),c=document.createRange();c.selectNodeContents(f);var p=window.getSelection();p.removeAllRanges(),p.addRange(c),f.focus()}function u(){var s=cn.select(t),f=s.select(".svg-container"),c=f.append("div"),p=e.node().style,x=parseFloat(p.fontSize||12),g=r.text;g===void 0&&(g=e.attr("data-unformatted")),c.classed("plugin-editable editable",!0).style({position:"absolute","font-family":p.fontFamily||"Arial","font-size":x,color:r.fill||p.fill||"black",opacity:1,"background-color":r.background||"transparent",outline:"#ffffff33 1px solid",margin:[-x/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(g).call(sA(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var w=cn.select(this).attr("class"),M;w?M="."+w.split(" ")[0]+"-math-group":M="[class*=-math-group]",M&&cn.select(e.node().parentNode).select(M).style({opacity:0});var m=this.textContent;cn.select(this).transition().duration(0).remove(),cn.select(document).on("mouseup",null),a.edit.call(e,m)}).on("focus",function(){var w=this;t._editing=!0,cn.select(document).on("mouseup",function(){if(cn.event.target===w)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){cn.event.which===27?(t._editing=!1,e.style({opacity:1}),cn.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),a.cancel.call(e,this.textContent)):(a.input.call(e,this.textContent),cn.select(this).call(sA(e,f,r)))}).on("keydown",function(){cn.event.which===13&&this.blur()}).call(l)}return r.immediate?i():o.on("click",i),cn.rebind(e,a,"on")}});var $i=xe((Bme,wA)=>{"use strict";var pre=nt(),Gf=it(),n1=rr(),_s=Xr(),gre=cs().isValid;function yre(e,r,t){var n=r?n1.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(n1.isArrayOrTypedArray(a)){for(var i=0;i<a.length;i++)if(Gf(a[i])){o=!0;break}}return n1.isPlainObject(n)&&(o||n.showscale===!0||Gf(n.cmin)&&Gf(n.cmax)||gre(n.colorscale)||n1.isPlainObject(n.colorbar))}var yA=["showscale","autocolorscale","colorscale","reversescale","colorbar"],Vf=["min","max","mid","auto"];function mA(e){var r=e._colorAx,t=r||e,n={},a,o,i;for(o=0;o<yA.length;o++)i=yA[o],n[i]=t[i];if(r)for(a="c",o=0;o<Vf.length;o++)i=Vf[o],n[i]=t["c"+i];else{var l;for(o=0;o<Vf.length;o++){if(i=Vf[o],l="c"+i,l in t){n[i]=t[l];continue}l="z"+i,l in t&&(n[i]=t[l])}a=l.charAt(0)}return n._sync=function(u,s){var f=Vf.indexOf(u)!==-1?a+u:u;t[f]=t["_"+f]=s},n}function bA(e){for(var r=mA(e),t=r.min,n=r.max,a=r.reversescale?xA(r.colorscale):r.colorscale,o=a.length,i=new Array(o),l=new Array(o),u=0;u<o;u++){var s=a[u];i[u]=t+s[0]*(n-t),l[u]=s[1]}return{domain:i,range:l}}function xA(e){for(var r=e.length,t=new Array(r),n=r-1,a=0;n>=0;n--,a++){var o=e[n];t[a]=[1-o[0],o[1]]}return t}function _A(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,o=new Array(a),i=0;i<a;i++)o[i]=_s.rgbaArray(n[i]);var l=pre.scale.linear().domain(t).range(o).clamp(!0),u=r.noNumericCheck,s=r.returnArray,f;return u&&s?f=l:u?f=function(c){return _s.rgbaArrayToString(l(c))}:s?f=function(c){return Gf(c)?l(c):_s.isValid(c)?c:_s.defaultLine}:f=function(c){return Gf(c)?_s.rgbaArrayToString(l(c)):_s.isValid(c)?c:_s.defaultLine},f.domain=l.domain,f.range=function(){return n},f}function mre(e,r){return _A(bA(e),r)}wA.exports={hasColorscale:yre,extractOpts:mA,extractScale:bA,flipScale:xA,makeColorScaleFunc:_A,makeColorScaleFuncFromTrace:mre}});var Ro=xe((Ome,AA)=>{"use strict";var MA=I3(),bre=MA.FORMAT_LINK,xre=MA.DATE_FORMAT_LINK;function _re(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?yy:TA)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function yy(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+bre+"."].join(" ")}function TA(e,r){return yy(e,r)+[" And for dates see: "+xre+".","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(" ")}AA.exports={axisHoverFormat:_re,descriptionOnlyNumbers:yy,descriptionWithDates:TA}});var $a=xe((Hme,HA)=>{"use strict";var kA=Nn(),Y0=Zi(),UA=nl().dash,by=Rt().extendFlat,SA=wt().templatedArray,Ume=mi().templateFormatStringDescription,CA=Ro().descriptionWithDates,wre=pn().ONEDAY,Ki=mn(),Mre=Ki.HOUR_PATTERN,Tre=Ki.WEEKDAY_PATTERN,my={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Are=by({},my,{values:my.values.slice().concat(["sync"])});function EA(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var LA={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},DA={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},RA={valType:"data_array",editType:"ticks"},FA={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function PA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function IA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var zA={valType:"color",dflt:Y0.defaultLine,editType:"ticks"},NA={valType:"color",dflt:Y0.lightLine,editType:"ticks"};function qA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var BA=by({},UA,{editType:"ticks"}),OA={valType:"boolean",editType:"ticks"};HA.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Y0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:kA({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Ki.idRegex.x.toString(),Ki.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:[Ki.idRegex.x.toString(),Ki.idRegex.y.toString()],editType:"calc"},rangebreaks:SA("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:[Tre,Mre,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:wre},editType:"calc"}),tickmode:Are,nticks:EA(),tick0:LA,dtick:DA,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:RA,ticktext:{valType:"data_array",editType:"ticks"},ticks:FA,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:PA(),tickwidth:IA(),tickcolor:zA,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:by({},UA,{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:kA({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:CA("tick label")},tickformatstops:SA("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:CA("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Y0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:OA,gridcolor:NA,gridwidth:qA(),griddash:BA,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Y0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Y0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ki.idRegex.x.toString(),Ki.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ki.idRegex.x.toString(),Ki.idRegex.y.toString()],editType:"plot"},minor:{tickmode:my,nticks:EA("minor"),tick0:LA,dtick:DA,tickvals:RA,ticks:FA,ticklen:PA("minor"),tickwidth:IA("minor"),tickcolor:zA,gridcolor:NA,gridwidth:qA("minor"),griddash:BA,showgrid:OA,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var a1=xe((Vme,YA)=>{"use strict";var It=$a(),VA=Nn(),GA=Rt().extendFlat,kre=ea().overrideAll;YA.exports=kre({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:It.linecolor,outlinewidth:It.linewidth,bordercolor:It.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:It.minor.tickmode,nticks:It.nticks,tick0:It.tick0,dtick:It.dtick,tickvals:It.tickvals,ticktext:It.ticktext,ticks:GA({},It.ticks,{dflt:""}),ticklabeloverflow:GA({},It.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:It.ticklen,tickwidth:It.tickwidth,tickcolor:It.tickcolor,ticklabelstep:It.ticklabelstep,showticklabels:It.showticklabels,labelalias:It.labelalias,tickfont:VA({description:"Sets the color bar's tick label font"}),tickangle:It.tickangle,tickformat:It.tickformat,tickformatstops:It.tickformatstops,tickprefix:It.tickprefix,showtickprefix:It.showtickprefix,ticksuffix:It.ticksuffix,showticksuffix:It.showticksuffix,separatethousands:It.separatethousands,exponentformat:It.exponentformat,minexponent:It.minexponent,showexponent:It.showexponent,title:{text:{valType:"string"},font:VA({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var wi=xe((Yme,WA)=>{"use strict";var Sre=a1(),Cre=(E0(),Kn(C0)).counter,Ere=(Ih(),Kn(Ph)).default,XA=cs().scales,Gme=Ere(XA);function i1(e){return"`"+e+"`"}WA.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,o="noScale"in t?t.noScale:r==="marker.line",i="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?XA[t.colorscaleDflt]:null,u=t.editTypeOverride||"",s=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[n],c="in "+i1(s+f));var p=a?" Has an effect only if "+c+" is set to a numerical array.":"",x=n+"auto",g=n+"min",w=n+"max",M=n+"mid",m=i1(s+x),k=i1(s+g),S=i1(s+w),b=k+" and "+S,T={};T[g]=T[w]=void 0;var h={};h[x]=!1;var _={};return f==="color"&&(_.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(_.color.anim=!0)),_[x]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},_[g]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:h},_[w]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:h},_[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},_.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},_.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},_.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(_.showscale={valType:"boolean",dflt:i,editType:"calc"},_.colorbar=Sre),t.noColorAxis||(_.coloraxis={valType:"subplotid",regex:Cre("coloraxis"),dflt:null,editType:"calc"}),_}});var _y=xe((Xme,ZA)=>{"use strict";var Lre=Rt().extendFlat,Dre=wi(),xy=cs().scales;ZA.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:xy.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:xy.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:xy.RdBu,editType:"calc"}},coloraxis:Lre({_isSubplotObj:!0,editType:"calc"},Dre("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var wy=xe((Wme,JA)=>{"use strict";var Rre=rr();JA.exports=function(r){return Rre.isPlainObject(r.colorbar)}});var Ay=xe(Ty=>{"use strict";var My=it(),$A=rr(),KA=pn(),Fre=KA.ONEDAY,Pre=KA.ONEWEEK;Ty.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?Fre:1;if(!e)return o;if(My(e))return e=Number(e),e<=0?o:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return o;var i=e.charAt(0),l=e.slice(1);return l=My(l)?Number(l):0,l<=0||!(n&&i==="M"&&l===Math.round(l)||t&&i==="L"||t&&i==="D"&&(l===1||l===2))?o:e};Ty.tick0=function(e,r,t,n){if(r==="date")return $A.cleanDate(e,$A.dateTick0(t,n%Pre===0?1:0));if(!(n==="D1"||n==="D2"))return My(e)?Number(e):0}});var ky=xe((Jme,jA)=>{"use strict";var QA=Ay(),Ire=rr().isArrayOrTypedArray,zre=sa().isTypedArraySpec,Nre=sa().decodeTypedArraySpec;jA.exports=function(r,t,n,a,o={}){var i=o.isMinor,l=i?r.minor||{}:r,u=i?t.minor:t,s=i?"minor.":"";function f(b){var T=l[b];return zre(T)&&(T=Nre(T)),T!==void 0?T:(u._template||{})[b]}var c=f("tick0"),p=f("dtick"),x=f("tickvals"),g=f("overlaying"),w=a==="category"||a==="multicategory",M;Ire(x)?M="array":p?M="linear":g&&!w?M="sync":M="auto";var m=n(s+"tickmode",M);if(m==="auto"||m==="sync")n(s+"nticks");else if(m==="linear"){var k=u.dtick=QA.dtick(p,a);u.tick0=QA.tick0(c,a,t.calendar,k)}else if(a!=="multicategory"){var S=n(s+"tickvals");S===void 0?u.tickmode="auto":i||n("ticktext")}}});var Cy=xe(($me,rk)=>{"use strict";var Sy=rr(),ek=$a();rk.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?ek.minor:ek,s=o?"minor.":"",f=Sy.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),c=Sy.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),p=Sy.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),x=n(s+"ticks",!o&&a.outerTicks||f||c||p?"outside":"");x||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var Ey=xe((Kme,tk)=>{"use strict";tk.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(o){return r[o]!==void 0}),a=function(o){return r[o]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var Mi=xe((Qme,nk)=>{"use strict";var o1=rr(),qre=wt();nk.exports=function(r,t,n){var a=n.name,o=n.inclusionAttr||"visible",i=t[a],l=o1.isArrayOrTypedArray(r[a])?r[a]:[],u=t[a]=[],s=qre.arrayTemplater(t,a,o),f,c;for(f=0;f<l.length;f++){var p=l[f];o1.isPlainObject(p)?c=s.newItem(p):(c=s.newItem({}),c[o]=!1),c._index=f,c[o]!==!1&&n.handleItemDefaults(p,c,t,n),u.push(c)}var x=s.defaultItems();for(f=0;f<x.length;f++)c=x[f],c._index=u.length,n.handleItemDefaults({},c,t,n,{}),u.push(c);if(o1.isArrayOrTypedArray(i)){var g=Math.min(i.length,u.length);for(f=0;f<g;f++)o1.relinkPrivateKeys(u[f],i[f])}return u}});var Dy=xe((jme,ik)=>{"use strict";var Ly=rr(),Bre=Xr().contrast,ak=$a(),Ore=Ey(),Ure=Mi();ik.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");Ly.isPlainObject(i)||delete t.labelalias;var l=Ore(r),u=n("showticklabels");if(u){o.noTicklabelshift||n("ticklabelshift"),o.noTicklabelstandoff||n("ticklabelstandoff");var s=o.font||{},f=t.color,c=t.ticklabelposition||"",p=c.indexOf("inside")!==-1?Bre(o.bgColor):f&&f!==ak.color.dflt?f:s.color;if(Ly.coerceFont(n,"tickfont",s,{overrideDflt:{color:p}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var x=n("tickangle");!o.noAutotickangles&&x==="auto"&&n("autotickangles")}if(a!=="category"){var g=n("tickformat");Ure(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Hre}),t.tickformatstops.length||delete t.tickformatstops,!o.noExp&&!g&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!o.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function Hre(e,r){function t(a,o){return Ly.coerce(e,r,ak.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var Ry=xe((e5e,ok)=>{"use strict";var Vre=Ey();ok.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=Vre(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var Fy=xe((r5e,lk)=>{"use strict";var dl=rr(),Gre=wt(),Yre=ky(),Xre=Cy(),Wre=Dy(),Zre=Ry(),Jre=a1();lk.exports=function(r,t,n){var a=Gre.newContainer(t,"colorbar"),o=r.colorbar||{};function i(d,D){return dl.coerce(o,a,Jre,d,D)}var l=n.margin||{t:0,b:0,l:0,r:0},u=n.width-l.l-l.r,s=n.height-l.t-l.b,f=i("orientation"),c=f==="v",p=i("thicknessmode");i("thickness",p==="fraction"?30/(c?u:s):30);var x=i("lenmode");i("len",x==="fraction"?1:c?s:u);var g=i("yref"),w=i("xref"),M=g==="paper",m=w==="paper",k,S,b,T="left";c?(b="middle",T=m?"left":"right",k=m?1.02:1,S=.5):(b=M?"bottom":"top",T="center",k=.5,S=M?1.02:1),dl.coerce(o,a,{x:{valType:"number",min:m?-2:0,max:m?3:1,dflt:k}},"x"),dl.coerce(o,a,{y:{valType:"number",min:M?-2:0,max:M?3:1,dflt:S}},"y"),i("xanchor",T),i("xpad"),i("yanchor",b),i("ypad"),dl.noneOrAll(o,a,["x","y"]),i("outlinecolor"),i("outlinewidth"),i("bordercolor"),i("borderwidth"),i("bgcolor");var h=dl.coerce(o,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");i("ticklabeloverflow",h.indexOf("inside")!==-1?"hide past domain":"hide past div"),Yre(o,a,i,"linear");var _=n.font,y={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:_};h.indexOf("inside")!==-1&&(y.bgColor="black"),Zre(o,a,i,"linear",y),Wre(o,a,i,"linear",y),Xre(o,a,i,"linear",y),i("title.text",n._dfltTitle.colorbar);var v=a.showticklabels?a.tickfont:_,A=dl.extendFlat({},_,{family:v.family,size:dl.bigFont(v.size)});dl.coerceFont(i,"title.font",A),i("title.side",c?"top":"right")}});var Qi=xe((t5e,fk)=>{"use strict";var sk=it(),Iy=rr(),$re=wy(),Kre=Fy(),uk=cs().isValid,Qre=Cr().traceIs;function Py(e,r){var t=r.slice(0,r.length-1);return r?Iy.nestedProperty(e,t).get()||{}:e}fk.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=Py(r,i),f=Py(t,i),c=Py(t._template||{},i)||{},p=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var x=n._colorAxes||{},g=a(i+"coloraxis");if(g){var w=Qre(t,"contour")&&Iy.nestedProperty(t,"contours.coloring").get()||"heatmap",M=x[g];M?(M[2].push(p),M[0]!==w&&(M[0]=!1,Iy.warn(["Ignoring coloraxis:",g,"setting","as it is linked to incompatible colorscales."].join(" ")))):x[g]=[w,t,[p]];return}}var m=s[l+"min"],k=s[l+"max"],S=sk(m)&&sk(k)&&m<k,b=a(i+l+"auto",!S);b?a(i+l+"mid"):(a(i+l+"min"),a(i+l+"max"));var T=s.colorscale,h=c.colorscale,_;if(T!==void 0&&(_=!uk(T)),h!==void 0&&(_=!uk(h)),a(i+"autocolorscale",_),a(i+"colorscale"),a(i+"reversescale"),i!=="marker.line."){var y;i&&u&&(y=$re(s));var v=a(i+"showscale",y);v&&(i&&c&&(f._template=c),Kre(s,f,n))}}});var dk=xe((n5e,hk)=>{"use strict";var ck=rr(),jre=wt(),vk=_y(),ete=Qi();hk.exports=function(r,t){function n(c,p){return ck.coerce(r,t,vk,c,p)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(c,p){return ck.coerce(o,i,vk.coloraxis,c,p)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=jre.newContainer(t,u,"coloraxis"),i._name=u,ete(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f<s[2].length;f++)s[2][f]();delete t._colorAxes[u]}}}});var gk=xe((a5e,pk)=>{"use strict";var rte=rr(),tte=$i().hasColorscale,nte=$i().extractOpts;pk.exports=function(r,t){function n(f,c){var p=f["_"+c];p!==void 0&&(f[c]=p)}function a(f,c){var p=c.container?rte.nestedProperty(f,c.container).get():f;if(p)if(p.coloraxis)p._colorAx=t[p.coloraxis];else{var x=nte(p),g=x.auto;(g||x.min===void 0)&&n(p,c.min),(g||x.max===void 0)&&n(p,c.max),x.autocolorscale&&n(p,"colorscale")}}for(var o=0;o<r.length;o++){var i=r[o],l=i._module.colorbar;if(l)if(Array.isArray(l))for(var u=0;u<l.length;u++)a(i,l[u]);else a(i,l);tte(i,"marker.line")&&a(i,{container:"marker.line",min:"cmin",max:"cmax"})}for(var s in t._colorAxes)a(t[s],{min:"cmin",max:"cmax"})}});var pl=xe((i5e,mk)=>{"use strict";var yk=it(),zy=rr(),ate=$i().extractOpts;mk.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?zy.nestedProperty(t,i).get():t,u=ate(l),s=u.auto!==!1,f=u.min,c=u.max,p=u.mid,x=function(){return zy.aggNums(Math.min,null,o)},g=function(){return zy.aggNums(Math.max,null,o)};if(f===void 0?f=x():s&&(l._colorAx&&yk(f)?f=Math.min(f,x()):f=x()),c===void 0?c=g():s&&(l._colorAx&&yk(c)?c=Math.max(c,g()):c=g()),s&&p!==void 0&&(c-p>p-f?f=p-(c-p):c-p<p-f&&(c=p+(p-f))),f===c&&(f-=.5,c+=.5),u._sync("min",f),u._sync("max",c),u.autocolorscale){var w;f*c<0?w=a.colorscale.diverging:f>=0?w=a.colorscale.sequential:w=a.colorscale.sequentialminus,u._sync("colorscale",w)}}});var ji=xe((o5e,bk)=>{"use strict";var l1=cs(),X0=$i();bk.exports={moduleType:"component",name:"colorscale",attributes:wi(),layoutAttributes:_y(),supplyLayoutDefaults:dk(),handleDefaults:Qi(),crossTraceDefaults:gk(),calc:pl(),scales:l1.scales,defaultScale:l1.defaultScale,getScale:l1.get,isValidScale:l1.isValid,hasColorscale:X0.hasColorscale,extractOpts:X0.extractOpts,extractScale:X0.extractScale,flipScale:X0.flipScale,makeColorScaleFunc:X0.makeColorScaleFunc,makeColorScaleFuncFromTrace:X0.makeColorScaleFuncFromTrace}});var wa=xe((l5e,_k)=>{"use strict";var xk=rr(),ite=sa().isTypedArraySpec;_k.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return xk.isPlainObject(r)&&(xk.isArrayOrTypedArray(r.size)||ite(r.size))}}});var Ny=xe((s5e,wk)=>{"use strict";var ote=it();wk.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,o=n.sizemin||0,i=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var u=i(l/t);return ote(u)&&u>0?Math.max(u,o):0}}});var eo=xe(Pn=>{"use strict";var Yf=rr();Pn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Pn.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a<t.length;a++)for(var o=0;o<n.length;o++)if(r.indexOf(t[a]+n[o])!==-1)return!0;return!1}return r.indexOf(Pn.getSubplot(e))!==-1};Pn.flat=function(e,r){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=r;return t};Pn.p2c=function(e,r){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e[n].p2c(r);return t};Pn.c2dApply=function(e,r){e.length!==r.length&&Yf.warn("c2dApply: axArray and valArray must be the same length");for(var t=new Array(r.length),n=0;n<r.length;n++){var a=e&&e[n];t[n]=a&&a.c2d?a.c2d(r[n]):r[n]}return t};Pn.getDistanceFunction=function(e,r,t,n){return e==="closest"?n||Pn.quadrature(r,t):e.charAt(0)==="x"?r:t};Pn.getClosest=function(e,r,t){if(t.index!==!1)t.index>=0&&t.index<e.length?t.distance=0:t.index=!1;else for(var n=1/0,a=e.length,o=0;o<a;o++)n=r(e[o]),n<=t.distance&&(t.index=o,t.distance=n);return t};Pn.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};Pn.quadrature=function(e,r){return function(t){var n=e(t),a=r(t);return Math.sqrt(n*n+a*a)}};Pn.makeEventData=function(e,r,t){var n="index"in e?e.index:e.pointNumber,a={data:r._input,fullData:r,curveNumber:r.index,pointNumber:n};return a.pointIndex=n,r._module.eventData?a=r._module.eventData(a,e,r,t,n):("xVal"in e?a.x=e.xVal:"x"in e&&(a.x=e.x),"yVal"in e?a.y=e.yVal:"y"in e&&(a.y=e.y),e.xa&&(a.xaxis=e.xa),e.ya&&(a.yaxis=e.ya),e.zLabelVal!==void 0&&(a.z=e.zLabelVal)),Pn.appendArrayPointValue(a,r,n),a};Pn.appendArrayPointValue=function(e,r,t){var n=r._arrayAttrs;if(n)for(var a=0;a<n.length;a++){var o=n[a],i=Mk(o);if(e[i]===void 0){var l=Yf.nestedProperty(r,o).get(),u=Tk(l,t);u!==void 0&&(e[i]=u)}}};Pn.appendArrayMultiPointValues=function(e,r,t){var n=r._arrayAttrs;if(n)for(var a=0;a<n.length;a++){var o=n[a],i=Mk(o);if(e[i]===void 0){for(var l=Yf.nestedProperty(r,o).get(),u=new Array(t.length),s=0;s<t.length;s++)u[s]=Tk(l,t[s]);e[i]=u}}};var lte={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function Mk(e){return lte[e]||e}function Tk(e,r){if(Array.isArray(r)){if(Yf.isArrayOrTypedArray(e)&&Yf.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var ste={x:!0,y:!0},ute={"x unified":!0,"y unified":!0};Pn.isUnifiedHover=function(e){return typeof e!="string"?!1:!!ute[e]};Pn.isXYhover=function(e){return typeof e!="string"?!1:!!ste[e]}});var By=xe((f5e,Ak)=>{var qy={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},fte=/([astvzqmhlc])([^astvzqmhlc]*)/gi,cte=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function vte(e){let r=[];return e.replace(fte,(t,n,a)=>{let o=n.toLowerCase(),i=n,l=hte(a);for(o==="m"&&l.length>2&&(r.push([i,...l.splice(0,2)]),o="l",i=i==="m"?"l":"L");;){if(l.length===qy[o])return r.push([i,...l]),"";if(l.length<qy[o])throw new Error("malformed path data");r.push([i,...l.splice(0,qy[o])])}}),r}function hte(e){let r=e.match(cte);return r?r.map(Number):[]}Ak.exports=vte});var Rk=xe((c5e,Dk)=>{"use strict";var dte=By(),or=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Fr="M0,0Z",kk=Math.sqrt(2),yl=Math.sqrt(3),Oy=Math.PI,Uy=Math.cos,Hy=Math.sin;Dk.exports={circle:{n:0,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?Ir(r,t,a):a}},square:{n:1,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2);return Ir(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.3,2);return Ir(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*.4,2),a=or(e*1.2,2);return Ir(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*.8/kk,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return Ir(r,t,"M0,"+n+a+o+i+o+i+l+i+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*2/yl,2),a=or(e/2,2),o=or(e,2);return Ir(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*2/yl,2),a=or(e/2,2),o=or(e,2);return Ir(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*2/yl,2),a=or(e/2,2),o=or(e,2);return Ir(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*2/yl,2),a=or(e/2,2),o=or(e,2);return Ir(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*.6,2),a=or(e*1.2,2);return Ir(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*.6,2),a=or(e*1.2,2);return Ir(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*.6,2),a=or(e*1.2,2);return Ir(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*.6,2),a=or(e*1.2,2);return Ir(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*.951,2),a=or(e*.588,2),o=or(-e,2),i=or(e*-.309,2),l=or(e*.809,2);return Ir(r,t,"M"+n+","+i+"L"+a+","+l+"H-"+a+"L-"+n+","+i+"L0,"+o+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2),a=or(e/2,2),o=or(e*yl/2,2);return Ir(r,t,"M"+o+",-"+a+"V"+a+"L0,"+n+"L-"+o+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2),a=or(e/2,2),o=or(e*yl/2,2);return Ir(r,t,"M-"+a+","+o+"H"+a+"L"+n+",0L"+a+",-"+o+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*.924,2),a=or(e*.383,2);return Ir(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(Pr(r))return Fr;var n=e*1.4,a=or(n*.225,2),o=or(n*.951,2),i=or(n*.363,2),l=or(n*.588,2),u=or(-n,2),s=or(n*-.309,2),f=or(n*.118,2),c=or(n*.809,2),p=or(n*.382,2);return Ir(r,t,"M"+a+","+s+"H"+o+"L"+i+","+f+"L"+l+","+c+"L0,"+p+"L-"+l+","+c+"L-"+i+","+f+"L-"+o+","+s+"H-"+a+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*.66,2),a=or(e*.38,2),o=or(e*.76,2);return Ir(r,t,"M-"+o+",0l-"+a+",-"+n+"h"+o+"l"+a+",-"+n+"l"+a+","+n+"h"+o+"l-"+a+","+n+"l"+a+","+n+"h-"+o+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+o+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*yl*.8,2),a=or(e*.8,2),o=or(e*1.6,2),i=or(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Ir(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+o+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*yl*.8,2),a=or(e*.8,2),o=or(e*1.6,2),i=or(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Ir(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+o+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.1,2),a=or(e*2,2),o="A "+a+","+a+" 0 0 1 ";return Ir(r,t,"M-"+n+",-"+n+o+"-"+n+","+n+o+n+","+n+o+n+",-"+n+o+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.4,2),a=or(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return Ir(r,t,"M-"+n+",0"+o+"0,"+n+o+n+",0"+o+"0,-"+n+o+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*.7,2),a=or(e*1.4,2);return Ir(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.4,2),a=or(e*.7,2);return Ir(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2);return Ir(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2);return Ir(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2);return Ir(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2),a=or(e/kk,2);return Ir(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2);return Ir(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2);return Ir(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.3,2);return Ir(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.3,2),a=or(e*.65,2);return Ir(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.4,2);return Ir(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2);return Ir(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.2,2),a=or(e*.85,2);return Ir(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e/2,2),a=or(e,2);return Ir(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.2,2),a=or(e*1.6,2),o=or(e*.8,2);return Ir(r,t,"M-"+n+","+o+"L0,0M"+n+","+o+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.2,2),a=or(e*1.6,2),o=or(e*.8,2);return Ir(r,t,"M-"+n+",-"+o+"L0,0M"+n+",-"+o+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.2,2),a=or(e*1.6,2),o=or(e*.8,2);return Ir(r,t,"M"+o+","+n+"L0,0M"+o+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.2,2),a=or(e*1.6,2),o=or(e*.8,2);return Ir(r,t,"M-"+o+","+n+"L0,0M-"+o+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.4,2);return Ir(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*1.4,2);return Ir(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2);return Ir(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2);return Ir(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2),a=or(e*2,2);return Ir(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2),a=or(e*2,2);return Ir(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*2,2),a=or(e,2);return Ir(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*2,2),a=or(e,2);return Ir(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2),a=or(e*2,2);return Ir(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e,2),a=or(e*2,2);return Ir(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*2,2),a=or(e,2);return Ir(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Pr(r))return Fr;var n=or(e*2,2),a=or(e,2);return Ir(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Pr(r))return Fr;var n=Oy/2.5,a=2*e*Uy(n),o=2*e*Hy(n);return Ir(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Pr(r))return Fr;var n=Oy/4,a=2*e*Uy(n),o=2*e*Hy(n);return Ir(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function Pr(e){return e===null}var Sk,Ck,Ek,Lk;function Ir(e,r,t){if((!e||e%360===0)&&!r)return t;if(Ek===e&&Lk===r&&Sk===t)return Ck;Ek=e,Lk=r,Sk=t;function n(M,m){var k=Uy(M),S=Hy(M),b=m[0],T=m[1]+(r||0);return[b*k-T*S,b*S+T*k]}for(var a=e/180*Oy,o=0,i=0,l=dte(t),u="",s=0;s<l.length;s++){var f=l[s],c=f[0],p=o,x=i;if(c==="M"||c==="L")o=+f[1],i=+f[2];else if(c==="m"||c==="l")o+=+f[1],i+=+f[2];else if(c==="H")o=+f[1];else if(c==="h")o+=+f[1];else if(c==="V")i=+f[1];else if(c==="v")i+=+f[1];else if(c==="A"){o=+f[1],i=+f[2];var g=n(a,[+f[6],+f[7]]);f[6]=g[0],f[7]=g[1],f[3]=+f[3]+e}(c==="H"||c==="V")&&(c="L"),(c==="h"||c==="v")&&(c="l"),(c==="m"||c==="l")&&(o-=p,i-=x);var w=n(a,[o,i]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=w[0],f[2]=w[1]),f[0]=c,u+=f[0]+f.slice(1).join(",")}return Ck=u,u}});var Mt=xe((v5e,Qk)=>{"use strict";var xn=nt(),mt=rr(),pte=mt.numberFormat,ml=it(),u1=Cr(),vn=Xr(),gte=ji(),Wf=mt.strTranslate,f1=Un(),yte=hl(),mte=On(),bte=mte.LINE_SPACING,Hk=_h().DESELECTDIM,xte=wa(),_te=Ny(),wte=eo().appendArrayPointValue,ur=Qk.exports={};ur.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,o=r.color,i=r.size,l=r.family,u=r.shadow,s=r.lineposition,f=r.textcase;l&&e.style("font-family",l),i+1&&e.style("font-size",i+"px"),o&&e.call(vn.fill,o),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",Vy(Tte(f))),u&&e.style("text-shadow",u==="auto"?f1.makeTextShadow(vn.contrast(o)):Vy(u)),s&&e.style("text-decoration-line",Vy(Ate(s)))};function Vy(e){return e==="none"?void 0:e}var Mte={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Tte(e){return Mte[e]}function Ate(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}ur.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};ur.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};ur.setRect=function(e,r,t,n,a){e.call(ur.setPosition,r,t).call(ur.setSize,n,a)};ur.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),o=n.c2p(e.y);if(ml(a)&&ml(o)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",o):r.attr("transform",Wf(a,o));else return!1;return!0};ur.translatePoints=function(e,r,t){e.each(function(n){var a=xn.select(this);ur.translatePoint(n,a,r,t)})};ur.hideOutsideRangePoint=function(e,r,t,n,a,o){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,o)?null:"none")};ur.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var o=a[0].trace,i=o.xcalendar,l=o.ycalendar,u=u1.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){ur.hideOutsideRangePoint(s,xn.select(this),t,n,i,l)})})}};ur.crispRound=function(e,r,t){return!r||!ml(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};ur.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},i=t||o.width||0,l=a||o.dash||"";vn.stroke(r,n||o.color),ur.dashLine(r,l,i)};ur.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var o=(((a||[])[0]||{}).trace||{}).line||{},i=r||o.width||0,l=n||o.dash||"";xn.select(this).call(vn.stroke,t||o.color).call(ur.dashLine,l,i)})};ur.dashLine=function(e,r,t){t=+t||0,r=ur.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};ur.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function Vk(e,r,t,n){var a=r.fillpattern,o=r.fillgradient,i=ur.getPatternAttr,l=a&&(i(a.shape,0,"")||i(a.path,0,""));if(l){var u=i(a.bgcolor,0,null),s=i(a.fgcolor,0,null),f=a.fgopacity,c=i(a.size,0,8),p=i(a.solidity,0,.3),x=r.uid;ur.pattern(e,"point",t,x,l,c,p,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var g=o.type,w="scatterfill-"+r.uid;if(n&&(w="legendfill-"+r.uid),!n&&(o.start!==void 0||o.stop!==void 0)){var M,m;g==="horizontal"?(M={x:o.start,y:0},m={x:o.stop,y:0}):g==="vertical"&&(M={x:0,y:o.start},m={x:0,y:o.stop}),M.x=r._xA.c2p(M.x===void 0?r._extremes.x.min[0].val:M.x,!0),M.y=r._yA.c2p(M.y===void 0?r._extremes.y.min[0].val:M.y,!0),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.max[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.max[0].val:m.y,!0),e.call(Xk,t,w,"linear",o.colorscale,"fill",M,m,!0,!1)}else g==="horizontal"&&(g=g+"reversed"),e.call(ur.gradient,t,w,g,o.colorscale,"fill")}else r.fillcolor&&e.call(vn.fill,r.fillcolor)}ur.singleFillStyle=function(e,r){var t=xn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};Vk(e,a,r,!1)};ur.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=xn.select(this);n[0].trace&&Vk(a,n[0].trace,r,t)})};var Fk=Rk();ur.symbolNames=[];ur.symbolFuncs=[];ur.symbolBackOffs=[];ur.symbolNeedLines={};ur.symbolNoDot={};ur.symbolNoFill={};ur.symbolList=[];Object.keys(Fk).forEach(function(e){var r=Fk[e],t=r.n;ur.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),ur.symbolNames[t]=e,ur.symbolFuncs[t]=r.f,ur.symbolBackOffs[t]=r.backoff||0,r.needLine&&(ur.symbolNeedLines[t]=!0),r.noDot?ur.symbolNoDot[t]=!0:ur.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(ur.symbolNoFill[t]=!0)});var kte=ur.symbolNames.length,Ste="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";ur.symbolNumber=function(e){if(ml(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=ur.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=kte||e>=400?0:Math.floor(Math.max(e,0))};function Gk(e,r,t,n){var a=e%100;return ur.symbolFuncs[a](r,t,n)+(e>=200?Ste:"")}var Pk=pte("~f"),Yk={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}};ur.gradient=function(e,r,t,n,a,o){var i=Yk[n];return Xk(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function Xk(e,r,t,n,a,o,i,l,u,s){var f=a.length,c;n==="linear"?c={node:"linearGradient",attrs:{x1:i.x,y1:i.y,x2:l.x,y2:l.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:s}:n==="radial"&&(c={node:"radialGradient",reversed:s});for(var p=new Array(f),x=0;x<f;x++)c.reversed?p[f-1-x]=[Pk((1-a[x][0])*100),a[x][1]]:p[x]=[Pk(a[x][0]*100),a[x][1]];var g=r._fullLayout,w="g"+g._uid+"-"+t,M=g._defs.select(".gradients").selectAll("#"+w).data([n+p.join(";")],mt.identity);M.exit().remove(),M.enter().append(c.node).each(function(){var m=xn.select(this);c.attrs&&m.attr(c.attrs),m.attr("id",w);var k=m.selectAll("stop").data(p);k.exit().remove(),k.enter().append("stop"),k.each(function(S){xn.select(this).attr({offset:S[0]+"%","stop-color":vn.rgb(S[1]),"stop-opacity":vn.parse(S[1]).alpha})})}),e.style(o,Zy(w,r)).style(o+"-opacity",null),e.classed("gradient_filled",!0)}ur.pattern=function(e,r,t,n,a,o,i,l,u,s,f,c){var p=r==="legend";l&&(u==="overlay"?(s=l,f=vn.contrast(s)):(s=void 0,f=l));var x=t._fullLayout,g="p"+x._uid+"-"+n,w,M,m=function(D,E,R,z,I){return z+(I-z)*(D-E)/(R-E)},k,S,b,T,h={},_=vn.rgb(f),y=vn.parse(f).alpha,v=c*y;switch(a){case"/":w=o*Math.sqrt(2),M=o*Math.sqrt(2),k="M-"+w/4+","+M/4+"l"+w/2+",-"+M/2+"M0,"+M+"L"+w+",0M"+w/4*3+","+M/4*5+"l"+w/2+",-"+M/2,S=i*o,T="path",h={d:k,opacity:v,stroke:_,"stroke-width":S+"px"};break;case"\\":w=o*Math.sqrt(2),M=o*Math.sqrt(2),k="M"+w/4*3+",-"+M/4+"l"+w/2+","+M/2+"M0,0L"+w+","+M+"M-"+w/4+","+M/4*3+"l"+w/2+","+M/2,S=i*o,T="path",h={d:k,opacity:v,stroke:_,"stroke-width":S+"px"};break;case"x":w=o*Math.sqrt(2),M=o*Math.sqrt(2),k="M-"+w/4+","+M/4+"l"+w/2+",-"+M/2+"M0,"+M+"L"+w+",0M"+w/4*3+","+M/4*5+"l"+w/2+",-"+M/2+"M"+w/4*3+",-"+M/4+"l"+w/2+","+M/2+"M0,0L"+w+","+M+"M-"+w/4+","+M/4*3+"l"+w/2+","+M/2,S=o-o*Math.sqrt(1-i),T="path",h={d:k,opacity:v,stroke:_,"stroke-width":S+"px"};break;case"|":w=o,M=o,T="path",k="M"+w/2+",0L"+w/2+","+M,S=i*o,T="path",h={d:k,opacity:v,stroke:_,"stroke-width":S+"px"};break;case"-":w=o,M=o,T="path",k="M0,"+M/2+"L"+w+","+M/2,S=i*o,T="path",h={d:k,opacity:v,stroke:_,"stroke-width":S+"px"};break;case"+":w=o,M=o,T="path",k="M"+w/2+",0L"+w/2+","+M+"M0,"+M/2+"L"+w+","+M/2,S=o-o*Math.sqrt(1-i),T="path",h={d:k,opacity:v,stroke:_,"stroke-width":S+"px"};break;case".":w=o,M=o,i<Math.PI/4?b=Math.sqrt(i*o*o/Math.PI):b=m(i,Math.PI/4,1,o/2,o/Math.sqrt(2)),T="circle",h={cx:w/2,cy:M/2,r:b,opacity:v,fill:_};break;default:w=o,M=o,T="path",h={d:a,opacity:v,fill:_};break}var A=[a||"noSh",s||"noBg",f||"noFg",o,i].join(";"),d=x._defs.select(".patterns").selectAll("#"+g).data([A],mt.identity);d.exit().remove(),d.enter().append("pattern").each(function(){var D=xn.select(this);if(D.attr({id:g,width:w+"px",height:M+"px",patternUnits:"userSpaceOnUse",patternTransform:p?"scale(0.8)":""}),s){var E=vn.rgb(s),R=vn.parse(s).alpha,z=D.selectAll("rect").data([0]);z.exit().remove(),z.enter().append("rect").attr({width:w+"px",height:M+"px",fill:E,"fill-opacity":R})}var I=D.selectAll(T).data([0]);I.exit().remove(),I.enter().append(T).attr(h)}),e.style("fill",Zy(g,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};ur.initGradients=function(e){var r=e._fullLayout,t=mt.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),xn.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};ur.initPatterns=function(e){var r=e._fullLayout,t=mt.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),xn.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};ur.getPatternAttr=function(e,r,t){return e&&mt.isArrayOrTypedArray(e)?r<e.length?e[r]:t:e};ur.pointStyle=function(e,r,t,n){if(e.size()){var a=ur.makePointStyleFns(r);e.each(function(o){ur.singlePointStyle(o,xn.select(this),r,a,t,n)})}};ur.singlePointStyle=function(e,r,t,n,a,o){var i=t.marker,l=i.line;if(o&&o.i>=0&&e.i===void 0&&(e.i=o.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?i.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||i.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var s=ur.symbolNumber(e.mx||i.symbol)||0;e.om=s%200>=100;var f=$y(e,t),c=Jy(e,t);r.attr("d",Gk(s,u,f,c))}var p=!1,x,g,w;if(e.so)w=l.outlierwidth,g=l.outliercolor,x=i.outliercolor;else{var M=(l||{}).width;w=(e.mlw+1||M+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?g=e.mlcc=n.lineScale(e.mlc):mt.isArrayOrTypedArray(l.color)?g=vn.defaultLine:g=l.color,mt.isArrayOrTypedArray(i.color)&&(x=vn.defaultLine,p=!0),"mc"in e?x=e.mcc=n.markerScale(e.mc):x=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(x=n.selectedColorFn(e))}let m=e.mld||(l||{}).dash;if(m&&ur.dashLine(r,m,w),e.om)r.call(vn.stroke,x).style({"stroke-width":(w||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:w)+"px");var k=i.gradient,S=e.mgt;S?p=!0:S=k&&k.type,mt.isArrayOrTypedArray(S)&&(S=S[0],Yk[S]||(S=0));var b=i.pattern,T=ur.getPatternAttr,h=b&&(T(b.shape,e.i,"")||T(b.path,e.i,""));if(S&&S!=="none"){var _=e.mgc;_?p=!0:_=k.color;var y=t.uid;p&&(y+="-"+e.i),ur.gradient(r,a,y,S,[[0,_],[1,x]],"fill")}else if(h){var v=!1,A=b.fgcolor;!A&&o&&o.color&&(A=o.color,v=!0);var d=T(A,e.i,o&&o.color||null),D=T(b.bgcolor,e.i,null),E=b.fgopacity,R=T(b.size,e.i,8),z=T(b.solidity,e.i,.3);v=v||e.mcc||mt.isArrayOrTypedArray(b.shape)||mt.isArrayOrTypedArray(b.path)||mt.isArrayOrTypedArray(b.bgcolor)||mt.isArrayOrTypedArray(b.fgcolor)||mt.isArrayOrTypedArray(b.size)||mt.isArrayOrTypedArray(b.solidity);var I=t.uid;v&&(I+="-"+e.i),ur.pattern(r,"point",a,I,h,R,z,e.mcc,b.fillmode,D,d,E)}else mt.isArrayOrTypedArray(x)?vn.fill(r,x[e.i]):vn.fill(r,x);w&&vn.stroke(r,g)}};ur.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=ur.tryColorscale(t,""),r.lineScale=ur.tryColorscale(t,"line"),u1.traceIs(e,"symbols")&&(r.ms2mrc=xte.isBubble(e)?_te(e):function(){return(t.size||6)/2}),e.selectedpoints&&mt.extendFlat(r,ur.makeSelectedPointStyleFns(e)),r};ur.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},o=t.marker||{},i=n.marker||{},l=a.opacity,u=o.opacity,s=i.opacity,f=u!==void 0,c=s!==void 0;(mt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(b){var T=b.mo===void 0?a.opacity:b.mo;return b.selected?f?u:T:c?s:Hk*T});var p=a.color,x=o.color,g=i.color;(x||g)&&(r.selectedColorFn=function(b){var T=b.mcc||p;return b.selected?x||T:g||T});var w=a.size,M=o.size,m=i.size,k=M!==void 0,S=m!==void 0;return u1.traceIs(e,"symbols")&&(k||S)&&(r.selectedSizeFn=function(b){var T=b.mrc||w/2;return b.selected?k?M/2:T:S?m/2:T}),r};ur.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},o=t.textfont||{},i=n.textfont||{},l=a.color,u=o.color,s=i.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?u||c:s||(u?c:vn.addOpacity(c,Hk))},r};ur.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ur.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(o,i){o.style("opacity",t.selectedOpacityFn(i))}),t.selectedColorFn&&a.push(function(o,i){vn.fill(o,t.selectedColorFn(i))}),t.selectedSizeFn&&a.push(function(o,i){var l=i.mx||n.symbol||0,u=t.selectedSizeFn(i);o.attr("d",Gk(ur.symbolNumber(l),u,$y(i,r),Jy(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=xn.select(this),l=0;l<a.length;l++)a[l](i,o)})}};ur.tryColorscale=function(e,r){var t=r?mt.nestedProperty(e,r).get():e;if(t){var n=t.color;if((t.colorscale||t._colorAx)&&mt.isArrayOrTypedArray(n))return gte.makeColorScaleFuncFromTrace(t)}return mt.identity};var Gy={start:1,end:-1,middle:0,bottom:1,top:-1};function Wk(e,r,t,n,a){var o=xn.select(e.node().parentNode),i=r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle",l=r.indexOf("left")!==-1?"end":r.indexOf("right")!==-1?"start":"middle",u=n?n/.8+1:0,s=(f1.lineCount(e)-1)*bte+1,f=Gy[l]*u,c=t*.75+Gy[i]*u+(Gy[i]-1)*s*t/2;e.attr("text-anchor",l),a||o.attr("transform",Wf(f,c))}function Zk(e,r){var t=e.ts||r.textfont.size;return ml(t)&&t>0?t:0}ur.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=ur.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var o=r.texttemplate,i=t._fullLayout;e.each(function(l){var u=xn.select(this),s=o?mt.extractOption(l,r,"txt","texttemplate"):mt.extractOption(l,r,"tx","text");if(!s&&s!==0){u.remove();return}if(o){var f=r._module.formatLabels,c=f?f(l,r,i):{},p={};wte(p,r,l.i),s=mt.texttemplateString({data:[p,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:i._d3locale,template:s})}var x=l.tp||r.textposition,g=Zk(l,r),w=n?n(l):l.tc||r.textfont.color;u.call(ur.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:g,color:w}).text(s).call(f1.convertToTspans,t).call(Wk,x,g,l.mrc)})}};ur.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ur.makeSelectedTextStyleFns(r);e.each(function(n){var a=xn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=Zk(n,r);vn.fill(a,o);var u=u1.traceIs(r,"bar-like");Wk(a,i,l,n.mrc2||n.mrc,u)})}};var Ik=.5;ur.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a<e.length-1;a++)n.push(s1(e[a-1],e[a],e[a+1],r));for(t+="Q"+n[0][0]+" "+e[1],a=2;a<e.length-1;a++)t+="C"+n[a-2][1]+" "+n[a-1][0]+" "+e[a];return t+="Q"+n[e.length-3][1]+" "+e[e.length-1],t};ur.smoothclosed=function(e,r){if(e.length<3)return"M"+e.join("L")+"Z";var t="M"+e[0],n=e.length-1,a=[s1(e[n],e[0],e[1],r)],o;for(o=1;o<n;o++)a.push(s1(e[o-1],e[o],e[o+1],r));for(a.push(s1(e[n-1],e[n],e[0],r)),o=1;o<=n;o++)t+="C"+a[o-1][1]+" "+a[o][0]+" "+e[o];return t+="C"+a[n][1]+" "+a[0][0]+" "+e[0]+"Z",t};var Jk,$k;function W0(e,r,t){return t&&(e=Kk(e)),r?Ts(e[1]):Ms(e[0])}function Ms(e){var r=xn.round(e,2);return Jk=r,r}function Ts(e){var r=xn.round(e,2);return $k=r,r}function s1(e,r,t,n){var a=e[0]-r[0],o=e[1]-r[1],i=t[0]-r[0],l=t[1]-r[1],u=Math.pow(a*a+o*o,Ik/2),s=Math.pow(i*i+l*l,Ik/2),f=(s*s*a-u*u*i)*n,c=(s*s*o-u*u*l)*n,p=3*s*(u+s),x=3*u*(u+s);return[[Ms(r[0]+(p&&f/p)),Ts(r[1]+(p&&c/p))],[Ms(r[0]-(x&&f/x)),Ts(r[1]-(x&&c/x))]]}var Cte={hv:function(e,r,t){return"H"+Ms(r[0])+"V"+W0(r,1,t)},vh:function(e,r,t){return"V"+Ts(r[1])+"H"+W0(r,0,t)},hvh:function(e,r,t){return"H"+Ms((e[0]+r[0])/2)+"V"+Ts(r[1])+"H"+W0(r,0,t)},vhv:function(e,r,t){return"V"+Ts((e[1]+r[1])/2)+"H"+Ms(r[0])+"V"+W0(r,1,t)}},Ete=function(e,r,t){return"L"+W0(r,0,t)+","+W0(r,1,t)};ur.steps=function(e){var r=Cte[e]||Ete;return function(t){for(var n="M"+Ms(t[0][0])+","+Ts(t[0][1]),a=t.length,o=1;o<a;o++)n+=r(t[o-1],t[o],o===a-1);return n}};function Kk(e,r){var t=e.backoff,n=e.trace,a=e.d,o=e.i;if(t&&n&&n.marker&&n.marker.angle%360===0&&n.line&&n.line.shape!=="spline"){var i=mt.isArrayOrTypedArray(t),l=e,u=r?r[0]:Jk||0,s=r?r[1]:$k||0,f=l[0],c=l[1],p=f-u,x=c-s,g=Math.atan2(x,p),w=i?t[o]:t;if(w==="auto"){var M=l.i;n.type==="scatter"&&M--;var m=l.marker,k=m.symbol;mt.isArrayOrTypedArray(k)&&(k=k[M]);var S=m.size;mt.isArrayOrTypedArray(S)&&(S=S[M]),w=m?ur.symbolBackOffs[ur.symbolNumber(k)]*S:0,w+=ur.getMarkerStandoff(a[M],n)||0}var b=f-w*Math.cos(g),T=c-w*Math.sin(g);(b<=f&&b>=u||b>=f&&b<=u)&&(T<=c&&T>=s||T>=c&&T<=s)&&(e=[b,T])}return e}ur.applyBackoff=Kk;ur.makeTester=function(){var e=mt.ensureSingleById(xn.select("body"),"svg","js-plotly-tester",function(t){t.attr(yte.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=mt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});ur.tester=e,ur.testref=r};ur.savedBBoxes={};var Yy=0,Lte=1e4;ur.bBox=function(e,r,t){t||(t=zk(e));var n;if(t){if(n=ur.savedBBoxes[t],n)return mt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=zk(a),t){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var u=ur.bBox(a,!1,t);return o&&(u.left+=o,u.right+=o),i&&(u.top+=i,u.bottom+=i),u}if(t+="~"+o+"~"+i+"~"+l,n=ur.savedBBoxes[t],n)return mt.extendFlat({},n)}}var s,f;r?s=e:(f=ur.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),xn.select(s).attr("transform",null).call(f1.positionText,0,0);var c=s.getBoundingClientRect(),p=ur.testref.node().getBoundingClientRect();r||f.removeChild(s);var x={height:c.height,width:c.width,left:c.left-p.left,top:c.top-p.top,right:c.right-p.left,bottom:c.bottom-p.top};return Yy>=Lte&&(ur.savedBBoxes={},Yy=0),t&&(ur.savedBBoxes[t]=x),Yy++,mt.extendFlat({},x)};function zk(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}ur.setClipUrl=function(e,r,t){e.attr("clip-path",Zy(r,t))};function Zy(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}ur.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};ur.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||0,t=t||0,i=i.replace(n,"").trim(),i+=Wf(r,t),i=i.trim(),e[o]("transform",i),i};ur.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};ur.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||1,t=t||1,i=i.replace(n,"").trim(),i+="scale("+r+","+t+")",i=i.trim(),e[o]("transform",i),i};var Dte=/\s*sc.*/;ur.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(Dte,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var Rte=/translate\([^)]*\)\s*$/;ur.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=xn.select(this),o=a.select("text");if(o.node()){var i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),u=(a.attr("transform")||"").match(Rte);r===1&&t===1?n=[]:n=[Wf(i,l),"scale("+r+","+t+")",Wf(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function Jy(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}ur.getMarkerStandoff=Jy;var Xf=Math.atan2,ws=Math.cos,Z0=Math.sin;function Nk(e,r){var t=r[0],n=r[1];return[t*ws(e)-n*Z0(e),t*Z0(e)+n*ws(e)]}var qk,Bk,Ok,Uk,Xy,Wy;function $y(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!ml(t)||mt.isArrayOrTypedArray(t))&&(t=0));var n,a,o=r.marker.angleref;if(o==="previous"||o==="north"){if(r._geo){var i=r._geo.project(e.lonlat);n=i[0],a=i[1]}else{var l=r._xA,u=r._yA;if(l&&u)n=l.c2p(e.x),a=u.c2p(e.y);else return 90}if(r._geo){var s=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([s,f+1e-5]),p=r._geo.project([s+1e-5,f]),x=Xf(p[1]-a,p[0]-n),g=Xf(c[1]-a,c[0]-n),w;if(o==="north")w=t/180*Math.PI;else if(o==="previous"){var M=s/180*Math.PI,m=f/180*Math.PI,k=qk/180*Math.PI,S=Bk/180*Math.PI,b=k-M,T=ws(S)*Z0(b),h=Z0(S)*ws(m)-ws(S)*Z0(m)*ws(b);w=-Xf(T,h)-Math.PI,qk=s,Bk=f}var _=Nk(x,[ws(w),0]),y=Nk(g,[Z0(w),0]);t=Xf(_[1]+y[1],_[0]+y[0])/Math.PI*180,o==="previous"&&!(Wy===r.uid&&e.i===Xy+1)&&(t=null)}if(o==="previous"&&!r._geo)if(Wy===r.uid&&e.i===Xy+1&&ml(n)&&ml(a)){var v=n-Ok,A=a-Uk,d=r.line&&r.line.shape||"",D=d.slice(d.length-1);D==="h"&&(A=0),D==="v"&&(v=0),t+=Xf(A,v)/Math.PI*180+90}else t=null}return Ok=n,Uk=a,Xy=e.i,Wy=r.uid,t}ur.getMarkerAngle=$y});var Zf=xe((h5e,tS)=>{"use strict";var J0=nt(),Fte=it(),Pte=bn(),Ky=Cr(),As=rr(),jk=As.strTranslate,c1=Mt(),v1=Xr(),$0=Un(),eS=_h(),Ite=On().OPPOSITE_SIDE,rS=/ [XY][0-9]* /,Qy=1.6,jy=1.6;function zte(e,r,t){var n=e._fullLayout,a=t.propContainer,o=t.propName,i=t.placeholder,l=t.traceIndex,u=t.avoid||{},s=t.attributes,f=t.transform,c=t.containerGroup,p=1,x=a.title,g=(x&&x.text?x.text:"").trim(),w=!1,M=x&&x.font?x.font:{},m=M.family,k=M.size,S=M.color,b=M.weight,T=M.style,h=M.variant,_=M.textcase,y=M.lineposition,v=M.shadow,A=t.subtitlePropName,d=!!A,D=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},R=(E.text||"").trim(),z=!1,I=1,P=E.font,L=P.family,F=P.size,B=P.color,O=P.weight,V=P.style,K=P.variant,j=P.textcase,G=P.lineposition,q=P.shadow,J;o==="title.text"?J="titleText":o.indexOf("axis")!==-1?J="axisTitleText":o.indexOf("colorbar")!==-1&&(J="colorbarTitleText");var te=e._context.edits[J];function Z(Ce,le){return Ce===void 0||le===void 0?!1:Ce.replace(rS," % ")===le.replace(rS," % ")}g===""?p=0:Z(g,i)&&(te||(g=""),p=.2,w=!0),d&&(R===""?I=0:Z(R,D)&&(te||(R=""),I=.2,z=!0)),t._meta?g=As.templateString(g,t._meta):n._meta&&(g=As.templateString(g,n._meta));var ie=g||R||te,Q;c||(c=As.ensureSingle(n._infolayer,"g","g-"+r),Q=n._hColorbarMoveTitle);var re=c.selectAll("text."+r).data(ie?[0]:[]);re.enter().append("text"),re.text(g).attr("class",r),re.exit().remove();var ue=null,ee=r+"-subtitle",ae=R||te;if(d&&(ue=c.selectAll("text."+ee).data(ae?[0]:[]),ue.enter().append("text"),ue.text(R).attr("class",ee),ue.exit().remove()),!ie)return c;function ce(Ce,le){As.syncOrAsync([Te,ke],{title:Ce,subtitle:le})}function Te(Ce){var le=Ce.title,Y=Ce.subtitle,$;!f&&Q&&(f={}),f?($="",f.rotate&&($+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||Q)&&($+=jk(0,(f.offset||0)-(Q||0)))):$=null,le.attr("transform",$);function pe(ye){if(ye){var de=J0.select(ye.node().parentNode).select("."+ee);if(!de.empty()){var _e=ye.node().getBBox();if(_e.height){var Ae=_e.y+_e.height+Qy*F;de.attr("y",Ae)}}}}if(le.style("opacity",p*v1.opacity(S)).call(c1.font,{color:v1.rgb(S),size:J0.round(k,2),family:m,weight:b,style:T,variant:h,textcase:_,shadow:v,lineposition:y}).attr(s).call($0.convertToTspans,e,pe),Y&&!Y.empty()){var oe=c.select("."+r+"-math-group"),ve=le.node().getBBox(),he=oe.node()?oe.node().getBBox():void 0,me=he?he.y+he.height+Qy*F:ve.y+ve.height+jy*F,be=As.extendFlat({},s,{y:me});Y.attr("transform",$),Y.style("opacity",I*v1.opacity(B)).call(c1.font,{color:v1.rgb(B),size:J0.round(F,2),family:L,weight:O,style:V,variant:K,textcase:j,shadow:q,lineposition:G}).attr(be).call($0.convertToTspans,e)}return Pte.previousPromises(e)}function ke(Ce){var le=Ce.title,Y=J0.select(le.node().parentNode);if(u&&u.selection&&u.side&&g){Y.attr("transform",null);var $=Ite[u.side],pe=u.side==="left"||u.side==="top"?-1:1,oe=Fte(u.pad)?u.pad:2,ve=c1.bBox(Y.node()),he={t:0,b:0,l:0,r:0},me=e._fullLayout._reservedMargin;for(var be in me)for(var ye in me[be]){var de=me[be][ye];he[ye]=Math.max(he[ye],de)}var _e={left:he.l,top:he.t,right:n.width-he.r,bottom:n.height-he.b},Ae=u.maxShift||pe*(_e[u.side]-ve[u.side]),Pe=0;if(Ae<0)Pe=Ae;else{var Fe=u.offsetLeft||0,Ye=u.offsetTop||0;ve.left-=Fe,ve.right-=Fe,ve.top-=Ye,ve.bottom-=Ye,u.selection.each(function(){var Be=c1.bBox(this);As.bBoxIntersect(ve,Be,oe)&&(Pe=Math.max(Pe,pe*(Be[u.side]-ve[$])+oe))}),Pe=Math.min(Ae,Pe),a._titleScoot=Math.abs(Pe)}if(Pe>0||Ae<0){var qe={left:[-Pe,0],right:[Pe,0],top:[0,-Pe],bottom:[0,Pe]}[u.side];Y.attr("transform",jk(qe[0],qe[1]))}}}re.call(ce,ue);function Se(Ce,le){Ce.text(le).on("mouseover.opacity",function(){J0.select(this).transition().duration(eS.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){J0.select(this).transition().duration(eS.HIDE_PLACEHOLDER).style("opacity",0)})}if(te&&(g?re.on(".opacity",null):(Se(re,i),w=!0),re.call($0.makeEditable,{gd:e}).on("edit",function(Ce){l!==void 0?Ky.call("_guiRestyle",e,o,Ce,l):Ky.call("_guiRelayout",e,o,Ce)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ce)}).on("input",function(Ce){this.text(Ce||" ").call($0.positionText,s.x,s.y)}),d)){if(d&&!g){var ge=re.node().getBBox(),Le=ge.y+ge.height+jy*F;ue.attr("y",Le)}R?ue.on(".opacity",null):(Se(ue,D),z=!0),ue.call($0.makeEditable,{gd:e}).on("edit",function(Ce){Ky.call("_guiRelayout",e,"title.subtitle.text",Ce)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ce)}).on("input",function(Ce){this.text(Ce||" ").call($0.positionText,ue.attr("x"),ue.attr("y"))})}return re.classed("js-placeholder",w),ue&&!ue.empty()&&ue.classed("js-placeholder",z),c}tS.exports={draw:zte,SUBTITLE_PADDING_EM:jy,SUBTITLE_PADDING_MATHJAX_EM:Qy}});var x1=xe((d5e,lS)=>{"use strict";var Nte=nt(),qte=p0().utcFormat,Tt=rr(),Bte=Tt.numberFormat,ro=it(),bl=Tt.cleanNumber,Ote=Tt.ms2DateTime,nS=Tt.dateTime2ms,to=Tt.ensureNumber,aS=Tt.isArrayOrTypedArray,xl=pn(),h1=xl.FP_SAFE,Ti=xl.BADNUM,Ute=xl.LOG_CLIP,Hte=xl.ONEWEEK,d1=xl.ONEDAY,p1=xl.ONEHOUR,iS=xl.ONEMIN,oS=xl.ONESEC,g1=fn(),b1=mn(),y1=b1.HOUR_PATTERN,m1=b1.WEEKDAY_PATTERN;function Jf(e){return Math.pow(10,e)}function em(e){return e!=null}lS.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function o(b,T){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&T&&r.range&&r.range.length===2){var h=r.range[0],_=r.range[1];return .5*(h+_-2*Ute*Math.abs(h-_))}else return Ti}function i(b,T,h,_){if((_||{}).msUTC&&ro(b))return+b;var y=nS(b,h||r.calendar);if(y===Ti)if(ro(b)){b=+b;var v=Math.floor(Tt.mod(b+.05,1)*10),A=Math.round(b-v/10);y=nS(new Date(A))+v/10}else return Ti;return y}function l(b,T,h){return Ote(b,T,h||r.calendar)}function u(b){return r._categories[Math.round(b)]}function s(b){if(em(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var T=r._categories.length-1;return r._categoriesMap[b]=T,T}return Ti}function f(b,T){for(var h=new Array(T),_=0;_<T;_++){var y=(b[0]||[])[_],v=(b[1]||[])[_];h[_]=c([y,v])}return h}function c(b){if(r._categoriesMap)return r._categoriesMap[b]}function p(b){var T=c(b);if(T!==void 0)return T;if(ro(b))return+b}function x(b){return ro(b)?+b:c(b)}function g(b,T,h){return Nte.round(h+T*b,2)}function w(b,T,h){return(b-h)/T}var M=function(T){return ro(T)?g(T,r._m,r._b):Ti},m=function(b){return w(b,r._m,r._b)};if(r.rangebreaks){var k=a==="y";M=function(b){if(!ro(b))return Ti;var T=r._rangebreaks.length;if(!T)return g(b,r._m,r._b);var h=k;r.range[0]>r.range[1]&&(h=!h);for(var _=h?-1:1,y=_*b,v=0,A=0;A<T;A++){var d=_*r._rangebreaks[A].min,D=_*r._rangebreaks[A].max;if(y<d)break;if(y>D)v=A+1;else{v=y<(d+D)/2?A:A+1;break}}var E=r._B[v]||0;return isFinite(E)?g(b,r._m2,E):0},m=function(b){var T=r._rangebreaks.length;if(!T)return w(b,r._m,r._b);for(var h=0,_=0;_<T&&!(b<r._rangebreaks[_].pmin);_++)b>r._rangebreaks[_].pmax&&(h=_+1);return w(b,r._m2,r._B[h])}}r.c2l=r.type==="log"?o:to,r.l2c=r.type==="log"?Jf:to,r.l2p=M,r.p2l=m,r.c2p=r.type==="log"?function(b,T){return M(o(b,T))}:M,r.p2c=r.type==="log"?function(b){return Jf(m(b))}:m,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=bl,r.c2d=r.c2r=r.l2d=r.l2r=to,r.d2p=r.r2p=function(b){return r.l2p(bl(b))},r.p2d=r.p2r=m,r.cleanPos=to):r.type==="log"?(r.d2r=r.d2l=function(b,T){return o(bl(b),T)},r.r2d=r.r2c=function(b){return Jf(bl(b))},r.d2c=r.r2l=bl,r.c2d=r.l2r=to,r.c2r=o,r.l2d=Jf,r.d2p=function(b,T){return r.l2p(r.d2r(b,T))},r.p2d=function(b){return Jf(m(b))},r.r2p=function(b){return r.l2p(bl(b))},r.p2r=m,r.cleanPos=to):r.type==="date"?(r.d2r=r.r2d=Tt.identity,r.d2c=r.r2c=r.d2l=r.r2l=i,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,T,h){return r.l2p(i(b,0,h))},r.p2d=r.p2r=function(b,T,h){return l(m(b),T,h)},r.cleanPos=function(b){return Tt.cleanDate(b,Ti,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(b){var T=x(b);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=to,r.r2l=x,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return u(m(b))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:to(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(b){var T=p(b);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=to,r.r2l=p,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return u(m(b))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:to(b)},r.setupMultiCategory=function(b){var T=r._traceIndices,h,_,y=r._matchGroup;if(y&&r._categories.length===0){for(var v in y)if(v!==n){var A=t[g1.id2name(v)];T=T.concat(A._traceIndices)}}var d=[[0,{}],[0,{}]],D=[];for(h=0;h<T.length;h++){var E=b[T[h]];if(a in E){var R=E[a],z=E._length||Tt.minRowLength(R);if(aS(R[0])&&aS(R[1]))for(_=0;_<z;_++){var I=R[0][_],P=R[1][_];em(I)&&em(P)&&(D.push([I,P]),I in d[0][1]||(d[0][1][I]=d[0][0]++),P in d[1][1]||(d[1][1][P]=d[1][0]++))}}}for(D.sort(function(L,F){var B=d[0][1],O=B[L[0]]-B[F[0]];if(O)return O;var V=d[1][1];return V[L[1]]-V[F[1]]}),h=0;h<D.length;h++)s(D[h])}),r.fraction2r=function(b){var T=r.r2l(r.range[0]),h=r.r2l(r.range[1]);return r.l2r(T+b*(h-T))},r.r2fraction=function(b){var T=r.r2l(r.range[0]),h=r.r2l(r.range[1]);return(r.r2l(b)-T)/(h-T)},r.limitRange=function(b){var T=r.minallowed,h=r.maxallowed;if(!(T===void 0&&h===void 0)){b||(b="range");var _=Tt.nestedProperty(r,b).get(),y=Tt.simpleMap(_,r.r2l),v=y[1]<y[0];v&&y.reverse();var A=Tt.simpleMap([T,h],r.r2l);if(T!==void 0&&y[0]<A[0]&&(_[v?1:0]=T,y[0]=A[0]),h!==void 0&&y[1]>A[1]&&(_[v?0:1]=h,y[1]=A[1]),y[0]>=y[1])if(T!==void 0){var d=A[0]+1;h!==void 0&&(d=Math.min(d,A[1])),_[v?0:1]=r.l2r(d)}else h!==void 0&&(_[v?1:0]=r.l2r(A[1]-1))}},r.cleanRange=function(b,T){r._cleanRange(b,T),r.limitRange(b)},r._cleanRange=function(b,T){T||(T={}),b||(b="range");var h=Tt.nestedProperty(r,b).get(),_,y;if(r.type==="date"?y=Tt.dfltRange(r.calendar):a==="y"?y=b1.DFLTRANGEY:r._name==="realaxis"?y=[0,1]:y=T.dfltRange||b1.DFLTRANGEX,y=y.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(y[0]=0),!h||h.length!==2){Tt.nestedProperty(r,b).set(y);return}var v=h[0]===null,A=h[1]===null;for(r.type==="date"&&!r.autorange&&(h[0]=Tt.cleanDate(h[0],Ti,r.calendar),h[1]=Tt.cleanDate(h[1],Ti,r.calendar)),_=0;_<2;_++)if(r.type==="date"){if(!Tt.isDateTime(h[_],r.calendar)){r[b]=y;break}if(r.r2l(h[0])===r.r2l(h[1])){var d=Tt.constrain(r.r2l(h[0]),Tt.MIN_MS+1e3,Tt.MAX_MS-1e3);h[0]=r.l2r(d-1e3),h[1]=r.l2r(d+1e3);break}}else{if(!ro(h[_]))if(!(v||A)&&ro(h[1-_]))h[_]=h[1-_]*(_?10:.1);else{r[b]=y;break}if(h[_]<-h1?h[_]=-h1:h[_]>h1&&(h[_]=h1),h[0]===h[1]){var D=Math.max(1,Math.abs(h[0]*1e-6));h[0]-=D,h[1]+=D}}},r.setScale=function(b){var T=t._size;if(r.overlaying){var h=g1.getFromId({_fullLayout:t},r.overlaying);r.domain=h.domain}var _=b&&r._r?"_r":"range",y=r.calendar;r.cleanRange(_);var v=r.r2l(r[_][0],y),A=r.r2l(r[_][1],y),d=a==="y";if(d?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(v-A),r._b=-r._m*A):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(A-v),r._b=-r._m*v),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var D,E;if(r._rangebreaks=r.locateBreaks(Math.min(v,A),Math.max(v,A)),r._rangebreaks.length){for(D=0;D<r._rangebreaks.length;D++)E=r._rangebreaks[D],r._lBreaks+=Math.abs(E.max-E.min);var R=d;v>A&&(R=!R),R&&r._rangebreaks.reverse();var z=R?-1:1;for(r._m2=z*r._length/(Math.abs(A-v)-r._lBreaks),r._B.push(-r._m2*(d?A:v)),D=0;D<r._rangebreaks.length;D++)E=r._rangebreaks[D],r._B.push(r._B[r._B.length-1]-z*r._m2*(E.max-E.min));for(D=0;D<r._rangebreaks.length;D++)E=r._rangebreaks[D],E.pmin=M(E.min),E.pmax=M(E.max)}}if(!isFinite(r._m)||!isFinite(r._b)||r._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},r.maskBreaks=function(b){var T=r.rangebreaks||[],h,_,y,v,A;T._cachedPatterns||(T._cachedPatterns=T.map(function(B){return B.enabled&&B.bounds?Tt.simpleMap(B.bounds,B.pattern?bl:r.d2c):null})),T._cachedValues||(T._cachedValues=T.map(function(B){return B.enabled&&B.values?Tt.simpleMap(B.values,r.d2c).sort(Tt.sorterAsc):null}));for(var d=0;d<T.length;d++){var D=T[d];if(D.enabled){if(D.bounds){var E=D.pattern;switch(h=T._cachedPatterns[d],_=h[0],y=h[1],E){case m1:A=new Date(b),v=A.getUTCDay(),_>y&&(y+=7,v<_&&(v+=7));break;case y1:A=new Date(b);var R=A.getUTCHours(),z=A.getUTCMinutes(),I=A.getUTCSeconds(),P=A.getUTCMilliseconds();v=R+(z/60+I/3600+P/36e5),_>y&&(y+=24,v<_&&(v+=24));break;case"":v=b;break}if(v>=_&&v<y)return Ti}else for(var L=T._cachedValues[d],F=0;F<L.length;F++)if(_=L[F],y=_+D.dvalue,b>=_&&b<y)return Ti}}return b},r.locateBreaks=function(b,T){var h,_,y,v,A=[];if(!r.rangebreaks)return A;var d=r.rangebreaks.slice().sort(function(V,K){return V.pattern===m1&&K.pattern===y1?-1:K.pattern===m1&&V.pattern===y1?1:0}),D=function(V,K){if(V=Tt.constrain(V,b,T),K=Tt.constrain(K,b,T),V!==K){for(var j=!0,G=0;G<A.length;G++){var q=A[G];V<q.max&&K>=q.min&&(V<q.min&&(q.min=V),K>q.max&&(q.max=K),j=!1)}j&&A.push({min:V,max:K})}};for(h=0;h<d.length;h++){var E=d[h];if(E.enabled)if(E.bounds){var R=b,z=T;E.pattern&&(R=Math.floor(R)),_=Tt.simpleMap(E.bounds,E.pattern?bl:r.r2l),y=_[0],v=_[1];var I=new Date(R),P,L;switch(E.pattern){case m1:L=Hte,P=((v<y?7:0)+(v-y))*d1,R+=y*d1-(I.getUTCDay()*d1+I.getUTCHours()*p1+I.getUTCMinutes()*iS+I.getUTCSeconds()*oS+I.getUTCMilliseconds());break;case y1:L=d1,P=((v<y?24:0)+(v-y))*p1,R+=y*p1-(I.getUTCHours()*p1+I.getUTCMinutes()*iS+I.getUTCSeconds()*oS+I.getUTCMilliseconds());break;default:R=Math.min(_[0],_[1]),z=Math.max(_[0],_[1]),L=z-R,P=L}for(var F=R;F<z;F+=L)D(F,F+P)}else for(var B=Tt.simpleMap(E.values,r.d2c),O=0;O<B.length;O++)y=B[O],v=y+E.dvalue,D(y,v)}return A.sort(function(V,K){return V.min-K.min}),A},r.makeCalcdata=function(b,T,h){var _,y,v,A,d=r.type,D=d==="date"&&b[T+"calendar"];if(T in b){if(_=b[T],A=b._length||Tt.minRowLength(_),Tt.isTypedArray(_)&&(d==="linear"||d==="log")){if(A===_.length)return _;if(_.subarray)return _.subarray(0,A)}if(d==="multicategory")return f(_,A);for(y=new Array(A),v=0;v<A;v++)y[v]=r.d2c(_[v],0,D,h)}else{var E=T+"0"in b?r.d2c(b[T+"0"],0,D):0,R=b["d"+T]?Number(b["d"+T]):1;for(_=b[{x:"y",y:"x"}[T]],A=b._length||_.length,y=new Array(A),v=0;v<A;v++)y[v]=E+v*R}if(r.rangebreaks)for(v=0;v<A;v++)y[v]=r.maskBreaks(y[v]);return y},r.isValidRange=function(b,T){return Array.isArray(b)&&b.length===2&&(T&&b[0]===null||ro(r.r2l(b[0])))&&(T&&b[1]===null||ro(r.r2l(b[1])))},r.getAutorangeDflt=function(b,T){var h=!r.isValidRange(b,"nullOk");return h&&T&&T.reverseDflt?h="reversed":b&&(b[0]===null&&b[1]===null?h=!0:b[0]===null&&b[1]!==null?h="min":b[0]!==null&&b[1]===null&&(h="max")),h},r.isReversed=function(){var b=r.autorange;return b==="reversed"||b==="min reversed"||b==="max reversed"},r.isPtWithinRange=function(b,T){var h=r.c2l(b[a],null,T),_=r.r2l(r.range[0]),y=r.r2l(r.range[1]);return _<y?_<=h&&h<=y:y<=h&&h<=_},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var b=r._matchGroup;if(b){var T=null,h=null;for(var _ in b){var y=t[g1.id2name(_)];if(y._categories){T=y._categories,h=y._categoriesMap;break}}T&&h?(r._categories=T,r._categoriesMap=h):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var v=0;v<r._initialCategories.length;v++)s(r._initialCategories[v])},r.sortByInitialCategories=function(){var b=[];if(r._emptyCategories(),r._initialCategories)for(var T=0;T<r._initialCategories.length;T++)s(r._initialCategories[T]);b=b.concat(r._traceIndices);var h=r._matchGroup;for(var _ in h)if(n!==_){var y=t[g1.id2name(_)];y._categories=r._categories,y._categoriesMap=r._categoriesMap,b=b.concat(y._traceIndices)}return b};var S=t._d3locale;r.type==="date"&&(r._dateFormat=S?S.timeFormat:qte,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=S?S.numberFormat:Bte,delete r._minDtick,delete r._forceTick0}});var tm=xe((p5e,cS)=>{"use strict";var sS=it(),rm=rr(),Vte=pn().BADNUM,_1=rm.isArrayOrTypedArray,Gte=rm.isDateTime,Yte=rm.cleanNumber,uS=Math.round;cS.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(_1(a)&&!a.length)return"-";if(!o&&$te(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;l<a.length;l++)if(_1(a[l]))for(var u=0;u<a[l].length;u++)i.push(a[l][u]);a=i}if(Zte(a,t))return"date";var s=n.autotypenumbers!=="strict";return Jte(a,s)?"category":Wte(a,s)?"linear":"-"};function Xte(e,r){return r?sS(e):typeof e=="number"}function Wte(e,r){for(var t=e.length,n=0;n<t;n++)if(Xte(e[n],r))return!0;return!1}function Zte(e,r){for(var t=e.length,n=fS(t),a=0,o=0,i={},l=0;l<t;l+=n){var u=uS(l),s=e[u],f=String(s);i[f]||(i[f]=1,Gte(s,r)&&a++,sS(s)&&o++)}return a>o*2}function fS(e){return Math.max(1,(e-1)/1e3)}function Jte(e,r){for(var t=e.length,n=fS(t),a=0,o=0,i={},l=0;l<t;l+=n){var u=uS(l),s=e[u],f=String(s);if(!i[f]){i[f]=1;var c=typeof s;c==="boolean"?o++:(r?Yte(s)!==Vte:c==="number")?a++:c==="string"&&o++}}return o>a*2}function $te(e){return _1(e[0])&&_1(e[1])}});var K0=xe((g5e,bS)=>{"use strict";var Kte=nt(),pS=it(),_l=rr(),w1=pn().FP_SAFE,Qte=Cr(),jte=Mt(),gS=fn(),ene=gS.getFromId,rne=gS.isLinked;bS.exports={applyAutorangeOptions:mS,getAutoRange:nm,makePadFn:am,doAutoRange:nne,findExtremes:ane,concatExtremes:lm};function nm(e,r){var t,n,a=[],o=e._fullLayout,i=am(o,r,0),l=am(o,r,1),u=lm(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return _l.simpleMap(r.range,r.r2l);var c=s[0].val,p=f[0].val;for(t=1;t<s.length&&c===p;t++)c=Math.min(c,s[t].val);for(t=1;t<f.length&&c===p;t++)p=Math.max(p,f[t].val);var x=r.autorange,g=x==="reversed"||x==="min reversed"||x==="max reversed";if(!g&&r.range){var w=_l.simpleMap(r.range,r.r2l);g=w[1]<w[0]}r.autorange==="reversed"&&(r.autorange=!0);var M=r.rangemode,m=M==="tozero",k=M==="nonnegative",S=r._length,b=S/10,T=0,h,_,y,v,A,d;for(t=0;t<s.length;t++)for(h=s[t],n=0;n<f.length;n++)_=f[n],d=_.val-h.val-vS(r,h.val,_.val),d>0&&(A=S-i(h)-l(_),A>b?d/A>T&&(y=h,v=_,T=d/A):d/S>T&&(y={val:h.val,nopad:1},v={val:_.val,nopad:1},T=d/S));function D(P,L){return Math.max(P,l(L))}if(c===p){var E=c-1,R=c+1;if(m)if(c===0)a=[0,1];else{var z=(c>0?f:s).reduce(D,0),I=c/(1-Math.min(.5,z/S));a=c>0?[0,I]:[I,0]}else k?a=[Math.max(0,E),Math.max(1,R)]:a=[E,R]}else m?(y.val>=0&&(y={val:0,nopad:1}),v.val<=0&&(v={val:0,nopad:1})):k&&(y.val-T*i(y)<0&&(y={val:0,nopad:1}),v.val<=0&&(v={val:1,nopad:1})),T=(v.val-y.val-vS(r,h.val,_.val))/(S-i(y)-l(v)),a=[y.val-T*i(y),v.val+T*l(v)];return a=mS(a,r),r.limitRange&&r.limitRange(),g&&a.reverse(),_l.simpleMap(a,r.l2r||Number)}function vS(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),o=0;o<a.length;o++){var i=a[o];n+=i.max-i.min}return n}function am(e,r,t){var n=.05*r._length,a=r._anchorAxis||{};if((r.ticklabelposition||"").indexOf("inside")!==-1||(a.ticklabelposition||"").indexOf("inside")!==-1){var o=r.isReversed();if(!o){var i=_l.simpleMap(r.range,r.r2l);o=i[1]<i[0]}o&&(t=!t)}var l=0;return rne(e,r._id)||(l=tne(e,r,t)),n=Math.max(l,n),r.constrain==="domain"&&r._inputDomain&&(n*=(r._inputDomain[1]-r._inputDomain[0])/(r.domain[1]-r.domain[0])),function(s){return s.nopad?0:s.pad+(s.extrapad?n:l)}}var hS=3;function tne(e,r,t){var n=0,a=r._id.charAt(0)==="x";for(var o in e._plots){var i=e._plots[o];if(!(r._id!==i.xaxis._id&&r._id!==i.yaxis._id)){var l=(a?i.yaxis:i.xaxis)||{};if((l.ticklabelposition||"").indexOf("inside")!==-1&&(!t&&(l.side==="left"||l.side==="bottom")||t&&(l.side==="top"||l.side==="right"))){if(l._vals){var u=_l.deg2rad(l._tickAngles[l._id+"tick"]||0),s=Math.abs(Math.cos(u)),f=Math.abs(Math.sin(u));if(!l._vals[0].bb){var c=l._id+"tick",p=l._selections[c];p.each(function(k){var S=Kte.select(this),b=S.select(".text-math-group");b.empty()&&(k.bb=jte.bBox(S.node()))})}for(var x=0;x<l._vals.length;x++){var g=l._vals[x],w=g.bb;if(w){var M=2*hS+w.width,m=2*hS+w.height;n=Math.max(n,a?Math.max(M*s,m*f):Math.max(m*s,M*f))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(n+=l.ticklen||0)}}}return n}function lm(e,r,t){var n=r._id,a=e._fullData,o=e._fullLayout,i=[],l=[],u,s,f;function c(M,m){for(u=0;u<m.length;u++){var k=M[m[u]],S=(k._extremes||{})[n];if(k.visible===!0&&S){for(s=0;s<S.min.length;s++)f=S.min[s],im(i,f.val,f.pad,{extrapad:f.extrapad});for(s=0;s<S.max.length;s++)f=S.max[s],om(l,f.val,f.pad,{extrapad:f.extrapad})}}}if(c(a,r._traceIndices),c(o.annotations||[],r._annIndices||[]),c(o.shapes||[],r._shapeIndices||[]),r._matchGroup&&!t){for(var p in r._matchGroup)if(p!==r._id){var x=ene(e,p),g=lm(e,x,!0),w=r._length/x._length;for(s=0;s<g.min.length;s++)f=g.min[s],im(i,f.val,f.pad*w,{extrapad:f.extrapad});for(s=0;s<g.max.length;s++)f=g.max[s],om(l,f.val,f.pad*w,{extrapad:f.extrapad})}}return{min:i,max:l}}function nne(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():nm(e,r),r._r=r.range.slice(),r._rl=_l.simpleMap(r._r,r.r2l);var n=r._input,a={};a[r._attr+".range"]=r.range,a[r._attr+".autorange"]=r.autorange,Qte.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,a),n.range=r.range.slice(),n.autorange=r.autorange}var o=r._anchorAxis;if(o&&o.rangeslider){var i=o.rangeslider[r._name];i&&i.rangemode==="auto"&&(i.range=nm(e,r)),o._input.rangeslider[r._name]=_l.extendFlat({},i)}}function ane(e,r,t){t||(t={}),e._m||e.setScale();var n=[],a=[],o=r.length,i=t.padded||!1,l=t.tozero&&(e.type==="linear"||e.type==="-"),u=e.type==="log",s=!1,f=t.vpadLinearized||!1,c,p,x,g,w,M,m,k,S;function b(D){if(Array.isArray(D))return s=!0,function(R){return Math.max(Number(D[R]||0),0)};var E=Math.max(Number(D||0),0);return function(){return E}}var T=b((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),h=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),_=b(t.vpadplus||t.vpad),y=b(t.vpadminus||t.vpad);if(!s){if(k=1/0,S=-1/0,u)for(c=0;c<o;c++)p=r[c],p<k&&p>0&&(k=p),p>S&&p<w1&&(S=p);else for(c=0;c<o;c++)p=r[c],p<k&&p>-w1&&(k=p),p>S&&p<w1&&(S=p);r=[k,S],o=2}var v={tozero:l,extrapad:i};function A(D){x=r[D],pS(x)&&(M=T(D),m=h(D),f?(g=e.c2l(x)-y(D),w=e.c2l(x)+_(D)):(k=x-y(D),S=x+_(D),u&&k<S/10&&(k=S/10),g=e.c2l(k),w=e.c2l(S)),l&&(g=Math.min(0,g),w=Math.max(0,w)),dS(g)&&im(n,g,m,v),dS(w)&&om(a,w,M,v))}var d=Math.min(6,o);for(c=0;c<d;c++)A(c);for(c=o-1;c>=d;c--)A(c);return{min:n,max:a,opts:t}}function im(e,r,t,n){yS(e,r,t,n,ine)}function om(e,r,t,n){yS(e,r,t,n,one)}function yS(e,r,t,n,a){for(var o=n.tozero,i=n.extrapad,l=!0,u=0;u<e.length&&l;u++){var s=e[u];if(a(s.val,r)&&s.pad>=t&&(s.extrapad||!i)){l=!1;break}else a(r,s.val)&&s.pad<=t&&(i||!s.extrapad)&&(e.splice(u,1),u--)}if(l){var f=o&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:i})}}function dS(e){return pS(e)&&Math.abs(e)<w1}function ine(e,r){return e<=r}function one(e,r){return e>=r}function lne(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&M1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&M1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function sne(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&M1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&M1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function M1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function mS(e,r){if(!r||!r.autorangeoptions)return e;var t=e[0],n=e[1],a=r.autorangeoptions.include;if(a!==void 0){var o=r.d2l(t),i=r.d2l(n);_l.isArrayOrTypedArray(a)||(a=[a]);for(var l=0;l<a.length;l++){var u=r.d2l(a[l]);o>=u&&(o=u,t=u),i<=u&&(i=u,n=u)}}return t=lne(t,r),n=sne(n,r),[t,n]}});var Bt=xe((m5e,HS)=>{"use strict";var Ka=nt(),jt=it(),Q0=bn(),Kf=Cr(),kr=rr(),j0=kr.strTranslate,ks=Un(),une=Zf(),Qf=Xr(),Da=Mt(),fne=$a(),xS=Ay(),y5e=mn(),In=pn(),cne=In.ONEMAXYEAR,k1=In.ONEAVGYEAR,S1=In.ONEMINYEAR,vne=In.ONEMAXQUARTER,cm=In.ONEAVGQUARTER,C1=In.ONEMINQUARTER,hne=In.ONEMAXMONTH,eu=In.ONEAVGMONTH,E1=In.ONEMINMONTH,Ra=In.ONEWEEK,ra=In.ONEDAY,wl=ra/2,ao=In.ONEHOUR,jf=In.ONEMIN,L1=In.ONESEC,dne=In.ONEMILLI,pne=In.ONEMICROSEC,Ss=In.MINUS_SIGN,R1=In.BADNUM,vm={K:"zeroline"},hm={K:"gridline",L:"path"},dm={K:"minor-gridline",L:"path"},DS={K:"tick",L:"path"},_S={K:"tick",L:"text"},wS={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},F1=On(),$f=F1.MID_SHIFT,Cs=F1.CAP_SHIFT,ec=F1.LINE_SPACING,gne=F1.OPPOSITE_SIDE,D1=3,nr=HS.exports={};nr.setConvert=x1();var yne=tm(),io=fn(),mne=io.idSort,bne=io.isLinked;nr.id2name=io.id2name;nr.name2id=io.name2id;nr.cleanId=io.cleanId;nr.list=io.list;nr.listIds=io.listIds;nr.getFromId=io.getFromId;nr.getFromTrace=io.getFromTrace;var RS=K0();nr.getAutoRange=RS.getAutoRange;nr.findExtremes=RS.findExtremes;var xne=1e-4;function mm(e){var r=(e[1]-e[0])*xne;return[e[0]-r,e[1]+r]}function _ne(e,r,t){if(![t,e,r].every(jt)||t===0)return e;let n=Math.round((e-r)/t),a=r+n*t;return e!==a&&Math.abs(e-a)<Math.abs(t)*1e-6?a:e}nr.coerceRef=function(e,r,t,n,a,o){var i=n.charAt(n.length-1),l=t._fullLayout._subplots[i+"axis"],u=n+"ref",s={};return a||(a=l[0]||(typeof o=="string"?o:o[0])),o||(o=a),l=l.concat(l.map(function(f){return f+" domain"})),s[u]={valType:"enumerated",values:l.concat(o?typeof o=="string"?[o]:o:[]),dflt:a},kr.coerce(e,r,s,u)};nr.coerceRefArray=function(e,r,t,n,a,o,i){let l=n.charAt(n.length-1);var u=t._fullLayout._subplots[l+"axis"];let s=n+"ref";var f=e[s];a||(a=u[0]||(typeof o=="string"?o:o[0])),u=u.concat(u.map(p=>p+" domain")),u=u.concat(o||[]),f.length>i?(kr.warn("Array attribute "+s+" has more entries than expected, truncating to "+i),f=f.slice(0,i)):f.length<i&&(kr.warn("Array attribute "+s+" has fewer entries than expected, extending with default value"),f=f.concat(Array(i-f.length).fill(a)));for(var c=0;c<f.length;c++)f[c]=io.cleanId(f[c],l,!0)||f[c],u.includes(f[c])||(f[c]=a);return r[s]=f,f};nr.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};nr.coercePosition=function(e,r,t,n,a,o){var i,l,u=nr.getRefType(n);if(u!=="range")i=kr.ensureNumber,l=t(a,o);else{var s=nr.getFromId(r,n);o=s.fraction2r(o),l=t(a,o),i=s.cleanPos}e[a]=i(l)};nr.cleanPosition=function(e,r,t){var n=t==="paper"||t==="pixel"?kr.ensureNumber:nr.getFromId(r,t).cleanPos;return n(e)};nr.redrawComponents=function(e,r){r=r||nr.listIds(e);var t=e._fullLayout;function n(a,o,i,l){for(var u=Kf.getComponentMethod(a,o),s={},f=0;f<r.length;f++)for(var c=t[nr.id2name(r[f])],p=c[i],x=0;x<p.length;x++){var g=p[x];if(!s[g]&&(u(e,g),s[g]=1,l))return}}n("annotations","drawOne","_annIndices"),n("shapes","drawOne","_shapeIndices"),n("images","draw","_imgIndices",!0),n("selections","drawOne","_selectionIndices")};var wne=nr.getDataConversions=function(e,r,t,n){var a,o=t==="x"||t==="y"||t==="z"?t:n;if(kr.isArrayOrTypedArray(o)){if(a={type:yne(n,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},nr.setConvert(a),a.type==="category")for(var i=0;i<n.length;i++)a.d2c(n[i])}else a=nr.getFromTrace(e,r,o);return a?{d2c:a.d2c,c2d:a.c2d}:o==="ids"?{d2c:TS,c2d:TS}:{d2c:MS,c2d:MS}};function MS(e){return+e}function TS(e){return String(e)}nr.getDataToCoordFunc=function(e,r,t,n){return wne(e,r,t,n).d2c};nr.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};nr.minDtick=function(e,r,t,n){["log","category","multicategory"].indexOf(e.type)!==-1||!n?e._minDtick=0:e._minDtick===void 0?(e._minDtick=r,e._forceTick0=t):e._minDtick&&((e._minDtick/r+1e-6)%1<2e-6&&((t-e._forceTick0)/r%1+1.000001)%1<2e-6?(e._minDtick=r,e._forceTick0=t):((r/e._minDtick+1e-6)%1>2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};nr.saveRangeInitial=function(e,r){for(var t=nr.list(e,"",!0),n=!1,a=0;a<t.length;a++){var o=t[a],i=o._rangeInitial0===void 0&&o._rangeInitial1===void 0,l=i||o.range[0]!==o._rangeInitial0||o.range[1]!==o._rangeInitial1,u=o.autorange;(i&&u!==!0||r&&l)&&(o._rangeInitial0=u==="min"||u==="max reversed"?void 0:o.range[0],o._rangeInitial1=u==="max"||u==="min reversed"?void 0:o.range[1],o._autorangeInitial=u,n=!0)}return n};nr.saveShowSpikeInitial=function(e,r){for(var t=nr.list(e,"",!0),n=!1,a="on",o=0;o<t.length;o++){var i=t[o],l=i._showSpikeInitial===void 0,u=l||i.showspikes!==i._showspikes;(l||r&&u)&&(i._showSpikeInitial=i.showspikes,n=!0),a==="on"&&!i.showspikes&&(a="off")}return e._fullLayout._cartesianSpikesEnabled=a,n};nr.autoBin=function(e,r,t,n,a,o){var i=kr.aggNums(Math.min,null,e),l=kr.aggNums(Math.max,null,e);if(r.type==="category"||r.type==="multicategory")return{start:i-.5,end:l+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:l-i};a||(a=r.calendar);var u;if(r.type==="log"?u={type:"linear",range:[i,l]}:u={type:r.type,range:kr.simpleMap([i,l],r.c2r,0,a),calendar:a},nr.setConvert(u),o=o&&xS.dtick(o,u.type),o)u.dtick=o,u.tick0=xS.tick0(void 0,u.type,a);else{var s;if(t)s=(l-i)/t;else{var f=kr.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),p=c*kr.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);s=Math.max(p,2*kr.stdev(e)/Math.pow(e.length,n?.25:.4)),jt(s)||(s=1)}nr.autoTicks(u,s)}var x=u.dtick,g=nr.tickIncrement(nr.tickFirst(u),x,"reverse",a),w,M;if(typeof x=="number")g=Mne(g,e,u,i,l),M=1+Math.floor((l-g)/x),w=g+M*x;else for(u.dtick.charAt(0)==="M"&&(g=Tne(g,e,x,i,a)),w=g,M=0;w<=l;)w=nr.tickIncrement(w,x,!1,a),M++;return{start:r.c2r(g,0,a),end:r.c2r(w,0,a),size:x,_dataSpan:l-i}};function Mne(e,r,t,n,a){var o=0,i=0,l=0,u=0;function s(x){return(1+(x-e)*100/t.dtick)%100<2}for(var f=0;f<r.length;f++)r[f]%1===0?l++:jt(r[f])||u++,s(r[f])&&o++,s(r[f]+t.dtick/2)&&i++;var c=r.length-u;if(l===c&&t.type!=="date")t.dtick<1?e=n-.5*t.dtick:(e-=.5,e+t.dtick<n&&(e+=t.dtick));else if(i<c*.1&&(o>c*.3||s(n)||s(a))){var p=t.dtick/2;e+=e+p<n?p:-p}return e}function Tne(e,r,t,n,a){var o=kr.findExactDates(r,a),i=.8;if(o.exactDays>i){var l=Number(t.slice(1));o.exactYears>i&&l%12===0?e=nr.tickIncrement(e,"M6","reverse")+ra*1.5:o.exactMonths>i?e=nr.tickIncrement(e,"M1","reverse")+ra*15.5:e-=wl;var u=nr.tickIncrement(e,t);if(u<=n)return u}return e}nr.prepMinorTicks=function(e,r,t){var c,p;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var n=r.dtick&&jt(r._tmin),a;if(n){var o=nr.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=kr.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=kr.simpleMap(a,r.l2r),e._isMinor=!0,nr.prepTicks(e,t),n){var l=jt(r.dtick),u=jt(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?sm(s,f)?s===2*Ra&&f===2*ra&&(e.dtick=Ra):s===2*Ra&&f===3*ra?e.dtick=Ra:s===Ra&&!(r._input.minor||{}).nticks?e.dtick=ra:AS(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":sm(s,f)?s>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?sm(s,f)||(e.dtick=AS(s/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((p=r.minor)==null?void 0:p._tick0Init)===void 0&&(e.tick0=r.tick0)};function sm(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function AS(e,r){return Math.abs(e/r-1)<.001}nr.prepTicks=function(e,r){var t=kr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?kr.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=kr.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,nr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<e._minDtick*2&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}e.ticklabelmode==="period"&&Ane(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),zS(e)};function um(e){return+e.substring(1)}function Ane(e){var r;function t(){return!(jt(e.dtick)||e.dtick.charAt(0)!=="M")}var n=t(),a=nr.getTickFormat(e);if(a){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(r=ao,o&&!n&&e.dtick<ao&&(e.dtick=ao)):/%p/.test(a)?(r=wl,o&&!n&&e.dtick<wl&&(e.dtick=wl)):/%[Aadejuwx]/.test(a)?(r=ra,o&&!n&&e.dtick<ra&&(e.dtick=ra)):/%[UVW]/.test(a)?(r=Ra,o&&!n&&e.dtick<Ra&&(e.dtick=Ra)):/%[Bbm]/.test(a)?(r=eu,o&&(n?um(e.dtick)<1:e.dtick<E1)&&(e.dtick="M1")):/%[q]/.test(a)?(r=cm,o&&(n?um(e.dtick)<3:e.dtick<C1)&&(e.dtick="M3")):/%[Yy]/.test(a)&&(r=k1,o&&(n?um(e.dtick)<12:e.dtick<S1)&&(e.dtick="M12")))}n=t(),n&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function kne(e,r,t){for(var n=0;n<e.length;n++){var a=e[n].value,o=n,i=n+1;n<e.length-1?(o=n,i=n+1):n>0?(o=n-1,i=n):(o=n,i=n);var l=e[o].value,u=e[i].value,s=Math.abs(u-l),f=t||s,c=0;f>=S1?s>=S1&&s<=cne?c=s:c=k1:t===cm&&f>=C1?s>=C1&&s<=vne?c=s:c=cm:f>=E1?s>=E1&&s<=hne?c=s:c=eu:t===Ra&&f>=Ra?c=Ra:f>=ra?c=ra:t===wl&&f>=wl?c=wl:t===ao&&f>=ao&&(c=ao);var p;c>=s&&(c=s,p=!0);var x=a+c;if(r.rangebreaks&&c>0){for(var g=84,w=0,M=0;M<g;M++){var m=(M+.5)/g;r.maskBreaks(a*(1-m)+m*x)!==R1&&w++}c*=w/g,c||(e[n].drop=!0),p&&s>Ra&&(c=s)}(c>0||n===0)&&(e[n].periodX=a+c/2)}}nr.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,o=r.ticklabelstep,i=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||kr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=kr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]<s[0],c=Math.min(s[0],s[1]),p=Math.max(s[0],s[1]),x=Math.max(1e3,r._length||0),g=[],w=[],M=[],m=[],k=[],S=r.minor&&(r.minor.ticks||r.minor.showgrid),b=S||u,T=1;T>=(b?0:1);T--){var h=!T;T?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var _=T?r:kr.extendFlat({},r,b?r.minor:{minor:{}});if(h?nr.prepMinorTicks(_,r,t):nr.prepTicks(_,t),_.tickmode==="array"){T?(M=[],g=kS(r,!h)):(m=[],w=kS(r,!h));continue}if(_.tickmode==="sync"){M=[],g=Sne(r);continue}var y=mm(s),v=y[0],A=y[1],d=jt(_.dtick),D=n==="log"&&!(d||_.dtick.charAt(0)==="L"),E=nr.tickFirst(_,t);if(T){if(r._tmin=E,E<v!==f)break;(n==="category"||n==="multicategory")&&(A=f?Math.max(-.5,A):Math.min(r._categories.length-.5,A))}var R=null,z=E,I;if(T){var P;d?P=r.dtick:n==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(P=eu*r.dtick.substring(1)):P=r._roughDTick,I=Math.round((r.r2l(z)-r.r2l(r.tick0))/P)-1}var L=_.dtick,F=n==="linear"?_.r2l(_.tick0):void 0;for(_.rangebreaks&&_._tick0Init!==_.tick0&&(z=fm(z,r),f||(z=nr.tickIncrement(z,L,!f,a))),(T||u)&&i&&(z=nr.tickIncrement(z,L,!f,a),T&&I--);f?z>=A:z<=A;z=nr.tickIncrement(z,L,f,a)){if(T&&I++,_.rangebreaks&&!f){if(z<v)continue;if(_.maskBreaks(z)===R1&&fm(z,_)>=p)break}if(M.length>x||z===R)break;R=z;var B={value:_ne(z,F,L)};T?(z===E&&(B.first=!0),D&&z!==(z|0)&&(B.simpleLabel=!0),o>1&&I%o&&(B.skipLabel=!0),M.push(B)):(B.minor=!0,m.push(B))}}if(!m||m.length<3)u=!1;else{var O=(m[2].value-m[1].value)*(l?-1:1);Qne(O,r.tickformat)||(u=!1,m=m.slice(1))}if(!u)k=M;else{var V=M.concat(m);i&&M.length&&(V=V.slice(1)),V=V.sort(function(le,Y){return le.value-Y.value}).filter(function(le,Y,$){return Y===0||le.value!==$[Y-1].value});var K=V.map(function(le,Y){return le.minor===void 0&&!le.skipLabel?Y:null}).filter(function(le){return le!==null});K.forEach(function(le){u.map(function(Y){var $=le+Y;$>=0&&$<V.length&&kr.pushUnique(k,V[$])})}),M.forEach(function(le){le.skipLabel=k.indexOf(le)===-1})}if(S){var j=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!j){for(var G=M.map(function(le){return le.value}),q=[],J=0;J<m.length;J++){var te=m[J],Z=te.value;if(G.indexOf(Z)===-1){for(var ie=!1,Q=0;!ie&&Q<M.length;Q++)1e7+M[Q].value===1e7+Z&&(ie=!0);ie||q.push(te)}}m=q}}i&&kne(k,r,r._definedDelta);var re;if(r.rangebreaks){var ue=r._id.charAt(0)==="y",ee=1;r.tickmode==="auto"&&(ee=r.tickfont?r.tickfont.size:12);var ae=NaN;for(re=M.length-1;re>-1;re--){if(M[re].drop){M.splice(re,1);continue}M[re].value=fm(M[re].value,r);var ce=r.c2p(M[re].value);(ue?ae>ce-ee:ae<ce+ee)?M.splice(f?re+1:re,1):ae=ce}}wm(r)&&Math.abs(s[1]-s[0])===360&&M.pop(),r._tmax=(M[M.length-1]||{}).value,M.length&&(M[M.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var Te,ke=function(le){le.text="",r._prevDateHead=Te};M=M.concat(m);function Se(le,Y){var $=nr.tickText(le,Y.value,!1,Y.simpleLabel,{first:Y.first,last:Y.last}),pe=Y.periodX;return pe!==void 0&&($.periodX=pe,(pe>p||pe<c)&&(pe>p&&($.periodX=p),pe<c&&($.periodX=c),ke($))),$}var ge;for(re=0;re<M.length;re++){var Le=M[re].minor,Ce=M[re].value;Le?(u&&k.indexOf(M[re])!==-1?ge=Se(r,M[re]):ge={x:Ce},ge.minor=!0,w.push(ge)):(Te=r._prevDateHead,ge=Se(r,M[re]),M[re].skipLabel&&ke(ge),g.push(ge))}return i&&u&&w.length&&(w[0].noTick=!0),g=g.concat(w),r._inCalcTicks=!1,i&&g.length&&(g[0].noTick=!0),g};function FS(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==R1})),r}function Sne(e){var r=e._mainAxis,t=[];if(r._vals){for(var n=-1,a=-1,o=0;o<r._vals.length;o++)r._vals[o].noTick||r._vals[o].minor||(n===-1&&(n=o),a=o);for(var i=0;i<r._vals.length;i++)if(!r._vals[i].noTick){var l=r.l2p(r._vals[i].x),u=e.p2l(l),s=nr.tickText(e,u,!1,void 0,{first:i===n,last:i===a});r._vals[i].minor&&(s.minor=!0,s.text=""),t.push(s)}}return t=FS(e,t),t}function kS(e,r){var t=kr.simpleMap(e.range,e.r2l),n=mm(t),a=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),i=e.type==="category"?e.d2l_noadd:e.d2l;e.type==="log"&&String(e.dtick).charAt(0)!=="L"&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var l=[],u=0;u<=1;u++)if(!(r!==void 0&&(r&&u||r===!1&&!u))&&!(u&&!e.minor)){var s=u?e.minor.tickvals:e.tickvals,f=u?[]:e.ticktext;if(s){kr.isArrayOrTypedArray(f)||(f=[]);var c=-1,p=-1;if(!u)for(var x=0;x<s.length;x++){var g=i(s[x]);g>a&&g<o&&(c===-1&&(c=x),p=x)}for(var w=0;w<s.length;w++){var M=i(s[w]);if(M>a&&M<o){var m=nr.tickText(e,M,!1,String(f[w]),{first:w===c,last:w===p});u&&(m.minor=!0,m.text=""),l.push(m)}}}}return l=FS(e,l),l}var T1=[2,5,10],SS=[1,2,3,6,12],CS=[1,2,5,10,15,30],Cne=[1,2,3,7,14],PS=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],IS=[-.301,0,.301,.699,1],Ene=[15,30,45,90,180];function no(e,r,t){return r*kr.roundUp(e/r,t)}nr.autoTicks=function(e,r,t){var n;function a(c){return Math.pow(c,Math.floor(Math.log(r)/Math.LN10))}if(e.type==="date"){e.tick0=kr.dateTick0(e.calendar,0);var o=2*r;if(o>k1)r/=k1,n=a(10),e.dtick="M"+12*no(r,n,T1);else if(o>eu)r/=eu,e.dtick="M"+no(r,1,SS);else if(o>ra){if(e.dtick=no(r,ra,e._hasDayOfWeekBreaks?[1,2,7,14]:Cne),!t){var i=nr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=kr.dateTick0(e.calendar,2):e.tick0=kr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>ao?e.dtick=no(r,ao,SS):o>jf?e.dtick=no(r,jf,CS):o>L1?e.dtick=no(r,L1,CS):(n=a(10),e.dtick=no(r,n,T1))}else if(e.type==="log"){e.tick0=0;var u=kr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(u[1]-u[0])<1){var s=1.5*Math.abs((u[1]-u[0])/r);r=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/s,n=a(10),e.dtick="L"+no(r,n,T1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):wm(e)?(e.tick0=0,n=1,e.dtick=no(r,n,Ene)):(e.tick0=0,n=a(10),e.dtick=no(r,n,T1));if(e.dtick===0&&(e.dtick=1),!jt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function zS(e){var r=e.dtick;if(e._tickexponent=0,!jt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=ra&&a<=10||r>=ra*15)e._tickround="d";else if(r>=jf&&a<=16||r>=ao)e._tickround="M";else if(r>=L1&&a<=19||r>=jf)e._tickround="S";else{var o=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(jt(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);jt(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(i[0]),Math.abs(i[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),s=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>s&&(ru(e.exponentformat)&&e.exponentformat!=="SI extended"&&!bm(u)||ru(e.exponentformat)&&e.exponentformat==="SI extended"&&!xm(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}nr.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(jt(r))return kr.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.slice(1));if(o==="M")return kr.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?IS:PS,u=e+a*.01,s=kr.roundUp(kr.mod(u,1),l,t);return Math.floor(u)+Math.log(Ka.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};nr.tickFirst=function(e,r){var t=e.r2l||Number,n=kr.simpleMap(e.range,t,void 0,void 0,r),a=n[1]<n[0],o=a?Math.floor:Math.ceil,i=mm(n)[0],l=e.dtick,u=t(e.tick0);if(jt(l)){var s=o((i-u)/l)*l+u;return(e.type==="category"||e.type==="multicategory")&&(s=kr.constrain(s,0,e._categories.length-1)),s}var f=l.charAt(0),c=Number(l.slice(1));if(f==="M"){for(var p=0,x=u,g,w,M;p<10;){if(g=nr.tickIncrement(x,l,a,e.calendar),(g-i)*(x-i)<=0)return a?Math.min(x,g):Math.max(x,g);w=(i-(x+g)/2)/(g-x),M=f+(Math.abs(Math.round(w))||1)*c,x=nr.tickIncrement(x,M,w<0?!a:a,e.calendar),p++}return kr.error("tickFirst did not converge",e),x}else{if(f==="L")return Math.log(o((Math.pow(10,i)-u)/c)*c+u)/Math.LN10;if(f==="D"){var m=l==="D2"?IS:PS,k=kr.roundUp(kr.mod(i,1),m,a);return Math.floor(i)+Math.log(Ka.round(Math.pow(10,k),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}};nr.tickText=function(e,r,t,n,a){var o=!!(a!=null&&a.first),i=!!(a!=null&&a.last),l=NS(e,r),u=e.tickmode==="array",s=t||u,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,p,x=function(S){var b=e.l2p(S);return b>=0&&b<=e._length?S:null};if(u&&kr.isArrayOrTypedArray(e.ticktext)){var g=kr.simpleMap(e.range,e.r2l),w=(Math.abs(g[1]-g[0])-(e._lBreaks||0))/1e4;for(p=0;p<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[p]))<w);p++);if(p<e.ticktext.length)return l.text=String(e.ticktext[p]),l.xbnd=[x(l.x-.5),x(l.x+e.dtick-.5)],l}function M(S){return S===void 0?!0:t?S==="none":S==="all"?!1:S==="first"?!o:S==="last"?!i:!0}var m=t?"never":e.exponentformat!=="none"&&M(e.showexponent)?"hide":"";if(f==="date"?Lne(e,l,t,s):f==="log"?Dne(e,l,t,s,m):f==="category"?Rne(e,l):f==="multicategory"?Fne(e,l,t):wm(e)?Ine(e,l,t,s,m):Pne(e,l,t,s,m),n||(e.tickprefix&&!M(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!M(e.showticksuffix)&&(l.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(l.text)){var k=e.labelalias[l.text];typeof k=="string"&&(l.text=k)}return(e.tickson==="boundaries"||e.showdividers)&&(l.xbnd=[x(l.x-.5),x(l.x+e.dtick-.5)]),l};nr.hoverLabelText=function(e,r,t){t&&(e=kr.extendFlat({},e,{hoverformat:t}));var n=kr.isArrayOrTypedArray(r)?r[0]:r,a=kr.isArrayOrTypedArray(r)?r[1]:void 0;if(a!==void 0&&a!==n)return nr.hoverLabelText(e,n,t)+" - "+nr.hoverLabelText(e,a,t);var o=e.type==="log"&&n<=0,i=nr.tickText(e,e.c2l(o?-n:n),"hover").text;return o?n===0?"0":Ss+i:i};function NS(e,r,t){var n=e.tickfont||{};return{x:r,dx:0,dy:0,text:t||"",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}}function Lne(e,r,t,n){var a=e._tickround,o=t&&e.hoverformat||nr.getTickFormat(e);n=!o&&n,n&&(jt(a)?a=4:a={y:"m",m:"d",d:"M",M:"S",S:4}[a]);var i=kr.formatDate(r.x,o,a,e._dateFormat,e.calendar,e._extraFormat),l,u=i.indexOf(`
`);if(u!==-1&&(l=i.slice(u+1),i=i.slice(0,u)),n&&(l!==void 0&&(i==="00:00:00"||i==="00:00")?(i=l,l=""):i.length===8&&(i=i.replace(/:00$/,""))),l)if(t)a==="d"?i+=", "+l:i=l+(i?", "+i:"");else if(!e._inCalcTicks||e._prevDateHead!==l)e._prevDateHead=l,i+="<br>"+l;else{var s=tc(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="<br> ")}r.text=i}function Dne(e,r,t,n,a){var o=e.dtick,i=r.x,l=e.tickformat,u=typeof o=="string"&&o.charAt(0);if(a==="never"&&(a=""),n&&u!=="L"&&(o="L3",u="L"),l||u==="L")r.text=rc(Math.pow(10,i),e,a,n);else if(jt(o)||u==="D"&&(e.minorloglabels==="complete"||kr.mod(i+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(kr.mod(i+.01,1)<.1)&&(s=!0,r.fontSize*=.75);var f=Math.pow(10,i).toExponential(0),c=f.split("e"),p=+c[1],x=Math.abs(p),g=e.exponentformat;g==="power"||ru(g)&&g!=="SI extended"&&bm(p)||ru(g)&&g==="SI extended"&&xm(p)?(r.text=c[0],x>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),p!==0&&p!==1&&(r.text+="<sup>"+(p>0?"":Ss)+x+"</sup>"),r.fontSize*=1.25):(g==="e"||g==="E")&&x>2?r.text=c[0]+g+(p>0?"+":Ss)+x:(r.text=rc(Math.pow(10,i),e,"","fakehover"),o==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(u==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,kr.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var w=String(r.text).charAt(0);(w==="0"||w==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(i<0?.5:.25)))}}function Rne(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Fne(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],o=a[1]===void 0?"":String(a[1]),i=a[0]===void 0?"":String(a[0]);t?r.text=i+" - "+o:(r.text=o,r.text2=i)}function Pne(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=rc(r.x,e,a,n)}function Ine(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=zne(o);if(i[1]>=100)r.text=rc(kr.deg2rad(r.x),e,a,n);else{var l=r.x<0;i[1]===1?i[0]===1?r.text="\u03C0":r.text=i[0]+"\u03C0":r.text=["<sup>",i[0],"</sup>","\u2044","<sub>",i[1],"</sub>","\u03C0"].join(""),l&&(r.text=Ss+r.text)}}}else r.text=rc(r.x,e,a,n)}function zne(e){function r(l,u){return Math.abs(l-u)<=1e-6}function t(l,u){return r(u,0)?l:t(u,l%u)}function n(l){for(var u=1;!r(Math.round(l*u)/u,l);)u*=10;return u}var a=n(e),o=e*a,i=Math.abs(t(o,a));return[Math.round(o/i),Math.round(a/i)]}var qS=["f","p","n","\u03BC","m","","k","M","G","T"],Nne=["q","r","y","z","a",...qS,"P","E","Z","Y","R","Q"],ru=e=>["SI","SI extended","B"].includes(e);function bm(e){return e>14||e<-15}function xm(e){return e>32||e<-30}function qne(e,r){return ru(r)?!!(r==="SI extended"&&xm(e)||r!=="SI extended"&&bm(e)):!1}function rc(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=nr.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:jt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};zS(f),o=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,Ss);i==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-o)/2;if(e<c)e="0",a=!1;else{if(l&&(e*=Math.pow(10,-l),o+=l),o===0)e=String(Math.round(e));else if(o<0){let x=Math.pow(10,-o);e=String(Math.round(e/x)*x)}else e=e.toFixed(Math.min(20,o)).replace(/\.?0+$/,"");e=kr.numSeparate(e,r._separators,s)}if(l&&i!=="hide"){qne(l,i)&&(i="power");var p;l<0?p=Ss+-l:i!=="power"?p="+"+l:p=String(l),i==="e"||i==="E"?e+=i+p:i==="power"?e+="\xD710<sup>"+p+"</sup>":i==="B"&&l===9?e+="B":ru(i)&&(e+=i==="SI extended"?Nne[l/3+10]:qS[l/3+5])}return a?Ss+e:e}nr.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*eu}function n(u,s){var f=["L","D"];if(typeof u==typeof s){if(typeof u=="number")return u-s;var c=f.indexOf(u.charAt(0)),p=f.indexOf(s.charAt(0));return c===p?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):c-p}else return typeof u=="number"?1:-1}function a(u,s,f){var c=f||function(g){return g},p=s[0],x=s[1];return(!p&&typeof p!="number"||c(p)<=c(u))&&(!x&&typeof x!="number"||c(x)>=c(u))}function o(u,s){var f=s[0]===null,c=s[1]===null,p=n(u,s[0])>=0,x=n(u,s[1])<=0;return(f||p)&&(c||x)}var i,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&a(e.dtick,l.dtickrange,t)){i=l;break}break}case"log":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&o(e.dtick,l.dtickrange)){i=l;break}break}default:}return i?i.value:e.tickformat};nr.getSubplots=function(e,r){var t=e._fullLayout._subplots,n=t.cartesian.concat(t.gl2d||[]),a=r?nr.findSubplotsWithAxis(n,r):n;return a.sort(function(o,i){var l=o.slice(1).split("y"),u=i.slice(1).split("y");return l[0]===u[0]?+l[1]-+u[1]:+l[0]-+u[0]}),a};nr.findSubplotsWithAxis=function(e,r){for(var t=new RegExp(r._id.charAt(0)==="x"?"^"+r._id+"y":r._id+"$"),n=[],a=0;a<e.length;a++){var o=e[a];t.test(o)&&n.push(o)}return n};nr.makeClipPaths=function(e){var r=e._fullLayout;if(!r._hasOnlyLargeSploms){var t={_offset:0,_length:r.width,_id:""},n={_offset:0,_length:r.height,_id:""},a=nr.list(e,"x",!0),o=nr.list(e,"y",!0),i=[],l,u;for(l=0;l<a.length;l++)for(i.push({x:a[l],y:n}),u=0;u<o.length;u++)l===0&&i.push({x:t,y:o[u]}),i.push({x:a[l],y:o[u]});var s=r._clips.selectAll(".axesclip").data(i,function(f){return f.x._id+f.y._id});s.enter().append("clipPath").classed("axesclip",!0).attr("id",function(f){return"clip"+r._uid+f.x._id+f.y._id}).append("rect"),s.exit().remove(),s.each(function(f){Ka.select(this).select("rect").attr({x:f.x._offset||0,y:f.y._offset||0,width:f.x._length||1,height:f.y._length||1})})}};nr.draw=function(e,r,t){var n=e._fullLayout;r==="redraw"&&n._paper.selectAll("g.subplot").each(function(u){var s=u[0],f=n._plots[s];if(f){var c=f.xaxis,p=f.yaxis;f.xaxislayer.selectAll("."+c._id+"tick").remove(),f.yaxislayer.selectAll("."+p._id+"tick").remove(),f.xaxislayer.selectAll("."+c._id+"tick2").remove(),f.yaxislayer.selectAll("."+p._id+"tick2").remove(),f.xaxislayer.selectAll("."+c._id+"divider").remove(),f.yaxislayer.selectAll("."+p._id+"divider").remove(),f.minorGridlayer&&f.minorGridlayer.selectAll("path").remove(),f.gridlayer&&f.gridlayer.selectAll("path").remove(),f.zerolinelayer&&f.zerolinelayer.selectAll("path").remove(),f.zerolinelayerAbove&&f.zerolinelayerAbove.selectAll("path").remove(),n._infolayer.select(".g-"+c._id+"title").remove(),n._infolayer.select(".g-"+p._id+"title").remove()}});var a=!r||r==="redraw"?nr.listIds(e):r,o=nr.list(e),i=o.filter(function(u){return u.autoshift}).map(function(u){return u.overlaying});a.map(function(u){var s=nr.getFromId(e,u);if(s.tickmode==="sync"&&s.overlaying){var f=a.findIndex(function(c){return c===s.overlaying});f>=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return kr.syncOrAsync(a.map(function(u){return function(){if(u){var s=nr.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=nr.drawOne(e,s,t);return s._shiftPusher&&ym(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=kr.simpleMap(s._r,s.r2l),f}}}))};nr.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],o,i,l;r.setScale();var u=e._fullLayout,s=r._id,f=s.charAt(0),c=nr.counterLetter(s),p=u._plots[r._mainSubplot],x=r.zerolinelayer==="above traces";if(!p)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var g=r.linewidth/2||0;r.ticks==="inside"&&(g+=r.ticklen),ym(r,g,n,!0),ym(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Kne(r,n));var w=p[f+"axislayer"],M=r._mainLinePosition,m=M+=r._shift,k=r._mainMirrorPosition,S=r._vals=nr.calcTicks(r),b=[r.mirror,m,k].join("_");for(o=0;o<S.length;o++)S[o].axInfo=b;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var T={};function h(ge){var Le=s+(ge||"tick");return T[Le]||(T[Le]=Hne(r,Le,m)),T[Le]}if(r.visible){var _=nr.makeTransTickFn(r),y=nr.makeTransTickLabelFn(r),v,A,d=r.ticks==="inside",D=r.ticks==="outside";if(r.tickson==="boundaries"){var E=Bne(r,S);A=nr.clipEnds(r,E),v=d?A:E}else A=nr.clipEnds(r,S),v=d&&r.ticklabelmode!=="period"?A:S;var R=r._gridVals=A,z=Une(r,S);if(!u._hasOnlyLargeSploms){var I=r._subplotsWith,P={};for(o=0;o<I.length;o++){i=I[o],l=u._plots[i];var L=l[c+"axis"],F=L._mainAxis._id;if(!P[F]){P[F]=1;var B=f==="x"?"M0,"+L._offset+"v"+L._length:"M"+L._offset+",0h"+L._length;nr.drawGrid(e,r,{vals:R,counterAxis:L,layer:l.gridlayer.select("."+s),minorLayer:l.minorGridlayer.select("."+s),path:B,transFn:_}),nr.drawZeroLine(e,r,{counterAxis:L,layer:x?l.zerolinelayerAbove:l.zerolinelayer,path:B,transFn:_})}}}var O,V=nr.getTickSigns(r),K=nr.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var j=nr.makeTickPath(r,m,V[2]),G=nr.makeTickPath(r,m,K[2],{minor:!0}),q,J,te,Z;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?(q=nr.makeTickPath(r,k,V[3]),J=nr.makeTickPath(r,k,K[3],{minor:!0}),te=j+q,Z=G+J):(q="",J="",te=j,Z=G),r.showdividers&&D&&r.tickson==="boundaries"){var ie={};for(o=0;o<z.length;o++)ie[z[o].x]=1;O=function(ge){return ie[ge.x]?q:te}}else O=function(ge){return ge.minor?Z:te}}if(nr.drawTicks(e,r,{vals:v,layer:w,path:O,transFn:_}),r.mirror==="allticks"){var Q=Object.keys(r._linepositions||{});for(o=0;o<Q.length;o++){i=Q[o],l=u._plots[i];var re=r._linepositions[i]||[],ue=re[0],ee=re[1],ae=re[2],ce=nr.makeTickPath(r,ue,ae?V[0]:K[0],{minor:ae})+nr.makeTickPath(r,ee,ae?V[1]:K[1],{minor:ae});nr.drawTicks(e,r,{vals:v,layer:l[f+"axislayer"],path:ce,transFn:_})}}var Te=[];if(Te.push(function(){return nr.drawLabels(e,r,{vals:S,layer:w,plotinfo:l,transFn:y,labelFns:nr.makeLabelFns(r,m)})}),r.type==="multicategory"){var ke={x:2,y:10}[f];Te.push(function(){var ge={x:"height",y:"width"}[f],Le=h()[ge]+ke+(r._tickAngles[s+"tick"]?r.tickfont.size*ec:0);return nr.drawLabels(e,r,{vals:One(r,S),layer:w,cls:s+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:_,labelFns:nr.makeLabelFns(r,m+Le*V[4])})}),Te.push(function(){return r._depth=V[4]*(h("tick2")[r.side]-m),Gne(e,r,{vals:z,layer:w,path:nr.makeTickPath(r,m,V[4],{len:r._depth}),transFn:_})})}else r.title.hasOwnProperty("standoff")&&Te.push(function(){r._depth=V[4]*(h()[r.side]-m)});var Se=Kf.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(Se&&r.side==="bottom")&&Te.push(function(){return Yne(e,r)}),Te.push(function(){var ge=r.side.charAt(0),Le=gne[r.side].charAt(0),Ce=nr.getPxPosition(e,r),le=D?r.ticklen:0,Y,$,pe,oe;(r.automargin||Se||r._shiftPusher)&&(r.type==="multicategory"?Y=h("tick2"):(Y=h(),f==="x"&&ge==="b"&&(r._depth=Math.max(Y.width>0?Y.bottom-Ce:0,le))));var ve=0,he=0;if(r._shiftPusher&&(ve=Math.max(le,Y.height>0?ge==="l"?Ce-Y.left:Y.right-Ce:0),r.title.text!==u._dfltTitle[f]&&(he=(r._titleStandoff||0)+(r._titleScoot||0),ge==="l"&&(he+=LS(r))),r._fullDepth=Math.max(ve,he)),r.automargin){$={x:0,y:0,r:0,l:0,t:0,b:0};var me=[0,1],be=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ge==="b"?$[ge]=r._depth:($[ge]=r._depth=Math.max(Y.width>0?Ce-Y.top:0,le),me.reverse()),Y.width>0){var ye=Y.right-(r._offset+r._length);ye>0&&($.xr=1,$.r=ye);var de=r._offset-Y.left;de>0&&($.xl=0,$.l=de)}}else if(ge==="l"?(r._depth=Math.max(Y.height>0?Ce-Y.left:0,le),$[ge]=r._depth-be):(r._depth=Math.max(Y.height>0?Y.right-Ce:0,le),$[ge]=r._depth+be,me.reverse()),Y.height>0){var _e=Y.bottom-(r._offset+r._length);_e>0&&($.yb=0,$.b=_e);var Ae=r._offset-Y.top;Ae>0&&($.yt=1,$.t=Ae)}$[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[me[0]],r.title.text!==u._dfltTitle[f]&&($[ge]+=LS(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(pe={x:0,y:0,r:0,l:0,t:0,b:0},pe[Le]=r.linewidth,r.mirror&&r.mirror!==!0&&(pe[Le]+=le),r.mirror===!0||r.mirror==="ticks"?pe[c]=r._anchorAxis.domain[me[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(pe[c]=[r._counterDomainMin,r._counterDomainMax][me[1]]))}Se&&(oe=Kf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(ES($,r.automargin),ES(pe,r.automargin)),Q0.autoMargin(e,_m(r),$),Q0.autoMargin(e,OS(r),pe),Q0.autoMargin(e,US(r),oe)}),kr.syncOrAsync(Te)}};function ES(e,r){if(e){var t=Object.keys(wS).reduce(function(n,a){return r.indexOf(a)!==-1&&wS[a].forEach(function(o){n[o]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function Bne(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(kr.extendFlat({},o,{x:l}))};if(r.length){for(n=0;n<r.length;n++)a(r[n],0);a(r[n-1],1)}return t}function One(e,r){for(var t=[],n={},a=0;a<r.length;a++){var o=r[a];n[o.text2]?n[o.text2].push(o.x):n[o.text2]=[o.x]}for(var i in n)t.push(NS(e,kr.interp(n[i],.5),i));return t}function Une(e,r){var t=[],n,a,o=r.length&&r[r.length-1].x<r[0].x,i=function(u,s){var f=u.xbnd[s];f!==null&&t.push(kr.extendFlat({},u,{x:f}))};if(e.showdividers&&r.length){for(n=0;n<r.length;n++){var l=r[n];l.text2!==a&&i(l,o?1:0),a=l.text2}i(r[n-1],o?0:1)}return t}function Hne(e,r,t){var n,a,o,i;if(e._selections[r].size())n=1/0,a=-1/0,o=1/0,i=-1/0,e._selections[r].each(function(){var u=gm(this);if(u.node().style.display!=="none"){var s=Da.bBox(u.node().parentNode);n=Math.min(n,s.top),a=Math.max(a,s.bottom),o=Math.min(o,s.left),i=Math.max(i,s.right)}});else{var l=nr.makeLabelFns(e,t);n=a=l.yFn({dx:0,dy:0,fontSize:0}),o=i=l.xFn({dx:0,dy:0,fontSize:0})}return{top:n,bottom:a,left:o,right:i,height:a-n,width:i-o}}nr.getTickSigns=function(e,r){var t=e._id.charAt(0),n={x:"top",y:"right"}[t],a=e.side===n?1:-1,o=[-1,1,a,-a],i=r?(e.minor||{}).ticks:e.ticks;return i!=="inside"==(t==="x")&&(o=o.map(function(l){return-l})),e.side&&o.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),o};nr.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return j0(e._offset+e.l2p(r.x),0)}:function(r){return j0(0,e._offset+e.l2p(r.x))}};nr.makeTransTickLabelFn=function(e){var r=Vne(e),t=e.ticklabelshift||0,n=e.ticklabelstandoff||0,a=r[0],o=r[1],i=e.range[0]>e.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!l;if(t){var s=i?-1:1;t=t*s}if(n){var f=e.side,c=l&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*c}return e._id.charAt(0)==="x"?function(p){return j0(a+e._offset+e.l2p(pm(p))+t,o+n)}:function(p){return j0(o+n,a+e._offset+e.l2p(pm(p))+t)}};function pm(e){return e.periodX!==void 0?e.periodX:e.x}function Vne(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(g){return r.indexOf(g)!==-1},a=n("top"),o=n("left"),i=n("right"),l=n("bottom"),u=n("inside"),s=t!=="boundaries"&&(l||o||a||i);if(!s&&!u)return[0,0];var f=e.side,c=s?(e.tickwidth||0)/2:0,p=D1,x=e.tickfont?e.tickfont.size:12;return(l||a)&&(c+=x*Cs,p+=(e.linewidth||0)/2),(o||i)&&(c+=(e.linewidth||0)/2,p+=D1),u&&f==="top"&&(p-=x*(1-Cs)),(o||a)&&(c=-c),(f==="bottom"||f==="right")&&(p=-p),[s?c:0,u?p:0]}nr.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var o=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,i=e._id.charAt(0),l=(e.linewidth||1)/2;return i==="x"?"M0,"+(r+l*t)+"v"+o*t:"M"+(r+l*t)+",0h"+o*t};nr.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",o=function(E){return n.indexOf(E)!==-1},i=o("top"),l=o("left"),u=o("right"),s=o("bottom"),f=a!=="boundaries"&&(s||l||i||u),c=o("inside"),p=n==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&a!=="boundaries",x=0,g=0,w=p?e.ticklen:0;if(c?w*=-1:f&&(w=0),p&&(x+=w,t)){var M=kr.deg2rad(t);x=w*Math.cos(M)+1,g=w*Math.sin(M)}e.showticklabels&&(p||e.showline)&&(x+=.2*e.tickfont.size),x+=(e.linewidth||1)/2*(c?-1:1);var m={labelStandoff:x,labelShift:g},k,S,b,T,h=0,_=e.side,y=e._id.charAt(0),v=e.tickangle,A;if(y==="x")A=!c&&_==="bottom"||c&&_==="top",T=A?1:-1,c&&(T*=-1),k=g*T,S=r+x*T,b=A?1:-.2,Math.abs(v)===90&&(c?b+=$f:v===-90&&_==="bottom"?b=Cs:v===90&&_==="top"?b=$f:b=.5,h=$f/2*(v/90)),m.xFn=function(E){return E.dx+k+h*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*b},m.anchorFn=function(E,R){if(f){if(l)return"end";if(u)return"start"}return!jt(R)||R===0||R===180?"middle":R*T<0!==c?"end":"start"},m.heightFn=function(E,R,z){return R<-60||R>60?-.5*z:e.side==="top"!==c?-z:0};else if(y==="y"){if(A=!c&&_==="left"||c&&_==="right",T=A?1:-1,c&&(T*=-1),k=x,S=g*T,b=0,!c&&Math.abs(v)===90&&(v===-90&&_==="left"||v===90&&_==="right"?b=Cs:b=.5),c){var d=jt(v)?+v:0;if(d!==0){var D=kr.deg2rad(d);h=Math.abs(Math.sin(D))*Cs*T,b=0}}m.xFn=function(E){return E.dx+r-(k+E.fontSize*b)*T+h*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*$f},m.anchorFn=function(E,R){return jt(R)&&Math.abs(R)===90?"middle":A?"end":"start"},m.heightFn=function(E,R,z){return e.side==="right"&&(R*=-1),R<-30?-z:R<30?-.5*z:0}}return m};function P1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}nr.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(i){return i.minor&&!i.noTick}):[]).concat(r.ticks?t.vals.filter(function(i){return!i.minor&&!i.noTick}):[]),o=t.layer.selectAll("path."+n).data(a,P1);o.exit().remove(),o.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(i){return Qf.stroke(Ka.select(this),i.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(i){return Da.crispRound(e,i.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),I1(r,[DS]),o.attr("transform",t.transFn)};nr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,o=a?t.vals.filter(function(m){return m.minor}):[],i=r.showgrid?t.vals.filter(function(m){return!m.minor}):[],l=t.counterAxis;if(l&&nr.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s<i.length;s++){var f=i[s].x;if(u?!f:Math.abs(f)<r.dtick/100)if(i=i.slice(0,s).concat(i.slice(s+1)),u)s--;else break}r._gw=Da.crispRound(e,r.gridwidth,1);for(var c=a?Da.crispRound(e,r.minor.gridwidth,1):0,p=t.layer,x=t.minorLayer,g=1;g>=0;g--){var w=g?p:x;if(w){var M=w.selectAll("path."+n).data(g?i:o,P1);M.exit().remove(),M.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),M.attr("transform",t.transFn).attr("d",t.path).each(function(m){return Qf.stroke(Ka.select(this),m.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(m){return Da.dashStyle(m.minor?r.minor.griddash:r.griddash,m.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(m){return(m.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&M.attr("d",t.path)}}I1(r,[hm,dm])}};nr.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=nr.shouldShowZeroLine(e,r,t.counterAxis),o=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);o.exit().remove(),o.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(i,l){return mne(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(Qf.stroke,r.zerolinecolor||Qf.defaultLine).style("stroke-width",Da.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),I1(r,[vm])};nr.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,o=r.zerolinelayer==="above traces",i=t.cls||a+"tick",l=t.vals.filter(function(F){return F.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[i],c=t.layer.selectAll("g."+i).data(r.showticklabels?l:[],P1),p=[];c.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(F){var B=Ka.select(this),O=e._promises.length;B.call(ks.positionText,u.xFn(F),u.yFn(F)).call(Da.font,{family:F.font,size:F.fontSize,color:F.fontColor,weight:F.fontWeight,style:F.fontStyle,variant:F.fontVariant,textcase:F.fontTextcase,lineposition:F.fontLineposition,shadow:F.fontShadow}).text(F.text).call(ks.convertToTspans,e),e._promises[O]?p.push(e._promises.pop().then(function(){x(B,s)})):x(B,s)}),I1(r,[_S]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(F){Ka.select(this).select("text").call(ks.positionText,u.xFn(F),u.yFn(F))});function x(F,B){F.each(function(O){var V=Ka.select(this),K=V.select(".text-math-group"),j=u.anchorFn(O,B),G=t.transFn.call(V.node(),O)+(jt(B)&&+B!=0?" rotate("+B+","+u.xFn(O)+","+(u.yFn(O)-O.fontSize/2)+")":""),q=ks.lineCount(V),J=ec*O.fontSize,te=u.heightFn(O,jt(B)?+B:0,(q-1)*J);if(te&&(G+=j0(0,te)),K.empty()){var Z=V.select("text");Z.attr({transform:G,"text-anchor":j}),Z.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ie=Da.bBox(K.node()).width,Q=ie*{end:-.5,start:.5}[j];K.attr("transform",G+j0(Q,0))}})}r._adjustTickLabelsOverflow=function(){var F=r.ticklabeloverflow;if(!(!F||F==="allow")){var B=F.indexOf("hide")!==-1,O=r._id.charAt(0)==="x",V=0,K=O?e._fullLayout.width:e._fullLayout.height;if(F.indexOf("domain")!==-1){var j=kr.simpleMap(r.range,r.r2l);V=r.l2p(j[0])+r._offset,K=r.l2p(j[1])+r._offset}var G=Math.min(V,K),q=Math.max(V,K),J=r.side,te=1/0,Z=-1/0;c.each(function(ue){var ee=Ka.select(this),ae=ee.select(".text-math-group");if(ae.empty()){var ce=Da.bBox(ee.node()),Te=0;O?(ce.right>q||ce.left<G)&&(Te=1):(ce.bottom>q||ce.top+(r.tickangle?0:ue.fontSize/4)<G)&&(Te=1);var ke=ee.select("text");Te?B&&ke.style("display","none"):ke.node().style.display!=="none"&&(ke.style("display",null),J==="bottom"||J==="right"?te=Math.min(te,O?ce.top:ce.left):te=-1/0,J==="top"||J==="left"?Z=Math.max(Z,O?ce.bottom:ce.right):Z=1/0)}});for(var ie in n._plots){var Q=n._plots[ie];if(!(r._id!==Q.xaxis._id&&r._id!==Q.yaxis._id)){var re=O?Q.yaxis:Q.xaxis;re&&(re["_visibleLabelMin_"+r._id]=te,re["_visibleLabelMax_"+r._id]=Z)}}}},r._hideCounterAxisInsideTickLabels=function(F){var B=r._id.charAt(0)==="x",O=[];for(var V in n._plots){var K=n._plots[V];r._id!==K.xaxis._id&&r._id!==K.yaxis._id||O.push(B?K.yaxis:K.xaxis)}O.forEach(function(j,G){j&&tc(j)&&(F||[vm,dm,hm,DS,_S]).forEach(function(q){var J=q.K==="tick"&&q.L==="text"&&r.ticklabelmode==="period",te=n._plots[r._mainSubplot],Z;if(q.K===vm.K){var ie=o?te.zerolinelayerAbove:te.zerolinelayer;Z=ie.selectAll("."+r._id+"zl")}else q.K===dm.K?Z=te.minorGridlayer.selectAll("."+r._id):q.K===hm.K?Z=te.gridlayer.selectAll("."+r._id):Z=te[r._id.charAt(0)+"axislayer"];Z.each(function(){var Q=Ka.select(this);q.L&&(Q=Q.selectAll(q.L)),Q.each(function(re){var ue=r.l2p(J?pm(re):re.x)+r._offset,ee=Ka.select(this);ue<r["_visibleLabelMax_"+j._id]&&ue>r["_visibleLabelMin_"+j._id]?ee.style("display","none"):q.K==="tick"&&!G&&ee.node().style.display!=="none"&&ee.style("display",null)})})})})},x(c,f+1?f:s);function g(){return p.length&&Promise.all(p)}var w=null;function M(){if(x(c,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){w=r.autotickangles[0];var F=0,B=[],O,V=1;c.each(function($){F=Math.max(F,$.fontSize);var pe=r.l2p($.x),oe=gm(this),ve=Da.bBox(oe.node());V=Math.max(V,ks.lineCount(oe)),B.push({top:0,bottom:10,height:10,left:pe-ve.width/2,right:pe+ve.width/2+2,width:ve.width+2})});var K=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,j=l.length,G=Math.abs((l[j-1].x-l[0].x)*r._m)/(j-1),q=K?G/2:G,J=K?r.ticklen:F*1.25*V,te=Math.sqrt(Math.pow(q,2)+Math.pow(J,2)),Z=q/te,ie=r.autotickangles.map(function($){return $*Math.PI/180}),Q=ie.find(function($){return Math.abs(Math.cos($))<=Z});Q===void 0&&(Q=ie.reduce(function($,pe){return Math.abs(Math.cos($))<Math.abs(Math.cos(pe))?$:pe},ie[0]));var re=Q*(180/Math.PI);if(K){var ue=2;for(r.ticks&&(ue+=r.tickwidth/2),O=0;O<B.length;O++){var ee=l[O].xbnd,ae=B[O];if(ee[0]!==null&&ae.left-r.l2p(ee[0])<ue||ee[1]!==null&&r.l2p(ee[1])-ae.right<ue){w=re;break}}}else{var ce=r.ticklabelposition||"",Te=r.tickson||"",ke=function($){return ce.indexOf($)!==-1},Se=ke("top"),ge=ke("left"),Le=ke("right"),Ce=ke("bottom"),le=Te!=="boundaries"&&(Ce||ge||Se||Le),Y=le?(r.tickwidth||0)+2*D1:0;for(O=0;O<B.length-1;O++)if(kr.bBoxIntersect(B[O],B[O+1],Y)){w=re;break}}w&&x(c,w)}}r._selections&&(r._selections[i]=c);var m=[g];r.automargin&&n._redrawFromAutoMarginCount&&f===90?(w=f,m.push(function(){x(c,f)})):m.push(M),r._tickAngles&&m.push(function(){r._tickAngles[i]=w===null?jt(s)?s:0:w});var k=function(){var F=0,B=0;return c.each(function(O,V){var K=gm(this),j=K.select(".text-math-group");if(j.empty()){var G;r._vals[V]&&(G=r._vals[V].bb||Da.bBox(K.node()),r._vals[V].bb=G),F=Math.max(F,G.width),B=Math.max(B,G.height)}}),{labelsMaxW:F,labelsMaxH:B}},S=r._anchorAxis;if(S&&(S.autorange||S.insiderange)&&tc(r)&&!bne(n,r._id)&&(n._insideTickLabelsUpdaterange||(n._insideTickLabelsUpdaterange={}),S.autorange&&(n._insideTickLabelsUpdaterange[S._name+".autorange"]=S.autorange,m.push(k)),S.insiderange)){var b=k(),T=r._id.charAt(0)==="y"?b.labelsMaxW:b.labelsMaxH;T+=2*D1,r.ticklabelposition==="inside"&&(T+=r.ticklen||0);var h=r.side==="right"||r.side==="top"?1:-1,_=h===1?1:0,y=h===1?0:1,v=[];v[y]=S.range[y];var A=S.range,d=S.r2p(A[_]),D=S.r2p(A[y]),E=n._insideTickLabelsUpdaterange[S._name+".range"];if(E){var R=S.r2p(E[_]),z=S.r2p(E[y]),I=h*(r._id.charAt(0)==="y"?1:-1);I*d<I*R&&(d=R,v[_]=A[_]=E[_]),I*D>I*z&&(D=z,v[y]=A[y]=E[y])}var P=Math.abs(D-d);P-T>0?(P-=T,T*=1+T/P):T=0,r._id.charAt(0)!=="y"&&(T=-T),v[_]=S.p2r(S.r2p(A[_])+h*T),S.autorange==="min"||S.autorange==="max reversed"?(v[0]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0):(S.autorange==="max"||S.autorange==="min reversed")&&(v[1]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[S._name+".range"]=v}var L=kr.syncOrAsync(m);return L&&L.then&&e._promises.push(L),L};function Gne(e,r,t){var n=r._id+"divider",a=t.vals,o=t.layer.selectAll("path."+n).data(a,P1);o.exit().remove(),o.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(Qf.stroke,r.dividercolor).style("stroke-width",Da.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}nr.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,o;if(r.anchor!=="free"?o=r._anchorAxis:n==="x"?o={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(o={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return o._offset;if(a==="bottom"||a==="right")return o._offset+o._length};function LS(e){var r=e.title.font.size,t=(e.title.text.match(ks.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Cs+t*ec):t?r*(t+1)*ec:r}function Yne(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),o=r.title.font.size,i,l=(r.title.text.match(ks.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?i=r._depth+r.title.standoff+o*Cs:(r.side==="top"||r.side==="left")&&(i=r._depth+r.title.standoff+o*($f+l*ec));else{var u=tc(r);if(r.type==="multicategory")i=r._depth;else{var s=1.5*o;u&&(s=.5*o,r.ticks==="outside"&&(s+=r.ticklen)),i=10+s+(r.linewidth?r.linewidth-1:0)}u||(a==="x"?i+=r.side==="top"?o*(r.showticklabels?1:0):o*(r.showticklabels?1.5:.5):i+=r.side==="right"?o*(r.showticklabels?1:.5):o*(r.showticklabels?.5:0))}var f=nr.getPxPosition(e,r),c,p,x;a==="x"?(p=r._offset+r._length/2,x=r.side==="top"?f-i:f+i):(x=r._offset+r._length/2,p=r.side==="right"?f+i:f-i,c={rotate:"-90",offset:0});var g;if(r.type!=="multicategory"){var w=r._selections[r._id+"tick"];if(g={selection:w,side:r.side},w&&w.node()&&w.node().parentNode){var M=Da.getTranslate(w.node().parentNode);g.offsetLeft=M.x,g.offsetTop=M.y}r.title.hasOwnProperty("standoff")&&(g.pad=0)}return r._titleStandoff=i,une.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:g,transform:c,attributes:{x:p,y:x,"text-anchor":"middle"}})}nr.shouldShowZeroLine=function(e,r,t){var n=kr.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===R1)&&(BS(r,0)||!Xne(e,r,t,n)||Wne(e,r))};nr.clipEnds=function(e,r){return r.filter(function(t){return BS(e,t.x)})};function BS(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function Xne(e,r,t,n){var a=t._mainAxis;if(!a)return;var o=e._fullLayout,i=r._id.charAt(0),l=nr.counterLetter(r._id),u=r._offset+(Math.abs(n[0])<Math.abs(n[1])==(i==="x")?0:r._length);function s(g){if(!g.showline||!g.linewidth)return!1;var w=Math.max((g.linewidth+r.zerolinewidth)/2,1);function M(S){return typeof S=="number"&&Math.abs(S-u)<w}if(M(g._mainLinePosition)||M(g._mainMirrorPosition))return!0;var m=g._linepositions||{};for(var k in m)if(M(m[k][0])||M(m[k][1]))return!0}var f=o._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return s(t,u);for(var c=nr.list(e,l),p=0;p<c.length;p++){var x=c[p];if(x._mainAxis===a&&s(x,u))return!0}}function Wne(e,r){for(var t=e._fullData,n=r._mainSubplot,a=r._id.charAt(0),o=0;o<t.length;o++){var i=t[o];if(i.visible===!0&&i.xaxis+i.yaxis===n&&(Kf.traceIs(i,"bar-like")&&i.orientation==={x:"h",y:"v"}[a]||i.fill&&i.fill.charAt(i.fill.length-1)===a))return!0}return!1}function gm(e){var r=Ka.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}nr.allowAutoMargin=function(e){for(var r=nr.list(e,"",!0),t=0;t<r.length;t++){var n=r[t];n.automargin&&(Q0.allowAutoMargin(e,_m(n)),n.mirror&&Q0.allowAutoMargin(e,OS(n))),Kf.getComponentMethod("rangeslider","isVisible")(n)&&Q0.allowAutoMargin(e,US(n))}};function _m(e){return e._id+".automargin"}function OS(e){return _m(e)+".mirror"}function US(e){return e._id+".rangeslider"}nr.swap=function(e,r){for(var t=Zne(e,r),n=0;n<t.length;n++)Jne(e,t[n].x,t[n].y)};function Zne(e,r){var t=[],n,a;for(n=0;n<r.length;n++){var o=[],i=e._fullData[r[n]].xaxis,l=e._fullData[r[n]].yaxis;if(!(!i||!l)){for(a=0;a<t.length;a++)(t[a].x.indexOf(i)!==-1||t[a].y.indexOf(l)!==-1)&&o.push(a);if(!o.length){t.push({x:[i],y:[l]});continue}var u=t[o[0]],s;if(o.length>1)for(a=1;a<o.length;a++)s=t[o[a]],A1(u.x,s.x),A1(u.y,s.y);A1(u.x,[i]),A1(u.y,[l])}}return t}function A1(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function Jne(e,r,t){var n=[],a=[],o=e.layout,i,l;for(i=0;i<r.length;i++)n.push(nr.getFromId(e,r[i]));for(i=0;i<t.length;i++)a.push(nr.getFromId(e,t[i]));var u=Object.keys(fne),s=["anchor","domain","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(i=0;i<u.length;i++){var c=u[i],p=n[0][c],x=a[0][c],g=!0,w=!1,M=!1;if(!(c.charAt(0)==="_"||typeof p=="function"||s.indexOf(c)!==-1)){for(l=1;l<n.length&&g;l++){var m=n[l][c];c==="type"&&f.indexOf(p)!==-1&&f.indexOf(m)!==-1&&p!==m?w=!0:m!==p&&(g=!1)}for(l=1;l<a.length&&g;l++){var k=a[l][c];c==="type"&&f.indexOf(x)!==-1&&f.indexOf(k)!==-1&&x!==k?M=!0:a[l][c]!==x&&(g=!1)}g&&(w&&(o[n[0]._name].type="linear"),M&&(o[a[0]._name].type="linear"),$ne(o,c,n,a,e._fullLayout._dfltTitle))}}for(i=0;i<e._fullLayout.annotations.length;i++){var S=e._fullLayout.annotations[i];r.indexOf(S.xref)!==-1&&t.indexOf(S.yref)!==-1&&kr.swapAttrs(o.annotations[i],["?"])}}function $ne(e,r,t,n,a){var o=kr.nestedProperty,i=o(e[t[0]._name],r).get(),l=o(e[n[0]._name],r).get(),u;for(r==="title"&&(i&&i.text===a.x&&(i.text=a.y),l&&l.text===a.y&&(l.text=a.x)),u=0;u<t.length;u++)o(e,t[u]._name+"."+r).set(l);for(u=0;u<n.length;u++)o(e,n[u]._name+"."+r).set(i)}function wm(e){return e._id==="angularaxis"}function fm(e,r){for(var t=r._rangebreaks.length,n=0;n<t;n++){var a=r._rangebreaks[n];if(e>=a.min&&e<a.max)return a.max}return e}function tc(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function I1(e,r){tc(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function ym(e,r,t,n){var a=e.anchor!=="free"&&(e.overlaying===void 0||e.overlaying===!1)?e._id:e.overlaying,o;n?o=e.side==="right"?r:-r:o=r,a in t||(t[a]={}),e.side in t[a]||(t[a][e.side]=0),t[a][e.side]+=o}function Kne(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function Qne(e,r){return/%f/.test(r)?e>=pne:/%L/.test(r)?e>=dne:/%[SX]/.test(r)?e>=L1:/%M/.test(r)?e>=jf:/%[HI]/.test(r)?e>=ao:/%p/.test(r)?e>=wl:/%[Aadejuwx]/.test(r)?e>=ra:/%[UVW]/.test(r)?e>=Ra:/%[Bbm]/.test(r)?e>=E1:/%[q]/.test(r)?e>=C1:/%[Yy]/.test(r)?e>=S1:!0}});var GS=xe((b5e,VS)=>{"use strict";VS.exports=function(r,t,n){var a,o;if(n){var i=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[i?1:0],o=n[i?0:1]}var l=r("autorangeoptions.minallowed",o===null?a:void 0),u=r("autorangeoptions.maxallowed",a===null?o:void 0);l===void 0&&r("autorangeoptions.clipmin"),u===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Mm=xe((x5e,YS)=>{"use strict";var jne=GS();YS.exports=function(r,t,n,a){var o=t._template||{},i=t.type||o.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var u;!a.noInsiderange&&i!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(t.insiderange=!1,u=void 0),u&&(l=n("range",u)))}var s=t.getAutorangeDflt(l,a),f=n("autorange",s),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(s=t.getAutorangeDflt(l,a),f=n("autorange",s)),f&&(jne(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var WS=xe((_5e,XS)=>{var eae={left:0,top:0};XS.exports=rae;function rae(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,o=tae(r);return t[0]=n-o.left,t[1]=a-o.top,t}function tae(e){return e===window||e===document||e===document.body?eae:e.getBoundingClientRect()}});var z1=xe((w5e,ZS)=>{"use strict";var nae=j3();function aae(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}ZS.exports=nae&&aae()});var $S=xe((M5e,JS)=>{"use strict";JS.exports=function(r,t,n,a,o){var i=(r-n)/(a-n),l=i+t/(a-n),u=(i+l)/2;return o==="left"||o==="bottom"?i:o==="center"||o==="middle"?u:o==="right"||o==="top"?l:i<2/3-u?i:l>4/3-u?l:u}});var jS=xe((T5e,QS)=>{"use strict";var KS=rr(),iae=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];QS.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=KS.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=KS.constrain(Math.floor(t*3),0,2),iae[t][r]}});var rC=xe((A5e,eC)=>{"use strict";var oae=qf(),lae=qh(),sae=Lf().getGraphDiv,uae=vf(),Tm=eC.exports={};Tm.wrapped=function(e,r,t){var o;e=sae(e),e._fullLayout&&lae.clear(e._fullLayout._uid+uae.HOVERID);let n=e._hoverdata;Tm.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(o=e._fullLayout)!=null&&o.hoveranywhere&&(r!=null&&r.target)&&!n&&e.emit("plotly_unhover",{event:r,points:[]}))};Tm.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&oae.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}),!0)}});var Ai=xe((k5e,iC)=>{"use strict";var fae=WS(),Am=ry(),cae=z1(),vae=rr().removeElement,hae=mn(),Es=iC.exports={};Es.align=$S();Es.getCursor=jS();var nC=rC();Es.unhover=nC.wrapped;Es.unhoverRaw=nC.raw;Es.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,o=r.element,i,l,u,s,f,c,p,x;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=M,cae?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=M,o.addEventListener("touchstart",M,{passive:!1})):o.ontouchstart=M;function g(S,b,T){return Math.abs(S)<T&&(S=0),Math.abs(b)<T&&(b=0),[S,b]}var w=r.clampFn||g;function M(S){t._dragged=!1,t._dragging=!0;var b=tC(S);i=b[0],l=b[1],p=S.target,c=S,x=S.buttons===2||S.ctrlKey,typeof S.clientX=="undefined"&&typeof S.clientY=="undefined"&&(S.clientX=i,S.clientY=l),u=new Date().getTime(),u-t._mouseDownTime<a?n+=1:(n=1,t._mouseDownTime=u),r.prepFn&&r.prepFn(S,i,l),Am&&!x?(f=aC(),f.style.cursor=window.getComputedStyle(o).cursor):Am||(f=document,s=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(o).cursor),document.addEventListener("mouseup",k),document.addEventListener("touchend",k),r.dragmode!==!1&&(S.preventDefault(),document.addEventListener("mousemove",m),document.addEventListener("touchmove",m,{passive:!1}))}function m(S){S.preventDefault();var b=tC(S),T=r.minDrag||hae.MINDRAG,h=w(b[0]-i,b[1]-l,T),_=h[0],y=h[1];(_||y)&&(t._dragged=!0,Es.unhover(t,S)),t._dragged&&r.moveFn&&!x&&(t._dragdata={element:o,dx:_,dy:y},r.moveFn(_,y))}function k(S){if(delete t._dragdata,r.dragmode!==!1&&(S.preventDefault(),document.removeEventListener("mousemove",m),document.removeEventListener("touchmove",m)),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",k),Am?vae(f):s&&(f.documentElement.style.cursor=s,s=null),!t._dragging){t._dragged=!1;return}if(t._dragging=!1,new Date().getTime()-t._mouseDownTime>a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===p?b=c:(b={target:p,srcElement:p,toElement:p},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(T=>{var h=c[T];!b[T]&&typeof h!="function"&&(b[T]=h)})),r.clickFn&&r.clickFn(n,b),x||p.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function aC(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Es.coverSlip=aC;function tC(e){return fae(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ml=xe((S5e,oC)=>{"use strict";oC.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var uC=xe((C5e,sC)=>{"use strict";var km=Ml(),nc="data-savedcursor",lC="!!";sC.exports=function(r,t){var n=r.attr(nc);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),o=0;o<a.length;o++){var i=a[o];i.indexOf("cursor-")===0&&r.attr(nc,i.slice(7)).classed(i,!1)}r.attr(nc)||r.attr(nc,lC)}km(r,t)}else n&&(r.attr(nc,null),n===lC?km(r):km(r,n))}});var Cm=xe((E5e,fC)=>{"use strict";var Sm=Nn(),dae=Zi();fC.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:dae.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:Sm({editType:"legend"}),grouptitlefont:Sm({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:Sm({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var ic=xe(ac=>{"use strict";ac.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};ac.isVertical=function(r){return r.orientation!=="h"};ac.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};ac.getId=function(r){return r._id||"legend"}});var Lm=xe((D5e,cC)=>{"use strict";var N1=Cr(),Fa=rr(),pae=wt(),gae=qn(),yae=Cm(),mae=R0(),Em=ic();function bae(e,r,t,n,a){var o=r[e]||{},i=pae.newContainer(t,e);function l(B,O){return Fa.coerce(o,i,yae,B,O)}var u=Fa.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(!s)return;var f,c=function(B,O){var V=f._input,K=f;return Fa.coerce(V,K,gae,B,O)},p=t.font||{},x=Fa.coerceFont(l,"grouptitlefont",p,{overrideDflt:{size:Math.round(p.size*1.1)}}),g=0,w=!1,M="normal",m=(t.shapes||[]).filter(function(B){return B.showlegend});function k(B){return N1.traceIs(B,"pie-like")&&B._length!=null&&(Array.isArray(B.legend)||Array.isArray(B.showlegend))}n.filter(k).forEach(function(B){B.visible&&g++;for(var O=0;O<B._length;O++){var V=(Array.isArray(B.legend)?B.legend[O]:B.legend)||"legend";V===e&&((Array.isArray(B.showlegend)?B.showlegend[O]:B.showlegend)||B._dfltShowLegend)&&(w=!0,g++)}if(e==="legend"&&B._length>B.legend.length)for(var K=B.legend.length;K<B._length;K++)w=!0,g++});for(var S=n.concat(m).filter(function(B){return!k(f)&&e===(B.legend||"legend")}),b=0;b<S.length;b++)if(f=S[b],!!f.visible){var T=f._isShape;(f.showlegend||f._dfltShowLegend&&!(f._module&&f._module.attributes&&f._module.attributes.showlegend&&f._module.attributes.showlegend.dflt===!1))&&(g++,f.showlegend&&(w=!0,(!T&&N1.traceIs(f,"pie-like")||f._input.showlegend===!0)&&g++),Fa.coerceFont(c,"legendgrouptitle.font",x)),(!T&&N1.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(M=Em.isGrouped({traceorder:M})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(M=Em.isReversed({traceorder:M})?"reversed+grouped":"grouped")}var h=Fa.coerce(r,t,mae,"showlegend",t.showlegend||w&&g>(e==="legend"?1:0));if(h===!1&&(t[e]=void 0),h===!1&&!o.uirevision||(l("uirevision",t.uirevision),h===!1))return;l("borderwidth");var _=l("orientation"),y=l("yref"),v=l("xref"),A=_==="h",d=y==="paper",D=v==="paper",E,R,z,I="left";A?(E=0,N1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?d?(R=1.1,z="bottom"):(R=1,z="top"):d?(R=-.1,z="top"):(R=0,z="bottom")):(R=1,z="auto",D?E=1.02:(E=1,I="right")),Fa.coerce(o,i,{x:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:E}},"x"),Fa.coerce(o,i,{y:{valType:"number",editType:"legend",min:d?-2:0,max:d?3:1,dflt:R}},"y"),l("traceorder",M),Em.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick");let P=l("groupclick");l("groupdoubleclick",P),l("xanchor",I),l("yanchor",z),l("maxheight"),l("valign"),Fa.noneOrAll(o,i,["x","y"]);var L=l("title.text");if(L){l("title.side",A?"left":"top");var F=Fa.extendFlat({},u,{size:Fa.bigFont(u.size)});Fa.coerceFont(l,"title.font",F);let B=a>1;l("titleclick",B?"toggle":!1),l("titledoubleclick",B?"toggleothers":!1)}}cC.exports=function(r,t,n){var a,o=n.slice(),i=t.shapes;if(i)for(a=0;a<i.length;a++){var l=i[a];if(l.showlegend){var u={_input:l._input,visible:l.visible,showlegend:l.showlegend,legend:l.legend};o.push(u)}}var s=["legend"];for(a=0;a<o.length;a++)Array.isArray(o[a].legend)?s=s.concat(o[a].legend):Fa.pushUnique(s,o[a].legend);for(t._legends=[],a=0;a<s.length;a++){var f=s[a];bae(f,r,t,o,s.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var Fm=xe(Rm=>{"use strict";var Tl=Cr(),Dm=rr(),xae=Dm.pushUnique,_ae=ic(),vC=!0;Rm.handleItemClick=function(r,t,n,a,o){var i=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let u=o===2?n.groupdoubleclick:n.groupclick;a==="toggle"&&n.itemdoubleclick==="toggleothers"&&vC&&t.data&&t._context.showTips&&(Dm.notifier(Dm._(t,"Double-click on legend to isolate one trace"),"long",t),vC=!1);var s=u==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],c=t._fullData;let p=(i.shapes||[]).filter(ke=>ke.showlegend||ke.legendgroup);var x=c.concat(p),g=l.trace;g._isShape&&(g=i.shapes[g.index]);var w=g.legendgroup,M,m,k,S,b,T,h={},_=[],y=[],v=[];function A(ke,Se){var ge=_.indexOf(ke),Le=h.visible;return Le||(Le=h.visible=[]),_.indexOf(ke)===-1&&(_.push(ke),ge=_.length-1),Le[ge]=Se,ge}var d=(i.shapes||[]).map(function(ke){return ke._input}),D=!1;function E(ke,Se){d[ke].visible=Se,D=!0}function R(ke,Se){if(!(l.groupTitle&&!s)){var ge=ke._isShape,Le=ke.index;Le===void 0&&(Le=ke._index);var Ce=ke.visible===!1?!1:Se;ge?E(Le,Ce):A(Le,Ce)}}var z=g.legend;if(!g._isShape&&Tl.traceIs(g,"pie-like")){var I=l.label,P=f.indexOf(I);if(a==="toggle")P===-1?f.push(I):f.splice(P,1);else if(a==="toggleothers"){var L=P!==-1,F=[];for(M=0;M<t.calcdata.length;M++){var B=t.calcdata[M];for(m=0;m<B.length;m++){var O=B[m],V=O.label;z===B[0].trace.legend&&I!==V&&(f.indexOf(V)===-1&&(L=!0),xae(f,V),F.push(V))}}if(!L)for(var K=0;K<F.length;K++){var j=f.indexOf(F[K]);j!==-1&&f.splice(j,1)}}Tl.call("_guiRelayout",t,"hiddenlabels",f)}else{var G=w&&w.length,q=[],J;if(G)for(M=0;M<x.length;M++)J=x[M],J.visible&&J.legendgroup===w&&q.push(M);if(a==="toggle"){var te;switch(g.visible){case!0:te="legendonly";break;case!1:te=!1;break;case"legendonly":te=!0;break}if(G)if(s)for(M=0;M<x.length;M++){var Z=x[M];Z.visible!==!1&&Z.legendgroup===w&&R(Z,te)}else R(g,te);else R(g,te)}else if(a==="toggleothers"){var ie,Q,re,ue,ee,ae=!0;let ke=G&&s;for(M=0;M<x.length;M++)if(ee=x[M],ie=ee===g,re=ee.showlegend!==!0,!(ie||re)&&(Q=ke&&ee.legendgroup===w,!Q&&ee.legend===z&&ee.visible===!0&&!Tl.traceIs(ee,"notLegendIsolatable"))){ae=!1;break}for(M=0;M<x.length;M++)if(ee=x[M],!(ee.visible===!1||ee.legend!==z)&&!Tl.traceIs(ee,"notLegendIsolatable"))switch(g.visible){case"legendonly":R(ee,!0);break;case!0:ue=ae?!0:"legendonly",ie=ee===g,re=ee.showlegend!==!0&&!ee.legendgroup,Q=ie||ke&&ee.legendgroup===w,R(ee,Q||re?!0:ue);break}}for(M=0;M<y.length;M++)if(k=y[M],!!k){var ce=k.constructUpdate(),Te=Object.keys(ce);for(m=0;m<Te.length;m++)S=Te[m],T=h[S]=h[S]||[],T[v[M]]=ce[S]}for(b=Object.keys(h),M=0;M<b.length;M++)for(S=b[M],m=0;m<_.length;m++)h[S].hasOwnProperty(m)||(h[S][m]=void 0);D?Tl.call("_guiUpdate",t,h,{shapes:d},_):Tl.call("_guiRestyle",t,h,_)}};Rm.handleTitleClick=function(r,t,n){let a=r._fullLayout,o=r._fullData,i=_ae.getId(t),l=(a.shapes||[]).filter(m=>m.showlegend||m.legendgroup),u=o.concat(l);function s(m){return(m.legend||"legend")===i}var f,c;if(n==="toggle")f=!u.some(function(k){return s(k)&&k.visible===!0}),c=!1;else{let m=u.some(function(k){return!s(k)&&k.visible===!0&&k.showlegend!==!1});f=!0,c=!m}let p={visible:[]},x=[],g=(a.shapes||[]).map(function(m){return m._input});for(var w=!1,M=0;M<u.length;M++){let m=u[M],k=s(m);if(!k){let T=m.showlegend!==!0&&!m.legendgroup;if(n==="toggle"||T)continue}let b=(k?f:c)?!0:"legendonly";m.visible!==!1&&m.visible!==b&&(m._isShape?(g[m._index].visible=b,w=!0):(x.push(m.index),p.visible.push(b)))}w?Tl.call("_guiUpdate",r,p,{shapes:g},x):x.length&&Tl.call("_guiRestyle",r,p,x)}});var Pm=xe((F5e,hC)=>{"use strict";hC.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var gC=xe((P5e,pC)=>{"use strict";var{isArrayOrTypedArray:Im}=sa(),dC=Cr(),zm=ic();pC.exports=function(r,t,n){var a=t._inHover,o=zm.isGrouped(t),i=zm.isReversed(t),l={},u=[],s=!1,f={},c=0,p=0,x,g;function w(B,O,V){if(t.visible!==!1&&!(n&&B!==t._id))if(O===""||!zm.isGrouped(t)){var K="~~i"+c;u.push(K),l[K]=[V],c++}else u.indexOf(O)===-1?(u.push(O),s=!0,l[O]=[V]):l[O].push(V)}for(x=0;x<r.length;x++){var M=r[x],m=M[0],k=m.trace,S=k.legend,b=k.legendgroup;if(!(!a&&(!k.visible||!k.showlegend)))if(dC.traceIs(k,"pie-like")){var T=Array.isArray(k.legend),h=Array.isArray(k.showlegend);for(f[b]||(f[b]={}),g=0;g<M.length;g++)if(!(h&&k.showlegend[M[g].i]===!1)){T&&(S=k.legend[M[g].i]||"legend");var _=M[g].label;f[b][_]||(w(S,b,{label:_,color:M[g].color,i:M[g].i,trace:k,pts:M[g].pts}),f[b][_]=!0,p=Math.max(p,(_||"").length))}}else w(S,b,m),p=Math.max(p,(k.name||"").length)}if(!u.length)return[];var y=!s||!o,v=[];for(x=0;x<u.length;x++){var A=l[u[x]];y?v.push(A[0]):v.push(A)}for(y&&(v=[v]),x=0;x<v.length;x++){var d=1/0;for(g=0;g<v[x].length;g++){var D=v[x][g].trace.legendrank,E=Im(D)?Math.min(D):D;d>E&&(d=E)}v[x][0]._groupMinRank=d,v[x][0]._preGroupSort=x}var R=function(B,O){return B[0]._groupMinRank-O[0]._groupMinRank||B[0]._preGroupSort-O[0]._preGroupSort},z=function(B,O){var V=Im(B.trace.legendrank)?B.trace.legendrank[B.i]:B.trace.legendrank,K=Im(O.trace.legendrank)?O.trace.legendrank[O.i]:O.trace.legendrank;return V-K||B._preSort-O._preSort};for(v.forEach(function(B,O){B[0]._preGroupSort=O}),v.sort(R),x=0;x<v.length;x++){v[x].forEach(function(B,O){B._preSort=O}),v[x].sort(z);var I=v[x][0].trace,P=null;for(g=0;g<v[x].length;g++){var L=v[x][g].trace.legendgrouptitle;if(L&&L.text){P=L,a&&(L.font=t._groupTitleFont);break}}if(i&&v[x].reverse(),P){var F=!1;for(g=0;g<v[x].length;g++)if(dC.traceIs(v[x][g].trace,"pie-like")){F=!0;break}v[x].unshift({i:-1,groupTitle:P,noClick:F,trace:{showlegend:I.showlegend,legendgroup:I.legendgroup,legend:I.legend,visible:t.groupclick==="toggleitem"?!0:I.visible}})}for(g=0;g<v[x].length;g++)v[x][g]=[v[x][g]]}return t._lgroupsLength=v.length,t._maxNameLength=p,v}});var Nm=xe(Ls=>{"use strict";var q1=rr();function yC(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Ls.formatPiePercent=function(r,t){var n=yC((r*100).toPrecision(3));return q1.numSeparate(n,t)+"%"};Ls.formatPieValue=function(r,t){var n=yC(r.toPrecision(10));return q1.numSeparate(n,t)};Ls.getFirstFilled=function(r,t){if(q1.isArrayOrTypedArray(r))for(var n=0;n<t.length;n++){var a=r[t[n]];if(a||a===0||a==="")return a}};Ls.castOption=function(r,t){if(q1.isArrayOrTypedArray(r))return Ls.getFirstFilled(r,t);if(r)return r};Ls.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var bC=xe((z5e,mC)=>{"use strict";var wae=Mt(),Mae=Xr();mC.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?wae.pointStyle(r,n,a,t):Mae.fill(r,t.color)}});var MC=xe((N5e,wC)=>{"use strict";var xC=Xr(),_C=Nm().castOption,Tae=bC();wC.exports=function(r,t,n,a){var o=n.marker.line,i=_C(o.color,t.pts)||xC.defaultLine,l=_C(o.width,t.pts)||0;r.call(Tae,t,n,a).style("stroke-width",l).call(xC.stroke,i)}});var Um=xe((q5e,EC)=>{"use strict";var ta=nt(),qm=Cr(),Hn=rr(),TC=Hn.strTranslate,Pa=Mt(),Qa=Xr(),Bm=$i().extractOpts,B1=wa(),Aae=MC(),kae=Nm().castOption,Sae=Pm(),AC=12,kC=5,Ds=2,Cae=10,tu=5;EC.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=(i+Sae.itemGap*2)/2,u=TC(l,0),s=function(_,y,v,A){var d;if(_+1)d=_;else if(y&&y.width>0)d=y.width;else return 0;return o?A:Math.min(d,v)};r.each(function(_){var y=ta.select(this),v=Hn.ensureSingle(y,"g","layers");v.style("opacity",_[0].trace.opacity);var A=n.indentation,d=n.valign,D=_[0].lineHeight,E=_[0].height;if(d==="middle"&&A===0||!D||!E)v.attr("transform",null);else{var R={top:1,bottom:-1}[d],z=R*(.5*(D-E+3))||0,I=n.indentation;v.attr("transform",TC(I,z))}var P=v.selectAll("g.legendfill").data([_]);P.enter().append("g").classed("legendfill",!0);var L=v.selectAll("g.legendlines").data([_]);L.enter().append("g").classed("legendlines",!0);var F=v.selectAll("g.legendsymbols").data([_]);F.enter().append("g").classed("legendsymbols",!0),F.selectAll("g.legendpoints").data([_]).enter().append("g").classed("legendpoints",!0)}).each(h).each(p).each(g).each(x).each(M).each(b).each(S).each(f).each(c).each(m).each(k);function f(_){var y=SC(_),v=y.showFill,A=y.showLine,d=y.showGradientLine,D=y.showGradientFill,E=y.anyFill,R=y.anyLine,z=_[0],I=z.trace,P,L,F=Bm(I),B=F.colorscale,O=F.reversescale,V=function(Z){if(Z.size())if(v)Pa.fillGroupStyle(Z,t,!0);else{var ie="legendfill-"+I.uid;Pa.gradient(Z,t,ie,Om(O),B,"fill")}},K=function(Z){if(Z.size()){var ie="legendline-"+I.uid;Pa.lineGroupStyle(Z),Pa.gradient(Z,t,ie,Om(O),B,"stroke")}},j=B1.hasMarkers(I)||!E?"M5,0":R?"M5,-2":"M5,-3",G=ta.select(this),q=G.select(".legendfill").selectAll("path").data(v||D?[_]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",j+"h"+i+"v6h-"+i+"z").call(V),A||d){var J=s(void 0,I.line,Cae,kC);L=Hn.minExtend(I,{line:{width:J}}),P=[Hn.minExtend(z,{trace:L})]}var te=G.select(".legendlines").selectAll("path").data(A||d?[P]:[]);te.enter().append("path").classed("js-line",!0),te.exit().remove(),te.attr("d",j+(d?"l"+i+",0.0001":"h"+i)).call(A?Pa.lineGroupStyle:K)}function c(_){var y=SC(_),v=y.anyFill,A=y.anyLine,d=y.showLine,D=y.showMarker,E=_[0],R=E.trace,z=!D&&!A&&!v&&B1.hasText(R),I,P;function L(J,te,Z,ie){var Q=Hn.nestedProperty(R,J).get(),re=Hn.isArrayOrTypedArray(Q)&&te?te(Q):Q;if(o&&re&&ie!==void 0&&(re=ie),Z){if(re<Z[0])return Z[0];if(re>Z[1])return Z[1]}return re}function F(J){return E._distinct&&E.index&&J[E.index]?J[E.index]:J[0]}if(D||z||d){var B={},O={};if(D){B.mc=L("marker.color",F);var V=R.type==="scattermap";B.mx=V?"circle":L("marker.symbol",F),B.mo=L("marker.opacity",Hn.mean,[.2,1]),B.mlc=L("marker.line.color",F),B.mlw=L("marker.line.width",Hn.mean,[0,5],Ds),B.mld=L("marker.line.dash",F),O.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var K=L("marker.size",Hn.mean,[2,16],AC);B.ms=K,O.marker.size=K}d&&(O.line={width:L("line.width",F,[0,10],kC)}),z&&(B.tx="Aa",B.tp=L("textposition",F),B.ts=10,B.tc=L("textfont.color",F),B.tf=L("textfont.family",F),B.tw=L("textfont.weight",F),B.ty=L("textfont.style",F),B.tv=L("textfont.variant",F),B.tC=L("textfont.textcase",F),B.tE=L("textfont.lineposition",F),B.tS=L("textfont.shadow",F)),I=[Hn.minExtend(E,B)],P=Hn.minExtend(R,O),P.selectedpoints=null,P.texttemplate=null}var j=ta.select(this).select("g.legendpoints"),G=j.selectAll("path.scatterpts").data(D?I:[]);G.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),G.exit().remove(),G.call(Pa.pointStyle,P,t),D&&(I[0].mrc=3);var q=j.selectAll("g.pointtext").data(z?I:[]);q.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),q.exit().remove(),q.selectAll("text").call(Pa.textPointStyle,P,t)}function p(_){var y=_[0].trace,v=y.type==="waterfall";if(_[0]._distinct&&v){var A=_[0].trace[_[0].dir].marker;return _[0].mc=A.color,_[0].mlw=A.line.width,_[0].mlc=A.line.color,w(_,this,"waterfall")}var d=[];y.visible&&v&&(d=_[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 D=ta.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(d);D.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E){var R=ta.select(this),z=y[E[0]].marker,I=s(void 0,z.line,tu,Ds);R.attr("d",E[1]).style("stroke-width",I+"px").call(Qa.fill,z.color),I&&R.call(Qa.stroke,z.line.color)})}function x(_){w(_,this)}function g(_){w(_,this,"funnel")}function w(_,y,v){var A=_[0].trace,d=A.marker||{},D=d.line||{},E=d.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",R=v?A.visible&&A.type===v:qm.traceIs(A,"bar"),z=ta.select(y).select("g.legendpoints").selectAll("path.legend"+v).data(R?[_]:[]);z.enter().append("path").classed("legend"+v,!0).attr("d",E).attr("transform",u),z.exit().remove(),z.each(function(I){var P=ta.select(this),L=I[0],F=s(L.mlw,d.line,tu,Ds);P.style("stroke-width",F+"px");var B=L.mcc;if(!n._inHover&&"mc"in L){var O=Bm(d),V=O.mid;V===void 0&&(V=(O.max+O.min)/2),B=Pa.tryColorscale(d,"")(V)}var K=B||L.mc||d.color,j=d.pattern,G=Pa.getPatternAttr,q=j&&(G(j.shape,0,"")||G(j.path,0,""));if(q){var J=G(j.bgcolor,0,null),te=G(j.fgcolor,0,null),Z=j.fgopacity,ie=CC(j.size,8,10),Q=CC(j.solidity,.5,1),re="legend-"+A.uid;P.call(Pa.pattern,"legend",t,re,q,ie,Q,B,j.fillmode,J,te,Z)}else P.call(Qa.fill,K);F&&Qa.stroke(P,L.mlc||D.color)})}function M(_){var y=_[0].trace,v=ta.select(this).select("g.legendpoints").selectAll("path.legendbox").data(y.visible&&qm.traceIs(y,"box-violin")?[_]:[]);v.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),v.exit().remove(),v.each(function(){var A=ta.select(this);if((y.boxpoints==="all"||y.points==="all")&&Qa.opacity(y.fillcolor)===0&&Qa.opacity((y.line||{}).color)===0){var d=Hn.minExtend(y,{marker:{size:o?AC:Hn.constrain(y.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});v.call(Pa.pointStyle,d,t)}else{var D=s(void 0,y.line,tu,Ds);A.style("stroke-width",D+"px").call(Qa.fill,y.fillcolor),D&&Qa.stroke(A,y.line.color)}})}function m(_){var y=_[0].trace,v=ta.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(y.visible&&y.type==="candlestick"?[_,_]:[]);v.enter().append("path").classed("legendcandle",!0).attr("d",function(A,d){return d?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),v.exit().remove(),v.each(function(A,d){var D=ta.select(this),E=y[d?"increasing":"decreasing"],R=s(void 0,E.line,tu,Ds);D.style("stroke-width",R+"px").call(Qa.fill,E.fillcolor),R&&Qa.stroke(D,E.line.color)})}function k(_){var y=_[0].trace,v=ta.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(y.visible&&y.type==="ohlc"?[_,_]:[]);v.enter().append("path").classed("legendohlc",!0).attr("d",function(A,d){return d?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),v.exit().remove(),v.each(function(A,d){var D=ta.select(this),E=y[d?"increasing":"decreasing"],R=s(void 0,E.line,tu,Ds);D.style("fill","none").call(Pa.dashLine,E.line.dash,R),R&&Qa.stroke(D,E.line.color)})}function S(_){T(_,this,"pie")}function b(_){T(_,this,"funnelarea")}function T(_,y,v){var A=_[0],d=A.trace,D=v?d.visible&&d.type===v:qm.traceIs(d,v),E=ta.select(y).select("g.legendpoints").selectAll("path.legend"+v).data(D?[_]:[]);if(E.enter().append("path").classed("legend"+v,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.size()){var R=d.marker||{},z=s(kae(R.line.width,A.pts),R.line,tu,Ds),I="pieLike",P=Hn.minExtend(d,{marker:{line:{width:z}}},I),L=Hn.minExtend(A,{trace:P},I);Aae(E,L,P,t)}}function h(_){var y=_[0].trace,v,A=[];if(y.visible)switch(y.type){case"histogram2d":case"heatmap":A=[["M-15,-2V4H15V-2Z"]],v=!0;break;case"choropleth":case"choroplethmap":A=[["M-6,-6V6H6V-6Z"]],v=!0;break;case"densitymap":A=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],v="radial";break;case"cone":A=[["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"]],v=!1;break;case"streamtube":A=[["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"]],v=!1;break;case"surface":A=[["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"]],v=!0;break;case"mesh3d":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],v=!1;break;case"volume":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],v=!0;break;case"isosurface":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],v=!1;break}var d=ta.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);d.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),d.exit().remove(),d.each(function(D,E){var R=ta.select(this),z=Bm(y),I=z.colorscale,P=z.reversescale,L=function(V){if(V.size()){var K="legendfill-"+y.uid;Pa.gradient(V,t,K,Om(P,v==="radial"),I,"fill")}},F;if(I){if(!v){var O=I.length;F=E===0?I[P?O-1:0][1]:E===1?I[P?0:O-1][1]:I[Math.floor((O-1)/2)][1]}}else{var B=y.vertexcolor||y.facecolor||y.color;F=Hn.isArrayOrTypedArray(B)?B[E]||B[0]:B}R.attr("d",D[0]),F?R.call(Qa.fill,F):R.call(L)})}};function Om(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function SC(e){var r=e[0].trace,t=r.contours,n=B1.hasLines(r)||r.visible&&r.type==="quiver",a=B1.hasMarkers(r),o=r.visible&&r.fill&&r.fill!=="none",i=!1,l=!1;if(t){var u=t.coloring;u==="lines"?i=!0:n=u==="none"||u==="heatmap"||t.showlines,t.type==="constraint"?o=t._operation!=="=":(u==="fill"||u==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:o,showGradientLine:i,showGradientFill:l,anyLine:n||i,anyFill:o||l}}function CC(e,r,t){return e&&Hn.isArrayOrTypedArray(e)?r:e>t?t:e}});var Ym=xe((B5e,qC)=>{"use strict";var ua=nt(),en=rr(),Vm=bn(),Rs=Cr(),H1=qf(),Hm=Ai(),rn=Mt(),oc=Xr(),Fs=Un(),LC=Fm().handleItemClick,DC=Fm().handleTitleClick,an=Pm(),Gm=On(),zC=Gm.LINE_SPACING,au=Gm.FROM_TL,RC=Gm.FROM_BR,FC=gC(),Eae=Um(),iu=ic(),nu=1,Lae=/^legend[0-9]*$/;qC.exports=function(r,t){if(t)PC(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=ua.select(this),f=s.attr("class"),c=f.split(" ")[0];c.match(Lae)&&a.indexOf(c)===-1&&s.remove()});for(var i=0;i<a.length;i++){var l=a[i],u=r._fullLayout[l];PC(r,u)}}};function Dae(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var n=r.title.font,a=n.size*zC,o=0,i=e.node(),l=rn.bBox(i).width;r.title.side==="top center"?o=.5*(r._width-2*t-2*an.titlePad-l):r.title.side==="top right"&&(o=r._width-2*t-2*an.titlePad-l),Fs.positionText(e,t+an.titlePad+o,t+a)}}function PC(e,r){var t=r||{},n=e._fullLayout,a=iu.getId(t),o,i,l=t._inHover;if(l?(i=t.layer,o="hover"):(i=n._infolayer,o=a),!!i){o+=n._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0);var u;if(l){if(!t.entries)return;u=FC(t.entries,t)}else{for(var s=(e.calcdata||[]).slice(),f=n.shapes,c=0;c<f.length;c++){var p=f[c];if(p.showlegend){var x={_isShape:!0,index:p._index,name:p.name||p.label.text||"shape "+p._index,legend:p.legend,legendgroup:p.legendgroup,legendgrouptitle:p.legendgrouptitle,legendrank:p.legendrank,legendwidth:p.legendwidth,showlegend:p.showlegend,visible:p.visible,opacity:p.opacity,mode:p.type==="line"?"lines":"markers",line:p.line,marker:{line:p.line,color:p.fillcolor,size:12,symbol:p.type==="rect"?"square":p.type==="circle"?"circle":"hexagon2"}};s.push([{trace:x}])}}u=n.showlegend&&FC(s,t,n._legends.length>1)}var g=n.hiddenlabels||[];if(!l&&(!n.showlegend||!u.length))return i.selectAll("."+a).remove(),n._topdefs.select("#"+o).remove(),Vm.autoMargin(e,a);var w=en.ensureSingle(i,"g",a,function(y){l||y.attr("pointer-events","all")}),M=en.ensureSingleById(n._topdefs,"clipPath",o,function(y){y.append("rect")}),m=en.ensureSingle(w,"rect","bg",function(y){y.attr("shape-rendering","crispEdges")});m.call(oc.stroke,t.bordercolor).call(oc.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=en.ensureSingle(w,"g","scrollbox"),S=t.title;t._titleWidth=0,t._titleHeight=0;var b;S.text?(b=en.ensureSingle(k,"text",a+"titletext"),b.attr("text-anchor","start").call(rn.font,S.font).text(S.text),U1(b,k,e,t,nu),!l&&(t.titleclick||t.titledoubleclick)&&Pae(k,e,t,a)):(k.selectAll("."+a+"titletext").remove(),k.selectAll("."+a+"titletoggle").remove());var T=en.ensureSingle(w,"rect","scrollbar",function(y){y.attr(an.scrollBarEnterAttrs).call(oc.fill,an.scrollBarColor)}),h=k.selectAll("g.groups").data(u);h.enter().append("g").attr("class","groups"),h.exit().remove();var _=h.selectAll("g.traces").data(en.identity);_.enter().append("g").attr("class","traces"),_.exit().remove(),_.style("opacity",function(y){let v=y[0],A=v.trace;if(v.groupTitle){let d=A.legendgroup,D=(n.shapes||[]).filter(function(R){return R.showlegend});return e._fullData.concat(D).some(function(R){return R.legendgroup===d&&(R.legend||"legend")===a&&R.visible===!0})?1:.5}return Rs.traceIs(A,"pie-like")?g.indexOf(y[0].label)!==-1?.5:1:A.visible==="legendonly"?.5:1}).each(function(){ua.select(this).call(Rae,e,t)}).call(Eae,e,t).each(function(y){l||y[0].groupTitle&&t.groupclick==="toggleitem"||ua.select(this).call(Fae,e,a)}),en.syncOrAsync([Vm.previousPromises,function(){return Nae(e,h,_,t,k)},function(){var y=n._size,v=t.borderwidth,A=t.xref==="paper",d=t.yref==="paper";if(S.text){let ae=(n.shapes||[]).filter(function(Te){return Te.showlegend}),ce=e._fullData.concat(ae).some(function(Te){let ke=Te.legend||"legend";var Se=Array.isArray(ke)?ke.includes(a):ke===a;return Se&&Te.visible===!0});b.style("opacity",ce?1:.5)}if(!l){var D,E;A?D=y.l+y.w*t.x-au[V1(t)]*t._width:D=n.width*t.x-au[V1(t)]*t._width,d?E=y.t+y.h*(1-t.y)-au[G1(t)]*t._effHeight:E=n.height*(1-t.y)-au[G1(t)]*t._effHeight;var R=qae(e,a,D,E);if(R)return;if(n.margin.autoexpand){var z=D,I=E;D=A?en.constrain(D,0,n.width-t._width):z,E=d?en.constrain(E,0,n.height-t._effHeight):I,D!==z&&en.log("Constrain "+a+".x to make legend fit inside graph"),E!==I&&en.log("Constrain "+a+".y to make legend fit inside graph")}rn.setTranslate(w,D,E)}if(T.on(".drag",null),w.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var P=t._effHeight;l&&(P=t._height),m.attr({width:t._width-v,height:P-v,x:v/2,y:v/2}),rn.setTranslate(k,0,0),M.select("rect").attr({width:t._width-2*v,height:P-2*v,x:v,y:v}),rn.setClipUrl(k,o,e),rn.setRect(T,0,0,0,0),delete t._scrollY}else{var L=Math.max(an.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),F=t._effHeight-L-2*an.scrollBarMargin,B=t._height-t._effHeight,O=F/B,V=Math.min(t._scrollY||0,B);m.attr({width:t._width-2*v+an.scrollBarWidth+an.scrollBarMargin,height:t._effHeight-v,x:v/2,y:v/2}),M.select("rect").attr({width:t._width-2*v+an.scrollBarWidth+an.scrollBarMargin,height:t._effHeight-2*v,x:v,y:v+V}),rn.setClipUrl(k,o,e),ie(V,L,O),w.on("wheel",function(){V=en.constrain(t._scrollY+ua.event.deltaY/B*F,0,B),ie(V,L,O),V!==0&&V!==B&&ua.event.preventDefault()});var K,j,G,q=function(ae,ce,Te){var ke=(Te-ce)/O+ae;return en.constrain(ke,0,B)},J=function(ae,ce,Te){var ke=(ce-Te)/O+ae;return en.constrain(ke,0,B)},te=ua.behavior.drag().on("dragstart",function(){var ae=ua.event.sourceEvent;ae.type==="touchstart"?K=ae.changedTouches[0].clientY:K=ae.clientY,G=V}).on("drag",function(){var ae=ua.event.sourceEvent;ae.buttons===2||ae.ctrlKey||(ae.type==="touchmove"?j=ae.changedTouches[0].clientY:j=ae.clientY,V=q(G,K,j),ie(V,L,O))});T.call(te);var Z=ua.behavior.drag().on("dragstart",function(){var ae=ua.event.sourceEvent;ae.type==="touchstart"&&(K=ae.changedTouches[0].clientY,G=V)}).on("drag",function(){var ae=ua.event.sourceEvent;ae.type==="touchmove"&&(j=ae.changedTouches[0].clientY,V=J(G,K,j),ie(V,L,O))});k.call(Z)}function ie(ae,ce,Te){t._scrollY=e._fullLayout[a]._scrollY=ae,rn.setTranslate(k,0,-ae),rn.setRect(T,t._width,an.scrollBarMargin+ae*Te,an.scrollBarWidth,ce),M.select("rect").attr("y",v+ae)}if(e._context.edits.legendPosition){var Q,re,ue,ee;w.classed("cursor-move",!0),Hm.init({element:w.node(),gd:e,prepFn:function(ae){if(ae.target!==T.node()){var ce=rn.getTranslate(w);ue=ce.x,ee=ce.y}},moveFn:function(ae,ce){if(ue!==void 0&&ee!==void 0){var Te=ue+ae,ke=ee+ce;rn.setTranslate(w,Te,ke),Q=Hm.align(Te,t._width,y.l,y.l+y.w,t.xanchor),re=Hm.align(ke+t._height,-t._height,y.t+y.h,y.t,t.yanchor)}},doneFn:function(){if(Q!==void 0&&re!==void 0){var ae={};ae[a+".x"]=Q,ae[a+".y"]=re,Rs.call("_guiRelayout",e,ae)}},clickFn:function(ae,ce){var Te=i.selectAll("g.traces").filter(function(){var ke=this.getBoundingClientRect();return ce.clientX>=ke.left&&ce.clientX<=ke.right&&ce.clientY>=ke.top&&ce.clientY<=ke.bottom});Te.size()>0&&NC(e,t,Te,ae,ce)}})}}],e)}}function O1(e,r,t){var n=e[0],a=n.width,o=r.entrywidthmode,i=n.trace.legendwidth||r.entrywidth;return o==="fraction"?r._maxWidth*i:t+(i||a)}function NC(e,r,t,n,a){var o=e._fullLayout,i=t.data()[0][0].trace,l=r.itemclick,u=r.itemdoubleclick,s={event:a,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:o};i._group&&(s.group=i._group),Rs.traceIs(i,"pie-like")&&(s.label=t.datum()[0].label);var f=H1.triggerHandler(e,"plotly_legendclick",s);if(n===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&LC(t,e,r,l,n)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=H1.triggerHandler(e,"plotly_legenddoubleclick",s);c!==!1&&f!==!1&&u&&LC(t,e,r,u,n)}}function Rae(e,r,t){var n=iu.getId(t),a=e.data()[0][0],o=a.trace,i=Rs.traceIs(o,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!i,u=t._maxNameLength,s,f;a.groupTitle?(s=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?s=a.text:(s=i?a.label:o.name,o._meta&&(s=en.templateString(s,o._meta))));var c=en.ensureSingle(e,"text",n+"text");c.attr("text-anchor","start").call(rn.font,f).text(l?IC(s,u):s);var p=t.indentation+t.itemwidth+an.itemGap*2;Fs.positionText(c,p,0),l?c.call(Fs.makeEditable,{gd:r,text:s}).call(U1,e,r,t).on("edit",function(x){this.text(IC(x,u)).call(U1,e,r,t);var g={};return g.name=x,a.trace._isShape?Rs.call("_guiRelayout",r,"shapes["+o.index+"].name",g.name):Rs.call("_guiRestyle",r,g,o.index)}):U1(c,e,r,t)}function IC(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function Fae(e,r,t){var n=r._context.doubleClickDelay,a,o=1,i=en.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(oc.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTime<n?o+=1:(o=1,r._legendMouseDownTime=a)}),i.on("mouseup",function(){if(!(r._dragged||r._editing)){var l=r._fullLayout[t];new Date().getTime()-r._legendMouseDownTime>n&&(o=Math.max(o-1,1)),NC(r,l,e,o,ua.event)}}))}function Pae(e,r,t,n){if(r._fullData.some(function(s){let f=s.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&Rs.traceIs(s,"pie-like")}))return;let o=r._context.doubleClickDelay;var i,l=1;let u=en.ensureSingle(e,"rect",n+"titletoggle",function(s){r._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(oc.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(u.on("mousedown",function(){i=new Date().getTime(),i-r._legendMouseDownTime<o?l+=1:(l=1,r._legendMouseDownTime=i)}),u.on("mouseup",function(){if(r._dragged||r._editing)return;new Date().getTime()-r._legendMouseDownTime>o&&(l=Math.max(l-1,1));let s={event:ua.event,legendId:n,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(H1.triggerHandler(r,"plotly_legendtitleclick",s)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&DC(r,t,t.titleclick)},o)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,H1.triggerHandler(r,"plotly_legendtitledoubleclick",s)!==!1&&t.titledoubleclick&&DC(r,t,t.titledoubleclick))}))}function U1(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),Fs.convertToTspans(e,t,function(){Iae(r,t,n,a)})}function Iae(e,r,t,n){var a=e.data()[0][0],o=a&&a.trace.showlegend;if(Array.isArray(o)&&(o=o[a.i]!==!1),!t._inHover&&a&&!o){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),u=iu.getId(t);t||(t=r._fullLayout[u]);var s=t.borderwidth,f;n===nu?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var c=f.size*zC,p,x;if(l){var g=rn.bBox(l);p=g.height,x=g.width,n===nu?rn.setTranslate(i,s,s+p*.75):rn.setTranslate(i,0,p*.25)}else{var w="."+u+(n===nu?"title":"")+"text",M=e.select(w),m=Fs.lineCount(M),k=M.node();if(p=c*m,x=k?rn.bBox(k).width:0,n===nu)t.title.side==="left"&&(x+=an.itemGap*2),Fs.positionText(M,s+an.titlePad,s+c);else{var S=an.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(S=an.itemGap,x-=t.indentation+t.itemwidth),Fs.positionText(M,S,-c*((m-1)/2-.3))}}n===nu?(t._titleWidth=x,t._titleHeight=p):(a.lineHeight=c,a.height=Math.max(p,16)+3,a.width=x)}function zae(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Nae(e,r,t,n,a){var o=e._fullLayout,i=iu.getId(n);n||(n=o[i]);var l=o._size,u=iu.isVertical(n),s=iu.isGrouped(n),f=n.entrywidthmode==="fraction",c=n.borderwidth,p=2*c,x=an.itemGap,g=n.indentation+n.itemwidth+x*2,w=2*(c+x),M=G1(n),m=n.y<0||n.y===0&&M==="top",k=n.y>1||n.y===1&&M==="bottom",S=n.tracegroupgap,b={};let{orientation:T,yref:h}=n,{maxheight:_}=n,y=m||k||T!=="v"||h!=="paper";_||(_=y?.5:1);let v=y?o.height:l.h;n._maxHeight=Math.max(_>1?_:_*v,30);var A=0;n._width=0,n._height=0;var d=zae(n);if(u)t.each(function(ae){var ce=ae[0].height;rn.setTranslate(this,c+d[0],c+d[1]+n._height+ce/2+x),n._height+=ce,n._width=Math.max(n._width,ae[0].width)}),A=g+n._width,n._width+=x+g+p,n._height+=w,s&&(r.each(function(ae,ce){rn.setTranslate(this,0,ce*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var D=V1(n),E=n.x<0||n.x===0&&D==="right",R=n.x>1||n.x===1&&D==="left",z=k||m,I=o.width/2;n._maxWidth=Math.max(E?z&&D==="left"?l.l+l.w:I:R?z&&D==="right"?l.r+l.w:I:l.w,2*g);var P=0,L=0;t.each(function(ae){var ce=O1(ae,n,g);P=Math.max(P,ce),L+=ce}),A=null;var F=0;if(s){var B=0,O=0,V=0;r.each(function(){var ae=0,ce=0;ua.select(this).selectAll("g.traces").each(function(ke){var Se=O1(ke,n,g),ge=ke[0].height;rn.setTranslate(this,d[0],d[1]+c+x+ge/2+ce),ce+=ge,ae=Math.max(ae,Se),b[ke[0].trace.legendgroup]=ae});var Te=ae+x;O>0&&Te+c+O>n._maxWidth?(F=Math.max(F,O),O=0,V+=B+S,B=ce):B=Math.max(B,ce),rn.setTranslate(this,O,V),O+=Te}),n._width=Math.max(F,O)+c,n._height=V+B+w}else{var K=t.size(),j=L+p+(K-1)*x<n._maxWidth,G=0,q=0,J=0,te=0;t.each(function(ae){var ce=ae[0].height,Te=O1(ae,n,g,s),ke=j?Te:P;f||(ke+=x),ke+c+q-x>=n._maxWidth&&(F=Math.max(F,te),q=0,J+=G,n._height+=G,G=0),rn.setTranslate(this,d[0]+c+q,d[1]+c+J+ce/2+x),te=q+Te+x,q+=ke,G=Math.max(G,ce)}),j?(n._width=q+p,n._height=G+w):(n._width=Math.max(F,te)+p,n._height+=G+w)}}n._width=Math.ceil(Math.max(n._width+d[0],n._titleWidth+2*(c+an.titlePad))),n._height=Math.ceil(Math.max(n._height+d[1],n._titleHeight+2*(c+an.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Z=e._context.edits,ie=Z.legendText||Z.legendPosition;t.each(function(ae){var ce=ua.select(this).select("."+i+"toggle"),Te=ae[0].height,ke=ae[0].trace.legendgroup,Se=O1(ae,n,g);s&&ke!==""&&(Se=b[ke]);var ge=ie?g:A||Se;!u&&!f&&(ge+=x/2),rn.setRect(ce,0,-Te/2,ge,Te)});var Q=a.select("."+i+"titletext");Q.node()&&Dae(Q,n,c);var re=a.select("."+i+"titletoggle");if(re.size()&&Q.node()){var ue=Q.attr("x")||0,ee=an.titlePad;rn.setRect(re,ue-ee,c,n._titleWidth+2*ee,n._titleHeight+2*ee)}}function qae(e,r,t,n){var a=e._fullLayout,o=a[r],i=V1(o),l=G1(o),u=o.xref==="paper",s=o.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=o.y<.5?"b":"t",c=o.x<.5?"l":"r",p={r:a.width-t,l:t+o._width,b:a.height-n,t:n+o._effHeight};if(u&&s)return Vm.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*au[i],r:o._width*RC[i],b:o._effHeight*RC[l],t:o._effHeight*au[l]});u?e._fullLayout._reservedMargin[r][f]=p[f]:s||o.orientation==="v"?e._fullLayout._reservedMargin[r][c]=p[c]:e._fullLayout._reservedMargin[r][f]=p[f]}function V1(e){return en.isRightAnchor(e)?"right":en.isCenterAnchor(e)?"center":"left"}function G1(e){return en.isBottomAnchor(e)?"bottom":en.isMiddleAnchor(e)?"middle":"top"}});var Jm=xe(Zm=>{"use strict";var Ps=nt(),Fo=it(),Gt=rr(),Bae=Gt.pushUnique,Xm=Gt.strTranslate,Oae=Gt.strRotate,Uae=qf(),ja=Un(),Hae=uC(),oo=Mt(),on=Xr(),Y1=Ai(),lo=Bt(),Vae=mn().zindexSeparator,lu=Cr(),Ia=eo(),Is=vf(),Gae=Lm(),Yae=Ym(),XC=Is.YANGLE,Wm=Math.PI*XC/180,Xae=1/Math.sin(Wm),Wae=Math.cos(Wm),Zae=Math.sin(Wm),zt=Is.HOVERARROWSIZE,jr=Is.HOVERTEXTPAD,BC={box:!0,ohlc:!0,violin:!0,candlestick:!0},Jae={scatter:!0,scattergl:!0,splom:!0};function OC(e,r){return e.distance-r.distance}Zm.hover=function(r,t,n,a){r=Gt.getGraphDiv(r);var o=t.target;Gt.throttle(r._fullLayout._uid+Is.HOVERID,Is.HOVERMINTIME,function(){$ae(r,t,n,a,o)})};Zm.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=KC(a),i=QC(a),l=r.map(function(M){var m=M._x0||M.x0||M.x||0,k=M._x1||M.x1||M.x||0,S=M._y0||M.y0||M.y||0,b=M._y1||M.y1||M.y||0,T=M.eventData;if(T){var h=Math.min(m,k),_=Math.max(m,k),y=Math.min(S,b),v=Math.max(S,b),A=M.trace;if(lu.traceIs(A,"gl3d")){var d=a._fullLayout[A.scene]._scene.container,D=d.offsetLeft,E=d.offsetTop;h+=D,_+=D,y+=E,v+=E}T.bbox={x0:h+i,x1:_+i,y0:y+o,y1:v+o},T.xPixel=(m+k)/2,T.yPixel=(S+b)/2,t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:M.color||on.defaultLine,x0:M.x0||M.x||0,x1:M.x1||M.x||0,y0:M.y0||M.y||0,y1:M.y1||M.y||0,xLabel:M.xLabel,yLabel:M.yLabel,zLabel:M.zLabel,text:M.text,name:M.name,idealAlign:M.idealAlign,borderColor:M.borderColor,fontFamily:M.fontFamily,fontSize:M.fontSize,fontColor:M.fontColor,fontWeight:M.fontWeight,fontStyle:M.fontStyle,fontVariant:M.fontVariant,nameLength:M.nameLength,textAlign:M.textAlign,trace:M.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:M.hovertemplate||!1,hovertemplateLabels:M.hovertemplateLabels||!1,eventData:T}}),u=!1,s=ZC(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||on.background,container:Ps.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,c=5,p=0,x=0;f.sort(function(M,m){return M.y0-m.y0}).each(function(M,m){var k=M.y0-M.by/2;k-c<p?M.offset=p-k+c:M.offset=0,p=k+M.by+M.offset,m===t.anchorIndex&&(x=M.offset)}).each(function(M){M.offset-=x});var g=a._fullLayout._invScaleX,w=a._fullLayout._invScaleY;return $C(f,u,g,w),n?f:f.node()};function $ae(e,r,t,n,a){t||(t="xy"),typeof t=="string"&&(t=t.split(Vae)[0]);var o=Array.isArray(t)?t:[t],i,l=e._fullLayout,u=l.hoversubplots,s=l._plots||[],f=s[t],c=l._has("cartesian"),p=r.hovermode||l.hovermode,x=(p||"").charAt(0)==="x",g=(p||"").charAt(0)==="y",w,M;if(c&&(x||g)&&u==="axis"){for(var m=o.length,k=0;k<m;k++)if(i=o[k],s[i]){w=lo.getFromId(e,i,"x"),M=lo.getFromId(e,i,"y");var S=(x?w:M)._subplotsWith;if(S&&S.length)for(var b=0;b<S.length;b++)Bae(o,S[b])}}if(f&&u!=="single"){var T=f.overlays.map(function(lr){return lr.id});o=o.concat(T)}for(var h=o.length,_=new Array(h),y=new Array(h),v=!1,A=0;A<h;A++)if(i=o[A],s[i])v=!0,_[A]=s[i].xaxis,y[A]=s[i].yaxis;else if(l[i]&&l[i]._subplot){var d=l[i]._subplot;_[A]=d.xaxis,y[A]=d.yaxis}else{Gt.warn("Unrecognized subplot: "+i);return}if(p&&!v&&(p="closest"),["x","y","closest","x unified","y unified"].indexOf(p)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return Y1.unhoverRaw(e,r);var D=l.hoverdistance;D===-1&&(D=1/0);var E=l.spikedistance;E===-1&&(E=1/0);var R=[],z=[],I,P,L,F,B,O,V,K,j,G,q,J,te,Z={hLinePoint:null,vLinePoint:null},ie=!1;if(Array.isArray(r))for(p="array",L=0;L<r.length;L++)B=e.calcdata[r[L].curveNumber||0],B&&(O=B[0].trace,B[0].trace.hoverinfo!=="skip"&&(z.push(B),O.orientation==="h"&&(ie=!0)));else{var Q=e.calcdata.slice();for(Q.sort(function(lr,zr){var rt=lr[0].trace.zorder||0,Or=zr[0].trace.zorder||0;return rt-Or}),F=0;F<Q.length;F++)B=Q[F],O=B[0].trace,O.hoverinfo!=="skip"&&Ia.isTraceInSubplots(O,o)&&(z.push(B),O.orientation==="h"&&(ie=!0));var re=!a,ue,ee;if(re)"xpx"in r?ue=r.xpx:ue=_[0]._length/2,"ypx"in r?ee=r.ypx:ee=y[0]._length/2;else{if(Uae.triggerHandler(e,"plotly_beforehover",r)===!1)return;var ae=a.getBoundingClientRect();ue=r.clientX-ae.left,ee=r.clientY-ae.top,l._calcInverseTransform(e);var ce=Gt.apply3DTransform(l._invTransform)(ue,ee);if(ue=ce[0],ee=ce[1],ue<0||ue>_[0]._length||ee<0||ee>y[0]._length)return Y1.unhoverRaw(e,r)}if(r.pointerX=ue+_[0]._offset,r.pointerY=ee+y[0]._offset,"xval"in r?I=Ia.flat(o,r.xval):I=Ia.p2c(_,ue),"yval"in r?P=Ia.flat(o,r.yval):P=Ia.p2c(y,ee),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Fo(I[0])||!Fo(P[0]))return Gt.warn("Fx.hover failed",r,e),Y1.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=I,e._hoverYVals=P,e._hoverXAxes=_,e._hoverYAxes=y);var Te=1/0;function ke(lr,zr){for(F=0;F<z.length;F++)if(B=z[F],!(!B||!B[0]||!B[0].trace)&&(O=B[0].trace,!(O.visible!==!0||O._length===0)&&["carpet","contourcarpet"].indexOf(O._module.name)===-1)){if(j=p,Ia.isUnifiedHover(j)&&(j=j.charAt(0)),O.type==="splom"?(K=0,V=o[K]):(V=Ia.getSubplot(O),K=o.indexOf(V)),J={cd:B,trace:O,xa:_[K],ya:y[K],maxHoverDistance:D,maxSpikeDistance:E,index:!1,distance:Math.min(Te,D),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:on.defaultLine,name:O.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},l[V]&&(J.subplot=l[V]._subplot),l._splomScenes&&l._splomScenes[O.uid]&&(J.scene=l._splomScenes[O.uid]),j==="array"){var rt=r[F];if("pointNumber"in rt){let Lt=B[rt.pointNumber];Lt&&(J.index=rt.pointNumber,Lt.lonlat?(G=Lt.lonlat[0],q=Lt.lonlat[1]):(G=Lt.x,q=Lt.y)),j="closest"}else j="","xval"in rt&&(G=rt.xval,j="x"),"yval"in rt&&(q=rt.yval,j=j?"closest":"y")}else lr!==void 0&&zr!==void 0?(G=lr,q=zr):(G=I[K],q=P[K]);if(te=R.length,D!==0)if(O._module&&O._module.hoverPoints){var Or=O._module.hoverPoints(J,G,q,j,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:u,gd:e});if(Or)for(var Gr,pt=0;pt<Or.length;pt++)Gr=Or[pt],Fo(Gr.x0)&&Fo(Gr.y0)&&R.push(eie(Gr,p))}else Gt.log("Unrecognized trace type in hover:",O);if(p==="closest"&&R.length>te&&(R.splice(0,te),Te=R[0].distance),c&&E!==0&&R.length===0){J.distance=E,J.index=!1;var at=O._module.hoverPoints(J,G,q,"closest",{hoverLayer:l._hoverlayer});if(at&&(at=at.filter(function(Lt){return Lt.spikeDistance<=E})),at&&at.length){var Ct,Zt=at.filter(function(Lt){return Lt.xa.showspikes&&Lt.xa.spikesnap!=="hovered data"});if(Zt.length){var St=Zt[0];Fo(St.x0)&&Fo(St.y0)&&(Ct=ge(St),(!Z.vLinePoint||Z.vLinePoint.spikeDistance>Ct.spikeDistance)&&(Z.vLinePoint=Ct))}var gt=at.filter(function(Lt){return Lt.ya.showspikes&&Lt.ya.spikesnap!=="hovered data"});if(gt.length){var Et=gt[0];Fo(Et.x0)&&Fo(Et.y0)&&(Ct=ge(Et),(!Z.hLinePoint||Z.hLinePoint.spikeDistance>Ct.spikeDistance)&&(Z.hLinePoint=Ct))}}}}}ke();function Se(lr,zr,rt){for(var Or=null,Gr=1/0,pt,at=0;at<lr.length;at++)w&&w._id!==lr[at].xa._id||M&&M._id!==lr[at].ya._id||(pt=lr[at].spikeDistance,rt&&at===0&&(pt=-1/0),pt<=Gr&&pt<=zr&&(Or=lr[at],Gr=pt));return Or}function ge(lr){return lr?{xa:lr.xa,ya:lr.ya,x:lr.xSpike!==void 0?lr.xSpike:(lr.x0+lr.x1)/2,y:lr.ySpike!==void 0?lr.ySpike:(lr.y0+lr.y1)/2,distance:lr.distance,spikeDistance:lr.spikeDistance,curveNumber:lr.trace.index,color:lr.color,pointNumber:lr.index}:null}var Le={fullLayout:l,container:l._hoverlayer,event:r},Ce=e._spikepoints,le={vLinePoint:Z.vLinePoint,hLinePoint:Z.hLinePoint};e._spikepoints=le;var Y=function(){var lr=R.filter(function(rt){return w&&w._id===rt.xa._id&&M&&M._id===rt.ya._id}),zr=R.filter(function(rt){return!(w&&w._id===rt.xa._id&&M&&M._id===rt.ya._id)});lr.sort(OC),zr.sort(OC),R=lr.concat(zr),R=tie(R,p)};Y();var $=p.charAt(0),pe=($==="x"||$==="y")&&R[0]&&Jae[R[0].trace.type];if(c&&E!==0&&R.length!==0){var oe=R.filter(function(lr){return lr.ya.showspikes}),ve=Se(oe,E,pe);Z.hLinePoint=ge(ve);var he=R.filter(function(lr){return lr.xa.showspikes}),me=Se(he,E,pe);Z.vLinePoint=ge(me)}if(R.length===0){var be=Y1.unhoverRaw(e,r);if(c&&(Z.hLinePoint!==null||Z.vLinePoint!==null)&&VC(Ce)&&HC(e,Z,Le),l.hoveranywhere&&!n&&a){var ye=e._hoverdata;ye&&ye.length&&(e.emit("plotly_unhover",{event:r,points:ye}),e._hoverdata=[]),Cn([]),e._hoverAnywhereActive=!0}return be}if(c&&VC(Ce)&&HC(e,Z,Le),Ia.isXYhover(j)&&R[0].length!==0&&R[0].trace.type!=="splom"){var de=R[0];BC[de.trace.type]?R=R.filter(lr=>lr.trace.index===de.trace.index):R=[de];var _e=R.length,Ae=YC("x",de,l),Pe=YC("y",de,l);ke(Ae,Pe);var Fe=[],Ye={},qe=0,Be=function(lr){var zr=BC[lr.trace.type]?WC(lr):lr.trace.index;if(!Ye[zr])qe++,Ye[zr]=qe,Fe.push(lr);else{var rt=Ye[zr]-1,Or=Fe[rt];rt>0&&Math.abs(lr.distance)<Math.abs(Or.distance)&&(Fe[rt]=lr)}},Oe;for(Oe=0;Oe<_e;Oe++)Be(R[Oe]);for(Oe=R.length-1;Oe>_e-1;Oe--)Be(R[Oe]);R=Fe,Y()}var We=e._hoverdata,Xe=[],tr=KC(e),ir=QC(e);for(let lr of R){var je=Ia.makeEventData(lr,lr.trace,lr.cd);if(lr.hovertemplate!==!1){var Ke=!1;lr.cd[lr.index]&&lr.cd[lr.index].ht&&(Ke=lr.cd[lr.index].ht),lr.hovertemplate=Ke||lr.trace.hovertemplate||!1}if(lr.xa&&lr.ya){var Ee=lr.x0+lr.xa._offset,ze=lr.x1+lr.xa._offset,Qe=lr.y0+lr.ya._offset,er=lr.y1+lr.ya._offset,wr=Math.min(Ee,ze),Vr=Math.max(Ee,ze),Mr=Math.min(Qe,er),Rr=Math.max(Qe,er);je.bbox={x0:wr+ir,x1:Vr+ir,y0:Mr+tr,y1:Rr+tr},je.xPixel=(Ee+ze)/2,je.yPixel=(Qe+er)/2}lr.eventData=[je],Xe.push(je)}e._hoverdata=Xe;var Qr=p==="y"&&(z.length>1||R.length>1)||p==="closest"&&ie&&R.length>1,Sr=on.combine(l.plot_bgcolor||on.background,l.paper_bgcolor),Wr=ZC(R,{gd:e,hovermode:p,rotateLabels:Qr,bgColor:Sr,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),bt=Wr.hoverLabels;if(Ia.isUnifiedHover(p)||(Qae(bt,Qr,l,Wr.commonLabelBoundingBox),$C(bt,Qr,l._invScaleX,l._invScaleY)),a&&a.tagName){var Jr=lu.getComponentMethod("annotations","hasClickToShow")(e,Xe);Hae(Ps.select(a),Jr?"pointer":"")}var lt=rie(e,r,We);if(!a||n||!lt&&!l.hoveranywhere)return;We&&lt&&e.emit("plotly_unhover",{event:r,points:We}),Cn(e._hoverdata);function Cn(lr){e.emit("plotly_hover",{event:r,points:lr,xaxes:_,yaxes:y,xvals:Ia.c2dApply(_,I),yvals:Ia.c2dApply(y,P),xPixel:r.pointerX,yPixel:r.pointerY})}}function WC(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Kae=/<extra>([\s\S]*)<\/extra>/;function ZC(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,o=r.rotateLabels,i=r.bgColor,l=r.container,u=r.outerContainer,s=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||Is.HOVERFONT,c=r.fontSize||Is.HOVERFONTSIZE,p=r.fontWeight||n.font.weight,x=r.fontStyle||n.font.style,g=r.fontVariant||n.font.variant,w=r.fontTextcase||n.font.textcase,M=r.fontLineposition||n.font.lineposition,m=r.fontShadow||n.font.shadow,k=e[0],S=k.xa,b=k.ya,T=a.charAt(0),h=T+"Label",_=k[h];if(_===void 0&&S.type==="multicategory")for(var y=0;y<e.length&&(_=e[y][h],_===void 0);y++);var v=ou(t,u),A=v.top,d=v.width,D=v.height,E=_!==void 0&&k.distance<=r.hoverdistance&&(a==="x"||a==="y");if(E){var R=!0,z,I;for(z=0;z<e.length;z++)if(R&&e[z].zLabel===void 0&&(R=!1),I=e[z].hoverinfo||e[z].trace.hoverinfo,I){var P=Array.isArray(I)?I:I.split("+");if(P.indexOf("all")===-1&&P.indexOf(a)===-1){E=!1;break}}R&&(E=!1)}var L=l.selectAll("g.axistext").data(E?[0]:[]);L.enter().append("g").classed("axistext",!0),L.exit().remove();var F={minX:0,maxX:0,minY:0,maxY:0};if(L.each(function(){var be=Ps.select(this),ye=Gt.ensureSingle(be,"path","",function(Mr){Mr.style({"stroke-width":"1px"})}),de=Gt.ensureSingle(be,"text","",function(Mr){Mr.attr("data-notex",1)}),_e=s.bgcolor||on.defaultLine,Ae=s.bordercolor||on.contrast(_e),Pe=on.contrast(_e),Fe=s.font,Ye={weight:Fe.weight||p,style:Fe.style||x,variant:Fe.variant||g,textcase:Fe.textcase||w,lineposition:Fe.lineposition||M,shadow:Fe.shadow||m,family:Fe.family||f,size:Fe.size||c,color:Fe.color||Pe};ye.style({fill:_e,stroke:Ae}),de.text(_).call(oo.font,Ye).call(ja.positionText,0,0).call(ja.convertToTspans,t),be.attr("transform","");var qe=ou(t,de.node()),Be,Oe;if(a==="x"){var We=S.side==="top"?"-":"";de.attr("text-anchor","middle").call(ja.positionText,0,S.side==="top"?A-qe.bottom-zt-jr:A-qe.top+zt+jr),Be=S._offset+(k.x0+k.x1)/2,Oe=b._offset+(S.side==="top"?0:b._length);var Xe=qe.width/2+jr,tr=Be;Be<Xe?tr=Xe:Be>n.width-Xe&&(tr=n.width-Xe),ye.attr("d","M"+(Be-tr)+",0L"+(Be-tr+zt)+","+We+zt+"H"+Xe+"v"+We+(jr*2+qe.height)+"H"+-Xe+"V"+We+zt+"H"+(Be-tr-zt)+"Z"),Be=tr,F.minX=Be-Xe,F.maxX=Be+Xe,S.side==="top"?(F.minY=Oe-(jr*2+qe.height),F.maxY=Oe-jr):(F.minY=Oe+jr,F.maxY=Oe+(jr*2+qe.height))}else{var ir,je,Ke;b.side==="right"?(ir="start",je=1,Ke="",Be=S._offset+S._length):(ir="end",je=-1,Ke="-",Be=S._offset),Oe=b._offset+(k.y0+k.y1)/2,de.attr("text-anchor",ir),ye.attr("d","M0,0L"+Ke+zt+","+zt+"V"+(jr+qe.height/2)+"h"+Ke+(jr*2+qe.width)+"V-"+(jr+qe.height/2)+"H"+Ke+zt+"V-"+zt+"Z"),F.minY=Oe-(jr+qe.height/2),F.maxY=Oe+(jr+qe.height/2),b.side==="right"?(F.minX=Be+zt,F.maxX=Be+zt+(jr*2+qe.width)):(F.minX=Be-zt-(jr*2+qe.width),F.maxX=Be-zt);var Ee=qe.height/2,ze=A-qe.top-Ee,Qe="clip"+n._uid+"commonlabel"+b._id,er;if(Be<qe.width+2*jr+zt){er="M-"+(zt+jr)+"-"+Ee+"h-"+(qe.width-jr)+"V"+Ee+"h"+(qe.width-jr)+"Z";var wr=qe.width-Be+jr;ja.positionText(de,wr,ze),ir==="end"&&de.selectAll("tspan").each(function(){var Mr=Ps.select(this),Rr=oo.tester.append("text").text(Mr.text()).call(oo.font,Ye),Qr=ou(t,Rr.node());Math.round(Qr.width)<Math.round(qe.width)&&Mr.attr("x",wr-Qr.width),Rr.remove()})}else ja.positionText(de,je*(jr+zt),ze),er=null;var Vr=n._topclips.selectAll("#"+Qe).data(er?[0]:[]);Vr.enter().append("clipPath").attr("id",Qe).append("path"),Vr.exit().remove(),Vr.select("path").attr("d",er),oo.setClipUrl(de,er?Qe:null,t)}be.attr("transform",Xm(Be,Oe))}),Ia.isUnifiedHover(a)){l.selectAll("g.hovertext").remove();let be=e.filter(ye=>ye.hoverinfo!=="none");if(be.length===0)return[];var B=n.hoverlabel,O=B.font,V=be[0],K=((a==="x unified"?V.xa:V.ya).unifiedhovertitle||{}).text,j=K?Gt.hovertemplateString({data:a==="x unified"?[{xa:V.xa,x:V.xVal}]:[{ya:V.ya,y:V.yVal}],fallback:V.trace.hovertemplatefallback,locale:n._d3locale,template:K}):_,G={showlegend:!0,legend:{title:{text:j,font:O},font:O,bgcolor:B.bgcolor,bordercolor:B.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},q={font:O};Gae(G,q,t._fullData);var J=q.legend;J.entries=[];for(var te=0;te<be.length;te++){var Z=be[te];if(Z.hoverinfo!=="none"){var ie=UC(Z,!0,a,n,_),Q=ie[0],re=ie[1];Z.name=re,re!==""?Z.text=re+" : "+Q:Z.text=Q;var ue=Z.cd[Z.index];ue&&(ue.mc&&(Z.mc=ue.mc),ue.mcc&&(Z.mc=ue.mcc),ue.mlc&&(Z.mlc=ue.mlc),ue.mlcc&&(Z.mlc=ue.mlcc),ue.mlw&&(Z.mlw=ue.mlw),ue.mrc&&(Z.mrc=ue.mrc),ue.dir&&(Z.dir=ue.dir)),Z._distinct=!0,J.entries.push([Z])}}J.entries.sort(function(ye,de){var _e=n.hoversort;if(_e==="value descending"||_e==="value ascending"){var Ae=a.charAt(0)==="x"?"y":"x",Pe=ye[0][Ae+"LabelVal"],Fe=de[0][Ae+"LabelVal"];if(Pe!==Fe)return _e==="value descending"?Fe-Pe:Pe-Fe}return ye[0].trace.index-de[0].trace.index}),J.layer=l,J._inHover=!0,J._groupTitleFont=B.grouptitlefont,Yae(t,J);var ee=l.select("g.legend"),ae=ou(t,ee.node()),ce=ae.width+2*jr,Te=ae.height+2*jr,ke=be[0],Se=(ke.x0+ke.x1)/2,ge=(ke.y0+ke.y1)/2,Le=!(lu.traceIs(ke.trace,"bar-like")||lu.traceIs(ke.trace,"box-violin")),Ce,le;T==="y"?Le?(le=ge-jr,Ce=ge+jr):(le=Math.min.apply(null,be.map(function(ye){return Math.min(ye.y0,ye.y1)})),Ce=Math.max.apply(null,be.map(function(ye){return Math.max(ye.y0,ye.y1)}))):le=Ce=Gt.mean(be.map(function(ye){return(ye.y0+ye.y1)/2}))-Te/2;var Y,$;T==="x"?Le?(Y=Se+jr,$=Se-jr):(Y=Math.max.apply(null,be.map(function(ye){return Math.max(ye.x0,ye.x1)})),$=Math.min.apply(null,be.map(function(ye){return Math.min(ye.x0,ye.x1)}))):Y=$=Gt.mean(be.map(function(ye){return(ye.x0+ye.x1)/2}))-ce/2;var pe=S._offset,oe=b._offset;Ce+=oe,Y+=pe,$+=pe-ce,le+=oe-Te;var ve,he;return Y+ce<d&&Y>=0?ve=Y:$+ce<d&&$>=0?ve=$:pe+ce<d?ve=pe:Y-Se<Se-$+ce?ve=d-ce:ve=0,ve+=jr,Ce+Te<D&&Ce>=0?he=Ce:le+Te<D&&le>=0?he=le:oe+Te<D?he=oe:Ce-ge<ge-le+Te?he=D-Te:he=0,he+=jr,ee.attr("transform",Xm(ve-1,he-1)),ee}var me=l.selectAll("g.hovertext").data(e,function(be){return WC(be)});return me.enter().append("g").classed("hovertext",!0).each(function(){var be=Ps.select(this);be.append("rect").call(on.fill,on.addOpacity(i,.8)),be.append("text").classed("name",!0),be.append("path").style("stroke-width","1px"),be.append("text").classed("nums",!0).call(oo.font,{weight:p,style:x,variant:g,textcase:w,lineposition:M,shadow:m,family:f,size:c})}),me.exit().remove(),me.each(function(be){var ye=Ps.select(this).attr("transform",""),de=be.color;Array.isArray(de)&&(de=de[be.eventData[0].pointNumber]);var _e=be.bgcolor||de,Ae=on.combine(on.opacity(_e)?_e:on.defaultLine,i),Pe=on.combine(on.opacity(de)?de:on.defaultLine,i),Fe=be.borderColor||on.contrast(Ae),Ye=UC(be,E,a,n,_,ye),qe=Ye[0],Be=Ye[1],Oe=ye.select("text.nums").call(oo.font,{family:be.fontFamily||f,size:be.fontSize||c,color:be.fontColor||Fe,weight:be.fontWeight||p,style:be.fontStyle||x,variant:be.fontVariant||g,textcase:be.fontTextcase||w,lineposition:be.fontLineposition||M,shadow:be.fontShadow||m}).text(qe).attr("data-notex",1).call(ja.positionText,0,0).call(ja.convertToTspans,t),We=ye.select("text.name"),Xe=0,tr=0;if(Be&&Be!==qe){We.call(oo.font,{family:be.fontFamily||f,size:be.fontSize||c,color:Pe,weight:be.fontWeight||p,style:be.fontStyle||x,variant:be.fontVariant||g,textcase:be.fontTextcase||w,lineposition:be.fontLineposition||M,shadow:be.fontShadow||m}).text(Be).attr("data-notex",1).call(ja.positionText,0,0).call(ja.convertToTspans,t);var ir=ou(t,We.node());Xe=ir.width+2*jr,tr=ir.height+2*jr}else We.remove(),ye.select("rect").remove();ye.select("path").style({fill:Ae,stroke:Fe});var je=be.xa._offset+(be.x0+be.x1)/2,Ke=be.ya._offset+(be.y0+be.y1)/2,Ee=Math.abs(be.x1-be.x0),ze=Math.abs(be.y1-be.y0),Qe=ou(t,Oe.node()),er=Qe.width/n._invScaleX,wr=Qe.height/n._invScaleY;be.ty0=(A-Qe.top)/n._invScaleY,be.bx=er+2*jr,be.by=Math.max(wr+2*jr,tr),be.anchor="start",be.txwidth=er,be.tx2width=Xe,be.offset=0;var Vr=(er+zt+jr+Xe)*n._invScaleX,Mr,Rr;if(o)be.pos=je,Mr=Ke+ze/2+Vr<=D,Rr=Ke-ze/2-Vr>=0,(be.idealAlign==="top"||!Mr)&&Rr?(Ke-=ze/2,be.anchor="end"):Mr?(Ke+=ze/2,be.anchor="start"):be.anchor="middle",be.crossPos=Ke;else{if(be.pos=Ke,Mr=je+Ee/2+Vr<=d,Rr=je-Ee/2-Vr>=0,(be.idealAlign==="left"||!Mr)&&Rr)je-=Ee/2,be.anchor="end";else if(Mr)je+=Ee/2,be.anchor="start";else{be.anchor="middle";var Qr=Vr/2,Sr=je+Qr-d,Wr=je-Qr;Sr>0&&(je-=Sr),Wr<0&&(je+=-Wr)}be.crossPos=je}Oe.attr("text-anchor",be.anchor),Xe&&We.attr("text-anchor",be.anchor),ye.attr("transform",Xm(je,Ke)+(o?Oae(XC):""))}),{hoverLabels:me,commonLabelBoundingBox:F}}function UC(e,r,t,n,a,o){var c,p;var i="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Gt.templateString(e.name,e.trace._meta)),i=GC(e.name,e.nameLength));var u=t.charAt(0),s=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"<br>"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"<br>"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[u+"Label"]===a?l=e[s+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"<br>":"")+e.text),e.extraText!==void 0&&(l+=(l?"<br>":"")+e.extraText),o&&l===""&&!e.hovertemplate&&(i===""&&o.remove(),l=i),(p=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&p.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let x=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(x[u+"other"]=x[u+"Val"],x[u+"otherLabel"]=x[u+"Label"]),l=Gt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:x,locale:n._d3locale,template:f}),l=l.replace(Kae,(g,w)=>(i=GC(w,e.nameLength),""))}return[l,i]}function Qae(e,r,t,n){var a=r?"xa":"ya",o=r?"ya":"xa",i=0,l=1,u=e.size(),s=new Array(u),f=0,c=n.minX,p=n.maxX,x=n.minY,g=n.maxY,w=function(I){return I*t._invScaleX},M=function(I){return I*t._invScaleY};e.each(function(I){var P=I[a],L=I[o],F=P._id.charAt(0)==="x",B=P.range;f===0&&B&&B[0]>B[1]!==F&&(l=-1);var O=0,V=F?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var K=JC(I,r),j=I.anchor,G=j==="end"?-1:1,q,J;if(j==="middle")q=I.crossPos+(F?M(K.y-I.by/2):w(I.bx/2+I.tx2width/2)),J=q+(F?M(I.by):w(I.bx));else if(F)q=I.crossPos+M(zt+K.y)-M(I.by/2-zt),J=q+M(I.by);else{var te=w(G*zt+K.x),Z=te+w(G*I.bx);q=I.crossPos+Math.min(te,Z),J=I.crossPos+Math.max(te,Z)}F?x!==void 0&&g!==void 0&&Math.min(J,g)-Math.max(q,x)>1&&(L.side==="left"?(O=L._mainLinePosition,V=t.width):V=L._mainLinePosition):c!==void 0&&p!==void 0&&Math.min(J,p)-Math.max(q,c)>1&&(L.side==="top"?(O=L._mainLinePosition,V=t.height):V=L._mainLinePosition)}s[f++]=[{datum:I,traceIndex:I.trace.index,dp:0,pos:I.pos,posref:I.posref,size:I.by*(F?Xae:1)/2,pmin:O,pmax:V}]}),s.sort(function(I,P){return I[0].posref-P[0].posref||l*(P[0].traceIndex-I[0].traceIndex)});var m,k,S,b,T,h,_;function y(I){var P=I[0],L=I[I.length-1];if(k=P.pmin-P.pos-P.dp+P.size,S=L.pos+L.dp+L.size-P.pmax,k>.01){for(T=I.length-1;T>=0;T--)I[T].dp+=k;m=!1}if(!(S<.01)){if(k<-.01){for(T=I.length-1;T>=0;T--)I[T].dp-=S;m=!1}if(m){var F=0;for(b=0;b<I.length;b++)h=I[b],h.pos+h.dp+h.size>P.pmax&&F++;for(b=I.length-1;b>=0&&!(F<=0);b--)h=I[b],h.pos>P.pmax-1&&(h.del=!0,F--);for(b=0;b<I.length&&!(F<=0);b++)if(h=I[b],h.pos<P.pmin+1)for(h.del=!0,F--,S=h.size*2,T=I.length-1;T>=0;T--)I[T].dp-=S;for(b=I.length-1;b>=0&&!(F<=0);b--)h=I[b],h.pos+h.dp+h.size>P.pmax&&(h.del=!0,F--)}}}for(;!m&&i<=u;){for(i++,m=!0,b=0;b<s.length-1;){var v=s[b],A=s[b+1],d=v[v.length-1],D=A[0];if(k=d.pos+d.dp+d.size-D.pos-D.dp+D.size,k>.01){for(T=A.length-1;T>=0;T--)A[T].dp+=k;for(v.push.apply(v,A),s.splice(b+1,1),_=0,T=v.length-1;T>=0;T--)_+=v[T].dp;for(S=_/v.length,T=v.length-1;T>=0;T--)v[T].dp-=S;m=!1}else b++}s.forEach(y)}for(b=s.length-1;b>=0;b--){var E=s[b];for(T=E.length-1;T>=0;T--){var R=E[T],z=R.datum;z.offset=R.dp,z.del=R.del}}}function JC(e,r){var t=0,n=e.offset;return r&&(n*=-Zae,t=e.offset*Wae),{x:t,y:n}}function jae(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(zt+jr),n=t+r*(e.txwidth+jr),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+jr),{alignShift:r,textShiftX:t,text2ShiftX:n}}function $C(e,r,t,n){var a=function(i){return i*t},o=function(i){return i*n};e.each(function(i){var l=Ps.select(this);if(i.del)return l.remove();var u=l.select("text.nums"),s=i.anchor,f=s==="end"?-1:1,c=jae(i),p=JC(i,r),x=p.x,g=p.y,w=s==="middle",M="hoverlabel"in i.trace?i.trace.hoverlabel.showarrow:!0,m;w?m="M-"+a(i.bx/2+i.tx2width/2)+","+o(g-i.by/2)+"h"+a(i.bx)+"v"+o(i.by)+"h-"+a(i.bx)+"Z":M?m="M0,0L"+a(f*zt+x)+","+o(zt+g)+"v"+o(i.by/2-zt)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*zt+x)+"V"+o(g-zt)+"Z":m="M"+a(f*zt+x)+","+o(g-i.by/2)+"h"+a(f*i.bx)+"v"+o(i.by)+"h"+a(-f*i.bx)+"Z",l.select("path").attr("d",m);var k=x+c.textShiftX,S=g+i.ty0-i.by/2+jr,b=i.textAlign||"auto";b!=="auto"&&(b==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=w?-i.bx/2-i.tx2width/2+jr:-i.bx-jr):b==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=w?i.bx/2-i.tx2width/2-jr:i.bx+jr)),u.call(ja.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(ja.positionText,a(c.text2ShiftX+c.alignShift*jr+x),o(g+i.ty0-i.by/2+jr)),l.select("rect").call(oo.setRect,a(c.text2ShiftX+(c.alignShift-1)*i.tx2width/2+x),o(g-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function eie(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(p){return p||Fo(p)&&p===0}var l=Array.isArray(t)?function(p,x){var g=Gt.castOption(a,t,p);return i(g)?g:Gt.extractOption({},n,"",x)}:function(p,x){return Gt.extractOption(o,n,p,x)};function u(p,x,g){var w=l(x,g);i(w)&&(e[p]=w)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Gt.constrain(e.x0,0,e.xa._length),e.x1=Gt.constrain(e.x1,0,e.xa._length),e.y0=Gt.constrain(e.y0,0,e.ya._length),e.y1=Gt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:lo.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:lo.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var s=lo.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+lo.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+s,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=lo.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+lo.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function HC(e,r,t){var n=t.container,a=t.fullLayout,o=a._size,i=t.event,l=!!r.hLinePoint,u=!!r.vLinePoint,s,f;if(n.selectAll(".spikeline").remove(),!!(u||l)){var c=on.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var p=r.hLinePoint,x,g;s=p&&p.xa,f=p&&p.ya;var w=f.spikesnap;w==="cursor"?(x=i.pointerX,g=i.pointerY):(x=s._offset+p.x,g=f._offset+p.y);var M=on.wcagContrast(p.color,c)<1.5?on.contrast(c):p.color,m=f.spikemode,k=f.spikethickness,S=f.spikecolor||M,b=lo.getPxPosition(e,f),T,h;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(T=b,h=x),m.indexOf("across")!==-1){var _=f._counterDomainMin,y=f._counterDomainMax;f.anchor==="free"&&(_=Math.min(_,f.position),y=Math.max(y,f.position)),T=o.l+_*o.w,h=o.l+y*o.w}n.insert("line",":first-child").attr({x1:T,x2:h,y1:g,y2:g,"stroke-width":k,stroke:S,"stroke-dasharray":oo.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:T,x2:h,y1:g,y2:g,"stroke-width":k+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}m.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?k:-k),cy:g,r:k,fill:S}).classed("spikeline",!0)}if(u){var v=r.vLinePoint,A,d;s=v&&v.xa,f=v&&v.ya;var D=s.spikesnap;D==="cursor"?(A=i.pointerX,d=i.pointerY):(A=s._offset+v.x,d=f._offset+v.y);var E=on.wcagContrast(v.color,c)<1.5?on.contrast(c):v.color,R=s.spikemode,z=s.spikethickness,I=s.spikecolor||E,P=lo.getPxPosition(e,s),L,F;if(R.indexOf("toaxis")!==-1||R.indexOf("across")!==-1){if(R.indexOf("toaxis")!==-1&&(L=P,F=d),R.indexOf("across")!==-1){var B=s._counterDomainMin,O=s._counterDomainMax;s.anchor==="free"&&(B=Math.min(B,s.position),O=Math.max(O,s.position)),L=o.t+(1-O)*o.h,F=o.t+(1-B)*o.h}n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:F,"stroke-width":z,stroke:I,"stroke-dasharray":oo.dashStyle(s.spikedash,z)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:F,"stroke-width":z+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}R.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A,cy:P-(s.side!=="top"?z:-z),r:z,fill:I}).classed("spikeline",!0)}}}function rie(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],o=e._hoverdata[n];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber)||String(a.pointNumbers)!==String(o.pointNumbers)||a.binNumber!==o.binNumber)return!0}return!1}function VC(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function GC(e,r){return ja.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function tie(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;i<e.length;i++){var l=e[i];lu.traceIs(l.trace,"bar-like")||lu.traceIs(l.trace,"box-violin")?o.push(l):l.trace[t+"period"]?a.push(l):n.push(l)}return n.concat(a).concat(o)}function YC(e,r,t){var n=r[e+"a"],a=r[e+"Val"],o=r.cd[0];if(n.type==="category"||n.type==="multicategory")a=n._categoriesMap[a];else if(n.type==="date"){var i=r.trace[e+"periodalignment"];if(i){var l=r.cd[r.index],u=l[e+"Start"];u===void 0&&(u=l[e]);var s=l[e+"End"];s===void 0&&(s=l[e]);var f=s-u;i==="end"?a+=f:i==="middle"&&(a+=f/2)}a=n.d2c(a)}return o&&o.t&&o.t.posLetter===n._id&&(t.boxmode==="group"||t.violinmode==="group")&&(a+=o.t.dPos),a}var KC=e=>e.offsetTop+e.clientTop,QC=e=>e.offsetLeft+e.clientLeft;function ou(e,r){var t=e._fullLayout,n=r.getBoundingClientRect(),a=n.left,o=n.top,i=a+n.width,l=o+n.height,u=Gt.apply3DTransform(t._invTransform)(a,o),s=Gt.apply3DTransform(t._invTransform)(i,l),f=u[0],c=u[1],p=s[0],x=s[1];return{x:f,y:c,width:p-f,height:x-c,top:Math.min(c,x),left:Math.min(f,p),right:Math.max(f,p),bottom:Math.max(c,x)}}});var X1=xe((U5e,jC)=>{"use strict";var nie=rr(),aie=Xr(),iie=eo().isUnifiedHover;jC.exports=function(r,t,n,a){a=a||{};var o=t.legend;function i(l){a.font[l]||(a.font[l]=o?t.legend.font[l]:t.font[l])}t&&iie(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=aie.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),nie.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var rE=xe((H5e,eE)=>{"use strict";var oie=rr(),lie=X1(),sie=ts();eE.exports=function(r,t){function n(a,o){return oie.coerce(r,t,sie,a,o)}lie(r,t,n)}});var aE=xe((V5e,nE)=>{"use strict";var tE=rr(),uie=Wv(),fie=X1();nE.exports=function(r,t,n,a){function o(l,u){return tE.coerce(r,t,uie,l,u)}var i=tE.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),fie(r,t,o,i)}});var $m=xe((G5e,iE)=>{"use strict";var cie=rr(),vie=ts();iE.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:cie.coerce(r,t,vie,a,o)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var sE=xe((Y5e,lE)=>{"use strict";var oE=rr(),hie=ts(),die=$m(),pie=X1();lE.exports=function(r,t){function n(s,f){return oE.coerce(r,t,hie,s,f)}var a=die(r,t);a&&(n("hoverdistance"),n("spikedistance"),a.indexOf("unified")!==-1&&n("hoversort"));var o=n("dragmode");o==="select"&&n("selectdirection");var i=t._has("map"),l=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((i||l)&&u===1||i&&l&&u===2)&&(t.dragmode="pan"),pie(r,t,n),oE.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var cE=xe((X5e,fE)=>{"use strict";var Km=rr(),uE=Cr();fE.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return Km.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o<t.length;o++){var i=t[o],l=i[0].trace;if(!uE.traceIs(l,"pie-like")){var u=uE.traceIs(l,"2dMap")?gie:Km.fillArray;u(l.hoverinfo,i,"hi",a(l)),l.hovertemplate&&u(l.hovertemplate,i,"ht"),l.hoverlabel&&(u(l.hoverlabel.bgcolor,i,"hbg"),u(l.hoverlabel.bordercolor,i,"hbc"),u(l.hoverlabel.font.size,i,"hts"),u(l.hoverlabel.font.color,i,"htc"),u(l.hoverlabel.font.family,i,"htf"),u(l.hoverlabel.font.weight,i,"htw"),u(l.hoverlabel.font.style,i,"hty"),u(l.hoverlabel.font.variant,i,"htv"),u(l.hoverlabel.namelength,i,"hnl"),u(l.hoverlabel.align,i,"hta"),u(l.hoverlabel.showarrow,i,"htsa"))}}};function gie(e,r,t,n){n=n||Km.identity,Array.isArray(e)&&(r[0][t]=n(e))}});var dE=xe((W5e,hE)=>{"use strict";var yie=Cr(),vE=eo(),mie=Jm().hover;hE.exports=function(r,t,n){var a=yie.getComponentMethod("annotations","onClick")(r,r._hoverdata),o=r._fullLayout;n!==void 0&&mie(r,t,n,!0);function i(){var u,s,f,c,p,x;var l={points:r._hoverdata,event:t};(u=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(s=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&vE.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&vE.c2dApply(r._hoverYAxes,r._hoverYVals)),(p=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(x=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||o.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),a&&a.then?a.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var so=xe((Z5e,yE)=>{"use strict";var bie=nt(),W1=rr(),xie=Ai(),lc=eo(),pE=ts(),gE=Jm();yE.exports={moduleType:"component",name:"fx",constants:vf(),schema:{layout:pE},attributes:Wv(),layoutAttributes:pE,supplyLayoutGlobalDefaults:rE(),supplyDefaults:aE(),supplyLayoutDefaults:sE(),calc:cE(),getDistanceFunction:lc.getDistanceFunction,getClosest:lc.getClosest,inbox:lc.inbox,quadrature:lc.quadrature,appendArrayPointValue:lc.appendArrayPointValue,castHoverOption:wie,castHoverinfo:Mie,hover:gE.hover,unhover:xie.unhover,loneHover:gE.loneHover,loneUnhover:_ie,click:dE()};function _ie(e){var r=W1.isD3Selection(e)?e:bie.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function wie(e,r,t){return W1.castOption(e,r,"hoverlabel."+t)}function Mie(e,r,t){function n(a){return W1.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return W1.castOption(e,t,"hoverinfo",n)}});var su=xe(Po=>{"use strict";Po.selectMode=function(e){return e==="lasso"||e==="select"};Po.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Po.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Po.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Po.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Po.selectingOrDrawing=function(e){return Po.freeMode(e)||Po.rectMode(e)}});var Z1=xe(($5e,mE)=>{"use strict";mE.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var J1=xe((K5e,bE)=>{"use strict";bE.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>"," <title>plotly-logomark</title>"," <g id='symbol'>","  <rect fill='#000' x='0' y='0' width='132' height='132' rx='18' ry='18'/>","  <circle fill='#9EF' cx='102' cy='30' r='6'/>","  <circle fill='#BAC' cx='78' cy='30' r='6'/>","  <circle fill='#BAC' cx='78' cy='54' r='6'/>","  <circle fill='#D69' cx='54' cy='30' r='6'/>","  <circle fill='#F26' cx='30' cy='30' r='6'/>","  <circle fill='#F26' cx='30' cy='54' r='6'/>","  <path fill='#FFF' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>","  <path fill='#FFF' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>","  <path fill='#FFF' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>","  <path fill='#FFF' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}});var K1=xe((Q5e,xE)=>{"use strict";var $1=32;xE.exports={CIRCLE_SIDES:$1,i000:0,i090:$1/4,i180:$1/2,i270:$1/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var Q1=xe((j5e,wE)=>{"use strict";var Tie=rr().strTranslate;function _E(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function Aie(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function kie(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return _E(e,t[r])}}function Sie(e){return Tie(e.xaxis._offset,e.yaxis._offset)}wE.exports={p2r:_E,r2p:Aie,axValue:kie,getTransform:Sie}});var Al=xe(Io=>{"use strict";var Cie=By(),AE=K1(),uu=AE.CIRCLE_SIDES,Qm=AE.SQRT2,kE=Q1(),ME=kE.p2r,TE=kE.r2p,Eie=[0,3,4,5,6,1,2],Lie=[0,3,4,1,2];Io.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n<r;n++)for(var a=e[n].length,o=0;o<a;o++){var i=e[n][o][0];if(i==="Z")t+="Z";else for(var l=e[n][o].length,u=0;u<l;u++){var s=u;i==="Q"||i==="S"?s=Lie[u]:i==="C"&&(s=Eie[u]),t+=e[n][o][s],u>0&&u<l-1&&(t+=",")}}return t};Io.readPaths=function(e,r,t,n){var a=Cie(e),o=[],i=-1,l=function(){i++,o[i]=[]},u,s=0,f=0,c,p,x=function(){c=s,p=f};x();for(var g=0;g<a.length;g++){var w=[],M,m,k,S,b=a[g][0],T=b;switch(b){case"M":l(),s=+a[g][1],f=+a[g][2],w.push([T,s,f]),x();break;case"Q":case"S":M=+a[g][1],k=+a[g][2],s=+a[g][3],f=+a[g][4],w.push([T,s,f,M,k]);break;case"C":M=+a[g][1],k=+a[g][2],m=+a[g][3],S=+a[g][4],s=+a[g][5],f=+a[g][6],w.push([T,s,f,M,k,m,S]);break;case"T":case"L":s=+a[g][1],f=+a[g][2],w.push([T,s,f]);break;case"H":T="L",s=+a[g][1],w.push([T,s,f]);break;case"V":T="L",f=+a[g][1],w.push([T,s,f]);break;case"A":T="L";var h=+a[g][1],_=+a[g][2];+a[g][4]||(h=-h,_=-_);var y=s-h,v=f;for(u=1;u<=uu/2;u++){var A=2*Math.PI*u/uu;w.push([T,y+h*Math.cos(A),v+_*Math.sin(A)])}break;case"Z":(s!==c||f!==p)&&(s=c,f=p,w.push([T,s,f]));break}for(var d=(t||{}).domain,D=r._fullLayout._size,E=t&&t.xsizemode==="pixel",R=t&&t.ysizemode==="pixel",z=n===!1,I=0;I<w.length;I++){for(u=0;u+2<7;u+=2){var P=w[I][u+1],L=w[I][u+2];P===void 0||L===void 0||(s=P,f=L,t&&(t.xaxis&&t.xaxis.p2r?(z&&(P-=t.xaxis._offset),E?P=TE(t.xaxis,t.xanchor)+P:P=ME(t.xaxis,P)):(z&&(P-=D.l),d?P=d.x[0]+P/D.w:P=P/D.w),t.yaxis&&t.yaxis.p2r?(z&&(L-=t.yaxis._offset),R?L=TE(t.yaxis,t.yanchor)-L:L=ME(t.yaxis,L)):(z&&(L-=D.t),d?L=d.y[1]-L/D.h:L=1-L/D.h)),w[I][u+1]=P,w[I][u+2]=L)}o[i].push(w[I].slice())}}return o};function sc(e,r){return Math.abs(e-r)<=1e-6}function j1(e,r){var t=r[1]-e[1],n=r[2]-e[2];return Math.sqrt(t*t+n*n)}Io.pointsOnRectangle=function(e){var r=e.length;if(r!==5)return!1;for(var t=1;t<3;t++){var n=e[0][t]-e[1][t],a=e[3][t]-e[2][t];if(!sc(n,a))return!1;var o=e[0][t]-e[3][t],i=e[1][t]-e[2][t];if(!sc(o,i))return!1}return!sc(e[0][1],e[1][1])&&!sc(e[0][1],e[3][1])?!1:!!(j1(e[0],e[1])*j1(e[0],e[3]))};Io.pointsOnEllipse=function(e){var r=e.length;if(r!==uu+1)return!1;r=uu;for(var t=0;t<r;t++){var n=(r*2-t)%r,a=(r/2+n)%r,o=(r/2+t)%r;if(!sc(j1(e[t],e[o]),j1(e[n],e[a])))return!1}return!0};Io.handleEllipse=function(e,r,t){if(!e)return[r,t];var n=Io.ellipseOver({x0:r[0],y0:r[1],x1:t[0],y1:t[1]}),a=(n.x1+n.x0)/2,o=(n.y1+n.y0)/2,i=(n.x1-n.x0)/2,l=(n.y1-n.y0)/2;i||(i=l=l/Qm),l||(l=i=i/Qm);for(var u=[],s=0;s<uu;s++){var f=s*2*Math.PI/uu;u.push([a+i*Math.cos(f),o+l*Math.sin(f)])}return u};Io.ellipseOver=function(e){var r=e.x0,t=e.y0,n=e.x1,a=e.y1,o=n-r,i=a-t;r-=o,t-=i;var l=(r+n)/2,u=(t+a)/2,s=Qm;return o*=s,i*=s,{x0:l-o,y0:u-i,x1:l+o,y1:u+i}};Io.fixDatesForPaths=function(e,r,t){var n=r.type==="date",a=t.type==="date";if(!n&&!a)return e;for(var o=0;o<e.length;o++)for(var i=0;i<e[o].length;i++)for(var l=0;l+2<e[o][i].length;l+=2)n&&(e[o][i][l+1]=e[o][i][l+1].replace(" ","_")),a&&(e[o][i][l+2]=e[o][i][l+2].replace(" ","_"));return e}});var t2=xe((rbe,IE)=>{"use strict";var SE=fn(),RE=su(),Die=RE.drawMode,Rie=RE.openMode,fu=K1(),CE=fu.i000,EE=fu.i090,LE=fu.i180,DE=fu.i270,Fie=fu.cos45,Pie=fu.sin45,FE=Q1(),e2=FE.p2r,kl=FE.r2p,Iie=vl(),zie=Iie.clearOutline,r2=Al(),Nie=r2.readPaths,qie=r2.writePaths,Bie=r2.ellipseOver,Oie=r2.fixDatesForPaths;function Uie(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,o=r.dragmode,i=(n.layout||{}).shapes||[];if(!Die(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l<i.length)switch(n._fullLayout.shapes[l].type){case"rect":o="drawrect";break;case"circle":o="drawcircle";break;case"line":o="drawline";break;case"path":var u=i[l].path||"";u[u.length-1]==="Z"?o="drawclosedpath":o="drawopenpath";break}}var s=PE(e,r,o);zie(n);for(var f=r.editHelpers,c=(f||{}).modifyItem,p=[],x=0;x<i.length;x++){var g=n._fullLayout.shapes[x];if(p[x]=g._input,a!==void 0&&x===n._fullLayout._activeShapeIndex){var w=s;switch(g.type){case"line":case"rect":case"circle":var M=SE.getFromId(n,g.xref);g.xref.charAt(0)==="x"&&M.type.includes("category")?(c("x0",w.x0-(g.x0shift||0)),c("x1",w.x1-(g.x1shift||0))):(c("x0",w.x0),c("x1",w.x1));var m=SE.getFromId(n,g.yref);g.yref.charAt(0)==="y"&&m.type.includes("category")?(c("y0",w.y0-(g.y0shift||0)),c("y1",w.y1-(g.y1shift||0))):(c("y0",w.y0),c("y1",w.y1));break;case"path":c("path",w.path);break}}}return a===void 0?(p.push(s),p):f?f.getUpdateObj():{}}}}function PE(e,r,t){var n=e[0][0],a=r.gd,o=n.getAttribute("d"),i=a._fullLayout.newshape,l=r.plotinfo,u=r.isActiveShape,s=l.xaxis,f=l.yaxis,c=!!l.domain||!l.xaxis,p=!!l.domain||!l.yaxis,x=Rie(t),g=Nie(o,a,l,u),w={editable:!0,visible:i.visible,name:i.name,showlegend:i.showlegend,legend:i.legend,legendwidth:i.legendwidth,legendgroup:i.legendgroup,legendgrouptitle:{text:i.legendgrouptitle.text,font:i.legendgrouptitle.font},legendrank:i.legendrank,label:i.label,xref:c?"paper":s._id,yref:p?"paper":f._id,layer:i.layer,opacity:i.opacity,line:{color:i.line.color,width:i.line.width,dash:i.line.dash}};x||(w.fillcolor=i.fillcolor,w.fillrule=i.fillrule);var M;if(g.length===1&&(M=g[0]),M&&M.length===5&&t==="drawrect")w.type="rect",w.x0=M[0][1],w.y0=M[0][2],w.x1=M[2][1],w.y1=M[2][2];else if(M&&t==="drawline")w.type="line",w.x0=M[0][1],w.y0=M[0][2],w.x1=M[1][1],w.y1=M[1][2];else if(M&&t==="drawcircle"){w.type="circle";var m=M[CE][1],k=M[EE][1],S=M[LE][1],b=M[DE][1],T=M[CE][2],h=M[EE][2],_=M[LE][2],y=M[DE][2],v=l.xaxis&&(l.xaxis.type==="date"||l.xaxis.type==="log"),A=l.yaxis&&(l.yaxis.type==="date"||l.yaxis.type==="log");v&&(m=kl(l.xaxis,m),k=kl(l.xaxis,k),S=kl(l.xaxis,S),b=kl(l.xaxis,b)),A&&(T=kl(l.yaxis,T),h=kl(l.yaxis,h),_=kl(l.yaxis,_),y=kl(l.yaxis,y));var d=(k+b)/2,D=(T+_)/2,E=(b-k+S-m)/2,R=(y-h+_-T)/2,z=Bie({x0:d,y0:D,x1:d+E*Fie,y1:D+R*Pie});v&&(z.x0=e2(l.xaxis,z.x0),z.x1=e2(l.xaxis,z.x1)),A&&(z.y0=e2(l.yaxis,z.y0),z.y1=e2(l.yaxis,z.y1)),w.x0=z.x0,w.y0=z.y0,w.x1=z.x1,w.y1=z.y1}else w.type="path",s&&f&&Oie(g,s,f),w.path=qie(g),M=null;return w}IE.exports={newShapes:Uie,createShapeObj:PE}});var e5=xe((tbe,zE)=>{"use strict";var Hie=su(),Vie=Hie.selectMode,Gie=vl(),Yie=Gie.clearOutline,jm=Al(),Xie=jm.readPaths,Wie=jm.writePaths,Zie=jm.fixDatesForPaths;zE.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),o=t.gd,i=o._fullLayout.newselection,l=t.plotinfo,u=l.xaxis,s=l.yaxis,f=t.isActiveSelection,c=t.dragmode,p=(o.layout||{}).selections||[];if(!Vie(c)&&f!==void 0){var x=o._fullLayout._activeSelectionIndex;if(x<p.length)switch(o._fullLayout.selections[x].type){case"rect":c="select";break;case"path":c="lasso";break}}var g=Xie(a,o,l,f),w={xref:u._id,yref:s._id,opacity:i.opacity,line:{color:i.line.color,width:i.line.width,dash:i.line.dash}},M;g.length===1&&(M=g[0]),M&&M.length===5&&c==="select"?(w.type="rect",w.x0=M[0][1],w.y0=M[0][2],w.x1=M[2][1],w.y1=M[2][2]):(w.type="path",u&&s&&Zie(g,u,s),w.path=Wie(g),M=null),Yie(o);for(var m=t.editHelpers,k=(m||{}).modifyItem,S=[],b=0;b<p.length;b++){var T=o._fullLayout.selections[b];if(!T){S[b]=T;continue}if(S[b]=T._input,f!==void 0&&b===o._fullLayout._activeSelectionIndex){var h=w;switch(T.type){case"rect":k("x0",h.x0),k("x1",h.x1),k("y0",h.y0),k("y1",h.y1);break;case"path":k("path",h.path);break}}}return f===void 0?(S.push(w),S):m?m.getUpdateObj():{}}}}});var uc=xe((nbe,NE)=>{"use strict";NE.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Cl=xe(An=>{"use strict";var fo=uc(),qE=rr(),Sl=Bt();An.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};An.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};An.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};An.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};An.extractPathCoords=function(e,r,t){var n=[],a=e.match(fo.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.slice(1).match(fo.paramRE);if(!(!l||l.length<i)){var u=l[i],s=t?u:qE.cleanNumber(u);n.push(s)}}}),n};An.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let n=r.match(fo.segmentRE);if(!n)return 0;let a=t==="x"?fo.paramIsX:fo.paramIsY;return n.reduce((o,i)=>{let l=i.charAt(0),u=a[l].drawn!==void 0;return o+(u?1:0)},0)};An.getDataToPixel=function(e,r,t,n,a){var o=e._fullLayout._size,i;if(r)if(a==="domain")i=function(u){return r._length*(n?1-u:u)+r._offset};else{var l=An.shapePositionToRange(r);i=function(u){var s=uo(r,t);return r._offset+r.r2p(l(u,!0))+s},r.type==="date"&&(i=An.decodeDate(i))}else n?i=function(u){return o.t+o.h*(1-u)}:i=function(u){return o.l+o.w*u};return i};An.getPixelToData=function(e,r,t,n){var a=e._fullLayout._size,o;if(r)if(n==="domain")o=function(l){var u=(l-r._offset)/r._length;return t?1-u:u};else{var i=An.rangeToShapePosition(r);o=function(l){return i(r.p2r(l-r._offset))}}else t?o=function(l){return 1-(l-a.t)/a.h}:o=function(l){return(l-a.l)/a.w};return o};An.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};An.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&t.xref!=="paper"&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(n.yaxis=e._fullLayout[t.yref+"axis"])),n.xsizemode=t.xsizemode,n.ysizemode=t.ysizemode,n.xanchor=t.xanchor,n.yanchor=t.yanchor,{options:t,plotinfo:n}};An.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(n.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:n}};An.getPathString=function(e,r){let t=r.type,n=Sl.getRefType(r.xref),a=Sl.getRefType(r.yref),o=e._fullLayout._size;var i,l,u,s,f,c,p,x,g,w,M,m;function k(A,d,D,E){var R;if(A)if(d==="domain")E?R=function(z){return A._offset+A._length*(1-z)}:R=function(z){return A._offset+A._length*z};else{let z=An.shapePositionToRange(A);R=function(I){return A._offset+A.r2p(z(I,!0))},D==="path"&&A.type==="date"&&(R=An.decodeDate(R))}else E?R=function(z){return o.t+o.h*(1-z)}:R=function(z){return o.l+o.w*z};return R}if(n==="array"?(p=[],i=r.xref.map(function(A){return Sl.getFromId(e,A)}),p=r.xref.map(function(A,d){return k(i[d],Sl.getRefType(A),t,!1)})):(i=Sl.getFromId(e,r.xref),p=k(i,n,t,!1)),a==="array"?(x=[],l=r.yref.map(function(A){return Sl.getFromId(e,A)}),x=r.yref.map(function(A,d){return k(l[d],Sl.getRefType(A),t,!0)})):(l=Sl.getFromId(e,r.yref),x=k(l,a,t,!0)),t==="path")return Jie(r,p,x);if(n==="array")u=uo(i[0],r.x0shift),s=uo(i[1],r.x1shift),g=p[0](r.x0)+u,w=p[1](r.x1)+s;else if(u=uo(i,r.x0shift),s=uo(i,r.x1shift),r.xsizemode==="pixel"){let A=p(r.xanchor);g=A+r.x0+u,w=A+r.x1+s}else g=p(r.x0)+u,w=p(r.x1)+s;if(a==="array")f=uo(l[0],r.y0shift),c=uo(l[1],r.y1shift),M=x[0](r.y0)+f,m=x[1](r.y1)+c;else if(f=uo(l,r.y0shift),c=uo(l,r.y1shift),r.ysizemode==="pixel"){let A=x(r.yanchor);M=A-r.y0+f,m=A-r.y1+c}else M=x(r.y0)+f,m=x(r.y1)+c;if(t==="line")return"M"+g+","+M+"L"+w+","+m;if(t==="rect")return"M"+g+","+M+"H"+w+"V"+m+"H"+g+"Z";var S=(g+w)/2,b=(M+m)/2,T=Math.abs(S-g),h=Math.abs(b-M),_="A"+T+","+h,y=S+T+","+b,v=S+","+(b-h);return"M"+y+_+" 0 1,1 "+v+_+" 0 0,1 "+y+"Z"};function Jie(e,r,t){let n=e.path,a=e.xsizemode,o=e.ysizemode,i=e.xanchor,l=e.yanchor,u=Array.isArray(e.xref),s=Array.isArray(e.yref);var f=0,c=0;return n.replace(fo.segmentRE,function(p){var x=0,g=p.charAt(0),w=fo.paramIsX[g],M=fo.paramIsY[g],m=fo.numParams[g];let k=w.drawn!==void 0,S=M.drawn!==void 0,b=u?r[f]:r,T=s?t[c]:t;var h=p.slice(1).replace(fo.paramRE,function(_){return w[x]?a==="pixel"?_=b(i)+Number(_):_=b(_):M[x]&&(o==="pixel"?_=T(l)-Number(_):_=T(_)),x++,x>m&&(_="X"),_});return x>m&&(h=h.replace(/[\s,]*X.*/,""),qE.log("Ignoring extra params in segment "+p)),k&&f++,S&&c++,g+h})}An.getPixelShift=uo;function uo(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var r5=xe((ibe,UE)=>{"use strict";var $ie=rr(),co=Bt(),BE=Un(),OE=Mt(),Kie=Al().readPaths,zs=Cl(),Qie=zs.getPathString,fc=Sh(),jie=On().FROM_TL;UE.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var o;if(n.label.texttemplate){var i={};if(n.type!=="path"){var l=co.getFromId(r,n.xref),u=co.getFromId(r,n.yref);let O=Array.isArray(n.xref),V=Array.isArray(n.yref);for(var s in fc){var f=typeof fc[s]=="function",c=!O||fc.simpleXVariables.includes(s),p=!V||fc.simpleYVariables.includes(s);if(f&&c&&p){var x=fc[s](n,l,u);x!==void 0&&(i[s]=x)}}}o=$ie.texttemplateStringForShapes({data:[i],fallback:n.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:n.label.texttemplate})}else o=n.label.text;var g={"data-index":t},w=n.label.font,M={"data-notex":1},m=a.append("g").attr(g).classed("shape-label",!0),k=m.append("text").attr(M).classed("shape-label-text",!0).text(o),S,b,T,h;if(n.path){var _=Qie(r,n),y=Kie(_,r);S=1/0,T=1/0,b=-1/0,h=-1/0;for(var v=0;v<y.length;v++)for(var A=0;A<y[v].length;A++)for(var d=y[v][A],D=1;D<d.length;D+=2){var E=d[D],R=d[D+1];S=Math.min(S,E),b=Math.max(b,E),T=Math.min(T,R),h=Math.max(h,R)}}else{let O=Array.isArray(n.xref),V=Array.isArray(n.yref),K=co.getFromId(r,O?n.xref[0]:n.xref),j=co.getFromId(r,O?n.xref[1]:n.xref),G=co.getFromId(r,V?n.yref[0]:n.yref),q=co.getFromId(r,V?n.yref[1]:n.yref),J=co.getRefType(O?n.xref[0]:n.xref),te=co.getRefType(O?n.xref[1]:n.xref),Z=co.getRefType(V?n.yref[0]:n.yref),ie=co.getRefType(V?n.yref[1]:n.yref),Q=(ue,ee,ae,ce)=>zs.getDataToPixel(r,ae,ee,!1,ce)(ue),re=(ue,ee,ae,ce)=>zs.getDataToPixel(r,ae,ee,!0,ce)(ue);if(n.xsizemode==="pixel"){let ue=Q(n.xanchor,void 0,K,J),ee=zs.getPixelShift(K,n.x0shift),ae=zs.getPixelShift(K,n.x1shift);S=ue+n.x0+ee,b=ue+n.x1+ae}else S=Q(n.x0,n.x0shift,K,J),b=Q(n.x1,n.x1shift,j,te);if(n.ysizemode==="pixel"){let ue=re(n.yanchor,void 0,G,Z),ee=zs.getPixelShift(G,n.y0shift),ae=zs.getPixelShift(G,n.y1shift);T=ue-n.y0+ee,h=ue-n.y1+ae}else T=re(n.y0,n.y0shift,G,Z),h=re(n.y1,n.y1shift,q,ie)}var z=n.label.textangle;z==="auto"&&(n.type==="line"?z=eoe(S,T,b,h):z=0),k.call(function(O){return O.call(OE.font,w).attr({}),BE.convertToTspans(O,r),O});var I=OE.bBox(k.node()),P=roe(S,T,b,h,n,z,I),L=P.textx,F=P.texty,B=P.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[B],y:F,x:L,transform:"rotate("+z+","+L+","+F+")"}).call(BE.positionText,L,F)}};function eoe(e,r,t,n){var a,o;return o=Math.abs(t-e),t>=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,o)}function roe(e,r,t,n,a,o,i){var l=a.label.textposition,u=a.label.textangle,s=a.label.padding,f=a.type,c=Math.PI/180*o,p=Math.sin(c),x=Math.cos(c),g=a.label.xanchor,w=a.label.yanchor,M,m,k,S;if(f==="line"){l==="start"?(M=e,m=r):l==="end"?(M=t,m=n):(M=(e+t)/2,m=(r+n)/2),g==="auto"&&(l==="start"?u==="auto"?t>e?g="left":t<e?g="right":g="center":t>e?g="right":t<e?g="left":g="center":l==="end"?u==="auto"?t>e?g="right":t<e?g="left":g="center":t>e?g="left":t<e?g="right":g="center":g="center");var b={left:1,center:0,right:-1},T={bottom:-1,middle:0,top:1};if(u==="auto"){var h=T[w];k=-s*p*h,S=s*x*h}else{var _=b[g],y=T[w];k=s*_,S=s*y}M=M+k,m=m+S}else k=s+3,l.indexOf("right")!==-1?(M=Math.max(e,t)-k,g==="auto"&&(g="right")):l.indexOf("left")!==-1?(M=Math.min(e,t)+k,g==="auto"&&(g="left")):(M=(e+t)/2,g==="auto"&&(g="center")),l.indexOf("top")!==-1?m=Math.min(r,n):l.indexOf("bottom")!==-1?m=Math.max(r,n):m=(r+n)/2,S=s,w==="bottom"?m=m-S:w==="top"&&(m=m+S);var v=jie[w],A=a.label.font.size,d=i.height,D=(d*v-A)*p,E=-(d*v-A)*x;return{textx:M+D,texty:m+E,xanchor:g}}});var i2=xe((obe,JE)=>{"use strict";var toe=rr(),noe=toe.strTranslate,HE=Ai(),YE=su(),aoe=YE.drawMode,XE=YE.selectMode,WE=Cr(),VE=Xr(),a2=K1(),ioe=a2.i000,ooe=a2.i090,loe=a2.i180,soe=a2.i270,uoe=vl(),ZE=uoe.clearOutlineControllers,n5=Al(),n2=n5.pointsOnRectangle,t5=n5.pointsOnEllipse,foe=n5.writePaths,coe=t2().newShapes,voe=t2().createShapeObj,hoe=e5(),doe=r5();JE.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),(t5(r[0])||n.hasText)&&l({redrawing:!0})}function l(P){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=coe(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=hoe(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&WE.call((P||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,c=aoe(f),p=XE(f);(c||p)&&(o._fullLayout._outlining=!0),ZE(o),t.attr("d",foe(r));var x,g,w,M,m;if(!a&&(n.isActiveShape||n.isActiveSelection)){m=poe([],r);var k=s.append("g").attr("class","outline-controllers");A(k),I()}if(c&&n.hasText){var S=s.select(".label-temp"),b=voe(t,n,n.dragmode);doe(o,"label-temp",b,S)}function T(P){w=+P.srcElement.getAttribute("data-i"),M=+P.srcElement.getAttribute("data-j"),x[w][M].moveFn=h}function h(P,L){if(r.length){var F=m[w][M][1],B=m[w][M][2],O=r[w],V=O.length;if(n2(O)){var K=P,j=L;if(n.isActiveSelection){var G=GE(O,M);G[1]===O[M][1]?j=0:K=0}for(var q=0;q<V;q++)if(q!==M){var J=O[q];J[1]===O[M][1]&&(J[1]=F+K),J[2]===O[M][2]&&(J[2]=B+j)}if(O[M][1]=F+K,O[M][2]=B+j,!n2(O))for(var te=0;te<V;te++)for(var Z=0;Z<O[te].length;Z++)O[te][Z]=m[w][te][Z]}else O[M][1]=F+P,O[M][2]=B+L;i()}}function _(){l()}function y(){if(r.length&&r[w]&&r[w].length){for(var P=[],L=0;L<r[w].length;L++)L!==M&&P.push(r[w][L]);P.length>1&&!(P.length===2&&P[1][0]==="Z")&&(M===0&&(P[0][0]="M"),r[w]=P,i(),l())}}function v(P,L){if(P===2){w=+L.srcElement.getAttribute("data-i"),M=+L.srcElement.getAttribute("data-j");var F=r[w];!n2(F)&&!t5(F)&&y()}}function A(P){x=[];for(var L=0;L<r.length;L++){var F=r[L],B=n2(F),O=!B&&t5(F);x[L]=[];for(var V=F.length,K=0;K<V;K++)if(F[K][0]!=="Z"&&!(O&&K!==ioe&&K!==ooe&&K!==loe&&K!==soe)){var j=B&&n.isActiveSelection,G;j&&(G=GE(F,K));var q=F[K][1],J=F[K][2],te=P.append(j?"rect":"circle").attr("data-i",L).attr("data-j",K).style({fill:VE.background,stroke:VE.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(j){var Z=G[1]-q,ie=G[2]-J,Q=ie?5:Math.max(Math.min(25,Math.abs(Z)-5),5),re=Z?5:Math.max(Math.min(25,Math.abs(ie)-5),5);te.classed(ie?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",Q).attr("height",re).attr("x",q-Q/2).attr("y",J-re/2).attr("transform",noe(Z/2,ie/2))}else te.classed("cursor-grab",!0).attr("r",5).attr("cx",q).attr("cy",J);x[L][K]={element:te.node(),gd:o,prepFn:T,doneFn:_,clickFn:v},HE.init(x[L][K])}}}function d(P,L){if(r.length)for(var F=0;F<r.length;F++)for(var B=0;B<r[F].length;B++)for(var O=0;O+2<r[F][B].length;O+=2)r[F][B][O+1]=m[F][B][O+1]+P,r[F][B][O+2]=m[F][B][O+2]+L}function D(P,L){d(P,L),i()}function E(P){w=+P.srcElement.getAttribute("data-i"),w||(w=0),g[w].moveFn=D}function R(){l()}function z(P){P===2&&goe(o)}function I(){if(g=[],!!r.length){var P=0;g[P]={element:t[0][0],gd:o,prepFn:E,doneFn:R,clickFn:z},HE.init(g[P])}}};function poe(e,r){for(var t=0;t<r.length;t++){var n=r[t];e[t]=[];for(var a=0;a<n.length;a++){e[t][a]=[];for(var o=0;o<n[a].length;o++)e[t][a][o]=n[a][o]}}return e}function GE(e,r){var t=e[r][1],n=e[r][2],a=e.length,o,i,l;return o=(r+1)%a,i=e[o][1],l=e[o][2],i===t&&l===n&&(o=(r+2)%a,i=e[o][1],l=e[o][2]),[o,i,l]}function goe(e){if(XE(e._fullLayout.dragmode)){ZE(e);var r=e._fullLayout._activeSelectionIndex,t=(e.layout||{}).selections||[];if(r<t.length){for(var n=[],a=0;a<t.length;a++)a!==r&&n.push(t[a]);delete e._fullLayout._activeSelectionIndex;var o=e._fullLayout.selections[r];e._fullLayout._deselect={xref:o.xref,yref:o.yref},WE.call("_guiRelayout",e,{selections:n})}}}});var f2=xe((lbe,iL)=>{"use strict";var yoe=nt(),rL=Cr(),i5=rr(),Ns=Bt(),moe=Al().readPaths,boe=i2(),l2=r5(),tL=vl().clearOutlineControllers,a5=Xr(),s2=Mt(),xoe=wt().arrayEditor,$E=Ai(),KE=so(),QE=Ml(),qs=uc(),Ma=Cl(),o5=Ma.getPathString;iL.exports={draw:l5,drawOne:nL,eraseActiveShape:Aoe,drawLabel:l2};function l5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;a<r.shapes.length;a++)r.shapes[a].visible===!0&&nL(e,a)}function o2(e){return!!e._fullLayout._outlining}function u2(e){return!e._context.edits.shapePosition}function nL(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=Ma.makeShapesOptionsAndPlotinfo(e,r),n=t.options,a=t.plotinfo;if(!n._input||n.visible!==!0)return;let o=Array.isArray(n.xref)||Array.isArray(n.yref);if(n.layer==="above")l(e._fullLayout._shapeUpperLayer);else if(n.xref.includes("paper")||n.yref.includes("paper"))l(e._fullLayout._shapeLowerLayer);else if(n.layer==="between"&&!o)l(a.shapelayerBetween);else if(a._hadPlotinfo){var i=a.mainplotinfo||a;l(i.shapelayer)}else l(e._fullLayout._shapeLowerLayer);function l(u){var s=o5(e,n),f={"data-index":r,"fill-rule":n.fillrule,d:s},c=n.opacity,p=n.fillcolor,x=n.line.width?n.line.color:"rgba(0,0,0,0)",g=n.line.width,w=n.line.dash;!g&&n.editable===!0&&(g=5,w="solid");var M=s[s.length-1]!=="Z",m=u2(e)&&n.editable&&e._fullLayout._activeShapeIndex===r;m&&(p=M?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,c=e._fullLayout.activeshape.opacity);var k=u.append("g").classed("shape-group",!0).attr({"data-index":r}),S=k.append("path").attr(f).style("opacity",c).call(a5.stroke,x).call(a5.fill,p).call(s2.dashLine,w,g);aL(k,e,n),l2(e,r,n,k);var b;if((m||e._context.edits.shapePosition)&&(b=xoe(e.layout,"shapes",n)),m){S.style({cursor:"move"});var T={element:S.node(),plotinfo:a,gd:e,editHelpers:b,hasText:n.label.text||n.label.texttemplate,isActiveShape:!0},h=moe(s,e);boe(h,S,T)}else e._context.edits.shapePosition?Moe(e,S,n,r,u,b):n.editable===!0&&S.style("pointer-events",M||a5.opacity(p)*c<=.5?"stroke":"all");S.node().addEventListener("click",function(){return Toe(e,S)}),_oe(e,S,a)}}function _oe(e,r,t){if(!(t!=null&&t.id))return;let n=r.node();function a(o){var u;let i=t.mainplotinfo||t,l=(u=i==null?void 0:i.draglayer)==null?void 0:u.select(".nsewdrag").node();return l?{clientX:o.clientX,clientY:o.clientY,target:l}:null}n.addEventListener("mousemove",o=>{if(!e._dragging&&e._fullLayout.hoveranywhere){let i=a(o);i&&KE.hover(e,i,t.id)}}),n.addEventListener("click",o=>{if(!e._dragged&&e._fullLayout.clickanywhere){let i=a(o);i&&KE.click(e,i,t.id)}})}function aL(e,r,t){let n=t.xref,a=t.yref;if(Array.isArray(n)||Array.isArray(a)){let o="clip"+r._fullLayout._uid+"shape"+t._index,i=woe(r,n,a);i5.ensureSingleById(r._fullLayout._clips,"clipPath",o,function(l){l.append("rect")}).select("rect").attr(i),s2.setClipUrl(e,o,r)}else{let o=(n+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");s2.setClipUrl(e,o?"clip"+r._fullLayout._uid+o:null,r)}}function woe(e,r,t){let n=e._fullLayout._size;function a(l,u){let s=(Array.isArray(l)?l:[l]).map(p=>Ns.getFromId(e,p)).filter(Boolean);if(!s.length)return u?[n.t,n.t+n.h]:[n.l,n.l+n.w];let f=s.map(function(p){return p._offset}),c=s.map(function(p){return p._offset+p._length});return[Math.min(...f),Math.max(...c)]}let o=a(r,!1),i=a(t,!0);return{x:o[0],y:i[0],width:o[1]-o[0],height:i[1]-i[0]}}function Moe(e,r,t,n,a,o){var i=10,l=10,u=t.xsizemode==="pixel",s=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",p=o.modifyItem,x,g,w,M,m,k,S,b,T,h,_,y,v,A,d,D=yoe.select(r.node().parentNode),E=Ns.getFromId(e,t.xref),R=Ns.getRefType(t.xref),z=Ns.getFromId(e,t.yref),I=Ns.getRefType(t.yref),P=t.x0shift,L=t.x1shift,F=t.y0shift,B=t.y1shift,O=function(Se,ge){var Le=Ma.getDataToPixel(e,E,ge,!1,R);return Le(Se)},V=function(Se,ge){var Le=Ma.getDataToPixel(e,z,ge,!0,I);return Le(Se)},K=Ma.getPixelToData(e,E,!1,R),j=Ma.getPixelToData(e,z,!0,I),G=te(),q={element:G.node(),gd:e,prepFn:Q,doneFn:re,clickFn:ue},J;$E.init(q),G.node().onmousemove=ie;function te(){return f?Z():r}function Z(){var Se=10,ge=Math.max(t.line.width,Se),Le=a.append("g").attr("data-index",n).attr("drag-helper",!0);Le.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ge,"stroke-opacity":"0"});var Ce={"fill-opacity":"0"},le=Math.max(ge/2,Se);return Le.append("circle").attr({"data-line-point":"start-point",cx:u?O(t.xanchor)+t.x0:O(t.x0,P),cy:s?V(t.yanchor)-t.y0:V(t.y0,F),r:le}).style(Ce).classed("cursor-grab",!0),Le.append("circle").attr({"data-line-point":"end-point",cx:u?O(t.xanchor)+t.x1:O(t.x1,L),cy:s?V(t.yanchor)-t.y1:V(t.y1,B),r:le}).style(Ce).classed("cursor-grab",!0),Le}function ie(Se){if(o2(e)){J=null;return}if(f)Se.target.tagName==="path"?J="move":J=Se.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ge=q.element.getBoundingClientRect(),Le=ge.right-ge.left,Ce=ge.bottom-ge.top,le=Se.clientX-ge.left,Y=Se.clientY-ge.top,$=!c&&Le>i&&Ce>l&&!Se.shiftKey?$E.getCursor(le/Le,1-Y/Ce):"move";QE(r,$),J=$.split("-")[0]}}function Q(Se){o2(e)||(u&&(m=O(t.xanchor)),s&&(k=V(t.yanchor)),t.type==="path"?d=t.path:(x=u?t.x0:O(t.x0),g=s?t.y0:V(t.y0),w=u?t.x1:O(t.x1),M=s?t.y1:V(t.y1)),x<w?(T=x,v="x0",h=w,A="x1"):(T=w,v="x1",h=x,A="x0"),!s&&g<M||s&&g>M?(S=g,_="y0",b=M,y="y1"):(S=M,_="y1",b=g,y="y0"),ie(Se),ce(a,t),ke(r,t,e),q.moveFn=J==="move"?ee:ae,q.altKey=Se.altKey)}function re(){o2(e)||(QE(r),Te(a),aL(r,e,t),rL.call("_guiRelayout",e,o.getUpdateObj()))}function ue(){o2(e)||Te(a)}function ee(Se,ge){if(t.type==="path"){var Le=function(Y){return Y},Ce=Le,le=Le;u?p("xanchor",t.xanchor=K(m+Se)):(Ce=function($){return K(O($)+Se)},E&&E.type==="date"&&(Ce=Ma.encodeDate(Ce))),s?p("yanchor",t.yanchor=j(k+ge)):(le=function($){return j(V($)+ge)},z&&z.type==="date"&&(le=Ma.encodeDate(le))),p("path",t.path=jE(d,Ce,le))}else u?p("xanchor",t.xanchor=K(m+Se)):(p("x0",t.x0=K(x+Se)),p("x1",t.x1=K(w+Se))),s?p("yanchor",t.yanchor=j(k+ge)):(p("y0",t.y0=j(g+ge)),p("y1",t.y1=j(M+ge)));r.attr("d",o5(e,t)),ce(a,t),l2(e,n,t,D)}function ae(Se,ge){if(c){var Le=function(Fe){return Fe},Ce=Le,le=Le;u?p("xanchor",t.xanchor=K(m+Se)):(Ce=function(Ye){return K(O(Ye)+Se)},E&&E.type==="date"&&(Ce=Ma.encodeDate(Ce))),s?p("yanchor",t.yanchor=j(k+ge)):(le=function(Ye){return j(V(Ye)+ge)},z&&z.type==="date"&&(le=Ma.encodeDate(le))),p("path",t.path=jE(d,Ce,le))}else if(f){if(J==="resize-over-start-point"){var Y=x+Se,$=s?g-ge:g+ge;p("x0",t.x0=u?Y:K(Y)),p("y0",t.y0=s?$:j($))}else if(J==="resize-over-end-point"){var pe=w+Se,oe=s?M-ge:M+ge;p("x1",t.x1=u?pe:K(pe)),p("y1",t.y1=s?oe:j(oe))}}else{var ve=function(Fe){return J.indexOf(Fe)!==-1},he=ve("n"),me=ve("s"),be=ve("w"),ye=ve("e"),de=he?S+ge:S,_e=me?b+ge:b,Ae=be?T+Se:T,Pe=ye?h+Se:h;s&&(he&&(de=S-ge),me&&(_e=b-ge)),(!s&&_e-de>l||s&&de-_e>l)&&(p(_,t[_]=s?de:j(de)),p(y,t[y]=s?_e:j(_e))),Pe-Ae>i&&(p(v,t[v]=u?Ae:K(Ae)),p(A,t[A]=u?Pe:K(Pe)))}r.attr("d",o5(e,t)),ce(a,t),l2(e,n,t,D)}function ce(Se,ge){(u||s)&&Le();function Le(){var Ce=ge.type!=="path",le=Se.selectAll(".visual-cue").data([0]),Y=1;le.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Y}).classed("visual-cue",!0);var $=O(u?ge.xanchor:i5.midRange(Ce?[ge.x0,ge.x1]:Ma.extractPathCoords(ge.path,qs.paramIsX))),pe=V(s?ge.yanchor:i5.midRange(Ce?[ge.y0,ge.y1]:Ma.extractPathCoords(ge.path,qs.paramIsY)));if($=Ma.roundPositionForSharpStrokeRendering($,Y),pe=Ma.roundPositionForSharpStrokeRendering(pe,Y),u&&s){var oe="M"+($-1-Y)+","+(pe-1-Y)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";le.attr("d",oe)}else if(u){var ve="M"+($-1-Y)+","+(pe-9-Y)+"v18 h2 v-18 Z";le.attr("d",ve)}else{var he="M"+($-9-Y)+","+(pe-1-Y)+"h18 v2 h-18 Z";le.attr("d",he)}}}function Te(Se){Se.selectAll(".visual-cue").remove()}function ke(Se,ge,Le){var Ce=ge.xref,le=ge.yref,Y=Ns.getFromId(Le,Ce),$=Ns.getFromId(Le,le),pe="";Ce!=="paper"&&!Y.autorange&&(pe+=Ce),le!=="paper"&&!$.autorange&&(pe+=le),s2.setClipUrl(Se,pe?"clip"+Le._fullLayout._uid+pe:null,Le)}}function jE(e,r,t){return e.replace(qs.segmentRE,function(n){var a=0,o=n.charAt(0),i=qs.paramIsX[o],l=qs.paramIsY[o],u=qs.numParams[o],s=n.slice(1).replace(qs.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function Toe(e,r){if(u2(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){eL(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=eL,l5(e)}}}function eL(e){if(u2(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(tL(e),delete e._fullLayout._activeShapeIndex,l5(e))}}function Aoe(e){if(u2(e)){tL(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r<t.length){for(var n=[],a=0;a<t.length;a++)a!==r&&n.push(t[a]);return delete e._fullLayout._activeShapeIndex,rL.call("_guiRelayout",e,{shapes:n})}}}});var lL=xe((sbe,oL)=>{"use strict";var cu=rr()._,koe=function(e){return{DIALOG_TITLE:cu(e,"Share chart"),DIALOG_MESSAGE_CLOUD:cu(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:cu(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:cu(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:cu(e,"Cancel"),DIALOG_CONFIRM:cu(e,"Share")}};oL.exports=koe});var fL=xe((ube,uL)=>{"use strict";var sL=nt(),{dfltConfig:Soe}=jo(),Coe=lL(),Eoe=(e,r,t,n,a)=>{let o=Coe(e),i=r.append("div").classed("plotly-cloud-dialog-box",!0);if(i.append("div").classed("plotly-cloud-dialog-title",!0).text(o.DIALOG_TITLE),t===Soe.plotlyServerURL){let u=i.append("div").classed("plotly-cloud-dialog-message",!0),s=new URL(t).origin,f=o.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],p=f[2],x=f[4];u.append("span").text(c),u.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",s).attr("target","_blank").text(p),u.append("span").text(x),u.append("div").classed("plotly-cloud-dialog-message--account",!0).text(o.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let u=new URL(t),s=u.hostname,f=u.origin,c=o.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),p=c[0],x=c[4],g=i.append("div").classed("plotly-cloud-dialog-message",!0);g.append("span").text(p),g.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(s),g.append("span").text(x)}let l=i.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(o.DIALOG_CANCEL).on("click",a),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(o.DIALOG_CONFIRM).on("click",n)},Loe=(e,r,t)=>{let n=sL.select(e._fullLayout._paperdiv.node());n.selectAll(".plotly-cloud-dialog").remove();let a=n.append("div").classed("plotly-cloud-dialog",!0),o=()=>{a.remove(),document.removeEventListener("keydown",i)},i=l=>{(l.key==="Escape"||l.keyCode===27)&&o()};document.addEventListener("keydown",i),a.on("click",()=>{sL.event.target===a.node()&&o()}),Eoe(e,a,r,()=>{o(),t()},o)};uL.exports=Loe});var f5=xe((fbe,yL)=>{"use strict";var za=Cr(),Doe=bn(),vL=fn(),st=J1(),Roe=f2().eraseActiveShape,Foe=fL(),vu=rr(),et=vu._,ut=yL.exports={};ut.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?et(e,"Download plot as a PNG"):et(e,"Download plot")},icon:st.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};vu.notifier(et(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),za.call("downloadImage",e,t).then(function(n){vu.notifier(et(e,"Image download succeeded")+" - "+n,"long",e)}).catch(function(){vu.notifier(et(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ut.downloadJson={name:"downloadJson",title:function(e){return et(e,"Download plot as JSON")},icon:st.curlybraces,click:function(e){za.call("downloadImage",e,{format:"full-json"}).then(function(r){vu.notifier(et(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){vu.notifier(et(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ut.sendChartToCloud={name:"sendChartToCloud",title:function(e){return et(e,"Share chart...")},icon:st.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(a){console.error("Invalid plotlyServerURL: "+r);return}let n=["http:","https:"];if(!n.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${n.join(", ")}`);return}Foe(e,r,function(){Doe.sendDataToCloud(e,r)})}};ut.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return et(e,"Zoom")},attr:"dragmode",val:"zoom",icon:st.zoombox,click:na};ut.pan2d={name:"pan2d",_cat:"pan",title:function(e){return et(e,"Pan")},attr:"dragmode",val:"pan",icon:st.pan,click:na};ut.select2d={name:"select2d",_cat:"select",title:function(e){return et(e,"Box Select")},attr:"dragmode",val:"select",icon:st.selectbox,click:na};ut.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return et(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:st.lasso,click:na};ut.drawclosedpath={name:"drawclosedpath",title:function(e){return et(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:st.drawclosedpath,click:na};ut.drawopenpath={name:"drawopenpath",title:function(e){return et(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:st.drawopenpath,click:na};ut.drawline={name:"drawline",title:function(e){return et(e,"Draw line")},attr:"dragmode",val:"drawline",icon:st.drawline,click:na};ut.drawrect={name:"drawrect",title:function(e){return et(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:st.drawrect,click:na};ut.drawcircle={name:"drawcircle",title:function(e){return et(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:st.drawcircle,click:na};ut.eraseshape={name:"eraseshape",title:function(e){return et(e,"Erase active shape")},icon:st.eraseshape,click:Roe};ut.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return et(e,"Zoom in")},attr:"zoom",val:"in",icon:st.zoom_plus,click:na};ut.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return et(e,"Zoom out")},attr:"zoom",val:"out",icon:st.zoom_minus,click:na};ut.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return et(e,"Autoscale")},attr:"zoom",val:"auto",icon:st.autoscale,click:na};ut.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return et(e,"Reset axes")},attr:"zoom",val:"reset",icon:st.home,click:na};ut.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return et(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:st.tooltip_basic,gravity:"ne",click:na};ut.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return et(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:st.tooltip_compare,gravity:"ne",click:na};function na(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=vL.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var c=a==="in"?.5:2,p=(1+c)/2,x=(1-c)/2,g,w;for(f=0;f<l.length;f++)if(s=l[f],w=s.modebardisable==="none"||s.modebardisable.indexOf(a==="auto"||a==="reset"?"autoscale":"zoominout")===-1,w&&!s.fixedrange)if(g=s._name,a==="auto")i[g+".autorange"]=!0;else if(a==="reset")s._rangeInitial0===void 0&&s._rangeInitial1===void 0?i[g+".autorange"]=!0:s._rangeInitial0===void 0?(i[g+".autorange"]=s._autorangeInitial,i[g+".range"]=[null,s._rangeInitial1]):s._rangeInitial1===void 0?(i[g+".range"]=[s._rangeInitial0,null],i[g+".autorange"]=s._autorangeInitial):i[g+".range"]=[s._rangeInitial0,s._rangeInitial1],s._showSpikeInitial!==void 0&&(i[g+".showspikes"]=s._showSpikeInitial,u==="on"&&!s._showSpikeInitial&&(u="off"));else{var M=[s.r2l(s.range[0]),s.r2l(s.range[1])],m=[p*M[0]+x*M[1],p*M[1]+x*M[0]];i[g+".range[0]"]=s.l2r(m[0]),i[g+".range[1]"]=s.l2r(m[1])}}else n==="hovermode"&&(a==="x"||a==="y")&&(a=o._isHoriz?"y":"x",t.setAttribute("data-val",a)),i[n]=a;o._cartesianSpikesEnabled=u,za.call("_guiRelayout",e,i)}ut.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return et(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:st.zoombox,click:v2};ut.pan3d={name:"pan3d",_cat:"pan",title:function(e){return et(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:st.pan,click:v2};ut.orbitRotation={name:"orbitRotation",title:function(e){return et(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:st["3d_rotate"],click:v2};ut.tableRotation={name:"tableRotation",title:function(e){return et(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:st["z-axis"],click:v2};function v2(e,r){for(var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout._subplots.gl3d||[],i={},l=n.split("."),u=0;u<o.length;u++)i[o[u]+"."+l[1]]=a;var s=a==="pan"?a:"zoom";i.dragmode=s,za.call("_guiRelayout",e,i)}ut.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return et(e,"Reset camera to default")},attr:"resetDefault",icon:st.home,click:s5};ut.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return et(e,"Reset camera to last save")},attr:"resetLastSave",icon:st.movie,click:s5};function s5(e,r){for(var t=r.currentTarget,n=t.getAttribute("data-attr"),a=n==="resetLastSave",o=n==="resetDefault",i=e._fullLayout,l=i._subplots.gl3d||[],u={},s=0;s<l.length;s++){var f=l[s],c=f+".camera",p=f+".aspectratio",x=f+".aspectmode",g=i[f]._scene,w;a?(u[c+".up"]=g.viewInitial.up,u[c+".eye"]=g.viewInitial.eye,u[c+".center"]=g.viewInitial.center,w=!0):o&&(u[c+".up"]=null,u[c+".eye"]=null,u[c+".center"]=null,w=!0),w&&(u[p+".x"]=g.viewInitial.aspectratio.x,u[p+".y"]=g.viewInitial.aspectratio.y,u[p+".z"]=g.viewInitial.aspectratio.z,u[x]=g.viewInitial.aspectmode)}za.call("_guiRelayout",e,u)}ut.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return et(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:st.tooltip_basic,gravity:"ne",click:Poe};function hL(e,r){var t=r.currentTarget,n=t._previousVal,a=e._fullLayout,o=a._subplots.gl3d||[],i=["xaxis","yaxis","zaxis"],l={},u={};if(n)u=n,t._previousVal=null;else{for(var s=0;s<o.length;s++){var f=o[s],c=a[f],p=f+".hovermode";l[p]=c.hovermode,u[p]=!1;for(var x=0;x<3;x++){var g=i[x],w=f+"."+g+".showspikes";u[w]=!1,l[w]=c[g].showspikes}}t._previousVal=l}return u}function Poe(e,r){var t=hL(e,r);za.call("_guiRelayout",e,t)}ut.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return et(e,"Zoom in")},attr:"zoom",val:"in",icon:st.zoom_plus,click:u5};ut.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return et(e,"Zoom out")},attr:"zoom",val:"out",icon:st.zoom_minus,click:u5};ut.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return et(e,"Reset")},attr:"reset",val:null,icon:st.autoscale,click:u5};ut.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return et(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:st.tooltip_basic,gravity:"ne",click:pL};var cL=2;function u5(e,r){var l;let t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i=o._subplots.geo||[];for(let u of i){let s=o[u],f=s._subplot;if(n==="zoom"){let c=f.projection,p=c.scale()/f.fitScale,[x,g]=c.rotate().map(h=>-h),[w,M]=c.invert(f.midPt),{minscale:m}=s.projection,k=(l=s.projection.maxscale)!=null?l:1/0,S=Math.min(m,k),b=Math.max(m,k),T=a==="in"?cL*p:1/cL*p;T>b?T=b:T<S&&(T=S),T!==p&&za.call("_guiRelayout",e,{[u+".projection.scale"]:T,[u+".projection.rotation.lon"]:x,[u+".projection.rotation.lat"]:g,[u+".center.lon"]:w,[u+".center.lat"]:M,[u+".fitbounds"]:!1})}}n==="reset"&&c2(e,"geo")}ut.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return et(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:st.tooltip_basic,gravity:"ne",click:pL};function dL(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function pL(e){var r=dL(e);za.call("_guiRelayout",e,"hovermode",r)}ut.resetViewSankey={name:"resetSankeyGroup",title:function(e){return et(e,"Reset view")},icon:st.home,click:function(e){for(var r={"node.groups":[],"node.x":[],"node.y":[]},t=0;t<e._fullData.length;t++){var n=e._fullData[t]._viewInitial;r["node.groups"].push(n.node.groups.slice()),r["node.x"].push(n.node.x.slice()),r["node.y"].push(n.node.y.slice())}za.call("restyle",e,r)}};ut.toggleHover={name:"toggleHover",title:function(e){return et(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:st.tooltip_basic,gravity:"ne",click:function(e,r){var t=hL(e,r);t.hovermode=dL(e),za.call("_guiRelayout",e,t)}};ut.resetViews={name:"resetViews",title:function(e){return et(e,"Reset views")},icon:st.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),na(e,r),t.setAttribute("data-attr","resetLastSave"),s5(e,r),c2(e,"geo"),c2(e,"map")}};ut.toggleSpikelines={name:"toggleSpikelines",title:function(e){return et(e,"Toggle Spike Lines")},icon:st.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",za.call("_guiRelayout",e,Ioe(e))}};function Ioe(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",n=vL.list(e,null,!0),a={},o=0;o<n.length;o++){var i=n[o];a[i._name+".showspikes"]=t?!0:i._showSpikeInitial}return a}ut.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return et(e,"Reset view")},attr:"reset",icon:st.home,click:function(e){c2(e,"map")}};ut.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return et(e,"Zoom in")},attr:"zoom",val:"in",icon:st.zoom_plus,click:gL};ut.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return et(e,"Zoom out")},attr:"zoom",val:"out",icon:st.zoom_minus,click:gL};function gL(e,r){zoe(e,r,"map")}function zoe(e,r,t){for(var n=r.currentTarget,a=n.getAttribute("data-val"),o=e._fullLayout,i=o._subplots[t]||[],l=1.05,u={},s=0;s<i.length;s++){var f=i[s],c=o[f].zoom,p=a==="in"?l*c:c/l;u[f+".zoom"]=p}za.call("_guiRelayout",e,u)}function c2(e,r){for(var t=e._fullLayout,n=t._subplots[r]||[],a={},o=0;o<n.length;o++)for(var i=n[o],l=t[i]._subplot,u=l.viewInitial,s=Object.keys(u),f=0;f<s.length;f++){var c=s[f];a[i+"."+c]=u[c]}za.call("_guiRelayout",e,a)}});var c5=xe((cbe,_L)=>{"use strict";var mL=f5(),Noe=Object.keys(mL),bL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],xL=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(bL,["downloadJson"]),hu=[],qoe=function(e){if(xL.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();hu.indexOf(r)===-1&&hu.push(r),hu.indexOf(t)===-1&&hu.push(t)}};Noe.forEach(function(e){qoe(mL[e])});hu.sort();_L.exports={DRAW_MODES:bL,backButtons:xL,foreButtons:hu}});var h5={};of(h5,{default:()=>Ooe});var v5,Boe,Ooe,d5=af(()=>{"use strict";v5=Gp(c5()),Boe={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${v5.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${v5.default.foreButtons.join("*, *")}*.`].join(" ")}},Ooe=Boe});var ML=xe((vbe,wL)=>{"use strict";var Uoe=rr(),cc=Xr(),Hoe=wt(),Voe=(d5(),Kn(h5)).default;wL.exports=function(r,t){var n=r.modebar||{},a=Hoe.newContainer(t,"modebar");function o(l,u){return Uoe.coerce(n,a,Voe,l,u)}o("orientation"),o("bgcolor",cc.addOpacity(t.paper_bgcolor,.5));var i=cc.contrast(cc.rgb(t.modebar.bgcolor));o("color",cc.addOpacity(i,.3)),o("activecolor",cc.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var SL=xe((hbe,kL)=>{"use strict";var p5=nt(),Goe=it(),h2=rr(),TL=J1(),Yoe=lf().version,Xoe=new DOMParser;function AL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var vo=AL.prototype;vo.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var o=n.modebar,i="#"+a+" .modebar-group";document.querySelectorAll(i).forEach(function(c){c.style.backgroundColor=o.bgcolor});var l=!this.hasButtons(r),u=this.hasLogo!==t.displaylogo,s=this.locale!==t.locale;if(this.locale=t.locale,(l||u||s)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),h2.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};vo.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var o=a.name;if(!o)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(o)!==-1)throw new Error("button name '"+o+"' is taken");r.buttonsNames.push(o);var i=r.createButton(a);r.buttonElements.push(i),n.appendChild(i)}),r.element.appendChild(n)})};vo.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};vo.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var o=e.click;if(typeof o!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&p5.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||TL.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};vo.createIcon=function(e){var r=Goe(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var o=Xoe.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};vo.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,o=n.getAttribute("data-attr"),i=n.getAttribute("data-toggle")==="true",l=p5.select(n),u=function(c,p){var x=r.modebar,g=c.querySelector(".icon path");g&&(p||c.matches(":hover")?g.style.fill=x.activecolor:g.style.fill=x.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:h2.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};vo.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t<e.length;++t){if(e[t].length!==r[t].length)return!1;for(var n=0;n<e[t].length;n++)if(e[t][n].name!==r[t][n].name)return!1}return!0};function Woe(e){return e+" (v"+Yoe+")"}vo.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Woe(h2._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(TL.newplotlylogo)),e.appendChild(r),e};vo.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};vo.destroy=function(){h2.removeElement(this.container.querySelector(".modebar"))};function Zoe(e,r){var t=e._fullLayout,n=new AL({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&p5.select(n.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),n}kL.exports=Zoe});var LL=xe((dbe,EL)=>{"use strict";var Joe=fn(),CL=wa(),g5=Cr(),$oe=eo().isUnifiedHover,Koe=SL(),d2=f5(),Qoe=c5().DRAW_MODES,joe=rr().extendDeep;EL.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var o=n.modeBarButtons,i;Array.isArray(o)&&o.length?i=ile(o):!n.displayModeBar&&n.watermark?i=[]:i=ele(r),a?a.update(r,i):t._modeBar=Koe(r,i)};function ele(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(L,F){if(typeof F=="string"){if(F.toLowerCase()===L.toLowerCase())return!0}else{var B=F.name,O=F._cat||F.name;if(B===L||O===L.toLowerCase())return!0}return!1}var o=r.modebar.add;typeof o=="string"&&(o=[o]);var i=r.modebar.remove;typeof i=="string"&&(i=[i]);var l=n.modeBarButtonsToAdd.concat(o.filter(function(L){for(var F=0;F<n.modeBarButtonsToRemove.length;F++)if(a(L,n.modeBarButtonsToRemove[F]))return!1;return!0})),u=n.modeBarButtonsToRemove.concat(i.filter(function(L){for(var F=0;F<n.modeBarButtonsToAdd.length;F++)if(a(L,n.modeBarButtonsToAdd[F]))return!1;return!0})),s=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),p=r._has("pie"),x=r._has("funnelarea"),g=r._has("ternary"),w=r._has("map"),M=r._has("polar"),m=r._has("smith"),k=r._has("sankey"),S=rle(r),b=$oe(r.hovermode),T=[];function h(L){if(L.length){for(var F=[],B=0;B<L.length;B++){for(var O=L[B],V=d2[O],K=V.name.toLowerCase(),j=(V._cat||V.name).toLowerCase(),G=!1,q=0;q<u.length;q++){var J=u[q].toLowerCase();if(J===K||J===j){G=!0;break}}G||F.push(d2[O])}T.push(F)}}var _=!1,y=[],v=[],A=[],d=[];(s||p||x||g)+c+f+w+M+m>1?(v=["toggleHover"],A=["resetViews"]):c?(y=["zoomInGeo","zoomOutGeo"],v=["hoverClosestGeo"],A=["resetGeo"]):f?(v=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(y=["zoomInMap","zoomOutMap"],v=["toggleHover"],A=["resetViewMap"]):p?v=["hoverClosestPie"]:k?(v=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):v=["toggleHover"],s&&v.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(nle(t)||b)&&(v=[]),s&&!S&&(y=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),f?d=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!S||g?d=["zoom2d","pan2d"]:w||c?d=["pan2d"]:M&&(d=["zoom2d"]),tle(t)&&d.push("select2d","lasso2d");var D=[],E=function(L){D.indexOf(L)===-1&&v.indexOf(L)!==-1&&D.push(L)};if(Array.isArray(l)){for(var R=[],z=0;z<l.length;z++){var I=l[z];typeof I=="string"?(I=I.toLowerCase(),Qoe.indexOf(I)!==-1?(r._has("map")||r._has("cartesian"))&&d.push(I):I==="togglespikelines"?E("toggleSpikelines"):I==="togglehover"?E("toggleHover"):I==="hovercompare"?E("hoverCompareCartesian"):I==="hoverclosest"?(E("hoverClosestCartesian"),E("hoverClosestGeo"),E("hoverClosest3d"),E("hoverClosestPie")):I==="v1hovermode"?(E("hoverClosestCartesian"),E("hoverCompareCartesian"),E("hoverClosestGeo"),E("hoverClosest3d"),E("hoverClosestPie")):I==="downloadjson"&&(_=!0)):R.push(I)}l=R}var P=["toImage"];return _&&P.push("downloadJson"),n.showSendToCloud&&P.push("sendChartToCloud"),h(P),h(d),h(y.concat(A)),h(D),ale(T,l)}function rle(e){for(var r=Joe.list({_fullLayout:e},null,!0),t=0;t<r.length;t++){var n=r[t].modebardisable;if(!r[t].fixedrange&&n!=="autoscale+zoominout"&&n!=="zoominout+autoscale")return!1}return!0}function tle(e){for(var r=!1,t=0;t<e.length&&!r;t++){var n=e[t];!n._module||!n._module.selectPoints||(g5.traceIs(n,"scatter-like")&&n.type!=="quiver"?(CL.hasMarkers(n)||CL.hasText(n))&&(r=!0):g5.traceIs(n,"box-violin")?(n.boxpoints==="all"||n.points==="all")&&(r=!0):r=!0)}return r}function nle(e){for(var r=0;r<e.length;r++)if(!g5.traceIs(e[r],"noHover"))return!1;return!0}function ale(e,r){if(r.length)if(Array.isArray(r[0]))for(var t=0;t<r.length;t++)e.push(r[t]);else e.push(r);return e}function ile(e){for(var r=joe([],e),t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;a++){var o=n[a];if(typeof o=="string")if(d2[o]!==void 0)r[t][a]=d2[o];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var y5=xe((pbe,DL)=>{"use strict";DL.exports={moduleType:"component",name:"modebar",layoutAttributes:(d5(),Kn(h5)).default,supplyLayoutDefaults:ML(),manage:LL()}});var m5=xe((gbe,RL)=>{"use strict";var ole=On().FROM_BL;RL.exports=function(r,t,n){n===void 0&&(n=ole[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],o=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(o+(a[0]-o)*t),r.l2r(o+(a[1]-o)*t)],r.setScale()}});var hc=xe(vc=>{"use strict";var Bs=rr(),b5=K0(),ki=fn().id2name,lle=$a(),FL=m5(),sle=x1(),ule=pn().ALMOST_EQUAL,fle=On().FROM_BL;vc.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,c,p,x,g;for(l=0;l<n.length;l++)f=ki(n[l]),c=e[f],p=r[f],cle(c,p,{axIds:n,layoutOut:r,hasImage:a[f]});function w(y,v){for(l=0;l<y.length;l++){u=y[l];for(s in u)r[ki(s)][v]=u}}for(w(i,"_matchGroup"),l=0;l<o.length;l++){u=o[l];for(s in u)if(p=r[ki(s)],p.fixedrange){for(var M in u){var m=ki(M);(e[m]||{}).fixedrange===!1&&Bs.warn("fixedrange was specified as false for axis "+m+" but was overridden because another axis in its constraint group has fixedrange true"),r[m].fixedrange=!0}break}}for(l=0;l<o.length;){u=o[l];for(s in u){p=r[ki(s)],p._matchGroup&&Object.keys(p._matchGroup).length===Object.keys(u).length&&(o.splice(l,1),l--);break}l++}w(o,"_constraintGroup");var k=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],S=!1,b=!1;function T(){g=p[x],x==="rangebreaks"&&(b=p._hasDayOfWeekBreaks)}for(l=0;l<i.length;l++){u=i[l];for(var h=0;h<k.length;h++){x=k[h],g=null;var _;for(s in u)if(f=ki(s),c=e[f],p=r[f],x in p){if(!p.matches&&(_=p,x in c)){T();break}g===null&&x in c&&T()}if(x==="range"&&g&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null&&(S=!0),x==="autorange"&&g===null&&S&&(g=!1),g===null&&x in _&&(g=_[x]),g!==null)for(s in u)p=r[ki(s)],p[x]=x==="range"?g.slice():g,x==="rangebreaks"&&(p._hasDayOfWeekBreaks=b,sle(p,r))}}};function cle(e,r,t){var n=t.axIds,a=t.layoutOut,o=t.hasImage,i=a._axisConstraintGroups,l=a._axisMatchGroups,u=r._id,s=u.charAt(0),f=((a._splomAxes||{})[s]||{})[u]||{},c=r._id,p=c.charAt(0)==="x";r._matchGroup=null,r._constraintGroup=null;function x(D,E){return Bs.coerce(e,r,lle,D,E)}x("constrain",o?"domain":"range"),Bs.coerce(e,r,{constraintoward:{valType:"enumerated",values:p?["left","center","right"]:["bottom","middle","top"],dflt:p?"center":"middle"}},"constraintoward");var g=r.type,w,M,m=[];for(w=0;w<n.length;w++)if(M=n[w],M!==c){var k=a[ki(M)];k.type===g&&m.push(M)}var S=zL(i,c);if(S){var b=[];for(w=0;w<m.length;w++)M=m[w],S[M]||b.push(M);m=b}var T=m.length,h,_;T&&(e.matches||f.matches)&&(h=Bs.coerce(e,r,{matches:{valType:"enumerated",values:m,dflt:m.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var y=o&&!p?r.anchor:void 0;if(T&&!h&&(e.scaleanchor||y)&&(_=Bs.coerce(e,r,{scaleanchor:{valType:"enumerated",values:m.concat([!1])}},"scaleanchor",y)),h){r._matchGroup=x5(l,c,h,1);var v=a[ki(h)],A=PL(a,r)/PL(a,v);p!==(h.charAt(0)==="x")&&(A=(p?"x":"y")+A),x5(i,c,h,A)}else e.matches&&n.indexOf(e.matches)!==-1&&Bs.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(_){var d=x("scaleratio");d||(d=r.scaleratio=1),x5(i,c,_,d)}else e.scaleanchor&&n.indexOf(e.scaleanchor)!==-1&&Bs.warn("ignored "+r._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function PL(e,r){var t=r.domain;return t||(t=e[ki(r.overlaying)].domain),t[1]-t[0]}function zL(e,r){for(var t=0;t<e.length;t++)if(e[t][r])return e[t];return null}function x5(e,r,t,n){var a,o,i,l,u,s=zL(e,r);s===null?(s={},s[r]=1,u=e.length,e.push(s)):u=e.indexOf(s);var f=Object.keys(s);for(a=0;a<e.length;a++)if(i=e[a],a!==u&&i[t]){var c=i[t];for(o=0;o<f.length;o++)l=f[o],i[l]=_5(c,_5(n,s[l]));e.splice(u,1);return}if(n!==1)for(o=0;o<f.length;o++){var p=f[o];s[p]=_5(n,s[p])}s[t]=1}function _5(e,r){var t="",n="",a,o;typeof e=="string"&&(t=e.match(/^[xy]*/)[0],a=t.length,e=+e.slice(a)),typeof r=="string"&&(n=r.match(/^[xy]*/)[0],o=n.length,r=+r.slice(o));var i=e*r;return!a&&!o?i:!a||!o||t.charAt(0)===n.charAt(0)?t+n+e*r:a===o?i:(a>o?t.slice(o):n.slice(a))+i}function vle(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;i<o.length;i++){var l=o[i],u=e[l];if(typeof u=="string"){var s=u.match(/^[xy]*/)[0],f=s.length;u=+u.slice(f);for(var c=s.charAt(0)==="y"?n:1/n,p=0;p<f;p++)u*=c}a[l]=u}return a}vc.enforce=function(r){var t=r._fullLayout,n=t._axisConstraintGroups||[],a,o,i,l,u,s,f,c;for(a=0;a<n.length;a++){i=vle(n[a],t);var p=Object.keys(i),x=1/0,g=0,w=1/0,M={},m={},k=!1;for(o=0;o<p.length;o++)l=p[o],m[l]=u=t[ki(l)],u._inputDomain?u.domain=u._inputDomain.slice():u._inputDomain=u.domain.slice(),u._inputRange||(u._inputRange=u.range.slice()),u.setScale(),M[l]=s=Math.abs(u._m)/i[l],x=Math.min(x,s),(u.constrain==="domain"||!u._constraintShrinkable)&&(w=Math.min(w,s)),delete u._constraintShrinkable,g=Math.max(g,s),u.constrain==="domain"&&(k=!0);if(!(x>ule*g&&!k)){for(o=0;o<p.length;o++)if(l=p[o],s=M[l],u=m[l],f=u.constrain,s!==w||f==="domain")if(c=s/w,f==="range")FL(u,c);else{var S=u._inputDomain,b=(u.domain[1]-u.domain[0])/(S[1]-S[0]),T=(u.r2l(u.range[1])-u.r2l(u.range[0]))/(u.r2l(u._inputRange[1])-u.r2l(u._inputRange[0]));if(c/=b,c*T<1){u.domain=u._input.domain=S.slice(),FL(u,c);continue}if(T<1&&(u.range=u._input.range=u._inputRange.slice(),c*=T),u.autorange){var h=u.r2l(u.range[0]),_=u.r2l(u.range[1]),y=(h+_)/2,v=y,A=y,d=Math.abs(_-y),D=y-d*c*1.0001,E=y+d*c*1.0001,R=b5.makePadFn(t,u,0),z=b5.makePadFn(t,u,1);IL(u,c);var I=Math.abs(u._m),P=b5.concatExtremes(r,u),L=P.min,F=P.max,B,O;for(O=0;O<L.length;O++)B=L[O].val-R(L[O])/I,B>D&&B<v&&(v=B);for(O=0;O<F.length;O++)B=F[O].val+z(F[O])/I,B<E&&B>A&&(A=B);var V=(A-v)/(2*d);c/=V,v=u.l2r(v),A=u.l2r(A),u.range=u._input.range=h<_?[v,A]:[A,v]}IL(u,c)}}}};vc.getAxisGroup=function(r,t){for(var n=r._axisMatchGroups,a=0;a<n.length;a++){var o=n[a];if(o[t])return"g"+a}return t};vc.clean=function(r,t){if(t._inputDomain){for(var n=!1,a=t._id,o=r._fullLayout._axisConstraintGroups,i=0;i<o.length;i++)if(o[i][a]){n=!0;break}(!n||t.constrain!=="domain")&&(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}};function IL(e,r){var t=e._inputDomain,n=fle[e.constraintoward],a=t[0]+(t[1]-t[0])*n;e.domain=e._input.domain=[a+(t[0]-a)/r,a+(t[1]-a)/r],e.setScale()}});var y2=xe(_n=>{"use strict";var g2=nt(),aa=Cr(),Na=bn(),ei=rr(),w5=Un(),M5=Z1(),dc=Xr(),du=Mt(),NL=Zf(),HL=y5(),pc=Bt(),zo=On(),VL=hc(),hle=VL.enforce,dle=VL.clean,qL=K0().doAutoRange,GL="start",ple="middle",YL="end",gle=mn().zindexSeparator;_n.layoutStyles=function(e){return ei.syncOrAsync([Na.doAutoMargin,mle],e)};function yle(e,r,t){for(var n=0;n<t.length;n++){var a=t[n][0],o=t[n][1];if(!(a[0]>=e[1]||a[1]<=e[0])&&o[0]<r[1]&&o[1]>r[0])return!0}return!1}function mle(e){var r=e._fullLayout,t=r._size,n=t.p,a=pc.list(e,"",!0),o,i,l,u,s,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(du.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),_n.drawMainTitle(e),HL.manage(e),!r._has("cartesian"))return Na.previousPromises(e);function c(Q,re,ue){var ee=Q._lw/2;if(Q._id.charAt(0)==="x"){if(re){if(ue==="top")return re._offset-n-ee}else return t.t+t.h*(1-(Q.position||0))+ee%1;return re._offset+re._length+n+ee}if(re){if(ue==="right")return re._offset+re._length+n+ee}else return t.l+t.w*(Q.position||0)+ee%1;return re._offset-n-ee}for(o=0;o<a.length;o++){u=a[o];var p=u._anchorAxis;u._linepositions={},u._lw=du.crispRound(e,u.linewidth,1),u._mainLinePosition=c(u,p,u.side),u._mainMirrorPosition=u.mirror&&p?c(u,p,zo.OPPOSITE_SIDE[u.side]):null}var x=[],g=[],w=[],M=dc.opacity(r.paper_bgcolor)===1&&dc.opacity(r.plot_bgcolor)===1&&r.paper_bgcolor===r.plot_bgcolor;for(i in r._plots)if(l=r._plots[i],l.mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var m=l.xaxis.domain,k=l.yaxis.domain,S=l.plotgroup;if(yle(m,k,w)&&i.indexOf(gle)===-1){var b=S.node(),T=l.bg=ei.ensureSingle(S,"rect","bg");b.insertBefore(T.node(),b.childNodes[0]),g.push(i)}else S.select("rect.bg").remove(),w.push([m,k]),M||(x.push(i),g.push(i))}var h=r._bgLayer.selectAll(".bg").data(x);for(h.enter().append("rect").classed("bg",!0),h.exit().remove(),h.each(function(Q){r._plots[Q].bg=g2.select(this)}),o=0;o<g.length;o++)l=r._plots[g[o]],s=l.xaxis,f=l.yaxis,l.bg&&s._offset!==void 0&&f._offset!==void 0&&l.bg.call(du.setRect,s._offset-n,f._offset-n,s._length+2*n,f._length+2*n).call(dc.fill,r.plot_bgcolor).style("stroke-width",0);if(!r._hasOnlyLargeSploms)for(i in r._plots){l=r._plots[i],s=l.xaxis,f=l.yaxis;var _=l.clipId="clip"+r._uid+i+"plot",y=ei.ensureSingleById(r._clips,"clipPath",_,function(Q){Q.classed("plotclip",!0).append("rect")});l.clipRect=y.select("rect").attr({width:s._length,height:f._length}),du.setTranslate(l.plot,s._offset,f._offset);var v,A;l._hasClipOnAxisFalse?(v=null,A=_):(v=_,A=null),du.setClipUrl(l.plot,v,e),l.layerClipId=A}var d,D,E,R,z,I,P,L,F,B,O,V,K;function j(Q){return"M"+d+","+Q+"H"+D}function G(Q){return"M"+s._offset+","+Q+"h"+s._length}function q(Q){return"M"+Q+","+L+"V"+P}function J(Q){return f._shift!==void 0&&(Q+=f._shift),"M"+Q+","+f._offset+"v"+f._length}function te(Q,re,ue){if(!Q.showline||i!==Q._mainSubplot)return"";if(!Q._anchorAxis)return ue(Q._mainLinePosition);var ee=re(Q._mainLinePosition);return Q.mirror&&(ee+=re(Q._mainMirrorPosition)),ee}for(i in r._plots){l=r._plots[i],s=l.xaxis,f=l.yaxis;var Z="M0,0";BL(s,i)&&(z=p2(s,"left",f,a),d=s._offset-(z?n+z:0),I=p2(s,"right",f,a),D=s._offset+s._length+(I?n+I:0),E=c(s,f,"bottom"),R=c(s,f,"top"),K=!s._anchorAxis||i!==s._mainSubplot,K&&(s.mirror==="allticks"||s.mirror==="all")&&(s._linepositions[i]=[E,R]),Z=te(s,j,G),K&&s.showline&&(s.mirror==="all"||s.mirror==="allticks")&&(Z+=j(E)+j(R)),l.xlines.style("stroke-width",s._lw+"px").call(dc.stroke,s.showline?s.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",Z);var ie="M0,0";BL(f,i)&&(O=p2(f,"bottom",s,a),P=f._offset+f._length+(O?n:0),V=p2(f,"top",s,a),L=f._offset-(V?n:0),F=c(f,s,"left"),B=c(f,s,"right"),K=!f._anchorAxis||i!==f._mainSubplot,K&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[i]=[F,B]),ie=te(f,q,J),K&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(ie+=q(F)+q(B)),l.ylines.style("stroke-width",f._lw+"px").call(dc.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ie)}return pc.makeClipPaths(e),Na.previousPromises(e)}function BL(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function OL(e,r,t){if(!t.showline||!t._lw)return!1;if(t.mirror==="all"||t.mirror==="allticks")return!0;var n=t._anchorAxis;if(!n)return!1;var a=zo.FROM_BL[r];return t.side===r?n.domain[a]===e.domain[a]:t.mirror&&n.domain[1-a]===e.domain[1-a]}function p2(e,r,t,n){if(OL(e,r,t))return t._lw;for(var a=0;a<n.length;a++){var o=n[a];if(o._mainAxis===t._mainAxis&&OL(e,r,o))return o._lw}return 0}_n.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,n=Ale(t),a=kle(t),o=Tle(t,a),i=Mle(t,n);if(NL.draw(e,"gtitle",{propContainer:t,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:t._dfltTitle.plot,subtitlePlaceholder:t._dfltTitle.subtitle,attributes:{x:i,y:o,"text-anchor":n,dy:a}}),r.text&&r.automargin){var l=g2.select(e).selectAll(".gtitle"),u=du.bBox(g2.select(e).selectAll(".g-gtitle").node()).height,s=_le(e,r,u);if(s>0){wle(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:UL(r.yanchor)}).call(w5.positionText,i,o);var f=(r.text.match(w5.BR_TAG_ALL)||[]).length;if(f){var c=zo.LINE_SPACING*f+zo.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var M=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",M)})}var p=g2.select(e).selectAll(".gtitle-subtitle");if(p.node()){var x=l.node().getBBox(),g=x.y+x.height,w=g+NL.SUBTITLE_PADDING_EM*r.subtitle.font.size;p.attr({x:i,y:w,"text-anchor":n,dy:UL(r.yanchor)}).call(w5.positionText,i,w)}}}};function ble(e,r,t,n,a){var o=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,i=ei.isTopAnchor(r)?n:n-a,l=t==="b"?o-i:i;return ei.isTopAnchor(r)&&t==="t"||ei.isBottomAnchor(r)&&t==="b"?!1:l<a}function xle(e,r,t,n,a){var o=0;return t==="middle"&&(o+=a/2),e==="t"?(t==="top"&&(o+=a),o+=n-r*n):(t==="bottom"&&(o+=a),o+=r*n),o}function _le(e,r,t){var n=r.y,a=r.yanchor,o=n>.5?"t":"b",i=e._fullLayout.margin[o],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=xle(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function wle(e,r,t,n){var a="title.automargin",o=e._fullLayout.title,i=o.y>.5?"t":"b",l={x:o.x,y:o.y,t:0,b:0},u={};o.yref==="paper"&&ble(e,o,i,r,n)?l[i]=t:o.yref==="container"&&(u[i]=t,e._fullLayout._reservedMargin[a]=u),Na.allowAutoMargin(e,a),Na.autoMargin(e,a,l)}function Mle(e,r){var t=e.title,n=e._size,a=0;return r===GL?a=t.pad.l:r===YL&&(a=-t.pad.r),t.xref==="paper"?n.l+n.w*t.x+a:e.width*t.x+a}function Tle(e,r){var t=e.title,n=e._size,a=0;return r==="0em"||!r?a=-t.pad.b:r===zo.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto"?n.t/2:t.yref==="paper"?n.t+n.h-n.h*t.y+a:e.height-e.height*t.y+a}function UL(e){return e==="top"?zo.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":zo.MID_SHIFT+"em"}function Ale(e){var r=e.title,t=ple;return ei.isRightAnchor(r)?t=YL:ei.isLeftAnchor(r)&&(t=GL),t}function kle(e){var r=e.title,t="0em";return ei.isTopAnchor(r)?t=zo.CAP_SHIFT+"em":ei.isMiddleAnchor(r)&&(t=zo.MID_SHIFT+"em"),t}_n.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n<r.length;n++){var a=r[n],o=a[0]||{},i=o.trace||{},l=i._module||{},u=l.arraysToCalcdata;u&&u(a,i);var s=l.editStyle;s&&t.push({fn:s,cd0:o})}if(t.length){for(n=0;n<t.length;n++){var f=t[n];f.fn(e,f.cd0)}M5(e),_n.redrawReglTraces(e)}return Na.style(e),aa.getComponentMethod("legend","draw")(e),Na.previousPromises(e)};_n.doColorBars=function(e){return aa.getComponentMethod("colorbar","draw")(e),Na.previousPromises(e)};_n.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,aa.call("_doPlot",e,"",r)};_n.doLegend=function(e){return aa.getComponentMethod("legend","draw")(e),Na.previousPromises(e)};_n.doTicksRelayout=function(e){var r=pc.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(aa.subplotsRegistry.splom.updateGrid(e),M5(e),_n.redrawReglTraces(e)),_n.drawMainTitle(e),Promise.resolve(r).then(function(){return Na.previousPromises(e)})};_n.doModeBar=function(e){var r=e._fullLayout;HL.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var n=r._basePlotModules[t].updateFx;n&&n(e)}return Na.previousPromises(e)};_n.doCamera=function(e){for(var r=e._fullLayout,t=r._subplots.gl3d,n=0;n<t.length;n++){var a=r[t[n]],o=a._scene;o.setViewport(a)}};_n.drawData=function(e){var r=e._fullLayout;M5(e);for(var t=r._basePlotModules,n=0;n<t.length;n++)t[n].plot(e);return _n.redrawReglTraces(e),Na.style(e),aa.getComponentMethod("selections","draw")(e),aa.getComponentMethod("shapes","draw")(e),aa.getComponentMethod("annotations","draw")(e),aa.getComponentMethod("images","draw")(e),r._replotting=!1,Na.previousPromises(e)};_n.redrawReglTraces=function(e){var r=e._fullLayout;if(r._has("regl")){var t=e._fullData,n=[],a=[],o,i;for(r._hasOnlyLargeSploms&&r._splomGrid.draw(),o=0;o<t.length;o++){var l=t[o];l.visible===!0&&l._length!==0&&(l.type==="splom"?r._splomScenes[l.uid].draw():l.type==="scattergl"?ei.pushUnique(n,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&ei.pushUnique(a,l.subplot))}for(o=0;o<n.length;o++)i=r._plots[n[o]],i._scene&&i._scene.draw();for(o=0;o<a.length;o++)i=r[a[o]]._subplot,i._scene&&i._scene.draw()}};_n.doAutoRangeAndConstraints=function(e){for(var r=pc.list(e,"",!0),t,n={},a=0;a<r.length;a++)if(t=r[a],!n[t._id]){n[t._id]=1,dle(e,t),qL(e,t);var o=t._matchGroup;if(o)for(var i in o){var l=pc.getFromId(e,i);qL(e,l,t.range),n[i]=1}}hle(e)};_n.finalDraw=function(e){aa.getComponentMethod("rangeslider","draw")(e),aa.getComponentMethod("rangeselector","draw")(e)};_n.drawMarginPushers=function(e){aa.getComponentMethod("legend","draw")(e),aa.getComponentMethod("rangeselector","draw")(e),aa.getComponentMethod("sliders","draw")(e),aa.getComponentMethod("updatemenus","draw")(e),aa.getComponentMethod("colorbar","draw")(e)}});var k5=xe((bbe,$L)=>{"use strict";var Sle=Al().readPaths,Cle=i2(),XL=vl().clearOutlineControllers,T5=Xr(),WL=Mt(),Ele=wt().arrayEditor,ZL=Cl(),Lle=ZL.getPathString;$L.exports={draw:m2,drawOne:JL,activateLastSelection:Fle};function m2(e){var r=e._fullLayout;XL(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a<r.selections.length;a++)JL(e,a)}function b2(e){return e._context.editSelection}function JL(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=ZL.makeSelectionsOptionsAndPlotinfo(e,r),n=t.options,a=t.plotinfo;if(!n._input)return;o(e._fullLayout._selectionLayer);function o(i){var l=Lle(e,n),u={"data-index":r,"fill-rule":"evenodd",d:l},s=n.opacity,f="rgba(0,0,0,0)",c=n.line.color||T5.contrast(e._fullLayout.plot_bgcolor),p=n.line.width,x=n.line.dash;p||(p=5,x="solid");var g=b2(e)&&e._fullLayout._activeSelectionIndex===r;g&&(f=e._fullLayout.activeselection.fillcolor,s=e._fullLayout.activeselection.opacity);for(var w=[],M=1;M>=0;M--){var m=i.append("path").attr(u).style("opacity",M?.1:s).call(T5.stroke,c).call(T5.fill,f).call(WL.dashLine,M?"solid":x,M?4+p:p);if(Dle(m,e,n),g){var k=Ele(e.layout,"selections",n);m.style({cursor:"move"});var S={element:m.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},b=Sle(l,e);Cle(b,m,S)}else m.style("pointer-events",M?"all":"none");w[M]=m}var T=w[0],h=w[1];h.node().addEventListener("click",function(){return Rle(e,T)})}}function Dle(e,r,t){var n=t.xref+t.yref;WL.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function Rle(e,r){if(b2(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){A5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=A5,m2(e)}}}function Fle(e){if(b2(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=A5,m2(e)}}function A5(e){if(b2(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(XL(e),delete e._fullLayout._activeSelectionIndex,m2(e))}}});var QL=xe((xbe,KL)=>{function Ple(){var e,r=0,t=!1;function n(a,o){return e.list.push({type:a,data:o?JSON.parse(JSON.stringify(o)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,o){return n("check",{seg1:a,seg2:o})},segmentChop:function(a,o){return n("div_seg",{seg:a,pt:o}),n("chop",{seg:a,pt:o})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,o){return n("new_seg",{seg:a,primary:o})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,o,i){return n("temp_status",{seg:a,above:o,below:i})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,o,i){return n("status",{seg:a,above:o,below:i})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1,"  ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,o){return n("chain_rem_head",{index:a,pt:o})},chainRemoveTail:function(a,o){return n("chain_rem_tail",{index:a,pt:o})},chainNew:function(a,o){return n("chain_new",{pt1:a,pt2:o})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,o){return n("chain_add_head",{index:a,pt:o})},chainAddTail:function(a,o){return n("chain_add_tail",{index:a,pt:o})},chainConnect:function(a,o){return n("chain_con",{index1:a,index2:o})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,o){return n("chain_join",{index1:a,index2:o})},done:function(){return n("done")}},e}KL.exports=Ple});var eD=xe((_be,jL)=>{function Ile(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var o=n[0],i=n[1],l=a[0],u=a[1],s=t[0],f=t[1];return(l-o)*(f-i)-(u-i)*(s-o)>=-e},pointBetween:function(t,n,a){var o=t[1]-n[1],i=a[0]-n[0],l=t[0]-n[0],u=a[1]-n[1],s=l*i+o*u;if(s<e)return!1;var f=i*i+u*u;return!(s-f>-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])<e},pointsSameY:function(t,n){return Math.abs(t[1]-n[1])<e},pointsSame:function(t,n){return r.pointsSameX(t,n)&&r.pointsSameY(t,n)},pointsCompare:function(t,n){return r.pointsSameX(t,n)?r.pointsSameY(t,n)?0:t[1]<n[1]?-1:1:t[0]<n[0]?-1:1},pointsCollinear:function(t,n,a){var o=t[0]-n[0],i=t[1]-n[1],l=n[0]-a[0],u=n[1]-a[1];return Math.abs(o*u-l*i)<e},linesIntersect:function(t,n,a,o){var i=n[0]-t[0],l=n[1]-t[1],u=o[0]-a[0],s=o[1]-a[1],f=i*s-l*u;if(Math.abs(f)<e)return!1;var c=t[0]-a[0],p=t[1]-a[1],x=(u*p-s*c)/f,g=(i*p-l*c)/f,w={alongA:0,alongB:0,pt:[t[0]+x*i,t[1]+x*l]};return x<=-e?w.alongA=-2:x<e?w.alongA=-1:x-1<=-e?w.alongA=0:x-1<e?w.alongA=1:w.alongA=2,g<=-e?w.alongB=-2:g<e?w.alongB=-1:g-1<=-e?w.alongB=0:g-1<e?w.alongB=1:w.alongB=2,w},pointInsideRegion:function(t,n){for(var a=t[0],o=t[1],i=n[n.length-1][0],l=n[n.length-1][1],u=!1,s=0;s<n.length;s++){var f=n[s][0],c=n[s][1];c-o>e!=l-o>e&&(i-f)*(o-c)/(l-c)+f-a>e&&(u=!u),i=f,l=c}return u}};return r}jL.exports=Ile});var tD=xe((wbe,rD)=>{var zle={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};rD.exports=zle});var aD=xe((Mbe,nD)=>{var gc=tD();function Nle(e,r,t){function n(g,w){return{id:t?t.segmentId():-1,start:g,end:w,myFill:{above:null,below:null},otherFill:null}}function a(g,w,M){return{id:t?t.segmentId():-1,start:g,end:w,myFill:{above:M.myFill.above,below:M.myFill.below},otherFill:null}}var o=gc.create();function i(g,w,M,m,k,S){var b=r.pointsCompare(w,k);return b!==0?b:r.pointsSame(M,S)?0:g!==m?g?1:-1:r.pointAboveOrOnLine(M,m?k:S,m?S:k)?1:-1}function l(g,w){o.insertBefore(g,function(M){var m=i(g.isStart,g.pt,w,M.isStart,M.pt,M.other.pt);return m<0})}function u(g,w){var M=gc.node({isStart:!0,pt:g.start,seg:g,primary:w,other:null,status:null});return l(M,g.end),M}function s(g,w,M){var m=gc.node({isStart:!1,pt:w.end,seg:w,primary:M,other:g,status:null});g.other=m,l(m,g.pt)}function f(g,w){var M=u(g,w);return s(M,g,w),M}function c(g,w){t&&t.segmentChop(g.seg,w),g.other.remove(),g.seg.end=w,g.other.pt=w,l(g.other,g.pt)}function p(g,w){var M=a(w,g.seg.end,g.seg);return c(g,w),f(M,g.primary)}function x(g,w){var M=gc.create();function m(z,I){var P=z.seg.start,L=z.seg.end,F=I.seg.start,B=I.seg.end;return r.pointsCollinear(P,F,B)?r.pointsCollinear(L,F,B)||r.pointAboveOrOnLine(L,F,B)?1:-1:r.pointAboveOrOnLine(P,F,B)?1:-1}function k(z){return M.findTransition(function(I){var P=m(z,I.ev);return P>0})}function S(z,I){var P=z.seg,L=I.seg,F=P.start,B=P.end,O=L.start,V=L.end;t&&t.checkIntersection(P,L);var K=r.linesIntersect(F,B,O,V);if(K===!1){if(!r.pointsCollinear(F,B,O)||r.pointsSame(F,V)||r.pointsSame(B,O))return!1;var j=r.pointsSame(F,O),G=r.pointsSame(B,V);if(j&&G)return I;var q=!j&&r.pointBetween(F,O,V),J=!G&&r.pointBetween(B,O,V);if(j)return J?p(I,B):p(z,V),I;q&&(G||(J?p(I,B):p(z,V)),p(I,F))}else K.alongA===0&&(K.alongB===-1?p(z,O):K.alongB===0?p(z,K.pt):K.alongB===1&&p(z,V)),K.alongB===0&&(K.alongA===-1?p(I,F):K.alongA===0?p(I,K.pt):K.alongA===1&&p(I,B));return!1}for(var b=[];!o.isEmpty();){var T=o.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let z=function(){if(_){var I=S(T,_);if(I)return I}return y?S(T,y):!1};var R=z;t&&t.segmentNew(T.seg,T.primary);var h=k(T),_=h.before?h.before.ev:null,y=h.after?h.after.ev:null;t&&t.tempStatus(T.seg,_?_.seg:!1,y?y.seg:!1);var v=z();if(v){if(e){var A;T.seg.myFill.below===null?A=!0:A=T.seg.myFill.above!==T.seg.myFill.below,A&&(v.seg.myFill.above=!v.seg.myFill.above)}else v.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(v.seg),T.other.remove(),T.remove()}if(o.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var A;T.seg.myFill.below===null?A=!0:A=T.seg.myFill.above!==T.seg.myFill.below,y?T.seg.myFill.below=y.seg.myFill.above:T.seg.myFill.below=g,A?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var d;y?T.primary===y.primary?d=y.seg.otherFill.above:d=y.seg.myFill.above:d=T.primary?w:g,T.seg.otherFill={above:d,below:d}}t&&t.status(T.seg,_?_.seg:!1,y?y.seg:!1),T.other.status=h.insert(gc.node({ev:T}))}else{var D=T.status;if(D===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(M.exists(D.prev)&&M.exists(D.next)&&S(D.prev.ev,D.next.ev),t&&t.statusRemove(D.ev.seg),D.remove(),!T.primary){var E=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=E}b.push(T.seg)}o.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(g){for(var w,M=g[g.length-1],m=0;m<g.length;m++){w=M,M=g[m];var k=r.pointsCompare(w,M);k!==0&&f(n(k<0?w:M,k<0?M:w),!0)}},calculate:function(g){return x(g,!1)}}:{calculate:function(g,w,M,m){return g.forEach(function(k){f(a(k.start,k.end,k),!0)}),M.forEach(function(k){f(a(k.start,k.end,k),!1)}),x(w,m)}}}nD.exports=Nle});var oD=xe((Tbe,iD)=>{function qle(e,r,t){var n=[],a=[];return e.forEach(function(o){var i=o.start,l=o.end;if(r.pointsSame(i,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(o);var u={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},f=u;function c(R,z,I){return f.index=R,f.matches_head=z,f.matches_pt1=I,f===u?(f=s,!1):(f=null,!0)}for(var p=0;p<n.length;p++){var x=n[p],g=x[0],w=x[1],M=x[x.length-1],m=x[x.length-2];if(r.pointsSame(g,i)){if(c(p,!0,!0))break}else if(r.pointsSame(g,l)){if(c(p,!0,!1))break}else if(r.pointsSame(M,i)){if(c(p,!1,!0))break}else if(r.pointsSame(M,l)&&c(p,!1,!1))break}if(f===u){n.push([i,l]),t&&t.chainNew(i,l);return}if(f===s){t&&t.chainMatch(u.index);var k=u.index,S=u.matches_pt1?l:i,b=u.matches_head,x=n[k],T=b?x[0]:x[x.length-1],h=b?x[1]:x[x.length-2],_=b?x[x.length-1]:x[0],y=b?x[x.length-2]:x[1];if(r.pointsCollinear(h,T,S)&&(b?(t&&t.chainRemoveHead(u.index,S),x.shift()):(t&&t.chainRemoveTail(u.index,S),x.pop()),T=h),r.pointsSame(_,S)){n.splice(k,1),r.pointsCollinear(y,_,T)&&(b?(t&&t.chainRemoveTail(u.index,T),x.pop()):(t&&t.chainRemoveHead(u.index,T),x.shift())),t&&t.chainClose(u.index),a.push(x);return}b?(t&&t.chainAddHead(u.index,S),x.unshift(S)):(t&&t.chainAddTail(u.index,S),x.push(S));return}function v(R){t&&t.chainReverse(R),n[R].reverse()}function A(R,z){var I=n[R],P=n[z],L=I[I.length-1],F=I[I.length-2],B=P[0],O=P[1];r.pointsCollinear(F,L,B)&&(t&&t.chainRemoveTail(R,L),I.pop(),L=F),r.pointsCollinear(L,B,O)&&(t&&t.chainRemoveHead(z,B),P.shift()),t&&t.chainJoin(R,z),n[R]=I.concat(P),n.splice(z,1)}var d=u.index,D=s.index;t&&t.chainConnect(d,D);var E=n[d].length<n[D].length;u.matches_head?s.matches_head?E?(v(d),A(d,D)):(v(D),A(D,d)):A(D,d):s.matches_head?A(d,D):E?(v(d),A(D,d)):(v(D),A(d,D))}),a}iD.exports=qle});var sD=xe((Abe,lD)=>{function yc(e,r,t){var n=[];return e.forEach(function(a){var o=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[o]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[o]===1,below:r[o]===2},otherFill:null})}),t&&t.selected(n),n}var Ble={union:function(e,r){return yc(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return yc(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return yc(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return yc(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return yc(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};lD.exports=Ble});var fD=xe((kbe,uD)=>{var Ole={toPolygon:function(e,r){function t(o){if(o.length<=0)return e.segments({inverted:!1,regions:[]});function i(s){var f=s.slice(0,s.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=i(o[0]),u=1;u<o.length;u++)l=e.selectDifference(e.combine(l,i(o[u])));return l}if(r.type==="Polygon")return e.polygon(t(r.coordinates));if(r.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),a=0;a<r.coordinates.length;a++)n=e.selectUnion(e.combine(n,t(r.coordinates[a])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,r,t){t=e.polygon(e.segments(t));function n(x,g){return r.pointInsideRegion([(x[0][0]+x[1][0])*.5,(x[0][1]+x[1][1])*.5],g)}function a(x){return{region:x,children:[]}}var o=a(null);function i(x,g){for(var w=0;w<x.children.length;w++){var M=x.children[w];if(n(g,M.region)){i(M,g);return}}for(var m=a(g),w=0;w<x.children.length;w++){var M=x.children[w];n(M.region,g)&&(m.children.push(M),x.children.splice(w,1),w--)}x.children.push(m)}for(var l=0;l<t.regions.length;l++){var u=t.regions[l];u.length<3||i(o,u)}function s(x,g){for(var w=0,M=x[x.length-1][0],m=x[x.length-1][1],k=[],S=0;S<x.length;S++){var b=x[S][0],T=x[S][1];k.push([b,T]),w+=T*M-b*m,M=b,m=T}var h=w<0;return h!==g&&k.reverse(),k.push([k[0][0],k[0][1]]),k}var f=[];function c(x){var g=[s(x.region,!1)];f.push(g);for(var w=0;w<x.children.length;w++)g.push(p(x.children[w]))}function p(x){for(var g=0;g<x.children.length;g++)c(x.children[g]);return s(x.region,!0)}for(var l=0;l<o.children.length;l++)c(o.children[l]);return f.length<=0?{type:"Polygon",coordinates:[]}:f.length==1?{type:"Polygon",coordinates:f[0]}:{type:"MultiPolygon",coordinates:f}}};uD.exports=Ole});var dD=xe((Sbe,hD)=>{var Ule=QL(),Hle=eD(),cD=aD(),Vle=oD(),mc=sD(),vD=fD(),ri=!1,bc=Hle(),Ta;Ta={buildLog:function(e){return e===!0?ri=Ule():e===!1&&(ri=!1),ri===!1?!1:ri.list},epsilon:function(e){return bc.epsilon(e)},segments:function(e){var r=cD(!0,bc,ri);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=cD(!1,bc,ri);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:mc.union(e.combined,ri),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:mc.intersect(e.combined,ri),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:mc.difference(e.combined,ri),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:mc.differenceRev(e.combined,ri),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:mc.xor(e.combined,ri),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Vle(e.segments,bc,ri),inverted:e.inverted}},polygonFromGeoJSON:function(e){return vD.toPolygon(Ta,e)},polygonToGeoJSON:function(e){return vD.fromPolygon(Ta,bc,e)},union:function(e,r){return xc(e,r,Ta.selectUnion)},intersect:function(e,r){return xc(e,r,Ta.selectIntersect)},difference:function(e,r){return xc(e,r,Ta.selectDifference)},differenceRev:function(e,r){return xc(e,r,Ta.selectDifferenceRev)},xor:function(e,r){return xc(e,r,Ta.selectXor)}};function xc(e,r,t){var n=Ta.segments(e),a=Ta.segments(r),o=Ta.combine(n,a),i=t(o);return Ta.polygon(i)}typeof window=="object"&&(window.PolyBool=Ta);hD.exports=Ta});var gD=xe((Cbe,pD)=>{pD.exports=function(r,t,n,a){var o=r[0],i=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var u=a-n,s=0,f=u-1;s<u;f=s++){var c=t[s+n][0],p=t[s+n][1],x=t[f+n][0],g=t[f+n][1],w=p>i!=g>i&&o<(x-c)*(i-p)/(g-p)+c;w&&(l=!l)}return l}});var C5=xe((Ebe,yD)=>{"use strict";var S5=Th().dot,x2=pn().BADNUM,_2=yD.exports={};_2.tester=function(r){var t=r.slice(),n=t[0][0],a=n,o=t[0][1],i=o,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;l<t.length;l++)n=Math.min(n,t[l][0]),a=Math.max(a,t[l][0]),o=Math.min(o,t[l][1]),i=Math.max(i,t[l][1]);var u=!1,s;t.length===5&&(t[0][0]===t[1][0]?t[2][0]===t[3][0]&&t[0][1]===t[3][1]&&t[1][1]===t[2][1]&&(u=!0,s=function(g){return g[0]===t[0][0]}):t[0][1]===t[1][1]&&t[2][1]===t[3][1]&&t[0][0]===t[3][0]&&t[1][0]===t[2][0]&&(u=!0,s=function(g){return g[1]===t[0][1]}));function f(g,w){var M=g[0],m=g[1];return!(M===x2||M<n||M>a||m===x2||m<o||m>i||w&&s(g))}function c(g,w){var M=g[0],m=g[1];if(M===x2||M<n||M>a||m===x2||m<o||m>i)return!1;var k=t.length,S=t[0][0],b=t[0][1],T=0,h,_,y,v,A;for(h=1;h<k;h++)if(_=S,y=b,S=t[h][0],b=t[h][1],v=Math.min(_,S),!(M<v||M>Math.max(_,S)||m>Math.max(y,b)))if(m<Math.min(y,b))M!==v&&T++;else{if(S===_?A=m:A=y+(M-_)*(b-y)/(S-_),m===A)return!(h===1&&w);m<=A&&M!==v&&T++}return T%2===1}var p=!0,x=t[0];for(l=1;l<t.length;l++)if(x[0]!==t[l][0]||x[1]!==t[l][1]){p=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:i,pts:t,contains:u?f:c,isRect:u,degenerate:p}};_2.isSegmentBent=function(r,t,n,a){var o=r[t],i=[r[n][0]-o[0],r[n][1]-o[1]],l=S5(i,i),u=Math.sqrt(l),s=[-i[1]/u,i[0]/u],f,c,p;for(f=t+1;f<n;f++)if(c=[r[f][0]-o[0],r[f][1]-o[1]],p=S5(c,i),p<0||p>l||Math.abs(S5(c,s))>a)return!0;return!1};_2.filter=function(r,t){var n=[r[0]],a=0,o=0;function i(u){r.push(u);var s=n.length,f=a;n.splice(o+1);for(var c=f+1;c<r.length;c++)(c===r.length-1||_2.isSegmentBent(r,f,c+1,t))&&(n.push(r[c]),n.length<s-2&&(a=c,o=n.length-1),f=c)}if(r.length>1){var l=r.pop();i(l)}return{addPt:i,raw:r,filtered:n}}});var bD=xe((Lbe,mD)=>{"use strict";mD.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var UD=xe((Dbe,OD)=>{"use strict";var xD=dD(),Gle=gD(),Mc=Cr(),Yle=Mt().dashStyle,_c=Xr(),Xle=so(),Wle=eo().makeEventData,Cc=su(),Zle=Cc.freeMode,Jle=Cc.rectMode,Tc=Cc.drawMode,R5=Cc.openMode,F5=Cc.selectMode,_D=Cl(),wD=uc(),SD=i2(),CD=vl().clearOutline,ED=Al(),E5=ED.handleEllipse,$le=ED.readPaths,Kle=t2().newShapes,Qle=e5(),jle=k5().activateLastSelection,M2=rr(),ese=M2.sorterAsc,LD=C5(),wc=qh(),ti=fn().getFromId,rse=Z1(),tse=y2().redrawReglTraces,T2=bD(),ho=T2.MINSELECT,nse=LD.filter,P5=LD.tester,I5=Q1(),MD=I5.p2r,ase=I5.axValue,ise=I5.getTransform;function z5(e){return e.subplot!==void 0}function ose(e,r,t,n,a){var o=!z5(n),i=Zle(a),l=Jle(a),u=R5(a),s=Tc(a),f=F5(a),c=a==="drawline",p=a==="drawcircle",x=c||p,g=n.gd,w=g._fullLayout,M=f&&w.newselection.mode==="immediate"&&o,m=w._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,b=ise(S),T=r-k.left,h=t-k.top;w._calcInverseTransform(g);var _=M2.apply3DTransform(w._invTransform)(T,h);T=_[0],h=_[1];var y=w._invScaleX,v=w._invScaleY,A=T,d=h,D="M"+T+","+h,E=n.xaxes[0],R=n.yaxes[0],z=E._length,I=R._length,P=e.altKey&&!(Tc(a)&&u),L,F,B,O,V,K,j;RD(e,g,n),i&&(L=nse([[T,h]],T2.BENDPX));var G=m.selectAll("path.select-outline-"+S.id).data([1]),q=s?w.newshape:w.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var J=s&&!u?q.fillcolor:"rgba(0,0,0,0)",te=q.line.color||(o?_c.contrast(g._fullLayout.plot_bgcolor):"#7f7f7f");G.enter().append("path").attr("class","select-outline select-outline-"+S.id).style({opacity:s?q.opacity/2:1,"stroke-dasharray":Yle(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(_c.stroke,te).call(_c.fill,J).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",b).attr("d",D+"Z");var Z=m.append("path").attr("class","zoombox-corners").style({fill:_c.background,stroke:_c.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(s&&n.hasText){var ie=m.select(".label-temp");ie.empty()&&(ie=m.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Q=w._uid+T2.SELECTID,re=[],ue=A2(g,n.xaxes,n.yaxes,n.subplot);M&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var ae=E._id,ce=R._id;ND(g,ae,ce,ue);for(var Te=(g.layout||{}).selections||[],ke=[],Se=!1,ge=0;ge<Te.length;ge++){var Le=w.selections[ge];!Le||Le.xref!==ae||Le.yref!==ce?ke.push(Te[ge]):Se=!0}Se&&(g._fullLayout._noEmitSelectedAtStart=!0,Mc.call("_guiRelayout",g,{selections:ke}))}});var ee=xse(n);n.moveFn=function(ae,ce){n._clearSubplotSelections&&(n._clearSubplotSelections(),n._clearSubplotSelections=void 0),A=Math.max(0,Math.min(z,y*ae+T)),d=Math.max(0,Math.min(I,v*ce+h));var Te=Math.abs(A-T),ke=Math.abs(d-h);if(l){var Se,ge,Le;if(f){var Ce=w.selectdirection;switch(Ce==="any"?ke<Math.min(Te*.6,ho)?Se="h":Te<Math.min(ke*.6,ho)?Se="v":Se="d":Se=Ce,Se){case"h":ge=p?I/2:0,Le=I;break;case"v":ge=p?z/2:0,Le=z;break}}if(s)switch(w.newshape.drawdirection){case"vertical":Se="h",ge=p?I/2:0,Le=I;break;case"horizontal":Se="v",ge=p?z/2:0,Le=z;break;case"ortho":Te<ke?(Se="h",ge=h,Le=d):(Se="v",ge=T,Le=A);break;default:Se="d"}Se==="h"?(O=x?E5(p,[A,ge],[A,Le]):[[T,ge],[T,Le],[A,Le],[A,ge]],O.xmin=x?A:Math.min(T,A),O.xmax=x?A:Math.max(T,A),O.ymin=Math.min(ge,Le),O.ymax=Math.max(ge,Le),Z.attr("d","M"+O.xmin+","+(h-ho)+"h-4v"+2*ho+"h4ZM"+(O.xmax-1)+","+(h-ho)+"h4v"+2*ho+"h-4Z")):Se==="v"?(O=x?E5(p,[ge,d],[Le,d]):[[ge,h],[ge,d],[Le,d],[Le,h]],O.xmin=Math.min(ge,Le),O.xmax=Math.max(ge,Le),O.ymin=x?d:Math.min(h,d),O.ymax=x?d:Math.max(h,d),Z.attr("d","M"+(T-ho)+","+O.ymin+"v-4h"+2*ho+"v4ZM"+(T-ho)+","+(O.ymax-1)+"v4h"+2*ho+"v-4Z")):Se==="d"&&(O=x?E5(p,[T,h],[A,d]):[[T,h],[T,d],[A,d],[A,h]],O.xmin=Math.min(T,A),O.xmax=Math.max(T,A),O.ymin=Math.min(h,d),O.ymax=Math.max(h,d),Z.attr("d","M0,0Z"))}else i&&(L.addPt([A,d]),O=L.filtered);if(n.selectionDefs&&n.selectionDefs.length?(B=FD(n.mergedPolygons,O,P),O.subtract=P,F=N5(n.selectionDefs.concat([O]))):(B=[O],F=P5(O)),SD(ID(B,u),G,n),f){var le=D5(g,!1),Y=le.eventData?le.eventData.points.slice():[];le=D5(g,!1,F,ue,n),F=le.selectionTesters,j=le.eventData;var $;L?$=L.filtered:$=qD(B),wc.throttle(Q,T2.SELECTDELAY,function(){re=zD(F,ue);for(var pe=re.slice(),oe=0;oe<Y.length;oe++){for(var ve=Y[oe],he=!1,me=0;me<pe.length;me++)if(pe[me].curveNumber===ve.curveNumber&&pe[me].pointNumber===ve.pointNumber){he=!0;break}he||pe.push(ve)}pe.length&&(j||(j={}),j.points=pe),ee(j,$),_se(g,j)})}},n.clickFn=function(ae,ce){if(Z.remove(),g._fullLayout._activeShapeIndex>=0){g._fullLayout._deactivateShape(g);return}if(!s){var Te=w.clickmode;wc.done(Q).then(function(){if(wc.clear(Q),ae===2){for(G.remove(),V=0;V<ue.length;V++)K=ue[V],K._module.selectPoints(K,!1);if(kc(g,ue),Ac(n),B5(g),ue.length){var ke=ue[0].xaxis,Se=ue[0].yaxis;if(ke&&Se){for(var ge=[],Le=g._fullLayout.selections,Ce=0;Ce<Le.length;Ce++){var le=Le[Ce];le&&(le.xref!==ke._id||le.yref!==Se._id)&&ge.push(le)}ge.length<Le.length&&(g._fullLayout._noEmitSelectedAtStart=!0,Mc.call("_guiRelayout",g,{selections:ge}))}}}else Te.indexOf("select")>-1&&DD(ce,g,n.xaxes,n.yaxes,n.subplot,n,G),Te==="event"&&Sc(g,void 0);Xle.click(g,ce,S.id)}).catch(M2.error)}},n.doneFn=function(){Z.remove(),wc.done(Q).then(function(){wc.clear(Q),!M&&O&&n.selectionDefs&&(O.subtract=P,n.selectionDefs.push(O),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,B)),(M||s)&&Ac(n,M),n.doneFnCompleted&&n.doneFnCompleted(re),f&&Sc(g,j)}).catch(M2.error)}}function DD(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,c=[],p,x,g,w,M,m,k,S,b,T;if(cse(l)){RD(e,r,o),p=A2(r,t,n,a);var h=vse(l,p),_=h.pointNumbers.length>0;if(_?hse(p,h):dse(p)&&(k=AD(h))){for(i&&i.remove(),T=0;T<p.length;T++)x=p[T],x._module.selectPoints(x,!1);kc(r,p),Ac(o),f&&B5(r)}else{S=e.shiftKey&&(k!==void 0?k:AD(h)),g=lse(h.pointNumber,h.searchInfo,S);var y=o.selectionDefs.concat([g]);for(w=N5(y,w),T=0;T<p.length;T++)if(M=p[T]._module.selectPoints(p[T],w),m=PD(M,p[T]),c.length)for(var v=0;v<m.length;v++)c.push(m[v]);else c=m;if(b={points:c},kc(r,p,b),g&&o&&o.selectionDefs.push(g),i){var A=o.mergedPolygons,d=R5(o.dragmode);SD(ID(A,d),i,o)}f&&Sc(r,b)}}}function lse(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function L5(e){return"pointNumber"in e&&"searchInfo"in e}function sse(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(r,t,n,a){var o=e.searchInfo.cd[0].trace.index,i=a.cd[0].trace.index;return i===o&&n===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function N5(e){if(!e.length)return;for(var r=[],t=L5(e[0])?0:e[0][0][0],n=t,a=L5(e[0])?0:e[0][0][1],o=a,i=0;i<e.length;i++)if(L5(e[i]))r.push(sse(e[i]));else{var l=P5(e[i]);l.subtract=!!e[i].subtract,r.push(l),t=Math.min(t,l.xmin),n=Math.max(n,l.xmax),a=Math.min(a,l.ymin),o=Math.max(o,l.ymax)}function u(s,f,c,p){for(var x=!1,g=0;g<r.length;g++)r[g].contains(s,f,c,p)&&(x=!r[g].subtract);return x}return{xmin:t,xmax:n,ymin:a,ymax:o,pts:[],contains:u,isRect:!1,degenerate:!1}}function RD(e,r,t){var n=r._fullLayout,a=t.plotinfo,o=t.dragmode,i=n._lastSelectedSubplot&&n._lastSelectedSubplot===a.id,l=(e.shiftKey||e.altKey)&&!(Tc(o)&&R5(o));i&&l&&a.selection&&a.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=a.selection.selectionDefs,t.mergedPolygons=a.selection.mergedPolygons):(!l||!a.selection)&&Ac(t),i||(CD(r),n._lastSelectedSubplot=a.id)}function use(e){return e._fullLayout._activeShapeIndex>=0}function fse(e){return e._fullLayout._activeSelectionIndex>=0}function Ac(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;use(a)&&a._fullLayout._deactivateShape(a),fse(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=Tc(t),u=F5(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=Kle(s,e)),f&&Mc.call("_guiRelayout",a,{shapes:f});var c;u&&!z5(e)&&(c=Qle(s,e)),c&&(a._fullLayout._noEmitSelectedAtStart=!0,Mc.call("_guiRelayout",a,{selections:c}).then(function(){r&&jle(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function TD(e){return e._id}function A2(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(TD),i=t.map(TD),l,u,s;for(s=0;s<e.calcdata.length;s++)if(l=e.calcdata[s],u=l[0].trace,!(u.visible!==!0||!u._module||!u._module.selectPoints))if(z5({subplot:n})&&(u.subplot===n||u.geo===n))a.push(w2(u._module,l,r[0],t[0]));else if(u.type==="splom"){if(u._xaxes[o[0]]&&u._yaxes[i[0]]){var f=w2(u._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[u.uid],a.push(f)}}else if(u.type==="sankey"){var c=w2(u._module,l,r[0],t[0]);a.push(c)}else{if(o.indexOf(u.xaxis)===-1&&(!u._xA||!u._xA.overlaying)||i.indexOf(u.yaxis)===-1&&(!u._yA||!u._yA.overlaying))continue;a.push(w2(u._module,l,ti(e,u.xaxis),ti(e,u.yaxis)))}return a}function w2(e,r,t,n){return{_module:e,cd:r,xaxis:t,yaxis:n}}function cse(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function vse(e,r){var t=e[0],n=-1,a=[],o,i;for(i=0;i<r.length;i++)if(o=r[i],t.fullData.index===o.cd[0].trace.index){if(t.hoverOnBox===!0)break;t.pointNumber!==void 0?n=t.pointNumber:t.binNumber!==void 0&&(n=t.binNumber,a=t.pointNumbers);break}return{pointNumber:n,pointNumbers:a,searchInfo:o}}function AD(e){var r=e.searchInfo.cd[0].trace,t=e.pointNumber,n=e.pointNumbers,a=n.length>0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function hse(e,r){var t=[],n,a,o,i;for(i=0;i<e.length;i++)n=e[i],n.cd[0].trace.selectedpoints&&n.cd[0].trace.selectedpoints.length>0&&t.push(n);if(t.length===1&&(o=t[0]===r.searchInfo,o&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(i=0;i<r.pointNumbers.length;i++)if(a.selectedpoints.indexOf(r.pointNumbers[i])<0)return!1;return!0}return!1}function dse(e){var r=0,t,n,a;for(a=0;a<e.length;a++)if(t=e[a],n=t.cd[0].trace,n.selectedpoints&&(n.selectedpoints.length>1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function kc(e,r,t){var n,a;for(n=0;n<r.length;n++){a=r[n].cd[0].trace;var o=e._fullLayout._tracePreGUI[a.uid]||{};o.selectedpoints===void 0&&(o.selectedpoints=a._input.selectedpoints||null)}if(t){var i=t.points||[];for(n=0;n<r.length;n++)a=r[n].cd[0].trace,a._input.selectedpoints=a.selectedpoints=[];for(var l=0;l<i.length;l++){var u=i[l],s=u.data,f=u.pointIndex,c=u.pointIndices;c?[].push.apply(s.selectedpoints,c):s.selectedpoints.push(f)}}else for(n=0;n<r.length;n++)a=r[n].cd[0].trace,delete a.selectedpoints,delete a._input.selectedpoints;pse(e,r)}function pse(e,r){for(var t=!1,n=0;n<r.length;n++){var a=r[n],o=a.cd;Mc.traceIs(o[0].trace,"regl")&&(t=!0);var i=a._module,l=i.styleOnSelect||i.style;l&&(l(e,o,o[0].node3),o[0].nodeRangePlot3&&l(e,o,o[0].nodeRangePlot3))}t&&(rse(e),tse(e))}function FD(e,r,t){for(var n=t?xD.difference:xD.union,a=n({regions:e},{regions:[r]}),o=a.regions.reverse(),i=0;i<o.length;i++){var l=o[i];l.subtract=q5(l,o.slice(0,i))}return o}function PD(e,r){if(Array.isArray(e))for(var t=r.cd,n=r.cd[0].trace,a=0;a<e.length;a++)e[a]=Wle(e[a],n,t);return e}function ID(e,r){for(var t=[],n=0;n<e.length;n++){t[n]=[];for(var a=0;a<e[n].length;a++){t[n][a]=[],t[n][a][0]=a?"L":"M";for(var o=0;o<e[n][a].length;o++)t[n][a].push(e[n][a][o])}r||t[n].push(["Z",t[n][0][1],t[n][0][2]])}return t}function zD(e,r){for(var t=[],n,a=[],o,i=0;i<r.length;i++){var l=r[i];o=l._module.selectPoints(l,e),a.push(o),n=PD(o,l),t=t.concat(n)}return t}function D5(e,r,t,n,a){var o=!!n,i,l,u;a&&(i=a.plotinfo,l=a.xaxes[0]._id,u=a.yaxes[0]._id);var s=[],f=[],c=kD(e),p=e._fullLayout;if(i){var x=p._zoomlayer,g=p.dragmode,w=Tc(g),M=F5(g);if(w||M){var m=ti(e,l,"x"),k=ti(e,u,"y");if(m&&k){var S=x.selectAll(".select-outline-"+i.id);if(S&&e._fullLayout._outlining&&S.length){for(var b=S[0][0],T=b.getAttribute("d"),h=$le(T,e,i),_=[],y=0;y<h.length;y++){for(var v=h[y],A=[],d=0;d<v.length;d++)A.push([El(m,v[d][1]),El(k,v[d][2])]);A.xref=l,A.yref=u,A.subtract=q5(A,_),_.push(A)}c=c.concat(_)}}}}var D=l&&u?[l+u]:p._subplots.cartesian;gse(e);for(var E={},R=0;R<D.length;R++){var z=D[R],I=z.indexOf("y"),P=z.slice(0,I),L=z.slice(I),F=l&&u?t:void 0;if(F=mse(c,P,L,F),F){var B=n;if(!o){var O=ti(e,P,"x"),V=ti(e,L,"y");B=A2(e,[O],[V],z);for(var K=0;K<B.length;K++){var j=B[K],G=j.cd[0],q=G.trace;if(j._module.name==="scattergl"&&!G.t.xpx){var J=q.x,te=q.y,Z=q._length;G.t.xpx=[],G.t.ypx=[];for(var ie=0;ie<Z;ie++)G.t.xpx[ie]=O.c2p(J[ie]),G.t.ypx[ie]=V.c2p(te[ie])}j._module.name==="splom"&&(E[q.uid]||(E[q.uid]=!0))}}var Q=zD(F,B);s=s.concat(Q),f=f.concat(B)}}var re={points:s};kc(e,f,re);var ue=p.clickmode,ee=ue.indexOf("event")>-1&&r;if(!i&&r){var ae=kD(e,!0);if(ae.length){var ce=ae[0].xref,Te=ae[0].yref;if(ce&&Te){var ke=qD(ae),Se=BD([ti(e,ce,"x"),ti(e,Te,"y")]);Se(re,ke)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ee&&Sc(e,re),p._reselect=!1}if(!i&&p._deselect){var ge=p._deselect;l=ge.xref,u=ge.yref,yse(l,u,f)||ND(e,l,u,n),ee&&(re.points.length?Sc(e,re):B5(e)),p._deselect=!1}return{eventData:re,selectionTesters:t}}function gse(e){var r=e.calcdata;if(r)for(var t=0;t<r.length;t++){var n=r[t][0],a=n.trace,o=e._fullLayout._splomScenes;if(o){var i=o[a.uid];i&&(i.selectBatch=[])}}}function yse(e,r,t){for(var n=0;n<t.length;n++){var a=t[n];if(a.xaxis&&a.xaxis._id===e&&a.yaxis&&a.yaxis._id===r)return!0}return!1}function ND(e,r,t,n){n=A2(e,[ti(e,r,"x")],[ti(e,t,"y")],r+t);for(var a=0;a<n.length;a++){var o=n[a];o._module.selectPoints(o,!1)}kc(e,n)}function mse(e,r,t,n){for(var a,o=0;o<e.length;o++){var i=e[o];if(!(r!==i.xref||t!==i.yref))if(a){var l=!!i.subtract;a=FD(a,i,l),n=N5(a)}else a=[i],n=P5(i)}return n}function kD(e,r){for(var t=[],n=e._fullLayout,a=n.selections,o=a.length,i=0;i<o;i++)if(!(r&&i!==n._activeSelectionIndex)){var l=a[i];if(l){var u=l.xref,s=l.yref,f=ti(e,u,"x"),c=ti(e,s,"y"),p,x,g,w,M;if(l.type==="rect"){M=[];var m=El(f,l.x0),k=El(f,l.x1),S=El(c,l.y0),b=El(c,l.y1);M=[[m,S],[m,b],[k,b],[k,S]],p=Math.min(m,k),x=Math.max(m,k),g=Math.min(S,b),w=Math.max(S,b),M.xmin=p,M.xmax=x,M.ymin=g,M.ymax=w,M.xref=u,M.yref=s,M.subtract=!1,M.isRect=!0,t.push(M)}else if(l.type==="path")for(var T=l.path.split("Z"),h=[],_=0;_<T.length;_++){var y=T[_];if(y){y+="Z";var v=_D.extractPathCoords(y,wD.paramIsX,"raw"),A=_D.extractPathCoords(y,wD.paramIsY,"raw");p=1/0,x=-1/0,g=1/0,w=-1/0,M=[];for(var d=0;d<v.length;d++){var D=El(f,v[d]),E=El(c,A[d]);M.push([D,E]),p=Math.min(D,p),x=Math.max(D,x),g=Math.min(E,g),w=Math.max(E,w)}M.xmin=p,M.xmax=x,M.ymin=g,M.ymax=w,M.xref=u,M.yref=s,M.subtract=q5(M,h),h.push(M),t.push(M)}}}}return t}function q5(e,r){for(var t=!1,n=0;n<r.length;n++)for(var a=r[n],o=0;o<e.length;o++)if(Gle(e[o],a)){t=!t;break}return t}function El(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function qD(e){for(var r=e.length,t=[],n=0;n<r;n++){var a=e[n];t=t.concat(a),t=t.concat([a[0]])}return bse(t)}function bse(e){return e.isRect=e.length===5&&e[0][0]===e[4][0]&&e[0][1]===e[4][1]&&e[0][0]===e[1][0]&&e[2][0]===e[3][0]&&e[0][1]===e[3][1]&&e[1][1]===e[2][1]||e[0][1]===e[1][1]&&e[2][1]===e[3][1]&&e[0][0]===e[3][0]&&e[1][0]===e[2][0],e.isRect&&(e.xmin=Math.min(e[0][0],e[2][0]),e.xmax=Math.max(e[0][0],e[2][0]),e.ymin=Math.min(e[0][1],e[2][1]),e.ymax=Math.max(e[0][1],e[2][1])),e}function BD(e){return function(r,t){for(var n,a,o=0;o<e.length;o++){var i=e[o],l=i._id,u=l.charAt(0);if(t.isRect){n||(n={});var s=t[u+"min"],f=t[u+"max"];s!==void 0&&f!==void 0&&(n[l]=[MD(i,s),MD(i,f)].sort(ese))}else a||(a={}),a[l]=t.map(ase(i))}n&&(r.range=n),a&&(r.lassoPoints=a)}}function xse(e){var r=e.plotinfo;return r.fillRangeItems||BD(e.xaxes.concat(e.yaxes))}function _se(e,r){e.emit("plotly_selecting",r)}function Sc(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function B5(e){e.emit("plotly_deselect",null)}OD.exports={reselect:D5,prepSelect:ose,clearOutline:CD,clearSelectionsCache:Ac,selectOnClick:DD}});var O5=xe((Rbe,HD)=>{"use strict";HD.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Ec=xe((Fbe,VD)=>{"use strict";VD.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e,"axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var pu=xe((Ibe,XD)=>{"use strict";var GD=O5(),YD=Nn(),k2=mn(),wse=wt().templatedArray,Pbe=Ec();XD.exports=wse("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:YD({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:GD.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:GD.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",k2.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",k2.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",k2.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",k2.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:YD({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var S2=xe((zbe,WD)=>{"use strict";WD.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var JD=xe((Nbe,ZD)=>{"use strict";ZD.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Os=xe((qbe,nR)=>{"use strict";var $D=Ro().axisHoverFormat,{hovertemplateAttrs:Mse,texttemplateAttrs:Tse,templatefallbackAttrs:KD}=mi(),QD=wi(),Ase=Nn(),jD=nl().dash,kse=nl().pattern,Sse=Mt(),Cse=S2(),Lc=Rt().extendFlat,Ese=JD();function eR(e){return{valType:"any",dflt:0,editType:"calc"}}function rR(e){return{valType:"any",editType:"calc"}}function tR(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}nR.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:eR("x"),yperiod:eR("y"),xperiod0:rR("x0"),yperiod0:rR("y0"),xperiodalignment:tR("x"),yperiodalignment:tR("y"),xhoverformat:$D("x"),yhoverformat:$D("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:Tse(),texttemplatefallback:KD({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Mse({},{keys:Cse.eventDataKeys}),hovertemplatefallback:KD(),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:Lc({},jD,{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:Ese(!0),fillgradient:Lc({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:kse,marker:Lc({symbol:{valType:"enumerated",values:Sse.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:Lc({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Lc({},jD,{arrayOk:!0}),editType:"calc"},QD("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"},QD("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:Ase({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var U5=xe((Obe,oR)=>{"use strict";var aR=pu(),iR=Os().line,Lse=nl().dash,C2=Rt().extendFlat,Dse=ea().overrideAll,Rse=wt().templatedArray,Bbe=Ec();oR.exports=Dse(Rse("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:C2({},aR.xref,{}),yref:C2({},aR.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:iR.color,width:C2({},iR.width,{min:1,dflt:1}),dash:C2({},Lse,{dflt:"dot"})}}),"arraydraw","from-root")});var fR=xe((Ube,uR)=>{"use strict";var lR=rr(),E2=Bt(),Fse=Mi(),Pse=U5(),sR=Cl();uR.exports=function(r,t){Fse(r,t,{name:"selections",handleItemDefaults:Ise});for(var n=t.selections,a=0;a<n.length;a++){var o=n[a];o&&o.path===void 0&&(o.x0===void 0||o.x1===void 0||o.y0===void 0||o.y1===void 0)&&(t.selections[a]=null)}};function Ise(e,r,t){function n(h,_){return lR.coerce(e,r,Pse,h,_)}var a=n("path"),o=a?"path":"rect",i=n("type",o),l=i!=="path";l&&delete r.path,n("opacity"),n("line.color"),n("line.width"),n("line.dash");for(var u=["x","y"],s=0;s<2;s++){var f=u[s],c={_fullLayout:t},p,x,g,w=E2.coerceRef(e,r,c,f);if(p=E2.getFromId(c,w),p._selectionIndices.push(r._index),g=sR.rangeToShapePosition(p),x=sR.shapePositionToRange(p),l){var M=f+"0",m=f+"1",k=e[M],S=e[m];e[M]=x(e[M],!0),e[m]=x(e[m],!0),E2.coercePosition(r,c,n,w,M),E2.coercePosition(r,c,n,w,m);var b=r[M],T=r[m];b!==void 0&&T!==void 0&&(r[M]=g(b),r[m]=g(T),e[M]=k,e[m]=S)}}l&&lR.noneOrAll(e,r,["x0","x1","y0","y1"])}});var vR=xe((Hbe,cR)=>{"use strict";cR.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var Dc=xe((Vbe,pR)=>{"use strict";var zse=Cr(),hR=rr(),dR=fn();pR.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=zse.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,c=u.cartesian,p=a._has("cartesian"),x=0;x<o.length;x++){var g=o[x];if(hR.isPlainObject(g)){var w=dR.cleanId(g.xref,"x",!1),M=dR.cleanId(g.yref,"y",!1),m=l.x.test(w),k=l.y.test(M);if(m||k){p||hR.pushUnique(a._basePlotModules,i);var S=!1;m&&s.indexOf(w)===-1&&(s.push(w),S=!0),k&&f.indexOf(M)===-1&&(f.push(M),S=!0),S&&m&&k&&c.push(w+M)}}}}}});var gu=xe((Gbe,yR)=>{"use strict";var gR=k5(),Rc=UD();yR.exports={moduleType:"component",name:"selections",layoutAttributes:U5(),supplyLayoutDefaults:fR(),supplyDrawNewSelectionDefaults:vR(),includeBasePlot:Dc()("selections"),draw:gR.draw,drawOne:gR.drawOne,reselect:Rc.reselect,prepSelect:Rc.prepSelect,clearOutline:Rc.clearOutline,clearSelectionsCache:Rc.clearSelectionsCache,selectOnClick:Rc.selectOnClick}});var NR=xe((Ybe,zR)=>{"use strict";var W5=nt(),ni=rr(),mR=ni.numberFormat,Nse=z1(),L2=Cr(),kR=ni.strTranslate,qse=Un(),V5=Xr(),Ll=Mt(),Bse=so(),bR=Bt(),Ose=Ml(),Use=Ai(),SR=su(),D2=SR.selectingOrDrawing,Hse=SR.freeMode,Vse=On().FROM_TL,Gse=Z1(),Yse=y2().redrawReglTraces,Xse=bn(),G5=fn().getFromId,Wse=gu().prepSelect,Zse=gu().clearOutline,Jse=gu().selectOnClick,H5=m5(),Z5=mn(),xR=Z5.MINDRAG,fa=Z5.MINZOOM,_R=!0;function $se(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,c,p,x,g,w,M,m,k,S,b,T,h,_,y,v,A,d,D,E,R,z,I,P;t+=r.yaxis._shift;function L(){if(c=r.xaxis,p=r.yaxis,S=c._length,b=p._length,m=c._offset,k=p._offset,x={},x[c._id]=c,g={},g[p._id]=p,i&&l)for(var ye=r.overlays,de=0;de<ye.length;de++){var _e=ye[de].xaxis;x[_e._id]=_e;var Ae=ye[de].yaxis;g[Ae._id]=Ae}w=AR(x),M=AR(g),_=wR(w,l),y=wR(M,i),v=!y&&!_,h=TR(e,e._fullLayout._axisMatchGroups,x,g),T=TR(e,e._fullLayout._axisConstraintGroups,x,g,h);var Pe=T.isSubplotConstrained||h.isSubplotConstrained;A=l||Pe,d=i||Pe;var Fe=e._fullLayout;D=Fe._has("scattergl"),E=Fe._has("splom"),R=Fe._has("svg")}L();var F=jse(y+_,e._fullLayout.dragmode,s),B=ER(r,i+l+"drag",F,t,n,a,o);if(v&&!s)return B.onmousedown=null,B.style.pointerEvents="none",B;var O={element:B,gd:e,plotinfo:r};O.prepFn=function(ye,de,_e){var Ae=O.dragmode,Pe=e._fullLayout.dragmode;Pe!==Ae&&(O.dragmode=Pe),L(),I=e._fullLayout._invScaleX,P=e._fullLayout._invScaleY,v||(s?ye.shiftKey?Pe==="pan"?Pe="zoom":D2(Pe)||(Pe="pan"):ye.ctrlKey&&(Pe="pan"):Pe="pan"),Hse(Pe)?O.minDrag=1:O.minDrag=void 0,D2(Pe)?(O.xaxes=w,O.yaxes=M,Wse(ye,de,_e,O,Pe)):(O.clickFn=K,D2(Ae)&&V(),v||(Pe==="zoom"?(O.moveFn=ae,O.doneFn=Te,O.minDrag=1,ee(ye,de,_e)):Pe==="pan"&&(O.moveFn=le,O.doneFn=oe))),e._fullLayout._redrag=function(){var Fe=e._dragdata;if(Fe&&Fe.element===B){var Ye=e._fullLayout.dragmode;D2(Ye)||(L(),ve([0,0,S,b]),O.moveFn(Fe.dx,Fe.dy))}}};function V(){O.plotinfo.selection=!1,Zse(e)}function K(ye,de){var _e=O.gd;if(_e._fullLayout._activeShapeIndex>=0){_e._fullLayout._deactivateShape(_e);return}var Ae=_e._fullLayout.clickmode;if(X5(_e),ye===2&&!f&&pe(),s)Ae.indexOf("select")>-1&&Jse(de,_e,w,M,r.id,O),Ae.indexOf("event")>-1&&Bse.click(_e,de,r.id);else if(ye===1&&f){var Pe=i?p:c,Fe=i==="s"||l==="w"?0:1,Ye=Pe._name+".range["+Fe+"]",qe=Kse(Pe,Fe),Be="left",Oe="middle";if(Pe.fixedrange)return;i?(Oe=i==="n"?"top":"bottom",Pe.side==="right"&&(Be="right")):l==="e"&&(Be="right"),_e._context.showAxisRangeEntryBoxes&&W5.select(B).call(qse.makeEditable,{gd:_e,immediate:!0,background:_e._fullLayout.paper_bgcolor,text:String(qe),fill:Pe.tickfont?Pe.tickfont.color:"#444",horizontalAlign:Be,verticalAlign:Oe}).on("edit",function(We){var Xe=Pe.d2r(We);Xe!==void 0&&L2.call("_guiRelayout",_e,Ye,Xe)})}}Use.init(O);var j,G,q,J,te,Z,ie,Q,re,ue;function ee(ye,de,_e){var Ae=B.getBoundingClientRect();j=de-Ae.left,G=_e-Ae.top,e._fullLayout._calcInverseTransform(e);var Pe=ni.apply3DTransform(e._fullLayout._invTransform)(j,G);j=Pe[0],G=Pe[1],q={l:j,r:j,w:0,t:G,b:G,h:0},J=e._hmpixcount?e._hmlumcount/e._hmpixcount:V5.luminosity(e._fullLayout.plot_bgcolor),te="M0,0H"+S+"V"+b+"H0V0",Z=!1,ie="xy",ue=!1,Q=LR(u,J,m,k,te),re=DR(u,m,k)}function ae(ye,de){if(e._transitioningWithDuration)return!1;var _e=Math.max(0,Math.min(S,I*ye+j)),Ae=Math.max(0,Math.min(b,P*de+G)),Pe=Math.abs(_e-j),Fe=Math.abs(Ae-G);q.l=Math.min(j,_e),q.r=Math.max(j,_e),q.t=Math.min(G,Ae),q.b=Math.max(G,Ae);function Ye(){ie="",q.r=q.l,q.t=q.b,re.attr("d","M0,0Z")}if(T.isSubplotConstrained)Pe>fa||Fe>fa?(ie="xy",Pe/S>Fe/b?(Fe=Pe*b/S,G>Ae?q.t=G-Fe:q.b=G+Fe):(Pe=Fe*S/b,j>_e?q.l=j-Pe:q.r=j+Pe),re.attr("d",R2(q))):Ye();else if(h.isSubplotConstrained)if(Pe>fa||Fe>fa){ie="xy";var qe=Math.min(q.l/S,(b-q.b)/b),Be=Math.max(q.r/S,(b-q.t)/b);q.l=qe*S,q.r=Be*S,q.b=(1-qe)*b,q.t=(1-Be)*b,re.attr("d",R2(q))}else Ye();else!y||Fe<Math.min(Math.max(Pe*.6,xR),fa)?Pe<xR||!_?Ye():(q.t=0,q.b=b,ie="x",re.attr("d",e0e(q,G))):!_||Pe<Math.min(Fe*.6,fa)?(q.l=0,q.r=S,ie="y",re.attr("d",r0e(q,j))):(ie="xy",re.attr("d",R2(q)));q.w=q.r-q.l,q.h=q.b-q.t,ie&&(ue=!0),e._dragged=ue,RR(Q,re,q,te,Z,J),ce(),e.emit("plotly_relayouting",z),Z=!0}function ce(){z={},(ie==="xy"||ie==="x")&&(Y5(w,q.l/S,q.r/S,z,T.xaxes),Y("x",z)),(ie==="xy"||ie==="y")&&(Y5(M,(b-q.b)/b,(b-q.t)/b,z,T.yaxes),Y("y",z))}function Te(){ce(),X5(e),oe(),PR(e)}var ke=[0,0,S,b],Se=null,ge=Z5.REDRAWDELAY,Le=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function Ce(ye){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(V(),e._transitioningWithDuration){ye.preventDefault(),ye.stopPropagation();return}L(),clearTimeout(Se);var de=-ye.deltaY;if(isFinite(de)||(de=ye.wheelDelta/10),!isFinite(de)){ni.log("Did not find wheel motion attributes: ",ye);return}e._fullLayout._replotting=!0;var _e=Math.exp(-Math.min(Math.max(de,-20),20)/200),Ae=Le.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Pe=(ye.clientX-Ae.left)/Ae.width,Fe=(Ae.bottom-ye.clientY)/Ae.height,Ye;function qe(Be,Oe,We){if(Be.fixedrange)return;var Xe=ni.simpleMap(Be.range,Be.r2l),tr=Xe[0]+(Xe[1]-Xe[0])*Oe;function ir(je){return Be.l2r(tr+(je-tr)*We)}Be.range=Xe.map(ir)}if(A){for(l||(Pe=.5),Ye=0;Ye<w.length;Ye++)qe(w[Ye],Pe,_e);Y("x"),ke[2]*=_e,ke[0]+=ke[2]*Pe*(1/_e-1)}if(d){for(i||(Fe=.5),Ye=0;Ye<M.length;Ye++)qe(M[Ye],Fe,_e);Y("y"),ke[3]*=_e,ke[1]+=ke[3]*(1-Fe)*(1/_e-1)}ve(ke),$(),e.emit("plotly_relayouting",z),Se=setTimeout(function(){e._fullLayout&&(ke=[0,0,S,b],oe())},ge),ye.preventDefault()}i.length*l.length!==1&&IR(B,Ce);function le(ye,de){if(ye=ye*I,de=de*P,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,_==="ew"||y==="ns"){var _e=_?-ye:0,Ae=y?-de:0;if(h.isSubplotConstrained){if(_&&y){var Pe=(ye/S-de/b)/2;ye=Pe*S,de=-Pe*b,_e=-ye,Ae=-de}y?_e=-Ae*S/b:Ae=-_e*b/S}_&&(MR(w,ye),Y("x")),y&&(MR(M,de),Y("y")),ve([_e,Ae,S,b]),$(),e.emit("plotly_relayouting",z);return}function Fe(ir,je,Ke){for(var Ee=1-je,ze,Qe,er=0;er<ir.length;er++){var wr=ir[er];if(!wr.fixedrange){ze=wr,Qe=wr._rl[Ee]+(wr._rl[je]-wr._rl[Ee])/Qse(Ke/wr._length);var Vr=wr.l2r(Qe);Vr!==!1&&Vr!==void 0&&(wr.range[je]=Vr)}}return ze._length*(ze._rl[je]-Qe)/(ze._rl[je]-ze._rl[Ee])}var Ye=_==="w"==(y==="n")?1:-1;if(_&&y&&(T.isSubplotConstrained||h.isSubplotConstrained)){var qe=(ye/S+Ye*de/b)/2;ye=qe*S,de=Ye*qe*b}var Be,Oe;if(_==="w"?ye=Fe(w,0,ye):_==="e"?ye=Fe(w,1,-ye):_||(ye=0),y==="n"?de=Fe(M,1,de):y==="s"?de=Fe(M,0,-de):y||(de=0),Be=_==="w"?ye:0,Oe=y==="n"?de:0,T.isSubplotConstrained&&!h.isSubplotConstrained||h.isSubplotConstrained&&_&&y&&Ye>0){var We;if(h.isSubplotConstrained||!_&&y.length===1){for(We=0;We<w.length;We++)w[We].range=w[We]._r.slice(),H5(w[We],1-de/b);ye=de*S/b,Be=ye/2}if(h.isSubplotConstrained||!y&&_.length===1){for(We=0;We<M.length;We++)M[We].range=M[We]._r.slice(),H5(M[We],1-ye/S);de=ye*b/S,Oe=de/2}}(!h.isSubplotConstrained||!y)&&Y("x"),(!h.isSubplotConstrained||!_)&&Y("y");var Xe=S-ye,tr=b-de;h.isSubplotConstrained&&!(_&&y)&&(_?(Oe=Be?0:ye*b/S,tr=Xe*b/S):(Be=Oe?0:de*S/b,Xe=tr*S/b)),ve([Be,Oe,Xe,tr]),$(),e.emit("plotly_relayouting",z)}function Y(ye,de){for(var _e=h.isSubplotConstrained?{x:M,y:w}[ye]:h[ye+"axes"],Ae=h.isSubplotConstrained?{x:w,y:M}[ye]:[],Pe=0;Pe<_e.length;Pe++){var Fe=_e[Pe],Ye=Fe._id,qe=h.xLinks[Ye]||h.yLinks[Ye],Be=Ae[0]||x[qe]||g[qe];Be&&(de?(de[Fe._name+".range[0]"]=de[Be._name+".range[0]"],de[Fe._name+".range[1]"]=de[Be._name+".range[1]"]):Fe.range=Be.range.slice())}}function $(){var ye=[],de;function _e(Ye){for(de=0;de<Ye.length;de++)Ye[de].fixedrange||ye.push(Ye[de]._id)}function Ae(Ye,qe){for(de=0;de<Ye.length;de++){var Be=Ye[de],Oe=Be[qe],We=Oe._id;!Be.fixedrange&&Oe.tickmode==="sync"&&!ye.includes(We)&&ye.push(We)}}for(A&&(_e(w),_e(T.xaxes),_e(h.xaxes),Ae(r.overlays,"xaxis")),d&&(_e(M),_e(T.yaxes),_e(h.yaxes),Ae(r.overlays,"yaxis")),z={},de=0;de<ye.length;de++){var Pe=ye[de],Fe=G5(e,Pe);bR.drawOne(e,Fe,{skipTitle:!0}),z[Fe._name+".range[0]"]=Fe.range[0],z[Fe._name+".range[1]"]=Fe.range[1]}bR.redrawComponents(e,ye)}function pe(){if(!e._transitioningWithDuration){var ye=e._context.doubleClick,de=[];_&&(de=de.concat(w)),y&&(de=de.concat(M)),h.xaxes&&(de=de.concat(h.xaxes)),h.yaxes&&(de=de.concat(h.yaxes));var _e={},Ae,Pe;if(ye==="reset+autosize")for(ye="autosize",Pe=0;Pe<de.length;Pe++){Ae=de[Pe];var Fe=Ae._rangeInitial0,Ye=Ae._rangeInitial1,qe=Fe!==void 0||Ye!==void 0;if(qe&&(Fe!==void 0&&Fe!==Ae.range[0]||Ye!==void 0&&Ye!==Ae.range[1])||!qe&&Ae.autorange!==!0){ye="reset";break}}if(ye==="autosize")for(Pe=0;Pe<de.length;Pe++)Ae=de[Pe],Ae.fixedrange||(_e[Ae._name+".autorange"]=!0);else if(ye==="reset"){for((_||T.isSubplotConstrained)&&(de=de.concat(T.xaxes)),y&&!T.isSubplotConstrained&&(de=de.concat(T.yaxes)),T.isSubplotConstrained&&(_?y||(de=de.concat(M)):de=de.concat(w)),Pe=0;Pe<de.length;Pe++)if(Ae=de[Pe],!Ae.fixedrange){var Be=Ae._name,Oe=Ae._autorangeInitial;Ae._rangeInitial0===void 0&&Ae._rangeInitial1===void 0?_e[Be+".autorange"]=!0:Ae._rangeInitial0===void 0?(_e[Be+".autorange"]=Oe,_e[Be+".range"]=[null,Ae._rangeInitial1]):Ae._rangeInitial1===void 0?(_e[Be+".range"]=[Ae._rangeInitial0,null],_e[Be+".autorange"]=Oe):_e[Be+".range"]=[Ae._rangeInitial0,Ae._rangeInitial1]}}e.emit("plotly_doubleclick",null),L2.call("_guiRelayout",e,_e)}}function oe(){ve([0,0,S,b]),ni.syncOrAsync([Xse.previousPromises,function(){e._fullLayout._replotting=!1,L2.call("_guiRelayout",e,z)}],e)}function ve(ye){var de=e._fullLayout,_e=de._plots,Ae=de._subplots.cartesian,Pe,Fe,Ye,qe;if(E&&L2.subplotsRegistry.splom.drag(e),D){for(Pe=0;Pe<Ae.length;Pe++)if(Fe=_e[Ae[Pe]],Ye=Fe.xaxis,qe=Fe.yaxis,Fe._scene){Ye.limitRange&&Ye.limitRange(),qe.limitRange&&qe.limitRange();var Be=ni.simpleMap(Ye.range,Ye.r2l),Oe=ni.simpleMap(qe.range,qe.r2l);Fe._scene.update({range:[Be[0],Oe[0],Be[1],Oe[1]]})}}if((E||D)&&(Gse(e),Yse(e)),R){var We=ye[2]/c._length,Xe=ye[3]/p._length;for(Pe=0;Pe<Ae.length;Pe++){Fe=_e[Ae[Pe]],Ye=Fe.xaxis,qe=Fe.yaxis;var tr=(A||h.isSubplotConstrained)&&!Ye.fixedrange&&x[Ye._id],ir=(d||h.isSubplotConstrained)&&!qe.fixedrange&&g[qe._id],je,Ke,Ee,ze;if(tr?(je=We,Ee=l||h.isSubplotConstrained?ye[0]:be(Ye,je)):h.xaHash[Ye._id]?(je=We,Ee=ye[0]*Ye._length/c._length):h.yaHash[Ye._id]?(je=Xe,Ee=y==="ns"?-ye[1]*Ye._length/p._length:be(Ye,je,{n:"top",s:"bottom"}[y])):(je=he(Ye,We,Xe),Ee=me(Ye,je)),je>1&&(Ye.maxallowed!==void 0&&A===(Ye.range[0]<Ye.range[1]?"e":"w")||Ye.minallowed!==void 0&&A===(Ye.range[0]<Ye.range[1]?"w":"e"))&&(je=1,Ee=0),ir?(Ke=Xe,ze=i||h.isSubplotConstrained?ye[1]:be(qe,Ke)):h.yaHash[qe._id]?(Ke=Xe,ze=ye[1]*qe._length/p._length):h.xaHash[qe._id]?(Ke=We,ze=_==="ew"?-ye[0]*qe._length/c._length:be(qe,Ke,{e:"right",w:"left"}[_])):(Ke=he(qe,We,Xe),ze=me(qe,Ke)),Ke>1&&(qe.maxallowed!==void 0&&d===(qe.range[0]<qe.range[1]?"n":"s")||qe.minallowed!==void 0&&d===(qe.range[0]<qe.range[1]?"s":"n"))&&(Ke=1,ze=0),!(!je&&!Ke)){je||(je=1),Ke||(Ke=1);var Qe=Ye._offset-Ee/je,er=qe._offset-ze/Ke;Fe.clipRect.call(Ll.setTranslate,Ee,ze).call(Ll.setScale,je,Ke),Fe.plot.call(Ll.setTranslate,Qe,er).call(Ll.setScale,1/je,1/Ke),(je!==Fe.xScaleFactor||Ke!==Fe.yScaleFactor)&&(Ll.setPointGroupScale(Fe.zoomScalePts,je,Ke),Ll.setTextPointsScale(Fe.zoomScaleTxt,je,Ke)),Ll.hideOutsideRangePoints(Fe.clipOnAxisFalseTraces,Fe),Fe.xScaleFactor=je,Fe.yScaleFactor=Ke}}}}function he(ye,de,_e){return ye.fixedrange?0:A&&T.xaHash[ye._id]?de:d&&(T.isSubplotConstrained?T.xaHash:T.yaHash)[ye._id]?_e:0}function me(ye,de){return de?(ye.range=ye._r.slice(),H5(ye,de),be(ye,de)):0}function be(ye,de,_e){return ye._length*(1-de)*Vse[_e||ye.constraintoward||"middle"]}return B}function CR(e,r,t,n){var a=ni.ensureSingle(e.draglayer,r,t,function(o){o.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return a.call(Ose,n),a.node()}function ER(e,r,t,n,a,o,i){var l=CR(e,"rect",r,t);return W5.select(l).call(Ll.setRect,n,a,o,i),l}function wR(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function Kse(e,r){var t=e.range[r],n=Math.abs(t-e.range[1-r]),a;return e.type==="date"?t:e.type==="log"?(a=Math.ceil(Math.max(0,-Math.log(n)/Math.LN10))+3,mR("."+a+"g")(Math.pow(10,t))):(a=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(n)/Math.LN10)+4,mR("."+String(a)+"g")(t))}function Y5(e,r,t,n,a){for(var o=0;o<e.length;o++){var i=e[o];if(!i.fixedrange)if(i.rangebreaks){var l=i._id.charAt(0)==="y",u=l?1-r:r,s=l?1-t:t;n[i._name+".range[0]"]=i.l2r(i.p2l(u*i._length)),n[i._name+".range[1]"]=i.l2r(i.p2l(s*i._length))}else{var f=i._rl[0],c=i._rl[1]-f;n[i._name+".range[0]"]=i.l2r(f+c*r),n[i._name+".range[1]"]=i.l2r(f+c*t)}}if(a&&a.length){var p=(r+(1-t))/2;Y5(a,p,1-p,n,[])}}function MR(e,r){for(var t=0;t<e.length;t++){var n=e[t];if(!n.fixedrange){if(n.rangebreaks){var a=0,o=n._length,i=n.p2l(a+r)-n.p2l(a),l=n.p2l(o+r)-n.p2l(o),u=(i+l)/2;n.range=[n.l2r(n._rl[0]-u),n.l2r(n._rl[1]-u)]}else n.range=[n.l2r(n._rl[0]-r/n._m),n.l2r(n._rl[1]-r/n._m)];n.limitRange&&n.limitRange()}}}function Qse(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function jse(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function LR(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",kR(t,n)).attr("d",a+"Z")}function DR(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:V5.background,stroke:V5.defaultLine,"stroke-width":1,opacity:0}).attr("transform",kR(r,t)).attr("d","M0,0Z")}function RR(e,r,t,n,a,o){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),FR(e,r,a,o)}function FR(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function X5(e){W5.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function PR(e){_R&&e.data&&e._context.showTips&&(ni.notifier(ni._(e,"Double-click to zoom back out"),"long",e),_R=!1)}function e0e(e,r){return"M"+(e.l-.5)+","+(r-fa-.5)+"h-3v"+(2*fa+1)+"h3ZM"+(e.r+.5)+","+(r-fa-.5)+"h3v"+(2*fa+1)+"h-3Z"}function r0e(e,r){return"M"+(r-fa-.5)+","+(e.t-.5)+"v-3h"+(2*fa+1)+"v3ZM"+(r-fa-.5)+","+(e.b+.5)+"v3h"+(2*fa+1)+"v-3Z"}function R2(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,fa)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function TR(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,c,p=(a||{}).xaHash,x=(a||{}).yaHash,g=0;g<r.length;g++){var w=r[g];for(u in t)if(w[u]){for(f in w)!(a&&(p[f]||x[f]))&&!(f.charAt(0)==="x"?t:n)[f]&&(i[f]=u);for(s in n)!(a&&(p[s]||x[s]))&&w[s]&&(o=!0)}for(s in n)if(w[s])for(c in w)!(a&&(p[c]||x[c]))&&!(c.charAt(0)==="x"?t:n)[c]&&(l[c]=s)}o&&(ni.extendFlat(i,l),l={});var M={},m=[];for(f in i){var k=G5(e,f);m.push(k),M[k._id]=k}var S={},b=[];for(c in l){var T=G5(e,c);b.push(T),S[T._id]=T}return{xaHash:M,yaHash:S,xaxes:m,yaxes:b,xLinks:i,yLinks:l,isSubplotConstrained:o}}function IR(e,r){if(!Nse)e.onwheel!==void 0?e.onwheel=r:e.onmousewheel!==void 0?e.onmousewheel=r:e.isAddedWheelEvent||(e.isAddedWheelEvent=!0,e.addEventListener("wheel",r,{passive:!1}));else{var t=e.onwheel!==void 0?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(t,e._onwheel),e._onwheel=r,e.addEventListener(t,r,{passive:!1})}}function AR(e){var r=[];for(var t in e)r.push(e[t]);return r}zR.exports={makeDragBox:$se,makeDragger:CR,makeRectDragger:ER,makeZoombox:LR,makeCorners:DR,updateZoombox:RR,xyCorners:R2,transitionZoombox:FR,removeZoombox:X5,showDoubleClickNotifier:PR,attachWheelEventHandler:IR}});var J5=xe(P2=>{"use strict";var t0e=nt(),F2=so(),n0e=Ai(),a0e=Ml(),Si=NR().makeDragBox,wn=mn().DRAGGERSIZE;P2.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){t0e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(o,i){if((t._plots[o].mainplot&&!0)===(t._plots[i].mainplot&&!0)){var l=o.split("y"),u=i.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[o].mainplot?1:-1});n.forEach(function(o){var i=t._plots[o],l=i.xaxis,u=i.yaxis;if(!i.mainplot){var s=Si(r,i,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(p){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===o&&r._fullLayout._plots[o]&&F2.hover(r,p,o)},F2.hover(r,p,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(p){r._dragging||(r._fullLayout._hoversubplot=null,n0e.unhover(r,p))},r._context.showAxisDragHandles&&(Si(r,i,l._offset-wn,u._offset-wn,wn,wn,"n","w"),Si(r,i,l._offset+l._length,u._offset-wn,wn,wn,"n","e"),Si(r,i,l._offset-wn,u._offset+u._length,wn,wn,"s","w"),Si(r,i,l._offset+l._length,u._offset+u._length,wn,wn,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=wn),Si(r,i,l._offset+l._length*.1,f,l._length*.8,wn,"","ew"),Si(r,i,l._offset,f,l._length*.1,wn,"","w"),Si(r,i,l._offset+l._length*.9,f,l._length*.1,wn,"","e")}if(o===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=wn),Si(r,i,c,u._offset+u._length*.1,wn,u._length*.8,"ns",""),Si(r,i,c,u._offset+u._length*.9,wn,u._length*.1,"s",""),Si(r,i,c,u._offset,wn,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,F2.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,F2.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},P2.updateFx(r)}};P2.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";a0e(r._draggers,t)}});var OR=xe((Wbe,BR)=>{"use strict";var qR=Cr();BR.exports=function(r){for(var t=qR.layoutArrayContainers,n=qR.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l<n.length;l++)if(i=r.match(n[l]),i&&i.index===0){o=i[0];break}if(o||(o=t[t.indexOf(a)]),!o)return!1;var u=r.slice(o.length);return u?(i=u.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),i?{array:o,index:Number(i[1]),property:i[3]||""}:!1):{array:o,index:"",property:""}}});var HR=xe(Pc=>{"use strict";var i0e=es(),$5=Mh(),Fc=el(),o0e=H3().sorterAsc,K5=Cr();Pc.containerArrayMatch=OR();var l0e=Pc.isAddVal=function(r){return r==="add"||i0e(r)},UR=Pc.isRemoveVal=function(r){return r===null||r==="remove"};Pc.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=K5.getComponentMethod(i,"supplyLayoutDefaults"),u=K5.getComponentMethod(i,"draw"),s=K5.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===$5||u===$5,c=r.layout,p=r._fullLayout;if(n[""]){Object.keys(n).length>1&&Fc.warn("Full array edits are incompatible with other edits",i);var x=n[""][""];if(UR(x))t.set(null);else if(Array.isArray(x))t.set(x);else return Fc.warn("Unrecognized full array edit value",i,x),!0;return f?!1:(l(c,p),u(r),!0)}var g=Object.keys(n).map(Number).sort(o0e),w=t.get(),M=w||[],m=o(p,i).get(),k=[],S=-1,b=M.length,T,h,_,y,v,A,d,D;for(T=0;T<g.length;T++){if(_=g[T],y=n[_],v=Object.keys(y),A=y[""],d=l0e(A),_<0||_>M.length-(d?0:1)){Fc.warn("index out of range",i,_);continue}if(A!==void 0)v.length>1&&Fc.warn("Insertion & removal are incompatible with edits to the same index.",i,_),UR(A)?k.push(_):d?(A==="add"&&(A={}),M.splice(_,0,A),m&&m.splice(_,0,{})):Fc.warn("Unrecognized full object edit value",i,_,A),S===-1&&(S=_);else for(h=0;h<v.length;h++)D=i+"["+_+"].",o(M[_],v[h],D).set(y[v[h]])}for(T=k.length-1;T>=0;T--)M.splice(k[T],1),m&&m.splice(k[T],1);if(M.length?w||t.set(M):t.set(null),f)return!1;if(l(c,p),s!==$5){var E;if(S===-1)E=g;else{for(b=Math.max(M.length,b),E=[],T=0;T<g.length&&(_=g[T],!(_>=S));T++)E.push(_);for(T=S;T<b;T++)E.push(T)}for(T=0;T<E.length;T++)s(r,E[T])}else u(r);return!0}});var JR=xe(ai=>{"use strict";var XR=it(),WR=Cr(),ia=rr(),Ic=bn(),ZR=fn(),zc=ZR.cleanId,s0e=ZR.getFromTrace,Q5=WR.traceIs,u0e=["x","y","z"];ai.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ia.log("Clearing previous rejected promises from queue."),e._promises=[]};ai.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(Ic.subplotsRegistry.cartesian||{}).attrRegex,a=(Ic.subplotsRegistry.polar||{}).attrRegex,o=(Ic.subplotsRegistry.ternary||{}).attrRegex,i=(Ic.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r<l.length;r++){var u=l[r];if(n&&n.test(u)){var s=e[u];s.anchor&&s.anchor!=="free"&&(s.anchor=zc(s.anchor)),s.overlaying&&(s.overlaying=zc(s.overlaying)),s.type||(s.isdate?s.type="date":s.islog?s.type="log":s.isdate===!1&&s.islog===!1&&(s.type="linear")),(s.autorange==="withzero"||s.autorange==="tozero")&&(s.autorange=!0,s.rangemode="tozero"),s.insiderange&&delete s.range,delete s.islog,delete s.isdate,delete s.categories,I2(s,"domain")&&delete s.domain}}var f=Array.isArray(e.annotations)?e.annotations.length:0;for(r=0;r<f;r++){var c=e.annotations[r];ia.isPlainObject(c)&&(yu(c,"xref"),yu(c,"yref"))}var p=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<p;r++){var x=e.shapes[r];ia.isPlainObject(x)&&(yu(x,"xref",!0),yu(x,"yref",!0))}var g=Array.isArray(e.images)?e.images.length:0;for(r=0;r<g;r++){var w=e.images[r];ia.isPlainObject(w)&&(yu(w,"xref"),yu(w,"yref"))}var M=e.legend;return M&&(M.x>3?(M.x=1.02,M.xanchor="left"):M.x<-2&&(M.x=-.02,M.xanchor="right"),M.y>3?(M.y=1.02,M.yanchor="bottom"):M.y<-2&&(M.y=-.02,M.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&ai.cleanLayout(e.template.layout),e};function yu(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=zc(n,a,!0))}ai.cleanData=function(e){for(var r=0;r<e.length;r++){var t=e[r],n;if(t.type==="histogramy"&&"xbins"in t&&!("ybins"in t)&&(t.ybins=t.xbins,delete t.xbins),t.type==="histogramy"&&ai.swapXYData(t),(t.type==="histogramx"||t.type==="histogramy")&&(t.type="histogram"),"scl"in t&&!("colorscale"in t)&&(t.colorscale=t.scl,delete t.scl),"reversescl"in t&&!("reversescale"in t)&&(t.reversescale=t.reversescl,delete t.reversescl),t.xaxis&&(t.xaxis=zc(t.xaxis,"x")),t.yaxis&&(t.yaxis=zc(t.yaxis,"y")),Q5(t,"gl3d")&&t.scene&&(t.scene=Ic.subplotsRegistry.gl3d.cleanId(t.scene)),!Q5(t,"pie-like")&&!Q5(t,"bar-like"))if(Array.isArray(t.textposition))for(n=0;n<t.textposition.length;n++)t.textposition[n]=GR(t.textposition[n]);else t.textposition&&(t.textposition=GR(t.textposition));var a=WR.getModule(t);if(a&&a.colorbar){var o=a.colorbar.container,i=o?t[o]:t;i&&i.colorscale&&(i.colorscale==="YIGnBu"&&(i.colorscale="YlGnBu"),i.colorscale==="YIOrRd"&&(i.colorscale="YlOrRd"))}if(t.type==="surface"&&ia.isPlainObject(t.contours)){var l=["x","y","z"];for(n=0;n<l.length;n++){var u=t.contours[l[n]];ia.isPlainObject(u)&&(u.highlightColor&&(u.highlightcolor=u.highlightColor,delete u.highlightColor),u.highlightWidth&&(u.highlightwidth=u.highlightWidth,delete u.highlightWidth))}}if(t.type==="candlestick"||t.type==="ohlc"){var s=(t.increasing||{}).showlegend!==!1,f=(t.decreasing||{}).showlegend!==!1,c=VR(t.increasing),p=VR(t.decreasing);if(c!==!1&&p!==!1){var x=f0e(c,p,s,f);x&&(t.name=x)}else(c||p)&&!t.name&&(t.name=c||p)}I2(t,"line")&&delete t.line,"marker"in t&&(I2(t.marker,"line")&&delete t.marker.line,I2(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function VR(e){if(!ia.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function f0e(e,r,t,n){if(t&&!n)return e;if(n&&!t||!e.trim())return r;if(!r.trim())return e;var a=Math.min(e.length,r.length),o;for(o=0;o<a&&e.charAt(o)===r.charAt(o);o++);var i=e.slice(0,o);return i.trim()}function GR(e){var r="middle",t="center";return typeof e=="string"&&(e.indexOf("top")!==-1?r="top":e.indexOf("bottom")!==-1&&(r="bottom"),e.indexOf("left")!==-1?t="left":e.indexOf("right")!==-1&&(t="right")),r+" "+t}function I2(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}ai.swapXYData=function(e){var r;if(ia.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","error_?"]),Array.isArray(e.z)&&Array.isArray(e.z[0])&&(e.transpose?delete e.transpose:e.transpose=!0),e.error_x&&e.error_y){var t=e.error_y,n="copy_ystyle"in t?t.copy_ystyle:!(t.color||t.thickness||t.width);ia.swapAttrs(e,["error_?.copy_ystyle"]),n&&ia.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if(typeof e.hoverinfo=="string"){var a=e.hoverinfo.split("+");for(r=0;r<a.length;r++)a[r]==="x"?a[r]="y":a[r]==="y"&&(a[r]="x");e.hoverinfo=a.join("+")}};ai.coerceTraceIndices=function(e,r){if(XR(r))return[r];if(!Array.isArray(r)||!r.length)return e.data.map(function(a,o){return o});if(Array.isArray(r)){for(var t=[],n=0;n<r.length;n++)ia.isIndex(r[n],e.data.length)?t.push(r[n]):ia.warn("trace index (",r[n],") is not a number or is out of bounds");return t}return r};ai.manageArrayContainers=function(e,r,t){var n=e.obj,a=e.parts,o=a.length,i=a[o-1],l=XR(i);if(l&&r===null){var u=a.slice(0,o-1).join("."),s=ia.nestedProperty(n,u).get();s.splice(i,1)}else l&&e.get()===void 0&&e.get()===void 0&&(t[e.astr]=null),e.set(r)};var c0e=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function YR(e){var r=e.search(c0e);if(r>0)return e.slice(0,r)}ai.hasParent=function(e,r){for(var t=YR(r);t;){if(t in e)return!0;t=YR(t)}return!1};ai.clearAxisTypes=function(e,r,t){for(var n=0;n<r.length;n++)for(var a=e._fullData[n],o=0;o<3;o++){var i=s0e(e,a,u0e[o]);if(i&&i.type!=="log"){var l=i._name,u=i._id.slice(1);if(u.slice(0,5)==="scene"){if(t[u]!==void 0)continue;l=u+"."+l}var s=l+".type";t[l]===void 0&&t[s]===void 0&&ia.nestedProperty(e.layout,s).set(null)}}};var j5=(e,r)=>{let t=(...n)=>n.every(a=>ia.isPlainObject(a))||n.every(a=>Array.isArray(a));if([e,r].every(n=>Array.isArray(n))){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++){let a=e[n],o=r[n];if(a!==o&&!(t(a,o)?j5(a,o):!1))return!1}return!0}else if([e,r].every(n=>ia.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let a=e[n],o=r[n];if(a!==o&&!(t(a,o)?j5(a,o):!1))return!1}return!0}return!1};ai.collectionsAreEqual=j5});var ib=xe(tt=>{"use strict";var q2=nt(),v0e=it(),h0e=ry(),cr=rr(),At=cr.nestedProperty,tb=qf(),ca=DT(),ii=Cr(),Y2=H0(),Lr=bn(),oa=Bt(),d0e=Mm(),p0e=$a(),eb=Mt(),g0e=Xr(),y0e=J5().initInteractions,m0e=hl(),b0e=gu().clearOutline,eF=jo().dfltConfig,z2=HR(),tn=JR(),dt=y2(),Dl=ea(),x0e=mn().AX_NAME_PATTERN,rb=0,$R=5;function _0e(e,r,t,n){var a;if(e=cr.getGraphDiv(e),tb.init(e),cr.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=tb.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!cr.isPlotDiv(e)&&cr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return tt.addFrames(e,a)}tF(e,n),t||(t={}),q2.select(e).classed("js-plotly-plot",!0),eb.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(tn.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=tn.cleanLayout(t)),Lr.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(G0e(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),eb.initGradients(e),eb.initPatterns(e),u&&oa.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Lr.doCalcdata(e);for(var p=0;p<e.calcdata.length;p++)e.calcdata[p][0].trace=e._fullData[p];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){cr.isHidden(e)||Lr.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):cr.clearResponsive(e);var x=cr.extendFlat({},s._size),g=0;function w(){for(var _=s._basePlotModules,y=0;y<_.length;y++)_[y].drawFramework&&_[y].drawFramework(e);!s._glcanvas&&s._has("gl")&&(s._glcanvas=s._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(D){return D.key}),s._glcanvas.enter().append("canvas").attr("class",function(D){return"gl-canvas gl-canvas-"+D.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var v=e._context.plotGlPixelRatio;if(s._glcanvas){s._glcanvas.attr("width",s.width*v).attr("height",s.height*v).style("width",s.width+"px").style("height",s.height+"px");var A=s._glcanvas.data()[0].regl;if(A&&(Math.floor(s.width*v)!==A._gl.drawingBufferWidth||Math.floor(s.height*v)!==A._gl.drawingBufferHeight)){var d="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(g)cr.error(d);else return cr.log(d+" Clearing graph and plotting again."),Lr.cleanPlot([],{},e._fullData,s),Lr.supplyDefaults(e),s=e._fullLayout,Lr.doCalcdata(e),g++,w()}}return s.modebar.orientation==="h"?s._modebardiv.style("height",null).style("width","100%"):s._modebardiv.style("width",null).style("height",s.height+"px"),Lr.previousPromises(e)}function M(){if(Lr.clearAutoMarginIds(e),dt.drawMarginPushers(e),oa.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&Lr.allowAutoMargin(e,"title.automargin"),s._has("pie"))for(var _=e._fullData,y=0;y<_.length;y++){var v=_[y];v.type==="pie"&&v.automargin&&Lr.allowAutoMargin(e,"pie."+v.uid+".automargin")}return Lr.doAutoMargin(e),Lr.previousPromises(e)}function m(){if(Lr.didMarginChange(x,s._size))return cr.syncOrAsync([M,dt.layoutStyles],e)}function k(){if(!c){S();return}return cr.syncOrAsync([ii.getComponentMethod("shapes","calcAutorange"),ii.getComponentMethod("annotations","calcAutorange"),S],e)}function S(){e._transitioning||(dt.doAutoRangeAndConstraints(e),u&&oa.saveRangeInitial(e),ii.getComponentMethod("rangeslider","calcAutorange")(e))}function b(){return oa.draw(e,u?"":"redraw")}var T=[Lr.previousPromises,l,w,M,m];f&&T.push(k),T.push(dt.layoutStyles),f&&T.push(b,function(y){var v=y._fullLayout._insideTickLabelsUpdaterange;if(v)return y._fullLayout._insideTickLabelsUpdaterange=void 0,Nc(y,v).then(function(){oa.saveRangeInitial(y,!0)})}),T.push(dt.drawData,dt.finalDraw,y0e,Lr.rehover,Lr.redrag,Lr.reselect,Lr.doAutoMargin,Lr.previousPromises);var h=cr.syncOrAsync(T,e);return(!h||!h.then)&&(h=Promise.resolve()),h.then(function(){return qc(e),e})}function qc(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function w0e(e){return cr.extendFlat(eF,e)}function rF(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){cr.error(t)}}function M0e(e,r){var t=g0e.combine(r,"white");rF(e,t)}function tF(e,r){if(!e._context){e._context=cr.extendDeep({},eF);var t=q2.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var n=e._context,a,o,i;if(r){for(o=Object.keys(r),a=0;a<o.length;a++)i=o[a],!(i==="editable"||i==="edits")&&i in n&&(i==="setBackground"&&r[i]==="opaque"?n[i]=M0e:n[i]=r[i]);var l=r.editable;if(l!==void 0)for(n.editable=l,o=Object.keys(n.edits),a=0;a<o.length;a++)n.edits[o[a]]=l;if(r.edits)for(o=Object.keys(r.edits),a=0;a<o.length;a++)i=o[a],i in n.edits&&(n.edits[i]=r.edits[i]);n._exportedPlot=r._exportedPlot}n.staticPlot&&(n.editable=!1,n.edits={},n.autosizable=!1,n.scrollZoom=!1,n.doubleClick=!1,n.showTips=!1,n.displayModeBar=!1),n.displayModeBar==="hover"&&!h0e&&(n.displayModeBar=!0),(n.setBackground==="transparent"||typeof n.setBackground!="function")&&(n.setBackground=rF),n._hasZeroHeight=n._hasZeroHeight||e.clientHeight===0,n._hasZeroWidth=n._hasZeroWidth||e.clientWidth===0;var u=n.scrollZoom,s=n._scrollZoom={};if(u===!0)s.cartesian=1,s.gl3d=1,s.geo=1,s.map=1;else if(typeof u=="string"){var f=u.split("+");for(a=0;a<f.length;a++)s[f[a]]=1}else u!==!1&&(s.gl3d=1,s.geo=1,s.map=1)}function T0e(e){if(e=cr.getGraphDiv(e),!cr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return tn.cleanData(e.data),tn.cleanLayout(e.layout),e.calcdata=void 0,tt._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function A0e(e,r,t,n){return e=cr.getGraphDiv(e),Lr.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),Lr.purge(e),tt._doPlot(e,r,t,n)}function B2(e,r){var t=r+1,n=[],a,o;for(a=0;a<e.length;a++)o=e[a],o<0?n.push(t+o):n.push(o);return n}function O2(e,r,t){var n,a;for(n=0;n<r.length;n++){if(a=r[n],a!==parseInt(a,10))throw new Error("all values in "+t+" must be integers");if(a>=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function nF(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),O2(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&O2(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function k0e(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n<r.length;n++)if(a=r[n],typeof a!="object"||Array.isArray(a)||a===null)throw new Error("all values in traces array must be non-array objects");if(typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&t.length!==r.length)throw new Error("if indices is specified, traces.length must equal indices.length")}function S0e(e,r,t,n){var a=cr.isPlainObject(n);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!cr.isPlainObject(r))throw new Error("update must be a key:value object");if(typeof t=="undefined")throw new Error("indices must be an integer or array of integers");O2(e,t,"indices");for(var o in r){if(!Array.isArray(r[o])||r[o].length!==t.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!==r[o].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object")}}function C0e(e,r,t,n){var a=cr.isPlainObject(n),o=[],i,l,u,s,f;Array.isArray(t)||(t=[t]),t=B2(t,e.data.length-1);for(var c in r)for(var p=0;p<t.length;p++){if(i=e.data[t[p]],u=At(i,c),l=u.get(),s=r[c][p],!cr.isArrayOrTypedArray(s))throw new Error("attribute: "+c+" index: "+p+" must be an array");if(!cr.isArrayOrTypedArray(l))throw new Error("cannot extend missing or non-array attribute: "+c);if(l.constructor!==s.constructor)throw new Error("cannot extend array with an array of a different type: "+c);f=a?n[c][p]:n,v0e(f)||(f=-1),o.push({prop:u,target:l,insert:s,maxp:Math.floor(f)})}return o}function aF(e,r,t,n,a){S0e(e,r,t,n);for(var o=C0e(e,r,t,n),i={},l={},u=0;u<o.length;u++){var s=o[u].prop,f=o[u].maxp,c=a(o[u].target,o[u].insert,f);s.set(c[0]),Array.isArray(i[s.astr])||(i[s.astr]=[]),i[s.astr].push(c[1]),Array.isArray(l[s.astr])||(l[s.astr]=[]),l[s.astr].push(o[u].target.length)}return{update:i,maxPoints:l}}function iF(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function oF(e,r,t,n){e=cr.getGraphDiv(e);function a(u,s,f){var c,p;if(cr.isTypedArray(u))if(f<0){var x=new u.constructor(0),g=iF(u,s);f<0?(c=g,p=x):(c=x,p=g)}else if(c=new u.constructor(f),p=new u.constructor(u.length+s.length-f),f===s.length)c.set(s),p.set(u);else if(f<s.length){var w=s.length-f;c.set(s.subarray(w)),p.set(u),p.set(s.subarray(0,w),u.length)}else{var M=f-s.length,m=u.length-M;c.set(u.subarray(m)),c.set(s,M),p.set(u.subarray(0,m))}else c=u.concat(s),p=f>=0&&f<c.length?c.splice(0,c.length-f):[];return[c,p]}var o=aF(e,r,t,n,a),i=tt.redraw(e),l=[e,o.update,t,o.maxPoints];return ca.add(e,tt.prependTraces,l,oF,arguments),i}function lF(e,r,t,n){e=cr.getGraphDiv(e);function a(u,s,f){var c,p;if(cr.isTypedArray(u))if(f<=0){var x=new u.constructor(0),g=iF(s,u);f<0?(c=g,p=x):(c=x,p=g)}else if(c=new u.constructor(f),p=new u.constructor(u.length+s.length-f),f===s.length)c.set(s),p.set(u);else if(f<s.length){var w=s.length-f;c.set(s.subarray(0,w)),p.set(s.subarray(w)),p.set(u,w)}else{var M=f-s.length;c.set(s),c.set(u.subarray(0,M),s.length),p.set(u.subarray(M))}else c=s.concat(u),p=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,p]}var o=aF(e,r,t,n,a),i=tt.redraw(e),l=[e,o.update,t,o.maxPoints];return ca.add(e,tt.extendTraces,l,lF,arguments),i}function sF(e,r,t){e=cr.getGraphDiv(e);var n=[],a=tt.deleteTraces,o=sF,i=[e,n],l=[e,r],u,s;for(k0e(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return cr.extendFlat({},f)}),tn.cleanData(r),u=0;u<r.length;u++)e.data.push(r[u]);for(u=0;u<r.length;u++)n.push(-r.length+u);if(typeof t=="undefined")return s=tt.redraw(e),ca.add(e,a,i,o,l),s;Array.isArray(t)||(t=[t]);try{nF(e,n,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return ca.startSequence(e),ca.add(e,a,i,o,l),s=tt.moveTraces(e,n,t),ca.stopSequence(e),s}function uF(e,r){e=cr.getGraphDiv(e);var t=[],n=tt.addTraces,a=uF,o=[e,t,r],i=[e,r],l,u;if(typeof r=="undefined")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),O2(e,r,"indices"),r=B2(r,e.data.length-1),r.sort(cr.sorterDes),l=0;l<r.length;l+=1)u=e.data.splice(r[l],1)[0],t.push(u);var s=tt.redraw(e);return ca.add(e,n,o,a,i),s}function nb(e,r,t){e=cr.getGraphDiv(e);var n=[],a=[],o=nb,i=nb,l=[e,t,r],u=[e,r,t],s;if(nF(e,r,t),r=Array.isArray(r)?r:[r],typeof t=="undefined")for(t=[],s=0;s<r.length;s++)t.push(-r.length+s);for(t=Array.isArray(t)?t:[t],r=B2(r,e.data.length-1),t=B2(t,e.data.length-1),s=0;s<e.data.length;s++)r.indexOf(s)===-1&&n.push(e.data[s]);for(s=0;s<r.length;s++)a.push({newIndex:t[s],trace:e.data[r[s]]});for(a.sort(function(c,p){return c.newIndex-p.newIndex}),s=0;s<a.length;s+=1)n.splice(a[s].newIndex,0,a[s].trace);e.data=n;var f=tt.redraw(e);return ca.add(e,o,l,i,u),f}function U2(e,r,t,n){e=cr.getGraphDiv(e),tn.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(cr.isPlainObject(r))a=cr.extendFlat({},r),n===void 0&&(n=t);else return cr.warn("Restyle fail.",r,t,n),Promise.reject();Object.keys(a).length&&(e.changed=!0);var o=tn.coerceTraceIndices(e,n),i=fF(e,a,o),l=i.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&tn.clearAxisTypes(e,o,{});var u=[];l.fullReplot?u.push(tt._doPlot):(u.push(Lr.previousPromises),Lr.supplyDefaults(e),l.markerSize&&(Lr.doCalcdata(e),X2(u)),l.style&&u.push(dt.doTraceStyle),l.colorbars&&u.push(dt.doColorBars),u.push(qc)),u.push(Lr.rehover,Lr.redrag,Lr.reselect),ca.add(e,U2,[e,i.undoit,i.traces],U2,[e,i.redoit,i.traces]);var s=cr.syncOrAsync(u,e);return(!s||!s.then)&&(s=Promise.resolve()),s.then(function(){return e.emit("plotly_restyle",i.eventData),e})}function No(e){return e===void 0?null:e}function N2(e,r){return r?function(t,n,a){var o=At(t,n),i=o.set;return o.set=function(l){var u=(a||"")+n;H2(u,o.get(),l,e),i(l)},o}:At}function H2(e,r,t,n){if(Array.isArray(r)||Array.isArray(t))for(var a=Array.isArray(r)?r:[],o=Array.isArray(t)?t:[],i=Math.max(a.length,o.length),l=0;l<i;l++)H2(e+"["+l+"]",a[l],o[l],n);else if(cr.isPlainObject(r)||cr.isPlainObject(t)){var u=cr.isPlainObject(r)?r:{},s=cr.isPlainObject(t)?t:{},f=cr.extendFlat({},u,s);for(var c in f)H2(e+"."+c,u[c],s[c],n)}else n[e]===void 0&&(n[e]=No(r))}function E0e(e,r,t){for(var n in t){var a=At(e,n);H2(n,a.get(),t[n],r)}}function fF(e,r,t){var n=e._fullLayout,a=e._fullData,o=e.data,i=n._guiEditing,l=N2(n._preGUI,i),u=cr.extendDeepAll({},r),s,f=Dl.traceFlags(),c={},p={},x;function g(){return t.map(function(){})}function w(Q){var re=oa.id2name(Q);x.indexOf(re)===-1&&x.push(re)}function M(Q){return"LAYOUT"+Q+".autorange"}function m(Q){return"LAYOUT"+Q+".range"}function k(Q,re,ue){if(Array.isArray(Q)){Q.forEach(function(Te){k(Te,re,ue)});return}if(!(Q in r||tn.hasParent(r,Q))){var ee;if(Q.slice(0,6)==="LAYOUT")ee=l(e.layout,Q.replace("LAYOUT",""));else{var ae=t[ue],ce=n._tracePreGUI[a[ae].uid];ee=N2(ce,i)(o[ae],Q)}Q in p||(p[Q]=g()),p[Q][ue]===void 0&&(p[Q][ue]=No(ee.get())),re!==void 0&&ee.set(re)}}function S(Q){return function(re){return a[re][Q]}}function b(Q){return function(re,ue){return re===!1?a[t[ue]][Q]:null}}for(var T in r){if(tn.hasParent(r,T))throw new Error("cannot set "+T+" and a parent attribute simultaneously");var h=r[T],_,y,v,A,d,D;if((T==="autobinx"||T==="autobiny")&&(T=T.charAt(T.length-1)+"bins",Array.isArray(h)?h=h.map(b(T)):h===!1?h=t.map(S(T)):h=null),c[T]=h,T.slice(0,6)==="LAYOUT"){v=l(e.layout,T.replace("LAYOUT","")),p[T]=[No(v.get())],v.set(Array.isArray(h)?h[0]:h),f.calc=!0;continue}for(p[T]=g(),s=0;s<t.length;s++){_=o[t[s]],y=a[t[s]];var E=n._tracePreGUI[y.uid];if(v=N2(E,i)(_,T),A=v.get(),d=Array.isArray(h)?h[s%h.length]:h,d!==void 0){var R=v.parts[v.parts.length-1],z=T.slice(0,T.length-R.length-1),I=z?z+".":"",P=z?At(y,z).get():y;if(D=Y2.getTraceValObject(y,v.parts),D&&D.impliedEdits&&d!==null)for(var L in D.impliedEdits)k(cr.relativeAttr(T,L),D.impliedEdits[L],s);else if((R==="thicknessmode"||R==="lenmode")&&A!==d&&(d==="fraction"||d==="pixels")&&P){var F=n._size,B=P.orient,O=B==="top"||B==="bottom";if(R==="thicknessmode"){var V=O?F.h:F.w;k(I+"thickness",P.thickness*(d==="fraction"?1/V:V),s)}else{var K=O?F.w:F.h;k(I+"len",P.len*(d==="fraction"?1/K:K),s)}}else if(T==="type"&&(d==="pie"!=(A==="pie")||d==="funnelarea"!=(A==="funnelarea"))){var j="x",G="y";(d==="bar"||A==="bar")&&_.orientation==="h"&&(j="y",G="x"),cr.swapAttrs(_,["?"],"labels",j),cr.swapAttrs(_,["d?","?0"],"label",j),cr.swapAttrs(_,["?"],"values",G),A==="pie"||A==="funnelarea"?(At(_,"marker.color").set(At(_,"marker.colors").get()),n._pielayer.selectAll("g.trace").remove()):ii.traceIs(_,"cartesian")&&At(_,"marker.colors").set(At(_,"marker.color").get())}p[T][s]=No(A);var q=["swapxy","swapxyaxes","orientation","orientationaxes"];if(q.indexOf(T)!==-1){if(T==="orientation"){v.set(d);var J=_.x&&!_.y?"h":"v";if((v.get()||J)===y.orientation)continue}else T==="orientationaxes"&&(_.orientation={v:"h",h:"v"}[y.orientation]);tn.swapXYData(_),f.calc=f.clearAxisTypes=!0}else Lr.dataArrayContainers.indexOf(v.parts[0])!==-1?(tn.manageArrayContainers(v,d,p),f.calc=!0):(D?D.arrayOk&&!ii.traceIs(y,"regl")&&(cr.isArrayOrTypedArray(d)||cr.isArrayOrTypedArray(A))?f.calc=!0:Dl.update(f,D):f.calc=!0,v.set(d))}}if(["swapxyaxes","orientationaxes"].indexOf(T)!==-1&&oa.swap(e,t),T==="orientationaxes"){var te=At(e.layout,"hovermode"),Z=te.get();Z==="x"?te.set("y"):Z==="y"?te.set("x"):Z==="x unified"?te.set("y unified"):Z==="y unified"&&te.set("x unified")}if(["orientation","type"].indexOf(T)!==-1){for(x=[],s=0;s<t.length;s++){var ie=o[t[s]];ii.traceIs(ie,"cartesian")&&(w(ie.xaxis||"x"),w(ie.yaxis||"y"))}k(x.map(M),!0,0),k(x.map(m),[0,1],0)}}return(f.calc||f.plot)&&(f.fullReplot=!0),{flags:f,undoit:p,redoit:c,traces:t,eventData:cr.extendDeepNoArrays([],[u,t])}}function Nc(e,r,t){e=cr.getGraphDiv(e),tn.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(cr.isPlainObject(r))n=cr.extendFlat({},r);else return cr.warn("Relayout fail.",r,t),Promise.reject();Object.keys(n).length&&(e.changed=!0);var a=dF(e,n),o=a.flags;o.calc&&(e.calcdata=void 0);var i=[Lr.previousPromises];o.layoutReplot?i.push(dt.layoutReplot):Object.keys(n).length&&(cF(e,o,a)||Lr.supplyDefaults(e),o.legend&&i.push(dt.doLegend),o.layoutstyle&&i.push(dt.layoutStyles),o.axrange&&X2(i,a.rangesAltered),o.ticks&&i.push(dt.doTicksRelayout),o.modebar&&i.push(dt.doModeBar),o.camera&&i.push(dt.doCamera),o.colorbars&&i.push(dt.doColorBars),i.push(qc)),i.push(Lr.rehover,Lr.redrag,Lr.reselect),ca.add(e,Nc,[e,a.undoit],Nc,[e,a.redoit]);var l=cr.syncOrAsync(i,e);return(!l||!l.then)&&(l=Promise.resolve(e)),l.then(function(){return e.emit("plotly_relayout",a.eventData),e})}function cF(e,r,t){var n=e._fullLayout;if(!r.axrange)return!1;for(var a in r)if(a!=="axrange"&&r[a])return!1;var o,i,l=function(x,g){return cr.coerce(o,i,p0e,x,g)},u={};for(var s in t.rangesAltered){var f=oa.id2name(s);if(o=e.layout[f],i=n[f],d0e(o,i,l,u),i._matchGroup){for(var c in i._matchGroup)if(c!==s){var p=n[oa.id2name(c)];p.autorange=i.autorange,p.range=i.range.slice(),p._input.range=i.range.slice()}}}return!0}function X2(e,r){var t=r?function(n){var a=[],o=!0;for(var i in r){var l=oa.getFromId(n,i);if(a.push(i),(l.ticklabelposition||"").indexOf("inside")!==-1&&l._anchorAxis&&a.push(l._anchorAxis._id),l._matchGroup)for(var u in l._matchGroup)r[u]||a.push(u)}return oa.draw(n,a,{skipTitle:o})}:function(n){return oa.draw(n,"redraw")};e.push(b0e,dt.doAutoRangeAndConstraints,t,dt.drawData,dt.finalDraw)}var vF=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,hF=/^[xyz]axis[0-9]*\.autorange$/,L0e=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function dF(e,r){var t=e.layout,n=e._fullLayout,a=n._guiEditing,o=N2(n._preGUI,a),i=Object.keys(r),l=oa.list(e),u=cr.extendDeepAll({},r),s={},f,c,p;for(i=Object.keys(r),c=0;c<i.length;c++)if(i[c].indexOf("allaxes")===0){for(p=0;p<l.length;p++){var x=l[p]._id.slice(1),g=x.indexOf("scene")!==-1?x+".":"",w=i[c].replace("allaxes",g+l[p]._name);r[w]||(r[w]=r[i[c]])}delete r[i[c]]}var M=Dl.layoutFlags(),m={},k={};function S(Te,ke){if(Array.isArray(Te)){Te.forEach(function(ge){S(ge,ke)});return}if(!(Te in r||tn.hasParent(r,Te))){var Se=o(t,Te);Te in k||(k[Te]=No(Se.get())),ke!==void 0&&Se.set(ke)}}var b={},T;function h(Te){var ke=oa.name2id(Te.split(".")[0]);return b[ke]=1,ke}for(var _ in r){if(tn.hasParent(r,_))throw new Error("cannot set "+_+" and a parent attribute simultaneously");for(var y=o(t,_),v=r[_],A=y.parts.length,d=A-1;d>0&&typeof y.parts[d]!="string";)d--;var D=y.parts[d],E=y.parts[d-1]+"."+D,R=y.parts.slice(0,d).join("."),z=At(e.layout,R).get(),I=At(n,R).get(),P=y.get();if(v!==void 0){m[_]=v,k[_]=D==="reverse"?v:No(P);var L=Y2.getLayoutValObject(n,y.parts);if(L&&L.impliedEdits&&v!==null)for(var F in L.impliedEdits)S(cr.relativeAttr(_,F),L.impliedEdits[F]);if(["width","height"].indexOf(_)!==-1)if(v){S("autosize",null);var B=_==="height"?"width":"height";S(B,n[B])}else n[_]=e._initialAutoSize[_];else if(_==="autosize")S("width",v?null:n.width),S("height",v?null:n.height);else if(E.match(vF))h(E),At(n,R+"._inputRange").set(null);else if(E.match(hF)){h(E),At(n,R+"._inputRange").set(null);var O=At(n,R).get();O._inputDomain&&(O._input.domain=O._inputDomain.slice())}else E.match(L0e)&&At(n,R+"._inputDomain").set(null);if(D==="type"){T=z;var V=I.type==="linear"&&v==="log",K=I.type==="log"&&v==="linear";if(V||K){if(!T||!T.range)S(R+".autorange",!0);else if(I.autorange)V&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var j=T.range[0],G=T.range[1];V?(j<=0&&G<=0&&S(R+".autorange",!0),j<=0?j=G/1e6:G<=0&&(G=j/1e6),S(R+".range[0]",Math.log(j)/Math.LN10),S(R+".range[1]",Math.log(G)/Math.LN10)):(S(R+".range[0]",Math.pow(10,j)),S(R+".range[1]",Math.pow(10,G)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[y.parts[0]]&&y.parts[1]==="radialaxis"&&delete n[y.parts[0]]._subplot.viewInitial["radialaxis.range"],ii.getComponentMethod("annotations","convertCoords")(e,I,v,S),ii.getComponentMethod("images","convertCoords")(e,I,v,S)}else S(R+".autorange",!0),S(R+".range",null);At(n,R+"._inputRange").set(null)}else if(D.match(x0e)){var q=At(n,_).get(),J=(v||{}).type;(!J||J==="-")&&(J="linear"),ii.getComponentMethod("annotations","convertCoords")(e,q,J,S),ii.getComponentMethod("images","convertCoords")(e,q,J,S)}var te=z2.containerArrayMatch(_);if(te){f=te.array,c=te.index;var Z=te.property,ie=L||{editType:"calc"};c!==""&&Z===""&&(z2.isAddVal(v)?k[_]=null:z2.isRemoveVal(v)?k[_]=(At(t,f).get()||[])[c]:cr.warn("unrecognized full object value",r)),Dl.update(M,ie),s[f]||(s[f]={});var Q=s[f][c];Q||(Q=s[f][c]={}),Q[Z]=v,delete r[_]}else D==="reverse"?(z.range?z.range.reverse():(S(R+".autorange",!0),z.range=[1,0]),I.autorange?M.calc=!0:M.plot=!0):(_==="dragmode"&&(v===!1&&P!==!1||v!==!1&&P===!1)||n._has("scatter-like")&&n._has("regl")&&_==="dragmode"&&(v==="lasso"||v==="select")&&!(P==="lasso"||P==="select")?M.plot=!0:L?Dl.update(M,L):M.calc=!0,y.set(v))}}for(f in s){var re=z2.applyContainerArrayChanges(e,o(t,f),s[f],M,o);re||(M.plot=!0)}for(var ue in b){T=oa.getFromId(e,ue);var ee=T&&T._constraintGroup;if(ee){M.calc=!0;for(var ae in ee)b[ae]||(oa.getFromId(e,ae)._constraintShrinkable=!0)}}(pF(e)||r.height||r.width)&&(M.plot=!0);var ce=n.shapes;for(c=0;c<ce.length;c++)if(ce[c].showlegend){M.calc=!0;break}return(M.plot||M.calc)&&(M.layoutReplot=!0),{flags:M,rangesAltered:b,undoit:k,redoit:m,eventData:u}}function pF(e){var r=e._fullLayout,t=r.width,n=r.height;return e.layout.autosize&&Lr.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==n}function V2(e,r,t,n){e=cr.getGraphDiv(e),tn.clearPromiseQueue(e),cr.isPlainObject(r)||(r={}),cr.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var a=tn.coerceTraceIndices(e,n),o=fF(e,cr.extendFlat({},r),a),i=o.flags,l=dF(e,cr.extendFlat({},t)),u=l.flags;(i.calc||u.calc)&&(e.calcdata=void 0),i.clearAxisTypes&&tn.clearAxisTypes(e,a,t);var s=[];u.layoutReplot?s.push(dt.layoutReplot):i.fullReplot?s.push(tt._doPlot):(s.push(Lr.previousPromises),cF(e,u,l)||Lr.supplyDefaults(e),i.style&&s.push(dt.doTraceStyle),(i.colorbars||u.colorbars)&&s.push(dt.doColorBars),u.legend&&s.push(dt.doLegend),u.layoutstyle&&s.push(dt.layoutStyles),u.axrange&&X2(s,l.rangesAltered),u.ticks&&s.push(dt.doTicksRelayout),u.modebar&&s.push(dt.doModeBar),u.camera&&s.push(dt.doCamera),s.push(qc)),s.push(Lr.rehover,Lr.redrag,Lr.reselect),ca.add(e,V2,[e,o.undoit,l.undoit,o.traces],V2,[e,o.redoit,l.redoit,o.traces]);var f=cr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve(e)),f.then(function(){return e.emit("plotly_update",{data:o.eventData,layout:l.eventData}),e})}function ab(e){return function(t){t._fullLayout._guiEditing=!0;var n=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,n}}var D0e=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(map\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^selections/,attr:"selectionrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],R0e=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/^visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/^name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function KR(e,r){for(var t=0;t<r.length;t++){var n=r[t],a=e.match(n.pattern);if(a){var o=a[1]||"";return{head:o,tail:e.slice(o.length+1),attr:n.attr}}}}function QR(e,r){var t=At(r,e).get();if(t!==void 0)return t;var n=e.split(".");for(n.pop();n.length>1;)if(n.pop(),t=At(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function F0e(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function P0e(e,r,t){for(var n=0;n<r.length;n++)if(r[n].uid===e)return n;return!r[t]||r[t].uid?-1:t}function jR(e,r){var t=cr.isPlainObject(e),n=Array.isArray(e);return t||n?(t&&cr.isPlainObject(r)||n&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function I0e(e,r,t,n){var a=n._preGUI,o,i,l,u,s,f,c,p,x,g,w=[],M={},m={};for(o in a){if(s=KR(o,D0e),s){if(x=s.head,g=s.tail,i=s.attr||x+".uirevision",l=At(n,i).get(),u=l&&QR(i,r),u&&u===l){if(f=a[o],f===null&&(f=void 0),c=At(r,o),p=c.get(),jR(p,f)){p===void 0&&g==="autorange"&&w.push(x),c.set(No(At(n,o).get()));continue}else if(g==="autorange"||g.slice(0,6)==="range["){var k=a[x+".range[0]"],S=a[x+".range[1]"],b=a[x+".autorange"];if(b||b===null&&k===null&&S===null){if(!(x in M)){var T=At(r,x).get();M[x]=T&&(T.autorange||T.autorange!==!1&&(!T.range||T.range.length!==2))}if(M[x]){c.set(No(At(n,o).get()));continue}}}}}else cr.warn("unrecognized GUI edit: "+o);delete a[o],s&&s.tail.slice(0,6)==="range["&&(m[s.head]=1)}for(var h=0;h<w.length;h++){var _=w[h];if(m[_]){var y=At(r,_).get();y&&delete y.autorange}}var v=n._tracePreGUI;for(var A in v){var d=v[A],D=null,E;for(o in d){if(!D){var R=F0e(A,t);if(R<0){delete v[A];break}E=t[R];var z=P0e(A,e,E.index);if(z<0){delete v[A];break}D=e[z]}if(s=KR(o,R0e),s){if(s.attr?(l=At(n,s.attr).get(),u=l&&QR(s.attr,r)):(l=E.uirevision,u=D.uirevision,u===void 0&&(u=r.uirevision)),u&&u===l&&(f=d[o],f===null&&(f=void 0),c=At(D,o),p=c.get(),jR(p,f))){c.set(No(At(E,o).get()));continue}}else cr.warn("unrecognized GUI edit: "+o+" in trace uid "+A);delete d[o]}}}function z0e(e,r,t,n){var a,o;function i(){return tt.addFrames(e,a)}e=cr.getGraphDiv(e),tn.clearPromiseQueue(e);var l=e._fullData,u=e._fullLayout;if(!cr.isPlotDiv(e)||!l||!u)o=tt.newPlot(e,r,t,n);else{if(cr.isPlainObject(r)){var s=r;r=s.data,t=s.layout,n=s.config,a=s.frames}var f=!1;if(n){let E=cr.extendDeepAll({},e._context);e._context=void 0,tF(e,n),f=!tn.collectionsAreEqual(E,e._context)}if(f){let E=e._ev.eventNames().map(R=>[R,e._ev.listeners(R)]);o=tt.newPlot(e,r,t,n).then(()=>{for(let[R,z]of E)z.forEach(I=>e.on(R,I));return tt.react(e,r,t,n)})}else{e.data=r||[],tn.cleanData(e.data),e.layout=t||{},tn.cleanLayout(e.layout),I0e(e.data,e.layout,l,u),Lr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,p=e._fullLayout,x=p.datarevision===void 0,g=p.transition,w=q0e(e,u,p,x,g),M=w.newDataRevision,m=N0e(e,l,c,x,g,M);if(pF(e)&&(w.layoutReplot=!0),m.calc||w.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(p),S=0;S<k.length;S++){var b=k[S],T=b.substring(0,5);if(T==="xaxis"||T==="yaxis"){var h=p[b]._emptyCategories;h&&h()}}}else Lr.supplyDefaultsUpdateCalc(e.calcdata,c);var _=[];if(a&&(e._transitionData={},Lr.createTransitionData(e),_.push(i)),p.transition&&(m.anim||w.anim))w.ticks&&_.push(dt.doTicksRelayout),Lr.doCalcdata(e),dt.doAutoRangeAndConstraints(e),_.push(function(){return Lr.transitionFromReact(e,m,w,u)});else if(m.fullReplot||w.layoutReplot)e._fullLayout._skipDefaults=!0,_.push(tt._doPlot);else{for(var y in w.arrays){var v=w.arrays[y];if(v.length){var A=ii.getComponentMethod(y,"drawOne");if(A!==cr.noop)for(var d=0;d<v.length;d++)A(e,v[d]);else{var D=ii.getComponentMethod(y,"draw");if(D===cr.noop)throw new Error("cannot draw components: "+y);D(e)}}}_.push(Lr.previousPromises),m.style&&_.push(dt.doTraceStyle),(m.colorbars||w.colorbars)&&_.push(dt.doColorBars),w.legend&&_.push(dt.doLegend),w.layoutstyle&&_.push(dt.layoutStyles),w.axrange&&X2(_),w.ticks&&_.push(dt.doTicksRelayout),w.modebar&&_.push(dt.doModeBar),w.camera&&_.push(dt.doCamera),_.push(qc)}_.push(Lr.rehover,Lr.redrag,Lr.reselect),o=cr.syncOrAsync(_,e),(!o||!o.then)&&(o=Promise.resolve(e))}}return o.then(()=>(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function N0e(e,r,t,n,a,o){var i=r.length===t.length;if(!a&&!i)return{fullReplot:!0,calc:!0};var l=Dl.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var u,s;function f(x){var g=Y2.getTraceValObject(s,x);return!s._module.animatable&&g.anim&&(g.anim=!1),g}var c={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:o,gd:e},p={};for(u=0;u<r.length;u++)if(t[u]){if(s=t[u],p[s.uid])continue;p[s.uid]=1,G2(r[u],s,[],c)}return(l.calc||l.plot)&&(l.fullReplot=!0),a&&l.nChanges&&l.nChangesAnim&&(l.anim=l.nChanges===l.nChangesAnim&&i?"all":"some"),l}function q0e(e,r,t,n,a){var o=Dl.layoutFlags();o.arrays={},o.rangesAltered={},o.nChanges=0,o.nChangesAnim=0;function i(p){return Y2.getLayoutValObject(t,p)}for(var l in t)if(!(!l.startsWith("xaxis")&&!l.startsWith("yaxis"))&&r[l]){var u=t[l].domain,s=r[l].domain,f=r[l]._inputDomain;r[l]._inputDomain&&(u[0]===f[0]&&u[1]===f[1]?t[l].domain=r[l].domain:(u[0]!==s[0]||u[1]!==s[1])&&(t[l]._inputDomain=null))}var c={getValObject:i,flags:o,immutable:n,transition:a,gd:e};return G2(r,t,[],c),(o.plot||o.calc)&&(o.layoutReplot=!0),a&&o.nChanges&&o.nChangesAnim&&(o.anim=o.nChanges===o.nChangesAnim?"all":"some"),o}function G2(e,r,t,n){var a,o,i,l=n.getValObject,u=n.flags,s=n.immutable,f=n.inArray,c=n.arrayIndex;function p(){var R=a.editType;if(f&&R.indexOf("arraydraw")!==-1){cr.pushUnique(u.arrays[f],c);return}Dl.update(u,a),R!=="none"&&u.nChanges++,n.transition&&a.anim&&u.nChangesAnim++,(vF.test(i)||hF.test(i))&&(u.rangesAltered[t[0]]=1),o==="datarevision"&&(u.newDataRevision=1)}function x(R){return R.valType==="data_array"||R.arrayOk}for(o in e){if(u.calc&&!n.transition)return;var g=e[o],w=r[o],M=t.concat(o);if(i=M.join("."),!(o.charAt(0)==="_"||typeof g=="function"||g===w)){if((o==="tick0"||o==="dtick")&&t[0]!=="geo"){var m=r.tickmode;if(m==="auto"||m==="array"||!m)continue}if(!(o==="range"&&r.autorange)&&!((o==="zmin"||o==="zmax")&&r.type==="contourcarpet")&&(a=l(M),!!a&&!(a._compareAsJSON&&JSON.stringify(g)===JSON.stringify(w)))){var k=a.valType,S,b=x(a),T=Array.isArray(g),h=Array.isArray(w);if(T&&h){var _="_input_"+o,y=e[_],v=r[_];if(Array.isArray(y)&&y===v)continue}if(w===void 0)b&&T?u.calc=!0:p();else if(a._isLinkedToArray){var A=[],d=!1;f||(u.arrays[o]=A);var D=Math.min(g.length,w.length),E=Math.max(g.length,w.length);if(D!==E)if(a.editType==="arraydraw")d=!0;else{p();continue}for(S=0;S<D;S++)G2(g[S],w[S],M.concat(S),cr.extendFlat({inArray:o,arrayIndex:S},n));if(d)for(S=D;S<E;S++)A.push(S)}else!k&&cr.isPlainObject(g)?G2(g,w,M,n):b?T&&h?(s&&(u.calc=!0),(s||n.newDataRevision)&&p()):T!==h?u.calc=!0:p():T&&h?(g.length!==w.length||String(g)!==String(w))&&p():p()}}}for(o in r)if(!(o in e||o.charAt(0)==="_"||typeof r[o]=="function"))if(a=l(t.concat(o)),x(a)&&Array.isArray(r[o])){u.calc=!0;return}else p()}function B0e(e,r,t){if(e=cr.getGraphDiv(e),!cr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var n=e._transitionData;n._frameQueue||(n._frameQueue=[]),t=Lr.supplyAnimationDefaults(t);var a=t.transition,o=t.frame;n._frameWaitingCnt===void 0&&(n._frameWaitingCnt=0);function i(s){return Array.isArray(a)?s>=a.length?a[0]:a[s]:a}function l(s){return Array.isArray(o)?s>=o.length?o[0]:o[s]:o}function u(s,f){var c=0;return function(){if(s&&++c===f)return s()}}return new Promise(function(s,f){function c(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var D=n._frameQueue.pop();D.onInterrupt&&D.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function p(D){if(D.length!==0){for(var E=0;E<D.length;E++){var R;D[E].type==="byname"?R=Lr.computeFrame(e,D[E].name):R=D[E].data;var z=l(E),I=i(E);I.duration=Math.min(I.duration,z.duration);var P={frame:R,name:D[E].name,frameOpts:z,transitionOpts:I};E===D.length-1&&(P.onComplete=u(s,2),P.onInterrupt=f),n._frameQueue.push(P)}t.mode==="immediate"&&(n._lastFrameAt=-1/0),n._animationRaf||w()}}function x(){e.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function g(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var D=n._currentFrame=n._frameQueue.shift();if(D){var E=D.name?D.name.toString():null;e._fullLayout._currentFrame=E,n._lastFrameAt=Date.now(),n._timeToNext=D.frameOpts.duration,Lr.transition(e,D.frame.data,D.frame.layout,tn.coerceTraceIndices(e,D.frame.traces),D.frameOpts,D.transitionOpts).then(function(){D.onComplete&&D.onComplete()}),e.emit("plotly_animatingframe",{name:E,frame:D.frame,animation:{frame:D.frameOpts,transition:D.transitionOpts}})}else x()}function w(){e.emit("plotly_animating"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var D=function(){n._animationRaf=window.requestAnimationFrame(D),Date.now()-n._lastFrameAt>n._timeToNext&&g()};D()}var M=0;function m(D){return Array.isArray(a)?M>=a.length?D.transitionOpts=a[M]:D.transitionOpts=a[0]:D.transitionOpts=a,M++,D}var k,S,b=[],T=r==null,h=Array.isArray(r),_=!T&&!h&&cr.isPlainObject(r);if(_)b.push({type:"object",data:m(cr.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(k=0;k<n._frames.length;k++)S=n._frames[k],S&&(T||String(S.group)===String(r))&&b.push({type:"byname",name:String(S.name),data:m({name:S.name})});else if(h)for(k=0;k<r.length;k++){var y=r[k];["number","string"].indexOf(typeof y)!==-1?(y=String(y),b.push({type:"byname",name:y,data:m({name:y})})):cr.isPlainObject(y)&&b.push({type:"object",data:m(cr.extendFlat({},y))})}for(k=0;k<b.length;k++)if(S=b[k],S.type==="byname"&&!n._frameHash[S.data.name]){cr.warn('animate failure: frame not found: "'+S.data.name+'"'),f();return}["next","immediate"].indexOf(t.mode)!==-1&&c(),t.direction==="reverse"&&b.reverse();var v=e._fullLayout._currentFrame;if(v&&t.fromcurrent){var A=-1;for(k=0;k<b.length;k++)if(S=b[k],S.type==="byname"&&S.name===v){A=k;break}if(A>0&&A<b.length-1){var d=[];for(k=0;k<b.length;k++)S=b[k],(b[k].type!=="byname"||k>A)&&d.push(S);b=d}}b.length>0?p(b):(e.emit("plotly_animated"),s())})}function O0e(e,r,t){if(e=cr.getGraphDiv(e),r==null)return Promise.resolve();if(!cr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,o,i,l=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var s=l.length+r.length*2,f=[],c={};for(n=r.length-1;n>=0;n--)if(cr.isPlainObject(r[n])){var p=r[n].name,x=(u[p]||c[p]||{}).name,g=r[n].name,w=u[x]||c[x];x&&g&&typeof g=="number"&&w&&rb<$R&&(rb++,cr.warn('addFrames: overwriting frame "'+(u[x]||c[x]).name+'" with a frame whose name of type "number" also equates to "'+x+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),rb===$R&&cr.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.")),c[p]={name:p},f.push({frame:Lr.supplyFrameDefaults(r[n]),index:t&&t[n]!==void 0&&t[n]!==null?t[n]:s+n})}f.sort(function(_,y){return _.index>y.index?-1:_.index<y.index?1:0});var M=[],m=[],k=l.length;for(n=f.length-1;n>=0;n--){if(a=f[n].frame,typeof a.name=="number"&&cr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(o=0;o<l.length&&(l[o]||{}).name!==a.name;o++);M.push({type:"replace",index:o,value:a}),m.unshift({type:"replace",index:o,value:l[o]})}else i=Math.max(0,Math.min(f[n].index,k)),M.push({type:"insert",index:i,value:a}),m.unshift({type:"delete",index:i}),k++}var S=Lr.modifyFrames,b=Lr.modifyFrames,T=[e,m],h=[e,M];return ca&&ca.add(e,S,T,b,h),Lr.modifyFrames(e,M)}function U0e(e,r){if(e=cr.getGraphDiv(e),!cr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var t,n,a=e._transitionData._frames,o=[],i=[];if(!r)for(r=[],t=0;t<a.length;t++)r.push(t);for(r=r.slice(),r.sort(),t=r.length-1;t>=0;t--)n=r[t],o.push({type:"delete",index:n}),i.unshift({type:"insert",index:n,value:a[n]});var l=Lr.modifyFrames,u=Lr.modifyFrames,s=[e,i],f=[e,o];return ca&&ca.add(e,l,s,u,f),Lr.modifyFrames(e,o)}function H0e(e){e=cr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Lr.cleanPlot([],{},t,r),Lr.purge(e),tb.purge(e),r._container&&r._container.remove(),delete e._context,e}function V0e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!cr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=cr.inverseTransformMatrix(cr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function G0e(e){var r=q2.select(e),t=e._fullLayout;if(t._calcInverseTransform=V0e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};q2.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=cr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(m0e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var o=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=o.append("g").classed("imagelayer",!0),t._shapeUpperLayer=o.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}tt.animate=B0e;tt.addFrames=O0e;tt.deleteFrames=U0e;tt.addTraces=sF;tt.deleteTraces=uF;tt.extendTraces=oF;tt.moveTraces=nb;tt.prependTraces=lF;tt.newPlot=A0e;tt._doPlot=_0e;tt.purge=H0e;tt.react=z0e;tt.redraw=T0e;tt.relayout=Nc;tt.restyle=U2;tt.setPlotConfig=w0e;tt.update=V2;tt._guiRelayout=ab(Nc);tt._guiRestyle=ab(U2);tt._guiUpdate=ab(V2);tt._storeDirectGUIEdit=E0e});var Us=xe(oi=>{"use strict";var Y0e=Cr();oi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};oi.getRedrawFunc=function(e){return function(){Y0e.getComponentMethod("colorbar","draw")(e)}};oi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};oi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var gF=window.URL||window.webkitURL;oi.createObjectURL=function(e){return gF.createObjectURL(e)};oi.revokeObjectURL=function(e){return gF.revokeObjectURL(e)};oi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=X0e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};oi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};oi.getPlotTitle=function(e){var n,a,o,i;var r=e._fullLayout;if(r){var t=(n=r.title)==null?void 0:n.text;return t===((a=r._dfltTitle)==null?void 0:a.plot)?void 0:t}return(i=(o=e.layout)==null?void 0:o.title)==null?void 0:i.text};oi.getPlotSubtitle=function(e){var n,a,o,i,l,u;var r=e._fullLayout;if(r){var t=(a=(n=r.title)==null?void 0:n.subtitle)==null?void 0:a.text;return t===((o=r._dfltTitle)==null?void 0:o.subtitle)?void 0:t}return(u=(l=(i=e.layout)==null?void 0:i.title)==null?void 0:l.subtitle)==null?void 0:u.text};function X0e(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a<r;a++)n[a]=e.charCodeAt(a);return t}oi.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var W2=xe((exe,yF)=>{"use strict";var lb=nt(),Qbe=rr(),W0e=Mt(),Z0e=Xr(),jbe=hl(),ob=/"/g,Hs="TOBESTRIPPED",J0e=new RegExp(`("${Hs})|(${Hs}")|(&quot;${Hs})|(${Hs}&quot;)`,"g"),$0e=["&amp;","&#38;","&#x26;","&quot;","&#34;","&#x22;","&apos;","&#39;","&#x27;"],K0e=["&lt;","&#60;","&#x3c;"],Q0e=["&gt;","&#62;","&#x3e;"];function j0e(e){let r=lb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,n=>{let a=n.toLowerCase();return $0e.includes(a)?n:K0e.includes(a)?"&#60;":Q0e.includes(a)?"&#62;":n.includes("<")||n.includes(">")?"":r.html(n).text()});return r.remove(),t}function eue(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")}yF.exports=function(r,t,n){var a=r._fullLayout,o=a._paper,i=a._toppaper,l=a.width,u=a.height,s;o.insert("rect",":first-child").call(W0e.setRect,0,0,l,u).call(Z0e.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s<f.length;s++){var c=f[s];c.toSVG&&c.toSVG(r)}if(i){var p=i.node().childNodes,x=Array.prototype.slice.call(p);for(s=0;s<x.length;s++){var g=x[s];g.childNodes.length&&o.node().appendChild(g)}}a._draggers&&a._draggers.remove(),o.node().style.background="",o.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var M=lb.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){M.remove();return}else M.style({visibility:null,display:null});var m=this.style.fontFamily;m&&m.indexOf('"')!==-1&&M.style("font-family",m.replace(ob,Hs));var k=this.style.fontWeight;k&&(k==="normal"||k==="400")&&M.style("font-weight",void 0);var S=this.style.fontStyle;S&&S==="normal"&&M.style("font-style",void 0);var b=this.style.fontVariant;b&&b==="normal"&&M.style("font-variant",void 0)}),o.selectAll(".gradient_filled,.pattern_filled").each(function(){var M=lb.select(this),m=this.style.fill;m&&m.indexOf("url(")!==-1&&M.style("fill",m.replace(ob,Hs));var k=this.style.stroke;k&&k.indexOf("url(")!==-1&&M.style("stroke",k.replace(ob,Hs))}),(t==="pdf"||t==="eps")&&o.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),t==="svg"&&n&&(o.attr("width",n*l),o.attr("height",n*u),o.attr("viewBox","0 0 "+l+" "+u));var w=new window.XMLSerializer().serializeToString(o.node());return w=j0e(w),w=eue(w),w=w.replace(J0e,"'"),w}});var Z2=xe((rxe,mF)=>{"use strict";var rue=rr(),tue=Xh().EventEmitter,Bc=Us();function nue(e){var r=e.emitter||new tue,t=new Promise(function(n,a){var o=window.Image,i=e.svg,l=e.format||"png",u=e.canvas,s=e.scale||1,f=e.width||300,c=e.height||150,p=s*f,x=s*c,g=u.getContext("2d",{willReadFrequently:!0}),w=new o,M,m;l==="svg"||rue.isSafari()?m=Bc.encodeSVG(i):(M=Bc.createBlob(i,"svg"),m=Bc.createObjectURL(M)),u.width=p,u.height=x,w.onload=function(){var k;switch(M=null,Bc.revokeObjectURL(m),l!=="svg"&&g.drawImage(w,0,0,p,x),l){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=m;break;default:var S="Image format is not jpeg, png, svg or webp.";if(a(new Error(S)),!e.promise)return r.emit("error",S)}n(k),e.promise||r.emit("success",k)},w.onerror=function(k){if(M=null,Bc.revokeObjectURL(m),a(k),!e.promise)return r.emit("error",k)},w.src=m});return e.promise?t:r}mF.exports=nue});var ub=xe((txe,_F)=>{"use strict";var bF=it(),xF=ib(),aue=bn(),po=rr(),Oc=Us(),iue=W2(),oue=Z2(),lue=lf().version,sb={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function sue(e,r){r=r||{};var t,n,a,o;po.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=po.getGraphDiv(e),t=po.extendDeep([],e.data),n=po.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(h){return!(h in r)||po.validate(r[h],sb[h])}if(!i("width")&&r.width!==null||!i("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!i("format"))throw new Error("Export format is not "+po.join2(sb.format.values,", "," or ")+".");var l={};function u(h,_){return po.coerce(r,l,sb,h,_)}var s=u("format"),f=u("width"),c=u("height"),p=u("scale"),x=u("setBackground"),g=u("imageDataOnly"),w=document.createElement("div");w.style.position="absolute",w.style.left="-5000px",document.body.appendChild(w);var M=po.extendFlat({},n);f?M.width=f:r.width===null&&bF(o.width)&&(M.width=o.width),c?M.height=c:r.height===null&&bF(o.height)&&(M.height=o.height);var m=po.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:x}),k=Oc.getRedrawFunc(w);function S(){return new Promise(function(h){setTimeout(h,Oc.getDelay(w._fullLayout))})}function b(){return new Promise(function(h,_){var y=iue(w,s,p),v=w._fullLayout.width,A=w._fullLayout.height;function d(){xF.purge(w),document.body.removeChild(w)}if(s==="full-json"){var D=aue.graphJson(w,!1,"object",!0,!0);return D.version=lue,D=JSON.stringify(D),d(),h(g?D:Oc.encodeJSON(D))}if(d(),s==="svg")return h(g?y:Oc.encodeSVG(y));var E=document.createElement("canvas");E.id=po.randstr(),oue({format:s,width:v,height:A,scale:p,canvas:E,svg:y,promise:!0}).then(h).catch(_)})}function T(h){return g?h.replace(Oc.IMAGE_URL_PREFIX,""):h}return new Promise(function(h,_){xF.newPlot(w,t,M,m).then(k).then(S).then(b).then(function(y){h(T(y))}).catch(function(y){_(y)})})}_F.exports=sue});var TF=xe((nxe,MF)=>{"use strict";var li=rr(),uue=bn(),fue=H0(),cue=jo().dfltConfig,Ci=li.isPlainObject,Gs=Array.isArray,fb=li.isArrayOrTypedArray;MF.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=fue.get(),a=[],o={_context:li.extendFlat({},cue)},i,l;Gs(r)?(o.data=li.extendDeep([],r),i=r):(o.data=[],i=[],a.push(Mn("array","data"))),Ci(t)?(o.layout=li.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(Mn("object","layout"))),uue.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;f<s;f++){var c=i[f],p=["data",f];if(!Ci(c)){a.push(Mn("object",p));continue}var x=u[f],g=x.type,w=n.traces[g].attributes;w.type={valType:"enumerated",values:[g]},x.visible===!1&&c.visible!==!1&&a.push(Mn("invisible",p)),J2(c,x,w,a,p)}var M=o._fullLayout,m=vue(n,u);return J2(l,M,m,a,"layout"),a.length===0?void 0:a};function J2(e,r,t,n,a,o){o=o||[];for(var i=Object.keys(e),l=0;l<i.length;l++){var u=i[l],s=o.slice();s.push(u);var f=e[u],c=r[u],p=pue(t,u),x=(p||{}).valType,g=x==="info_array",w=x==="colorscale",M=(p||{}).items;if(!due(t,u))n.push(Mn("schema",a,s));else if(Ci(f)&&Ci(c)&&x!=="any")J2(f,c,p,n,a,s);else if(g&&Gs(f)){f.length>c.length&&n.push(Mn("unused",a,s.concat(c.length)));var m=c.length,k=Array.isArray(M);k&&(m=Math.min(m,M.length));var S,b,T,h,_;if(p.dimensions===2)for(b=0;b<m;b++)if(Gs(f[b])){f[b].length>c[b].length&&n.push(Mn("unused",a,s.concat(b,c[b].length)));var y=c[b].length;for(S=0;S<(k?Math.min(y,M[b].length):y);S++)T=k?M[b][S]:M,h=f[b][S],_=c[b][S],li.validate(h,T)?_!==h&&_!==+h&&n.push(Mn("dynamic",a,s.concat(b,S),h,_)):n.push(Mn("value",a,s.concat(b,S),h))}else n.push(Mn("array",a,s.concat(b),f[b]));else for(b=0;b<m;b++)T=k?M[b]:M,h=f[b],_=c[b],li.validate(h,T)?_!==h&&_!==+h&&n.push(Mn("dynamic",a,s.concat(b),h,_)):n.push(Mn("value",a,s.concat(b),h))}else if(p.items&&!g&&Gs(f)){var v=M[Object.keys(M)[0]],A=[],d,D;for(d=0;d<c.length;d++){var E=c[d]._index||d;if(D=s.slice(),D.push(E),Ci(f[E])&&Ci(c[d])){A.push(E);var R=f[E],z=c[d];Ci(R)&&R.visible!==!1&&z.visible===!1?n.push(Mn("invisible",a,D)):J2(R,z,v,n,a,D)}}for(d=0;d<f.length;d++)D=s.slice(),D.push(d),Ci(f[d])?A.indexOf(d)===-1&&n.push(Mn("unused",a,D)):n.push(Mn("object",a,D,f[d]))}else!Ci(f)&&Ci(c)?n.push(Mn("object",a,s,f)):!fb(f)&&fb(c)&&!g&&!w?n.push(Mn("array",a,s,f)):u in r?li.validate(f,p)?p.valType==="enumerated"&&(p.coerceNumber&&f!==+c||!fb(f)&&f!==c||String(f)!==String(c))&&n.push(Mn("dynamic",a,s,f,c)):n.push(Mn("value",a,s,f)):n.push(Mn("unused",a,s,f))}return n}function vue(e,r){for(var t=e.layout.layoutAttributes,n=0;n<r.length;n++){var a=r[n],o=e.traces[a.type],i=o.layoutAttributes;i&&(a.subplot?li.extendFlat(t[o.attributes.subplot.dflt],i):li.extendFlat(t,i))}return t}var hue={object:function(e,r){var t;return e==="layout"&&r===""?t="The layout argument":e[0]==="data"&&r===""?t="Trace "+e[1]+" in the data argument":t=Vs(e)+"key "+r,t+" must be linked to an object container"},array:function(e,r){var t;return e==="data"?t="The data argument":t=Vs(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return Vs(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var n=Ci(t)?"container":"key";return Vs(e)+n+" "+r+" did not get coerced"},dynamic:function(e,r,t,n){return[Vs(e)+"key",r,"(set to '"+t+"')","got reset to","'"+n+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?Vs(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[Vs(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function Vs(e){return Gs(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Mn(e,r,t,n,a){t=t||"";var o,i;Gs(r)?(o=r[0],i=r[1]):(o=r,i=null);var l=yue(t),u=hue[e](r,l,n,a);return li.log(u),{code:e,container:o,trace:i,path:t,astr:l,msg:u}}function due(e,r){var t=wF(r),n=t.keyMinusId,a=t.id;return n in e&&e[n]._isSubplotObj&&a?!0:r in e}function pue(e,r){if(r in e)return e[r];var t=wF(r);return e[t.keyMinusId]}var gue=li.counterRegex("([a-z]+)");function wF(e){var r=e.match(gue);return{keyMinusId:r&&r[1],id:r&&r[2]}}function yue(e){if(!Gs(e))return String(e);for(var r="",t=0;t<e.length;t++){var n=e[t];typeof n=="number"?r=r.slice(0,-1)+"["+n+"]":r+=n,t<e.length-1&&(r+=".")}return r}});var kF=xe((axe,AF)=>{"use strict";var mue=rr(),$2=Us();function bue(e,r,t){var n=document.createElement("a"),a="download"in n,o=new Promise(function(i,l){var u,s;if(a)return u=$2.createBlob(e,t),s=$2.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),$2.revokeObjectURL(s),u=null,i(r);if(mue.isSafari()){var f=t==="svg"?",":";base64,";return $2.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}AF.exports=bue});var cb=xe((ixe,LF)=>{"use strict";var K2=rr(),SF=Un(),xue=ub(),_ue=kF(),CF=Us(),EF=40;function wue(e,r){var t;return K2.isPlainObject(e)||(t=K2.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var o=xue(e,r),i=r.filename||e.fn;if(!i){let u=CF.getPlotTitle(e);if(u&&!SF.matchTex(u))i=K2.slugify(u,EF);else{let s=CF.getPlotSubtitle(e);s&&!SF.matchTex(s)&&(i=K2.slugify(s,EF))}}var l=i||"plot-image";l+="."+r.format.replace("-","."),o.then(function(u){return t&&(t._snapshotInProgress=!1),_ue(u,l,r.format)}).then(function(u){n(u)}).catch(function(u){t&&(t._snapshotInProgress=!1),a(u)})})}LF.exports=wue});var IF=xe(vb=>{"use strict";var Aa=rr(),ka=Aa.isPlainObject,DF=H0(),RF=bn(),Mue=qn(),FF=wt(),PF=jo().dfltConfig;vb.makeTemplate=function(e){e=Aa.isPlainObject(e)?e:Aa.getGraphDiv(e),e=Aa.extendDeep({_context:PF},{data:e.data,layout:e.layout}),RF.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(x){var g={};Uc(x,g,Aue.bind(null,x));var w=Aa.coerce(x,{},Mue,"type"),M=n.data[w];M||(M=n.data[w]=[]),M.push(g)}),Uc(t,n.layout,Tue.bind(null,t)),delete n.layout.template;var a=t.template;if(ka(a)){var o=a.layout,i,l,u,s,f,c;ka(o)&&Q2(o,n.layout);var p=a.data;if(ka(p)){for(l in n.data)if(u=p[l],Array.isArray(u)){for(f=n.data[l],c=f.length,s=u.length,i=0;i<c;i++)Q2(u[i%s],f[i]);for(i=c;i<s;i++)f.push(Aa.extendDeep({},u[i]))}for(l in p)l in n.data||(n.data[l]=Aa.extendDeep([],p[l]))}}return n};function Q2(e,r){e=Aa.extendDeep({},e);var t=Object.keys(e).sort(),n,a;function o(f,c,p){if(ka(c)&&ka(f))Q2(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var x=FF.arrayTemplater({_template:e},p);for(a=0;a<c.length;a++){var g=c[a],w=x.newItem(g)._template;w&&Q2(w,g)}var M=x.defaultItems();for(a=0;a<M.length;a++)c.push(M[a]._template);for(a=0;a<c.length;a++)delete c[a].templateitemname}}for(n=0;n<t.length;n++){var i=t[n],l=e[i];if(i in r?o(l,r[i],i):r[i]=l,j2(i)===i)for(var u in r){var s=j2(u);u!==s&&s===i&&!(u in e)&&o(l,r[u],i)}}}function j2(e){return e.replace(/[0-9]+$/,"")}function Uc(e,r,t,n,a){var o=a&&t(a);for(var i in e){var l=e[i],u=si(e,i,n),s=si(e,i,a),f=t(s);if(!f){var c=j2(i);c!==i&&(s=si(e,c,a),f=t(s))}if(!(o&&o===f)&&!(!f||f._noTemplating||f.valType==="data_array"||f.arrayOk&&Array.isArray(l)))if(!f.valType&&ka(l))Uc(l,r,t,u,s);else if(f._isLinkedToArray&&Array.isArray(l))for(var p=!1,x=0,g={},w=0;w<l.length;w++){var M=l[w];if(ka(M)){var m=M.name;if(m)g[m]||(Uc(M,r,t,si(l,x,u),si(l,x,s)),x++,g[m]=1);else if(!p){var k=FF.arrayDefaultKey(i),S=si(e,k,n),b=si(l,x,u);Uc(M,r,t,b,si(l,x,s));var T=Aa.nestedProperty(r,b),h=Aa.nestedProperty(r,S);h.set(T.get()),T.set(null),p=!0}}}else{var _=Aa.nestedProperty(r,u);_.set(l)}}}function Tue(e,r){return DF.getLayoutValObject(e,Aa.nestedProperty({},r).parts)}function Aue(e,r){return DF.getTraceValObject(e,Aa.nestedProperty({},r).parts)}function si(e,r,t){var n;return t?Array.isArray(e)?n=t+"["+r+"]":n=t+"."+r:n=r,n}vb.validateTemplate=function(e,r){var t=Aa.extendDeep({},{_context:PF,data:e.data,layout:e.layout}),n=t.layout||{};ka(r)||(r=n.template||{});var a=r.layout,o=r.data,i=[];t.layout=n,t.layout.template=r,RF.supplyDefaults(t);var l=t._fullLayout,u=t._fullData,s={};function f(S,b){for(var T in S)if(T.charAt(0)!=="_"&&ka(S[T])){var h=j2(T),_=[],y;for(y=0;y<b.length;y++)_.push(si(S,T,b[y])),h!==T&&_.push(si(S,h,b[y]));for(y=0;y<_.length;y++)s[_[y]]=1;f(S[T],_)}}function c(S,b){for(var T in S)if(T.indexOf("defaults")===-1&&ka(S[T])){var h=si(S,T,b);s[h]?c(S[T],h):i.push({code:"unused",path:h})}}if(ka(a)?(f(l,["layout"]),c(a,"layout")):i.push({code:"layout"}),!ka(o))i.push({code:"data"});else{for(var p={},x,g=0;g<u.length;g++){var w=u[g];x=w.type,p[x]=(p[x]||0)+1,w._template||i.push({code:"missing",index:w.index,traceType:x})}for(x in o){var M=o[x].length,m=p[x]||0;M>m?i.push({code:"unused",traceType:x,templateCount:M,dataCount:m}):m>M&&i.push({code:"reused",traceType:x,templateCount:M,dataCount:m})}}function k(S,b){for(var T in S)if(T.charAt(0)!=="_"){var h=S[T],_=si(S,T,b);ka(h)?(Array.isArray(S)&&h._template===!1&&h.templateitemname&&i.push({code:"missing",path:_,templateitemname:h.templateitemname}),k(h,_)):Array.isArray(h)&&kue(h)&&k(h,_)}}if(k({data:u,layout:l},""),i.length)return i.map(Sue)};function kue(e){for(var r=0;r<e.length;r++)if(ka(e[r]))return!0}function Sue(e){var r;switch(e.code){case"data":r="The template has no key data.";break;case"layout":r="The template has no key layout.";break;case"missing":e.path?r="There are no templates for item "+e.path+" with name "+e.templateitemname:r="There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":e.path?r="The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?r="Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":r="The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":r="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type.";break}return e.msg=r,e}});var NF=xe(Nt=>{"use strict";var hn=ib();Nt._doPlot=hn._doPlot;Nt.newPlot=hn.newPlot;Nt.restyle=hn.restyle;Nt.relayout=hn.relayout;Nt.redraw=hn.redraw;Nt.update=hn.update;Nt._guiRestyle=hn._guiRestyle;Nt._guiRelayout=hn._guiRelayout;Nt._guiUpdate=hn._guiUpdate;Nt._storeDirectGUIEdit=hn._storeDirectGUIEdit;Nt.react=hn.react;Nt.extendTraces=hn.extendTraces;Nt.prependTraces=hn.prependTraces;Nt.addTraces=hn.addTraces;Nt.deleteTraces=hn.deleteTraces;Nt.moveTraces=hn.moveTraces;Nt.purge=hn.purge;Nt.addFrames=hn.addFrames;Nt.deleteFrames=hn.deleteFrames;Nt.animate=hn.animate;Nt.setPlotConfig=hn.setPlotConfig;var Cue=Lf().getGraphDiv,Eue=f2().eraseActiveShape;Nt.deleteActiveShape=function(e){return Eue(Cue(e))};Nt.toImage=ub();Nt.validate=TF();Nt.downloadImage=cb();var zF=IF();Nt.makeTemplate=zF.makeTemplate;Nt.validateTemplate=zF.validateTemplate});var BF=xe((sxe,qF)=>{"use strict";var hb=rr(),Lue=Cr();qF.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=Lue.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=hb.minRowLength(o);i?l=Math.min(s,hb.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=hb.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var VF=xe((uxe,HF)=>{"use strict";var OF=rr().dateTick0,Due=pn(),Rue=Due.ONEWEEK;function UF(e,r){return e%Rue===0?OF(r,1):OF(r,0)}HF.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",UF(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",UF(l,t.ycalendar)),a("yperiodalignment"))}}});var XF=xe((fxe,YF)=>{"use strict";var GF=["orientation","groupnorm","stackgaps"];YF.exports=function(r,t,n,a){var o=n._scatterStackOpts,i=a("stackgroup");if(i){var l=t.xaxis+t.yaxis,u=o[l];u||(u=o[l]={});var s=u[i],f=!1;s?s.traces.push(t):(s=u[i]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},p=0;p<GF.length;p++){var x=GF[p],g=x+"Found";if(!s[g]){var w=r[x]!==void 0,M=x==="orientation";if((w||f)&&(s[x]=a(x,c[x]),M&&(s.fillDflt=s[x]==="h"?"tonextx":"tonexty"),w&&(s[g]=!0,!f&&(delete s.traces[0][x],M))))for(var m=0;m<s.traces.length-1;m++){var k=s.traces[m];k._input.fill!==k.fill&&(k.fill=s.fillDflt)}}}return s}}});var db=xe((cxe,$F)=>{"use strict";var WF=Xr(),ZF=$i().hasColorscale,JF=Qi(),Fue=wa();$F.exports=function(r,t,n,a,o,i={}){var l=Fue.isBubble(r),u=(r.line||{}).color,s;if(u&&(n=u),o("marker.symbol"),o("marker.opacity",l?.7:1),o("marker.size"),i.noAngle||(o("marker.angle"),i.noAngleRef||o("marker.angleref"),i.noStandOff||o("marker.standoff")),o("marker.color",n),ZF(r,"marker")&&JF(r,t,a,o,{prefix:"marker.",cLetter:"c"}),i.noSelect||(o("selected.marker.color"),o("unselected.marker.color"),o("selected.marker.size"),o("unselected.marker.size")),i.noLine||(u&&!Array.isArray(u)&&t.marker.color!==u?s=u:l?s=WF.background:s=WF.defaultLine,o("marker.line.color",s),ZF(r,"marker.line")&&JF(r,t,a,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width",l?1:0),i.noLineDash||o("marker.line.dash")),l&&(o("marker.sizeref"),o("marker.sizemin"),o("marker.sizemode")),i.gradient){var f=o("marker.gradient.type");f!=="none"&&o("marker.gradient.color")}}});var pb=xe((vxe,KF)=>{"use strict";var Pue=rr().isArrayOrTypedArray,Iue=$i().hasColorscale,zue=Qi();KF.exports=function(r,t,n,a,o,i){i||(i={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),o("line.color",n),Iue(r,"line"))zue(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(Pue(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var jF=xe((hxe,QF)=>{"use strict";QF.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var gb=xe((dxe,eP)=>{"use strict";var Nue=rr();eP.exports=function(e,r,t,n,a){a=a||{},n("textposition"),Nue.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var nP=xe((pxe,tP)=>{"use strict";var ed=Xr(),rP=rr().isArrayOrTypedArray;function que(e){for(var r=ed.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var n=ed.interpolate(e[t-1][1],e[t][1],.5);r=ed.interpolate(r,n,e[t-1][0]/e[t][0])}return r}tP.exports=function(r,t,n,a,o){o||(o={});var i=!1;if(t.marker){var l=t.marker.color,u=(t.marker.line||{}).color;l&&!rP(l)?i=l:u&&!rP(u)&&(i=u)}var s;if(o.moduleHasFillgradient){var f=a("fillgradient.type");if(f!=="none"){a("fillgradient.start"),a("fillgradient.stop");var c=a("fillgradient.colorscale");c&&(s=que(c))}}a("fillcolor",ed.addOpacity((t.line||{}).color||i||s||n,.5))}});var lP=xe((gxe,oP)=>{"use strict";var aP=rr(),Bue=Cr(),Oue=Os(),Uue=S2(),mu=wa(),Hue=BF(),Vue=VF(),Gue=XF(),Yue=db(),Xue=pb(),iP=jF(),Wue=gb(),Zue=nP(),Jue=rr().coercePattern;oP.exports=function(r,t,n,a){function o(x,g){return aP.coerce(r,t,Oue,x,g)}var i=Hue(r,t,a,o);if(i||(t.visible=!1),!!t.visible){Vue(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=Gue(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i<Uue.PTS_LINESONLY?"lines+markers":"lines";o("text"),o("hovertext"),o("mode",u),mu.hasMarkers(t)&&Yue(r,t,n,a,o,{gradient:!0}),mu.hasLines(t)&&(Xue(r,t,n,a,o,{backoff:!0}),iP(r,t,o),o("connectgaps"),o("line.simplify")),mu.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),Wue(r,t,a,o));var s=[];(mu.hasMarkers(t)||mu.hasText(t))&&(o("cliponaxis"),o("marker.maxdisplayed"),s.push("points")),o("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(Zue(r,t,n,o,{moduleHasFillgradient:!0}),mu.hasLines(t)||iP(r,t,o),Jue(o,"fillpattern",t.fillcolor,!1));var f=(t.line||{}).color,c=(t.marker||{}).color;(t.fill==="tonext"||t.fill==="toself")&&s.push("fills"),o("hoveron",s.join("+")||"points"),t.hoveron!=="fills"&&(o("hovertemplate"),o("hovertemplatefallback"));var p=Bue.getComponentMethod("errorbars","supplyDefaults");p(r,t,f||c||n,{axis:"y"}),p(r,t,f||c||n,{axis:"x",inherit:"y"}),aP.coerceSelectionMarkerOpacity(t,o)}}});var uP=xe((yxe,sP)=>{"use strict";var $ue=hc().getAxisGroup;sP.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=$ue(n,l)+i,s=n._alignmentOpts||{},f=a("alignmentgroup"),c=s[u];c||(c=s[u]={});var p=c[f];p?p.traces.push(t):p=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var x=a("offsetgroup")||"",g=p.offsetGroups,w=g[x];t._offsetIndex=0,(o!=="group"||x)&&(w||(w=g[x]={offsetIndex:Object.keys(g).length}),t._offsetIndex=w.offsetIndex)}});var cP=xe((mxe,fP)=>{"use strict";var Kue=rr(),Que=uP(),jue=Os();fP.exports=function(r,t){var n,a,o,i=t.scattermode;function l(p){return Kue.coerce(a._input,a,jue,p)}if(t.scattermode==="group")for(o=0;o<r.length;o++)a=r[o],a.type==="scatter"&&(n=a._input,Que(n,a,t,l,i));for(o=0;o<r.length;o++){var u=r[o];if(u.type==="scatter"){var s=u.fill;if(!(s==="none"||s==="toself")&&(u.opacity=void 0,s==="tonexty"||s==="tonextx"))for(var f=o-1;f>=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===u.xaxis&&c.yaxis===u.yaxis){c.opacity=void 0;break}}}}}});var hP=xe((bxe,vP)=>{"use strict";var efe=rr(),rfe=Kh();vP.exports=function(e,r){function t(a,o){return efe.coerce(e,r,rfe,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var gP=xe((xxe,pP)=>{"use strict";var tfe=it(),dP=rr(),nfe=dP.dateTime2ms,rd=dP.incrementMonth,afe=pn(),ife=afe.ONEAVGMONTH;pP.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var o=r[n+"periodalignment"];if(!o)return{vals:a};var i=r[n+"period"],l;if(tfe(i)){if(i=+i,i<=0)return{vals:a}}else if(typeof i=="string"&&i.charAt(0)==="M"){var u=+i.substring(1);if(u>0&&Math.round(u)===u)l=u;else return{vals:a}}for(var s=t.calendar,f=o==="start",c=o==="end",p=r[n+"period0"],x=nfe(p,s)||0,g=[],w=[],M=[],m=a.length,k=0;k<m;k++){var S=a[k],b,T,h;if(l){for(b=Math.round((S-x)/(l*ife)),h=rd(x,l*b,s);h>S;)h=rd(h,-l,s);for(;h<=S;)h=rd(h,l,s);T=rd(h,-l,s)}else{for(b=Math.round((S-x)/i),h=x+b*i;h>S;)h-=i;for(;h<=S;)h+=i;T=h-i}g[k]=f?T:c?h:(T+h)/2,w[k]=T,M[k]=h}return{vals:g,starts:w,ends:M}}});var bb=xe((_xe,mP)=>{"use strict";var yb=$i().hasColorscale,mb=pl(),yP=wa();mP.exports=function(r,t){yP.hasLines(t)&&yb(t,"line")&&mb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),yP.hasMarkers(t)&&(yb(t,"marker")&&mb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),yb(t,"marker.line")&&mb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var td=xe((wxe,bP)=>{"use strict";var Yt=rr();bP.exports=function(r,t){for(var n=0;n<r.length;n++)r[n].i=n;Yt.mergeArray(t.text,r,"tx"),Yt.mergeArray(t.texttemplate,r,"txt"),Yt.mergeArray(t.hovertext,r,"htx"),Yt.mergeArray(t.customdata,r,"data"),Yt.mergeArray(t.textposition,r,"tp"),t.textfont&&(Yt.mergeArrayCastPositive(t.textfont.size,r,"ts"),Yt.mergeArray(t.textfont.color,r,"tc"),Yt.mergeArray(t.textfont.family,r,"tf"),Yt.mergeArray(t.textfont.weight,r,"tw"),Yt.mergeArray(t.textfont.style,r,"ty"),Yt.mergeArray(t.textfont.variant,r,"tv"),Yt.mergeArray(t.textfont.textcase,r,"tC"),Yt.mergeArray(t.textfont.lineposition,r,"tE"),Yt.mergeArray(t.textfont.shadow,r,"tS"));var a=t.marker;if(a){Yt.mergeArrayCastPositive(a.size,r,"ms"),Yt.mergeArrayCastPositive(a.opacity,r,"mo"),Yt.mergeArray(a.symbol,r,"mx"),Yt.mergeArray(a.angle,r,"ma"),Yt.mergeArray(a.standoff,r,"mf"),Yt.mergeArray(a.color,r,"mc");var o=a.line;a.line&&(Yt.mergeArray(o.color,r,"mlc"),Yt.mergeArrayCastPositive(o.width,r,"mlw"),Yt.mergeArray(o.dash,r,"mld"));var i=a.gradient;i&&i.type!=="none"&&(Yt.mergeArray(i.type,r,"mgt"),Yt.mergeArray(i.color,r,"mgc"))}}});var wP=xe((Mxe,_P)=>{"use strict";var xP=rr();_P.exports=function(r,t){xP.isArrayOrTypedArray(t.selectedpoints)&&xP.tagSelected(r,t)}});var Tb=xe((Txe,EP)=>{"use strict";var MP=it(),_b=rr(),Hc=Bt(),TP=gP(),xb=pn().BADNUM,wb=wa(),ofe=bb(),lfe=td(),sfe=wP();function ufe(e,r){var t=e._fullLayout,n=r._xA=Hc.getFromId(e,r.xaxis||"x","x"),a=r._yA=Hc.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=TP(r,n,"x",o),u=TP(r,a,"y",i),s=l.vals,f=u.vals,c=r._length,p=new Array(c),x=r.ids,g=Mb(r,t,n,a),w=!1,M,m,k,S,b,T;SP(t,r);var h="x",_="y",y;if(g)_b.pushUnique(g.traceIndices,r.index),M=g.orientation==="v",M?(_="s",y="x"):(h="s",y="y"),b=g.stackgaps==="interpolate";else{var v=kP(r,c);AP(e,r,n,a,s,f,v)}var A=!!r.xperiodalignment,d=!!r.yperiodalignment;for(m=0;m<c;m++){var D=p[m]={},E=MP(s[m]),R=MP(f[m]);E&&R?(D[h]=s[m],D[_]=f[m],A&&(D.orig_x=o[m],D.xEnd=l.ends[m],D.xStart=l.starts[m]),d&&(D.orig_y=i[m],D.yEnd=u.ends[m],D.yStart=u.starts[m])):g&&(M?E:R)?(D[y]=M?s[m]:f[m],D.gap=!0,b?(D.s=xb,w=!0):D.s=0):D[h]=D[_]=xb,x&&(D.id=String(x[m]))}if(lfe(p,r),ofe(e,r),sfe(p,r),g){for(m=0;m<p.length;)p[m][y]===xb?p.splice(m,1):m++;if(_b.sort(p,function(L,F){return L[y]-F[y]||L.i-F.i}),w){for(m=0;m<p.length-1&&p[m].gap;)m++;for(T=p[m].s,T||(T=p[m].s=0),k=0;k<m;k++)p[k].s=T;for(S=p.length-1;S>m&&p[S].gap;)S--;for(T=p[S].s,k=p.length-1;k>S;k--)p[k].s=T;for(;m<S;)if(m++,p[m].gap){for(k=m+1;p[k].gap;)k++;for(var z=p[m-1][y],I=p[m-1].s,P=(p[k].s-I)/(p[k][y]-z);m<k;)p[m].s=I+(p[m][y]-z)*P,m++}}}return p}function AP(e,r,t,n,a,o,i){var l=r._length,u=e._fullLayout,s=t._id,f=n._id,c=u._firstScatter[CP(r)]===r.uid,p=(Mb(r,u,t,n)||{}).orientation,x=r.fill;t._minDtick=0,n._minDtick=0;var g={padded:!0},w={padded:!0};i&&(g.ppad=w.ppad=i);var M=l<2||a[0]!==a[l-1]||o[0]!==o[l-1];M&&(x==="tozerox"||x==="tonextx"&&(c||p==="h"))?g.tozero=!0:!(r.error_y||{}).visible&&(x==="tonexty"||x==="tozeroy"||!wb.hasMarkers(r)&&!wb.hasText(r))&&(g.padded=!1,g.ppad=0),M&&(x==="tozeroy"||x==="tonexty"&&(c||p==="v"))?w.tozero=!0:(x==="tonextx"||x==="tozerox")&&(w.padded=!1),s&&(r._extremes[s]=Hc.findExtremes(t,a,g)),f&&(r._extremes[f]=Hc.findExtremes(n,o,w))}function kP(e,r){if(wb.hasMarkers(e)){var t=e.marker,n=1.6*(e.marker.sizeref||1),a;if(e.marker.sizemode==="area"?a=function(s){return Math.max(Math.sqrt((s||0)/n),3)}:a=function(s){return Math.max((s||0)/n,3)},_b.isArrayOrTypedArray(t.size)){var o={type:"linear"};Hc.setConvert(o);for(var i=o.makeCalcdata(e.marker,"size"),l=new Array(r),u=0;u<r;u++)l[u]=a(i[u]);return l}else return a(t.size)}}function SP(e,r){var t=CP(r),n=e._firstScatter;n[t]||(n[t]=r.uid)}function CP(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function Mb(e,r,t,n){var a=e.stackgroup;if(a){var o=r._scatterStackOpts[t._id+n._id][a],i=o.orientation==="v"?n:t;if(i.type==="linear"||i.type==="log")return o}}EP.exports={calc:ufe,calcMarkerSize:kP,calcAxisExpansion:AP,setFirstScatter:SP,getStackOpts:Mb}});var DP=xe((Axe,LP)=>{"use strict";LP.exports=nd;var ffe=rr().distinctVals;function nd(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],o=0;o<e.length;o++){for(var i=e[o],l=0;l<i.length;l++){var u=i[l],s=u.p;s===void 0&&(s=u[n]),s!==void 0&&a.push(s)}i[0]&&i[0].width1&&(t=Math.min(i[0].width1,t))}this.positions=a;var f=ffe(a);this.distinctPositions=f.vals,f.vals.length===1&&t!==1/0?this.minDiff=t:this.minDiff=Math.min(f.minDiff,t);var c=(r.posAxis||{}).type;(c==="category"||c==="multicategory")&&(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}nd.prototype.put=function(r,t,n){var a=this.getLabel(r,t,n),o=this.bins[a]||0;return this.bins[a]=o+n,o};nd.prototype.get=function(r,t,n){var a=this.getLabel(r,t,n);return this.bins[a]||0};nd.prototype.getLabel=function(r,t,n){var a=n<0&&this.sepNegVal?"v":"^",o=this.overlapNoMerge?r:Math.round(r/this.binWidth);return a+o+"g"+t}});var FP=xe((kxe,RP)=>{"use strict";RP.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var qP=xe((Sxe,NP)=>{"use strict";var ui=it(),{isArrayOrTypedArray:qo}=rr(),{BADNUM:bu}=pn(),cfe=Cr(),Vc=Bt(),{getAxisGroup:vfe}=hc(),ad=DP(),{TEXTPAD:hfe}=FP(),{LINE_SPACING:dfe}=On(),{BR_TAG_ALL:pfe}=Un();function gfe(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;s<o.length;s++){var f=o[s];if(f.visible===!0&&cfe.traceIs(f,"bar")&&f.xaxis===t._id&&f.yaxis===n._id&&(f.orientation==="h"?l.push(i[s]):u.push(i[s]),f._computePh))for(var c=e.calcdata[s],p=0;p<c.length;p++)typeof c[p].ph0=="function"&&(c[p].ph0=c[p].ph0()),typeof c[p].ph1=="function"&&(c[p].ph1=c[p].ph1())}var x={xCat:t.type==="category"||t.type==="multicategory",yCat:n.type==="category"||n.type==="multicategory",mode:a.barmode,norm:a.barnorm,gap:a.bargap,groupgap:a.bargroupgap};kb(e,t,n,u,x),kb(e,n,t,l,x)}function kb(e,r,t,n,a){if(n.length){var o,i,l,u,s;switch(bfe(t,n),a.mode){case"overlay":Ab(e,r,t,n,a);break;case"group":for(o=[],i=[],l=0;l<n.length;l++)u=n[l],s=u[0].trace,s.offset===void 0?i.push(u):o.push(u);i.length&&xfe(e,r,t,i,a),o.length&&Ab(e,r,t,o,a);break;case"stack":case"relative":for(o=[],i=[],l=0;l<n.length;l++)u=n[l],s=u[0].trace,s.base===void 0?i.push(u):o.push(u);mfe(i),i.length&&_fe(e,r,t,i,a),o.length&&Ab(e,r,t,o,a);break}yfe(n),Sfe(n,r)}}function yfe(e){var r,t,n,a,o,i,l;for(r=0;r<e.length;r++)t=e[r],n=t[0].trace,a=t[0].t,a.cornerradiusvalue===void 0&&(o=n.marker?n.marker.cornerradius:void 0,o!==void 0&&(i=ui(o)?+o:+o.slice(0,-1),l=ui(o)?"px":"%",a.cornerradiusvalue=i,a.cornerradiusform=l))}function mfe(e){if(!(e.length<2)){var r,t,n,a,o,i,l;for(r=0;r<e.length&&(t=e[r],n=t[0].trace,o=n.marker?n.marker.cornerradius:void 0,o===void 0);r++);if(o!==void 0)for(i=ui(o)?+o:+o.slice(0,-1),l=ui(o)?"px":"%",r=0;r<e.length;r++)t=e[r],a=t[0].t,a.cornerradiusvalue=i,a.cornerradiusform=l}}function bfe(e,r){var t,n;for(t=0;t<r.length;t++){var a=r[t],o=a[0].trace,i=o.type==="funnel"?o._base:o.base,l,u=o.orientation==="h"?o.xcalendar:o.ycalendar,s=e.type==="category"||e.type==="multicategory"?function(){return null}:e.d2c;if(qo(i)){for(n=0;n<Math.min(i.length,a.length);n++)l=s(i[n],0,u),ui(l)?(a[n].b=+l,a[n].hasB=1):a[n].b=0;for(;n<a.length;n++)a[n].b=0}else{l=s(i,0,u);var f=ui(l);for(l=f?l:0,n=0;n<a.length;n++)a[n].b=l,f&&(a[n].hasB=1)}}}function Ab(e,r,t,n,a){for(var o=0;o<n.length;o++){var i=n[o],l=new ad([i],{posAxis:r,sepNegVal:!1,overlapNoMerge:!a.norm});Sb(e,r,l,a),a.norm?(zP(l),Cb(t,l,a)):IP(t,l)}}function xfe(e,r,t,n,a){var o=new ad(n,{posAxis:r,sepNegVal:!1,overlapNoMerge:!a.norm});Sb(e,r,o,a),Afe(o,r),a.norm?(zP(o),Cb(t,o,a)):IP(t,o)}function _fe(e,r,t,n,a){var o=new ad(n,{posAxis:r,sepNegVal:a.mode==="relative",overlapNoMerge:!(a.norm||a.mode==="stack"||a.mode==="relative")});Sb(e,r,o,a),Tfe(t,o,a);for(var i=0;i<n.length;i++)for(var l=n[i],u=l[0].t.offsetindex,s=0;s<l.length;s++){var f=l[s];if(f.s!==bu){var c=f.b+f.s===o.get(f.p,u,f.s);c&&(f._outmost=!0)}}a.norm&&Cb(t,o,a)}function Sb(e,r,t,n){var a=e._fullLayout,o=t.positions,i=t.distinctPositions,l=t.minDiff,u=t.traces,s=u.length,f=o.length!==i.length,c=l*(1-n.gap),p,x,g,w;if(r._id==="angularaxis")p=c,x=p*(1-(n.groupgap||0)),g=-x/2;else{var M=vfe(a,r._id)+u[0][0].trace.orientation;w=a._alignmentOpts[M]||{}}for(var m=0;m<s;m++){var k=u[m],S=k[0].trace;if(r._id!=="angularaxis"){var b=w[S.alignmentgroup]||{},T=Object.keys(b.offsetGroups||{}).length;T?p=c/T:p=f?c/s:c,x=p*(1-(n.groupgap||0)),T?g=((2*S._offsetIndex+1-T)*p-x)/2:g=f?((2*m+1-s)*p-x)/2:-x/2}var h=k[0].t;h.barwidth=x,h.offsetindex=S._offsetIndex||0,h.poffset=g,h.bargroupwidth=c,h.bardelta=l}t.binWidth=u[0][0].t.barwidth/100,wfe(t),Mfe(r,t),r._id==="angularaxis"?PP(r,t):PP(r,t,f)}function wfe(e){var r=e.traces,t,n;for(t=0;t<r.length;t++){var a=r[t],o=a[0],i=o.trace,l=o.t,u=i._offset||i.offset,s=l.poffset,f;if(qo(u)){for(f=Array.prototype.slice.call(u,0,a.length),n=0;n<f.length;n++)ui(f[n])||(f[n]=s);for(n=f.length;n<a.length;n++)f.push(s);l.poffset=f}else u!==void 0&&(l.poffset=u);var c=i._width||i.width,p=l.barwidth;if(qo(c)){var x=Array.prototype.slice.call(c,0,a.length);for(n=0;n<x.length;n++)ui(x[n])||(x[n]=p);for(n=x.length;n<a.length;n++)x.push(p);if(l.barwidth=x,u===void 0){for(f=[],n=0;n<a.length;n++)f.push(s+(p-x[n])/2);l.poffset=f}}else c!==void 0&&(l.barwidth=c,u===void 0&&(l.poffset=s+(p-c)/2))}}function Mfe(e,r){for(var t=r.traces,n=xu(e),a=0;a<t.length;a++)for(var o=t[a],i=o[0].t,l=i.poffset,u=qo(l),s=i.barwidth,f=qo(s),c=0;c<o.length;c++){var p=o[c],x=p.w=f?s[c]:s;p.p===void 0&&(p.p=p[n],p["orig_"+n]=p[n]);var g=(u?l[c]:l)+x/2;p[n]=p.p+g}}function PP(e,r,t){var n=r.traces,a=r.minDiff,o=a/2;Vc.minDtick(e,r.minDiff,r.distinctPositions[0],t);for(var i=0;i<n.length;i++){var l=n[i],u=l[0],s=u.trace,f=[],c,p,x,g;for(g=0;g<l.length;g++)c=l[g],p=c.p-o,x=c.p+o,f.push(p,x);if(s.width||s.offset){var w=u.t,M=w.poffset,m=w.barwidth,k=qo(M),S=qo(m);for(g=0;g<l.length;g++){c=l[g];var b=k?M[g]:M,T=S?m[g]:m;p=c.p+b,x=p+T,f.push(p,x)}}s._extremes[e._id]=Vc.findExtremes(e,f,{padded:!1})}}function IP(e,r){for(var t=r.traces,n=xu(e),a=0;a<t.length;a++){for(var o=t[a],i=o[0].trace,l=i.type==="scatter",u=i.orientation==="v",s=[],f=!1,c=0;c<o.length;c++){var p=o[c],x=l?0:p.b,g=l?u?p.y:p.x:x+p.s;p[n]=g,s.push(g),p.hasB&&s.push(x),(!p.hasB||!p.b)&&(f=!0)}let{ppadminus:w,ppadplus:M}=Eb(i,o);i._extremes[e._id]=Vc.findExtremes(e,s,{tozero:f,padded:!0,ppadplus:M,ppadminus:w})}}function Tfe(e,r,t){var n=xu(e),a=r.traces,o,i,l,u,s,f,c;for(u=0;u<a.length;u++)if(o=a[u],i=o[0].trace,i.type==="funnel")for(c=o[0].t.offsetindex,s=0;s<o.length;s++)f=o[s],f.s!==bu&&r.put(f.p,c,-.5*f.s);for(u=0;u<a.length;u++){o=a[u],i=o[0].trace,l=i.type==="funnel",c=i.type==="barpolar"?0:o[0].t.offsetindex;var p=[];for(s=0;s<o.length;s++)if(f=o[s],f.s!==bu){var x;l?x=f.s:x=f.s+f.b;var g=r.put(f.p,c,x),w=g+x;f.b=g,f[n]=w,t.norm||(p.push(w),f.hasB&&p.push(g))}if(!t.norm){let{ppadminus:M,ppadplus:m}=Eb(i,o);i._extremes[e._id]=Vc.findExtremes(e,p,{tozero:!0,padded:!0,ppadplus:m,ppadminus:M})}}}function zP(e){for(var r=e.traces,t=0;t<r.length;t++)for(var n=r[t],a=n[0].t.offsetindex,o=0;o<n.length;o++){var i=n[o];i.s!==bu&&e.put(i.p,a,i.b+i.s)}}function Afe(e,r){for(var t=e.traces,n=0;n<t.length;n++){var a=t[n],o=a[0].trace,i=a[0].t.offsetindex;if(o.base===void 0)for(var l=new ad([a],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),u=0;u<a.length;u++){var s=a[u];if(s.p!==bu){var f=l.put(s.p,i,s.b+s.s);f&&(s.b=f)}}}}function Cb(e,r,t){var n=r.traces,a=xu(e),o=t.norm==="fraction"?1:100,i=o/1e9,l=e.l2c(e.c2l(0)),u=t.mode==="stack"?o:l;function s(h){return ui(e.c2l(h))&&(h<l-i||h>u+i||!ui(l))}for(var f=0;f<n.length;f++){for(var c=n[f],p=c[0].t.offsetindex,x=c[0].trace,g=[],w=!1,M=!1,m=0;m<c.length;m++){var k=c[m];if(k.s!==bu){var S=Math.abs(o/r.get(k.p,p,k.s));k.b*=S,k.s*=S;var b=k.b,T=b+k.s;k[a]=T,g.push(T),M=M||s(T),k.hasB&&(g.push(b),M=M||s(b)),(!k.hasB||!k.b)&&(w=!0)}}let{ppadminus:h,ppadplus:_}=Eb(x,c);x._extremes[e._id]=Vc.findExtremes(e,g,{tozero:w,padded:M,ppadplus:_,ppadminus:h})}}function Eb(e,r){if(e.orientation==="v"&&(e.text||e.texttemplate)&&e.textposition==="outside"&&(e.textangle==="auto"||e.textangle===0)){let n=function(o){return!o||typeof o!="string"?0:(o.match(pfe)||[]).length+1};var t;e.texttemplate?t=n(e.texttemplate):t=qo(e.text)?Math.max(...e.text.map(o=>n(o))):n(e.text);let a=e.outsidetextfont.size*dfe*t+hfe;return{ppadplus:r.some(o=>o.s<0)?a:0,ppadminus:r.some(o=>o.s>=0)?a:0}}return{ppadplus:void 0,ppadminus:void 0}}function kfe(e,r,t,n){for(var a=xu(n),o=0;o<e.length;o++)for(var i=e[o],l=0;l<i.length;l++){var u=i[l],s=u[a];u._sMin=r[s],u._sMax=t[s]}}function Sfe(e,r){var t=xu(r),n={},a,o,i,l=1/0,u=-1/0;for(a=0;a<e.length;a++)for(i=e[a],o=0;o<i.length;o++){var s=i[o].p;ui(s)&&(l=Math.min(l,s),u=Math.max(u,s))}var f=1e4/(u-l),c=n.round=function(y){return String(Math.round(f*(y-l)))},p={},x={},g=e.some(function(y){var v=y[0].trace;return"marker"in v&&v.marker.cornerradius});for(a=0;a<e.length;a++){i=e[a],i[0].t.extents=n;var w=i[0].t.poffset,M=qo(w);for(o=0;o<i.length;o++){var m=i[o],k=m[t]-m.w/2;if(ui(k)){var S=m[t]+m.w/2,b=c(m.p);n[b]?n[b]=[Math.min(k,n[b][0]),Math.max(S,n[b][1])]:n[b]=[k,S]}if(m.p0=m.p+(M?w[o]:w),m.p1=m.p0+m.w,m.s0=m.b,m.s1=m.s0+m.s,g){var T=Math.min(m.s0,m.s1)||0,h=Math.max(m.s0,m.s1)||0,_=m[t];p[_]=_ in p?Math.min(p[_],T):T,x[_]=_ in x?Math.max(x[_],h):h}}}g&&kfe(e,p,x,r)}function xu(e){return e._id.charAt(0)}NP.exports={crossTraceCalc:gfe,setGroupPositions:kb}});var HP=xe((Cxe,UP)=>{"use strict";var BP=Tb(),OP=qP().setGroupPositions;function Cfe(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;s<o.length;s++){var f=o[s];f.visible===!0&&f.type==="scatter"&&f.xaxis===t._id&&f.yaxis===n._id&&(f.orientation==="h"?l.push(i[s]):f.orientation==="v"&&u.push(i[s]))}var c={mode:a.scattermode,gap:a.scattergap};OP(e,t,n,u,c),OP(e,n,t,l,c)}UP.exports=function(r,t){r._fullLayout.scattermode==="group"&&Cfe(r,t);var n=t.xaxis,a=t.yaxis,o=n._id+a._id,i=r._fullLayout._scatterStackOpts[o];if(i){var l=r.calcdata,u,s,f,c,p,x,g,w,M,m,k,S,b,T,h;for(var _ in i){m=i[_];var y=m.traceIndices;if(y.length){for(k=m.stackgaps==="interpolate",S=m.groupnorm,m.orientation==="v"?(b="x",T="y"):(b="y",T="x"),h=new Array(y.length),u=0;u<h.length;u++)h[u]=!1;x=l[y[0]];var v=new Array(x.length);for(u=0;u<x.length;u++)v[u]=x[u][b];for(u=1;u<y.length;u++){for(p=l[y[u]],s=f=0;s<p.length;s++){for(g=p[s][b];g>v[f]&&f<v.length;f++)Lb(p,s,v[f],u,h,k,b),s++;if(g!==v[f]){for(c=0;c<u;c++)Lb(l[y[c]],f,g,c,h,k,b);v.splice(f,0,g)}f++}for(;f<v.length;f++)Lb(p,s,v[f],u,h,k,b),s++}var A=v.length;for(s=0;s<x.length;s++){for(w=x[s][T]=x[s].s,u=1;u<y.length;u++)p=l[y[u]],p[0].trace._rawLength=p[0].trace._length,p[0].trace._length=A,w+=p[s].s,p[s][T]=w;if(S)for(M=(S==="fraction"?w:w/100)||1,u=0;u<y.length;u++){var d=l[y[u]][s];d[T]/=M,d.sNorm=d.s/M}}for(u=0;u<y.length;u++){p=l[y[u]];var D=p[0].trace,E=BP.calcMarkerSize(D,D._rawLength),R=Array.isArray(E);if(E&&h[u]||R){var z=E;for(E=new Array(A),s=0;s<A;s++)E[s]=p[s].gap?0:R?z[p[s].i]:z}var I=new Array(A),P=new Array(A);for(s=0;s<A;s++)I[s]=p[s].x,P[s]=p[s].y;BP.calcAxisExpansion(r,D,n,a,I,P,E),p[0].t.orientation=m.orientation}}}}};function Lb(e,r,t,n,a,o,i){a[n]=!0;var l={i:null,gap:!0,s:0};if(l[i]=t,e.splice(r,0,l),r&&t===e[r-1][i]){var u=e[r-1];l.s=u.s,l.i=u.i,l.gap=u.gap}else o&&(l.s=Efe(e,r,t,i));r||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}function Efe(e,r,t,n){var a=e[r-1],o=e[r+1];return o?a?a.s+(o.s-a.s)*(t-a[n])/(o[n]-a[n]):o.s:a.s}});var JP=xe((Exe,ZP)=>{"use strict";var Lfe=Mt(),XP=pn(),Gc=XP.BADNUM,WP=XP.LOG_CLIP,VP=WP+.5,GP=WP-.5,id=rr(),Dfe=id.segmentsIntersect,YP=id.constrain,Db=S2();ZP.exports=function(r,t){var n=t.trace||{},a=t.xaxis,o=t.yaxis,i=a.type==="log",l=o.type==="log",u=a._length,s=o._length,f=t.backoff,c=n.marker,p=t.connectGaps,x=t.baseTolerance,g=t.shape,w=g==="linear",M=n.fill&&n.fill!=="none",m=[],k=Db.minTolerance,S=r.length,b=new Array(S),T=0,h,_,y,v,A,d,D,E,R,z,I,P,L,F,B,O;function V(Oe){var We=r[Oe];if(!We)return!1;var Xe=t.linearized?a.l2p(We.x):a.c2p(We.x),tr=t.linearized?o.l2p(We.y):o.c2p(We.y);if(Xe===Gc){if(i&&(Xe=a.c2p(We.x,!0)),Xe===Gc)return!1;l&&tr===Gc&&(Xe*=Math.abs(a._m*s*(a._m>0?VP:GP)/(o._m*u*(o._m>0?VP:GP)))),Xe*=1e3}if(tr===Gc){if(l&&(tr=o.c2p(We.y,!0)),tr===Gc)return!1;tr*=1e3}return[Xe,tr]}function K(Oe,We,Xe,tr){var ir=Xe-Oe,je=tr-We,Ke=.5-Oe,Ee=.5-We,ze=ir*ir+je*je,Qe=ir*Ke+je*Ee;if(Qe>0&&Qe<ze){var er=Ke*je-Ee*ir;if(er*er<ze)return!0}}var j,G;function q(Oe,We){var Xe=Oe[0]/u,tr=Oe[1]/s,ir=Math.max(0,-Xe,Xe-1,-tr,tr-1);return ir&&j!==void 0&&K(Xe,tr,j,G)&&(ir=0),ir&&We&&K(Xe,tr,We[0]/u,We[1]/s)&&(ir=0),(1+Db.toleranceGrowth*ir)*x}function J(Oe,We){var Xe=Oe[0]-We[0],tr=Oe[1]-We[1];return Math.sqrt(Xe*Xe+tr*tr)}var te=Db.maxScreensAway,Z=-u*te,ie=u*(1+te),Q=-s*te,re=s*(1+te),ue=[[Z,Q,ie,Q],[ie,Q,ie,re],[ie,re,Z,re],[Z,re,Z,Q]],ee,ae,ce,Te,ke,Se;function ge(Oe,We){for(var Xe=[],tr=0,ir=0;ir<4;ir++){var je=ue[ir],Ke=Dfe(Oe[0],Oe[1],We[0],We[1],je[0],je[1],je[2],je[3]);Ke&&(!tr||Math.abs(Ke.x-Xe[0][0])>1||Math.abs(Ke.y-Xe[0][1])>1)&&(Ke=[Ke.x,Ke.y],tr&&J(Ke,Oe)<J(Xe[0],Oe)?Xe.unshift(Ke):Xe.push(Ke),tr++)}return Xe}function Le(Oe){if(Oe[0]<Z||Oe[0]>ie||Oe[1]<Q||Oe[1]>re)return[YP(Oe[0],Z,ie),YP(Oe[1],Q,re)]}function Ce(Oe,We){if(Oe[0]===We[0]&&(Oe[0]===Z||Oe[0]===ie)||Oe[1]===We[1]&&(Oe[1]===Q||Oe[1]===re))return!0}function le(Oe,We){var Xe=[],tr=Le(Oe),ir=Le(We);return tr&&ir&&Ce(tr,ir)||(tr&&Xe.push(tr),ir&&Xe.push(ir)),Xe}function Y(Oe,We,Xe){return function(tr,ir){var je=Le(tr),Ke=Le(ir),Ee=[];if(je&&Ke&&Ce(je,Ke))return Ee;je&&Ee.push(je),Ke&&Ee.push(Ke);var ze=2*id.constrain((tr[Oe]+ir[Oe])/2,We,Xe)-((je||tr)[Oe]+(Ke||ir)[Oe]);if(ze){var Qe;je&&Ke?Qe=ze>0==je[Oe]>Ke[Oe]?je:Ke:Qe=je||Ke,Qe[Oe]+=ze}return Ee}}var $;g==="linear"||g==="spline"?$=ge:g==="hv"||g==="vh"?$=le:g==="hvh"?$=Y(0,Z,ie):g==="vhv"&&($=Y(1,Q,re));function pe(Oe,We){var Xe=We[0]-Oe[0],tr=(We[1]-Oe[1])/Xe,ir=(Oe[1]*We[0]-We[1]*Oe[0])/Xe;return ir>0?[tr>0?Z:ie,re]:[tr>0?ie:Z,Q]}function oe(Oe){var We=Oe[0],Xe=Oe[1],tr=We===b[T-1][0],ir=Xe===b[T-1][1];if(!(tr&&ir))if(T>1){var je=We===b[T-2][0],Ke=Xe===b[T-2][1];tr&&(We===Z||We===ie)&&je?Ke?T--:b[T-1]=Oe:ir&&(Xe===Q||Xe===re)&&Ke?je?T--:b[T-1]=Oe:b[T++]=Oe}else b[T++]=Oe}function ve(Oe){b[T-1][0]!==Oe[0]&&b[T-1][1]!==Oe[1]&&oe([ce,Te]),oe(Oe),ke=null,ce=Te=0}var he=id.isArrayOrTypedArray(c);function me(Oe){if(Oe&&f&&(Oe.i=h,Oe.d=r,Oe.trace=n,Oe.marker=he?c[Oe.i]:c,Oe.backoff=f),j=Oe[0]/u,G=Oe[1]/s,ee=Oe[0]<Z?Z:Oe[0]>ie?ie:0,ae=Oe[1]<Q?Q:Oe[1]>re?re:0,ee||ae){if(!T)b[T++]=[ee||Oe[0],ae||Oe[1]];else if(ke){var We=$(ke,Oe);We.length>1&&(ve(We[0]),b[T++]=We[1])}else Se=$(b[T-1],Oe)[0],b[T++]=Se;var Xe=b[T-1];ee&&ae&&(Xe[0]!==ee||Xe[1]!==ae)?(ke&&(ce!==ee&&Te!==ae?oe(ce&&Te?pe(ke,Oe):[ce||ee,Te||ae]):ce&&Te&&oe([ce,Te])),oe([ee,ae])):ce-ee&&Te-ae&&oe([ee||ce,ae||Te]),ke=Oe,ce=ee,Te=ae}else ke&&ve($(ke,Oe)[0]),b[T++]=Oe}for(h=0;h<S;h++)if(_=V(h),!!_){for(T=0,ke=null,me(_),h++;h<S;h++){if(v=V(h),!v){if(p)continue;break}if(!w||!t.simplify){me(v);continue}var be=V(h+1);if(z=J(v,_),!(!(M&&(T===0||T===S-1))&&z<q(v,be)*k)){for(E=[(v[0]-_[0])/z,(v[1]-_[1])/z],A=_,I=z,P=F=B=0,D=!1,y=v,h++;h<r.length;h++){if(d=be,be=V(h+1),!d){if(p)continue;break}if(R=[d[0]-_[0],d[1]-_[1]],O=R[0]*E[1]-R[1]*E[0],F=Math.min(F,O),B=Math.max(B,O),B-F>q(d,be))break;y=d,L=R[0]*E[0]+R[1]*E[1],L>I?(I=L,v=d,D=!1):L<P&&(P=L,A=d,D=!0)}if(D?(me(v),y!==A&&me(A)):(A!==_&&me(A),y!==v&&me(v)),me(y),h>=r.length||!d)break;me(d),_=d}}ke&&oe([ce||ke[0],Te||ke[1]]),m.push(b.slice(0,T))}var ye=g.slice(g.length-1);if(f&&ye!=="h"&&ye!=="v"){for(var de=!1,_e=-1,Ae=[],Pe=0;Pe<m.length;Pe++)for(var Fe=0;Fe<m[Pe].length-1;Fe++){var Ye=m[Pe][Fe],qe=m[Pe][Fe+1],Be=Lfe.applyBackoff(qe,Ye);(Be[0]!==qe[0]||Be[1]!==qe[1])&&(de=!0),Ae[_e+1]||(_e++,Ae[_e]=[Ye,[Be[0],Be[1]]])}return de?Ae:m}return m}});var QP=xe((Lxe,KP)=>{"use strict";var $P={tonextx:1,tonexty:1,tonext:1};KP.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,c=-1,p=0,x=-1;for(o=0;o<n.length;o++)a=n[o][0].trace,i=a.stackgroup||"",i?i in s?u=s[i]:(u=s[i]=p,p++):a.fill in $P&&x>=0?u=x:(u=x=p,p++),u<c&&(f=!0),a._groupIndex=c=u;var g=n.slice();f&&g.sort(function(M,m){var k=M[0].trace,S=m[0].trace;return k._groupIndex-S._groupIndex||k.index-S.index});var w={};for(o=0;o<g.length;o++)a=g[o][0].trace,i=a.stackgroup||"",a.visible===!0?(a._nexttrace=null,a.fill in $P&&(l=w[i],a._prevtrace=l||null,l&&(l._nexttrace=a)),a._ownfill=a.fill&&(a.fill.slice(0,6)==="tozero"||a.fill==="toself"||a.fill.slice(0,2)==="to"&&!a._prevtrace),w[i]=a):a._prevtrace=a._nexttrace=a._ownfill=null;return g}});var tI=xe((Dxe,rI)=>{"use strict";var Ei=nt(),Rfe=Cr(),Yc=rr(),_u=Yc.ensureSingle,eI=Yc.identity,Xt=Mt(),wu=wa(),Ffe=JP(),Pfe=QP(),od=C5().tester;rI.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,c=Pfe(r,t,n);if(l=a.selectAll("g.trace").data(c,function(x){return x[0].trace.uid}),l.enter().append("g").attr("class",function(x){return"trace scatter trace"+x[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Ife(r,l,t),f){i&&(u=i());var p=Ei.transition().duration(o.duration).ease(o.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});p.each(function(){a.selectAll("g.trace").each(function(x,g){jP(r,g,t,x,c,this,o)})})}else l.each(function(x,g){jP(r,g,t,x,c,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function Ife(e,r,t){r.each(function(n){var a=_u(Ei.select(this),"g","fills");Xt.setClipUrl(a,t.layerClipId,e);var o=n[0].trace;o._ownFill=null,o._nextFill=null;var i=[];o._ownfill&&i.push("_ownFill"),o._nexttrace&&i.push("_nextFill");var l=a.selectAll("g").data(i,eI);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){o[u]=_u(Ei.select(this),"path","js-fill")})})}function jP(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;zfe(e,r,t,n,a);var s=!!i&&i.duration>0;function f(Y){return s?Y.transition():Y}var c=t.xaxis,p=t.yaxis,x=n[0].trace,g=x.line,w=Ei.select(o),M=_u(w,"g","errorbars"),m=_u(w,"g","lines"),k=_u(w,"g","points"),S=_u(w,"g","text");if(Rfe.getComponentMethod("errorbars","plot")(e,M,t,i),x.visible!==!0)return;f(w).style("opacity",x.opacity);var b,T,h=x.fill.charAt(x.fill.length-1);h!=="x"&&h!=="y"&&(h="");var _,y;h==="y"?(_=1,y=p.c2p(0,!0)):h==="x"&&(_=0,y=c.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=w;var v="",A=[],d=x._prevtrace,D=null,E=null;d&&(v=d._prevRevpath||"",T=d._nextFill,A=d._ownPolygons,D=d._fillsegments,E=d._fillElement);var R,z,I="",P="",L,F,B,O,V,K,j=[];x._polygons=[];var G=[],q=[],J=Yc.noop;if(b=x._ownFill,wu.hasLines(x)||x.fill!=="none"){T&&T.datum(n),["hv","vh","hvh","vhv"].indexOf(g.shape)!==-1?(L=Xt.steps(g.shape),F=Xt.steps(g.shape.split("").reverse().join(""))):g.shape==="spline"?L=F=function(Y){var $=Y[Y.length-1];return Y.length>1&&Y[0][0]===$[0]&&Y[0][1]===$[1]?Xt.smoothclosed(Y.slice(1),g.smoothing):Xt.smoothopen(Y,g.smoothing)}:L=F=function(Y){return"M"+Y.join("L")},B=function(Y){return F(Y.reverse())},q=Ffe(n,{xaxis:c,yaxis:p,trace:x,connectGaps:x.connectgaps,baseTolerance:Math.max(g.width||1,3)/4,shape:g.shape,backoff:g.backoff,simplify:g.simplify,fill:x.fill}),G=new Array(q.length);var te=0;for(u=0;u<q.length;u++){var Z,ie=q[u];!Z||!h?(Z=ie.slice(),G[te]=Z,te++):Z.push.apply(Z,ie)}x._fillElement=null,x._fillExclusionElement=E,x._fillsegments=G.slice(0,te),G=x._fillsegments,q.length&&(O=q[0][0].slice(),V=q[q.length-1],K=V[V.length-1].slice()),J=function(Y){return function($){if(R=L($),z=B($),I?h?(I+="L"+R.slice(1),P=z+("L"+P.slice(1))):(I+="Z"+R,P=z+"Z"+P):(I=R,P=z),wu.hasLines(x)){var pe=Ei.select(this);if(pe.datum(n),Y)f(pe.style("opacity",0).attr("d",R).call(Xt.lineGroupStyle)).style("opacity",1);else{var oe=f(pe);oe.attr("d",R),Xt.singleLineStyle(n,oe)}}}}}var Q=m.selectAll(".js-line").data(q);f(Q.exit()).style("opacity",0).remove(),Q.each(J(!1)),Q.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(Xt.lineGroupStyle).each(J(!0)),Xt.setClipUrl(Q,t.layerClipId,e);function re(Y){f(Y).attr("d","M0,0Z")}var ue=function(){var Y=new Array(G.length);for(u=0;u<G.length;u++)Y[u]=od(G[u]);return Y},ee=function(Y){var $,pe;if(!Y||Y.length===0)for($=new Array(G.length),pe=0;pe<G.length;pe++){var oe=G[pe][0].slice(),ve=G[pe][G[pe].length-1].slice();oe[_]=ve[_]=y;var he=[ve,oe],me=he.concat(G[pe]);$[pe]=od(me)}else{for($=new Array(Y.length-1+G.length),pe=0;pe<Y.length-1;pe++)$[pe]=od(Y[pe]);var be=Y[Y.length-1].slice();for(be.reverse(),pe=0;pe<G.length;pe++)$[Y.length-1+pe]=od(G[pe].concat(be))}return $};q.length?(b?(b.datum(n),O&&K&&(h?(O[_]=K[_]=y,f(b).attr("d","M"+K+"L"+O+"L"+I.slice(1)).call(Xt.singleFillStyle,e),j=ee(null)):(f(b).attr("d",I+"Z").call(Xt.singleFillStyle,e),j=ue())),x._polygons=j,x._fillElement=b):T&&(x.fill.slice(0,6)==="tonext"&&I&&v?(x.fill==="tonext"?(f(T).attr("d",I+"Z"+v+"Z").call(Xt.singleFillStyle,e),j=ue(),x._polygons=j.concat(A)):(f(T).attr("d",I+"L"+v.slice(1)+"Z").call(Xt.singleFillStyle,e),j=ee(D),x._polygons=j),x._fillElement=T):re(T)),x._prevRevpath=P):(b?re(b):T&&re(T),x._prevRevpath=null),x._ownPolygons=j;function ae(Y){return Y.filter(function($){return!$.gap&&$.vis})}function ce(Y){return Y.filter(function($){return $.vis})}function Te(Y){return Y.filter(function($){return!$.gap})}function ke(Y){return Y.id}function Se(Y){if(Y.ids)return ke}function ge(){return!1}function Le(Y,$,pe){var oe,ve,he,me=pe[0].trace,be=wu.hasMarkers(me),ye=wu.hasText(me),de=Se(me),_e=ge,Ae=ge;if(be||ye){var Pe=eI,Fe=me.stackgroup,Ye=Fe&&e._fullLayout._scatterStackOpts[c._id+p._id][Fe].stackgaps==="infer zero";me.marker.maxdisplayed||me._needsCull?Pe=Ye?ce:ae:Fe&&!Ye&&(Pe=Te),be&&(_e=Pe),ye&&(Ae=Pe)}ve=Y.selectAll("path.point"),oe=ve.data(_e,de);var qe=oe.enter().append("path").classed("point",!0);s&&qe.call(Xt.pointStyle,me,e).call(Xt.translatePoints,c,p).style("opacity",0).transition().style("opacity",1),oe.order();var Be;be&&(Be=Xt.makePointStyleFns(me)),oe.each(function(Oe){var We=Ei.select(this),Xe=f(We);he=Xt.translatePoint(Oe,Xe,c,p),he?(Xt.singlePointStyle(Oe,Xe,me,Be,e),t.layerClipId&&Xt.hideOutsideRangePoint(Oe,Xe,c,p,me.xcalendar,me.ycalendar),me.customdata&&We.classed("plotly-customdata",Oe.data!==null&&Oe.data!==void 0)):Xe.remove()}),s?oe.exit().transition().style("opacity",0).remove():oe.exit().remove(),ve=$.selectAll("g"),oe=ve.data(Ae,de),oe.enter().append("g").classed("textpoint",!0).append("text"),oe.order(),oe.each(function(Oe){var We=Ei.select(this),Xe=f(We.select("text"));he=Xt.translatePoint(Oe,Xe,c,p),he?t.layerClipId&&Xt.hideOutsideRangePoint(Oe,We,c,p,me.xcalendar,me.ycalendar):We.remove()}),oe.selectAll("text").call(Xt.textPointStyle,me,e).each(function(Oe){var We=c.c2p(Oe.x),Xe=p.c2p(Oe.y);Ei.select(this).selectAll("tspan.line").each(function(){f(Ei.select(this)).attr({x:We,y:Xe})})}),oe.exit().remove()}k.datum(n),S.datum(n),Le(k,S,n);var Ce=x.cliponaxis===!1,le=Ce?null:t.layerClipId;Xt.setClipUrl(k,le,e),Xt.setClipUrl(S,le,e)}function zfe(e,r,t,n,a){var o=t.xaxis,i=t.yaxis,l=Ei.extent(Yc.simpleMap(o.range,o.r2c)),u=Ei.extent(Yc.simpleMap(i.range,i.r2c)),s=n[0].trace;if(wu.hasMarkers(s)){var f=s.marker.maxdisplayed;if(f!==0){var c=n.filter(function(w){return w.x>=l[0]&&w.x<=l[1]&&w.y>=u[0]&&w.y<=u[1]}),p=Math.ceil(c.length/f),x=0;a.forEach(function(w,M){var m=w[0].trace;wu.hasMarkers(m)&&m.marker.maxdisplayed>0&&M<r&&x++});var g=Math.round(x*p/3+Math.floor(x/3)*p/7.1);n.forEach(function(w){delete w.vis}),c.forEach(function(w,M){Math.round((M+g)%p)===0&&(w.vis=!0)})}}}});var aI=xe((Rxe,nI)=>{"use strict";nI.exports={container:"marker",min:"cmin",max:"cmax"}});var oI=xe((Fxe,iI)=>{"use strict";var ld=Bt();iI.exports=function(r,t,n){var a={},o={_fullLayout:n},i=ld.getFromTrace(o,t,"x"),l=ld.getFromTrace(o,t,"y"),u=r.orig_x;u===void 0&&(u=r.x);var s=r.orig_y;return s===void 0&&(s=r.y),a.xLabel=ld.tickText(i,i.c2l(u),!0).text,a.yLabel=ld.tickText(l,l.c2l(s),!0).text,a}});var Ib=xe((Pxe,lI)=>{"use strict";var Rb=nt(),Mu=Mt(),Nfe=Cr();function qfe(e){var r=Rb.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=Rb.select(this),a=t.trace||t[0].trace;Fb(n,a,e)}),r.selectAll("g.text").each(function(t){var n=Rb.select(this),a=t.trace||t[0].trace;Pb(n,a,e)}),r.selectAll("g.trace path.js-line").call(Mu.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Mu.fillGroupStyle,e,!1),Nfe.getComponentMethod("errorbars","style")(r)}function Fb(e,r,t){Mu.pointStyle(e.selectAll("path.point"),r,t)}function Pb(e,r,t){Mu.textPointStyle(e.selectAll("text"),r,t)}function Bfe(e,r,t){var n=r[0].trace;n.selectedpoints?(Mu.selectedPointStyle(t.selectAll("path.point"),n),Mu.selectedTextStyle(t.selectAll("text"),n)):(Fb(t,n,e),Pb(t,n,e))}lI.exports={style:qfe,stylePoints:Fb,styleText:Pb,styleOnSelect:Bfe}});var uI=xe((Ixe,sI)=>{"use strict";var Tu=Xr(),Ofe=wa();sI.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Tu.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var o=t.mcc||t.mc||(r.marker||{}).color,i=t.mlcc||((r.marker||{}).line||{}).color;return a=o&&Tu.opacity(o)?o:i&&Tu.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?Tu.opacity(a)<.3?Tu.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Tu.opacity(n)&&Ofe.hasLines(r)&&r.line.width?n:r.fillcolor)}});var vI=xe((zxe,cI)=>{"use strict";var sd=rr(),fI=so(),Ufe=Cr(),Hfe=uI(),zb=Xr(),Vfe=sd.fillText;cI.exports=function(r,t,n,a){var o=r.cd,i=o[0].trace,l=r.xa,u=r.ya,s=l.c2p(t),f=u.c2p(n),c=[s,f],p=i.hoveron||"",x=i.mode.indexOf("markers")!==-1?3:.5,g=!!i.xperiodalignment,w=!!i.yperiodalignment;if(p.indexOf("points")!==-1){var M=function(P){if(g){var L=l.c2p(P.xStart),F=l.c2p(P.xEnd);return s>=Math.min(L,F)&&s<=Math.max(L,F)?0:1/0}var B=Math.max(3,P.mrc||0),O=1-1/B,V=Math.abs(l.c2p(P.x)-s);return V<B?O*V/B:V-B+O},m=function(P){if(w){var L=u.c2p(P.yStart),F=u.c2p(P.yEnd);return f>=Math.min(L,F)&&f<=Math.max(L,F)?0:1/0}var B=Math.max(3,P.mrc||0),O=1-1/B,V=Math.abs(u.c2p(P.y)-f);return V<B?O*V/B:V-B+O},k=function(P){var L=Math.max(x,P.mrc||0),F=l.c2p(P.x)-s,B=u.c2p(P.y)-f;return Math.max(Math.sqrt(F*F+B*B)-L,1-x/L)},S=fI.getDistanceFunction(a,M,m,k);if(fI.getClosest(o,S,r),r.index!==!1){var b=o[r.index],T=l.c2p(b.x,!0),h=u.c2p(b.y,!0),_=b.mrc||1;r.index=b.i;var y=o[0].t.orientation,v=y&&(b.sNorm||b.s),A=y==="h"?v:b.orig_x!==void 0?b.orig_x:b.x,d=y==="v"?v:b.orig_y!==void 0?b.orig_y:b.y;return sd.extendFlat(r,{color:Hfe(i,b),x0:T-_,x1:T+_,xLabelVal:A,y0:h-_,y1:h+_,yLabelVal:d,spikeDistance:k(b),hovertemplate:i.hovertemplate}),Vfe(b,i,r),Ufe.getComponentMethod("errorbars","hoverInfo")(b,i,r),[r]}}function D(P){if(!P)return!1;var L=P.node();try{var F=new DOMPoint(c[0],c[1]);return L.isPointInFill(F)}catch(O){var B=L.ownerSVGElement.createSVGPoint();return B.x=c[0],B.y=c[1],L.isPointInFill(B)}}function E(P){var L,F=[],B=1/0,O=-1/0,V=1/0,K=-1/0,j;for(L=0;L<P.length;L++){var G=P[L];G.contains(c)&&(F.push(G),V=Math.min(V,G.ymin),K=Math.max(K,G.ymax))}if(F.length===0)return null;V=Math.max(V,0),K=Math.min(K,u._length),j=(V+K)/2;var q,J,te,Z,ie,Q,re;for(L=0;L<F.length;L++)for(J=F[L].pts,q=1;q<J.length;q++)Q=J[q-1][1],re=J[q][1],Q>j!=re>=j&&(Z=J[q-1][0],ie=J[q][0],re-Q&&(te=Z+(ie-Z)*(j-Q)/(re-Q),B=Math.min(B,te),O=Math.max(O,te)));return B=Math.max(B,0),O=Math.min(O,l._length),{x0:B,x1:O,y0:j,y1:j}}if(p.indexOf("fills")!==-1&&i._fillElement){var R=D(i._fillElement)&&!D(i._fillExclusionElement);if(R){var z=E(i._polygons);z===null&&(z={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var I=zb.defaultLine;return zb.opacity(i.fillcolor)?I=i.fillcolor:zb.opacity((i.line||{}).color)&&(I=i.line.color),sd.extendFlat(r,{distance:r.maxHoverDistance,x0:z.x0,x1:z.x1,y0:z.y0,y1:z.y1,color:I,hovertemplate:!1}),delete r.index,i.text&&!sd.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var pI=xe((Nxe,dI)=>{"use strict";var hI=wa();dI.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,c,p=l.mode&&!hI.hasMarkers(l)&&!hI.hasText(l);if(p)return[];if(t===!1)for(u=0;u<n.length;u++)n[u].selected=0;else for(u=0;u<n.length;u++)s=n[u],f=a.c2p(s.x),c=o.c2p(s.y),s.i!==null&&t.contains([f,c],!1,u,r)?(i.push({pointNumber:s.i,x:a.c2d(s.x),y:o.c2d(s.y)}),s.selected=1):s.selected=0;return i}});var yI=xe((qxe,gI)=>{"use strict";gI.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var qb=xe((Bxe,xI)=>{"use strict";var ud=Cr().traceIs,Nb=tm();xI.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(Gfe(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function Gfe(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=Yfe(r,t,n);if(o){if(o.type==="histogram"&&n==={v:"y",h:"x"}[o.orientation||"v"]){e.type="linear";return}var i=n+"calendar",l=o[i],u={noMultiCategory:!ud(o,"cartesian")||ud(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,bI(o,n)){var s=mI(o),f=[];for(a=0;a<r.length;a++){var c=r[a];!ud(c,"box-violin")||(c[n+"axis"]||n)!==t||(c[s]!==void 0?f.push(c[s][0]):c.name!==void 0?f.push(c.name):f.push("text"),c[i]!==l&&(l=void 0))}e.type=Nb(f,l,u)}else if(o.type==="splom"){var p=o.dimensions,x=p[o._axesDim[t]];x.visible&&(e.type=Nb(x.values,l,u))}else e.type=Nb(o[n]||[o[n+"0"]],l,u)}}}function Yfe(e,r,t){for(var n=0;n<e.length;n++){var a=e[n];if(a.type==="splom"&&a._length>0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(bI(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function mI(e){return{v:"x",h:"y"}[e.orientation||"v"]}function bI(e,r){var t=mI(e),n=ud(e,"box-violin");return n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var wI=xe((Oxe,_I)=>{"use strict";var Xfe=sa().isTypedArraySpec;function Wfe(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,o,i;if(r.axData)a=r.axData;else for(a=[],o=0;o<r.data.length;o++){var l=r.data[o];l[t+"axis"]===e._id&&a.push(l)}for(o=0;o<a.length;o++){var u=a[o][t];for(i=0;i<u.length;i++){var s=u[i];s!=null&&(n[s]=1)}}return Object.keys(n)}_I.exports=function(r,t,n,a){if(t.type==="category"){var o=r.categoryarray,i=Array.isArray(o)&&o.length>0||Xfe(o),l;i&&(l="array");var u=n("categoryorder",l),s;u==="array"&&(s=n("categoryarray")),!i&&u==="array"&&(u=t.categoryorder="trace"),u==="trace"?t._initialCategories=[]:u==="array"?t._initialCategories=s.slice():(s=Wfe(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var AI=xe((Uxe,TI)=>{"use strict";var MI=Xr(),Zfe=Zi(),Jfe=rr();TI.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(y,v){return Jfe.coerce2(r,t,a.attributes,y,v)}var l=i("linecolor",o),u=i("linewidth"),s=n("showline",a.showLine||!!l||!!u);s||(delete t.linecolor,delete t.linewidth);var f=MI.mix(o,a.bgColor,a.blend||Zfe.lightFraction),c=i("gridcolor",f),p=i("gridwidth"),x=i("griddash"),g=n("showgrid",a.showGrid||!!c||!!p||!!x);if(g||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var w=MI.mix(t.gridcolor,a.bgColor,67),M=i("minor.gridcolor",w),m=i("minor.gridwidth",t.gridwidth||1),k=i("minor.griddash",t.griddash||"solid"),S=n("minor.showgrid",!!M||!!m||!!k);S||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var b=i("zerolinelayer"),T=i("zerolinecolor",o),h=i("zerolinewidth"),_=n("zeroline",a.showGrid||!!T||!!h);_||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var cd=xe((Hxe,DI)=>{"use strict";var kI=it(),$fe=Cr(),Xc=rr(),Kfe=wt(),Qfe=Mi(),Bb=$a(),SI=ky(),CI=Cy(),jfe=Dy(),ece=Ry(),rce=wI(),tce=AI(),nce=Mm(),EI=x1(),fd=mn().WEEKDAY_PATTERN,ace=mn().HOUR_PATTERN;DI.exports=function(r,t,n,a,o){var i=a.letter,l=a.font||{},u=a.splomStash||{},s=n("visible",!a.visibleDflt),f=t._template||{},c=t.type||f.type||"-",p;if(c==="date"){var x=$fe.getComponentMethod("calendars","handleDefaults");x(r,t,"calendar",a.calendar),a.noTicklabelmode||(p=n("ticklabelmode"))}!a.noTicklabelindex&&(c==="date"||c==="linear")&&n("ticklabelindex");var g="";(!a.noTicklabelposition||c==="multicategory")&&(g=Xc.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:p==="period"?["outside","inside"]:i==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",g.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),EI(t,o),nce(r,t,n,a),rce(r,t,n,a),a.noHover||(c!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var w=n("color"),M=w!==Bb.color.dflt?w:l.color,m=u.label||o._dfltTitle[i];if(ece(r,t,n,c,a),!s)return t;n("title.text",m),Xc.coerceFont(n,"title.font",l,{overrideDflt:{size:Xc.bigFont(l.size),color:M}}),SI(r,t,n,c);var k=a.hasMinor;if(k&&(Kfe.newContainer(t,"minor"),SI(r,t,n,c,{isMinor:!0})),jfe(r,t,n,c,a),CI(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,CI(r,t,n,a),a.isMinor=S}tce(r,t,n,{dfltColor:w,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:Bb}),k&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var b=c==="multicategory";if(!a.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),b){var T=n("showdividers");T&&(n("dividercolor"),n("dividerwidth"))}if(c==="date")if(Qfe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:ice}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var h=0;h<t.rangebreaks.length;h++)if(t.rangebreaks[h].pattern===fd){t._hasDayOfWeekBreaks=!0;break}if(EI(t,o),o._has("scattergl")||o._has("splom"))for(var _=0;_<a.data.length;_++){var y=a.data[_];(y.type==="scattergl"||y.type==="splom")&&(y.visible=!1,Xc.warn(y.type+" traces do not work on axes with rangebreaks. Setting trace "+y.index+" to `visible: false`."))}}return t};function ice(e,r,t){function n(p,x){return Xc.coerce(e,r,Bb.rangebreaks,p,x)}var a=n("enabled");if(a){var o=n("bounds");if(o&&o.length>=2){var i="",l,u;if(o.length===2){for(l=0;l<2;l++)if(u=LI(o[l]),u){i=fd;break}}var s=n("pattern",i);if(s===fd)for(l=0;l<2;l++)u=LI(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case fd:if(!kI(u)){r.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){r.enabled=!1;return}r.bounds[l]=o[l]=u;break;case ace:if(!kI(u)){r.enabled=!1;return}if(u=+u,u<0||u>24){r.enabled=!1;return}r.bounds[l]=o[l]=u;break}if(t.autorange===!1){var f=t.range;if(f[0]<f[1]){if(o[0]<f[0]&&o[1]>f[1]){r.enabled=!1;return}}else if(o[0]>f[0]&&o[1]<f[1]){r.enabled=!1;return}}}else{var c=n("values");if(c&&c.length)n("dvalue");else{r.enabled=!1;return}}}}var oce={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function LI(e){if(typeof e=="string")return oce[e.slice(0,3).toLowerCase()]}});var Ob=xe((Vxe,RI)=>{"use strict";var lce=it(),vd=rr();RI.exports=function(r,t,n,a){var o=a.counterAxes||[],i=a.overlayableAxes||[],l=a.letter,u=a.grid,s=a.overlayingDomain,f,c,p,x,g,w;u&&(c=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],c&&(p=u[l+"side"].split(" ")[0],x=u.domain[l][p==="right"||p==="top"?1:0])),c=c||[0,1],f=f||(lce(r.position)?"free":o[0]||"free"),p=p||(l==="x"?"bottom":"left"),x=x||0,g=0,w=!1;var M=vd.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),m=vd.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:p}},"side");if(M==="free"){if(l==="y"){var k=n("autoshift");k&&(x=m==="left"?s[0]:s[1],w=t.automargin?t.automargin:!0,g=m==="left"?-3:3),n("shift",g)}n("position",x)}n("automargin",w);var S=!1;if(i.length&&(S=vd.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(i),dflt:!1}},"overlaying")),!S){var b=n("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),vd.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var UI=xe((Gxe,OI)=>{"use strict";var Ys=rr(),FI=Xr(),sce=eo().isUnifiedHover,uce=$m(),PI=wt(),fce=R0(),II=$a(),cce=qb(),zI=cd(),vce=hc(),NI=Ob(),Hb=fn(),go=Hb.id2name,qI=Hb.name2id,hce=mn().AX_ID_PATTERN,BI=Cr(),hd=BI.traceIs,Ub=BI.getComponentMethod;function dd(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}OI.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},c={},p={},x={},g={},w,M;for(w=0;w<n.length;w++){var m=n[w];if(hd(m,"cartesian")){var k;if(m.xaxis)k=go(m.xaxis),dd(o,k,m);else if(m.xaxes)for(M=0;M<m.xaxes.length;M++)dd(o,go(m.xaxes[M]),m);var S;if(m.yaxis)S=go(m.yaxis),dd(o,S,m);else if(m.yaxes)for(M=0;M<m.yaxes.length;M++)dd(o,go(m.yaxes[M]),m);if(m.type==="funnel"?m.orientation==="h"?(k&&(i[k]=!0),S&&(c[S]=!0)):S&&(l[S]=!0):m.type==="image"?(S&&(p[S]=!0),k&&(p[k]=!0)):(S&&(s[S]=!0,f[S]=!0),(!hd(m,"carpet")||m.type==="carpet"&&!m._cheater)&&k&&(u[k]=!0)),m.type==="carpet"&&m._cheater&&k&&(i[k]=!0),hd(m,"2dMap")&&(x[k]=!0,x[S]=!0),hd(m,"oriented")){var b=m.orientation==="h"?S:k;g[b]=!0}}}var T=t._subplots,h=T.xaxis,_=T.yaxis,y=Ys.simpleMap(h,go),v=Ys.simpleMap(_,go),A=y.concat(v),d=FI.background;h.length&&_.length&&(d=Ys.coerce(r,t,fce,"plot_bgcolor"));var D=FI.combine(d,t.paper_bgcolor),E,R,z,I,P;function L(){var ve=o[E]||[];P._traceIndices=ve.map(function(he){return he.index}),P._annIndices=[],P._shapeIndices=[],P._selectionIndices=[],P._imgIndices=[],P._subplotsWith=[],P._counterAxes=[],P._name=P._attr=E,P._id=R}function F(ve,he){return Ys.coerce(I,P,II,ve,he)}function B(ve,he){return Ys.coerce2(I,P,II,ve,he)}function O(ve){return ve==="x"?_:h}function V(ve,he){for(var me=ve==="x"?y:v,be=[],ye=0;ye<me.length;ye++){var de=me[ye];de!==he&&!(r[de]||{}).overlaying&&be.push(qI(de))}return be}var K={x:O("x"),y:O("y")},j=K.x.concat(K.y),G={},q=[];function J(){var ve=I.matches;hce.test(ve)&&j.indexOf(ve)===-1&&(G[ve]=I.type,q=Object.keys(G))}var te=uce(r,t),Z=sce(te);for(w=0;w<A.length;w++){E=A[w],R=qI(E),z=E.charAt(0),Ys.isPlainObject(r[E])||(r[E]={}),I=r[E],P=PI.newContainer(t,E,z+"axis"),L();var ie=z==="x"&&!u[E]&&i[E]||z==="y"&&!s[E]&&l[E],Q=z==="y"&&(!f[E]&&c[E]||p[E]),re={hasMinor:!0,letter:z,font:t.font,outerTicks:x[E],showGrid:!g[E],data:o[E]||[],bgColor:D,calendar:t.calendar,automargin:!0,visibleDflt:ie,reverseDflt:Q,autotypenumbersDflt:a,splomStash:((t._splomAxes||{})[z]||{})[R],noAutotickangles:z==="y"};F("uirevision",t.uirevision),cce(I,P,F,re),zI(I,P,F,re,t);var ue=Z&&z===te.charAt(0),ee=B("spikecolor",Z?P.color:void 0),ae=B("spikethickness",Z?1.5:void 0),ce=B("spikedash",Z?"dot":void 0),Te=B("spikemode",Z?"across":void 0),ke=B("spikesnap"),Se=F("showspikes",!!ue||!!ee||!!ae||!!ce||!!Te||!!ke);Se||(delete P.spikecolor,delete P.spikethickness,delete P.spikedash,delete P.spikemode,delete P.spikesnap);var ge=go(I.overlaying),Le=[0,1];if(t[ge]!==void 0){var Ce=go(t[ge].anchor);t[Ce]!==void 0&&(Le=t[Ce].domain)}NI(I,P,F,{letter:z,counterAxes:K[z],overlayableAxes:V(z,E),grid:t.grid,overlayingDomain:Le}),F("title.standoff"),J(),P._input=I}for(w=0;w<q.length;){R=q[w++],E=go(R),z=E.charAt(0),Ys.isPlainObject(r[E])||(r[E]={}),I=r[E],P=PI.newContainer(t,E,z+"axis"),L();var le={letter:z,font:t.font,outerTicks:x[E],showGrid:!g[E],data:[],bgColor:D,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:a,splomStash:((t._splomAxes||{})[z]||{})[R]};F("uirevision",t.uirevision),P.type=G[R]||"linear",zI(I,P,F,le,t),NI(I,P,F,{letter:z,counterAxes:K[z],overlayableAxes:V(z,E),grid:t.grid}),F("fixedrange"),F("modebardisable"),J(),P._input=I}var Y=Ub("rangeslider","handleDefaults"),$=Ub("rangeselector","handleDefaults");for(w=0;w<y.length;w++)E=y[w],I=r[E],P=t[E],Y(r,t,E),P.type==="date"&&$(I,P,t,v,P.calendar),F("fixedrange"),F("modebardisable");for(w=0;w<v.length;w++){E=v[w],I=r[E],P=t[E];var pe=t[go(P.anchor)],oe=Ub("rangeslider","isVisible")(pe);F("fixedrange",oe),F("modebardisable")}vce.handleDefaults(r,t,{axIds:j.concat(q).sort(Hb.idSort),axHasImage:p})}});var GI=xe((Yxe,VI)=>{"use strict";var dce=nt(),HI=Cr(),pd=rr(),qa=Mt(),gd=Bt();VI.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){gd.redrawComponents(r);return}function i(M){var m=M.xaxis,k=M.yaxis;o._defs.select("#"+M.clipId+"> rect").call(qa.setTranslate,0,0).call(qa.setScale,1,1),M.plot.call(qa.setTranslate,m._offset,k._offset).call(qa.setScale,1,1);var S=M.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call(qa.setPointGroupScale,1,1),S.selectAll(".textpoint").call(qa.setTextPointsScale,1,1),S.call(qa.hideOutsideRangePoints,M)}function l(M,m){var k=M.plotinfo,S=k.xaxis,b=k.yaxis,T=S._length,h=b._length,_=!!M.xr1,y=!!M.yr1,v=[];if(_){var A=pd.simpleMap(M.xr0,S.r2l),d=pd.simpleMap(M.xr1,S.r2l),D=A[1]-A[0],E=d[1]-d[0];v[0]=(A[0]*(1-m)+m*d[0]-A[0])/(A[1]-A[0])*T,v[2]=T*(1-m+m*E/D),S.range[0]=S.l2r(A[0]*(1-m)+m*d[0]),S.range[1]=S.l2r(A[1]*(1-m)+m*d[1])}else v[0]=0,v[2]=T;if(y){var R=pd.simpleMap(M.yr0,b.r2l),z=pd.simpleMap(M.yr1,b.r2l),I=R[1]-R[0],P=z[1]-z[0];v[1]=(R[1]*(1-m)+m*z[1]-R[1])/(R[0]-R[1])*h,v[3]=h*(1-m+m*P/I),b.range[0]=S.l2r(R[0]*(1-m)+m*z[0]),b.range[1]=b.l2r(R[1]*(1-m)+m*z[1])}else v[1]=0,v[3]=h;gd.drawOne(r,S,{skipTitle:!0}),gd.drawOne(r,b,{skipTitle:!0}),gd.redrawComponents(r,[S._id,b._id]);var L=_?T/v[2]:1,F=y?h/v[3]:1,B=_?v[0]:0,O=y?v[1]:0,V=_?v[0]/v[2]*T:0,K=y?v[1]/v[3]*h:0,j=S._offset-V,G=b._offset-K;k.clipRect.call(qa.setTranslate,B,O).call(qa.setScale,1/L,1/F),k.plot.call(qa.setTranslate,j,G).call(qa.setScale,L,F),qa.setPointGroupScale(k.zoomScalePts,1/L,1/F),qa.setTextPointsScale(k.zoomScaleTxt,1/L,1/F)}var u;a&&(u=a());function s(){for(var M={},m=0;m<t.length;m++){var k=t[m],S=k.plotinfo.xaxis,b=k.plotinfo.yaxis;k.xr1&&(M[S._name+".range"]=k.xr1.slice()),k.yr1&&(M[b._name+".range"]=k.yr1.slice())}return u&&u(),HI.call("relayout",r,M).then(function(){for(var T=0;T<t.length;T++)i(t[T].plotinfo)})}function f(){for(var M={},m=0;m<t.length;m++){var k=t[m],S=k.plotinfo.xaxis,b=k.plotinfo.yaxis;k.xr0&&(M[S._name+".range"]=k.xr0.slice()),k.yr0&&(M[b._name+".range"]=k.yr0.slice())}return HI.call("relayout",r,M).then(function(){for(var T=0;T<t.length;T++)i(t[T].plotinfo)})}var c,p,x,g=dce.ease(n.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(x),x=null,f()});function w(){p=Date.now();for(var M=Math.min(1,(p-c)/n.duration),m=g(M),k=0;k<t.length;k++)l(t[k],m);p-c>n.duration?(s(),x=window.cancelAnimationFrame(w)):x=window.requestAnimationFrame(w)}return c=Date.now(),x=window.requestAnimationFrame(w),Promise.resolve()}});var Vb=xe(Vn=>{"use strict";var md=nt(),YI=Cr(),Xs=rr(),pce=bn(),gce=Mt(),XI=Uf().getModuleCalcData,Rl=fn(),Li=mn(),yce=hl(),ft=Xs.ensureSingle;function yd(e,r,t){return Xs.ensureSingle(e,r,t,function(n){n.datum(t)})}var Ws=Li.zindexSeparator;Vn.name="cartesian";Vn.attr=["xaxis","yaxis"];Vn.idRoot=["x","y"];Vn.idRegex=Li.idRegex;Vn.attrRegex=Li.attrRegex;Vn.attributes=yI();Vn.layoutAttributes=$a();Vn.supplyLayoutDefaults=UI();Vn.transitionAxes=GI();Vn.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,o=t.cartesian,i=o,l={},u={},s,f,c;for(s=0;s<i.length;s++){var p=i[s].split("y");l[p[0]]=1,u["y"+p[1]]=1}for(s=0;s<n.length;s++)f=n[s],l[f]||(c=(e[Rl.id2name(f)]||{}).anchor,Li.idRegex.y.test(c)||(c="y"),o.push(f+c),i.push(f+c),u[c]||(u[c]=1,Xs.pushUnique(a,c)));for(s=0;s<a.length;s++)c=a[s],u[c]||(f=(e[Rl.id2name(c)]||{}).anchor,Li.idRegex.x.test(f)||(f="x"),o.push(f+c),i.push(f+c),l[f]||(l[f]=1,Xs.pushUnique(n,f)));if(!i.length){f="",c="";for(var x in e)if(Li.attrRegex.test(x)){var g=x.charAt(0);g==="x"?(!f||+x.slice(5)<+f.slice(5))&&(f=x):(!c||+x.slice(5)<+c.slice(5))&&(c=x)}f=f?Rl.name2id(f):"x",c=c?Rl.name2id(c):"y",n.push(f),a.push(c),o.push(f+c)}};Vn.plot=function(e,r,t,n){var a=e._fullLayout,o=a._subplots.cartesian,i=e.calcdata,l;if(!Array.isArray(r))for(r=[],l=0;l<i.length;l++)r.push(l);for(var u=a._zindices,s=0;s<u.length;s++){var f=u[s];for(l=0;l<o.length;l++){var c=o[l],p=a._plots[c];if(s>0){var x=p.id;if(x.indexOf(Ws)!==-1)continue;x+=Ws+(s+1),p=Xs.extendFlat({},p,{id:x,plot:a._cartesianlayer.selectAll(".subplot").select("."+x)})}for(var g=[],w,M=0;M<i.length;M++){var m=i[M],k=m[0].trace;f===(k.zorder||0)&&k.xaxis+k.yaxis===c&&((r.indexOf(k.index)!==-1||k.carpet)&&(w&&w[0].trace.xaxis+w[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(k.fill)!==-1&&g.indexOf(w)===-1&&g.push(w),g.push(m)),w=m)}WI(e,p,g,t,n)}}};function WI(e,r,t,n,a){for(var o=Li.traceLayerClasses,i=e._fullLayout,l=i._zindices,u=i._modules,s,f,c,p=[],x=[],g=0;g<l.length;g++)for(var w=l[g],M=0;M<u.length;M++){s=u[M];var m=s.name,k=YI.modules[m].categories;if(k.svg){var S=s.layerName||m+"layer",b=S+(g?Number(g)+1:""),T=s.plot;f=XI(t,T,w),c=f[0],t=f[1],c.length&&p.push({i:o.indexOf(S),zindex:g,className:b,plotMethod:T,cdModule:c}),k.zoomScale&&x.push("."+b)}}p.sort(function(y,v){return(y.zindex||0)-(v.zindex||0)||y.i-v.i});var h=r.plot.selectAll("g.mlayer").data(p,function(y){return y.className});if(h.enter().append("g").attr("class",function(y){return y.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),h.exit().remove(),h.order(),h.each(function(y){var v=md.select(this),A=y.className;y.plotMethod(e,r,y.cdModule,v,n,a),Li.clipOnAxisFalseQuery.indexOf("."+A)===-1&&gce.setClipUrl(v,r.layerClipId,e)}),i._has("scattergl")&&(s=YI.getModule("scattergl"),c=XI(t,s)[0],s.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(Li.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),x.length)){var _=r.plot.selectAll(x.join(",")).selectAll(".trace");r.zoomScalePts=_.selectAll("path.point"),r.zoomScaleTxt=_.selectAll(".textpoint")}}Vn.clean=function(e,r,t,n){var a=n._plots||{},o=r._plots||{},i=n._subplots||{},l,u,s;if(n._hasOnlyLargeSploms&&!r._hasOnlyLargeSploms)for(s in a)l=a[s],l.plotgroup&&l.plotgroup.remove();var f=n._has&&n._has("gl"),c=r._has&&r._has("gl");if(f&&!c)for(s in a)l=a[s],l._scene&&l._scene.destroy();if(i.xaxis&&i.yaxis){var p=Rl.listIds({_fullLayout:n});for(u=0;u<p.length;u++){var x=p[u];r[Rl.id2name(x)]||n._infolayer.selectAll(".g-"+x+"title").remove()}}var g=n._has&&n._has("cartesian"),w=r._has&&r._has("cartesian");if(g&&!w)JI(n._cartesianlayer.selectAll(".subplot"),n),n._defs.selectAll(".axesclip").remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(i.cartesian)for(u=0;u<i.cartesian.length;u++){var M=i.cartesian[u];if(M.indexOf(Ws)===-1&&!o[M]){var m="."+M+",."+M+"-x,."+M+"-y";n._cartesianlayer.selectAll(m).remove(),$I(M,n)}}};Vn.drawFramework=function(e){var r=e._fullLayout,t=e.calcdata,n,a={};for(n=0;n<t.length;n++){var o=t[n][0],i=o.trace,l=i.zorder||0;a[l]||(a[l]=[]),a[l].push(o)}var u=Object.keys(a).map(Number).sort(Xs.sorterAsc);u.length||(u=[0]),r._zindices=u;var s=mce(e),f=s.length,c=[];for(n=0;n<f;n++)c[n]=s[n].slice();for(var p=1;p<u.length;p++){var x=[];for(n=0;n<f;n++)x[n]=s[n].slice(),x[n][0]+=Ws+(p+1);c=c.concat(x)}var g=r._cartesianlayer.selectAll(".subplot").data(c,String);g.enter().append("g").attr("class",function(w){return"subplot "+w[0]}),g.order(),g.exit().call(JI,r),g.each(function(w){var M=w[0],m=M.indexOf(Ws),k=m!==-1,S=k?M.slice(0,m):M,b=r._plots[M];b||(b=Xs.extendFlat({},r._plots[S]),b&&(b.id=M,r._plots[M]=b,r._subplots.cartesian.push(M))),b&&(b.plotgroup=md.select(this),ZI(e,b),k||(b.draglayer=ft(r._draggers,"g",M)))})};Vn.rangePlot=function(e,r,t){ZI(e,r),WI(e,r,t),pce.style(e)};function mce(e){var r=e._fullLayout,t=r._zindices.length,n=r._subplots.cartesian,a=n.length,o,i,l,u,s,f,c=[],p=[];for(o=0;o<a;o++){l=n[o],u=r._plots[l],s=u.xaxis,f=u.yaxis;var x=s._mainAxis,g=f._mainAxis,w=x._id+g._id,M=r._plots[w];u.overlays=[],w!==l&&M?(u.mainplot=w,u.mainplotinfo=M,p.push(l)):(u.mainplot=void 0,u.mainplotinfo=void 0,c.push(l))}for(o=0;o<p.length;o++)l=p[o],u=r._plots[l],u.mainplotinfo.overlays.push(u);var m=c.concat(p),k=[];for(o=0;o<a;o++){l=m[o],u=r._plots[l],s=u.xaxis,f=u.yaxis;for(var S=[],b=1;b<=t;b++){var T="";for(b>1&&(T+=Ws+b),S.push(l+T),i=0;i<u.overlays.length;i++)S.push(u.overlays[i].id+T)}S=S.concat([s.layer,f.layer,s.overlaying||"",f.overlaying||""]),k.push(S)}return k}function ZI(e,r){var t=e._fullLayout,n=r.plotgroup,a=r.id,o=a.indexOf(Ws),i=o!==-1,l=Li.layerValue2layerClass[r.xaxis.layer],u=Li.layerValue2layerClass[r.yaxis.layer],s=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=ft(n,"path","xlines-above"),r.ylines=ft(n,"path","ylines-above"),r.xaxislayer=ft(n,"g","xaxislayer-above"),r.yaxislayer=ft(n,"g","yaxislayer-above");else{if(!i){var p=ft(n,"g","layer-subplot");r.shapelayer=ft(p,"g","shapelayer"),r.imagelayer=ft(p,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=ft(n,"g","minor-gridlayer"),r.gridlayer=ft(n,"g","gridlayer"),r.zerolinelayer=ft(n,"g","zerolinelayer"));var x=ft(n,"g","layer-between");r.shapelayerBetween=ft(x,"g","shapelayer"),r.imagelayerBetween=ft(x,"g","imagelayer"),ft(n,"path","xlines-below"),ft(n,"path","ylines-below"),r.overlinesBelow=ft(n,"g","overlines-below"),ft(n,"g","xaxislayer-below"),ft(n,"g","yaxislayer-below"),r.overaxesBelow=ft(n,"g","overaxes-below")}r.overplot=ft(n,"g","overplot"),r.plot=ft(r.overplot,"g",a),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=ft(n,"g","zerolinelayer-above"),i||(r.xlines=ft(n,"path","xlines-above"),r.ylines=ft(n,"path","ylines-above"),r.overlinesAbove=ft(n,"g","overlines-above"),ft(n,"g","xaxislayer-above"),ft(n,"g","yaxislayer-above"),r.overaxesAbove=ft(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+u),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+u))}else{var g=c.plotgroup,w=a+"-x",M=a+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,ft(c.overlinesBelow,"path",w),ft(c.overlinesBelow,"path",M),ft(c.overaxesBelow,"g",w),ft(c.overaxesBelow,"g",M),r.plot=ft(c.overplot,"g",a),ft(c.overlinesAbove,"path",w),ft(c.overlinesAbove,"path",M),ft(c.overaxesAbove,"g",w),ft(c.overaxesAbove,"g",M),r.xlines=g.select(".overlines-"+l).select("."+w),r.ylines=g.select(".overlines-"+u).select("."+M),r.xaxislayer=g.select(".overaxes-"+l).select("."+w),r.yaxislayer=g.select(".overaxes-"+u).select("."+M)}i||(s||(yd(r.minorGridlayer,"g",r.xaxis._id),yd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(m){return m[0]}).sort(Rl.idSort),yd(r.gridlayer,"g",r.xaxis._id),yd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(m){return m[0]}).sort(Rl.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function JI(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=md.select(this);f.remove(),$I(s,r),t[s]=!0});for(var n in r._plots)for(var a=r._plots[n],o=a.overlays||[],i=0;i<o.length;i++){var l=o[i];t[l.id]&&l.plot.selectAll(".trace").remove()}}}function $I(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}Vn.toSVG=function(e){var r=e._fullLayout._glimages,t=md.select(e).selectAll(".svg-container"),n=t.filter(function(o,i){return i===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function a(){var o=this,i=o.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:yce.svg,"xlink:href":i,preserveAspectRatio:"none",x:0,y:0,width:o.style.width,height:o.style.height})}n.each(a)};Vn.updateFx=J5().updateFx});var QI=xe((Wxe,KI)=>{"use strict";var bd=wa();KI.exports={hasLines:bd.hasLines,hasMarkers:bd.hasMarkers,hasText:bd.hasText,isBubble:bd.isBubble,attributes:Os(),layoutAttributes:Kh(),supplyDefaults:lP(),crossTraceDefaults:cP(),supplyLayoutDefaults:hP(),calc:Tb().calc,crossTraceCalc:HP(),arraysToCalcdata:td(),plot:tI(),colorbar:aI(),formatLabels:oI(),style:Ib().style,styleOnSelect:Ib().styleOnSelect,hoverPoints:vI(),selectPoints:pI(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Vb(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var rz=xe((Zxe,ez)=>{"use strict";var bce=nt(),xce=Xr(),jI=O5(),Gb=rr(),_ce=Gb.strScale,wce=Gb.strRotate,Mce=Gb.strTranslate;ez.exports=function(r,t,n){var a=r.node(),o=jI[n.arrowhead||0],i=jI[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),s=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=o.backoff*l+n.standoff,p=i.backoff*u+n.startstandoff,x,g,w,M;if(a.nodeName==="line"){x={x:+r.attr("x1"),y:+r.attr("y1")},g={x:+r.attr("x2"),y:+r.attr("y2")};var m=x.x-g.x,k=x.y-g.y;if(w=Math.atan2(k,m),M=w+Math.PI,c&&p&&c+p>Math.sqrt(m*m+k*k)){R();return}if(c){if(c*c>m*m+k*k){R();return}var S=c*Math.cos(w),b=c*Math.sin(w);g.x+=S,g.y+=b,r.attr({x2:g.x,y2:g.y})}if(p){if(p*p>m*m+k*k){R();return}var T=p*Math.cos(w),h=p*Math.sin(w);x.x-=T,x.y-=h,r.attr({x1:x.x,y1:x.y})}}else if(a.nodeName==="path"){var _=a.getTotalLength(),y="";if(_<c+p){R();return}var v=a.getPointAtLength(0),A=a.getPointAtLength(.1);w=Math.atan2(v.y-A.y,v.x-A.x),x=a.getPointAtLength(Math.min(p,_)),y="0px,"+p+"px,";var d=a.getPointAtLength(_),D=a.getPointAtLength(_-.1);M=Math.atan2(d.y-D.y,d.x-D.x),g=a.getPointAtLength(Math.max(0,_-c));var E=y?p+c:c;y+=_-E+"px,"+_+"px",r.style("stroke-dasharray",y)}function R(){r.style("stroke-dasharray","0px,100px")}function z(I,P,L,F){I.path&&(I.noRotate&&(L=0),bce.select(a.parentNode).append("path").attr({class:r.attr("class"),d:I.path,transform:Mce(P.x,P.y)+wce(L*180/Math.PI)+_ce(F)}).style({fill:xce.rgb(n.arrowcolor),"stroke-width":0}))}s&&z(i,x,w,u),f&&z(o,g,M,l)}});var xd=xe((Jxe,oz)=>{"use strict";var tz=nt(),Yb=Cr(),Tce=bn(),Pl=rr(),Xb=Pl.strTranslate,Zc=Bt(),Zs=Xr(),Bo=Mt(),nz=so(),Wb=Un(),Zb=Ml(),Wc=Ai(),Ace=wt().arrayEditor,kce=rz();oz.exports={draw:Sce,drawOne:az,drawRaw:iz};function Sce(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&az(e,t);return Tce.previousPromises(e)}function az(e,r){var t=e._fullLayout,n=t.annotations[r]||{},a=Zc.getFromId(e,n.xref),o=Zc.getFromId(e,n.yref);a&&a.setScale(),o&&o.setScale(),iz(e,n,r,!1,a,o)}function Fl(e,r,t,n,a){var o=a[t],i=a[t+"ref"],l=t.indexOf("y")!==-1,u=Zc.getRefType(i)==="domain",s=l?n.h:n.w;return e?u?o+(l?-r:r)/e._length:e.p2r(e.r2p(o)+r):o+(l?-r:r)/s}function iz(e,r,t,n,a,o){var i=e._fullLayout,l=e._fullLayout._size,u=e._context.edits,s,f;n?(s="annotation-"+n,f=n+".annotations"):(s="annotation",f="annotations");var c=Ace(e.layout,f,r),p=c.modifyBase,x=c.modifyItem,g=c.getUpdateObj;i._infolayer.selectAll("."+s+'[data-index="'+t+'"]').remove();var w="clip"+i._uid+"_ann"+t;if(!r._input||r.visible===!1){tz.selectAll("#"+w).remove();return}var M={x:{},y:{}},m=+r.textangle||0,k=i._infolayer.append("g").classed(s,!0).attr("data-index",String(t)).style("opacity",r.opacity),S=k.append("g").classed("annotation-text-g",!0),b=u[r.showarrow?"annotationTail":"annotationPosition"],T=r.captureevents||u.annotationText||b;function h(F){var B={index:t,annotation:r._input,fullAnnotation:r,event:F};return n&&(B.subplotId=n),B}var _=S.append("g").style("pointer-events",T?"all":null).call(Zb,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",h(tz.event))});r.hovertext&&_.on("mouseover",function(){var F=r.hoverlabel,B=F.font,O=this.getBoundingClientRect(),V=e.getBoundingClientRect();nz.loneHover({x0:O.left-V.left,x1:O.right-V.left,y:(O.top+O.bottom)/2-V.top,text:r.hovertext,color:F.bgcolor,borderColor:F.bordercolor,fontFamily:B.family,fontSize:B.size,fontColor:B.color,fontWeight:B.weight,fontStyle:B.style,fontVariant:B.variant,fontShadow:B.fontShadow,fontLineposition:B.fontLineposition,fontTextcase:B.fontTextcase},{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:e})}).on("mouseout",function(){nz.loneUnhover(i._hoverlayer.node())});var y=r.borderwidth,v=r.borderpad,A=y+v,d=_.append("rect").attr("class","bg").style("stroke-width",y+"px").call(Zs.stroke,r.bordercolor).call(Zs.fill,r.bgcolor),D=r.width||r.height,E=i._topclips.selectAll("#"+w).data(D?[0]:[]);E.enter().append("clipPath").classed("annclip",!0).attr("id",w).append("rect"),E.exit().remove();var R=r.font,z=i._meta?Pl.templateString(r.text,i._meta):r.text,I=_.append("text").classed("annotation-text",!0).text(z);function P(F){return F.call(Bo.font,R).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),Wb.convertToTspans(F,e,L),F}function L(){var F=I.selectAll("a");if(F.size()===1&&F.text()===I.text()){var B=_.insert("a",":first-child").attr({"xlink:xlink:href":F.attr("xlink:href"),"xlink:xlink:show":F.attr("xlink:show")}).style({cursor:"pointer"});B.node().appendChild(d.node())}var O=_.select(".annotation-text-math-group"),V=!O.empty(),K=Bo.bBox((V?O:I).node()),j=K.width,G=K.height,q=r.width||j,J=r.height||G,te=Math.round(q+2*A),Z=Math.round(J+2*A);function ie(tr,ir){return ir==="auto"&&(tr<1/3?ir="left":tr>2/3?ir="right":ir="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[ir]}for(var Q=!1,re=["x","y"],ue=0;ue<re.length;ue++){var ee=re[ue],ae=r[ee+"ref"]||ee,ce=r["a"+ee+"ref"],Te={x:a,y:o}[ee],ke=(m+(ee==="x"?0:-90))*Math.PI/180,Se=te*Math.cos(ke),ge=Z*Math.sin(ke),Le=Math.abs(Se)+Math.abs(ge),Ce=r[ee+"anchor"],le=r[ee+"shift"]*(ee==="x"?1:-1),Y=M[ee],$,pe,oe,ve,he,me=Zc.getRefType(ae);if(Te&&me!=="domain"){var be=Te.r2fraction(r[ee]);(be<0||be>1)&&(ce===ae?(be=Te.r2fraction(r["a"+ee]),(be<0||be>1)&&(Q=!0)):Q=!0),$=Te._offset+Te.r2p(r[ee]),ve=.5}else{var ye=me==="domain";ee==="x"?(oe=r[ee],$=ye?Te._offset+Te._length*oe:$=l.l+l.w*oe):(oe=1-r[ee],$=ye?Te._offset+Te._length*oe:$=l.t+l.h*oe),ve=r.showarrow?.5:oe}if(r.showarrow){Y.head=$;var de=r["a"+ee];if(he=Se*ie(.5,r.xanchor)-ge*ie(.5,r.yanchor),ce===ae){var _e=Zc.getRefType(ce);_e==="domain"?(ee==="y"&&(de=1-de),Y.tail=Te._offset+Te._length*de):_e==="paper"?ee==="y"?(de=1-de,Y.tail=l.t+l.h*de):Y.tail=l.l+l.w*de:Y.tail=Te._offset+Te.r2p(de),pe=he}else Y.tail=$+de,pe=he+de;Y.text=Y.tail+he;var Ae=i[ee==="x"?"width":"height"];if(ae==="paper"&&(Y.head=Pl.constrain(Y.head,1,Ae-1)),ce==="pixel"){var Pe=-Math.max(Y.tail-3,Y.text),Fe=Math.min(Y.tail+3,Y.text)-Ae;Pe>0?(Y.tail+=Pe,Y.text+=Pe):Fe>0&&(Y.tail-=Fe,Y.text-=Fe)}Y.tail+=le,Y.head+=le}else he=Le*ie(ve,Ce),pe=he,Y.text=$+he;Y.text+=le,he+=le,pe+=le,r["_"+ee+"padplus"]=Le/2+pe,r["_"+ee+"padminus"]=Le/2-pe,r["_"+ee+"size"]=Le,r["_"+ee+"shift"]=he}if(Q){_.remove();return}var Ye=0,qe=0;if(r.align!=="left"&&(Ye=(q-j)*(r.align==="center"?.5:1)),r.valign!=="top"&&(qe=(J-G)*(r.valign==="middle"?.5:1)),V)O.select("svg").attr({x:A+Ye-1,y:A+qe}).call(Bo.setClipUrl,D?w:null,e);else{var Be=A+qe-K.top,Oe=A+Ye-K.left;I.call(Wb.positionText,Oe,Be).call(Bo.setClipUrl,D?w:null,e)}E.select("rect").call(Bo.setRect,A,A,q,J),d.call(Bo.setRect,y/2,y/2,te-y,Z-y),_.call(Bo.setTranslate,Math.round(M.x.text-te/2),Math.round(M.y.text-Z/2)),S.attr({transform:"rotate("+m+","+M.x.text+","+M.y.text+")"});var We=function(tr,ir){k.selectAll(".annotation-arrow-g").remove();var je=M.x.head,Ke=M.y.head,Ee=M.x.tail+tr,ze=M.y.tail+ir,Qe=M.x.text+tr,er=M.y.text+ir,wr=Pl.rotationXYMatrix(m,Qe,er),Vr=Pl.apply2DTransform(wr),Mr=Pl.apply2DTransform2(wr),Rr=+d.attr("width"),Qr=+d.attr("height"),Sr=Qe-.5*Rr,Wr=Sr+Rr,bt=er-.5*Qr,Jr=bt+Qr,lt=[[Sr,bt,Sr,Jr],[Sr,Jr,Wr,Jr],[Wr,Jr,Wr,bt],[Wr,bt,Sr,bt]].map(Mr);if(!lt.reduce(function(gt,Et){return gt^!!Pl.segmentsIntersect(je,Ke,je+1e6,Ke+1e6,Et[0],Et[1],Et[2],Et[3])},!1)){lt.forEach(function(gt){var Et=Pl.segmentsIntersect(Ee,ze,je,Ke,gt[0],gt[1],gt[2],gt[3]);Et&&(Ee=Et.x,ze=Et.y)});var Cn=r.arrowwidth,lr=r.arrowcolor,zr=r.arrowside,rt=k.append("g").style({opacity:Zs.opacity(lr)}).classed("annotation-arrow-g",!0),Or=rt.append("path").attr("d","M"+Ee+","+ze+"L"+je+","+Ke).style("stroke-width",Cn+"px").call(Zs.stroke,Zs.rgb(lr));if(kce(Or,zr,r),u.annotationPosition&&Or.node().parentNode&&!n){var Gr=je,pt=Ke;if(r.standoff){var at=Math.sqrt(Math.pow(je-Ee,2)+Math.pow(Ke-ze,2));Gr+=r.standoff*(Ee-je)/at,pt+=r.standoff*(ze-Ke)/at}var Ct=rt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ee-Gr)+","+(ze-pt),transform:Xb(Gr,pt)}).style("stroke-width",Cn+6+"px").call(Zs.stroke,"rgba(0,0,0,0)").call(Zs.fill,"rgba(0,0,0,0)"),Zt,St;Wc.init({element:Ct.node(),gd:e,prepFn:function(){var gt=Bo.getTranslate(_);Zt=gt.x,St=gt.y,a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0)},moveFn:function(gt,Et){var Lt=Vr(Zt,St),da=Lt[0]+gt,Wn=Lt[1]+Et;_.call(Bo.setTranslate,da,Wn),x("x",Fl(a,gt,"x",l,r)),x("y",Fl(o,Et,"y",l,r)),r.axref===r.xref&&x("ax",Fl(a,gt,"ax",l,r)),r.ayref===r.yref&&x("ay",Fl(o,Et,"ay",l,r)),rt.attr("transform",Xb(gt,Et)),S.attr({transform:"rotate("+m+","+da+","+Wn+")"})},doneFn:function(){Yb.call("_guiRelayout",e,g());var gt=document.querySelector(".js-notes-box-panel");gt&&gt.redraw(gt.selectedObj)}})}}};if(r.showarrow&&We(0,0),b){var Xe;Wc.init({element:_.node(),gd:e,prepFn:function(){Xe=S.attr("transform")},moveFn:function(tr,ir){var je="pointer";if(r.showarrow)r.axref===r.xref?x("ax",Fl(a,tr,"ax",l,r)):x("ax",r.ax+tr),r.ayref===r.yref?x("ay",Fl(o,ir,"ay",l.w,r)):x("ay",r.ay+ir),We(tr,ir);else{if(n)return;var Ke,Ee;if(a)Ke=Fl(a,tr,"x",l,r);else{var ze=r._xsize/l.w,Qe=r.x+(r._xshift-r.xshift)/l.w-ze/2;Ke=Wc.align(Qe+tr/l.w,ze,0,1,r.xanchor)}if(o)Ee=Fl(o,ir,"y",l,r);else{var er=r._ysize/l.h,wr=r.y-(r._yshift+r.yshift)/l.h-er/2;Ee=Wc.align(wr-ir/l.h,er,0,1,r.yanchor)}x("x",Ke),x("y",Ee),(!a||!o)&&(je=Wc.getCursor(a?.5:Ke,o?.5:Ee,r.xanchor,r.yanchor))}S.attr({transform:Xb(tr,ir)+Xe}),Zb(_,je)},clickFn:function(tr,ir){r.captureevents&&e.emit("plotly_clickannotation",h(ir))},doneFn:function(){Zb(_),Yb.call("_guiRelayout",e,g());var tr=document.querySelector(".js-notes-box-panel");tr&&tr.redraw(tr.selectedObj)}})}}u.annotationText?I.call(Wb.makeEditable,{delegate:_,gd:e}).call(P).on("edit",function(F){r.text=F,this.call(P),x("text",F),a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0),Yb.call("_guiRelayout",e,g())}):I.call(P)}});var vz=xe(($xe,cz)=>{"use strict";var lz=rr(),Cce=Cr(),sz=wt().arrayEditor;cz.exports={hasClickToShow:Ece,onClick:Lce};function Ece(e,r){var t=fz(e,r);return t.on.length>0||t.explicitOff.length>0}function Lce(e,r){var t=fz(e,r),n=t.on,a=t.off.concat(t.explicitOff),o={},i=e._fullLayout.annotations,l,u;if(n.length||a.length){for(l=0;l<n.length;l++)u=sz(e.layout,"annotations",i[n[l]]),u.modifyItem("visible",!0),lz.extendFlat(o,u.getUpdateObj());for(l=0;l<a.length;l++)u=sz(e.layout,"annotations",i[a[l]]),u.modifyItem("visible",!1),lz.extendFlat(o,u.getUpdateObj());return Cce.call("update",e,{},o)}}function fz(e,r){var t=e._fullLayout.annotations,n=[],a=[],o=[],i=(r||[]).length,l,u,s,f,c,p,x,g;for(l=0;l<t.length;l++)if(s=t[l],f=s.clicktoshow,f){for(u=0;u<i;u++)if(c=r[u],p=c.xaxis,x=c.yaxis,p._id===s.xref&&x._id===s.yref&&p.d2r(c.x)===uz(s._xclick,p)&&x.d2r(c.y)===uz(s._yclick,x)){s.visible?f==="onout"?g=a:g=o:g=n,g.push(l);break}u===i&&s.visible&&f==="onout"&&a.push(l)}return{on:n,off:a,explicitOff:o}}function uz(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var $b=xe((Kxe,hz)=>{"use strict";var Jb=rr(),Au=Xr();hz.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=Au.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),Jb.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var c=a("arrowside"),p,x;c.indexOf("end")!==-1&&(p=a("arrowhead"),x=a("arrowsize")),c.indexOf("start")!==-1&&(a("startarrowhead",p),a("startarrowsize",x)),a("arrowcolor",l?t.bordercolor:Au.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var g=a("hovertext"),w=n.hoverlabel||{};if(g){var M=a("hoverlabel.bgcolor",w.bgcolor||(Au.opacity(o)?Au.rgb(o):Au.defaultLine)),m=a("hoverlabel.bordercolor",w.bordercolor||Au.contrast(M)),k=Jb.extendFlat({},w.font);k.color||(k.color=m),Jb.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!g)}});var pz=xe((Qxe,dz)=>{"use strict";var Kb=rr(),Js=Bt(),Dce=Mi(),Rce=$b(),Fce=pu();dz.exports=function(r,t){Dce(r,t,{name:"annotations",handleItemDefaults:Pce})};function Pce(e,r,t){function n(S,b){return Kb.coerce(e,r,Fce,S,b)}var a=n("visible"),o=n("clicktoshow");if(a||o){Rce(e,r,t,n);for(var i=r.showarrow,l=["x","y"],u=[-10,-30],s={_fullLayout:t},f=0;f<2;f++){var c=l[f],p=Js.coerceRef(e,r,s,c,"","paper");if(p!=="paper"){var x=Js.getFromId(s,p);x._annIndices.push(r._index)}if(Js.coercePosition(r,s,n,p,c,.5),i){var g="a"+c,w=Js.coerceRef(e,r,s,g,"pixel",["pixel","paper"]);w!=="pixel"&&w!==p&&(w=r[g]="pixel");var M=w==="pixel"?u[f]:.4;Js.coercePosition(r,s,n,w,g,M)}n(c+"anchor"),n(c+"shift")}if(Kb.noneOrAll(e,r,["x","y"]),i&&Kb.noneOrAll(e,r,["ax","ay"]),o){var m=n("xclick"),k=n("yclick");r._xclick=m===void 0?r.x:Js.cleanPosition(m,s,r.xref),r._yclick=k===void 0?r.y:Js.cleanPosition(k,s,r.yref)}}}});var mz=xe((jxe,yz)=>{"use strict";var Qb=rr(),$s=Bt(),Ice=xd().draw;yz.exports=function(r){var t=r._fullLayout,n=Qb.filterVisible(t.annotations);if(n.length&&r._fullData.length)return Qb.syncOrAsync([Ice,zce],r)};function zce(e){var r=e._fullLayout;Qb.filterVisible(r.annotations).forEach(function(t){var n=$s.getFromId(e,t.xref),a=$s.getFromId(e,t.yref),o=$s.getRefType(t.xref),i=$s.getRefType(t.yref);t._extremes={},o==="range"&&gz(t,n),i==="range"&&gz(t,a)})}function gz(e,r){var t=r._id,n=t.charAt(0),a=e[n],o=e["a"+n],i=e[n+"ref"],l=e["a"+n+"ref"],u=e["_"+n+"padplus"],s=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],c=3*e.arrowsize*e.arrowwidth||0,p=c+f,x=c-f,g=3*e.startarrowsize*e.arrowwidth||0,w=g+f,M=g-f,m;if(l===i){var k=$s.findExtremes(r,[r.r2c(a)],{ppadplus:p,ppadminus:x}),S=$s.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,w),ppadminus:Math.max(s,M)});m={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else w=o?w+o:w,M=o?M-o:M,m=$s.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,p,w),ppadminus:Math.max(s,x,M)});e._extremes[t]=m}});var xz=xe((e4e,bz)=>{"use strict";var Nce=it(),qce=Xv();bz.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(!(o||i))return;var l=r._fullLayout.annotations,u=t._id.charAt(0),s,f;function c(x){var g=s[x],w=null;o?w=qce(g,t.range):w=Math.pow(10,g),Nce(w)||(w=null),a(f+x,w)}for(var p=0;p<l.length;p++)s=l[p],f="annotations["+p+"].",s[u+"ref"]===t._id&&c(u),s["a"+u+"ref"]===t._id&&c("a"+u)}});var Mz=xe((r4e,wz)=>{"use strict";var jb=xd(),_z=vz();wz.exports={moduleType:"component",name:"annotations",layoutAttributes:pu(),supplyLayoutDefaults:pz(),includeBasePlot:Dc()("annotations"),calcAutorange:mz(),draw:jb.draw,drawOne:jb.drawOne,drawRaw:jb.drawRaw,hasClickToShow:_z.hasClickToShow,onClick:_z.onClick,convertCoords:xz()}});var _d=xe((t4e,Tz)=>{"use strict";var kt=pu(),Bce=ea().overrideAll,Oce=wt().templatedArray;Tz.exports=Bce(Oce("annotation",{visible:kt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:kt.xanchor,xshift:kt.xshift,yanchor:kt.yanchor,yshift:kt.yshift,text:kt.text,textangle:kt.textangle,font:kt.font,width:kt.width,height:kt.height,opacity:kt.opacity,align:kt.align,valign:kt.valign,bgcolor:kt.bgcolor,bordercolor:kt.bordercolor,borderpad:kt.borderpad,borderwidth:kt.borderwidth,showarrow:kt.showarrow,arrowcolor:kt.arrowcolor,arrowhead:kt.arrowhead,startarrowhead:kt.startarrowhead,arrowside:kt.arrowside,arrowsize:kt.arrowsize,startarrowsize:kt.startarrowsize,arrowwidth:kt.arrowwidth,standoff:kt.standoff,startstandoff:kt.startstandoff,hovertext:kt.hovertext,hoverlabel:kt.hoverlabel,captureevents:kt.captureevents}),"calc","from-root")});var kz=xe((n4e,Az)=>{"use strict";var ex=rr(),Uce=Bt(),Hce=Mi(),Vce=$b(),Gce=_d();Az.exports=function(r,t,n){Hce(r,t,{name:"annotations",handleItemDefaults:Yce,fullLayout:n.fullLayout})};function Yce(e,r,t,n){function a(l,u){return ex.coerce(e,r,Gce,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],Uce.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(Vce(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),ex.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),ex.noneOrAll(e,r,["ax","ay"])))}});var Lz=xe((a4e,Ez)=>{"use strict";var Sz=rr(),Cz=Bt();Ez.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a<n.length;a++)Xce(n[a],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function Xce(e,r){var t=r.fullSceneLayout,n=t.domain,a=r.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},Sz.extendFlat(e._xa,o),Cz.setConvert(e._xa),e._xa._offset=a.l+n.x[0]*a.w,e._xa.l2p=function(){return .5*(1+e._pdata[0]/e._pdata[3])*a.w*(n.x[1]-n.x[0])},e._ya={},Sz.extendFlat(e._ya,o),Cz.setConvert(e._ya),e._ya._offset=a.t+(1-n.y[1])*a.h,e._ya.l2p=function(){return .5*(1-e._pdata[1]/e._pdata[3])*a.h*(n.y[1]-n.y[0])}}});var tx=xe((i4e,Dz)=>{"use strict";function rx(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function Wce(e,r){var t=rx(e.projection,rx(e.view,rx(e.model,[r[0],r[1],r[2],1])));return t}Dz.exports=Wce});var Fz=xe((o4e,Rz)=>{"use strict";var Zce=xd().drawRaw,Jce=tx(),$ce=["x","y","z"];Rz.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,o=0;o<a.length;o++){for(var i=a[o],l=!1,u=0;u<3;u++){var s=$ce[u],f=i[s],c=t[s+"axis"],p=c.r2fraction(f);if(p<0||p>1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+o+'"]').remove():(i._pdata=Jce(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),Zce(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var zz=xe((l4e,Iz)=>{"use strict";var Kce=Cr(),Pz=rr();Iz.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:_d()}}},layoutAttributes:_d(),handleDefaults:kz(),includeBasePlot:Qce,convert:Lz(),draw:Fz()};function Qce(e,r){var t=Kce.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o<a.length;o++){var i=a[o];n.test(i)&&(e[i].annotations||[]).length&&(Pz.pushUnique(r._basePlotModules,t),Pz.pushUnique(r._subplots.gl3d,i))}}});var nx=xe((f4e,Oz)=>{"use strict";var s4e=mn(),Nz=Nn(),qz=Os().line,jce=nl().dash,Di=Rt().extendFlat,eve=wt().templatedArray,u4e=Ec(),ku=qn(),Bz=pu(),{shapeTexttemplateAttrs:rve,templatefallbackAttrs:tve}=mi(),nve=Sh();Oz.exports=eve("shape",{visible:Di({},ku.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Di({},ku.legend,{editType:"calc+arraydraw"}),legendgroup:Di({},ku.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Di({},ku.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:Nz({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Di({},ku.legendrank,{editType:"calc+arraydraw"}),legendwidth:Di({},ku.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Di({},Bz.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Di({},Bz.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Di({},qz.color,{editType:"arraydraw"}),width:Di({},qz.width,{editType:"calc+arraydraw"}),dash:Di({},jce,{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:rve({},{keys:Object.keys(nve)}),texttemplatefallback:tve({editType:"arraydraw"}),font:Nz({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var Hz=xe((c4e,Uz)=>{"use strict";var Su=rr(),Ba=Bt(),ave=Mi(),ive=nx(),Jc=Cl();Uz.exports=function(r,t){ave(r,t,{name:"shapes",handleItemDefaults:lve})};function ove(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function lve(e,r,t){function n(S,b){return Su.coerce(e,r,ive,S,b)}r._isShape=!0;var a=n("visible");if(!a)return;var o=n("showlegend");n("legend"),n("legendgroup"),o&&(n("legendwidth"),n("legendgrouptitle.text"),Su.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var i=n("path"),l=i?"path":"rect",u=n("type",l),s=u!=="path";s&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));var c=n("xsizemode"),p=n("ysizemode");let x=[.25,.75],g=[0,10];["x","y"].forEach(S=>{var b=S+"anchor",T=S==="x"?c:p,h={_fullLayout:t},_,y,v,A;let d=S+"ref",D=e[d];if(Array.isArray(D)&&D.length>0){let E=Jc.countDefiningCoords(u,i,S);A=Ba.coerceRefArray(e,r,h,S,void 0,"paper",E),r["_"+S+"refArray"]=!0}else A=Ba.coerceRef(e,r,h,S,void 0,"paper");if(Array.isArray(A))A.forEach(function(E){Ba.getRefType(E)==="range"&&(_=Ba.getFromId(h,E),_&&_._shapeIndices.indexOf(r._index)===-1&&_._shapeIndices.push(r._index))}),s&&[0,1].forEach(function(E){let R=A[E];Ba.getRefType(R)==="range"?(_=Ba.getFromId(h,R),y=Jc.shapePositionToRange(_),v=Jc.rangeToShapePosition(_),(_.type==="category"||_.type==="multicategory")&&n(S+E+"shift")):y=v=Su.identity;let I=S+E,P=e[I];if(e[I]=y(e[I],!0),T==="pixel"?n(I,g[E]):Ba.coercePosition(r,h,n,R,I,x[E]),r[I]=v(r[I]),e[I]=P,E===0&&T==="pixel"){let L=e[b];e[b]=y(e[b],!0),Ba.coercePosition(r,h,n,R,b,.25),r[b]=v(r[b]),e[b]=L}});else{if(Ba.getRefType(A)==="range"?(_=Ba.getFromId(h,A),_._shapeIndices.push(r._index),v=Jc.rangeToShapePosition(_),y=Jc.shapePositionToRange(_),s&&(_.type==="category"||_.type==="multicategory")&&(n(S+"0shift"),n(S+"1shift"))):y=v=Su.identity,s){let R=S+"0",z=S+"1",I=e[R],P=e[z];e[R]=y(e[R],!0),e[z]=y(e[z],!0),T==="pixel"?(n(R,g[0]),n(z,g[1])):(Ba.coercePosition(r,h,n,A,R,x[0]),Ba.coercePosition(r,h,n,A,z,x[1])),r[R]=v(r[R]),r[z]=v(r[z]),e[R]=I,e[z]=P}if(T==="pixel"){let R=e[b];e[b]=y(e[b],!0),Ba.coercePosition(r,h,n,A,b,.25),r[b]=v(r[b]),e[b]=R}}}),s&&Su.noneOrAll(e,r,["x0","x1","y0","y1"]);var w=u==="line",M,m;if(s&&(M=n("label.texttemplate"),n("label.texttemplatefallback")),M||(m=n("label.text")),m||M){n("label.textangle");var k=n("label.textposition",w?"middle":"middle center");n("label.xanchor"),n("label.yanchor",ove(w,k)),n("label.padding"),Su.coerceFont(n,"label.font",t.font)}}});var Yz=xe((v4e,Gz)=>{"use strict";var sve=Xr(),Vz=rr();function uve(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}Gz.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),Vz.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var o=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",sve.contrast(o)),n("newshape.line.dash")}var i=r.dragmode==="drawline",l=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),l||u){n("newshape.label.textangle");var s=n("newshape.label.textposition",i?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",uve(i,s)),n("newshape.label.padding"),Vz.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var Qz=xe((h4e,Kz)=>{"use strict";var ax=rr(),fi=Bt(),yo=uc(),ix=Cl();Kz.exports=function(r){var t=r._fullLayout,n=ax.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a<n.length;a++){var o=n[a];o._extremes={};var i,l,u=fi.getRefType(o.xref),s=fi.getRefType(o.yref);if(u==="array"){let f=Xz(r,o,"x");Object.entries(f).forEach(([c,p])=>{i=fi.getFromId(r,c),o._extremes[i._id]=fi.findExtremes(i,p,Wz(o))})}else o.xref!=="paper"&&u!=="domain"&&(i=fi.getFromId(r,o.xref),l=Jz(i,o,yo.paramIsX),l&&(o._extremes[i._id]=fi.findExtremes(i,l,Wz(o))));if(s==="array"){let f=Xz(r,o,"y");Object.entries(f).forEach(([c,p])=>{i=fi.getFromId(r,c),o._extremes[i._id]=fi.findExtremes(i,p,Zz(o))})}else o.yref!=="paper"&&s!=="domain"&&(i=fi.getFromId(r,o.yref),l=Jz(i,o,yo.paramIsY),l&&(o._extremes[i._id]=fi.findExtremes(i,l,Zz(o))))}};function Xz(e,r,t){let n=r[t+"ref"],a=t==="x"?yo.paramIsX:yo.paramIsY;function o(c,p){c==="paper"||fi.getRefType(c)==="domain"||(i[c]||(i[c]=[]),i[c].push(p))}let i={};if(r.type==="path"&&r.path){let c=r.path.match(yo.segmentRE)||[];for(var l=0,u=0;u<c.length;u++){let p=c[u],x=p.charAt(0),g=a[x].drawn;if(g===void 0)continue;let w=p.slice(1).match(yo.paramRE);w&&w.length>g&&(o(n[l],w[g]),l++)}}else o(n[0],r[t+"0"]),o(n[1],r[t+"1"]);let s={};for(let c in i){let p=fi.getFromId(e,c);if(p){var f=p.type==="category"||p.type==="multicategory"?p.r2c:p.d2c;p.type==="date"&&(f=ix.decodeDate(f)),s[p._id]=i[c].map(f)}}return s}function Wz(e){return $z(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function Zz(e){return $z(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function $z(e,r,t,n,a,o){var i=e/2,l=o;if(r==="pixel"){var u=a?ix.extractPathCoords(a,o?yo.paramIsY:yo.paramIsX):[t,n],s=ax.aggNums(Math.max,null,u),f=ax.aggNums(Math.min,null,u),c=f<0?Math.abs(f)+i:i,p=s>0?s+i:i;return{ppad:i,ppadplus:l?c:p,ppadminus:l?p:c}}else return{ppad:i}}function Jz(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",o,i,l=0,u=0,s=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(o=r[n+"0"],i=r[n+"1"],a&&(l=r[n+"0shift"],u=r[n+"1shift"])):(o=r[n+"anchor"],i=r[n+"anchor"]),o!==void 0)return[s(o)+l,s(i)+u];if(r.path){var c=1/0,p=-1/0,x=r.path.match(yo.segmentRE),g,w,M,m,k;for(e.type==="date"&&(s=ix.decodeDate(s)),g=0;g<x.length;g++)w=x[g],M=t[w.charAt(0)].drawn,M!==void 0&&(m=x[g].slice(1).match(yo.paramRE),!(!m||m.length<M)&&(k=s(m[M]),k<c&&(c=k),k>p&&(p=k)));if(p>=c)return[c,p]}}});var rN=xe((d4e,eN)=>{"use strict";var jz=f2();eN.exports={moduleType:"component",name:"shapes",layoutAttributes:nx(),supplyLayoutDefaults:Hz(),supplyDrawNewShapeDefaults:Yz(),includeBasePlot:Dc()("shapes"),calcAutorange:Qz(),draw:jz.draw,drawOne:jz.drawOne}});var ox=xe((g4e,nN)=>{"use strict";var tN=mn(),fve=wt().templatedArray,p4e=Ec();nN.exports=fve("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",tN.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",tN.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var iN=xe((y4e,aN)=>{"use strict";var cve=rr(),lx=Bt(),vve=Mi(),hve=ox(),dve="images";aN.exports=function(r,t){var n={name:dve,handleItemDefaults:pve};vve(r,t,n)};function pve(e,r,t){function n(p,x){return cve.coerce(e,r,hve,p,x)}var a=n("source"),o=n("visible",!!a);if(!o)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var i={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var s=l[u],f=lx.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var c=lx.getFromId(i,f);c._imgIndices.push(r._index)}lx.coercePosition(r,i,n,f,s,0)}return r}});var uN=xe((m4e,sN)=>{"use strict";var oN=nt(),gve=Mt(),Cu=Bt(),lN=fn(),yve=hl();sN.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l<t.images.length;l++){var u=t.images[l];if(u.visible)if(u.layer==="below"&&u.xref!=="paper"&&u.yref!=="paper"){i=lN.ref2id(u.xref)+lN.ref2id(u.yref);var s=t._plots[i];if(!s){o.push(u);continue}s.mainplot&&(i=s.mainplot.id),a[i]||(a[i]=[]),a[i].push(u)}else u.layer==="above"?n.push(u):o.push(u)}var f={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-1/2},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-1/2},bottom:{sizing:"YMax",offset:-1}}};function c(b){var T=oN.select(this);if(this._imgSrc!==b.source)if(T.attr("xmlns",yve.svg),!r._context.staticPlot||b.source&&b.source.slice(0,5)==="data:")T.attr("xlink:href",b.source),this._imgSrc=b.source;else{var h=new Promise(function(_){var y=new Image;this.img=y,y.setAttribute("crossOrigin","anonymous"),y.onerror=v,y.onload=function(){var A=document.createElement("canvas");A.width=this.width,A.height=this.height;var d=A.getContext("2d",{willReadFrequently:!0});d.drawImage(this,0,0);var D=A.toDataURL("image/png");T.attr("xlink:href",D),_()},T.on("error",v),y.src=b.source,this._imgSrc=b.source;function v(){T.remove(),_()}}.bind(this));r._promises.push(h)}}function p(b){var T=oN.select(this),h=Cu.getFromId(r,b.xref),_=Cu.getFromId(r,b.yref),y=Cu.getRefType(b.xref)==="domain",v=Cu.getRefType(b.yref)==="domain",A=t._size,d,D;h!==void 0?d=typeof b.xref=="string"&&y?h._length*b.sizex:Math.abs(h.l2p(b.sizex)-h.l2p(0)):d=b.sizex*A.w,_!==void 0?D=typeof b.yref=="string"&&v?_._length*b.sizey:Math.abs(_.l2p(b.sizey)-_.l2p(0)):D=b.sizey*A.h;var E=d*f.x[b.xanchor].offset,R=D*f.y[b.yanchor].offset,z=f.x[b.xanchor].sizing+f.y[b.yanchor].sizing,I,P;switch(h!==void 0?I=typeof b.xref=="string"&&y?h._length*b.x+h._offset:h.r2p(b.x)+h._offset:I=b.x*A.w+A.l,I+=E,_!==void 0?P=typeof b.yref=="string"&&v?_._length*(1-b.y)+_._offset:_.r2p(b.y)+_._offset:P=A.h-b.y*A.h+A.t,P+=R,b.sizing){case"fill":z+=" slice";break;case"stretch":z="none";break}T.attr({x:I,y:P,width:d,height:D,preserveAspectRatio:z,opacity:b.opacity});var L=h&&Cu.getRefType(b.xref)!=="domain"?h._id:"",F=_&&Cu.getRefType(b.yref)!=="domain"?_._id:"",B=L+F;gve.setClipUrl(T,B?"clip"+t._uid+B:null,r)}function x(b){return[b.xref,b.x,b.sizex,b.yref,b.y,b.sizey].join("_")}function g(b,T){return b._index-T._index}var w=t._imageLowerLayer.selectAll("image").data(o,x),M=t._imageUpperLayer.selectAll("image").data(n,x);w.enter().append("image"),M.enter().append("image"),w.exit().remove(),M.exit().remove(),w.each(function(b){c.bind(this)(b),p.bind(this)(b)}),M.each(function(b){c.bind(this)(b),p.bind(this)(b)}),w.sort(g),M.sort(g);var m=Object.keys(t._plots);for(l=0;l<m.length;l++){i=m[l];var k=t._plots[i];if(k.imagelayer){var S=k.imagelayer.selectAll("image").data(a[i]||[],x);S.enter().append("image"),S.exit().remove(),S.each(function(b){c.bind(this)(b),p.bind(this)(b)}),S.sort(g)}}}});var vN=xe((b4e,cN)=>{"use strict";var fN=it(),mve=Xv();cN.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(o||i){for(var l=r._fullLayout.images,u=t._id.charAt(0),s,f,c=0;c<l.length;c++)if(s=l[c],f="images["+c+"].",s[u+"ref"]===t._id){var p=s[u],x=s["size"+u],g=null,w=null;if(o){g=mve(p,t.range);var M=x/Math.pow(10,g)/2;w=2*Math.log(M+Math.sqrt(1+M*M))/Math.LN10}else g=Math.pow(10,p),w=g*(Math.pow(10,x/2)-Math.pow(10,-x/2));fN(g)?fN(w)||(w=null):(g=null,w=null),a(f+u,g),a(f+"size"+u,w)}}}});var dN=xe((x4e,hN)=>{"use strict";hN.exports={moduleType:"component",name:"images",layoutAttributes:ox(),supplyLayoutDefaults:iN(),includeBasePlot:Dc()("images"),draw:uN(),convertCoords:vN()}});var wd=xe((_4e,pN)=>{"use strict";pN.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:"  "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var sx=xe((w4e,yN)=>{"use strict";var bve=Nn(),xve=Zi(),_ve=Rt().extendFlat,wve=ea().overrideAll,Mve=Ch(),gN=wt().templatedArray,Tve=gN("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}});yN.exports=wve(gN("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:Tve,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:_ve(Mve({editType:"arraydraw"}),{}),font:bve({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:xve.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var _N=xe((M4e,xN)=>{"use strict";var Md=rr(),mN=Mi(),bN=sx(),Ave=wd(),kve=Ave.name,Sve=bN.buttons;xN.exports=function(r,t){var n={name:kve,handleItemDefaults:Cve};mN(r,t,n)};function Cve(e,r,t){function n(i,l){return Md.coerce(e,r,bN,i,l)}var a=mN(e,r,{name:"buttons",handleItemDefaults:Eve}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),Md.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Md.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Eve(e,r){function t(a,o){return Md.coerce(e,r,Sve,a,o)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var TN=xe((T4e,MN)=>{"use strict";MN.exports=Ut;var Ri=nt(),wN=Xr(),Eu=Mt(),Td=rr();function Ut(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Ut.barWidth=2;Ut.barLength=20;Ut.barRadius=2;Ut.barPad=1;Ut.barColor="#808BA4";Ut.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,o=a.width,i=a.height;this.position=r;var l=this.position.l,u=this.position.w,s=this.position.t,f=this.position.h,c=this.position.direction,p=c==="down",x=c==="left",g=c==="right",w=c==="up",M=u,m=f,k,S,b,T;!p&&!x&&!g&&!w&&(this.position.direction="down",p=!0);var h=p||w;h?(k=l,S=k+M,p?(b=s,T=Math.min(b+m,i),m=T-b):(T=s+m,b=Math.max(T-m,0),m=T-b)):(b=s,T=b+m,x?(S=l+M,k=Math.max(S-M,0),M=S-k):(k=l,S=Math.min(k+M,o),M=S-k)),this._box={l:k,t:b,w:M,h:m};var _=u>M,y=Ut.barLength+2*Ut.barPad,v=Ut.barWidth+2*Ut.barPad,A=l,d=s+f;d+v>i&&(d=i-v);var D=this.container.selectAll("rect.scrollbar-horizontal").data(_?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-horizontal",!0).call(wN.fill,Ut.barColor),_?(this.hbar=D.attr({rx:Ut.barRadius,ry:Ut.barRadius,x:A,y:d,width:y,height:v}),this._hbarXMin=A+y/2,this._hbarTranslateMax=M-y):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=f>m,R=Ut.barWidth+2*Ut.barPad,z=Ut.barLength+2*Ut.barPad,I=l+u,P=s;I+R>o&&(I=o-R);var L=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(wN.fill,Ut.barColor),E?(this.vbar=L.attr({rx:Ut.barRadius,ry:Ut.barRadius,x:I,y:P,width:R,height:z}),this._vbarYMin=P+z/2,this._vbarTranslateMax=m-z):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var F=this.id,B=k-.5,O=E?S+R+.5:S+.5,V=b-.5,K=_?T+v+.5:T+.5,j=a._topdefs.selectAll("#"+F).data(_||E?[0]:[]);if(j.exit().remove(),j.enter().append("clipPath").attr("id",F).append("rect"),_||E?(this._clipRect=j.select("rect").attr({x:Math.floor(B),y:Math.floor(V),width:Math.ceil(O)-Math.floor(B),height:Math.ceil(K)-Math.floor(V)}),this.container.call(Eu.setClipUrl,F,this.gd),this.bg.attr({x:l,y:s,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Eu.setClipUrl,null),delete this._clipRect),_||E){var G=Ri.behavior.drag().on("dragstart",function(){Ri.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(G);var q=Ri.behavior.drag().on("dragstart",function(){Ri.event.sourceEvent.preventDefault(),Ri.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));_&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Ut.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Eu.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)};Ut.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Ri.event.dx),this.vbar&&(t-=Ri.event.dy),this.setTranslate(r,t)};Ut.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Ri.event.deltaY),this.vbar&&(t+=Ri.event.deltaY),this.setTranslate(r,t)};Ut.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=Td.constrain(Ri.event.x,n,a),i=(o-n)/(a-n),l=this.position.w-this._box.w;r=i*l}if(this.vbar){var u=t+this._vbarYMin,s=u+this._vbarTranslateMax,f=Td.constrain(Ri.event.y,u,s),c=(f-u)/(s-u),p=this.position.h-this._box.h;t=c*p}this.setTranslate(r,t)};Ut.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=Td.constrain(r||0,0,n),t=Td.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Eu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var o=r/n;this.hbar.call(Eu.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Eu.setTranslate,r,t+i*this._vbarTranslateMax)}}});var PN=xe((A4e,FN)=>{"use strict";var Lu=nt(),$c=bn(),Kc=Xr(),Du=Mt(),Oa=rr(),Ad=Un(),Lve=wt().arrayEditor,kN=On().LINE_SPACING,Er=wd(),Dve=TN();FN.exports=function(r){var t=r._fullLayout,n=Oa.filterVisible(t[Er.name]);function a(p){$c.autoMargin(r,DN(p))}var o=t._menulayer.selectAll("g."+Er.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(Er.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Lu.select(this).selectAll("g."+Er.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+Er.headerGroupClassName).data(n,Rve);i.enter().append("g").classed(Er.headerGroupClassName,!0);for(var l=Oa.ensureSingle(o,"g",Er.dropdownButtonGroupClassName,function(p){p.style("pointer-events","all")}),u=0;u<n.length;u++){var s=n[u];qve(r,s)}var f="updatemenus"+t._uid,c=new Dve(r,l,f);i.enter().size()&&(l.node().parentNode.appendChild(l.node()),l.call(fx)),i.exit().each(function(p){l.call(fx),a(p)}).remove(),i.each(function(p){var x=Lu.select(this),g=p.type==="dropdown"?l:null;$c.manageCommandObserver(r,p,p.buttons,function(w){ux(r,p,p.buttons[w.index],x,g,c,w.index,!0)}),p.type==="dropdown"?(CN(r,x,l,c,p),SN(l,p)&&Qc(r,x,l,c,p)):Qc(r,x,null,null,p)})}};function Rve(e){return e._index}function Fve(e){return+e.attr(Er.menuIndexAttrName)==-1}function SN(e,r){return+e.attr(Er.menuIndexAttrName)===r._index}function ux(e,r,t,n,a,o,i,l){r.active=i,Lve(e.layout,Er.name,r).applyUpdate("active",i),r.type==="buttons"?Qc(e,n,null,null,r):r.type==="dropdown"&&(a.attr(Er.menuIndexAttrName,"-1"),CN(e,n,a,o,r),l||Qc(e,n,a,o,r))}function CN(e,r,t,n,a){var o=Oa.ensureSingle(r,"g",Er.headerClassName,function(p){p.style("pointer-events","all")}),i=a._dims,l=a.active,u=a.buttons[l]||Er.blankHeaderOpts,s={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},f={width:i.headerWidth,height:i.headerHeight};o.call(cx,a,u,e).call(RN,a,s,f);var c=Oa.ensureSingle(r,"text",Er.headerArrowClassName,function(p){p.attr("text-anchor","end").call(Du.font,a.font).text(Er.arrowSymbol[a.direction])});c.attr({x:i.headerWidth-Er.arrowOffsetX+a.pad.l,y:i.headerHeight/2+Er.textOffsetY+a.pad.t}),o.on("click",function(){t.call(fx,String(SN(t,a)?-1:a._index)),Qc(e,r,t,n,a)}),o.on("mouseover",function(){o.call(EN)}),o.on("mouseout",function(){o.call(LN,a)}),Du.setTranslate(r,i.lx,i.ly)}function Qc(e,r,t,n,a){t||(t=r,t.attr("pointer-events","all"));var o=!Fve(t)||a.type==="buttons"?a.buttons:[],i=a.type==="dropdown"?Er.dropdownButtonClassName:Er.buttonClassName,l=t.selectAll("g."+i).data(Oa.filterVisible(o)),u=l.enter().append("g").classed(i,!0),s=l.exit();a.type==="dropdown"?(u.attr("opacity","0").transition().attr("opacity","1"),s.transition().attr("opacity","0").remove()):s.remove();var f=0,c=0,p=a._dims,x=["up","down"].indexOf(a.direction)!==-1;a.type==="dropdown"&&(x?c=p.headerHeight+Er.gapButtonHeader:f=p.headerWidth+Er.gapButtonHeader),a.type==="dropdown"&&a.direction==="up"&&(c=-Er.gapButtonHeader+Er.gapButton-p.openHeight),a.type==="dropdown"&&a.direction==="left"&&(f=-Er.gapButtonHeader+Er.gapButton-p.openWidth);var g={x:p.lx+f+a.pad.l,y:p.ly+c+a.pad.t,yPad:Er.gapButton,xPad:Er.gapButton,index:0},w={l:g.x+a.borderwidth,t:g.y+a.borderwidth};l.each(function(M,m){var k=Lu.select(this);k.call(cx,a,M,e).call(RN,a,g),k.on("click",function(){Lu.event.defaultPrevented||(M.execute&&(M.args2&&a.active===m?(ux(e,a,M,r,t,n,-1),$c.executeAPICommand(e,M.method,M.args2)):(ux(e,a,M,r,t,n,m),$c.executeAPICommand(e,M.method,M.args))),e.emit("plotly_buttonclicked",{menu:a,button:M,active:a.active}))}),k.on("mouseover",function(){k.call(EN)}),k.on("mouseout",function(){k.call(LN,a),l.call(AN,a)})}),l.call(AN,a),x?(w.w=Math.max(p.openWidth,p.headerWidth),w.h=g.y-w.t):(w.w=g.x-w.l,w.h=Math.max(p.openHeight,p.headerHeight)),w.direction=a.direction,n&&(l.size()?Pve(e,r,t,n,a,w):Ive(n))}function Pve(e,r,t,n,a,o){var i=a.direction,l=i==="up"||i==="down",u=a._dims,s=a.active,f,c,p;if(l)for(c=0,p=0;p<s;p++)c+=u.heights[p]+Er.gapButton;else for(f=0,p=0;p<s;p++)f+=u.widths[p]+Er.gapButton;n.enable(o,f,c),n.hbar&&n.hbar.attr("opacity","0").transition().attr("opacity","1"),n.vbar&&n.vbar.attr("opacity","0").transition().attr("opacity","1")}function Ive(e){var r=!!e.hbar,t=!!e.vbar;r&&e.hbar.transition().attr("opacity","0").each("end",function(){r=!1,t||e.disable()}),t&&e.vbar.transition().attr("opacity","0").each("end",function(){t=!1,r||e.disable()})}function cx(e,r,t,n){e.call(zve,r).call(Nve,r,t,n)}function zve(e,r){var t=Oa.ensureSingle(e,"rect",Er.itemRectClassName,function(n){n.attr({rx:Er.rx,ry:Er.ry,"shape-rendering":"crispEdges"})});t.call(Kc.stroke,r.bordercolor).call(Kc.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function Nve(e,r,t,n){var a=Oa.ensureSingle(e,"text",Er.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),o=t.label,i=n._fullLayout._meta;i&&(o=Oa.templateString(o,i)),a.call(Du.font,r.font).text(o).call(Ad.convertToTspans,n)}function AN(e,r){var t=r.active;e.each(function(n,a){var o=Lu.select(this);a===t&&r.showactive&&o.select("rect."+Er.itemRectClassName).call(Kc.fill,Er.activeColor)})}function EN(e){e.select("rect."+Er.itemRectClassName).call(Kc.fill,Er.hoverColor)}function LN(e,r){e.select("rect."+Er.itemRectClassName).call(Kc.fill,r.bgcolor)}function qve(e,r){var t=r._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},n=Du.tester.selectAll("g."+Er.dropdownButtonClassName).data(Oa.filterVisible(r.buttons));n.enter().append("g").classed(Er.dropdownButtonClassName,!0);var a=["up","down"].indexOf(r.direction)!==-1;n.each(function(f,c){var p=Lu.select(this);p.call(cx,r,f,e);var x=p.select("."+Er.itemTextClassName),g=x.node()&&Du.bBox(x.node()).width,w=Math.max(g+Er.textPadX,Er.minWidth),M=r.font.size*kN,m=Ad.lineCount(x),k=Math.max(M*m,Er.minHeight)+Er.textOffsetY;k=Math.ceil(k),w=Math.ceil(w),t.widths[c]=w,t.heights[c]=k,t.height1=Math.max(t.height1,k),t.width1=Math.max(t.width1,w),a?(t.totalWidth=Math.max(t.totalWidth,w),t.openWidth=t.totalWidth,t.totalHeight+=k+Er.gapButton,t.openHeight+=k+Er.gapButton):(t.totalWidth+=w+Er.gapButton,t.openWidth+=w+Er.gapButton,t.totalHeight=Math.max(t.totalHeight,k),t.openHeight=t.totalHeight)}),a?t.totalHeight-=Er.gapButton:t.totalWidth-=Er.gapButton,t.headerWidth=t.width1+Er.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(a?(t.width1+=Er.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=Er.arrowPadX),n.remove();var o=t.totalWidth+r.pad.l+r.pad.r,i=t.totalHeight+r.pad.t+r.pad.b,l=e._fullLayout._size;t.lx=l.l+l.w*r.x,t.ly=l.t+l.h*(1-r.y);var u="left";Oa.isRightAnchor(r)&&(t.lx-=o,u="right"),Oa.isCenterAnchor(r)&&(t.lx-=o/2,u="center");var s="top";Oa.isBottomAnchor(r)&&(t.ly-=i,s="bottom"),Oa.isMiddleAnchor(r)&&(t.ly-=i/2,s="middle"),t.totalWidth=Math.ceil(t.totalWidth),t.totalHeight=Math.ceil(t.totalHeight),t.lx=Math.round(t.lx),t.ly=Math.round(t.ly),$c.autoMargin(e,DN(r),{x:r.x,y:r.y,l:o*({right:1,center:.5}[u]||0),r:o*({left:1,center:.5}[u]||0),b:i*({top:1,middle:.5}[s]||0),t:i*({bottom:1,middle:.5}[s]||0)})}function DN(e){return Er.autoMarginIdRoot+e._index}function RN(e,r,t,n){n=n||{};var a=e.select("."+Er.itemRectClassName),o=e.select("."+Er.itemTextClassName),i=r.borderwidth,l=t.index,u=r._dims;Du.setTranslate(e,i+t.x,i+t.y);var s=["up","down"].indexOf(r.direction)!==-1,f=n.height||(s?u.heights[l]:u.height1);a.attr({x:0,y:0,width:n.width||(s?u.width1:u.widths[l]),height:f});var c=r.font.size*kN,p=Ad.lineCount(o),x=(p-1)*c/2;Ad.positionText(o,Er.textOffsetX,f/2-x+Er.textOffsetY),s?t.y+=u.heights[l]+t.yPad:t.x+=u.widths[l]+t.xPad,t.index++}function fx(e,r){e.attr(Er.menuIndexAttrName,r||"-1").selectAll("g."+Er.dropdownButtonClassName).remove()}});var zN=xe((k4e,IN)=>{"use strict";var Bve=wd();IN.exports={moduleType:"component",name:Bve.name,layoutAttributes:sx(),supplyLayoutDefaults:_N(),draw:PN()}});var jc=xe((S4e,NN)=>{"use strict";NN.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var vx=xe((C4e,ON)=>{"use strict";var qN=Nn(),Ove=Ch(),Uve=Rt().extendDeepAll,Hve=ea().overrideAll,Vve=Df(),BN=wt().templatedArray,Ks=jc(),Gve=BN("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}});ON.exports=Hve(BN("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Gve,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:Uve(Ove({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:Vve.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:qN({})},font:qN({}),activebgcolor:{valType:"color",dflt:Ks.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ks.railBgColor},bordercolor:{valType:"color",dflt:Ks.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ks.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ks.tickLength},tickcolor:{valType:"color",dflt:Ks.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ks.minorTickLength}}),"arraydraw","from-root")});var GN=xe((E4e,VN)=>{"use strict";var Ru=rr(),UN=Mi(),HN=vx(),Yve=jc(),Xve=Yve.name,Wve=HN.steps;VN.exports=function(r,t){UN(r,t,{name:Xve,handleItemDefaults:Zve})};function Zve(e,r,t){function n(c,p){return Ru.coerce(e,r,HN,c,p)}for(var a=UN(e,r,{name:"steps",handleItemDefaults:Jve}),o=0,i=0;i<a.length;i++)a[i].visible&&o++;var l;if(o<2?l=r.visible=!1:l=n("visible"),!!l){r._stepCount=o;var u=r._visibleSteps=Ru.filterVisible(a),s=n("active");(a[s]||{}).visible||(r.active=u[0]._index),n("x"),n("y"),Ru.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("len"),n("lenmode"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Ru.coerceFont(n,"font",t.font);var f=n("currentvalue.visible");f&&(n("currentvalue.xanchor"),n("currentvalue.prefix"),n("currentvalue.suffix"),n("currentvalue.offset"),Ru.coerceFont(n,"currentvalue.font",r.font)),n("transition.duration"),n("transition.easing"),n("bgcolor"),n("activebgcolor"),n("bordercolor"),n("borderwidth"),n("ticklen"),n("tickwidth"),n("tickcolor"),n("minorticklen")}}function Jve(e,r){function t(o,i){return Ru.coerce(e,r,Wve,o,i)}var n;if(e.method!=="skip"&&!Array.isArray(e.args)?n=r.visible=!1:n=t("visible"),n){t("method"),t("args");var a=t("label","step-"+r._index);t("value",a),t("execute")}}});var eq=xe((L4e,jN)=>{"use strict";var Fi=nt(),kd=bn(),Il=Xr(),Pi=Mt(),Ua=rr(),$ve=Ua.strTranslate,ev=Un(),Kve=wt().arrayEditor,Hr=jc(),px=On(),WN=px.LINE_SPACING,hx=px.FROM_TL,dx=px.FROM_BR;jN.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Qve(n,r),o=n._infolayer.selectAll("g."+Hr.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Hr.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),kd.autoMargin(r,ZN(f))}if(o.exit().each(function(){Fi.select(this).selectAll("g."+Hr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Hr.groupClassName).data(a,jve);l.enter().append("g").classed(Hr.groupClassName,!0),l.exit().each(i).remove();for(var u=0;u<a.length;u++){var s=a[u];ehe(r,s)}l.each(function(f){var c=Fi.select(this);ihe(f),kd.manageCommandObserver(r,f,f._visibleSteps,function(p){var x=c.data()[0];x.active!==p.index&&(x._dragging||$N(r,c,x,p.index,!1,!0))}),rhe(r,Fi.select(this),f)})}};function ZN(e){return Hr.autoMarginIdRoot+e._index}function Qve(e,r){for(var t=e[Hr.name],n=[],a=0;a<t.length;a++){var o=t[a];o.visible&&(o._gd=r,n.push(o))}return n}function jve(e){return e._index}function ehe(e,r){var t=Pi.tester.selectAll("g."+Hr.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Hr.labelGroupClass,!0);var n=0,a=0;t.each(function(g){var w=Fi.select(this),M=JN(w,{step:g},r),m=M.node();if(m){var k=Pi.bBox(m);a=Math.max(a,k.height),n=Math.max(n,k.width)}}),t.remove();var o=r._dims={};o.inputAreaWidth=Math.max(Hr.railWidth,Hr.gripHeight);var i=e._fullLayout._size;o.lx=i.l+i.w*r.x,o.ly=i.t+i.h*(1-r.y),r.lenmode==="fraction"?o.outerLength=Math.round(i.w*r.len):o.outerLength=r.len,o.inputAreaStart=0,o.inputAreaLength=Math.round(o.outerLength-r.pad.l-r.pad.r);var l=o.inputAreaLength-2*Hr.stepInset,u=l/(r._stepCount-1),s=n+Hr.labelPadding;if(o.labelStride=Math.max(1,Math.ceil(s/u)),o.labelHeight=a,o.currentValueMaxWidth=0,o.currentValueHeight=0,o.currentValueTotalHeight=0,o.currentValueMaxLines=1,r.currentvalue.visible){var f=Pi.tester.append("g");t.each(function(g){var w=Sd(f,r,g.label),M=w.node()&&Pi.bBox(w.node())||{width:0,height:0},m=ev.lineCount(w);o.currentValueMaxWidth=Math.max(o.currentValueMaxWidth,Math.ceil(M.width)),o.currentValueHeight=Math.max(o.currentValueHeight,Math.ceil(M.height)),o.currentValueMaxLines=Math.max(o.currentValueMaxLines,m)}),o.currentValueTotalHeight=o.currentValueHeight+r.currentvalue.offset,f.remove()}o.height=o.currentValueTotalHeight+Hr.tickOffset+r.ticklen+Hr.labelOffset+o.labelHeight+r.pad.t+r.pad.b;var c="left";Ua.isRightAnchor(r)&&(o.lx-=o.outerLength,c="right"),Ua.isCenterAnchor(r)&&(o.lx-=o.outerLength/2,c="center");var p="top";Ua.isBottomAnchor(r)&&(o.ly-=o.height,p="bottom"),Ua.isMiddleAnchor(r)&&(o.ly-=o.height/2,p="middle"),o.outerLength=Math.ceil(o.outerLength),o.height=Math.ceil(o.height),o.lx=Math.round(o.lx),o.ly=Math.round(o.ly);var x={y:r.y,b:o.height*dx[p],t:o.height*hx[p]};r.lenmode==="fraction"?(x.l=0,x.xl=r.x-r.len*hx[c],x.r=0,x.xr=r.x+r.len*dx[c]):(x.x=r.x,x.l=o.outerLength*hx[c],x.r=o.outerLength*dx[c]),kd.autoMargin(e,ZN(r),x)}function rhe(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(Sd,t).call(lhe,t).call(nhe,t).call(ahe,t).call(ohe,e,t).call(the,e,t);var n=t._dims;Pi.setTranslate(r,n.lx+t.pad.l,n.ly+t.pad.t),r.call(QN,t,!1),r.call(Sd,t)}function Sd(e,r,t){if(r.currentvalue.visible){var n=r._dims,a,o;switch(r.currentvalue.xanchor){case"right":a=n.inputAreaLength-Hr.currentValueInset-n.currentValueMaxWidth,o="left";break;case"center":a=n.inputAreaLength*.5,o="middle";break;default:a=Hr.currentValueInset,o="left"}var i=Ua.ensureSingle(e,"text",Hr.labelClass,function(p){p.attr({"text-anchor":o,"data-notex":1})}),l=r.currentvalue.prefix?r.currentvalue.prefix:"";if(typeof t=="string")l+=t;else{var u=r.steps[r.active].label,s=r._gd._fullLayout._meta;s&&(u=Ua.templateString(u,s)),l+=u}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),i.call(Pi.font,r.currentvalue.font).text(l).call(ev.convertToTspans,r._gd);var f=ev.lineCount(i),c=(n.currentValueMaxLines+1-f)*r.currentvalue.font.size*WN;return ev.positionText(i,a,c),i}}function the(e,r,t){var n=Ua.ensureSingle(e,"rect",Hr.gripRectClass,function(a){a.call(KN,r,e,t).style("pointer-events","all")});n.attr({width:Hr.gripWidth,height:Hr.gripHeight,rx:Hr.gripRadius,ry:Hr.gripRadius}).call(Il.stroke,t.bordercolor).call(Il.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function JN(e,r,t){var n=Ua.ensureSingle(e,"text",Hr.labelClass,function(i){i.attr({"text-anchor":"middle","data-notex":1})}),a=r.step.label,o=t._gd._fullLayout._meta;return o&&(a=Ua.templateString(a,o)),n.call(Pi.font,t.font).text(a).call(ev.convertToTspans,t._gd),n}function nhe(e,r){var t=Ua.ensureSingle(e,"g",Hr.labelsClass),n=r._dims,a=t.selectAll("g."+Hr.labelGroupClass).data(n.labelSteps);a.enter().append("g").classed(Hr.labelGroupClass,!0),a.exit().remove(),a.each(function(o){var i=Fi.select(this);i.call(JN,o,r),Pi.setTranslate(i,gx(r,o.fraction),Hr.tickOffset+r.ticklen+r.font.size*WN+Hr.labelOffset+n.currentValueTotalHeight)})}function YN(e,r,t,n,a){var o=Math.round(n*(t._stepCount-1)),i=t._visibleSteps[o]._index;i!==t.active&&$N(e,r,t,i,!0,a)}function $N(e,r,t,n,a,o){var i=t.active;t.active=n,Kve(e.layout,Hr.name,t).applyUpdate("active",n);var l=t.steps[t.active];r.call(QN,t,o),r.call(Sd,t),e.emit("plotly_sliderchange",{slider:t,step:t.steps[t.active],interaction:a,previousActive:i}),l&&l.method&&a&&(r._nextMethod?(r._nextMethod.step=l,r._nextMethod.doCallback=a,r._nextMethod.doTransition=o):(r._nextMethod={step:l,doCallback:a,doTransition:o},r._nextMethodRaf=window.requestAnimationFrame(function(){var u=r._nextMethod.step;u.method&&(u.execute&&kd.executeAPICommand(e,u.method,u.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function KN(e,r,t){if(r._context.staticPlot)return;var n=t.node(),a=Fi.select(r);function o(){return t.data()[0]}function i(){var l=o();r.emit("plotly_sliderstart",{slider:l});var u=t.select("."+Hr.gripRectClass);Fi.event.stopPropagation(),Fi.event.preventDefault(),u.call(Il.fill,l.activebgcolor);var s=XN(l,Fi.mouse(n)[0]);YN(r,t,l,s,!0),l._dragging=!0;function f(){var p=o(),x=XN(p,Fi.mouse(n)[0]);YN(r,t,p,x,!1)}a.on("mousemove",f),a.on("touchmove",f);function c(){var p=o();p._dragging=!1,u.call(Il.fill,p.bgcolor),a.on("mouseup",null),a.on("mousemove",null),a.on("touchend",null),a.on("touchmove",null),r.emit("plotly_sliderend",{slider:p,step:p.steps[p.active]})}a.on("mouseup",c),a.on("touchend",c)}e.on("mousedown",i),e.on("touchstart",i)}function ahe(e,r){var t=e.selectAll("rect."+Hr.tickRectClass).data(r._visibleSteps),n=r._dims;t.enter().append("rect").classed(Hr.tickRectClass,!0),t.exit().remove(),t.attr({width:r.tickwidth+"px","shape-rendering":"crispEdges"}),t.each(function(a,o){var i=o%n.labelStride===0,l=Fi.select(this);l.attr({height:i?r.ticklen:r.minorticklen}).call(Il.fill,r.tickcolor),Pi.setTranslate(l,gx(r,o/(r._stepCount-1))-.5*r.tickwidth,(i?Hr.tickOffset:Hr.minorTickOffset)+n.currentValueTotalHeight)})}function ihe(e){var r=e._dims;r.labelSteps=[];for(var t=e._stepCount,n=0;n<t;n+=r.labelStride)r.labelSteps.push({fraction:n/(t-1),step:e._visibleSteps[n]})}function QN(e,r,t){for(var n=e.select("rect."+Hr.gripRectClass),a=0,o=0;o<r._stepCount;o++)if(r._visibleSteps[o]._index===r.active){a=o;break}var i=gx(r,a/(r._stepCount-1));if(!r._invokingCommand){var l=n;t&&r.transition.duration>0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",$ve(i-Hr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function gx(e,r){var t=e._dims;return t.inputAreaStart+Hr.stepInset+(t.inputAreaLength-2*Hr.stepInset)*Math.min(1,Math.max(0,r))}function XN(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Hr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Hr.stepInset-2*t.inputAreaStart)))}function ohe(e,r,t){var n=t._dims,a=Ua.ensureSingle(e,"rect",Hr.railTouchRectClass,function(o){o.call(KN,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Hr.tickOffset+t.ticklen+n.labelHeight)}).call(Il.fill,t.bgcolor).attr("opacity",0),Pi.setTranslate(a,0,n.currentValueTotalHeight)}function lhe(e,r){var t=r._dims,n=t.inputAreaLength-Hr.railInset*2,a=Ua.ensureSingle(e,"rect",Hr.railRectClass);a.attr({width:n,height:Hr.railWidth,rx:Hr.railRadius,ry:Hr.railRadius,"shape-rendering":"crispEdges"}).call(Il.stroke,r.bordercolor).call(Il.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Pi.setTranslate(a,Hr.railInset,(t.inputAreaWidth-Hr.railWidth)*.5+t.currentValueTotalHeight)}});var tq=xe((D4e,rq)=>{"use strict";var she=jc();rq.exports={moduleType:"component",name:she.name,layoutAttributes:vx(),supplyLayoutDefaults:GN(),draw:eq()}});var Cd=xe((R4e,aq)=>{"use strict";var nq=Zi();aq.exports={bgcolor:{valType:"color",dflt:nq.background,editType:"plot"},bordercolor:{valType:"color",dflt:nq.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var yx=xe((F4e,iq)=>{"use strict";iq.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Ed=xe((P4e,oq)=>{"use strict";oq.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var uq=xe(Dd=>{"use strict";var uhe=fn(),fhe=Un(),lq=Ed(),che=On().LINE_SPACING,Ld=lq.name;function sq(e){var r=e&&e[Ld];return r&&r.visible}Dd.isVisible=sq;Dd.makeData=function(e){for(var r=uhe.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a<r.length;a++){var o=r[a];if(sq(o)){n.push(o);var i=o[Ld];i._id=Ld+o._id,i._height=(e.height-t.b-t.t)*i.thickness,i._offsetShift=Math.floor(i.borderwidth/2)}}e._rangeSliderData=n};Dd.autoMarginOpts=function(e,r){var t=e._fullLayout,n=r[Ld],a=r._id.charAt(0),o=0,i=0;if(r.side==="bottom"&&(o=r._depth,r.title.text!==t._dfltTitle[a])){i=1.5*r.title.font.size+10+n._offsetShift;var l=(r.title.text.match(fhe.BR_TAG_ALL)||[]).length;i+=l*r.title.font.size*che}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:n._height+o+Math.max(t.margin.b,i),pad:lq.extraPad+n._offsetShift*2}}});var hq=xe((z4e,vq)=>{"use strict";var Rd=rr(),fq=wt(),cq=fn(),vhe=Cd(),hhe=yx();vq.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;Rd.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=fq.newContainer(o,"rangeslider");function u(T,h){return Rd.coerce(i,l,vhe,T,h)}var s,f;function c(T,h){return Rd.coerce(s,f,hhe,T,h)}var p=u("visible");if(p){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!o.isValidRange(i.range)),u("range");var x=t._subplots;if(x)for(var g=x.cartesian.filter(function(T){return T.slice(0,Math.max(0,T.indexOf("y")))===cq.name2id(n)}).map(function(T){return T.slice(T.indexOf("y"),T.length)}),w=Rd.simpleMap(g,cq.id2name),M=0;M<w.length;M++){var m=w[M];s=i[m]||{},f=fq.newContainer(l,m,"yaxis");var k=t[m],S;s.range&&k.isValidRange(s.range)&&(S="fixed");var b=c("rangemode",S);b!=="match"&&c("range",k.range.slice())}l._input=i}}});var pq=xe((N4e,dq)=>{"use strict";var dhe=fn().list,phe=K0().getAutoRange,ghe=Ed();dq.exports=function(r){for(var t=dhe(r,"x",!0),n=0;n<t.length;n++){var a=t[n],o=a[ghe.name];o&&o.visible&&o.autorange&&(o._input.autorange=!0,o._input.range=o.range=phe(r,a))}}});var bq=xe((q4e,mq)=>{"use strict";var Fd=nt(),yhe=Cr(),mhe=bn(),Wt=rr(),Pd=Wt.strTranslate,yq=Mt(),zl=Xr(),bhe=Zf(),xhe=Vb(),mx=fn(),_he=Ai(),whe=Ml(),Kr=Ed();mq.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n<t.length;n++){var a=t[n][Kr.name];a._clipId=a._id+"-"+r._uid}function o(l){return l._name}var i=r._infolayer.selectAll("g."+Kr.containerClassName).data(t,o);i.exit().each(function(l){var u=l[Kr.name];r._topdefs.select("#"+u._clipId).remove()}).remove(),t.length!==0&&(i.enter().append("g").classed(Kr.containerClassName,!0).attr("pointer-events","all"),i.each(function(l){var u=Fd.select(this),s=l[Kr.name],f=r[mx.id2name(l.anchor)],c=s[mx.id2name(l.anchor)];if(s.range){var p=Wt.simpleMap(s.range,l.r2l),x=Wt.simpleMap(l.range,l.r2l),g;x[0]<x[1]?g=[Math.min(p[0],x[0]),Math.max(p[1],x[1])]:g=[Math.max(p[0],x[0]),Math.min(p[1],x[1])],s.range=s._input.range=Wt.simpleMap(g,l.l2r)}l.cleanRange("rangeslider.range");var w=r._size,M=l.domain;s._width=w.w*(M[1]-M[0]);var m=Math.round(w.l+w.w*M[0]),k=Math.round(w.t+w.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+s._offsetShift+Kr.extraPad);u.attr("transform",Pd(m,k)),s._rl=Wt.simpleMap(s.range,l.r2l);var S=s._rl[0],b=s._rl[1],T=b-S;if(s.p2d=function(z){return z/s._width*T+S},s.d2p=function(z){return(z-S)/T*s._width},l.rangebreaks){var h=l.locateBreaks(S,b);if(h.length){var _,y,v=0;for(_=0;_<h.length;_++)y=h[_],v+=y.max-y.min;var A=s._width/(b-S-v),d=[-A*S];for(_=0;_<h.length;_++)y=h[_],d.push(d[d.length-1]-A*(y.max-y.min));for(s.d2p=function(z){for(var I=d[0],P=0;P<h.length;P++){var L=h[P];if(z>=L.max)I=d[P+1];else if(z<L.min)break}return I+A*z},_=0;_<h.length;_++)y=h[_],y.pmin=s.d2p(y.min),y.pmax=s.d2p(y.max);s.p2d=function(z){for(var I=d[0],P=0;P<h.length;P++){var L=h[P];if(z>=L.pmax)I=d[P+1];else if(z<L.pmin)break}return(z-I)/A}}}if(c.rangemode!=="match"){var D=f.r2l(c.range[0]),E=f.r2l(c.range[1]),R=E-D;s.d2pOppAxis=function(z){return(z-D)/R*s._height}}u.call(khe,e,l,s).call(She,e,l,s).call(Che,e,l,s).call(Lhe,e,l,s,c).call(Dhe,e,l,s).call(Rhe,e,l,s),Mhe(u,e,l,s),Ahe(u,e,l,s,f,c),l.side==="bottom"&&bhe.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:k+s._height+s._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function gq(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function Mhe(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Kr.slideBoxClassName).node(),o=e.select("rect."+Kr.grabAreaMinClassName).node(),i=e.select("rect."+Kr.grabAreaMaxClassName).node();function l(){var u=Fd.event,s=u.target,f=gq(u),c=f-e.node().getBoundingClientRect().left,p=n.d2p(t._rl[0]),x=n.d2p(t._rl[1]),g=_he.coverSlip();this.addEventListener("touchmove",w),this.addEventListener("touchend",M),g.addEventListener("mousemove",w),g.addEventListener("mouseup",M);function w(m){var k=gq(m),S=+k-f,b,T,h;switch(s){case a:if(h="ew-resize",p+S>t._length||x+S<0)return;b=p+S,T=x+S;break;case o:if(h="col-resize",p+S>t._length)return;b=p+S,T=x;break;case i:if(h="col-resize",x+S<0)return;b=p,T=x+S;break;default:h="ew-resize",b=c,T=c+S;break}if(T<b){var _=T;T=b,b=_}n._pixelMin=b,n._pixelMax=T,whe(Fd.select(g),h),The(e,r,t,n)}function M(){g.removeEventListener("mousemove",w),g.removeEventListener("mouseup",M),this.removeEventListener("touchmove",w),this.removeEventListener("touchend",M),Wt.removeElement(g)}}e.on("mousedown",l),e.on("touchstart",l)}function The(e,r,t,n){function a(l){return t.l2r(Wt.constrain(l,n._rl[0],n._rl[1]))}var o=a(n.p2d(n._pixelMin)),i=a(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){yhe.call("_guiRelayout",r,t._name+".range",[o,i])})}function Ahe(e,r,t,n,a,o){var i=Kr.handleWidth/2;function l(m){return Wt.constrain(m,0,n._width)}function u(m){return Wt.constrain(m,0,n._height)}function s(m){return Wt.constrain(m,-i,n._width+i)}var f=l(n.d2p(t._rl[0])),c=l(n.d2p(t._rl[1]));if(e.select("rect."+Kr.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+Kr.maskMinClassName).attr("width",f),e.select("rect."+Kr.maskMaxClassName).attr("x",c).attr("width",n._width-c),o.rangemode!=="match"){var p=n._height-u(n.d2pOppAxis(a._rl[1])),x=n._height-u(n.d2pOppAxis(a._rl[0]));e.select("rect."+Kr.maskMinOppAxisClassName).attr("x",f).attr("height",p).attr("width",c-f),e.select("rect."+Kr.maskMaxOppAxisClassName).attr("x",f).attr("y",x).attr("height",n._height-x).attr("width",c-f),e.select("rect."+Kr.slideBoxClassName).attr("y",p).attr("height",x-p)}var g=.5,w=Math.round(s(f-i))-g,M=Math.round(s(c-i))+g;e.select("g."+Kr.grabberMinClassName).attr("transform",Pd(w,g)),e.select("g."+Kr.grabberMaxClassName).attr("transform",Pd(M,g))}function khe(e,r,t,n){var a=Wt.ensureSingle(e,"rect",Kr.bgClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),o=n.borderwidth%2===0?n.borderwidth:n.borderwidth-1,i=-n._offsetShift,l=yq.crispRound(r,n.borderwidth);a.attr({width:n._width+o,height:n._height+o,transform:Pd(i,i),"stroke-width":l}).call(zl.stroke,n.bordercolor).call(zl.fill,n.bgcolor)}function She(e,r,t,n){var a=r._fullLayout,o=Wt.ensureSingleById(a._topdefs,"clipPath",n._clipId,function(i){i.append("rect").attr({x:0,y:0})});o.select("rect").attr({width:n._width,height:n._height})}function Che(e,r,t,n){var a=r.calcdata,o=e.selectAll("g."+Kr.rangePlotClassName).data(t._subplotsWith,Wt.identity);o.enter().append("g").attr("class",function(l){return Kr.rangePlotClassName+" "+l}).call(yq.setClipUrl,n._clipId,r),o.order(),o.exit().remove();var i;o.each(function(l,u){var s=Fd.select(this),f=u===0,c=mx.getFromId(r,l,"y"),p=c._name,x=n[p],g={data:[],layout:{xaxis:{type:t.type,domain:[0,1],range:n.range.slice(),calendar:t.calendar},width:n._width,height:n._height,margin:{t:0,b:0,l:0,r:0}},_context:r._context};t.rangebreaks&&(g.layout.xaxis.rangebreaks=t.rangebreaks),g.layout[p]={type:c.type,domain:[0,1],range:x.rangemode!=="match"?x.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(g.layout[p].rangebreaks=c.rangebreaks),mhe.supplyDefaults(g);var w=g._fullLayout.xaxis,M=g._fullLayout[p];w.clearCalc(),w.setScale(),M.clearCalc(),M.setScale();var m={id:l,plotgroup:s,xaxis:w,yaxis:M,isRangePlot:!0};f?i=m:(m.mainplot="xy",m.mainplotinfo=i),xhe.rangePlot(r,m,Ehe(a,l))})}function Ehe(e,r){for(var t=[],n=0;n<e.length;n++){var a=e[n],o=a[0].trace;o.xaxis+o.yaxis===r&&t.push(a)}return t}function Lhe(e,r,t,n,a){var o=Wt.ensureSingle(e,"rect",Kr.maskMinClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})});o.attr("height",n._height).call(zl.fill,Kr.maskColor);var i=Wt.ensureSingle(e,"rect",Kr.maskMaxClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});if(i.attr("height",n._height).call(zl.fill,Kr.maskColor),a.rangemode!=="match"){var l=Wt.ensureSingle(e,"rect",Kr.maskMinOppAxisClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",n._width).call(zl.fill,Kr.maskOppAxisColor);var u=Wt.ensureSingle(e,"rect",Kr.maskMaxOppAxisClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});u.attr("width",n._width).style("border-top",Kr.maskOppBorder).call(zl.fill,Kr.maskOppAxisColor)}}function Dhe(e,r,t,n){if(!r._context.staticPlot){var a=Wt.ensureSingle(e,"rect",Kr.slideBoxClassName,function(o){o.attr({y:0,cursor:Kr.slideBoxCursor,"shape-rendering":"crispEdges"})});a.attr({height:n._height,fill:Kr.slideBoxFill})}}function Rhe(e,r,t,n){var a=Wt.ensureSingle(e,"g",Kr.grabberMinClassName),o=Wt.ensureSingle(e,"g",Kr.grabberMaxClassName),i={x:0,width:Kr.handleWidth,rx:Kr.handleRadius,fill:zl.background,stroke:zl.defaultLine,"stroke-width":Kr.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(n._height/4),height:Math.round(n._height/2)},u=Wt.ensureSingle(a,"rect",Kr.handleMinClassName,function(x){x.attr(i)});u.attr(l);var s=Wt.ensureSingle(o,"rect",Kr.handleMaxClassName,function(x){x.attr(i)});s.attr(l);var f={width:Kr.grabAreaWidth,x:0,y:0,fill:Kr.grabAreaFill,cursor:r._context.staticPlot?void 0:Kr.grabAreaCursor},c=Wt.ensureSingle(a,"rect",Kr.grabAreaMinClassName,function(x){x.attr(f)});c.attr("height",n._height);var p=Wt.ensureSingle(o,"rect",Kr.grabAreaMaxClassName,function(x){x.attr(f)});p.attr("height",n._height)}});var _q=xe((B4e,xq)=>{"use strict";var Fhe=rr(),Phe=Cd(),Ihe=yx(),bx=uq();xq.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Fhe.extendFlat({},Phe,{yaxis:Ihe})}}},layoutAttributes:Cd(),handleDefaults:hq(),calcAutorange:pq(),draw:bq(),isVisible:bx.isVisible,makeData:bx.makeData,autoMarginOpts:bx.autoMarginOpts}});var Id=xe((O4e,Mq)=>{"use strict";var zhe=Nn(),wq=Zi(),Nhe=wt().templatedArray,qhe=Nhe("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"});Mq.exports={visible:{valType:"boolean",editType:"plot"},buttons:qhe,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:zhe({editType:"plot"}),bgcolor:{valType:"color",dflt:wq.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:wq.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var xx=xe((U4e,Tq)=>{"use strict";Tq.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Sq=xe((H4e,kq)=>{"use strict";var zd=rr(),Bhe=Xr(),Ohe=wt(),Uhe=Mi(),Aq=Id(),_x=xx();kq.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=Ohe.newContainer(t,"rangeselector");function u(x,g){return zd.coerce(i,l,Aq,x,g)}var s=Uhe(i,l,{name:"buttons",handleItemDefaults:Hhe,calendar:o}),f=u("visible",s.length>0);if(f){var c=Vhe(t,n,a);u("x",c[0]),u("y",c[1]),zd.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),zd.coerceFont(u,"font",n.font);var p=u("bgcolor");u("activecolor",Bhe.contrast(p,_x.lightAmount,_x.darkAmount)),u("bordercolor"),u("borderwidth")}};function Hhe(e,r,t,n){var a=n.calendar;function o(u,s){return zd.coerce(e,r,Aq.buttons,u,s)}var i=o("visible");if(i){var l=o("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":o("stepmode"),o("count")),o("label")}}function Vhe(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,o=0;o<n.length;o++){var i=r[n[o]].domain;i&&(a=Math.max(i[1],a))}return[e.domain[0],a+_x.yPad]}});var Eq=xe((V4e,Cq)=>{"use strict";var Ghe=Yp(),Yhe=rr().titleCase;Cq.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=Xhe(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function Xhe(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=Ghe["utc"+Yhe(a)],i=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+o.offset(n,-i));break;case"todate":var u=o.offset(n,-i);l=e.l2r(+o.ceil(u));break}var s=t[1];return[l,s]}});var Nq=xe((G4e,zq)=>{"use strict";var qd=nt(),Whe=Cr(),Zhe=bn(),Lq=Xr(),Iq=Mt(),Oo=rr(),Dq=Oo.strTranslate,Nd=Un(),Jhe=fn(),Tx=On(),Rq=Tx.LINE_SPACING,Fq=Tx.FROM_TL,Pq=Tx.FROM_BR,Mx=xx(),$he=Eq();zq.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(Khe(r),Qhe);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=qd.select(this),i=a,l=i.rangeselector,u=o.selectAll("g.button").data(Oo.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=qd.select(this),c=$he(i,s);s._isActive=jhe(i,s,c),f.call(wx,l,s),f.call(r1e,l,s,r),f.on("click",function(){r._dragged||Whe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){s._isHovered=!0,f.call(wx,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(wx,l,s)})}),n1e(r,u,l,i._name,o)})};function Khe(e){for(var r=Jhe.list(e,"x",!0),t=[],n=0;n<r.length;n++){var a=r[n];a.rangeselector&&a.rangeselector.visible&&t.push(a)}return t}function Qhe(e){return e._id}function jhe(e,r,t){if(r.step==="all")return e.autorange===!0;var n=Object.keys(t);return e.range[0]===t[n[0]]&&e.range[1]===t[n[1]]}function wx(e,r,t){var n=Oo.ensureSingle(e,"rect","selector-rect",function(a){a.attr("shape-rendering","crispEdges")});n.attr({rx:Mx.rx,ry:Mx.ry}),n.call(Lq.stroke,r.bordercolor).call(Lq.fill,e1e(r,t)).style("stroke-width",r.borderwidth+"px")}function e1e(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function r1e(e,r,t,n){function a(i){Nd.convertToTspans(i,n)}var o=Oo.ensureSingle(e,"text","selector-text",function(i){i.attr("text-anchor","middle")});o.call(Iq.font,r.font).text(t1e(t,n._fullLayout._meta)).call(a)}function t1e(e,r){return e.label?r?Oo.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function n1e(e,r,t,n,a){var o=0,i=0,l=t.borderwidth;r.each(function(){var x=qd.select(this),g=x.select(".selector-text"),w=t.font.size*Rq,M=Math.max(w*Nd.lineCount(g),16)+3;i=Math.max(i,M)}),r.each(function(){var x=qd.select(this),g=x.select(".selector-rect"),w=x.select(".selector-text"),M=w.node()&&Iq.bBox(w.node()).width,m=t.font.size*Rq,k=Nd.lineCount(w),S=Math.max(M+10,Mx.minButtonWidth);x.attr("transform",Dq(l+o,l)),g.attr({x:0,y:0,width:S,height:i}),Nd.positionText(w,S/2,i/2-(k-1)*m/2+3),o+=S+5});var u=e._fullLayout._size,s=u.l+u.w*t.x,f=u.t+u.h*(1-t.y),c="left";Oo.isRightAnchor(t)&&(s-=o,c="right"),Oo.isCenterAnchor(t)&&(s-=o/2,c="center");var p="top";Oo.isBottomAnchor(t)&&(f-=i,p="bottom"),Oo.isMiddleAnchor(t)&&(f-=i/2,p="middle"),o=Math.ceil(o),i=Math.ceil(i),s=Math.round(s),f=Math.round(f),Zhe.autoMargin(e,n+"-range-selector",{x:t.x,y:t.y,l:o*Fq[c],r:o*Pq[c],b:i*Pq[p],t:i*Fq[p]}),a.attr("transform",Dq(s,f))}});var Bq=xe((Y4e,qq)=>{"use strict";qq.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Id()}}},layoutAttributes:Id(),handleDefaults:Sq(),draw:Nq()}});var Bd=xe(Ax=>{"use strict";var Oq=Rt().extendFlat;Ax.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace":"subplot",o=r.description?" "+r.description:"",i={x:Oq({},t,{}),y:Oq({},t,{}),editType:e.editType};return e.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:e.editType},i.column={valType:"integer",min:0,dflt:0,editType:e.editType}),i};Ax.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],o=n&&n.y||[0,1],i=r.grid;if(i){var l=t("domain.column");l!==void 0&&(l<i.columns?a=i._domains.x[l]:delete e.domain.column);var u=t("domain.row");u!==void 0&&(u<i.rows?o=i._domains.y[u]:delete e.domain.row)}var s=t("domain.x",a),f=t("domain.y",o);s[0]<s[1]||(e.domain.x=a.slice()),f[0]<f[1]||(e.domain.y=o.slice())}});var Yq=xe((W4e,Gq)=>{"use strict";var a1e=rr(),i1e=(E0(),Kn(C0)).counter,o1e=Bd().attributes,Uq=mn().idRegex,l1e=wt(),kx={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:[i1e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[Uq.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[Uq.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:o1e({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 Od(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function s1e(e,r){var t=e.grid||{},n=Od(r,t,"x"),a=Od(r,t,"y");if(!e.grid&&!n&&!a)return;var o=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),i=Array.isArray(n),l=Array.isArray(a),u=i&&n!==t.xaxes&&l&&a!==t.yaxes,s,f;o?(s=t.subplots.length,f=t.subplots[0].length):(l&&(s=a.length),i&&(f=n.length));var c=l1e.newContainer(r,"grid");function p(h,_){return a1e.coerce(t,c,kx,h,_)}var x=p("rows",s),g=p("columns",f);if(!(x*g>1)){delete r.grid;return}if(!o&&!i&&!l){var w=p("pattern")==="independent";w&&(o=!0)}c._hasSubplotGrid=o;var M=p("roworder"),m=M==="top to bottom",k=o?.2:.1,S=o?.3:.1,b,T;u&&r._splomGridDflt&&(b=r._splomGridDflt.xside,T=r._splomGridDflt.yside),c._domains={x:Hq("x",p,k,b,g),y:Hq("y",p,S,T,x,m)}}function Hq(e,r,t,n,a,o){var i=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var u=new Array(a),s=l[0],f=(l[1]-s)/(a-i),c=f*(1-i),p=0;p<a;p++){var x=s+f*p;u[o?a-1-p:p]=[x,x+c]}return u}function u1e(e,r){var t=r.grid;if(!(!t||!t._domains)){var n=e.grid||{},a=r._subplots,o=t._hasSubplotGrid,i=t.rows,l=t.columns,u=t.pattern==="independent",s,f,c,p,x,g,w,M=t._axisMap={};if(o){var m=n.subplots||[];g=t.subplots=new Array(i);var k=1;for(s=0;s<i;s++){var S=g[s]=new Array(l),b=m[s]||[];for(f=0;f<l;f++)if(u?(x=k===1?"xy":"x"+k+"y"+k,k++):x=b[f],S[f]="",a.cartesian.indexOf(x)!==-1){if(w=x.indexOf("y"),c=x.slice(0,w),p=x.slice(w),M[c]!==void 0&&M[c]!==f||M[p]!==void 0&&M[p]!==s)continue;S[f]=x,M[c]=f,M[p]=s}}}else{var T=Od(r,n,"x"),h=Od(r,n,"y");t.xaxes=Vq(T,a.xaxis,l,M,"x"),t.yaxes=Vq(h,a.yaxis,i,M,"y")}var _=t._anchors={},y=t.roworder==="top to bottom";for(var v in M){var A=v.charAt(0),d=t[A+"side"],D,E,R;if(d.length<8)_[v]="free";else if(A==="x"){if(d.charAt(0)==="t"===y?(D=0,E=1,R=i):(D=i-1,E=-1,R=-1),o){var z=M[v];for(s=D;s!==R;s+=E)if(x=g[s][z],!!x&&(w=x.indexOf("y"),x.slice(0,w)===v)){_[v]=x.slice(w);break}}else for(s=D;s!==R;s+=E)if(p=t.yaxes[s],a.cartesian.indexOf(v+p)!==-1){_[v]=p;break}}else if(d.charAt(0)==="l"?(D=0,E=1,R=l):(D=l-1,E=-1,R=-1),o){var I=M[v];for(s=D;s!==R;s+=E)if(x=g[I][s],!!x&&(w=x.indexOf("y"),x.slice(w)===v)){_[v]=x.slice(0,w);break}}else for(s=D;s!==R;s+=E)if(c=t.xaxes[s],a.cartesian.indexOf(c+v)!==-1){_[v]=c;break}}}}function Vq(e,r,t,n,a){var o=new Array(t),i;function l(u,s){r.indexOf(s)!==-1&&n[s]===void 0?(o[u]=s,n[s]=u):o[u]=""}if(Array.isArray(e))for(i=0;i<t;i++)l(i,e[i]);else for(l(0,a),i=1;i<t;i++)l(i,a+(i+1));return o}Gq.exports={moduleType:"component",name:"grid",schema:{layout:{grid:kx}},layoutAttributes:kx,sizeDefaults:s1e,contentDefaults:u1e}});var Sx=xe((Z4e,Xq)=>{"use strict";Xq.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var Jq=xe((J4e,Zq)=>{"use strict";var Wq=it(),f1e=Cr(),c1e=rr(),v1e=wt(),h1e=Sx();Zq.exports=function(e,r,t,n){var a="error_"+n.axis,o=v1e.newContainer(r,a),i=e[a]||{};function l(g,w){return c1e.coerce(i,o,h1e,g,w)}var u=i.array!==void 0||i.value!==void 0||i.type==="sqrt",s=l("visible",u);if(s!==!1){var f=l("type","array"in i?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in i))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var p="copy_"+n.inherit+"style";if(n.inherit){var x=r["error_"+n.inherit];(x||{}).visible&&l(p,!(i.color||Wq(i.thickness)||Wq(i.width)))}(!n.inherit||!o[p])&&(l("color",t),l("thickness"),l("width",f1e.traceIs(r,"gl3d")?0:4))}}});var Cx=xe(($4e,Kq)=>{"use strict";Kq.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(s,f){var c=+a[f];return[c,c]};var o=r.arrayminus||[];return function(s,f){var c=+a[f],p=+o[f];return!isNaN(c)||!isNaN(p)?[p||0,c||0]:[NaN,NaN]}}else{var i=$q(t,r.value),l=$q(t,r.valueminus);return n||r.valueminus===void 0?function(s){var f=i(s);return[f,f]}:function(s){return[l(s),i(s)]}}};function $q(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var eB=xe((K4e,jq)=>{"use strict";var Ex=it(),d1e=Cr(),Lx=Bt(),p1e=rr(),g1e=Cx();jq.exports=function(r){for(var t=r.calcdata,n=0;n<t.length;n++){var a=t[n],o=a[0].trace;if(o.visible===!0&&d1e.traceIs(o,"errorBarsOK")){var i=Lx.getFromId(r,o.xaxis),l=Lx.getFromId(r,o.yaxis);Qq(a,o,i,"x"),Qq(a,o,l,"y")}}};function Qq(e,r,t,n){var a=r["error_"+n]||{},o=a.visible&&["linear","log"].indexOf(t.type)!==-1,i=[];if(o){for(var l=g1e(a),u=0;u<e.length;u++){var s=e[u],f=s.i;if(f===void 0)f=u;else if(f===null)continue;var c=s[n];if(Ex(t.c2l(c))){var p=l(c,f);if(Ex(p[0])&&Ex(p[1])){var x=s[n+"s"]=c-p[0],g=s[n+"h"]=c+p[1];i.push(x,g)}}}var w=t._id,M=r._extremes[w],m=Lx.findExtremes(t,i,p1e.extendFlat({tozero:M.opts.tozero},{padded:!0}));M.min=M.min.concat(m.min),M.max=M.max.concat(m.max)}}});var nB=xe((Q4e,tB)=>{"use strict";var rB=nt(),Nl=it(),y1e=Mt(),m1e=wa();tB.exports=function(r,t,n,a){var o,i=n.xaxis,l=n.yaxis,u=a&&a.duration>0,s=r._context.staticPlot;t.each(function(f){var c=f[0].trace,p=c.error_x||{},x=c.error_y||{},g;c.ids&&(g=function(k){return k.id});var w=m1e.hasMarkers(c)&&c.marker.maxdisplayed>0;!x.visible&&!p.visible&&(f=[]);var M=rB.select(this).selectAll("g.errorbar").data(f,g);if(M.exit().remove(),!!f.length){p.visible||M.selectAll("path.xerror").remove(),x.visible||M.selectAll("path.yerror").remove(),M.style("opacity",1);var m=M.enter().append("g").classed("errorbar",!0);u&&m.style("opacity",0).transition().duration(a.duration).style("opacity",1),y1e.setClipUrl(M,n.layerClipId,r),M.each(function(k){var S=rB.select(this),b=b1e(k,i,l);if(!(w&&!k.vis)){var T,h=S.select("path.yerror");if(x.visible&&Nl(b.x)&&Nl(b.yh)&&Nl(b.ys)){var _=x.width;T="M"+(b.x-_)+","+b.yh+"h"+2*_+"m-"+_+",0V"+b.ys,b.noYS||(T+="m-"+_+",0h"+2*_),o=!h.size(),o?h=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(h=h.transition().duration(a.duration).ease(a.easing)),h.attr("d",T)}else h.remove();var y=S.select("path.xerror");if(p.visible&&Nl(b.y)&&Nl(b.xh)&&Nl(b.xs)){var v=(p.copy_ystyle?x:p).width;T="M"+b.xh+","+(b.y-v)+"v"+2*v+"m0,-"+v+"H"+b.xs,b.noXS||(T+="m0,-"+v+"v"+2*v),o=!y.size(),o?y=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("xerror",!0):u&&(y=y.transition().duration(a.duration).ease(a.easing)),y.attr("d",T)}else y.remove()}})}})};function b1e(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),Nl(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),Nl(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var oB=xe((j4e,iB)=>{"use strict";var x1e=nt(),aB=Xr();iB.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=x1e.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(aB.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(aB.stroke,o.color)})}});var uB=xe((e6e,sB)=>{"use strict";var rv=rr(),lB=ea().overrideAll,tv=Sx(),Qs={error_x:rv.extendFlat({},tv),error_y:rv.extendFlat({},tv)};delete Qs.error_x.copy_zstyle;delete Qs.error_y.copy_zstyle;delete Qs.error_y.copy_ystyle;var nv={error_x:rv.extendFlat({},tv),error_y:rv.extendFlat({},tv),error_z:rv.extendFlat({},tv)};delete nv.error_x.copy_ystyle;delete nv.error_y.copy_ystyle;delete nv.error_z.copy_ystyle;delete nv.error_z.copy_zstyle;sB.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Qs,bar:Qs,histogram:Qs,scatter3d:lB(nv,"calc","nested"),scattergl:lB(Qs,"calc","nested")}},supplyDefaults:Jq(),calc:eB(),makeComputeError:Cx(),plot:nB(),style:oB(),hoverInfo:_1e};function _1e(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var cB=xe((r6e,fB)=>{"use strict";fB.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var bB=xe((t6e,mB)=>{"use strict";var ql=nt(),Hd=bn(),vB=Cr(),Uo=Bt(),Ud=Ai(),ci=rr(),zi=ci.strTranslate,yB=Rt().extendFlat,Dx=Ml(),Ii=Mt(),Fu=Xr(),w1e=Zf(),M1e=Un(),T1e=$i().flipScale,A1e=cd(),k1e=Ob(),S1e=$a(),Fx=On(),hB=Fx.LINE_SPACING,dB=Fx.FROM_TL,pB=Fx.FROM_BR,Ot=cB().cn;function C1e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Ot.colorbar).data(E1e(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Ot.colorbar,!0),t.each(function(n){var a=ql.select(this);ci.ensureSingle(a,"rect",Ot.cbbg),ci.ensureSingle(a,"g",Ot.cbfills),ci.ensureSingle(a,"g",Ot.cblines),ci.ensureSingle(a,"g",Ot.cbaxis,function(i){i.classed(Ot.crisp,!0)}),ci.ensureSingle(a,"g",Ot.cbtitleunshift,function(i){i.append("g").classed(Ot.cbtitle,!0)}),ci.ensureSingle(a,"rect",Ot.cboutline);var o=L1e(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&D1e(a,n,e)}),t.exit().each(function(n){Hd.autoMargin(e,n._id)}).remove(),t.order()}function E1e(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return yB(S,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function s(){typeof l.calc=="function"?l.calc(e,i,a):(a._fillgradient=o.reversescale?T1e(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var f=0;f<t.length;f++){var c=t[f];if(i=c[0].trace,!!i._module){var p=i._module.colorbar;if(i.visible===!0&&p)for(var x=Array.isArray(p),g=x?p:[p],w=0;w<g.length;w++){l=g[w];var M=l.container;o=M?i[M]:i,o&&o.showscale&&(a=u(o.colorbar),a._id="cb"+i.uid+(x&&M?"-"+M:""),a._traceIndex=i.index,a._propPrefix=(M?M+".":"")+"colorbar.",a._meta=i._meta,s(),n.push(a))}}}for(var m in r._colorAxes)if(o=r[m],o.showscale){var k=r._colorAxes[m];a=u(o.colorbar),a._id="cb"+m,a._propPrefix=m+".colorbar.",a._meta=r._meta,l={min:"cmin",max:"cmax"},k[0]!=="heatmap"&&(i=k[1],l.calc=i._module.colorbar.calc),s(),n.push(a)}return n}var Rx=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],gB=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function L1e(e,r,t){var n=r.orientation==="v",a=r.len,o=r.lenmode,i=r.thickness,l=r.thicknessmode,u=r.outlinewidth,s=r.borderwidth,f=r.bgcolor,c=r.xanchor,p=r.yanchor,x=r.xpad,g=r.ypad,w=r.x,M=n?r.y:1-r.y,m=r.yref==="paper",k=r.xref==="paper",S=t._fullLayout,b=S._size,T=r._fillcolor,h=r._line,_=r.title,y=_.side,v=r._zrange||ql.extent((typeof T=="function"?T:h.color).domain()),A=typeof h.color=="function"?h.color:function(){return h.color},d=typeof T=="function"?T:function(){return T},D=r._levels,E=R1e(t,r,v),R=E.fill,z=E.line,I=Math.round(i*(l==="fraction"?n?b.w:b.h:1)),P=I/(n?b.w:b.h),L=Math.round(a*(o==="fraction"?n?b.h:b.w:1)),F=L/(n?b.h:b.w),B=k?b.w:t._fullLayout.width,O=m?b.h:t._fullLayout.height,V=Math.round(n?w*B+x:M*O+g),K={center:.5,right:1}[c]||0,j={top:1,middle:.5}[p]||0,G=n?w-K*P:M-j*P,q=n?M-j*F:w-K*F,J=Math.round(n?O*(1-q):B*q);r._lenFrac=F,r._thickFrac=P,r._uFrac=G,r._vFrac=q;var te=r._axis=F1e(t,r,v);te.position=P+(n?w+x/b.w:M+g/b.h);var Z=["top","bottom"].indexOf(y)!==-1;if(n&&Z&&(te.title.side=y,te.titlex=w+x/b.w,te.titley=q+(_.side==="top"?F-g/b.h:g/b.h)),!n&&!Z&&(te.title.side=y,te.titley=M+g/b.h,te.titlex=q+x/b.w),h.color&&r.tickmode==="auto"){te.tickmode="linear",te.tick0=D.start;var ie=D.size,Q=ci.constrain(L/50,4,15)+1,re=(v[1]-v[0])/((r.nticks||Q)*ie);if(re>1){var ue=Math.pow(10,Math.floor(Math.log(re)/Math.LN10));ie*=ue*ci.roundUp(re/ue,[2,5,10]),(Math.abs(D.start)/D.size+1e-6)%1<2e-6&&(te.tick0=0)}te.dtick=ie}var ee=n?g/b.h:x/b.w;te.domain=gB(Rx([q,q+F],ee),ee),te.setScale(),e.attr("transform",zi(Math.round(b.l),Math.round(b.t)));var ae=e.select("."+Ot.cbtitleunshift).attr("transform",zi(-Math.round(b.l),-Math.round(b.t))),ce=te.ticklabelposition,Te=te.title.font.size,ke=e.select("."+Ot.cbaxis),Se,ge=0,Le=0;function Ce(oe,ve){var he={propContainer:te,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Ot.cbtitle)},me=oe.charAt(0)==="h"?oe.slice(1):"h"+oe;e.selectAll("."+me+",."+me+"-math-group").remove(),w1e.draw(t,oe,yB(he,ve||{}))}function le(){if(n&&Z||!n&&!Z){var oe,ve;y==="top"&&(oe=x+b.l+B*w,ve=g+b.t+O*(1-q-F)+3+Te*.75),y==="bottom"&&(oe=x+b.l+B*w,ve=g+b.t+O*(1-q)-3-Te*.25),y==="right"&&(ve=g+b.t+O*M+3+Te*.75,oe=x+b.l+B*q),Ce(te._id+"title",{attributes:{x:oe,y:ve,"text-anchor":n?"start":"middle"}})}}function Y(){if(n&&!Z||!n&&Z){var oe=te.position||0,ve=te._offset+te._length/2,he,me;if(y==="right")me=ve,he=b.l+B*oe+10+Te*(te.showticklabels?1:.5);else if(he=ve,y==="bottom"&&(me=b.t+O*oe+10+(ce.indexOf("inside")===-1?te.tickfont.size:0)+(te.ticks!=="inside"&&r.ticklen||0)),y==="top"){var be=_.text.split("<br>").length;me=b.t+O*oe+10-I-hB*Te*be}Ce((n?"h":"v")+te._id+"title",{avoid:{selection:ql.select(t).selectAll("g."+te._id+"tick"),side:y,offsetTop:n?0:b.t,offsetLeft:n?b.l:0,maxShift:n?S.width:S.height},attributes:{x:he,y:me,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function $(){if(!n&&!Z||n&&Z){var oe=e.select("."+Ot.cbtitle),ve=oe.select("text"),he=[-u/2,u/2],me=oe.select(".h"+te._id+"title-math-group").node(),be=15.6;ve.node()&&(be=parseInt(ve.node().style.fontSize,10)*hB);var ye;if(me?(ye=Ii.bBox(me),Le=ye.width,ge=ye.height,ge>be&&(he[1]-=(ge-be)/2)):ve.node()&&!ve.classed(Ot.jsPlaceholder)&&(ye=Ii.bBox(ve.node()),Le=ye.width,ge=ye.height),n){if(ge){if(ge+=5,y==="top")te.domain=gB(te.domain,ge/b.h),he[1]*=-1;else{te.domain=Rx(te.domain,ge/b.h);var de=M1e.lineCount(ve);he[1]+=(1-de)*be}oe.attr("transform",zi(he[0],he[1])),te.setScale()}}else Le&&(y==="right"&&(te.domain=Rx(te.domain,(Le+Te/2)/b.w)),oe.attr("transform",zi(he[0],he[1])),te.setScale())}e.selectAll("."+Ot.cbfills+",."+Ot.cblines).attr("transform",n?zi(0,Math.round(b.h*(1-te.domain[1]))):zi(Math.round(b.w*te.domain[0]),0)),ke.attr("transform",n?zi(0,Math.round(-b.t)):zi(Math.round(-b.l),0));var _e=e.select("."+Ot.cbfills).selectAll("rect."+Ot.cbfill).attr("style","").data(R);_e.enter().append("rect").classed(Ot.cbfill,!0).attr("style",""),_e.exit().remove();var Ae=v.map(te.c2p).map(Math.round).sort(function(Be,Oe){return Be-Oe});_e.each(function(Be,Oe){var We=[Oe===0?v[0]:(R[Oe]+R[Oe-1])/2,Oe===R.length-1?v[1]:(R[Oe]+R[Oe+1])/2].map(te.c2p).map(Math.round);n&&(We[1]=ci.constrain(We[1]+(We[1]>We[0])?1:-1,Ae[0],Ae[1]));var Xe=ql.select(this).attr(n?"x":"y",V).attr(n?"y":"x",ql.min(We)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(ql.max(We)-ql.min(We),2));if(r._fillgradient)Ii.gradient(Xe,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var tr=d(Be).replace("e-","");Xe.attr("fill",Fu.hexString(tr))}});var Pe=e.select("."+Ot.cblines).selectAll("path."+Ot.cbline).data(h.color&&h.width?z:[]);Pe.enter().append("path").classed(Ot.cbline,!0),Pe.exit().remove(),Pe.each(function(Be){var Oe=V,We=Math.round(te.c2p(Be))+h.width/2%1;ql.select(this).attr("d","M"+(n?Oe+","+We:We+","+Oe)+(n?"h":"v")+I).call(Ii.lineGroupStyle,h.width,A(Be),h.dash)}),ke.selectAll("g."+te._id+"tick,path").remove();var Fe=V+I+(u||0)/2-(r.ticks==="outside"?1:0),Ye=Uo.calcTicks(te),qe=Uo.getTickSigns(te)[2];return Uo.drawTicks(t,te,{vals:te.ticks==="inside"?Uo.clipEnds(te,Ye):Ye,layer:ke,path:Uo.makeTickPath(te,Fe,qe),transFn:Uo.makeTransTickFn(te)}),Uo.drawLabels(t,te,{vals:Ye,layer:ke,transFn:Uo.makeTransTickLabelFn(te),labelFns:Uo.makeLabelFns(te,Fe)})}function pe(){var oe,ve=I+u/2;ce.indexOf("inside")===-1&&(oe=Ii.bBox(ke.node()),ve+=n?oe.width:oe.height),Se=ae.select("text");var he=0,me=n&&y==="top",be=!n&&y==="right",ye=0;if(Se.node()&&!Se.classed(Ot.jsPlaceholder)){var de,_e=ae.select(".h"+te._id+"title-math-group").node();_e&&(n&&Z||!n&&!Z)?(oe=Ii.bBox(_e),he=oe.width,de=oe.height):(oe=Ii.bBox(ae.node()),he=oe.right-b.l-(n?V:J),de=oe.bottom-b.t-(n?J:V),!n&&y==="top"&&(ve+=oe.height,ye=oe.height)),be&&(Se.attr("transform",zi(he/2+Te/2,0)),he*=2),ve=Math.max(ve,n?he:de)}var Ae=(n?x:g)*2+ve+s+u/2,Pe=0;!n&&_.text&&p==="bottom"&&M<=0&&(Pe=Ae/2,Ae+=Pe,ye+=Pe),S._hColorbarMoveTitle=Pe,S._hColorbarMoveCBTitle=ye;var Fe=s+u,Ye=(n?V:J)-Fe/2-(n?x:0),qe=(n?J:V)-(n?L:g+ye-Pe);e.select("."+Ot.cbbg).attr("x",Ye).attr("y",qe).attr(n?"width":"height",Math.max(Ae-Pe,2)).attr(n?"height":"width",Math.max(L+Fe,2)).call(Fu.fill,f).call(Fu.stroke,r.bordercolor).style("stroke-width",s);var Be=be?Math.max(he-10,0):0;e.selectAll("."+Ot.cboutline).attr("x",(n?V:J+x)+Be).attr("y",(n?J+g-L:V)+(me?ge:0)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(L-(n?2*g+ge:2*x+Be),2)).call(Fu.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var Oe=n?K*Ae:0,We=n?0:(1-j)*Ae-ye;if(Oe=k?b.l-Oe:-Oe,We=m?b.t-We:-We,e.attr("transform",zi(Oe,We)),!n&&(s||Fu.opacity(f)&&!Fu.equals(S.paper_bgcolor,f))){var Xe=ke.selectAll("text"),tr=Xe[0].length,ir=e.select("."+Ot.cbbg).node(),je=Ii.bBox(ir),Ke=Ii.getTranslate(e),Ee=2;Xe.each(function(Wr,bt){var Jr=0,lt=tr-1;if(bt===Jr||bt===lt){var Cn=Ii.bBox(this),lr=Ii.getTranslate(this),zr;if(bt===lt){var rt=Cn.right+lr.x,Or=je.right+Ke.x+J-s-Ee+w;zr=Or-rt,zr>0&&(zr=0)}else if(bt===Jr){var Gr=Cn.left+lr.x,pt=je.left+Ke.x+J+s+Ee;zr=pt-Gr,zr<0&&(zr=0)}zr&&(tr<3?this.setAttribute("transform","translate("+zr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ze={},Qe=dB[c],er=pB[c],wr=dB[p],Vr=pB[p],Mr=Ae-I;n?(o==="pixels"?(ze.y=M,ze.t=L*wr,ze.b=L*Vr):(ze.t=ze.b=0,ze.yt=M+a*wr,ze.yb=M-a*Vr),l==="pixels"?(ze.x=w,ze.l=Ae*Qe,ze.r=Ae*er):(ze.l=Mr*Qe,ze.r=Mr*er,ze.xl=w-i*Qe,ze.xr=w+i*er)):(o==="pixels"?(ze.x=w,ze.l=L*Qe,ze.r=L*er):(ze.l=ze.r=0,ze.xl=w+a*Qe,ze.xr=w-a*er),l==="pixels"?(ze.y=1-M,ze.t=Ae*wr,ze.b=Ae*Vr):(ze.t=Mr*wr,ze.b=Mr*Vr,ze.yt=M-i*wr,ze.yb=M+i*Vr));var Rr=r.y<.5?"b":"t",Qr=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Sr={r:S.width-Ye-Oe,l:Ye+ze.r,b:S.height-qe-We,t:qe+ze.b};k&&m?Hd.autoMargin(t,r._id,ze):k?t._fullLayout._reservedMargin[r._id][Rr]=Sr[Rr]:m||n?t._fullLayout._reservedMargin[r._id][Qr]=Sr[Qr]:t._fullLayout._reservedMargin[r._id][Rr]=Sr[Rr]}return ci.syncOrAsync([Hd.previousPromises,le,$,Y,Hd.previousPromises,pe],t)}function D1e(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;Ud.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),Dx(e)},moveFn:function(s,f){e.attr("transform",i+zi(s,f)),l=Ud.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=Ud.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Ud.getCursor(l,u,r.xanchor,r.yanchor);Dx(e,c)},doneFn:function(){if(Dx(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?vB.call("_guiRestyle",t,s,r._traceIndex):vB.call("_guiRelayout",t,s)}}})}function R1e(e,r,t){var n=r._levels,a=[],o=[],i,l,u=n.end+n.size/100,s=n.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(i=n.start+l*s,!(s>0?i>=u:i<=u));l++)i>f&&i<c&&a.push(i);if(r._fillgradient)o=[0];else if(typeof r._fillcolor=="function"){var p=r._filllevels;if(p)for(u=p.end+p.size/100,s=p.size,l=0;l<1e5&&(i=p.start+l*s,!(s>0?i>=u:i<=u));l++)i>t[0]&&i<t[1]&&o.push(i);else o=a.map(function(x){return x-n.size/2}),o.push(o[o.length-1]+n.size)}else r._fillcolor&&typeof r._fillcolor=="string"&&(o=[0]);return n.size<0&&(a.reverse(),o.reverse()),{line:a,fill:o}}function F1e(e,r,t){var n=e._fullLayout,a=r.orientation==="v",o={type:"linear",range:t,tickmode:r.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:r.ticks,ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,showticklabels:r.showticklabels,labelalias:r.labelalias,ticklabelposition:r.ticklabelposition,ticklabeloverflow:r.ticklabeloverflow,ticklabelstep:r.ticklabelstep,tickfont:r.tickfont,tickangle:r.tickangle,tickformat:r.tickformat,exponentformat:r.exponentformat,minexponent:r.minexponent,separatethousands:r.separatethousands,showexponent:r.showexponent,showtickprefix:r.showtickprefix,tickprefix:r.tickprefix,showticksuffix:r.showticksuffix,ticksuffix:r.ticksuffix,title:r.title,showline:!0,anchor:"free",side:a?"right":"bottom",position:1},i=a?"y":"x",l={type:"linear",_id:i+r._id},u={letter:i,font:n.font,noAutotickangles:i==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:n.calendar};function s(f,c){return ci.coerce(o,l,S1e,f,c)}return A1e(o,l,s,u,n),k1e(o,l,s,u),l}mB.exports={draw:C1e}});var _B=xe((n6e,xB)=>{"use strict";xB.exports={moduleType:"component",name:"colorbar",attributes:a1(),supplyDefaults:Fy(),draw:bB().draw,hasColorbar:wy()}});var MB=xe((a6e,wB)=>{"use strict";wB.exports={moduleType:"component",name:"legend",layoutAttributes:Cm(),supplyLayoutDefaults:Lm(),draw:Ym(),style:Um()}});var AB=xe((i6e,TB)=>{"use strict";TB.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var SB=xe((o6e,kB)=>{"use strict";kB.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var Ix=xe((l6e,DB)=>{"use strict";var P1e=Cr(),LB=rr(),Px=LB.extendFlat,CB=LB.extendDeep;function EB(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function I1e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}DB.exports=function(r,t){var n,a=r.data,o=r.layout,i=CB([],a),l=CB({},o,EB(t.tileClass)),u=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var s=Object.keys(l);for(n=0;n<s.length;n++)I1e(s[n])&&(l[s[n]].title={text:""});for(n=0;n<i.length;n++){var f=i[n];f.showscale=!1,f.marker&&(f.marker.showscale=!1),P1e.traceIs(f,"pie-like")&&(f.textposition="none")}}if(Array.isArray(t.annotations))for(n=0;n<t.annotations.length;n++)l.annotations.push(t.annotations[n]);var c=Object.keys(l).filter(function(M){return M.match(/^scene\d*$/)});if(c.length){var p={};for(t.tileClass==="thumbnail"&&(p={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),n=0;n<c.length;n++){var x=l[c[n]];x.xaxis||(x.xaxis={}),x.yaxis||(x.yaxis={}),x.zaxis||(x.zaxis={}),Px(x.xaxis,p),Px(x.yaxis,p),Px(x.zaxis,p),x._scene=null}}var g=document.createElement("div");t.tileClass&&(g.className=t.tileClass);var w={gd:g,td:g,layout:l,data:i,config:{staticPlot:t.staticPlot===void 0?!0:t.staticPlot,plotGlPixelRatio:t.plotGlPixelRatio===void 0?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showTips:t.showTips||!1}};return t.setBackground!=="transparent"&&(w.config.setBackground=t.setBackground||"opaque"),w.gd.defaultLayout=EB(t.tileClass),w}});var PB=xe((s6e,FB)=>{"use strict";var z1e=Xh().EventEmitter,N1e=Cr(),q1e=rr(),RB=Us(),B1e=Ix(),O1e=W2(),U1e=Z2();function H1e(e,r){var t=new z1e,n=B1e(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=RB.getDelay(a._fullLayout);setTimeout(function(){var u=O1e(a),s=document.createElement("canvas");s.id=q1e.randstr(),t=U1e({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:s,emitter:t,svg:u}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var i=RB.getRedrawFunc(a);return N1e.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}FB.exports=H1e});var NB=xe((u6e,zB)=>{"use strict";var IB=Us(),V1e={getDelay:IB.getDelay,getRedrawFunc:IB.getRedrawFunc,clone:Ix(),toSVG:W2(),svgToImg:Z2(),toImage:PB(),downloadImage:cb()};zB.exports=V1e});var BB=xe(Ho=>{"use strict";Ho.version=lf().version;k_();pT();var G1e=Cr(),av=Ho.register=G1e.register,Nx=NF(),qB=Object.keys(Nx);for(Vd=0;Vd<qB.length;Vd++)Pu=qB[Vd],Pu.charAt(0)!=="_"&&(Ho[Pu]=Nx[Pu]),av({moduleType:"apiMethod",name:Pu,fn:Nx[Pu]});var Pu,Vd;av(QI());av([Mz(),zz(),gu(),rN(),dN(),zN(),tq(),_q(),Bq(),Yq(),uB(),ji(),_B(),MB(),so(),y5()]);av([AB(),SB()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(av(window.PlotlyLocales),delete window.PlotlyLocales);Ho.Icons=J1();var Gd=so(),zx=bn();Ho.Plots={resize:zx.resize,graphJson:zx.graphJson,sendDataToCloud:zx.sendDataToCloud};Ho.Fx={hover:Gd.hover,unhover:Gd.unhover,loneHover:Gd.loneHover,loneUnhover:Gd.loneUnhover};Ho.Snapshot=NB();Ho.PlotSchema=H0()});var UB=xe((c6e,OB)=>{"use strict";OB.exports=BB()});var kn=xe((v6e,HB)=>{"use strict";(()=>{var e={3065(a,o,i){a.exports={alpha_shape:i(3502),convex_hull:i(7352),delaunay_triangulate:i(7642),gl_cone3d:i(6405),gl_error3d:i(9165),gl_line3d:i(5714),gl_mesh3d:i(7201),gl_plot3d:i(4100),gl_scatter3d:i(8418),gl_streamtube3d:i(7815),gl_surface3d:i(9499),ndarray:i(9618),ndarray_linear_interpolate:i(4317)}},6296(a,o,i){"use strict";a.exports=p;var l=i(7261),u=i(9977),s=i(1811);function f(x,g){this._controllerNames=Object.keys(x),this._controllerList=this._controllerNames.map(function(w){return x[w]}),this._mode=g,this._active=x[g],this._active||(this._mode="turntable",this._active=x.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 c=f.prototype;c.flush=function(x){for(var g=this._controllerList,w=0;w<g.length;++w)g[w].flush(x)},c.idle=function(x){for(var g=this._controllerList,w=0;w<g.length;++w)g[w].idle(x)},c.lookAt=function(x,g,w,M){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].lookAt(x,g,w,M)},c.rotate=function(x,g,w,M){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].rotate(x,g,w,M)},c.pan=function(x,g,w,M){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].pan(x,g,w,M)},c.translate=function(x,g,w,M){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].translate(x,g,w,M)},c.setMatrix=function(x,g){for(var w=this._controllerList,M=0;M<w.length;++M)w[M].setMatrix(x,g)},c.setDistanceLimits=function(x,g){for(var w=this._controllerList,M=0;M<w.length;++M)w[M].setDistanceLimits(x,g)},c.setDistance=function(x,g){for(var w=this._controllerList,M=0;M<w.length;++M)w[M].setDistance(x,g)},c.recalcMatrix=function(x){this._active.recalcMatrix(x)},c.getDistance=function(x){return this._active.getDistance(x)},c.getDistanceLimits=function(x){return this._active.getDistanceLimits(x)},c.lastT=function(){return this._active.lastT()},c.setMode=function(x){if(x!==this._mode){var g=this._controllerNames.indexOf(x);if(!(g<0)){var w=this._active,M=this._controllerList[g],m=Math.max(w.lastT(),M.lastT());w.recalcMatrix(m),M.setMatrix(m,w.computedMatrix),this._active=M,this._mode=x,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}}},c.getMode=function(){return this._mode};function p(x){x=x||{};var g=x.eye||[0,0,1],w=x.center||[0,0,0],M=x.up||[0,1,0],m=x.distanceLimits||[0,1/0],k=x.mode||"turntable",S=l(),b=u(),T=s();return S.setDistanceLimits(m[0],m[1]),S.lookAt(0,g,w,M),b.setDistanceLimits(m[0],m[1]),b.lookAt(0,g,w,M),T.setDistanceLimits(m[0],m[1]),T.lookAt(0,g,w,M),new f({turntable:S,orbit:b,matrix:T},k)}},7169(a,o,i){"use strict";var l=typeof WeakMap=="undefined"?i(1538):WeakMap,u=i(2762),s=i(8116),f=new l;function c(p){var x=f.get(p),g=x&&(x._triangleBuffer.handle||x._triangleBuffer.buffer);if(!g||!p.isBuffer(g)){var w=u(p,new Float32Array([-1,-1,-1,4,4,-1]));x=s(p,[{buffer:w,type:p.FLOAT,size:2}]),x._triangleBuffer=w,f.set(p,x)}x.bind(),p.drawArrays(p.TRIANGLES,0,3),x.unbind()}a.exports=c},1085(a,o,i){var l=i(1371);a.exports=u;function u(s,f,c){f=typeof f=="number"?f:1,c=c||": ";var p=s.split(/\r?\n/),x=String(p.length+f-1).length;return p.map(function(g,w){var M=w+f,m=String(M).length,k=l(M,x-m);return k+c+g}).join(`
`)}},3952(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,c){for(var p=new Array(c+1),x=0;x<f.length;++x)p[x]=f[x];for(var x=0;x<=f.length;++x){for(var g=f.length;g<=c;++g){for(var w=new Array(c),M=0;M<c;++M)w[M]=Math.pow(g+1-x,M);p[g]=w}var m=l.apply(void 0,p);if(m)return!0}return!1}function s(f){var c=f.length;if(c===0)return[];if(c===1)return[0];for(var p=f[0].length,x=[f[0]],g=[0],w=1;w<c;++w){if(x.push(f[w]),!u(x,p)){x.pop();continue}if(g.push(w),g.length===p+1)return g}return g}},5995(a,o,i){"use strict";a.exports=s;var l=i(7642),u=i(6037);function s(f,c){return l(c).filter(function(p){for(var x=new Array(p.length),g=0;g<p.length;++g)x[g]=c[p[g]];return u(x)*f<1})}},3502(a,o,i){a.exports=s;var l=i(5995),u=i(9127);function s(f,c){return u(l(f,c))}},6468(a){a.exports=function(i){return atob(i)}},2642(a,o,i){"use strict";a.exports=s;var l=i(727);function u(f){for(var c=0,p=0;p<f.length;++p)c+=f[p];return c}function s(f,c){for(var p=c.length,x=new Array(p+1),g=0;g<p;++g){for(var w=new Array(p+1),M=0;M<=p;++M)w[M]=f[M][g];x[g]=w}x[p]=new Array(p+1);for(var g=0;g<=p;++g)x[p][g]=1;for(var m=new Array(p+1),g=0;g<p;++g)m[g]=c[g];m[p]=1;var k=l(x,m),S=u(k[p+1]);S===0&&(S=1);for(var b=new Array(p+1),g=0;g<=p;++g)b[g]=u(k[g])/S;return b}},7507(a,o){"use strict";o.byteLength=x,o.toByteArray=w,o.fromByteArray=k;for(var i=[],l=[],u=typeof Uint8Array!="undefined"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,c=s.length;f<c;++f)i[f]=s[f],l[s.charCodeAt(f)]=f;l[45]=62,l[95]=63;function p(S){var b=S.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=S.indexOf("=");T===-1&&(T=b);var h=T===b?0:4-T%4;return[T,h]}function x(S){var b=p(S),T=b[0],h=b[1];return(T+h)*3/4-h}function g(S,b,T){return(b+T)*3/4-T}function w(S){var b,T=p(S),h=T[0],_=T[1],y=new u(g(S,h,_)),v=0,A=_>0?h-4:h,d;for(d=0;d<A;d+=4)b=l[S.charCodeAt(d)]<<18|l[S.charCodeAt(d+1)]<<12|l[S.charCodeAt(d+2)]<<6|l[S.charCodeAt(d+3)],y[v++]=b>>16&255,y[v++]=b>>8&255,y[v++]=b&255;return _===2&&(b=l[S.charCodeAt(d)]<<2|l[S.charCodeAt(d+1)]>>4,y[v++]=b&255),_===1&&(b=l[S.charCodeAt(d)]<<10|l[S.charCodeAt(d+1)]<<4|l[S.charCodeAt(d+2)]>>2,y[v++]=b>>8&255,y[v++]=b&255),y}function M(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function m(S,b,T){for(var h,_=[],y=b;y<T;y+=3)h=(S[y]<<16&16711680)+(S[y+1]<<8&65280)+(S[y+2]&255),_.push(M(h));return _.join("")}function k(S){for(var b,T=S.length,h=T%3,_=[],y=16383,v=0,A=T-h;v<A;v+=y)_.push(m(S,v,v+y>A?A:v+y));return h===1?(b=S[T-1],_.push(i[b>>2]+i[b<<4&63]+"==")):h===2&&(b=(S[T-2]<<8)+S[T-1],_.push(i[b>>10]+i[b>>4&63]+i[b<<2&63]+"=")),_.join("")}},3865(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).add(f[0].mul(s[1])),s[1].mul(f[1]))}},1318(a){"use strict";a.exports=o;function o(i,l){return i[0].mul(l[1]).cmp(l[0].mul(i[1]))}},8697(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]),s[1].mul(f[0]))}},7842(a,o,i){"use strict";var l=i(6330),u=i(1533),s=i(2651),f=i(6768),c=i(869),p=i(8697);a.exports=x;function x(g,w){if(l(g))return w?p(g,x(w)):[g[0].clone(),g[1].clone()];var M=0,m,k;if(u(g))m=g.clone();else if(typeof g=="string")m=f(g);else{if(g===0)return[s(0),s(1)];if(g===Math.floor(g))m=s(g);else{for(;g!==Math.floor(g);)g=g*Math.pow(2,256),M-=256;m=s(g)}}if(l(w))m.mul(w[1]),k=w[0].clone();else if(u(w))k=w.clone();else if(typeof w=="string")k=f(w);else if(!w)k=s(1);else if(w===Math.floor(w))k=s(w);else{for(;w!==Math.floor(w);)w=w*Math.pow(2,256),M+=256;k=s(w)}return M>0?m=m.ushln(M):M<0&&(k=k.ushln(-M)),c(m,k)}},6330(a,o,i){"use strict";var l=i(1533);a.exports=u;function u(s){return Array.isArray(s)&&s.length===2&&l(s[0])&&l(s[1])}},5716(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s.cmp(new l(0))}},1369(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){var f=s.length,c=s.words,p=0;if(f===1)p=c[0];else if(f===2)p=c[0]+c[1]*67108864;else for(var x=0;x<f;x++){var g=c[x];p+=g*Math.pow(67108864,x)}return l(s)*p}},4025(a,o,i){"use strict";var l=i(2361),u=i(8828).countTrailingZeros;a.exports=s;function s(f){var c=u(l.lo(f));if(c<32)return c;var p=u(l.hi(f));return p>20?52:p+32}},1533(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s&&typeof s=="object"&&!!s.words}},2651(a,o,i){"use strict";var l=i(6859),u=i(2361);a.exports=s;function s(f){var c=u.exponent(f);return c<52?new l(f):new l(f*Math.pow(2,52-c)).ushln(c-52)}},869(a,o,i){"use strict";var l=i(2651),u=i(5716);a.exports=s;function s(f,c){var p=u(f),x=u(c);if(p===0)return[l(0),l(1)];if(x===0)return[l(0),l(0)];x<0&&(f=f.neg(),c=c.neg());var g=f.gcd(c);return g.cmpn(1)?[f.div(g),c.div(g)]:[f,c]}},6768(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return new l(s)}},6504(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[0]),s[1].mul(f[1]))}},7721(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){return l(s[0])*l(s[1])}},5572(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).sub(s[1].mul(f[0])),s[1].mul(f[1]))}},946(a,o,i){"use strict";var l=i(1369),u=i(4025);a.exports=s;function s(f){var c=f[0],p=f[1];if(c.cmpn(0)===0)return 0;var x=c.abs().divmod(p.abs()),g=x.div,w=l(g),M=x.mod,m=c.negative!==p.negative?-1:1;if(M.cmpn(0)===0)return m*w;if(w){var k=u(w)+4,S=l(M.ushln(k).divRound(p));return m*(w+S*Math.pow(2,-k))}else{var b=p.bitLength()-M.bitLength()+53,S=l(M.ushln(b).divRound(p));return b<1023?m*S*Math.pow(2,-b):(S*=Math.pow(2,-1023),m*S*Math.pow(2,1023-b))}}},2478(a){"use strict";function o(c,p,x,g,w){for(var M=w+1;g<=w;){var m=g+w>>>1,k=c[m],S=x!==void 0?x(k,p):k-p;S>=0?(M=m,w=m-1):g=m+1}return M}function i(c,p,x,g,w){for(var M=w+1;g<=w;){var m=g+w>>>1,k=c[m],S=x!==void 0?x(k,p):k-p;S>0?(M=m,w=m-1):g=m+1}return M}function l(c,p,x,g,w){for(var M=g-1;g<=w;){var m=g+w>>>1,k=c[m],S=x!==void 0?x(k,p):k-p;S<0?(M=m,g=m+1):w=m-1}return M}function u(c,p,x,g,w){for(var M=g-1;g<=w;){var m=g+w>>>1,k=c[m],S=x!==void 0?x(k,p):k-p;S<=0?(M=m,g=m+1):w=m-1}return M}function s(c,p,x,g,w){for(;g<=w;){var M=g+w>>>1,m=c[M],k=x!==void 0?x(m,p):m-p;if(k===0)return M;k<=0?g=M+1:w=M-1}return-1}function f(c,p,x,g,w,M){return typeof x=="function"?M(c,p,x,g===void 0?0:g|0,w===void 0?c.length-1:w|0):M(c,p,void 0,x===void 0?0:x|0,g===void 0?c.length-1:g|0)}a.exports={ge:function(c,p,x,g,w){return f(c,p,x,g,w,o)},gt:function(c,p,x,g,w){return f(c,p,x,g,w,i)},lt:function(c,p,x,g,w){return f(c,p,x,g,w,l)},le:function(c,p,x,g,w){return f(c,p,x,g,w,u)},eq:function(c,p,x,g,w){return f(c,p,x,g,w,s)}}},8828(a,o){"use strict";"use restrict";var i=32;o.INT_BITS=i,o.INT_MAX=2147483647,o.INT_MIN=-1<<i-1,o.sign=function(s){return(s>0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s<f)},o.max=function(s,f){return s^(s^f)&-(s<f)},o.isPow2=function(s){return!(s&s-1)&&!!s},o.log2=function(s){var f,c;return f=(s>65535)<<4,s>>>=f,c=(s>255)<<3,s>>>=c,f|=c,c=(s>15)<<2,s>>>=c,f|=c,c=(s>3)<<1,s>>>=c,f|=c,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var c=f,p=f,x=7;for(c>>>=1;c;c>>>=1)p<<=1,p|=c&1,--x;s[f]=p<<x&255}})(u),o.reverse=function(s){return u[s&255]<<24|u[s>>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,c){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,s|c<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},6859(a,o,i){a=i.nmd(a),(function(l,u){"use strict";function s(P,L){if(!P)throw new Error(L||"Assertion failed")}function f(P,L){P.super_=L;var F=function(){};F.prototype=L.prototype,P.prototype=new F,P.prototype.constructor=P}function c(P,L,F){if(c.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((L==="le"||L==="be")&&(F=L,L=10),this._init(P||0,L||10,F||"be"))}typeof l=="object"?l.exports=c:u.BN=c,c.BN=c,c.wordSize=26;var p;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?p=window.Buffer:p=i(7790).Buffer}catch(P){}c.isBN=function(L){return L instanceof c?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===c.wordSize&&Array.isArray(L.words)},c.max=function(L,F){return L.cmp(F)>0?L:F},c.min=function(L,F){return L.cmp(F)<0?L:F},c.prototype._init=function(L,F,B){if(typeof L=="number")return this._initNumber(L,F,B);if(typeof L=="object")return this._initArray(L,F,B);F==="hex"&&(F=16),s(F===(F|0)&&F>=2&&F<=36),L=L.toString().replace(/\s+/g,"");var O=0;L[0]==="-"&&(O++,this.negative=1),O<L.length&&(F===16?this._parseHex(L,O,B):(this._parseBase(L,F,O),B==="le"&&this._initArray(this.toArray(),F,B)))},c.prototype._initNumber=function(L,F,B){L<0&&(this.negative=1,L=-L),L<67108864?(this.words=[L&67108863],this.length=1):L<4503599627370496?(this.words=[L&67108863,L/67108864&67108863],this.length=2):(s(L<9007199254740992),this.words=[L&67108863,L/67108864&67108863,1],this.length=3),B==="le"&&this._initArray(this.toArray(),F,B)},c.prototype._initArray=function(L,F,B){if(s(typeof L.length=="number"),L.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(L.length/3),this.words=new Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var V,K,j=0;if(B==="be")for(O=L.length-1,V=0;O>=0;O-=3)K=L[O]|L[O-1]<<8|L[O-2]<<16,this.words[V]|=K<<j&67108863,this.words[V+1]=K>>>26-j&67108863,j+=24,j>=26&&(j-=26,V++);else if(B==="le")for(O=0,V=0;O<L.length;O+=3)K=L[O]|L[O+1]<<8|L[O+2]<<16,this.words[V]|=K<<j&67108863,this.words[V+1]=K>>>26-j&67108863,j+=24,j>=26&&(j-=26,V++);return this.strip()};function x(P,L){var F=P.charCodeAt(L);return F>=65&&F<=70?F-55:F>=97&&F<=102?F-87:F-48&15}function g(P,L,F){var B=x(P,F);return F-1>=L&&(B|=x(P,F-1)<<4),B}c.prototype._parseHex=function(L,F,B){this.length=Math.ceil((L.length-F)/6),this.words=new Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var V=0,K=0,j;if(B==="be")for(O=L.length-1;O>=F;O-=2)j=g(L,F,O)<<V,this.words[K]|=j&67108863,V>=18?(V-=18,K+=1,this.words[K]|=j>>>26):V+=8;else{var G=L.length-F;for(O=G%2===0?F+1:F;O<L.length;O+=2)j=g(L,F,O)<<V,this.words[K]|=j&67108863,V>=18?(V-=18,K+=1,this.words[K]|=j>>>26):V+=8}this.strip()};function w(P,L,F,B){for(var O=0,V=Math.min(P.length,F),K=L;K<V;K++){var j=P.charCodeAt(K)-48;O*=B,j>=49?O+=j-49+10:j>=17?O+=j-17+10:O+=j}return O}c.prototype._parseBase=function(L,F,B){this.words=[0],this.length=1;for(var O=0,V=1;V<=67108863;V*=F)O++;O--,V=V/F|0;for(var K=L.length-B,j=K%O,G=Math.min(K,K-j)+B,q=0,J=B;J<G;J+=O)q=w(L,J,J+O,F),this.imuln(V),this.words[0]+q<67108864?this.words[0]+=q:this._iaddn(q);if(j!==0){var te=1;for(q=w(L,J,L.length,F),J=0;J<j;J++)te*=F;this.imuln(te),this.words[0]+q<67108864?this.words[0]+=q:this._iaddn(q)}this.strip()},c.prototype.copy=function(L){L.words=new Array(this.length);for(var F=0;F<this.length;F++)L.words[F]=this.words[F];L.length=this.length,L.negative=this.negative,L.red=this.red},c.prototype.clone=function(){var L=new c(null);return this.copy(L),L},c.prototype._expand=function(L){for(;this.length<L;)this.words[this.length++]=0;return this},c.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","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"],m=[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],k=[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];c.prototype.toString=function(L,F){L=L||10,F=F|0||1;var B;if(L===16||L==="hex"){B="";for(var O=0,V=0,K=0;K<this.length;K++){var j=this.words[K],G=((j<<O|V)&16777215).toString(16);V=j>>>24-O&16777215,O+=2,O>=26&&(O-=26,K--),V!==0||K!==this.length-1?B=M[6-G.length]+G+B:B=G+B}for(V!==0&&(B=V.toString(16)+B);B.length%F!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(L===(L|0)&&L>=2&&L<=36){var q=m[L],J=k[L];B="";var te=this.clone();for(te.negative=0;!te.isZero();){var Z=te.modn(J).toString(L);te=te.idivn(J),te.isZero()?B=Z+B:B=M[q-Z.length]+Z+B}for(this.isZero()&&(B="0"+B);B.length%F!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}s(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var L=this.words[0];return this.length===2?L+=this.words[1]*67108864:this.length===3&&this.words[2]===1?L+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-L:L},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(L,F){return s(typeof p!="undefined"),this.toArrayLike(p,L,F)},c.prototype.toArray=function(L,F){return this.toArrayLike(Array,L,F)},c.prototype.toArrayLike=function(L,F,B){var O=this.byteLength(),V=B||Math.max(1,O);s(O<=V,"byte array longer than desired length"),s(V>0,"Requested array length <= 0"),this.strip();var K=F==="le",j=new L(V),G,q,J=this.clone();if(K){for(q=0;!J.isZero();q++)G=J.andln(255),J.iushrn(8),j[q]=G;for(;q<V;q++)j[q]=0}else{for(q=0;q<V-O;q++)j[q]=0;for(q=0;!J.isZero();q++)G=J.andln(255),J.iushrn(8),j[V-q-1]=G}return j},Math.clz32?c.prototype._countBits=function(L){return 32-Math.clz32(L)}:c.prototype._countBits=function(L){var F=L,B=0;return F>=4096&&(B+=13,F>>>=13),F>=64&&(B+=7,F>>>=7),F>=8&&(B+=4,F>>>=4),F>=2&&(B+=2,F>>>=2),B+F},c.prototype._zeroBits=function(L){if(L===0)return 26;var F=L,B=0;return(F&8191)===0&&(B+=13,F>>>=13),(F&127)===0&&(B+=7,F>>>=7),(F&15)===0&&(B+=4,F>>>=4),(F&3)===0&&(B+=2,F>>>=2),(F&1)===0&&B++,B},c.prototype.bitLength=function(){var L=this.words[this.length-1],F=this._countBits(L);return(this.length-1)*26+F};function S(P){for(var L=new Array(P.bitLength()),F=0;F<L.length;F++){var B=F/26|0,O=F%26;L[F]=(P.words[B]&1<<O)>>>O}return L}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,F=0;F<this.length;F++){var B=this._zeroBits(this.words[F]);if(L+=B,B!==26)break}return L},c.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},c.prototype.toTwos=function(L){return this.negative!==0?this.abs().inotn(L).iaddn(1):this.clone()},c.prototype.fromTwos=function(L){return this.testn(L-1)?this.notn(L).iaddn(1).ineg():this.clone()},c.prototype.isNeg=function(){return this.negative!==0},c.prototype.neg=function(){return this.clone().ineg()},c.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},c.prototype.iuor=function(L){for(;this.length<L.length;)this.words[this.length++]=0;for(var F=0;F<L.length;F++)this.words[F]=this.words[F]|L.words[F];return this.strip()},c.prototype.ior=function(L){return s((this.negative|L.negative)===0),this.iuor(L)},c.prototype.or=function(L){return this.length>L.length?this.clone().ior(L):L.clone().ior(this)},c.prototype.uor=function(L){return this.length>L.length?this.clone().iuor(L):L.clone().iuor(this)},c.prototype.iuand=function(L){var F;this.length>L.length?F=L:F=this;for(var B=0;B<F.length;B++)this.words[B]=this.words[B]&L.words[B];return this.length=F.length,this.strip()},c.prototype.iand=function(L){return s((this.negative|L.negative)===0),this.iuand(L)},c.prototype.and=function(L){return this.length>L.length?this.clone().iand(L):L.clone().iand(this)},c.prototype.uand=function(L){return this.length>L.length?this.clone().iuand(L):L.clone().iuand(this)},c.prototype.iuxor=function(L){var F,B;this.length>L.length?(F=this,B=L):(F=L,B=this);for(var O=0;O<B.length;O++)this.words[O]=F.words[O]^B.words[O];if(this!==F)for(;O<F.length;O++)this.words[O]=F.words[O];return this.length=F.length,this.strip()},c.prototype.ixor=function(L){return s((this.negative|L.negative)===0),this.iuxor(L)},c.prototype.xor=function(L){return this.length>L.length?this.clone().ixor(L):L.clone().ixor(this)},c.prototype.uxor=function(L){return this.length>L.length?this.clone().iuxor(L):L.clone().iuxor(this)},c.prototype.inotn=function(L){s(typeof L=="number"&&L>=0);var F=Math.ceil(L/26)|0,B=L%26;this._expand(F),B>0&&F--;for(var O=0;O<F;O++)this.words[O]=~this.words[O]&67108863;for(B>0&&(this.words[O]=~this.words[O]&67108863>>26-B,O++);O<this.length;O++)this.words[O]=0;return this.strip()},c.prototype.notn=function(L){return this.clone().inotn(L)},c.prototype.setn=function(L,F){s(typeof L=="number"&&L>=0);var B=L/26|0,O=L%26;return this._expand(B+1),F?this.words[B]=this.words[B]|1<<O:this.words[B]=this.words[B]&~(1<<O),this.strip()},c.prototype.iadd=function(L){var F;if(this.negative!==0&&L.negative===0)return this.negative=0,F=this.isub(L),this.negative^=1,this._normSign();if(this.negative===0&&L.negative!==0)return L.negative=0,F=this.isub(L),L.negative=1,F._normSign();var B,O;this.length>L.length?(B=this,O=L):(B=L,O=this);for(var V=0,K=0;K<O.length;K++)F=(B.words[K]|0)+(O.words[K]|0)+V,this.words[K]=F&67108863,V=F>>>26;for(;V!==0&&K<B.length;K++)F=(B.words[K]|0)+V,this.words[K]=F&67108863,V=F>>>26;if(this.length=B.length,V!==0)this.words[this.length]=V,this.length++;else if(B!==this)for(;K<B.length;K++)this.words[K]=B.words[K];return this},c.prototype.add=function(L){var F;return L.negative!==0&&this.negative===0?(L.negative=0,F=this.sub(L),L.negative^=1,F):L.negative===0&&this.negative!==0?(this.negative=0,F=L.sub(this),this.negative=1,F):this.length>L.length?this.clone().iadd(L):L.clone().iadd(this)},c.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var F=this.iadd(L);return L.negative=1,F._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var B=this.cmp(L);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,V;B>0?(O=this,V=L):(O=L,V=this);for(var K=0,j=0;j<V.length;j++)F=(O.words[j]|0)-(V.words[j]|0)+K,K=F>>26,this.words[j]=F&67108863;for(;K!==0&&j<O.length;j++)F=(O.words[j]|0)+K,K=F>>26,this.words[j]=F&67108863;if(K===0&&j<O.length&&O!==this)for(;j<O.length;j++)this.words[j]=O.words[j];return this.length=Math.max(this.length,j),O!==this&&(this.negative=1),this.strip()},c.prototype.sub=function(L){return this.clone().isub(L)};function b(P,L,F){F.negative=L.negative^P.negative;var B=P.length+L.length|0;F.length=B,B=B-1|0;var O=P.words[0]|0,V=L.words[0]|0,K=O*V,j=K&67108863,G=K/67108864|0;F.words[0]=j;for(var q=1;q<B;q++){for(var J=G>>>26,te=G&67108863,Z=Math.min(q,L.length-1),ie=Math.max(0,q-P.length+1);ie<=Z;ie++){var Q=q-ie|0;O=P.words[Q]|0,V=L.words[ie]|0,K=O*V+te,J+=K/67108864|0,te=K&67108863}F.words[q]=te|0,G=J|0}return G!==0?F.words[q]=G|0:F.length--,F.strip()}var T=function(L,F,B){var O=L.words,V=F.words,K=B.words,j=0,G,q,J,te=O[0]|0,Z=te&8191,ie=te>>>13,Q=O[1]|0,re=Q&8191,ue=Q>>>13,ee=O[2]|0,ae=ee&8191,ce=ee>>>13,Te=O[3]|0,ke=Te&8191,Se=Te>>>13,ge=O[4]|0,Le=ge&8191,Ce=ge>>>13,le=O[5]|0,Y=le&8191,$=le>>>13,pe=O[6]|0,oe=pe&8191,ve=pe>>>13,he=O[7]|0,me=he&8191,be=he>>>13,ye=O[8]|0,de=ye&8191,_e=ye>>>13,Ae=O[9]|0,Pe=Ae&8191,Fe=Ae>>>13,Ye=V[0]|0,qe=Ye&8191,Be=Ye>>>13,Oe=V[1]|0,We=Oe&8191,Xe=Oe>>>13,tr=V[2]|0,ir=tr&8191,je=tr>>>13,Ke=V[3]|0,Ee=Ke&8191,ze=Ke>>>13,Qe=V[4]|0,er=Qe&8191,wr=Qe>>>13,Vr=V[5]|0,Mr=Vr&8191,Rr=Vr>>>13,Qr=V[6]|0,Sr=Qr&8191,Wr=Qr>>>13,bt=V[7]|0,Jr=bt&8191,lt=bt>>>13,Cn=V[8]|0,lr=Cn&8191,zr=Cn>>>13,rt=V[9]|0,Or=rt&8191,Gr=rt>>>13;B.negative=L.negative^F.negative,B.length=19,G=Math.imul(Z,qe),q=Math.imul(Z,Be),q=q+Math.imul(ie,qe)|0,J=Math.imul(ie,Be);var pt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(pt>>>26)|0,pt&=67108863,G=Math.imul(re,qe),q=Math.imul(re,Be),q=q+Math.imul(ue,qe)|0,J=Math.imul(ue,Be),G=G+Math.imul(Z,We)|0,q=q+Math.imul(Z,Xe)|0,q=q+Math.imul(ie,We)|0,J=J+Math.imul(ie,Xe)|0;var at=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(at>>>26)|0,at&=67108863,G=Math.imul(ae,qe),q=Math.imul(ae,Be),q=q+Math.imul(ce,qe)|0,J=Math.imul(ce,Be),G=G+Math.imul(re,We)|0,q=q+Math.imul(re,Xe)|0,q=q+Math.imul(ue,We)|0,J=J+Math.imul(ue,Xe)|0,G=G+Math.imul(Z,ir)|0,q=q+Math.imul(Z,je)|0,q=q+Math.imul(ie,ir)|0,J=J+Math.imul(ie,je)|0;var Ct=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,G=Math.imul(ke,qe),q=Math.imul(ke,Be),q=q+Math.imul(Se,qe)|0,J=Math.imul(Se,Be),G=G+Math.imul(ae,We)|0,q=q+Math.imul(ae,Xe)|0,q=q+Math.imul(ce,We)|0,J=J+Math.imul(ce,Xe)|0,G=G+Math.imul(re,ir)|0,q=q+Math.imul(re,je)|0,q=q+Math.imul(ue,ir)|0,J=J+Math.imul(ue,je)|0,G=G+Math.imul(Z,Ee)|0,q=q+Math.imul(Z,ze)|0,q=q+Math.imul(ie,Ee)|0,J=J+Math.imul(ie,ze)|0;var Zt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,G=Math.imul(Le,qe),q=Math.imul(Le,Be),q=q+Math.imul(Ce,qe)|0,J=Math.imul(Ce,Be),G=G+Math.imul(ke,We)|0,q=q+Math.imul(ke,Xe)|0,q=q+Math.imul(Se,We)|0,J=J+Math.imul(Se,Xe)|0,G=G+Math.imul(ae,ir)|0,q=q+Math.imul(ae,je)|0,q=q+Math.imul(ce,ir)|0,J=J+Math.imul(ce,je)|0,G=G+Math.imul(re,Ee)|0,q=q+Math.imul(re,ze)|0,q=q+Math.imul(ue,Ee)|0,J=J+Math.imul(ue,ze)|0,G=G+Math.imul(Z,er)|0,q=q+Math.imul(Z,wr)|0,q=q+Math.imul(ie,er)|0,J=J+Math.imul(ie,wr)|0;var St=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(St>>>26)|0,St&=67108863,G=Math.imul(Y,qe),q=Math.imul(Y,Be),q=q+Math.imul($,qe)|0,J=Math.imul($,Be),G=G+Math.imul(Le,We)|0,q=q+Math.imul(Le,Xe)|0,q=q+Math.imul(Ce,We)|0,J=J+Math.imul(Ce,Xe)|0,G=G+Math.imul(ke,ir)|0,q=q+Math.imul(ke,je)|0,q=q+Math.imul(Se,ir)|0,J=J+Math.imul(Se,je)|0,G=G+Math.imul(ae,Ee)|0,q=q+Math.imul(ae,ze)|0,q=q+Math.imul(ce,Ee)|0,J=J+Math.imul(ce,ze)|0,G=G+Math.imul(re,er)|0,q=q+Math.imul(re,wr)|0,q=q+Math.imul(ue,er)|0,J=J+Math.imul(ue,wr)|0,G=G+Math.imul(Z,Mr)|0,q=q+Math.imul(Z,Rr)|0,q=q+Math.imul(ie,Mr)|0,J=J+Math.imul(ie,Rr)|0;var gt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(gt>>>26)|0,gt&=67108863,G=Math.imul(oe,qe),q=Math.imul(oe,Be),q=q+Math.imul(ve,qe)|0,J=Math.imul(ve,Be),G=G+Math.imul(Y,We)|0,q=q+Math.imul(Y,Xe)|0,q=q+Math.imul($,We)|0,J=J+Math.imul($,Xe)|0,G=G+Math.imul(Le,ir)|0,q=q+Math.imul(Le,je)|0,q=q+Math.imul(Ce,ir)|0,J=J+Math.imul(Ce,je)|0,G=G+Math.imul(ke,Ee)|0,q=q+Math.imul(ke,ze)|0,q=q+Math.imul(Se,Ee)|0,J=J+Math.imul(Se,ze)|0,G=G+Math.imul(ae,er)|0,q=q+Math.imul(ae,wr)|0,q=q+Math.imul(ce,er)|0,J=J+Math.imul(ce,wr)|0,G=G+Math.imul(re,Mr)|0,q=q+Math.imul(re,Rr)|0,q=q+Math.imul(ue,Mr)|0,J=J+Math.imul(ue,Rr)|0,G=G+Math.imul(Z,Sr)|0,q=q+Math.imul(Z,Wr)|0,q=q+Math.imul(ie,Sr)|0,J=J+Math.imul(ie,Wr)|0;var Et=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Et>>>26)|0,Et&=67108863,G=Math.imul(me,qe),q=Math.imul(me,Be),q=q+Math.imul(be,qe)|0,J=Math.imul(be,Be),G=G+Math.imul(oe,We)|0,q=q+Math.imul(oe,Xe)|0,q=q+Math.imul(ve,We)|0,J=J+Math.imul(ve,Xe)|0,G=G+Math.imul(Y,ir)|0,q=q+Math.imul(Y,je)|0,q=q+Math.imul($,ir)|0,J=J+Math.imul($,je)|0,G=G+Math.imul(Le,Ee)|0,q=q+Math.imul(Le,ze)|0,q=q+Math.imul(Ce,Ee)|0,J=J+Math.imul(Ce,ze)|0,G=G+Math.imul(ke,er)|0,q=q+Math.imul(ke,wr)|0,q=q+Math.imul(Se,er)|0,J=J+Math.imul(Se,wr)|0,G=G+Math.imul(ae,Mr)|0,q=q+Math.imul(ae,Rr)|0,q=q+Math.imul(ce,Mr)|0,J=J+Math.imul(ce,Rr)|0,G=G+Math.imul(re,Sr)|0,q=q+Math.imul(re,Wr)|0,q=q+Math.imul(ue,Sr)|0,J=J+Math.imul(ue,Wr)|0,G=G+Math.imul(Z,Jr)|0,q=q+Math.imul(Z,lt)|0,q=q+Math.imul(ie,Jr)|0,J=J+Math.imul(ie,lt)|0;var Lt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,G=Math.imul(de,qe),q=Math.imul(de,Be),q=q+Math.imul(_e,qe)|0,J=Math.imul(_e,Be),G=G+Math.imul(me,We)|0,q=q+Math.imul(me,Xe)|0,q=q+Math.imul(be,We)|0,J=J+Math.imul(be,Xe)|0,G=G+Math.imul(oe,ir)|0,q=q+Math.imul(oe,je)|0,q=q+Math.imul(ve,ir)|0,J=J+Math.imul(ve,je)|0,G=G+Math.imul(Y,Ee)|0,q=q+Math.imul(Y,ze)|0,q=q+Math.imul($,Ee)|0,J=J+Math.imul($,ze)|0,G=G+Math.imul(Le,er)|0,q=q+Math.imul(Le,wr)|0,q=q+Math.imul(Ce,er)|0,J=J+Math.imul(Ce,wr)|0,G=G+Math.imul(ke,Mr)|0,q=q+Math.imul(ke,Rr)|0,q=q+Math.imul(Se,Mr)|0,J=J+Math.imul(Se,Rr)|0,G=G+Math.imul(ae,Sr)|0,q=q+Math.imul(ae,Wr)|0,q=q+Math.imul(ce,Sr)|0,J=J+Math.imul(ce,Wr)|0,G=G+Math.imul(re,Jr)|0,q=q+Math.imul(re,lt)|0,q=q+Math.imul(ue,Jr)|0,J=J+Math.imul(ue,lt)|0,G=G+Math.imul(Z,lr)|0,q=q+Math.imul(Z,zr)|0,q=q+Math.imul(ie,lr)|0,J=J+Math.imul(ie,zr)|0;var da=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(da>>>26)|0,da&=67108863,G=Math.imul(Pe,qe),q=Math.imul(Pe,Be),q=q+Math.imul(Fe,qe)|0,J=Math.imul(Fe,Be),G=G+Math.imul(de,We)|0,q=q+Math.imul(de,Xe)|0,q=q+Math.imul(_e,We)|0,J=J+Math.imul(_e,Xe)|0,G=G+Math.imul(me,ir)|0,q=q+Math.imul(me,je)|0,q=q+Math.imul(be,ir)|0,J=J+Math.imul(be,je)|0,G=G+Math.imul(oe,Ee)|0,q=q+Math.imul(oe,ze)|0,q=q+Math.imul(ve,Ee)|0,J=J+Math.imul(ve,ze)|0,G=G+Math.imul(Y,er)|0,q=q+Math.imul(Y,wr)|0,q=q+Math.imul($,er)|0,J=J+Math.imul($,wr)|0,G=G+Math.imul(Le,Mr)|0,q=q+Math.imul(Le,Rr)|0,q=q+Math.imul(Ce,Mr)|0,J=J+Math.imul(Ce,Rr)|0,G=G+Math.imul(ke,Sr)|0,q=q+Math.imul(ke,Wr)|0,q=q+Math.imul(Se,Sr)|0,J=J+Math.imul(Se,Wr)|0,G=G+Math.imul(ae,Jr)|0,q=q+Math.imul(ae,lt)|0,q=q+Math.imul(ce,Jr)|0,J=J+Math.imul(ce,lt)|0,G=G+Math.imul(re,lr)|0,q=q+Math.imul(re,zr)|0,q=q+Math.imul(ue,lr)|0,J=J+Math.imul(ue,zr)|0,G=G+Math.imul(Z,Or)|0,q=q+Math.imul(Z,Gr)|0,q=q+Math.imul(ie,Or)|0,J=J+Math.imul(ie,Gr)|0;var Wn=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Wn>>>26)|0,Wn&=67108863,G=Math.imul(Pe,We),q=Math.imul(Pe,Xe),q=q+Math.imul(Fe,We)|0,J=Math.imul(Fe,Xe),G=G+Math.imul(de,ir)|0,q=q+Math.imul(de,je)|0,q=q+Math.imul(_e,ir)|0,J=J+Math.imul(_e,je)|0,G=G+Math.imul(me,Ee)|0,q=q+Math.imul(me,ze)|0,q=q+Math.imul(be,Ee)|0,J=J+Math.imul(be,ze)|0,G=G+Math.imul(oe,er)|0,q=q+Math.imul(oe,wr)|0,q=q+Math.imul(ve,er)|0,J=J+Math.imul(ve,wr)|0,G=G+Math.imul(Y,Mr)|0,q=q+Math.imul(Y,Rr)|0,q=q+Math.imul($,Mr)|0,J=J+Math.imul($,Rr)|0,G=G+Math.imul(Le,Sr)|0,q=q+Math.imul(Le,Wr)|0,q=q+Math.imul(Ce,Sr)|0,J=J+Math.imul(Ce,Wr)|0,G=G+Math.imul(ke,Jr)|0,q=q+Math.imul(ke,lt)|0,q=q+Math.imul(Se,Jr)|0,J=J+Math.imul(Se,lt)|0,G=G+Math.imul(ae,lr)|0,q=q+Math.imul(ae,zr)|0,q=q+Math.imul(ce,lr)|0,J=J+Math.imul(ce,zr)|0,G=G+Math.imul(re,Or)|0,q=q+Math.imul(re,Gr)|0,q=q+Math.imul(ue,Or)|0,J=J+Math.imul(ue,Gr)|0;var Ha=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Ha>>>26)|0,Ha&=67108863,G=Math.imul(Pe,ir),q=Math.imul(Pe,je),q=q+Math.imul(Fe,ir)|0,J=Math.imul(Fe,je),G=G+Math.imul(de,Ee)|0,q=q+Math.imul(de,ze)|0,q=q+Math.imul(_e,Ee)|0,J=J+Math.imul(_e,ze)|0,G=G+Math.imul(me,er)|0,q=q+Math.imul(me,wr)|0,q=q+Math.imul(be,er)|0,J=J+Math.imul(be,wr)|0,G=G+Math.imul(oe,Mr)|0,q=q+Math.imul(oe,Rr)|0,q=q+Math.imul(ve,Mr)|0,J=J+Math.imul(ve,Rr)|0,G=G+Math.imul(Y,Sr)|0,q=q+Math.imul(Y,Wr)|0,q=q+Math.imul($,Sr)|0,J=J+Math.imul($,Wr)|0,G=G+Math.imul(Le,Jr)|0,q=q+Math.imul(Le,lt)|0,q=q+Math.imul(Ce,Jr)|0,J=J+Math.imul(Ce,lt)|0,G=G+Math.imul(ke,lr)|0,q=q+Math.imul(ke,zr)|0,q=q+Math.imul(Se,lr)|0,J=J+Math.imul(Se,zr)|0,G=G+Math.imul(ae,Or)|0,q=q+Math.imul(ae,Gr)|0,q=q+Math.imul(ce,Or)|0,J=J+Math.imul(ce,Gr)|0;var Oi=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,G=Math.imul(Pe,Ee),q=Math.imul(Pe,ze),q=q+Math.imul(Fe,Ee)|0,J=Math.imul(Fe,ze),G=G+Math.imul(de,er)|0,q=q+Math.imul(de,wr)|0,q=q+Math.imul(_e,er)|0,J=J+Math.imul(_e,wr)|0,G=G+Math.imul(me,Mr)|0,q=q+Math.imul(me,Rr)|0,q=q+Math.imul(be,Mr)|0,J=J+Math.imul(be,Rr)|0,G=G+Math.imul(oe,Sr)|0,q=q+Math.imul(oe,Wr)|0,q=q+Math.imul(ve,Sr)|0,J=J+Math.imul(ve,Wr)|0,G=G+Math.imul(Y,Jr)|0,q=q+Math.imul(Y,lt)|0,q=q+Math.imul($,Jr)|0,J=J+Math.imul($,lt)|0,G=G+Math.imul(Le,lr)|0,q=q+Math.imul(Le,zr)|0,q=q+Math.imul(Ce,lr)|0,J=J+Math.imul(Ce,zr)|0,G=G+Math.imul(ke,Or)|0,q=q+Math.imul(ke,Gr)|0,q=q+Math.imul(Se,Or)|0,J=J+Math.imul(Se,Gr)|0;var xo=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(xo>>>26)|0,xo&=67108863,G=Math.imul(Pe,er),q=Math.imul(Pe,wr),q=q+Math.imul(Fe,er)|0,J=Math.imul(Fe,wr),G=G+Math.imul(de,Mr)|0,q=q+Math.imul(de,Rr)|0,q=q+Math.imul(_e,Mr)|0,J=J+Math.imul(_e,Rr)|0,G=G+Math.imul(me,Sr)|0,q=q+Math.imul(me,Wr)|0,q=q+Math.imul(be,Sr)|0,J=J+Math.imul(be,Wr)|0,G=G+Math.imul(oe,Jr)|0,q=q+Math.imul(oe,lt)|0,q=q+Math.imul(ve,Jr)|0,J=J+Math.imul(ve,lt)|0,G=G+Math.imul(Y,lr)|0,q=q+Math.imul(Y,zr)|0,q=q+Math.imul($,lr)|0,J=J+Math.imul($,zr)|0,G=G+Math.imul(Le,Or)|0,q=q+Math.imul(Le,Gr)|0,q=q+Math.imul(Ce,Or)|0,J=J+Math.imul(Ce,Gr)|0;var _o=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(_o>>>26)|0,_o&=67108863,G=Math.imul(Pe,Mr),q=Math.imul(Pe,Rr),q=q+Math.imul(Fe,Mr)|0,J=Math.imul(Fe,Rr),G=G+Math.imul(de,Sr)|0,q=q+Math.imul(de,Wr)|0,q=q+Math.imul(_e,Sr)|0,J=J+Math.imul(_e,Wr)|0,G=G+Math.imul(me,Jr)|0,q=q+Math.imul(me,lt)|0,q=q+Math.imul(be,Jr)|0,J=J+Math.imul(be,lt)|0,G=G+Math.imul(oe,lr)|0,q=q+Math.imul(oe,zr)|0,q=q+Math.imul(ve,lr)|0,J=J+Math.imul(ve,zr)|0,G=G+Math.imul(Y,Or)|0,q=q+Math.imul(Y,Gr)|0,q=q+Math.imul($,Or)|0,J=J+Math.imul($,Gr)|0;var wo=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(wo>>>26)|0,wo&=67108863,G=Math.imul(Pe,Sr),q=Math.imul(Pe,Wr),q=q+Math.imul(Fe,Sr)|0,J=Math.imul(Fe,Wr),G=G+Math.imul(de,Jr)|0,q=q+Math.imul(de,lt)|0,q=q+Math.imul(_e,Jr)|0,J=J+Math.imul(_e,lt)|0,G=G+Math.imul(me,lr)|0,q=q+Math.imul(me,zr)|0,q=q+Math.imul(be,lr)|0,J=J+Math.imul(be,zr)|0,G=G+Math.imul(oe,Or)|0,q=q+Math.imul(oe,Gr)|0,q=q+Math.imul(ve,Or)|0,J=J+Math.imul(ve,Gr)|0;var dn=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(dn>>>26)|0,dn&=67108863,G=Math.imul(Pe,Jr),q=Math.imul(Pe,lt),q=q+Math.imul(Fe,Jr)|0,J=Math.imul(Fe,lt),G=G+Math.imul(de,lr)|0,q=q+Math.imul(de,zr)|0,q=q+Math.imul(_e,lr)|0,J=J+Math.imul(_e,zr)|0,G=G+Math.imul(me,Or)|0,q=q+Math.imul(me,Gr)|0,q=q+Math.imul(be,Or)|0,J=J+Math.imul(be,Gr)|0;var Wo=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,G=Math.imul(Pe,lr),q=Math.imul(Pe,zr),q=q+Math.imul(Fe,lr)|0,J=Math.imul(Fe,zr),G=G+Math.imul(de,Or)|0,q=q+Math.imul(de,Gr)|0,q=q+Math.imul(_e,Or)|0,J=J+Math.imul(_e,Gr)|0;var Ui=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,G=Math.imul(Pe,Or),q=Math.imul(Pe,Gr),q=q+Math.imul(Fe,Or)|0,J=Math.imul(Fe,Gr);var Hi=(j+G|0)+((q&8191)<<13)|0;return j=(J+(q>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,K[0]=pt,K[1]=at,K[2]=Ct,K[3]=Zt,K[4]=St,K[5]=gt,K[6]=Et,K[7]=Lt,K[8]=da,K[9]=Wn,K[10]=Ha,K[11]=Oi,K[12]=xo,K[13]=_o,K[14]=wo,K[15]=dn,K[16]=Wo,K[17]=Ui,K[18]=Hi,j!==0&&(K[19]=j,B.length++),B};Math.imul||(T=b);function h(P,L,F){F.negative=L.negative^P.negative,F.length=P.length+L.length;for(var B=0,O=0,V=0;V<F.length-1;V++){var K=O;O=0;for(var j=B&67108863,G=Math.min(V,L.length-1),q=Math.max(0,V-P.length+1);q<=G;q++){var J=V-q,te=P.words[J]|0,Z=L.words[q]|0,ie=te*Z,Q=ie&67108863;K=K+(ie/67108864|0)|0,Q=Q+j|0,j=Q&67108863,K=K+(Q>>>26)|0,O+=K>>>26,K&=67108863}F.words[V]=j,B=K,K=O}return B!==0?F.words[V]=B:F.length--,F.strip()}function _(P,L,F){var B=new y;return B.mulp(P,L,F)}c.prototype.mulTo=function(L,F){var B,O=this.length+L.length;return this.length===10&&L.length===10?B=T(this,L,F):O<63?B=b(this,L,F):O<1024?B=h(this,L,F):B=_(this,L,F),B};function y(P,L){this.x=P,this.y=L}y.prototype.makeRBT=function(L){for(var F=new Array(L),B=c.prototype._countBits(L)-1,O=0;O<L;O++)F[O]=this.revBin(O,B,L);return F},y.prototype.revBin=function(L,F,B){if(L===0||L===B-1)return L;for(var O=0,V=0;V<F;V++)O|=(L&1)<<F-V-1,L>>=1;return O},y.prototype.permute=function(L,F,B,O,V,K){for(var j=0;j<K;j++)O[j]=F[L[j]],V[j]=B[L[j]]},y.prototype.transform=function(L,F,B,O,V,K){this.permute(K,L,F,B,O,V);for(var j=1;j<V;j<<=1)for(var G=j<<1,q=Math.cos(2*Math.PI/G),J=Math.sin(2*Math.PI/G),te=0;te<V;te+=G)for(var Z=q,ie=J,Q=0;Q<j;Q++){var re=B[te+Q],ue=O[te+Q],ee=B[te+Q+j],ae=O[te+Q+j],ce=Z*ee-ie*ae;ae=Z*ae+ie*ee,ee=ce,B[te+Q]=re+ee,O[te+Q]=ue+ae,B[te+Q+j]=re-ee,O[te+Q+j]=ue-ae,Q!==G&&(ce=q*Z-J*ie,ie=q*ie+J*Z,Z=ce)}},y.prototype.guessLen13b=function(L,F){var B=Math.max(F,L)|1,O=B&1,V=0;for(B=B/2|0;B;B=B>>>1)V++;return 1<<V+1+O},y.prototype.conjugate=function(L,F,B){if(!(B<=1))for(var O=0;O<B/2;O++){var V=L[O];L[O]=L[B-O-1],L[B-O-1]=V,V=F[O],F[O]=-F[B-O-1],F[B-O-1]=-V}},y.prototype.normalize13b=function(L,F){for(var B=0,O=0;O<F/2;O++){var V=Math.round(L[2*O+1]/F)*8192+Math.round(L[2*O]/F)+B;L[O]=V&67108863,V<67108864?B=0:B=V/67108864|0}return L},y.prototype.convert13b=function(L,F,B,O){for(var V=0,K=0;K<F;K++)V=V+(L[K]|0),B[2*K]=V&8191,V=V>>>13,B[2*K+1]=V&8191,V=V>>>13;for(K=2*F;K<O;++K)B[K]=0;s(V===0),s((V&-8192)===0)},y.prototype.stub=function(L){for(var F=new Array(L),B=0;B<L;B++)F[B]=0;return F},y.prototype.mulp=function(L,F,B){var O=2*this.guessLen13b(L.length,F.length),V=this.makeRBT(O),K=this.stub(O),j=new Array(O),G=new Array(O),q=new Array(O),J=new Array(O),te=new Array(O),Z=new Array(O),ie=B.words;ie.length=O,this.convert13b(L.words,L.length,j,O),this.convert13b(F.words,F.length,J,O),this.transform(j,K,G,q,O,V),this.transform(J,K,te,Z,O,V);for(var Q=0;Q<O;Q++){var re=G[Q]*te[Q]-q[Q]*Z[Q];q[Q]=G[Q]*Z[Q]+q[Q]*te[Q],G[Q]=re}return this.conjugate(G,q,O),this.transform(G,q,ie,K,O,V),this.conjugate(ie,K,O),this.normalize13b(ie,O),B.negative=L.negative^F.negative,B.length=L.length+F.length,B.strip()},c.prototype.mul=function(L){var F=new c(null);return F.words=new Array(this.length+L.length),this.mulTo(L,F)},c.prototype.mulf=function(L){var F=new c(null);return F.words=new Array(this.length+L.length),_(this,L,F)},c.prototype.imul=function(L){return this.clone().mulTo(L,this)},c.prototype.imuln=function(L){s(typeof L=="number"),s(L<67108864);for(var F=0,B=0;B<this.length;B++){var O=(this.words[B]|0)*L,V=(O&67108863)+(F&67108863);F>>=26,F+=O/67108864|0,F+=V>>>26,this.words[B]=V&67108863}return F!==0&&(this.words[B]=F,this.length++),L===0&&(this.length=1,this._normSign()),this},c.prototype.muln=function(L){return this.clone().imuln(L)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(L){var F=S(L);if(F.length===0)return new c(1);for(var B=this,O=0;O<F.length&&F[O]===0;O++,B=B.sqr());if(++O<F.length)for(var V=B.sqr();O<F.length;O++,V=V.sqr())F[O]!==0&&(B=B.mul(V));return B},c.prototype.iushln=function(L){s(typeof L=="number"&&L>=0);var F=L%26,B=(L-F)/26,O=67108863>>>26-F<<26-F,V;if(F!==0){var K=0;for(V=0;V<this.length;V++){var j=this.words[V]&O,G=(this.words[V]|0)-j<<F;this.words[V]=G|K,K=j>>>26-F}K&&(this.words[V]=K,this.length++)}if(B!==0){for(V=this.length-1;V>=0;V--)this.words[V+B]=this.words[V];for(V=0;V<B;V++)this.words[V]=0;this.length+=B}return this.strip()},c.prototype.ishln=function(L){return s(this.negative===0),this.iushln(L)},c.prototype.iushrn=function(L,F,B){s(typeof L=="number"&&L>=0);var O;F?O=(F-F%26)/26:O=0;var V=L%26,K=Math.min((L-V)/26,this.length),j=67108863^67108863>>>V<<V,G=B;if(O-=K,O=Math.max(0,O),G){for(var q=0;q<K;q++)G.words[q]=this.words[q];G.length=K}if(K!==0)if(this.length>K)for(this.length-=K,q=0;q<this.length;q++)this.words[q]=this.words[q+K];else this.words[0]=0,this.length=1;var J=0;for(q=this.length-1;q>=0&&(J!==0||q>=O);q--){var te=this.words[q]|0;this.words[q]=J<<26-V|te>>>V,J=te&j}return G&&J!==0&&(G.words[G.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(L,F,B){return s(this.negative===0),this.iushrn(L,F,B)},c.prototype.shln=function(L){return this.clone().ishln(L)},c.prototype.ushln=function(L){return this.clone().iushln(L)},c.prototype.shrn=function(L){return this.clone().ishrn(L)},c.prototype.ushrn=function(L){return this.clone().iushrn(L)},c.prototype.testn=function(L){s(typeof L=="number"&&L>=0);var F=L%26,B=(L-F)/26,O=1<<F;if(this.length<=B)return!1;var V=this.words[B];return!!(V&O)},c.prototype.imaskn=function(L){s(typeof L=="number"&&L>=0);var F=L%26,B=(L-F)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(F!==0&&B++,this.length=Math.min(B,this.length),F!==0){var O=67108863^67108863>>>F<<F;this.words[this.length-1]&=O}return this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.maskn=function(L){return this.clone().imaskn(L)},c.prototype.iaddn=function(L){return s(typeof L=="number"),s(L<67108864),L<0?this.isubn(-L):this.negative!==0?this.length===1&&(this.words[0]|0)<L?(this.words[0]=L-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(L),this.negative=1,this):this._iaddn(L)},c.prototype._iaddn=function(L){this.words[0]+=L;for(var F=0;F<this.length&&this.words[F]>=67108864;F++)this.words[F]-=67108864,F===this.length-1?this.words[F+1]=1:this.words[F+1]++;return this.length=Math.max(this.length,F+1),this},c.prototype.isubn=function(L){if(s(typeof L=="number"),s(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var F=0;F<this.length&&this.words[F]<0;F++)this.words[F]+=67108864,this.words[F+1]-=1;return this.strip()},c.prototype.addn=function(L){return this.clone().iaddn(L)},c.prototype.subn=function(L){return this.clone().isubn(L)},c.prototype.iabs=function(){return this.negative=0,this},c.prototype.abs=function(){return this.clone().iabs()},c.prototype._ishlnsubmul=function(L,F,B){var O=L.length+B,V;this._expand(O);var K,j=0;for(V=0;V<L.length;V++){K=(this.words[V+B]|0)+j;var G=(L.words[V]|0)*F;K-=G&67108863,j=(K>>26)-(G/67108864|0),this.words[V+B]=K&67108863}for(;V<this.length-B;V++)K=(this.words[V+B]|0)+j,j=K>>26,this.words[V+B]=K&67108863;if(j===0)return this.strip();for(s(j===-1),j=0,V=0;V<this.length;V++)K=-(this.words[V]|0)+j,j=K>>26,this.words[V]=K&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(L,F){var B=this.length-L.length,O=this.clone(),V=L,K=V.words[V.length-1]|0,j=this._countBits(K);B=26-j,B!==0&&(V=V.ushln(B),O.iushln(B),K=V.words[V.length-1]|0);var G=O.length-V.length,q;if(F!=="mod"){q=new c(null),q.length=G+1,q.words=new Array(q.length);for(var J=0;J<q.length;J++)q.words[J]=0}var te=O.clone()._ishlnsubmul(V,1,G);te.negative===0&&(O=te,q&&(q.words[G]=1));for(var Z=G-1;Z>=0;Z--){var ie=(O.words[V.length+Z]|0)*67108864+(O.words[V.length+Z-1]|0);for(ie=Math.min(ie/K|0,67108863),O._ishlnsubmul(V,ie,Z);O.negative!==0;)ie--,O.negative=0,O._ishlnsubmul(V,1,Z),O.isZero()||(O.negative^=1);q&&(q.words[Z]=ie)}return q&&q.strip(),O.strip(),F!=="div"&&B!==0&&O.iushrn(B),{div:q||null,mod:O}},c.prototype.divmod=function(L,F,B){if(s(!L.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var O,V,K;return this.negative!==0&&L.negative===0?(K=this.neg().divmod(L,F),F!=="mod"&&(O=K.div.neg()),F!=="div"&&(V=K.mod.neg(),B&&V.negative!==0&&V.iadd(L)),{div:O,mod:V}):this.negative===0&&L.negative!==0?(K=this.divmod(L.neg(),F),F!=="mod"&&(O=K.div.neg()),{div:O,mod:K.mod}):(this.negative&L.negative)!==0?(K=this.neg().divmod(L.neg(),F),F!=="div"&&(V=K.mod.neg(),B&&V.negative!==0&&V.isub(L)),{div:K.div,mod:V}):L.length>this.length||this.cmp(L)<0?{div:new c(0),mod:this}:L.length===1?F==="div"?{div:this.divn(L.words[0]),mod:null}:F==="mod"?{div:null,mod:new c(this.modn(L.words[0]))}:{div:this.divn(L.words[0]),mod:new c(this.modn(L.words[0]))}:this._wordDiv(L,F)},c.prototype.div=function(L){return this.divmod(L,"div",!1).div},c.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},c.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},c.prototype.divRound=function(L){var F=this.divmod(L);if(F.mod.isZero())return F.div;var B=F.mod.abs(),O=L.abs().iushrn(1),V=L.words[0]&1,K=B.cmp(O);if(K<0||V===1&&K===0)return F.div;var j=new c(1);return j.negative=this.negative^L.negative,F.div.iadd(j)},c.prototype.modn=function(L){s(L<=67108863);for(var F=(1<<26)%L,B=0,O=this.length-1;O>=0;O--)B=(F*B+(this.words[O]|0))%L;return B},c.prototype.idivn=function(L){s(L<=67108863);for(var F=0,B=this.length-1;B>=0;B--){var O=(this.words[B]|0)+F*67108864;this.words[B]=O/L|0,F=O%L}return this.strip()},c.prototype.divn=function(L){return this.clone().idivn(L)},c.prototype.egcd=function(L){s(L.negative===0),s(!L.isZero());var F=this,B=L.clone();F.negative!==0?F=F.umod(L):F=F.clone();for(var O=new c(1),V=new c(0),K=new c(0),j=new c(1),G=0;F.isEven()&&B.isEven();)F.iushrn(1),B.iushrn(1),++G;for(var q=B.clone(),J=F.clone();!F.isZero();){for(var te=0,Z=1;(F.words[0]&Z)===0&&te<26;++te,Z<<=1);if(te>0)for(F.iushrn(te);te-- >0;)(O.isOdd()||V.isOdd())&&(O.iadd(q),V.isub(J)),O.iushrn(1),V.iushrn(1);for(var ie=0,Q=1;(B.words[0]&Q)===0&&ie<26;++ie,Q<<=1);if(ie>0)for(B.iushrn(ie);ie-- >0;)(K.isOdd()||j.isOdd())&&(K.iadd(q),j.isub(J)),K.iushrn(1),j.iushrn(1);F.cmp(B)>=0?(F.isub(B),O.isub(K),V.isub(j)):(B.isub(F),K.isub(O),j.isub(V))}return{a:K,b:j,gcd:B.iushln(G)}},c.prototype._invmp=function(L){s(L.negative===0),s(!L.isZero());var F=this,B=L.clone();F.negative!==0?F=F.umod(L):F=F.clone();for(var O=new c(1),V=new c(0),K=B.clone();F.cmpn(1)>0&&B.cmpn(1)>0;){for(var j=0,G=1;(F.words[0]&G)===0&&j<26;++j,G<<=1);if(j>0)for(F.iushrn(j);j-- >0;)O.isOdd()&&O.iadd(K),O.iushrn(1);for(var q=0,J=1;(B.words[0]&J)===0&&q<26;++q,J<<=1);if(q>0)for(B.iushrn(q);q-- >0;)V.isOdd()&&V.iadd(K),V.iushrn(1);F.cmp(B)>=0?(F.isub(B),O.isub(V)):(B.isub(F),V.isub(O))}var te;return F.cmpn(1)===0?te=O:te=V,te.cmpn(0)<0&&te.iadd(L),te},c.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var F=this.clone(),B=L.clone();F.negative=0,B.negative=0;for(var O=0;F.isEven()&&B.isEven();O++)F.iushrn(1),B.iushrn(1);do{for(;F.isEven();)F.iushrn(1);for(;B.isEven();)B.iushrn(1);var V=F.cmp(B);if(V<0){var K=F;F=B,B=K}else if(V===0||B.cmpn(1)===0)break;F.isub(B)}while(!0);return B.iushln(O)},c.prototype.invm=function(L){return this.egcd(L).a.umod(L)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(L){return this.words[0]&L},c.prototype.bincn=function(L){s(typeof L=="number");var F=L%26,B=(L-F)/26,O=1<<F;if(this.length<=B)return this._expand(B+1),this.words[B]|=O,this;for(var V=O,K=B;V!==0&&K<this.length;K++){var j=this.words[K]|0;j+=V,V=j>>>26,j&=67108863,this.words[K]=j}return V!==0&&(this.words[K]=V,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(L){var F=L<0;if(this.negative!==0&&!F)return-1;if(this.negative===0&&F)return 1;this.strip();var B;if(this.length>1)B=1;else{F&&(L=-L),s(L<=67108863,"Number is too big");var O=this.words[0]|0;B=O===L?0:O<L?-1:1}return this.negative!==0?-B|0:B},c.prototype.cmp=function(L){if(this.negative!==0&&L.negative===0)return-1;if(this.negative===0&&L.negative!==0)return 1;var F=this.ucmp(L);return this.negative!==0?-F|0:F},c.prototype.ucmp=function(L){if(this.length>L.length)return 1;if(this.length<L.length)return-1;for(var F=0,B=this.length-1;B>=0;B--){var O=this.words[B]|0,V=L.words[B]|0;if(O!==V){O<V?F=-1:O>V&&(F=1);break}}return F},c.prototype.gtn=function(L){return this.cmpn(L)===1},c.prototype.gt=function(L){return this.cmp(L)===1},c.prototype.gten=function(L){return this.cmpn(L)>=0},c.prototype.gte=function(L){return this.cmp(L)>=0},c.prototype.ltn=function(L){return this.cmpn(L)===-1},c.prototype.lt=function(L){return this.cmp(L)===-1},c.prototype.lten=function(L){return this.cmpn(L)<=0},c.prototype.lte=function(L){return this.cmp(L)<=0},c.prototype.eqn=function(L){return this.cmpn(L)===0},c.prototype.eq=function(L){return this.cmp(L)===0},c.red=function(L){return new z(L)},c.prototype.toRed=function(L){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},c.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(L){return this.red=L,this},c.prototype.forceRed=function(L){return s(!this.red,"Already a number in reduction context"),this._forceRed(L)},c.prototype.redAdd=function(L){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},c.prototype.redIAdd=function(L){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},c.prototype.redSub=function(L){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},c.prototype.redISub=function(L){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},c.prototype.redShl=function(L){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},c.prototype.redMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},c.prototype.redIMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},c.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(L){return s(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var v={k256:null,p224:null,p192:null,p25519:null};function A(P,L){this.name=P,this.p=new c(L,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}A.prototype._tmp=function(){var L=new c(null);return L.words=new Array(Math.ceil(this.n/13)),L},A.prototype.ireduce=function(L){var F=L,B;do this.split(F,this.tmp),F=this.imulK(F),F=F.iadd(this.tmp),B=F.bitLength();while(B>this.n);var O=B<this.n?-1:F.ucmp(this.p);return O===0?(F.words[0]=0,F.length=1):O>0?F.isub(this.p):F.strip!==void 0?F.strip():F._strip(),F},A.prototype.split=function(L,F){L.iushrn(this.n,0,F)},A.prototype.imulK=function(L){return L.imul(this.k)};function d(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(d,A),d.prototype.split=function(L,F){for(var B=4194303,O=Math.min(L.length,9),V=0;V<O;V++)F.words[V]=L.words[V];if(F.length=O,L.length<=9){L.words[0]=0,L.length=1;return}var K=L.words[9];for(F.words[F.length++]=K&B,V=10;V<L.length;V++){var j=L.words[V]|0;L.words[V-10]=(j&B)<<4|K>>>22,K=j}K>>>=22,L.words[V-10]=K,K===0&&L.length>10?L.length-=10:L.length-=9},d.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var F=0,B=0;B<L.length;B++){var O=L.words[B]|0;F+=O*977,L.words[B]=F&67108863,F=O*64+(F/67108864|0)}return L.words[L.length-1]===0&&(L.length--,L.words[L.length-1]===0&&L.length--),L};function D(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}f(D,A);function E(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}f(E,A);function R(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}f(R,A),R.prototype.imulK=function(L){for(var F=0,B=0;B<L.length;B++){var O=(L.words[B]|0)*19+F,V=O&67108863;O>>>=26,L.words[B]=V,F=O}return F!==0&&(L.words[L.length++]=F),L},c._prime=function(L){if(v[L])return v[L];var F;if(L==="k256")F=new d;else if(L==="p224")F=new D;else if(L==="p192")F=new E;else if(L==="p25519")F=new R;else throw new Error("Unknown prime "+L);return v[L]=F,F};function z(P){if(typeof P=="string"){var L=c._prime(P);this.m=L.p,this.prime=L}else s(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}z.prototype._verify1=function(L){s(L.negative===0,"red works only with positives"),s(L.red,"red works only with red numbers")},z.prototype._verify2=function(L,F){s((L.negative|F.negative)===0,"red works only with positives"),s(L.red&&L.red===F.red,"red works only with red numbers")},z.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},z.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},z.prototype.add=function(L,F){this._verify2(L,F);var B=L.add(F);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},z.prototype.iadd=function(L,F){this._verify2(L,F);var B=L.iadd(F);return B.cmp(this.m)>=0&&B.isub(this.m),B},z.prototype.sub=function(L,F){this._verify2(L,F);var B=L.sub(F);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},z.prototype.isub=function(L,F){this._verify2(L,F);var B=L.isub(F);return B.cmpn(0)<0&&B.iadd(this.m),B},z.prototype.shl=function(L,F){return this._verify1(L),this.imod(L.ushln(F))},z.prototype.imul=function(L,F){return this._verify2(L,F),this.imod(L.imul(F))},z.prototype.mul=function(L,F){return this._verify2(L,F),this.imod(L.mul(F))},z.prototype.isqr=function(L){return this.imul(L,L.clone())},z.prototype.sqr=function(L){return this.mul(L,L)},z.prototype.sqrt=function(L){if(L.isZero())return L.clone();var F=this.m.andln(3);if(s(F%2===1),F===3){var B=this.m.add(new c(1)).iushrn(2);return this.pow(L,B)}for(var O=this.m.subn(1),V=0;!O.isZero()&&O.andln(1)===0;)V++,O.iushrn(1);s(!O.isZero());var K=new c(1).toRed(this),j=K.redNeg(),G=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new c(2*q*q).toRed(this);this.pow(q,G).cmp(j)!==0;)q.redIAdd(j);for(var J=this.pow(q,O),te=this.pow(L,O.addn(1).iushrn(1)),Z=this.pow(L,O),ie=V;Z.cmp(K)!==0;){for(var Q=Z,re=0;Q.cmp(K)!==0;re++)Q=Q.redSqr();s(re<ie);var ue=this.pow(J,new c(1).iushln(ie-re-1));te=te.redMul(ue),J=ue.redSqr(),Z=Z.redMul(J),ie=re}return te},z.prototype.invm=function(L){var F=L._invmp(this.m);return F.negative!==0?(F.negative=0,this.imod(F).redNeg()):this.imod(F)},z.prototype.pow=function(L,F){if(F.isZero())return new c(1).toRed(this);if(F.cmpn(1)===0)return L.clone();var B=4,O=new Array(1<<B);O[0]=new c(1).toRed(this),O[1]=L;for(var V=2;V<O.length;V++)O[V]=this.mul(O[V-1],L);var K=O[0],j=0,G=0,q=F.bitLength()%26;for(q===0&&(q=26),V=F.length-1;V>=0;V--){for(var J=F.words[V],te=q-1;te>=0;te--){var Z=J>>te&1;if(K!==O[0]&&(K=this.sqr(K)),Z===0&&j===0){G=0;continue}j<<=1,j|=Z,G++,!(G!==B&&(V!==0||te!==0))&&(K=this.mul(K,O[j]),G=0,j=0)}q=26}return K},z.prototype.convertTo=function(L){var F=L.umod(this.m);return F===L?F.clone():F},z.prototype.convertFrom=function(L){var F=L.clone();return F.red=null,F},c.mont=function(L){return new I(L)};function I(P){z.call(this,P),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(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)}f(I,z),I.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},I.prototype.convertFrom=function(L){var F=this.imod(L.mul(this.rinv));return F.red=null,F},I.prototype.imul=function(L,F){if(L.isZero()||F.isZero())return L.words[0]=0,L.length=1,L;var B=L.imul(F),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),V=B.isub(O).iushrn(this.shift),K=V;return V.cmp(this.m)>=0?K=V.isub(this.m):V.cmpn(0)<0&&(K=V.iadd(this.m)),K._forceRed(this)},I.prototype.mul=function(L,F){if(L.isZero()||F.isZero())return new c(0)._forceRed(this);var B=L.mul(F),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),V=B.isub(O).iushrn(this.shift),K=V;return V.cmp(this.m)>=0?K=V.isub(this.m):V.cmpn(0)<0&&(K=V.iadd(this.m)),K._forceRed(this)},I.prototype.invm=function(L){var F=this.imod(L._invmp(this.m).mul(this.r2));return F._forceRed(this)}})(a,this)},6204(a){"use strict";a.exports=o;function o(i){var l,u,s,f=i.length,c=0;for(l=0;l<f;++l)c+=i[l].length;var p=new Array(c),x=0;for(l=0;l<f;++l){var g=i[l],w=g.length;for(u=0;u<w;++u){var M=p[x++]=new Array(w-1),m=0;for(s=0;s<w;++s)s!==u&&(M[m++]=g[s]);if(u&1){var k=M[1];M[1]=M[0],M[0]=k}}}return p}},6867(a,o,i){"use strict";a.exports=m;var l=i(1888),u=i(855),s=i(7150);function f(k,S){for(var b=0;b<k;++b)if(!(S[b]<=S[b+k]))return!0;return!1}function c(k,S,b,T){for(var h=0,_=0,y=0,v=k.length;y<v;++y){var A=k[y];if(!f(S,A)){for(var d=0;d<2*S;++d)b[h++]=A[d];T[_++]=y}}return _}function p(k,S,b,T){var h=k.length,_=S.length;if(!(h<=0||_<=0)){var y=k[0].length>>>1;if(!(y<=0)){var v,A=l.mallocDouble(2*y*h),d=l.mallocInt32(h);if(h=c(k,y,A,d),h>0){if(y===1&&T)u.init(h),v=u.sweepComplete(y,b,0,h,A,d,0,h,A,d);else{var D=l.mallocDouble(2*y*_),E=l.mallocInt32(_);_=c(S,y,D,E),_>0&&(u.init(h+_),y===1?v=u.sweepBipartite(y,b,0,h,A,d,0,_,D,E):v=s(y,b,T,h,A,d,_,D,E),l.free(D),l.free(E))}l.free(A),l.free(d)}return v}}}var x;function g(k,S){x.push([k,S])}function w(k){return x=[],p(k,k,g,!0),x}function M(k,S){return x=[],p(k,S,g,!1),x}function m(k,S,b){switch(arguments.length){case 1:return w(k);case 2:return typeof S=="function"?p(k,k,S,!0):M(k,S);case 3:return p(k,S,b,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455(a,o){"use strict";function i(){function s(p,x,g,w,M,m,k,S,b,T,h){for(var _=2*p,y=w,v=_*w;y<M;++y,v+=_){var A=m[x+v],d=m[x+v+p],D=k[y];e:for(var E=S,R=_*S;E<b;++E,R+=_){var z=T[x+R],I=T[x+R+p],P=h[E];if(!(I<A||d<z)){for(var L=x+1;L<p;++L){var F=m[L+v],B=m[L+p+v],O=T[L+R],V=T[L+p+R];if(B<O||V<F)continue e}var K=g(D,P);if(K!==void 0)return K}}}}function f(p,x,g,w,M,m,k,S,b,T,h){for(var _=2*p,y=S,v=_*S;y<b;++y,v+=_){var A=T[x+v],d=T[x+v+p],D=h[y];e:for(var E=w,R=_*w;E<M;++E,R+=_){var z=m[x+R],I=m[x+R+p],P=k[E];if(!(d<z||I<A)){for(var L=x+1;L<p;++L){var F=m[L+R],B=m[L+p+R],O=T[L+v],V=T[L+p+v];if(B<O||V<F)continue e}var K=g(P,D);if(K!==void 0)return K}}}}function c(p,x,g,w,M,m,k,S,b,T,h){return M-w>b-S?s(p,x,g,w,M,m,k,S,b,T,h):f(p,x,g,w,M,m,k,S,b,T,h)}return c}function l(){function s(g,w,M,m,k,S,b,T,h,_,y){for(var v=2*g,A=m,d=v*m;A<k;++A,d+=v){var D=S[w+d],E=S[w+d+g],R=b[A];e:for(var z=T,I=v*T;z<h;++z,I+=v){var P=_[w+I],L=y[z];if(!(P<=D||E<P)){for(var F=w+1;F<g;++F){var B=S[F+d],O=S[F+g+d],V=_[F+I],K=_[F+g+I];if(O<V||K<B)continue e}var j=M(L,R);if(j!==void 0)return j}}}}function f(g,w,M,m,k,S,b,T,h,_,y){for(var v=2*g,A=m,d=v*m;A<k;++A,d+=v){var D=S[w+d],E=S[w+d+g],R=b[A];e:for(var z=T,I=v*T;z<h;++z,I+=v){var P=_[w+I],L=y[z];if(!(P<D||E<P)){for(var F=w+1;F<g;++F){var B=S[F+d],O=S[F+g+d],V=_[F+I],K=_[F+g+I];if(O<V||K<B)continue e}var j=M(R,L);if(j!==void 0)return j}}}}function c(g,w,M,m,k,S,b,T,h,_,y){for(var v=2*g,A=T,d=v*T;A<h;++A,d+=v){var D=_[w+d],E=y[A];e:for(var R=m,z=v*m;R<k;++R,z+=v){var I=S[w+z],P=S[w+z+g],L=b[R];if(!(D<=I||P<D)){for(var F=w+1;F<g;++F){var B=S[F+z],O=S[F+g+z],V=_[F+d],K=_[F+g+d];if(O<V||K<B)continue e}var j=M(E,L);if(j!==void 0)return j}}}}function p(g,w,M,m,k,S,b,T,h,_,y){for(var v=2*g,A=T,d=v*T;A<h;++A,d+=v){var D=_[w+d],E=y[A];e:for(var R=m,z=v*m;R<k;++R,z+=v){var I=S[w+z],P=S[w+z+g],L=b[R];if(!(D<I||P<D)){for(var F=w+1;F<g;++F){var B=S[F+z],O=S[F+g+z],V=_[F+d],K=_[F+g+d];if(O<V||K<B)continue e}var j=M(L,E);if(j!==void 0)return j}}}}function x(g,w,M,m,k,S,b,T,h,_,y,v){return S-k>_-h?m?s(g,w,M,k,S,b,T,h,_,y,v):f(g,w,M,k,S,b,T,h,_,y,v):m?c(g,w,M,k,S,b,T,h,_,y,v):p(g,w,M,k,S,b,T,h,_,y,v)}return x}function u(s){return s?i():l()}o.partial=u(!1),o.full=u(!0)},7150(a,o,i){"use strict";a.exports=P;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,c=s.full,p=i(855),x=i(3545),g=i(8105),w=128,M=1<<22,m=1<<22,k=g("!(lo>=p0)&&!(p1>=hi)"),S=g("lo===p0"),b=g("lo<p0"),T=g("hi<=p0"),h=g("lo<=p0&&p0<=hi"),_=g("lo<p0&&p0<=hi"),y=6,v=2,A=1024,d=l.mallocInt32(A),D=l.mallocDouble(A);function E(L,F){var B=8*u.log2(F+1)*(L+1)|0,O=u.nextPow2(y*B);d.length<O&&(l.free(d),d=l.mallocInt32(O));var V=u.nextPow2(v*B);D.length<V&&(l.free(D),D=l.mallocDouble(V))}function R(L,F,B,O,V,K,j,G,q){var J=y*L;d[J]=F,d[J+1]=B,d[J+2]=O,d[J+3]=V,d[J+4]=K,d[J+5]=j;var te=v*L;D[te]=G,D[te+1]=q}function z(L,F,B,O,V,K,j,G,q,J,te){var Z=2*L,ie=q*Z,Q=J[ie+F];e:for(var re=V,ue=V*Z;re<K;++re,ue+=Z){var ee=j[ue+F],ae=j[ue+F+L];if(!(Q<ee||ae<Q)&&!(O&&Q===ee)){for(var ce=G[re],Te=F+1;Te<L;++Te){var ee=j[ue+Te],ae=j[ue+Te+L],ke=J[ie+Te],Se=J[ie+Te+L];if(ae<ke||Se<ee)continue e}var ge;if(O?ge=B(te,ce):ge=B(ce,te),ge!==void 0)return ge}}}function I(L,F,B,O,V,K,j,G,q,J){var te=2*L,Z=G*te,ie=q[Z+F];e:for(var Q=O,re=O*te;Q<V;++Q,re+=te){var ue=j[Q];if(ue!==J){var ee=K[re+F],ae=K[re+F+L];if(!(ie<ee||ae<ie)){for(var ce=F+1;ce<L;++ce){var ee=K[re+ce],ae=K[re+ce+L],Te=q[Z+ce],ke=q[Z+ce+L];if(ae<Te||ke<ee)continue e}var Se=B(ue,J);if(Se!==void 0)return Se}}}}function P(L,F,B,O,V,K,j,G,q){E(L,O+j);var J=0,te=2*L,Z;for(R(J++,0,0,O,0,j,B?16:0,-1/0,1/0),B||R(J++,0,0,j,0,O,1,-1/0,1/0);J>0;){J-=1;var ie=J*y,Q=d[ie],re=d[ie+1],ue=d[ie+2],ee=d[ie+3],ae=d[ie+4],ce=d[ie+5],Te=J*v,ke=D[Te],Se=D[Te+1],ge=ce&1,Le=!!(ce&16),Ce=V,le=K,Y=G,$=q;if(ge&&(Ce=G,le=q,Y=V,$=K),!(ce&2&&(ue=b(L,Q,re,ue,Ce,le,Se),re>=ue))&&!(ce&4&&(re=T(L,Q,re,ue,Ce,le,ke),re>=ue))){var pe=ue-re,oe=ae-ee;if(Le){if(L*pe*(pe+oe)<m){if(Z=p.scanComplete(L,Q,F,re,ue,Ce,le,ee,ae,Y,$),Z!==void 0)return Z;continue}}else if(L*Math.min(pe,oe)<w){if(Z=f(L,Q,F,ge,re,ue,Ce,le,ee,ae,Y,$),Z!==void 0)return Z;continue}else if(L*pe*oe<M){if(Z=p.scanBipartite(L,Q,F,ge,re,ue,Ce,le,ee,ae,Y,$),Z!==void 0)return Z;continue}var ve=k(L,Q,re,ue,Ce,le,ke,Se);if(re<ve)if(L*(ve-re)<w){if(Z=c(L,Q+1,F,re,ve,Ce,le,ee,ae,Y,$),Z!==void 0)return Z}else if(Q===L-2){if(ge?Z=p.sweepBipartite(L,F,ee,ae,Y,$,re,ve,Ce,le):Z=p.sweepBipartite(L,F,re,ve,Ce,le,ee,ae,Y,$),Z!==void 0)return Z}else R(J++,Q+1,re,ve,ee,ae,ge,-1/0,1/0),R(J++,Q+1,ee,ae,re,ve,ge^1,-1/0,1/0);if(ve<ue){var he=x(L,Q,ee,ae,Y,$),me=Y[te*he+Q],be=S(L,Q,he,ae,Y,$,me);if(be<ae&&R(J++,Q,ve,ue,be,ae,(ge|4)+(Le?16:0),me,Se),ee<he&&R(J++,Q,ve,ue,ee,he,(ge|2)+(Le?16:0),ke,me),he+1===be){if(Le?Z=I(L,Q,F,ve,ue,Ce,le,he,Y,$[he]):Z=z(L,Q,F,ge,ve,ue,Ce,le,he,Y,$[he]),Z!==void 0)return Z}else if(he<be){var ye;if(Le){if(ye=h(L,Q,ve,ue,Ce,le,me),ve<ye){var de=S(L,Q,ve,ye,Ce,le,me);if(Q===L-2){if(ve<de&&(Z=p.sweepComplete(L,F,ve,de,Ce,le,he,be,Y,$),Z!==void 0)||de<ye&&(Z=p.sweepBipartite(L,F,de,ye,Ce,le,he,be,Y,$),Z!==void 0))return Z}else ve<de&&R(J++,Q+1,ve,de,he,be,16,-1/0,1/0),de<ye&&(R(J++,Q+1,de,ye,he,be,0,-1/0,1/0),R(J++,Q+1,he,be,de,ye,1,-1/0,1/0))}}else ge?ye=_(L,Q,ve,ue,Ce,le,me):ye=h(L,Q,ve,ue,Ce,le,me),ve<ye&&(Q===L-2?ge?Z=p.sweepBipartite(L,F,he,be,Y,$,ve,ye,Ce,le):Z=p.sweepBipartite(L,F,ve,ye,Ce,le,he,be,Y,$):(R(J++,Q+1,ve,ye,he,be,ge,-1/0,1/0),R(J++,Q+1,he,be,ve,ye,ge^1,-1/0,1/0)))}}}}}},3545(a,o,i){"use strict";a.exports=c;var l=i(8105),u=l("lo<p0"),s=8;function f(p,x,g,w,M,m){for(var k=2*p,S=k*(g+1)+x,b=g+1;b<w;++b,S+=k)for(var T=M[S],h=b,_=k*(b-1);h>g&&M[_+x]>T;--h,_-=k){for(var y=_,v=_+k,A=0;A<k;++A,++y,++v){var d=M[y];M[y]=M[v],M[v]=d}var D=m[h];m[h]=m[h-1],m[h-1]=D}}function c(p,x,g,w,M,m){if(w<=g+1)return g;for(var k=g,S=w,b=w+g>>>1,T=2*p,h=b,_=M[T*b+x];k<S;){if(S-k<s){f(p,x,k,S,M,m),_=M[T*b+x];break}var y=S-k,v=Math.random()*y+k|0,A=M[T*v+x],d=Math.random()*y+k|0,D=M[T*d+x],E=Math.random()*y+k|0,R=M[T*E+x];A<=D?R>=D?(h=d,_=D):A>=R?(h=v,_=A):(h=E,_=R):D>=R?(h=d,_=D):R>=A?(h=v,_=A):(h=E,_=R);for(var P=T*(S-1),L=T*h,z=0;z<T;++z,++P,++L){var I=M[P];M[P]=M[L],M[L]=I}var F=m[S-1];m[S-1]=m[h],m[h]=F,h=u(p,x,k,S-1,M,m,_);for(var P=T*(S-1),L=T*h,z=0;z<T;++z,++P,++L){var I=M[P];M[P]=M[L],M[L]=I}var F=m[S-1];if(m[S-1]=m[h],m[h]=F,b<h){for(S=h-1;k<S&&M[T*(S-1)+x]===_;)S-=1;S+=1}else if(h<b)for(k=h+1;k<S&&M[T*k+x]===_;)k+=1;else break}return u(p,x,g,b,M,m,M[T*b+x])}},8105(a){"use strict";a.exports=i;var o={"lo===p0":l,"lo<p0":u,"lo<=p0":s,"hi<=p0":f,"lo<p0&&p0<=hi":p,"lo<=p0&&p0<=hi":c,"!(lo>=p0)&&!(p1>=hi)":x};function i(g){return o[g]}function l(g,w,M,m,k,S,b){for(var T=2*g,h=T*M,_=h,y=M,v=w,A=g+w,d=M;m>d;++d,h+=T){var D=k[h+v];if(D===b)if(y===d)y+=1,_+=T;else{for(var E=0;T>E;++E){var R=k[h+E];k[h+E]=k[_],k[_++]=R}var z=S[d];S[d]=S[y],S[y++]=z}}return y}function u(g,w,M,m,k,S,b){for(var T=2*g,h=T*M,_=h,y=M,v=w,A=g+w,d=M;m>d;++d,h+=T){var D=k[h+v];if(D<b)if(y===d)y+=1,_+=T;else{for(var E=0;T>E;++E){var R=k[h+E];k[h+E]=k[_],k[_++]=R}var z=S[d];S[d]=S[y],S[y++]=z}}return y}function s(g,w,M,m,k,S,b){for(var T=2*g,h=T*M,_=h,y=M,v=w,A=g+w,d=M;m>d;++d,h+=T){var D=k[h+A];if(D<=b)if(y===d)y+=1,_+=T;else{for(var E=0;T>E;++E){var R=k[h+E];k[h+E]=k[_],k[_++]=R}var z=S[d];S[d]=S[y],S[y++]=z}}return y}function f(g,w,M,m,k,S,b){for(var T=2*g,h=T*M,_=h,y=M,v=w,A=g+w,d=M;m>d;++d,h+=T){var D=k[h+A];if(D<=b)if(y===d)y+=1,_+=T;else{for(var E=0;T>E;++E){var R=k[h+E];k[h+E]=k[_],k[_++]=R}var z=S[d];S[d]=S[y],S[y++]=z}}return y}function c(g,w,M,m,k,S,b){for(var T=2*g,h=T*M,_=h,y=M,v=w,A=g+w,d=M;m>d;++d,h+=T){var D=k[h+v],E=k[h+A];if(D<=b&&b<=E)if(y===d)y+=1,_+=T;else{for(var R=0;T>R;++R){var z=k[h+R];k[h+R]=k[_],k[_++]=z}var I=S[d];S[d]=S[y],S[y++]=I}}return y}function p(g,w,M,m,k,S,b){for(var T=2*g,h=T*M,_=h,y=M,v=w,A=g+w,d=M;m>d;++d,h+=T){var D=k[h+v],E=k[h+A];if(D<b&&b<=E)if(y===d)y+=1,_+=T;else{for(var R=0;T>R;++R){var z=k[h+R];k[h+R]=k[_],k[_++]=z}var I=S[d];S[d]=S[y],S[y++]=I}}return y}function x(g,w,M,m,k,S,b,T){for(var h=2*g,_=h*M,y=_,v=M,A=w,d=g+w,D=M;m>D;++D,_+=h){var E=k[_+A],R=k[_+d];if(!(E>=b)&&!(T>=R))if(v===D)v+=1,y+=h;else{for(var z=0;h>z;++z){var I=k[_+z];k[_+z]=k[y],k[y++]=I}var P=S[D];S[D]=S[v],S[v++]=P}}return v}},4192(a){"use strict";a.exports=i;var o=32;function i(w,M){M<=4*o?l(0,M-1,w):g(0,M-1,w)}function l(w,M,m){for(var k=2*(w+1),S=w+1;S<=M;++S){for(var b=m[k++],T=m[k++],h=S,_=k-2;h-- >w;){var y=m[_-2],v=m[_-1];if(y<b)break;if(y===b&&v<T)break;m[_]=y,m[_+1]=v,_-=2}m[_]=b,m[_+1]=T}}function u(w,M,m){w*=2,M*=2;var k=m[w],S=m[w+1];m[w]=m[M],m[w+1]=m[M+1],m[M]=k,m[M+1]=S}function s(w,M,m){w*=2,M*=2,m[w]=m[M],m[w+1]=m[M+1]}function f(w,M,m,k){w*=2,M*=2,m*=2;var S=k[w],b=k[w+1];k[w]=k[M],k[w+1]=k[M+1],k[M]=k[m],k[M+1]=k[m+1],k[m]=S,k[m+1]=b}function c(w,M,m,k,S){w*=2,M*=2,S[w]=S[M],S[M]=m,S[w+1]=S[M+1],S[M+1]=k}function p(w,M,m){w*=2,M*=2;var k=m[w],S=m[M];return k<S?!1:k===S?m[w+1]>m[M+1]:!0}function x(w,M,m,k){w*=2;var S=k[w];return S<M?!0:S===M?k[w+1]<m:!1}function g(w,M,m){var k=(M-w+1)/6|0,S=w+k,b=M-k,T=w+M>>1,h=T-k,_=T+k,y=S,v=h,A=T,d=_,D=b,E=w+1,R=M-1,z=0;p(y,v,m)&&(z=y,y=v,v=z),p(d,D,m)&&(z=d,d=D,D=z),p(y,A,m)&&(z=y,y=A,A=z),p(v,A,m)&&(z=v,v=A,A=z),p(y,d,m)&&(z=y,y=d,d=z),p(A,d,m)&&(z=A,A=d,d=z),p(v,D,m)&&(z=v,v=D,D=z),p(v,A,m)&&(z=v,v=A,A=z),p(d,D,m)&&(z=d,d=D,D=z);for(var I=m[2*v],P=m[2*v+1],L=m[2*d],F=m[2*d+1],B=2*y,O=2*A,V=2*D,K=2*S,j=2*T,G=2*b,q=0;q<2;++q){var J=m[B+q],te=m[O+q],Z=m[V+q];m[K+q]=J,m[j+q]=te,m[G+q]=Z}s(h,w,m),s(_,M,m);for(var ie=E;ie<=R;++ie)if(x(ie,I,P,m))ie!==E&&u(ie,E,m),++E;else if(!x(ie,L,F,m))for(;;)if(x(R,L,F,m)){x(R,I,P,m)?(f(ie,E,R,m),++E,--R):(u(ie,R,m),--R);break}else{if(--R<ie)break;continue}c(w,E-1,I,P,m),c(M,R+1,L,F,m),E-2-w<=o?l(w,E-2,m):g(w,E-2,m),M-(R+2)<=o?l(R+2,M,m):g(R+2,M,m),R-E<=o?l(E,R,m):g(E,R,m)}},855(a,o,i){"use strict";a.exports={init:S,sweepBipartite:h,sweepComplete:_,scanBipartite:y,scanComplete:v};var l=i(1888),u=i(8828),s=i(4192),f=1<<28,c=1024,p=l.mallocInt32(c),x=l.mallocInt32(c),g=l.mallocInt32(c),w=l.mallocInt32(c),M=l.mallocInt32(c),m=l.mallocInt32(c),k=l.mallocDouble(c*8);function S(A){var d=u.nextPow2(A);p.length<d&&(l.free(p),p=l.mallocInt32(d)),x.length<d&&(l.free(x),x=l.mallocInt32(d)),g.length<d&&(l.free(g),g=l.mallocInt32(d)),w.length<d&&(l.free(w),w=l.mallocInt32(d)),M.length<d&&(l.free(M),M=l.mallocInt32(d)),m.length<d&&(l.free(m),m=l.mallocInt32(d));var D=8*d;k.length<D&&(l.free(k),k=l.mallocDouble(D))}function b(A,d,D,E){var R=d[E],z=A[D-1];A[R]=z,d[z]=R}function T(A,d,D,E){A[D]=E,d[E]=D}function h(A,d,D,E,R,z,I,P,L,F){for(var B=0,O=2*A,V=A-1,K=O-1,j=D;j<E;++j){var G=z[j],q=O*j;k[B++]=R[q+V],k[B++]=-(G+1),k[B++]=R[q+K],k[B++]=G}for(var j=I;j<P;++j){var G=F[j]+f,J=O*j;k[B++]=L[J+V],k[B++]=-G,k[B++]=L[J+K],k[B++]=G}var te=B>>>1;s(k,te);for(var Z=0,ie=0,j=0;j<te;++j){var Q=k[2*j+1]|0;if(Q>=f)Q=Q-f|0,b(g,w,ie--,Q);else if(Q>=0)b(p,x,Z--,Q);else if(Q<=-f){Q=-Q-f|0;for(var re=0;re<Z;++re){var ue=d(p[re],Q);if(ue!==void 0)return ue}T(g,w,ie++,Q)}else{Q=-Q-1|0;for(var re=0;re<ie;++re){var ue=d(Q,g[re]);if(ue!==void 0)return ue}T(p,x,Z++,Q)}}}function _(A,d,D,E,R,z,I,P,L,F){for(var B=0,O=2*A,V=A-1,K=O-1,j=D;j<E;++j){var G=z[j]+1<<1,q=O*j;k[B++]=R[q+V],k[B++]=-G,k[B++]=R[q+K],k[B++]=G}for(var j=I;j<P;++j){var G=F[j]+1<<1,J=O*j;k[B++]=L[J+V],k[B++]=-G|1,k[B++]=L[J+K],k[B++]=G|1}var te=B>>>1;s(k,te);for(var Z=0,ie=0,Q=0,j=0;j<te;++j){var re=k[2*j+1]|0,ue=re&1;if(j<te-1&&re>>1===k[2*j+3]>>1&&(ue=2,j+=1),re<0){for(var ee=-(re>>1)-1,ae=0;ae<Q;++ae){var ce=d(M[ae],ee);if(ce!==void 0)return ce}if(ue!==0)for(var ae=0;ae<Z;++ae){var ce=d(p[ae],ee);if(ce!==void 0)return ce}if(ue!==1)for(var ae=0;ae<ie;++ae){var ce=d(g[ae],ee);if(ce!==void 0)return ce}ue===0?T(p,x,Z++,ee):ue===1?T(g,w,ie++,ee):ue===2&&T(M,m,Q++,ee)}else{var ee=(re>>1)-1;ue===0?b(p,x,Z--,ee):ue===1?b(g,w,ie--,ee):ue===2&&b(M,m,Q--,ee)}}}function y(A,d,D,E,R,z,I,P,L,F,B,O){var V=0,K=2*A,j=d,G=d+A,q=1,J=1;E?J=f:q=f;for(var te=R;te<z;++te){var Z=te+q,ie=K*te;k[V++]=I[ie+j],k[V++]=-Z,k[V++]=I[ie+G],k[V++]=Z}for(var te=L;te<F;++te){var Z=te+J,Q=K*te;k[V++]=B[Q+j],k[V++]=-Z}var re=V>>>1;s(k,re);for(var ue=0,te=0;te<re;++te){var ee=k[2*te+1]|0;if(ee<0){var Z=-ee,ae=!1;if(Z>=f?(ae=!E,Z-=f):(ae=!!E,Z-=1),ae)T(p,x,ue++,Z);else{var ce=O[Z],Te=K*Z,ke=B[Te+d+1],Se=B[Te+d+1+A];e:for(var ge=0;ge<ue;++ge){var Le=p[ge],Ce=K*Le;if(!(Se<I[Ce+d+1]||I[Ce+d+1+A]<ke)){for(var le=d+2;le<A;++le)if(B[Te+le+A]<I[Ce+le]||I[Ce+le+A]<B[Te+le])continue e;var Y=P[Le],$;if(E?$=D(ce,Y):$=D(Y,ce),$!==void 0)return $}}}}else b(p,x,ue--,ee-q)}}function v(A,d,D,E,R,z,I,P,L,F,B){for(var O=0,V=2*A,K=d,j=d+A,G=E;G<R;++G){var q=G+f,J=V*G;k[O++]=z[J+K],k[O++]=-q,k[O++]=z[J+j],k[O++]=q}for(var G=P;G<L;++G){var q=G+1,te=V*G;k[O++]=F[te+K],k[O++]=-q}var Z=O>>>1;s(k,Z);for(var ie=0,G=0;G<Z;++G){var Q=k[2*G+1]|0;if(Q<0){var q=-Q;if(q>=f)p[ie++]=q-f;else{q-=1;var re=B[q],ue=V*q,ee=F[ue+d+1],ae=F[ue+d+1+A];e:for(var ce=0;ce<ie;++ce){var Te=p[ce],ke=I[Te];if(ke===re)break;var Se=V*Te;if(!(ae<z[Se+d+1]||z[Se+d+1+A]<ee)){for(var ge=d+2;ge<A;++ge)if(F[ue+ge+A]<z[Se+ge]||z[Se+ge+A]<F[ue+ge])continue e;var Le=D(ke,re);if(Le!==void 0)return Le}}}}else{for(var q=Q-f,ce=ie-1;ce>=0;--ce)if(p[ce]===q){for(var ge=ce+1;ge<ie;++ge)p[ge-1]=p[ge];break}--ie}}}},5500(a,o,i){"use strict";var l;var u=i(7507),s=i(3778),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;o.hp=g,l=v,o.IS=50;var c=2147483647;l=c,g.TYPED_ARRAY_SUPPORT=p(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 p(){try{var le=new Uint8Array(1),Y={foo:function(){return 42}};return Object.setPrototypeOf(Y,Uint8Array.prototype),Object.setPrototypeOf(le,Y),le.foo()===42}catch($){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function x(le){if(le>c)throw new RangeError('The value "'+le+'" is invalid for option "size"');var Y=new Uint8Array(le);return Object.setPrototypeOf(Y,g.prototype),Y}function g(le,Y,$){if(typeof le=="number"){if(typeof Y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return k(le)}return w(le,Y,$)}g.poolSize=8192;function w(le,Y,$){if(typeof le=="string")return S(le,Y);if(ArrayBuffer.isView(le))return T(le);if(le==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof le);if(ge(le,ArrayBuffer)||le&&ge(le.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ge(le,SharedArrayBuffer)||le&&ge(le.buffer,SharedArrayBuffer)))return h(le,Y,$);if(typeof le=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var pe=le.valueOf&&le.valueOf();if(pe!=null&&pe!==le)return g.from(pe,Y,$);var oe=_(le);if(oe)return oe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof le[Symbol.toPrimitive]=="function")return g.from(le[Symbol.toPrimitive]("string"),Y,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof le)}g.from=function(le,Y,$){return w(le,Y,$)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function M(le){if(typeof le!="number")throw new TypeError('"size" argument must be of type number');if(le<0)throw new RangeError('The value "'+le+'" is invalid for option "size"')}function m(le,Y,$){return M(le),le<=0?x(le):Y!==void 0?typeof $=="string"?x(le).fill(Y,$):x(le).fill(Y):x(le)}g.alloc=function(le,Y,$){return m(le,Y,$)};function k(le){return M(le),x(le<0?0:y(le)|0)}g.allocUnsafe=function(le){return k(le)},g.allocUnsafeSlow=function(le){return k(le)};function S(le,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!g.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var $=A(le,Y)|0,pe=x($),oe=pe.write(le,Y);return oe!==$&&(pe=pe.slice(0,oe)),pe}function b(le){for(var Y=le.length<0?0:y(le.length)|0,$=x(Y),pe=0;pe<Y;pe+=1)$[pe]=le[pe]&255;return $}function T(le){if(ge(le,Uint8Array)){var Y=new Uint8Array(le);return h(Y.buffer,Y.byteOffset,Y.byteLength)}return b(le)}function h(le,Y,$){if(Y<0||le.byteLength<Y)throw new RangeError('"offset" is outside of buffer bounds');if(le.byteLength<Y+($||0))throw new RangeError('"length" is outside of buffer bounds');var pe;return Y===void 0&&$===void 0?pe=new Uint8Array(le):$===void 0?pe=new Uint8Array(le,Y):pe=new Uint8Array(le,Y,$),Object.setPrototypeOf(pe,g.prototype),pe}function _(le){if(g.isBuffer(le)){var Y=y(le.length)|0,$=x(Y);return $.length===0||le.copy($,0,0,Y),$}if(le.length!==void 0)return typeof le.length!="number"||Le(le.length)?x(0):b(le);if(le.type==="Buffer"&&Array.isArray(le.data))return b(le.data)}function y(le){if(le>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return le|0}function v(le){return+le!=le&&(le=0),g.alloc(+le)}g.isBuffer=function(Y){return Y!=null&&Y._isBuffer===!0&&Y!==g.prototype},g.compare=function(Y,$){if(ge(Y,Uint8Array)&&(Y=g.from(Y,Y.offset,Y.byteLength)),ge($,Uint8Array)&&($=g.from($,$.offset,$.byteLength)),!g.isBuffer(Y)||!g.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Y===$)return 0;for(var pe=Y.length,oe=$.length,ve=0,he=Math.min(pe,oe);ve<he;++ve)if(Y[ve]!==$[ve]){pe=Y[ve],oe=$[ve];break}return pe<oe?-1:oe<pe?1:0},g.isEncoding=function(Y){switch(String(Y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(Y,$){if(!Array.isArray(Y))throw new TypeError('"list" argument must be an Array of Buffers');if(Y.length===0)return g.alloc(0);var pe;if($===void 0)for($=0,pe=0;pe<Y.length;++pe)$+=Y[pe].length;var oe=g.allocUnsafe($),ve=0;for(pe=0;pe<Y.length;++pe){var he=Y[pe];if(ge(he,Uint8Array))ve+he.length>oe.length?g.from(he).copy(oe,ve):Uint8Array.prototype.set.call(oe,he,ve);else if(g.isBuffer(he))he.copy(oe,ve);else throw new TypeError('"list" argument must be an Array of Buffers');ve+=he.length}return oe};function A(le,Y){if(g.isBuffer(le))return le.length;if(ArrayBuffer.isView(le)||ge(le,ArrayBuffer))return le.byteLength;if(typeof le!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof le);var $=le.length,pe=arguments.length>2&&arguments[2]===!0;if(!pe&&$===0)return 0;for(var oe=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return ae(le).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return ke(le).length;default:if(oe)return pe?-1:ae(le).length;Y=(""+Y).toLowerCase(),oe=!0}}g.byteLength=A;function d(le,Y,$){var pe=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,Y>>>=0,$<=Y))return"";for(le||(le="utf8");;)switch(le){case"hex":return q(this,Y,$);case"utf8":case"utf-8":return O(this,Y,$);case"ascii":return j(this,Y,$);case"latin1":case"binary":return G(this,Y,$);case"base64":return B(this,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,Y,$);default:if(pe)throw new TypeError("Unknown encoding: "+le);le=(le+"").toLowerCase(),pe=!0}}g.prototype._isBuffer=!0;function D(le,Y,$){var pe=le[Y];le[Y]=le[$],le[$]=pe}g.prototype.swap16=function(){var Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$<Y;$+=2)D(this,$,$+1);return this},g.prototype.swap32=function(){var Y=this.length;if(Y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $=0;$<Y;$+=4)D(this,$,$+3),D(this,$+1,$+2);return this},g.prototype.swap64=function(){var Y=this.length;if(Y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $=0;$<Y;$+=8)D(this,$,$+7),D(this,$+1,$+6),D(this,$+2,$+5),D(this,$+3,$+4);return this},g.prototype.toString=function(){var Y=this.length;return Y===0?"":arguments.length===0?O(this,0,Y):d.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(Y){if(!g.isBuffer(Y))throw new TypeError("Argument must be a Buffer");return this===Y?!0:g.compare(this,Y)===0},g.prototype.inspect=function(){var Y="",$=o.IS;return Y=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(Y+=" ... "),"<Buffer "+Y+">"},f&&(g.prototype[f]=g.prototype.inspect),g.prototype.compare=function(Y,$,pe,oe,ve){if(ge(Y,Uint8Array)&&(Y=g.from(Y,Y.offset,Y.byteLength)),!g.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if($===void 0&&($=0),pe===void 0&&(pe=Y?Y.length:0),oe===void 0&&(oe=0),ve===void 0&&(ve=this.length),$<0||pe>Y.length||oe<0||ve>this.length)throw new RangeError("out of range index");if(oe>=ve&&$>=pe)return 0;if(oe>=ve)return-1;if($>=pe)return 1;if($>>>=0,pe>>>=0,oe>>>=0,ve>>>=0,this===Y)return 0;for(var he=ve-oe,me=pe-$,be=Math.min(he,me),ye=this.slice(oe,ve),de=Y.slice($,pe),_e=0;_e<be;++_e)if(ye[_e]!==de[_e]){he=ye[_e],me=de[_e];break}return he<me?-1:me<he?1:0};function E(le,Y,$,pe,oe){if(le.length===0)return-1;if(typeof $=="string"?(pe=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,Le($)&&($=oe?0:le.length-1),$<0&&($=le.length+$),$>=le.length){if(oe)return-1;$=le.length-1}else if($<0)if(oe)$=0;else return-1;if(typeof Y=="string"&&(Y=g.from(Y,pe)),g.isBuffer(Y))return Y.length===0?-1:R(le,Y,$,pe,oe);if(typeof Y=="number")return Y=Y&255,typeof Uint8Array.prototype.indexOf=="function"?oe?Uint8Array.prototype.indexOf.call(le,Y,$):Uint8Array.prototype.lastIndexOf.call(le,Y,$):R(le,[Y],$,pe,oe);throw new TypeError("val must be string, number or Buffer")}function R(le,Y,$,pe,oe){var ve=1,he=le.length,me=Y.length;if(pe!==void 0&&(pe=String(pe).toLowerCase(),pe==="ucs2"||pe==="ucs-2"||pe==="utf16le"||pe==="utf-16le")){if(le.length<2||Y.length<2)return-1;ve=2,he/=2,me/=2,$/=2}function be(Pe,Fe){return ve===1?Pe[Fe]:Pe.readUInt16BE(Fe*ve)}var ye;if(oe){var de=-1;for(ye=$;ye<he;ye++)if(be(le,ye)===be(Y,de===-1?0:ye-de)){if(de===-1&&(de=ye),ye-de+1===me)return de*ve}else de!==-1&&(ye-=ye-de),de=-1}else for($+me>he&&($=he-me),ye=$;ye>=0;ye--){for(var _e=!0,Ae=0;Ae<me;Ae++)if(be(le,ye+Ae)!==be(Y,Ae)){_e=!1;break}if(_e)return ye}return-1}g.prototype.includes=function(Y,$,pe){return this.indexOf(Y,$,pe)!==-1},g.prototype.indexOf=function(Y,$,pe){return E(this,Y,$,pe,!0)},g.prototype.lastIndexOf=function(Y,$,pe){return E(this,Y,$,pe,!1)};function z(le,Y,$,pe){$=Number($)||0;var oe=le.length-$;pe?(pe=Number(pe),pe>oe&&(pe=oe)):pe=oe;var ve=Y.length;pe>ve/2&&(pe=ve/2);for(var he=0;he<pe;++he){var me=parseInt(Y.substr(he*2,2),16);if(Le(me))return he;le[$+he]=me}return he}function I(le,Y,$,pe){return Se(ae(Y,le.length-$),le,$,pe)}function P(le,Y,$,pe){return Se(ce(Y),le,$,pe)}function L(le,Y,$,pe){return Se(ke(Y),le,$,pe)}function F(le,Y,$,pe){return Se(Te(Y,le.length-$),le,$,pe)}g.prototype.write=function(Y,$,pe,oe){if($===void 0)oe="utf8",pe=this.length,$=0;else if(pe===void 0&&typeof $=="string")oe=$,pe=this.length,$=0;else if(isFinite($))$=$>>>0,isFinite(pe)?(pe=pe>>>0,oe===void 0&&(oe="utf8")):(oe=pe,pe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ve=this.length-$;if((pe===void 0||pe>ve)&&(pe=ve),Y.length>0&&(pe<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");oe||(oe="utf8");for(var he=!1;;)switch(oe){case"hex":return z(this,Y,$,pe);case"utf8":case"utf-8":return I(this,Y,$,pe);case"ascii":case"latin1":case"binary":return P(this,Y,$,pe);case"base64":return L(this,Y,$,pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,Y,$,pe);default:if(he)throw new TypeError("Unknown encoding: "+oe);oe=(""+oe).toLowerCase(),he=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(le,Y,$){return Y===0&&$===le.length?u.fromByteArray(le):u.fromByteArray(le.slice(Y,$))}function O(le,Y,$){$=Math.min(le.length,$);for(var pe=[],oe=Y;oe<$;){var ve=le[oe],he=null,me=ve>239?4:ve>223?3:ve>191?2:1;if(oe+me<=$){var be,ye,de,_e;switch(me){case 1:ve<128&&(he=ve);break;case 2:be=le[oe+1],(be&192)===128&&(_e=(ve&31)<<6|be&63,_e>127&&(he=_e));break;case 3:be=le[oe+1],ye=le[oe+2],(be&192)===128&&(ye&192)===128&&(_e=(ve&15)<<12|(be&63)<<6|ye&63,_e>2047&&(_e<55296||_e>57343)&&(he=_e));break;case 4:be=le[oe+1],ye=le[oe+2],de=le[oe+3],(be&192)===128&&(ye&192)===128&&(de&192)===128&&(_e=(ve&15)<<18|(be&63)<<12|(ye&63)<<6|de&63,_e>65535&&_e<1114112&&(he=_e))}}he===null?(he=65533,me=1):he>65535&&(he-=65536,pe.push(he>>>10&1023|55296),he=56320|he&1023),pe.push(he),oe+=me}return K(pe)}var V=4096;function K(le){var Y=le.length;if(Y<=V)return String.fromCharCode.apply(String,le);for(var $="",pe=0;pe<Y;)$+=String.fromCharCode.apply(String,le.slice(pe,pe+=V));return $}function j(le,Y,$){var pe="";$=Math.min(le.length,$);for(var oe=Y;oe<$;++oe)pe+=String.fromCharCode(le[oe]&127);return pe}function G(le,Y,$){var pe="";$=Math.min(le.length,$);for(var oe=Y;oe<$;++oe)pe+=String.fromCharCode(le[oe]);return pe}function q(le,Y,$){var pe=le.length;(!Y||Y<0)&&(Y=0),(!$||$<0||$>pe)&&($=pe);for(var oe="",ve=Y;ve<$;++ve)oe+=Ce[le[ve]];return oe}function J(le,Y,$){for(var pe=le.slice(Y,$),oe="",ve=0;ve<pe.length-1;ve+=2)oe+=String.fromCharCode(pe[ve]+pe[ve+1]*256);return oe}g.prototype.slice=function(Y,$){var pe=this.length;Y=~~Y,$=$===void 0?pe:~~$,Y<0?(Y+=pe,Y<0&&(Y=0)):Y>pe&&(Y=pe),$<0?($+=pe,$<0&&($=0)):$>pe&&($=pe),$<Y&&($=Y);var oe=this.subarray(Y,$);return Object.setPrototypeOf(oe,g.prototype),oe};function te(le,Y,$){if(le%1!==0||le<0)throw new RangeError("offset is not uint");if(le+Y>$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(Y,$,pe){Y=Y>>>0,$=$>>>0,pe||te(Y,$,this.length);for(var oe=this[Y],ve=1,he=0;++he<$&&(ve*=256);)oe+=this[Y+he]*ve;return oe},g.prototype.readUintBE=g.prototype.readUIntBE=function(Y,$,pe){Y=Y>>>0,$=$>>>0,pe||te(Y,$,this.length);for(var oe=this[Y+--$],ve=1;$>0&&(ve*=256);)oe+=this[Y+--$]*ve;return oe},g.prototype.readUint8=g.prototype.readUInt8=function(Y,$){return Y=Y>>>0,$||te(Y,1,this.length),this[Y]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(Y,$){return Y=Y>>>0,$||te(Y,2,this.length),this[Y]|this[Y+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(Y,$){return Y=Y>>>0,$||te(Y,2,this.length),this[Y]<<8|this[Y+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},g.prototype.readIntLE=function(Y,$,pe){Y=Y>>>0,$=$>>>0,pe||te(Y,$,this.length);for(var oe=this[Y],ve=1,he=0;++he<$&&(ve*=256);)oe+=this[Y+he]*ve;return ve*=128,oe>=ve&&(oe-=Math.pow(2,8*$)),oe},g.prototype.readIntBE=function(Y,$,pe){Y=Y>>>0,$=$>>>0,pe||te(Y,$,this.length);for(var oe=$,ve=1,he=this[Y+--oe];oe>0&&(ve*=256);)he+=this[Y+--oe]*ve;return ve*=128,he>=ve&&(he-=Math.pow(2,8*$)),he},g.prototype.readInt8=function(Y,$){return Y=Y>>>0,$||te(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},g.prototype.readInt16LE=function(Y,$){Y=Y>>>0,$||te(Y,2,this.length);var pe=this[Y]|this[Y+1]<<8;return pe&32768?pe|4294901760:pe},g.prototype.readInt16BE=function(Y,$){Y=Y>>>0,$||te(Y,2,this.length);var pe=this[Y+1]|this[Y]<<8;return pe&32768?pe|4294901760:pe},g.prototype.readInt32LE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},g.prototype.readInt32BE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},g.prototype.readFloatLE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),s.read(this,Y,!0,23,4)},g.prototype.readFloatBE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),s.read(this,Y,!1,23,4)},g.prototype.readDoubleLE=function(Y,$){return Y=Y>>>0,$||te(Y,8,this.length),s.read(this,Y,!0,52,8)},g.prototype.readDoubleBE=function(Y,$){return Y=Y>>>0,$||te(Y,8,this.length),s.read(this,Y,!1,52,8)};function Z(le,Y,$,pe,oe,ve){if(!g.isBuffer(le))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>oe||Y<ve)throw new RangeError('"value" argument is out of bounds');if($+pe>le.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(Y,$,pe,oe){if(Y=+Y,$=$>>>0,pe=pe>>>0,!oe){var ve=Math.pow(2,8*pe)-1;Z(this,Y,$,pe,ve,0)}var he=1,me=0;for(this[$]=Y&255;++me<pe&&(he*=256);)this[$+me]=Y/he&255;return $+pe},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(Y,$,pe,oe){if(Y=+Y,$=$>>>0,pe=pe>>>0,!oe){var ve=Math.pow(2,8*pe)-1;Z(this,Y,$,pe,ve,0)}var he=pe-1,me=1;for(this[$+he]=Y&255;--he>=0&&(me*=256);)this[$+he]=Y/me&255;return $+pe},g.prototype.writeUint8=g.prototype.writeUInt8=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,1,255,0),this[$]=Y&255,$+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,2,65535,0),this[$]=Y&255,this[$+1]=Y>>>8,$+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,2,65535,0),this[$]=Y>>>8,this[$+1]=Y&255,$+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,4,4294967295,0),this[$+3]=Y>>>24,this[$+2]=Y>>>16,this[$+1]=Y>>>8,this[$]=Y&255,$+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,4,4294967295,0),this[$]=Y>>>24,this[$+1]=Y>>>16,this[$+2]=Y>>>8,this[$+3]=Y&255,$+4},g.prototype.writeIntLE=function(Y,$,pe,oe){if(Y=+Y,$=$>>>0,!oe){var ve=Math.pow(2,8*pe-1);Z(this,Y,$,pe,ve-1,-ve)}var he=0,me=1,be=0;for(this[$]=Y&255;++he<pe&&(me*=256);)Y<0&&be===0&&this[$+he-1]!==0&&(be=1),this[$+he]=(Y/me>>0)-be&255;return $+pe},g.prototype.writeIntBE=function(Y,$,pe,oe){if(Y=+Y,$=$>>>0,!oe){var ve=Math.pow(2,8*pe-1);Z(this,Y,$,pe,ve-1,-ve)}var he=pe-1,me=1,be=0;for(this[$+he]=Y&255;--he>=0&&(me*=256);)Y<0&&be===0&&this[$+he+1]!==0&&(be=1),this[$+he]=(Y/me>>0)-be&255;return $+pe},g.prototype.writeInt8=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,1,127,-128),Y<0&&(Y=255+Y+1),this[$]=Y&255,$+1},g.prototype.writeInt16LE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,2,32767,-32768),this[$]=Y&255,this[$+1]=Y>>>8,$+2},g.prototype.writeInt16BE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,2,32767,-32768),this[$]=Y>>>8,this[$+1]=Y&255,$+2},g.prototype.writeInt32LE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,4,2147483647,-2147483648),this[$]=Y&255,this[$+1]=Y>>>8,this[$+2]=Y>>>16,this[$+3]=Y>>>24,$+4},g.prototype.writeInt32BE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[$]=Y>>>24,this[$+1]=Y>>>16,this[$+2]=Y>>>8,this[$+3]=Y&255,$+4};function ie(le,Y,$,pe,oe,ve){if($+pe>le.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function Q(le,Y,$,pe,oe){return Y=+Y,$=$>>>0,oe||ie(le,Y,$,4,34028234663852886e22,-34028234663852886e22),s.write(le,Y,$,pe,23,4),$+4}g.prototype.writeFloatLE=function(Y,$,pe){return Q(this,Y,$,!0,pe)},g.prototype.writeFloatBE=function(Y,$,pe){return Q(this,Y,$,!1,pe)};function re(le,Y,$,pe,oe){return Y=+Y,$=$>>>0,oe||ie(le,Y,$,8,17976931348623157e292,-17976931348623157e292),s.write(le,Y,$,pe,52,8),$+8}g.prototype.writeDoubleLE=function(Y,$,pe){return re(this,Y,$,!0,pe)},g.prototype.writeDoubleBE=function(Y,$,pe){return re(this,Y,$,!1,pe)},g.prototype.copy=function(Y,$,pe,oe){if(!g.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(pe||(pe=0),!oe&&oe!==0&&(oe=this.length),$>=Y.length&&($=Y.length),$||($=0),oe>0&&oe<pe&&(oe=pe),oe===pe||Y.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(pe<0||pe>=this.length)throw new RangeError("Index out of range");if(oe<0)throw new RangeError("sourceEnd out of bounds");oe>this.length&&(oe=this.length),Y.length-$<oe-pe&&(oe=Y.length-$+pe);var ve=oe-pe;return this===Y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin($,pe,oe):Uint8Array.prototype.set.call(Y,this.subarray(pe,oe),$),ve},g.prototype.fill=function(Y,$,pe,oe){if(typeof Y=="string"){if(typeof $=="string"?(oe=$,$=0,pe=this.length):typeof pe=="string"&&(oe=pe,pe=this.length),oe!==void 0&&typeof oe!="string")throw new TypeError("encoding must be a string");if(typeof oe=="string"&&!g.isEncoding(oe))throw new TypeError("Unknown encoding: "+oe);if(Y.length===1){var ve=Y.charCodeAt(0);(oe==="utf8"&&ve<128||oe==="latin1")&&(Y=ve)}}else typeof Y=="number"?Y=Y&255:typeof Y=="boolean"&&(Y=Number(Y));if($<0||this.length<$||this.length<pe)throw new RangeError("Out of range index");if(pe<=$)return this;$=$>>>0,pe=pe===void 0?this.length:pe>>>0,Y||(Y=0);var he;if(typeof Y=="number")for(he=$;he<pe;++he)this[he]=Y;else{var me=g.isBuffer(Y)?Y:g.from(Y,oe),be=me.length;if(be===0)throw new TypeError('The value "'+Y+'" is invalid for argument "value"');for(he=0;he<pe-$;++he)this[he+$]=me[he%be]}return this};var ue=/[^+/0-9A-Za-z-_]/g;function ee(le){if(le=le.split("=")[0],le=le.trim().replace(ue,""),le.length<2)return"";for(;le.length%4!==0;)le=le+"=";return le}function ae(le,Y){Y=Y||1/0;for(var $,pe=le.length,oe=null,ve=[],he=0;he<pe;++he){if($=le.charCodeAt(he),$>55295&&$<57344){if(!oe){if($>56319){(Y-=3)>-1&&ve.push(239,191,189);continue}else if(he+1===pe){(Y-=3)>-1&&ve.push(239,191,189);continue}oe=$;continue}if($<56320){(Y-=3)>-1&&ve.push(239,191,189),oe=$;continue}$=(oe-55296<<10|$-56320)+65536}else oe&&(Y-=3)>-1&&ve.push(239,191,189);if(oe=null,$<128){if((Y-=1)<0)break;ve.push($)}else if($<2048){if((Y-=2)<0)break;ve.push($>>6|192,$&63|128)}else if($<65536){if((Y-=3)<0)break;ve.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((Y-=4)<0)break;ve.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return ve}function ce(le){for(var Y=[],$=0;$<le.length;++$)Y.push(le.charCodeAt($)&255);return Y}function Te(le,Y){for(var $,pe,oe,ve=[],he=0;he<le.length&&!((Y-=2)<0);++he)$=le.charCodeAt(he),pe=$>>8,oe=$%256,ve.push(oe),ve.push(pe);return ve}function ke(le){return u.toByteArray(ee(le))}function Se(le,Y,$,pe){for(var oe=0;oe<pe&&!(oe+$>=Y.length||oe>=le.length);++oe)Y[oe+$]=le[oe];return oe}function ge(le,Y){return le instanceof Y||le!=null&&le.constructor!=null&&le.constructor.name!=null&&le.constructor.name===Y.name}function Le(le){return le!==le}var Ce=(function(){for(var le="0123456789abcdef",Y=new Array(256),$=0;$<16;++$)for(var pe=$*16,oe=0;oe<16;++oe)Y[pe+oe]=le[$]+le[oe];return Y})()},2538(a,o,i){"use strict";var l=i(8902),u=i(5542),s=i(2272),f=i(5023);a.exports=w;function c(M){return[Math.min(M[0],M[1]),Math.max(M[0],M[1])]}function p(M,m){return M[0]-m[0]||M[1]-m[1]}function x(M){return M.map(c).sort(p)}function g(M,m,k){return m in M?M[m]:k}function w(M,m,k){Array.isArray(m)?(k=k||{},m=m||[]):(k=m||{},m=[]);var S=!!g(k,"delaunay",!0),b=!!g(k,"interior",!0),T=!!g(k,"exterior",!0),h=!!g(k,"infinity",!1);if(!b&&!T||M.length===0)return[];var _=l(M,m);if(S||b!==T||h){for(var y=u(M.length,x(m)),v=0;v<_.length;++v){var A=_[v];y.addTriangle(A[0],A[1],A[2])}return S&&s(M,y),T?b?h?f(y,0,h):y.cells():f(y,1,h):f(y,-1)}else return _}},2272(a,o,i){"use strict";var l=i(2646)[4],u=i(2478);a.exports=f;function s(c,p,x,g,w,M){var m=p.opposite(g,w);if(!(m<0)){if(w<g){var k=g;g=w,w=k,k=M,M=m,m=k}p.isConstraint(g,w)||l(c[g],c[w],c[M],c[m])<0&&x.push(g,w)}}function f(c,p){for(var x=[],g=c.length,w=p.stars,M=0;M<g;++M)for(var m=w[M],k=1;k<m.length;k+=2){var S=m[k];if(!(S<M)&&!p.isConstraint(M,S)){for(var b=m[k-1],T=-1,h=1;h<m.length;h+=2)if(m[h-1]===S){T=m[h];break}T<0||l(c[M],c[S],c[b],c[T])<0&&x.push(M,S)}}for(;x.length>0;){for(var S=x.pop(),M=x.pop(),b=-1,T=-1,m=w[M],_=1;_<m.length;_+=2){var y=m[_-1],v=m[_];y===S?T=v:v===S&&(b=y)}b<0||T<0||l(c[M],c[S],c[b],c[T])>=0||(p.flip(M,S),s(c,p,x,b,M,T),s(c,p,x,M,T,b),s(c,p,x,T,S,b),s(c,p,x,S,b,T))}}},5023(a,o,i){"use strict";var l=i(2478);a.exports=x;function u(g,w,M,m,k,S,b){this.cells=g,this.neighbor=w,this.flags=m,this.constraint=M,this.active=k,this.next=S,this.boundary=b}var s=u.prototype;function f(g,w){return g[0]-w[0]||g[1]-w[1]||g[2]-w[2]}s.locate=(function(){var g=[0,0,0];return function(w,M,m){var k=w,S=M,b=m;return M<m?M<w&&(k=M,S=m,b=w):m<w&&(k=m,S=w,b=M),k<0?-1:(g[0]=k,g[1]=S,g[2]=b,l.eq(this.cells,g,f))}})();function c(g,w){for(var M=g.cells(),m=M.length,k=0;k<m;++k){var S=M[k],b=S[0],T=S[1],h=S[2];T<h?T<b&&(S[0]=T,S[1]=h,S[2]=b):h<b&&(S[0]=h,S[1]=b,S[2]=T)}M.sort(f);for(var _=new Array(m),k=0;k<_.length;++k)_[k]=0;var y=[],v=[],A=new Array(3*m),d=new Array(3*m),D=null;w&&(D=[]);for(var E=new u(M,A,d,_,y,v,D),k=0;k<m;++k)for(var S=M[k],R=0;R<3;++R){var b=S[R],T=S[(R+1)%3],z=A[3*k+R]=E.locate(T,b,g.opposite(T,b)),I=d[3*k+R]=g.isConstraint(b,T);z<0&&(I?v.push(k):(y.push(k),_[k]=1),w&&D.push([T,b,-1]))}return E}function p(g,w,M){for(var m=0,k=0;k<g.length;++k)w[k]===M&&(g[m++]=g[k]);return g.length=m,g}function x(g,w,M){var m=c(g,M);if(w===0)return M?m.cells.concat(m.boundary):m.cells;for(var k=1,S=m.active,b=m.next,T=m.flags,h=m.cells,_=m.constraint,y=m.neighbor;S.length>0||b.length>0;){for(;S.length>0;){var v=S.pop();if(T[v]!==-k){T[v]=k;for(var A=h[v],d=0;d<3;++d){var D=y[3*v+d];D>=0&&T[D]===0&&(_[3*v+d]?b.push(D):(S.push(D),T[D]=k))}}}var E=b;b=S,S=E,b.length=0,k=-k}var R=p(h,T,w);return M?R.concat(m.boundary):R}},8902(a,o,i){"use strict";var l=i(2478),u=i(3250)[3],s=0,f=1,c=2;a.exports=b;function p(T,h,_,y,v){this.a=T,this.b=h,this.idx=_,this.lowerIds=y,this.upperIds=v}function x(T,h,_,y){this.a=T,this.b=h,this.type=_,this.idx=y}function g(T,h){var _=T.a[0]-h.a[0]||T.a[1]-h.a[1]||T.type-h.type;return _||T.type!==s&&(_=u(T.a,T.b,h.b),_)?_:T.idx-h.idx}function w(T,h){return u(T.a,T.b,h)}function M(T,h,_,y,v){for(var A=l.lt(h,y,w),d=l.gt(h,y,w),D=A;D<d;++D){for(var E=h[D],R=E.lowerIds,I=R.length;I>1&&u(_[R[I-2]],_[R[I-1]],y)>0;)T.push([R[I-1],R[I-2],v]),I-=1;R.length=I,R.push(v);for(var z=E.upperIds,I=z.length;I>1&&u(_[z[I-2]],_[z[I-1]],y)<0;)T.push([z[I-2],z[I-1],v]),I-=1;z.length=I,z.push(v)}}function m(T,h){var _;return T.a[0]<h.a[0]?_=u(T.a,T.b,h.a):_=u(h.b,h.a,T.a),_||(h.b[0]<T.b[0]?_=u(T.a,T.b,h.b):_=u(h.b,h.a,T.b),_||T.idx-h.idx)}function k(T,h,_){var y=l.le(T,_,m),v=T[y],A=v.upperIds,d=A[A.length-1];v.upperIds=[d],T.splice(y+1,0,new p(_.a,_.b,_.idx,[d],A))}function S(T,h,_){var y=_.a;_.a=_.b,_.b=y;var v=l.eq(T,_,m),A=T[v],d=T[v-1];d.upperIds=A.upperIds,T.splice(v,1)}function b(T,h){for(var _=T.length,y=h.length,v=[],A=0;A<_;++A)v.push(new x(T[A],null,s,A));for(var A=0;A<y;++A){var d=h[A],D=T[d[0]],E=T[d[1]];D[0]<E[0]?v.push(new x(D,E,c,A),new x(E,D,f,A)):D[0]>E[0]&&v.push(new x(E,D,c,A),new x(D,E,f,A))}v.sort(g);for(var R=v[0].a[0]-(1+Math.abs(v[0].a[0]))*Math.pow(2,-52),z=[new p([R,1],[R,0],-1,[],[],[],[])],I=[],A=0,P=v.length;A<P;++A){var L=v[A],F=L.type;F===s?M(I,z,T,L.a,L.idx):F===c?k(z,T,L):S(z,T,L)}return I}},5542(a,o,i){"use strict";var l=i(2478);a.exports=c;function u(p,x){this.stars=p,this.edges=x}var s=u.prototype;function f(p,x,g){for(var w=1,M=p.length;w<M;w+=2)if(p[w-1]===x&&p[w]===g){p[w-1]=p[M-2],p[w]=p[M-1],p.length=M-2;return}}s.isConstraint=(function(){var p=[0,0];function x(g,w){return g[0]-w[0]||g[1]-w[1]}return function(g,w){return p[0]=Math.min(g,w),p[1]=Math.max(g,w),l.eq(this.edges,p,x)>=0}})(),s.removeTriangle=function(p,x,g){var w=this.stars;f(w[p],x,g),f(w[x],g,p),f(w[g],p,x)},s.addTriangle=function(p,x,g){var w=this.stars;w[p].push(x,g),w[x].push(g,p),w[g].push(p,x)},s.opposite=function(p,x){for(var g=this.stars[x],w=1,M=g.length;w<M;w+=2)if(g[w]===p)return g[w-1];return-1},s.flip=function(p,x){var g=this.opposite(p,x),w=this.opposite(x,p);this.removeTriangle(p,x,g),this.removeTriangle(x,p,w),this.addTriangle(p,w,g),this.addTriangle(x,g,w)},s.edges=function(){for(var p=this.stars,x=[],g=0,w=p.length;g<w;++g)for(var M=p[g],m=0,k=M.length;m<k;m+=2)x.push([M[m],M[m+1]]);return x},s.cells=function(){for(var p=this.stars,x=[],g=0,w=p.length;g<w;++g)for(var M=p[g],m=0,k=M.length;m<k;m+=2){var S=M[m],b=M[m+1];g<Math.min(S,b)&&x.push([g,S,b])}return x};function c(p,x){for(var g=new Array(p),w=0;w<p;++w)g[w]=[];return new u(g,x)}},2419(a){"use strict";a.exports=o;function o(i){for(var l=1,u=1;u<i.length;++u)for(var s=0;s<u;++s)if(i[u]<i[s])l=-l;else if(i[s]===i[u])return 0;return l}},3628(a,o,i){"use strict";var l=i(1338),u=i(727);function s(p,x){for(var g=0,w=p.length,M=0;M<w;++M)g+=p[M]*x[M];return g}function f(p){var x=p.length;if(x===0)return[];var g=p[0].length,w=l([p.length+1,p.length+1],1),M=l([p.length+1],1);w[x][x]=0;for(var m=0;m<x;++m){for(var k=0;k<=m;++k)w[k][m]=w[m][k]=2*s(p[m],p[k]);M[m]=s(p[m],p[m])}for(var S=u(w,M),b=0,T=S[x+1],m=0;m<T.length;++m)b+=T[m];for(var h=new Array(x),m=0;m<x;++m){for(var T=S[m],_=0,k=0;k<T.length;++k)_+=T[k];h[m]=_/b}return h}function c(p){if(p.length===0)return[];for(var x=p[0].length,g=l([x]),w=f(p),M=0;M<p.length;++M)for(var m=0;m<x;++m)g[m]+=p[M][m]*w[M];return g}c.barycenetric=f,a.exports=c},6037(a,o,i){a.exports=u;var l=i(3628);function u(s){for(var f=l(s),c=0,p=0;p<s.length;++p)for(var x=s[p],g=0;g<f.length;++g)c+=Math.pow(x[g]-f[g],2);return Math.sqrt(c/s.length)}},332(a,o,i){"use strict";a.exports=D;var l=i(1755),u=i(6867),s=i(1125),f=i(7842),c=i(1318),p=i(946),x=i(5838),g=i(1278),w=i(3637);function M(E){var R=p(E);return[g(R,-1/0),g(R,1/0)]}function m(E,R){for(var z=new Array(R.length),I=0;I<R.length;++I){var P=R[I],L=E[P[0]],F=E[P[1]];z[I]=[g(Math.min(L[0],F[0]),-1/0),g(Math.min(L[1],F[1]),-1/0),g(Math.max(L[0],F[0]),1/0),g(Math.max(L[1],F[1]),1/0)]}return z}function k(E){for(var R=new Array(E.length),z=0;z<E.length;++z){var I=E[z];R[z]=[g(I[0],-1/0),g(I[1],-1/0),g(I[0],1/0),g(I[1],1/0)]}return R}function S(E,R,z){var I=[];return u(z,function(P,L){var F=R[P],B=R[L];if(!(F[0]===B[0]||F[0]===B[1]||F[1]===B[0]||F[1]===B[1])){var O=E[F[0]],V=E[F[1]],K=E[B[0]],j=E[B[1]];s(O,V,K,j)&&I.push([P,L])}}),I}function b(E,R,z,I){var P=[];return u(z,I,function(L,F){var B=R[L];if(!(B[0]===F||B[1]===F)){var O=E[F],V=E[B[0]],K=E[B[1]];s(V,K,O,O)&&P.push([L,F])}}),P}function T(E,R,z,I,P){var L,F,B=E.map(function(Te){return[f(Te[0]),f(Te[1])]});for(L=0;L<z.length;++L){var O=z[L];F=O[0];var V=O[1],K=R[F],j=R[V],G=w(x(E[K[0]]),x(E[K[1]]),x(E[j[0]]),x(E[j[1]]));if(G){var q=E.length;E.push([p(G[0]),p(G[1])]),B.push(G),I.push([F,q],[V,q])}}for(I.sort(function(Te,ke){if(Te[0]!==ke[0])return Te[0]-ke[0];var Se=B[Te[1]],ge=B[ke[1]];return c(Se[0],ge[0])||c(Se[1],ge[1])}),L=I.length-1;L>=0;--L){var J=I[L];F=J[0];var te=R[F],Z=te[0],ie=te[1],Q=E[Z],re=E[ie];if((Q[0]-re[0]||Q[1]-re[1])<0){var ue=Z;Z=ie,ie=ue}te[0]=Z;var ee=te[1]=J[1],ae;for(P&&(ae=te[2]);L>0&&I[L-1][0]===F;){var J=I[--L],ce=J[1];P?R.push([ee,ce,ae]):R.push([ee,ce]),ee=ce}P?R.push([ee,ie,ae]):R.push([ee,ie])}return B}function h(E,R,z){for(var I=R.length,P=new l(I),L=[],F=0;F<R.length;++F){var B=R[F],O=M(B[0]),V=M(B[1]);L.push([g(O[0],-1/0),g(V[0],-1/0),g(O[1],1/0),g(V[1],1/0)])}u(L,function(J,te){P.link(J,te)});for(var K=!0,j=new Array(I),F=0;F<I;++F){var G=P.find(F);G!==F&&(K=!1,E[G]=[Math.min(E[F][0],E[G][0]),Math.min(E[F][1],E[G][1])])}if(K)return null;for(var q=0,F=0;F<I;++F){var G=P.find(F);G===F?(j[F]=q,E[q++]=E[F]):j[F]=-1}E.length=q;for(var F=0;F<I;++F)j[F]<0&&(j[F]=j[P.find(F)]);return j}function _(E,R){return E[0]-R[0]||E[1]-R[1]}function y(E,R){var z=E[0]-R[0]||E[1]-R[1];return z||(E[2]<R[2]?-1:E[2]>R[2]?1:0)}function v(E,R,z){if(E.length!==0){if(R)for(var I=0;I<E.length;++I){var P=E[I],L=R[P[0]],F=R[P[1]];P[0]=Math.min(L,F),P[1]=Math.max(L,F)}else for(var I=0;I<E.length;++I){var P=E[I],L=P[0],F=P[1];P[0]=Math.min(L,F),P[1]=Math.max(L,F)}z?E.sort(y):E.sort(_);for(var B=1,I=1;I<E.length;++I){var O=E[I-1],V=E[I];V[0]===O[0]&&V[1]===O[1]&&(!z||V[2]===O[2])||(E[B++]=V)}E.length=B}}function A(E,R,z){var I=h(E,[],k(E));return v(R,I,z),!!I}function d(E,R,z){var I=m(E,R),P=S(E,R,I),L=k(E),F=b(E,R,I,L),B=T(E,R,P,F,z),O=h(E,B,L);return v(R,O,z),O?!0:P.length>0||F.length>0}function D(E,R,z){var I;if(z){I=R;for(var P=new Array(R.length),L=0;L<R.length;++L){var F=R[L];P[L]=[F[0],F[1],z[L]]}R=P}for(var B=A(E,R,!!z);d(E,R,!!z);)B=!0;if(z&&B){I.length=0,z.length=0;for(var L=0;L<R.length;++L){var F=R[L];I.push([F[0],F[1]]),z.push(F[2])}}return B}},3637(a,o,i){"use strict";a.exports=w;var l=i(6504),u=i(8697),s=i(5572),f=i(7721),c=i(544),p=i(2653),x=i(8987);function g(M,m){return s(l(M[0],m[1]),l(M[1],m[0]))}function w(M,m,k,S){var b=c(m,M),T=c(S,k),h=g(b,T);if(f(h)===0)return null;var _=c(M,k),y=g(T,_),v=u(y,h),A=x(b,v),d=p(M,A);return d}},3642(a){a.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(a,o,i){"use strict";var l=i(3642),u=i(395);a.exports=s;function s(x){var g,w,M,m,k,S,b,T,v,h,_;if(x||(x={}),T=(x.nshades||72)-1,b=x.format||"hex",S=x.colormap,S||(S="jet"),typeof S=="string"){if(S=S.toLowerCase(),!l[S])throw Error(S+" not a supported colorscale");k=l[S]}else if(Array.isArray(S))k=S.slice();else throw Error("unsupported colormap option",S);if(k.length>T+1)throw new Error(S+" map requires nshades to be at least size "+k.length);Array.isArray(x.alpha)?x.alpha.length!==2?h=[1,1]:h=x.alpha.slice():typeof x.alpha=="number"?h=[x.alpha,x.alpha]:h=[1,1],g=k.map(function(D){return Math.round(D.index*T)}),h[0]=Math.min(Math.max(h[0],0),1),h[1]=Math.min(Math.max(h[1],0),1);var y=k.map(function(D,E){var R=k[E].index,z=k[E].rgb.slice();return z.length===4&&z[3]>=0&&z[3]<=1||(z[3]=h[0]+(h[1]-h[0])*R),z}),v=[];for(_=0;_<g.length-1;++_){m=g[_+1]-g[_],w=y[_],M=y[_+1];for(var A=0;A<m;A++){var d=A/m;v.push([Math.round(u(w[0],M[0],d)),Math.round(u(w[1],M[1],d)),Math.round(u(w[2],M[2],d)),u(w[3],M[3],d)])}}return v.push(k[k.length-1].rgb.concat(h[1])),b==="hex"?v=v.map(c):b==="rgbaString"?v=v.map(p):b==="float"&&(v=v.map(f)),v}function f(x){return[x[0]/255,x[1]/255,x[2]/255,x[3]]}function c(x){for(var g,w="#",M=0;M<3;++M)g=x[M],g=g.toString(16),w+=("00"+g).substr(g.length);return w}function p(x){return"rgba("+x.join(",")+")"}},3140(a,o,i){"use strict";a.exports=x;var l=i(3250),u=i(8572),s=i(9362),f=i(5382),c=i(8210);function p(g,w,M){var m=s(g[0],-w[0]),k=s(g[1],-w[1]),S=s(M[0],-w[0]),b=s(M[1],-w[1]),T=c(f(m,S),f(k,b));return T[T.length-1]>=0}function x(g,w,M,m){var k=l(w,M,m);if(k===0){var S=u(l(g,w,M)),b=u(l(g,w,m));if(S===b){if(S===0){var T=p(g,w,M),h=p(g,w,m);return T===h?0:T?1:-1}return 0}else{if(b===0)return S>0||p(g,w,m)?-1:1;if(S===0)return b>0||p(g,w,M)?1:-1}return u(b-S)}var _=l(g,w,M);if(_>0)return k>0&&l(g,w,m)>0?1:-1;if(_<0)return k>0||l(g,w,m)>0?1:-1;var y=l(g,w,m);return y>0||p(g,w,M)?1:-1}},8572(a){"use strict";a.exports=function(i){return i<0?-1:i>0?1:0}},8507(a){a.exports=l;var o=Math.min;function i(u,s){return u-s}function l(u,s){var f=u.length,c=u.length-s.length;if(c)return c;switch(f){case 0:return 0;case 1:return u[0]-s[0];case 2:return u[0]+u[1]-s[0]-s[1]||o(u[0],u[1])-o(s[0],s[1]);case 3:var p=u[0]+u[1],x=s[0]+s[1];if(c=p+u[2]-(x+s[2]),c)return c;var g=o(u[0],u[1]),w=o(s[0],s[1]);return o(g,u[2])-o(w,s[2])||o(g+u[2],p)-o(w+s[2],x);case 4:var M=u[0],m=u[1],k=u[2],S=u[3],b=s[0],T=s[1],h=s[2],_=s[3];return M+m+k+S-(b+T+h+_)||o(M,m,k,S)-o(b,T,h,_,b)||o(M+m,M+k,M+S,m+k,m+S,k+S)-o(b+T,b+h,b+_,T+h,T+_,h+_)||o(M+m+k,M+m+S,M+k+S,m+k+S)-o(b+T+h,b+T+_,b+h+_,T+h+_);default:for(var y=u.slice().sort(i),v=s.slice().sort(i),A=0;A<f;++A)if(c=y[A]-v[A],c)return c;return 0}}},3788(a,o,i){"use strict";var l=i(8507),u=i(2419);a.exports=s;function s(f,c){return l(f,c)||u(f)-u(c)}},7352(a,o,i){"use strict";var l=i(5721),u=i(4750),s=i(2690);a.exports=f;function f(c){var p=c.length;if(p===0)return[];if(p===1)return[[0]];var x=c[0].length;return x===0?[]:x===1?l(c):x===2?u(c):s(c,x)}},5721(a){"use strict";a.exports=o;function o(i){for(var l=0,u=0,s=1;s<i.length;++s)i[s][0]<i[l][0]&&(l=s),i[s][0]>i[u][0]&&(u=s);return l<u?[[l],[u]]:l>u?[[u],[l]]:[[l]]}},4750(a,o,i){"use strict";a.exports=u;var l=i(3090);function u(s){var f=l(s),c=f.length;if(c<=2)return[];for(var p=new Array(c),x=f[c-1],g=0;g<c;++g){var w=f[g];p[g]=[x,w],x=w}return p}},2690(a,o,i){"use strict";a.exports=c;var l=i(8954),u=i(3952);function s(p,x){for(var g=p.length,w=new Array(g),M=0;M<x.length;++M)w[M]=p[x[M]];for(var m=x.length,M=0;M<g;++M)x.indexOf(M)<0&&(w[m++]=p[M]);return w}function f(p,x){for(var g=p.length,w=x.length,M=0;M<g;++M)for(var m=p[M],k=0;k<m.length;++k){var S=m[k];if(S<w)m[k]=x[S];else{S=S-w;for(var b=0;b<w;++b)S>=x[b]&&(S+=1);m[k]=S}}return p}function c(p,x){try{return l(p,!0)}catch(m){var g=u(p);if(g.length<=x)return[];var w=s(p,g),M=l(w,!0);return f(M,g)}}},4769(a){"use strict";function o(l,u,s,f,c,p){var x=6*c*c-6*c,g=3*c*c-4*c+1,w=-6*c*c+6*c,M=3*c*c-2*c;if(l.length){p||(p=new Array(l.length));for(var m=l.length-1;m>=0;--m)p[m]=x*l[m]+g*u[m]+w*s[m]+M*f[m];return p}return x*l+g*u+w*s[m]+M*f}function i(l,u,s,f,c,p){var x=c-1,g=c*c,w=x*x,M=(1+2*c)*w,m=c*w,k=g*(3-2*c),S=g*x;if(l.length){p||(p=new Array(l.length));for(var b=l.length-1;b>=0;--b)p[b]=M*l[b]+m*u[b]+k*s[b]+S*f[b];return p}return M*l+m*u+k*s+S*f}a.exports=i,a.exports.derivative=o},7642(a,o,i){"use strict";var l=i(8954),u=i(1682);a.exports=p;function s(x,g){this.point=x,this.index=g}function f(x,g){for(var w=x.point,M=g.point,m=w.length,k=0;k<m;++k){var S=M[k]-w[k];if(S)return S}return 0}function c(x,g,w){if(x===1)return w?[[-1,0]]:[];var M=g.map(function(T,h){return[T[0],h]});M.sort(function(T,h){return T[0]-h[0]});for(var m=new Array(x-1),k=1;k<x;++k){var S=M[k-1],b=M[k];m[k-1]=[S[1],b[1]]}return w&&m.push([-1,m[0][1]],[m[x-1][1],-1]),m}function p(x,g){var w=x.length;if(w===0)return[];var M=x[0].length;if(M<1)return[];if(M===1)return c(w,x,g);for(var m=new Array(w),k=1,S=0;S<w;++S){for(var b=x[S],T=new Array(M+1),h=0,_=0;_<M;++_){var y=b[_];T[_]=y,h+=y*y}T[M]=h,m[S]=new s(T,S),k=Math.max(h,k)}u(m,f),w=m.length;for(var v=new Array(w+M+1),A=new Array(w+M+1),d=(M+1)*(M+1)*k,D=new Array(M+1),S=0;S<=M;++S)D[S]=0;D[M]=d,v[0]=D.slice(),A[0]=-1;for(var S=0;S<=M;++S){var T=D.slice();T[S]=1,v[S+1]=T,A[S+1]=-1}for(var S=0;S<w;++S){var E=m[S];v[S+M+1]=E.point,A[S+M+1]=E.index}var R=l(v,!1);if(g?R=R.filter(function(z){for(var I=0,P=0;P<=M;++P){var L=A[z[P]];if(L<0&&++I>=2)return!1;z[P]=L}return!0}):R=R.filter(function(z){for(var I=0;I<=M;++I){var P=A[z[I]];if(P<0)return!1;z[I]=P}return!0}),M&1)for(var S=0;S<R.length;++S){var E=R[S],T=E[0];E[0]=E[1],E[1]=T}return R}},2361(a){var o=!1;if(typeof Float64Array!="undefined"){var i=new Float64Array(1),l=new Uint32Array(i.buffer);if(i[0]=1,o=!0,l[1]===1072693248){let k=function(T,h){return l[0]=T,l[1]=h,i[0]},S=function(T){return i[0]=T,l[0]},b=function(T){return i[0]=T,l[1]};var s=k,f=S,c=b;a.exports=function(h){return i[0]=h,[l[0],l[1]]},a.exports.pack=k,a.exports.lo=S,a.exports.hi=b}else if(l[0]===1072693248){let k=function(T,h){return l[1]=T,l[0]=h,i[0]},S=function(T){return i[0]=T,l[1]},b=function(T){return i[0]=T,l[0]};var p=k,x=S,g=b;a.exports=function(h){return i[0]=h,[l[1],l[0]]},a.exports.pack=k,a.exports.lo=S,a.exports.hi=b}else o=!1}if(!o){let k=function(T,h){return u.writeUInt32LE(T,0,!0),u.writeUInt32LE(h,4,!0),u.readDoubleLE(0,!0)},S=function(T){return u.writeDoubleLE(T,0,!0),u.readUInt32LE(0,!0)},b=function(T){return u.writeDoubleLE(T,0,!0),u.readUInt32LE(4,!0)};var w=k,M=S,m=b,u=new Buffer(8);a.exports=function(h){return u.writeDoubleLE(h,0,!0),[u.readUInt32LE(0,!0),u.readUInt32LE(4,!0)]},a.exports.pack=k,a.exports.lo=S,a.exports.hi=b}a.exports.sign=function(k){return a.exports.hi(k)>>>31},a.exports.exponent=function(k){var S=a.exports.hi(k);return(S<<1>>>21)-1023},a.exports.fraction=function(k){var S=a.exports.lo(k),b=a.exports.hi(k),T=b&(1<<20)-1;return b&2146435072&&(T+=1048576),[S,T]},a.exports.denormalized=function(k){var S=a.exports.hi(k);return!(S&2146435072)}},1338(a){"use strict";function o(u,s,f){var c=u[f]|0;if(c<=0)return[];var p=new Array(c),x;if(f===u.length-1)for(x=0;x<c;++x)p[x]=s;else for(x=0;x<c;++x)p[x]=o(u,s,f+1);return p}function i(u,s){var f,c;for(f=new Array(u),c=0;c<u;++c)f[c]=s;return f}function l(u,s){switch(typeof s=="undefined"&&(s=0),typeof u){case"number":if(u>0)return i(u|0,s);break;case"object":if(typeof u.length=="number")return o(u,s,0);break}return[]}a.exports=l},3134(a,o,i){"use strict";a.exports=u;var l=i(1682);function u(s,f){var c=s.length;if(typeof f!="number"){f=0;for(var p=0;p<c;++p){var x=s[p];f=Math.max(f,x[0],x[1])}f=(f|0)+1}f=f|0;for(var g=new Array(f),p=0;p<f;++p)g[p]=[];for(var p=0;p<c;++p){var x=s[p];g[x[0]].push(x[1]),g[x[1]].push(x[0])}for(var w=0;w<f;++w)l(g[w],function(M,m){return M-m});return g}},5033(a){"use strict";a.exports=o;function o(i,l,u){var s=l||0,f=u||1;return[[i[12]+i[0],i[13]+i[1],i[14]+i[2],i[15]+i[3]],[i[12]-i[0],i[13]-i[1],i[14]-i[2],i[15]-i[3]],[i[12]+i[4],i[13]+i[5],i[14]+i[6],i[15]+i[7]],[i[12]-i[4],i[13]-i[5],i[14]-i[6],i[15]-i[7]],[s*i[12]+i[8],s*i[13]+i[9],s*i[14]+i[10],s*i[15]+i[11]],[f*i[12]-i[8],f*i[13]-i[9],f*i[14]-i[10],f*i[15]-i[11]]]}},9215(a,o,i){"use strict";a.exports=x;var l=i(4769),u=i(2478);function s(g,w,M){return Math.min(w,Math.max(g,M))}function f(g,w,M){this.dimension=g.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var m=0;m<this.dimension;++m)this.bounds[0][m]=-1/0,this.bounds[1][m]=1/0;this._state=g.slice().reverse(),this._velocity=w.slice().reverse(),this._time=[M],this._scratch=[g.slice(),g.slice(),g.slice(),g.slice(),g.slice()]}var c=f.prototype;c.flush=function(g){var w=u.gt(this._time,g)-1;w<=0||(this._time.splice(0,w),this._state.splice(0,w*this.dimension),this._velocity.splice(0,w*this.dimension))},c.curve=function(g){var w=this._time,M=w.length,m=u.le(w,g),k=this._scratch[0],S=this._state,b=this._velocity,T=this.dimension,h=this.bounds;if(m<0)for(var _=T-1,y=0;y<T;++y,--_)k[y]=S[_];else if(m>=M-1)for(var _=S.length-1,v=g-w[M-1],y=0;y<T;++y,--_)k[y]=S[_]+v*b[_];else{for(var _=T*(m+1)-1,A=w[m],d=w[m+1],D=d-A||1,E=this._scratch[1],R=this._scratch[2],z=this._scratch[3],I=this._scratch[4],P=!0,y=0;y<T;++y,--_)E[y]=S[_],z[y]=b[_]*D,R[y]=S[_+T],I[y]=b[_+T]*D,P=P&&E[y]===R[y]&&z[y]===I[y]&&z[y]===0;if(P)for(var y=0;y<T;++y)k[y]=E[y];else l(E,z,R,I,(g-A)/D,k)}for(var L=h[0],F=h[1],y=0;y<T;++y)k[y]=s(L[y],F[y],k[y]);return k},c.dcurve=function(g){var w=this._time,M=w.length,m=u.le(w,g),k=this._scratch[0],S=this._state,b=this._velocity,T=this.dimension;if(m>=M-1)for(var h=S.length-1,_=g-w[M-1],y=0;y<T;++y,--h)k[y]=b[h];else{for(var h=T*(m+1)-1,v=w[m],A=w[m+1],d=A-v||1,D=this._scratch[1],E=this._scratch[2],R=this._scratch[3],z=this._scratch[4],I=!0,y=0;y<T;++y,--h)D[y]=S[h],R[y]=b[h]*d,E[y]=S[h+T],z[y]=b[h+T]*d,I=I&&D[y]===E[y]&&R[y]===z[y]&&R[y]===0;if(I)for(var y=0;y<T;++y)k[y]=0;else{l.derivative(D,R,E,z,(g-v)/d,k);for(var y=0;y<T;++y)k[y]/=d}}return k},c.lastT=function(){var g=this._time;return g[g.length-1]},c.stable=function(){for(var g=this._velocity,w=g.length,M=this.dimension-1;M>=0;--M)if(g[--w])return!1;return!0},c.jump=function(g){var w=this.lastT(),M=this.dimension;if(!(g<w||arguments.length!==M+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,b=this.bounds,T=b[0],h=b[1];this._time.push(w,g);for(var _=0;_<2;++_)for(var y=0;y<M;++y)m.push(m[S++]),k.push(0);this._time.push(g);for(var y=M;y>0;--y)m.push(s(T[y-1],h[y-1],arguments[y])),k.push(0)}},c.push=function(g){var w=this.lastT(),M=this.dimension;if(!(g<w||arguments.length!==M+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,b=g-w,T=this.bounds,h=T[0],_=T[1],y=b>1e-6?1/b:0;this._time.push(g);for(var v=M;v>0;--v){var A=s(h[v-1],_[v-1],arguments[v]);m.push(A),k.push((A-m[S++])*y)}}},c.set=function(g){var w=this.dimension;if(!(g<this.lastT()||arguments.length!==w+1)){var M=this._state,m=this._velocity,k=this.bounds,S=k[0],b=k[1];this._time.push(g);for(var T=w;T>0;--T)M.push(s(S[T-1],b[T-1],arguments[T])),m.push(0)}},c.move=function(g){var w=this.lastT(),M=this.dimension;if(!(g<=w||arguments.length!==M+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,b=this.bounds,T=b[0],h=b[1],_=g-w,y=_>1e-6?1/_:0;this._time.push(g);for(var v=M;v>0;--v){var A=arguments[v];m.push(s(T[v-1],h[v-1],m[S++]+A)),k.push(A*y)}}},c.idle=function(g){var w=this.lastT();if(!(g<w)){var M=this.dimension,m=this._state,k=this._velocity,S=m.length-M,b=this.bounds,T=b[0],h=b[1],_=g-w;this._time.push(g);for(var y=M-1;y>=0;--y)m.push(s(T[y],h[y],m[S]+_*k[S])),k.push(0),S+=1}};function p(g){for(var w=new Array(g),M=0;M<g;++M)w[M]=0;return w}function x(g,w,M){switch(arguments.length){case 0:return new f([0],[0],0);case 1:if(typeof g=="number"){var m=p(g);return new f(m,m,0)}else return new f(g,p(g.length),0);case 2:if(typeof w=="number"){var m=p(g.length);return new f(g,m,+w)}else M=0;case 3:if(g.length!==w.length)throw new Error("state and velocity lengths must match");return new f(g,w,M)}}},3840(a){"use strict";a.exports=T;var o=0,i=1;function l(h,_,y,v,A,d){this._color=h,this.key=_,this.value=y,this.left=v,this.right=A,this._count=d}function u(h){return new l(h._color,h.key,h.value,h.left,h.right,h._count)}function s(h,_){return new l(h,_.key,_.value,_.left,_.right,_._count)}function f(h){h._count=1+(h.left?h.left._count:0)+(h.right?h.right._count:0)}function c(h,_){this._compare=h,this.root=_}var p=c.prototype;Object.defineProperty(p,"keys",{get:function(){var h=[];return this.forEach(function(_,y){h.push(_)}),h}}),Object.defineProperty(p,"values",{get:function(){var h=[];return this.forEach(function(_,y){h.push(y)}),h}}),Object.defineProperty(p,"length",{get:function(){return this.root?this.root._count:0}}),p.insert=function(h,_){for(var y=this._compare,v=this.root,A=[],d=[];v;){var D=y(h,v.key);A.push(v),d.push(D),D<=0?v=v.left:v=v.right}A.push(new l(o,h,_,null,null,1));for(var E=A.length-2;E>=0;--E){var v=A[E];d[E]<=0?A[E]=new l(v._color,v.key,v.value,A[E+1],v.right,v._count+1):A[E]=new l(v._color,v.key,v.value,v.left,A[E+1],v._count+1)}for(var E=A.length-1;E>1;--E){var R=A[E-1],v=A[E];if(R._color===i||v._color===i)break;var z=A[E-2];if(z.left===R)if(R.left===v){var I=z.right;if(I&&I._color===o)R._color=i,z.right=s(i,I),z._color=o,E-=1;else{if(z._color=o,z.left=R.right,R._color=i,R.right=z,A[E-2]=R,A[E-1]=v,f(z),f(R),E>=3){var P=A[E-3];P.left===z?P.left=R:P.right=R}break}}else{var I=z.right;if(I&&I._color===o)R._color=i,z.right=s(i,I),z._color=o,E-=1;else{if(R.right=v.left,z._color=o,z.left=v.right,v._color=i,v.left=R,v.right=z,A[E-2]=v,A[E-1]=R,f(z),f(R),f(v),E>=3){var P=A[E-3];P.left===z?P.left=v:P.right=v}break}}else if(R.right===v){var I=z.left;if(I&&I._color===o)R._color=i,z.left=s(i,I),z._color=o,E-=1;else{if(z._color=o,z.right=R.left,R._color=i,R.left=z,A[E-2]=R,A[E-1]=v,f(z),f(R),E>=3){var P=A[E-3];P.right===z?P.right=R:P.left=R}break}}else{var I=z.left;if(I&&I._color===o)R._color=i,z.left=s(i,I),z._color=o,E-=1;else{if(R.left=v.right,z._color=o,z.right=v.left,v._color=i,v.right=R,v.left=z,A[E-2]=v,A[E-1]=R,f(z),f(R),f(v),E>=3){var P=A[E-3];P.right===z?P.right=v:P.left=v}break}}}return A[0]._color=i,new c(y,A[0])};function x(h,_){if(_.left){var y=x(h,_.left);if(y)return y}var y=h(_.key,_.value);if(y)return y;if(_.right)return x(h,_.right)}function g(h,_,y,v){var A=_(h,v.key);if(A<=0){if(v.left){var d=g(h,_,y,v.left);if(d)return d}var d=y(v.key,v.value);if(d)return d}if(v.right)return g(h,_,y,v.right)}function w(h,_,y,v,A){var d=y(h,A.key),D=y(_,A.key),E;if(d<=0&&(A.left&&(E=w(h,_,y,v,A.left),E)||D>0&&(E=v(A.key,A.value),E)))return E;if(D>0&&A.right)return w(h,_,y,v,A.right)}p.forEach=function(_,y,v){if(this.root)switch(arguments.length){case 1:return x(_,this.root);case 2:return g(y,this._compare,_,this.root);case 3:return this._compare(y,v)>=0?void 0:w(y,v,this._compare,_,this.root)}},Object.defineProperty(p,"begin",{get:function(){for(var h=[],_=this.root;_;)h.push(_),_=_.left;return new M(this,h)}}),Object.defineProperty(p,"end",{get:function(){for(var h=[],_=this.root;_;)h.push(_),_=_.right;return new M(this,h)}}),p.at=function(h){if(h<0)return new M(this,[]);for(var _=this.root,y=[];;){if(y.push(_),_.left){if(h<_.left._count){_=_.left;continue}h-=_.left._count}if(!h)return new M(this,y);if(h-=1,_.right){if(h>=_.right._count)break;_=_.right}else break}return new M(this,[])},p.ge=function(h){for(var _=this._compare,y=this.root,v=[],A=0;y;){var d=_(h,y.key);v.push(y),d<=0&&(A=v.length),d<=0?y=y.left:y=y.right}return v.length=A,new M(this,v)},p.gt=function(h){for(var _=this._compare,y=this.root,v=[],A=0;y;){var d=_(h,y.key);v.push(y),d<0&&(A=v.length),d<0?y=y.left:y=y.right}return v.length=A,new M(this,v)},p.lt=function(h){for(var _=this._compare,y=this.root,v=[],A=0;y;){var d=_(h,y.key);v.push(y),d>0&&(A=v.length),d<=0?y=y.left:y=y.right}return v.length=A,new M(this,v)},p.le=function(h){for(var _=this._compare,y=this.root,v=[],A=0;y;){var d=_(h,y.key);v.push(y),d>=0&&(A=v.length),d<0?y=y.left:y=y.right}return v.length=A,new M(this,v)},p.find=function(h){for(var _=this._compare,y=this.root,v=[];y;){var A=_(h,y.key);if(v.push(y),A===0)return new M(this,v);A<=0?y=y.left:y=y.right}return new M(this,[])},p.remove=function(h){var _=this.find(h);return _?_.remove():this},p.get=function(h){for(var _=this._compare,y=this.root;y;){var v=_(h,y.key);if(v===0)return y.value;v<=0?y=y.left:y=y.right}};function M(h,_){this.tree=h,this._stack=_}var m=M.prototype;Object.defineProperty(m,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(m,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),m.clone=function(){return new M(this.tree,this._stack.slice())};function k(h,_){h.key=_.key,h.value=_.value,h.left=_.left,h.right=_.right,h._color=_._color,h._count=_._count}function S(h){for(var _,y,v,A,d=h.length-1;d>=0;--d){if(_=h[d],d===0){_._color=i;return}if(y=h[d-1],y.left===_){if(v=y.right,v.right&&v.right._color===o){if(v=y.right=u(v),A=v.right=u(v.right),y.right=v.left,v.left=y,v.right=A,v._color=y._color,_._color=i,y._color=i,A._color=i,f(y),f(v),d>1){var D=h[d-2];D.left===y?D.left=v:D.right=v}h[d-1]=v;return}else if(v.left&&v.left._color===o){if(v=y.right=u(v),A=v.left=u(v.left),y.right=A.left,v.left=A.right,A.left=y,A.right=v,A._color=y._color,y._color=i,v._color=i,_._color=i,f(y),f(v),f(A),d>1){var D=h[d-2];D.left===y?D.left=A:D.right=A}h[d-1]=A;return}if(v._color===i)if(y._color===o){y._color=i,y.right=s(o,v);return}else{y.right=s(o,v);continue}else{if(v=u(v),y.right=v.left,v.left=y,v._color=y._color,y._color=o,f(y),f(v),d>1){var D=h[d-2];D.left===y?D.left=v:D.right=v}h[d-1]=v,h[d]=y,d+1<h.length?h[d+1]=_:h.push(_),d=d+2}}else{if(v=y.left,v.left&&v.left._color===o){if(v=y.left=u(v),A=v.left=u(v.left),y.left=v.right,v.right=y,v.left=A,v._color=y._color,_._color=i,y._color=i,A._color=i,f(y),f(v),d>1){var D=h[d-2];D.right===y?D.right=v:D.left=v}h[d-1]=v;return}else if(v.right&&v.right._color===o){if(v=y.left=u(v),A=v.right=u(v.right),y.left=A.right,v.right=A.left,A.right=y,A.left=v,A._color=y._color,y._color=i,v._color=i,_._color=i,f(y),f(v),f(A),d>1){var D=h[d-2];D.right===y?D.right=A:D.left=A}h[d-1]=A;return}if(v._color===i)if(y._color===o){y._color=i,y.left=s(o,v);return}else{y.left=s(o,v);continue}else{if(v=u(v),y.left=v.right,v.right=y,v._color=y._color,y._color=o,f(y),f(v),d>1){var D=h[d-2];D.right===y?D.right=v:D.left=v}h[d-1]=v,h[d]=y,d+1<h.length?h[d+1]=_:h.push(_),d=d+2}}}}m.remove=function(){var h=this._stack;if(h.length===0)return this.tree;var _=new Array(h.length),y=h[h.length-1];_[_.length-1]=new l(y._color,y.key,y.value,y.left,y.right,y._count);for(var v=h.length-2;v>=0;--v){var y=h[v];y.left===h[v+1]?_[v]=new l(y._color,y.key,y.value,_[v+1],y.right,y._count):_[v]=new l(y._color,y.key,y.value,y.left,_[v+1],y._count)}if(y=_[_.length-1],y.left&&y.right){var A=_.length;for(y=y.left;y.right;)_.push(y),y=y.right;var d=_[A-1];_.push(new l(y._color,d.key,d.value,y.left,y.right,y._count)),_[A-1].key=y.key,_[A-1].value=y.value;for(var v=_.length-2;v>=A;--v)y=_[v],_[v]=new l(y._color,y.key,y.value,y.left,_[v+1],y._count);_[A-1].left=_[A]}if(y=_[_.length-1],y._color===o){var D=_[_.length-2];D.left===y?D.left=null:D.right===y&&(D.right=null),_.pop();for(var v=0;v<_.length;++v)_[v]._count--;return new c(this.tree._compare,_[0])}else if(y.left||y.right){y.left?k(y,y.left):y.right&&k(y,y.right),y._color=i;for(var v=0;v<_.length-1;++v)_[v]._count--;return new c(this.tree._compare,_[0])}else{if(_.length===1)return new c(this.tree._compare,null);for(var v=0;v<_.length;++v)_[v]._count--;var E=_[_.length-2];S(_),E.left===y?E.left=null:E.right=null}return new c(this.tree._compare,_[0])},Object.defineProperty(m,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(m,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(m,"index",{get:function(){var h=0,_=this._stack;if(_.length===0){var y=this.tree.root;return y?y._count:0}else _[_.length-1].left&&(h=_[_.length-1].left._count);for(var v=_.length-2;v>=0;--v)_[v+1]===_[v].right&&(++h,_[v].left&&(h+=_[v].left._count));return h},enumerable:!0}),m.next=function(){var h=this._stack;if(h.length!==0){var _=h[h.length-1];if(_.right)for(_=_.right;_;)h.push(_),_=_.left;else for(h.pop();h.length>0&&h[h.length-1].right===_;)_=h[h.length-1],h.pop()}},Object.defineProperty(m,"hasNext",{get:function(){var h=this._stack;if(h.length===0)return!1;if(h[h.length-1].right)return!0;for(var _=h.length-1;_>0;--_)if(h[_-1].left===h[_])return!0;return!1}}),m.update=function(h){var _=this._stack;if(_.length===0)throw new Error("Can't update empty node!");var y=new Array(_.length),v=_[_.length-1];y[y.length-1]=new l(v._color,v.key,h,v.left,v.right,v._count);for(var A=_.length-2;A>=0;--A)v=_[A],v.left===_[A+1]?y[A]=new l(v._color,v.key,v.value,y[A+1],v.right,v._count):y[A]=new l(v._color,v.key,v.value,v.left,y[A+1],v._count);return new c(this.tree._compare,y[0])},m.prev=function(){var h=this._stack;if(h.length!==0){var _=h[h.length-1];if(_.left)for(_=_.left;_;)h.push(_),_=_.right;else for(h.pop();h.length>0&&h[h.length-1].left===_;)_=h[h.length-1],h.pop()}},Object.defineProperty(m,"hasPrev",{get:function(){var h=this._stack;if(h.length===0)return!1;if(h[h.length-1].left)return!0;for(var _=h.length-1;_>0;--_)if(h[_-1].right===h[_])return!0;return!1}});function b(h,_){return h<_?-1:h>_?1:0}function T(h){return new c(h||b,null)}},3837(a,o,i){"use strict";a.exports=E;var l=i(4935),u=i(501),s=i(5304),f=i(6429),c=i(6444),p=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),x=ArrayBuffer,g=DataView;function w(R){return x.isView(R)&&!(R instanceof g)}function M(R){return Array.isArray(R)||w(R)}function m(R,z){return R[0]=z[0],R[1]=z[1],R[2]=z[2],R}function k(R){this.gl=R,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=s(R)}var S=k.prototype;S.update=function(R){R=R||{};function z(Z,ie,Q){if(Q in R){var re=R[Q],ue=this[Q],ee;(Z?M(re)&&M(re[0]):M(re))?this[Q]=ee=[ie(re[0]),ie(re[1]),ie(re[2])]:this[Q]=ee=[ie(re),ie(re),ie(re)];for(var ae=0;ae<3;++ae)if(ee[ae]!==ue[ae])return!0}return!1}var I=z.bind(this,!1,Number),P=z.bind(this,!1,Boolean),L=z.bind(this,!1,String),F=z.bind(this,!0,function(Z){if(M(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]}),B,O=!1,V=!1;if("bounds"in R)for(var K=R.bounds,j=0;j<2;++j)for(var G=0;G<3;++G)K[j][G]!==this.bounds[j][G]&&(V=!0),this.bounds[j][G]=K[j][G];if("ticks"in R){B=R.ticks,O=!0,this.autoTicks=!1;for(var j=0;j<3;++j)this.tickSpacing[j]=0}else I("tickSpacing")&&(this.autoTicks=!0,V=!0);if(this._firstInit&&("ticks"in R||"tickSpacing"in R||(this.autoTicks=!0),V=!0,O=!0,this._firstInit=!1),V&&this.autoTicks&&(B=c.create(this.bounds,this.tickSpacing),O=!0),O){for(var j=0;j<3;++j)B[j].sort(function(ie,Q){return ie.x-Q.x});c.equal(B,this.ticks)?O=!1:this.ticks=B}P("tickEnable"),L("tickFont")&&(O=!0),L("tickFontStyle")&&(O=!0),L("tickFontWeight")&&(O=!0),L("tickFontVariant")&&(O=!0),I("tickSize"),I("tickAngle"),I("tickPad"),F("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),P("labelEnable"),I("labelSize"),I("labelPad"),F("labelColor"),P("lineEnable"),P("lineMirror"),I("lineWidth"),F("lineColor"),P("lineTickEnable"),P("lineTickMirror"),I("lineTickLength"),I("lineTickWidth"),F("lineTickColor"),P("gridEnable"),I("gridWidth"),F("gridColor"),P("zeroEnable"),F("zeroLineColor"),I("zeroLineWidth"),P("backgroundEnable"),F("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]}],te=[{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||O)&&this._text.update(this.bounds,this.labels,J,this.ticks,te):this._text=l(this.gl,this.bounds,this.labels,J,this.ticks,te),this._lines&&O&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function b(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var T=[new b,new b,new b];function h(R,z,I,P,L){for(var F=R.primalOffset,B=R.primalMinor,O=R.mirrorOffset,V=R.mirrorMinor,K=P[z],j=0;j<3;++j)if(z!==j){var G=F,q=O,J=B,te=V;K&1<<j&&(G=O,q=F,J=V,te=B),G[j]=I[0][j],q[j]=I[1][j],L[j]>0?(J[j]=-1,te[j]=0):(J[j]=0,te[j]=1)}}var _=[0,0,0],y={model:p,view:p,projection:p,_ortho:!1};S.isOpaque=function(){return!0},S.isTransparent=function(){return!1},S.drawTransparent=function(R){};var v=0,A=[0,0,0],d=[0,0,0],D=[0,0,0];S.draw=function(R){R=R||y;for(var Q=this.gl,z=R.model||p,I=R.view||p,P=R.projection||p,L=this.bounds,F=R._ortho||!1,B=f(z,I,P,L,F),O=B.cubeEdges,V=B.axis,K=I[12],j=I[13],G=I[14],q=I[15],J=F?2:1,te=J*this.pixelRatio*(P[3]*K+P[7]*j+P[11]*G+P[15]*q)/Q.drawingBufferHeight,Z=0;Z<3;++Z)this.lastCubeProps.cubeEdges[Z]=O[Z],this.lastCubeProps.axis[Z]=V[Z];for(var ie=T,Z=0;Z<3;++Z)h(T[Z],Z,this.bounds,O,V);for(var Q=this.gl,re=_,Z=0;Z<3;++Z)this.backgroundEnable[Z]?re[Z]=V[Z]:re[Z]=0;this._background.draw(z,I,P,L,re,this.backgroundColor),this._lines.bind(z,I,P,this);for(var Z=0;Z<3;++Z){var ue=[0,0,0];V[Z]>0?ue[Z]=L[1][Z]:ue[Z]=L[0][Z];for(var ee=0;ee<2;++ee){var ae=(Z+1+ee)%3,ce=(Z+1+(ee^1))%3;this.gridEnable[ae]&&this._lines.drawGrid(ae,ce,this.bounds,ue,this.gridColor[ae],this.gridWidth[ae]*this.pixelRatio)}for(var ee=0;ee<2;++ee){var ae=(Z+1+ee)%3,ce=(Z+1+(ee^1))%3;this.zeroEnable[ce]&&Math.min(L[0][ce],L[1][ce])<=0&&Math.max(L[0][ce],L[1][ce])>=0&&this._lines.drawZero(ae,ce,this.bounds,ue,this.zeroLineColor[ce],this.zeroLineWidth[ce]*this.pixelRatio)}}for(var Z=0;Z<3;++Z){this.lineEnable[Z]&&this._lines.drawAxisLine(Z,this.bounds,ie[Z].primalOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio),this.lineMirror[Z]&&this._lines.drawAxisLine(Z,this.bounds,ie[Z].mirrorOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio);for(var Te=m(A,ie[Z].primalMinor),ke=m(d,ie[Z].mirrorMinor),Se=this.lineTickLength,ee=0;ee<3;++ee){var ge=te/z[5*ee];Te[ee]*=Se[ee]*ge,ke[ee]*=Se[ee]*ge}this.lineTickEnable[Z]&&this._lines.drawAxisTicks(Z,ie[Z].primalOffset,Te,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio),this.lineTickMirror[Z]&&this._lines.drawAxisTicks(Z,ie[Z].mirrorOffset,ke,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio)}this._lines.unbind(),this._text.bind(z,I,P,this.pixelRatio);var Le,Ce=.5,le,Y;function $(be){Y=[0,0,0],Y[be]=1}function pe(be,ye,de){var _e=(be+1)%3,Ae=(be+2)%3,Pe=ye[_e],Fe=ye[Ae],Ye=de[_e],qe=de[Ae];if(Pe>0&&qe>0){$(_e);return}else if(Pe>0&&qe<0){$(_e);return}else if(Pe<0&&qe>0){$(_e);return}else if(Pe<0&&qe<0){$(_e);return}else if(Fe>0&&Ye>0){$(Ae);return}else if(Fe>0&&Ye<0){$(Ae);return}else if(Fe<0&&Ye>0){$(Ae);return}else if(Fe<0&&Ye<0){$(Ae);return}}for(var Z=0;Z<3;++Z){for(var oe=ie[Z].primalMinor,ve=ie[Z].mirrorMinor,he=m(D,ie[Z].primalOffset),ee=0;ee<3;++ee)this.lineTickEnable[Z]&&(he[ee]+=te*oe[ee]*Math.max(this.lineTickLength[ee],0)/z[5*ee]);var me=[0,0,0];if(me[Z]=1,this.tickEnable[Z]){this.tickAngle[Z]===-3600?(this.tickAngle[Z]=0,this.tickAlign[Z]="auto"):this.tickAlign[Z]=-1,le=1,Le=[this.tickAlign[Z],Ce,le],Le[0]==="auto"?Le[0]=v:Le[0]=parseInt(""+Le[0]),Y=[0,0,0],pe(Z,oe,ve);for(var ee=0;ee<3;++ee)he[ee]+=te*oe[ee]*this.tickPad[ee]/z[5*ee];this._text.drawTicks(Z,this.tickSize[Z],this.tickAngle[Z],he,this.tickColor[Z],me,Y,Le)}if(this.labelEnable[Z]){le=0,Y=[0,0,0],this.labels[Z].length>4&&($(Z),le=1),Le=[this.labelAlign[Z],Ce,le],Le[0]==="auto"?Le[0]=v:Le[0]=parseInt(""+Le[0]);for(var ee=0;ee<3;++ee)he[ee]+=te*oe[ee]*this.labelPad[ee]/z[5*ee];he[Z]+=.5*(L[0][Z]+L[1][Z]),this._text.drawLabel(Z,this.labelSize[Z],this.labelAngle[Z],he,this.labelColor[Z],[0,0,0],Y,Le)}}this._text.unbind()},S.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function E(R,z){var I=new k(R);return I.update(z),I}},5304(a,o,i){"use strict";a.exports=p;var l=i(2762),u=i(8116),s=i(1879).bg;function f(x,g,w,M){this.gl=x,this.buffer=g,this.vao=w,this.shader=M}var c=f.prototype;c.draw=function(x,g,w,M,m,k){for(var S=!1,b=0;b<3;++b)S=S||m[b];if(S){var T=this.gl;T.enable(T.POLYGON_OFFSET_FILL),T.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:x,view:g,projection:w,bounds:M,enable:m,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),T.disable(T.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function p(x){for(var g=[],w=[],M=0,m=0;m<3;++m)for(var k=(m+1)%3,S=(m+2)%3,b=[0,0,0],T=[0,0,0],h=-1;h<=1;h+=2){w.push(M,M+2,M+1,M+1,M+2,M+3),b[m]=h,T[m]=h;for(var _=-1;_<=1;_+=2){b[k]=_;for(var y=-1;y<=1;y+=2)b[S]=y,g.push(b[0],b[1],b[2],T[0],T[1],T[2]),M+=1}var v=k;k=S,S=v}var A=l(x,new Float32Array(g)),d=l(x,new Uint16Array(w),x.ELEMENT_ARRAY_BUFFER),D=u(x,[{buffer:A,type:x.FLOAT,size:3,offset:0,stride:24},{buffer:A,type:x.FLOAT,size:3,offset:12,stride:24}],d),E=s(x);return E.attributes.position.location=0,E.attributes.normal.location=1,new f(x,A,D,E)}},6429(a,o,i){"use strict";a.exports=h;var l=i(8828),u=i(6760),s=i(5202),f=i(3250),c=new Array(16),p=new Array(8),x=new Array(8),g=new Array(3),w=[0,0,0];(function(){for(var _=0;_<8;++_)p[_]=[1,1,1,1],x[_]=[1,1,1]})();function M(_,y,v){for(var A=0;A<4;++A){_[A]=v[12+A];for(var d=0;d<3;++d)_[A]+=y[d]*v[4*d+A]}}var m=[[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 k(_){for(var y=0;y<m.length;++y)if(_=s.positive(_,m[y]),_.length<3)return 0;for(var v=_[0],A=v[0]/v[3],d=v[1]/v[3],D=0,y=1;y+1<_.length;++y){var E=_[y],R=_[y+1],z=E[0]/E[3],I=E[1]/E[3],P=R[0]/R[3],L=R[1]/R[3],F=z-A,B=I-d,O=P-A,V=L-d;D+=Math.abs(F*V-B*O)}return D}var S=[1,1,1],b=[0,0,0],T={cubeEdges:S,axis:b};function h(_,y,v,A,d){u(c,y,_),u(c,v,c);for(var D=0,E=0;E<2;++E){g[2]=A[E][2];for(var R=0;R<2;++R){g[1]=A[R][1];for(var z=0;z<2;++z)g[0]=A[z][0],M(p[D],g,c),D+=1}}for(var I=-1,E=0;E<8;++E){for(var P=p[E][3],L=0;L<3;++L)x[E][L]=p[E][L]/P;d&&(x[E][2]*=-1),P<0&&(I<0||x[E][2]<x[I][2])&&(I=E)}if(I<0){I=0;for(var F=0;F<3;++F){for(var B=(F+2)%3,O=(F+1)%3,V=-1,K=-1,j=0;j<2;++j){var G=j<<F,q=G+(j<<B)+(1-j<<O),J=G+(1-j<<B)+(j<<O);f(x[G],x[q],x[J],w)<0||(j?V=1:K=1)}if(V<0||K<0){K>V&&(I|=1<<F);continue}for(var j=0;j<2;++j){var G=j<<F,q=G+(j<<B)+(1-j<<O),J=G+(1-j<<B)+(j<<O),te=k([p[G],p[q],p[J],p[G+(1<<B)+(1<<O)]]);j?V=te:K=te}if(K>V){I|=1<<F;continue}}}for(var Z=7^I,ie=-1,E=0;E<8;++E)E===I||E===Z||(ie<0||x[ie][1]>x[E][1])&&(ie=E);for(var Q=-1,E=0;E<3;++E){var re=ie^1<<E;if(!(re===I||re===Z)){Q<0&&(Q=re);var O=x[re];O[0]<x[Q][0]&&(Q=re)}}for(var ue=-1,E=0;E<3;++E){var re=ie^1<<E;if(!(re===I||re===Z||re===Q)){ue<0&&(ue=re);var O=x[re];O[0]>x[ue][0]&&(ue=re)}}var ee=S;ee[0]=ee[1]=ee[2]=0,ee[l.log2(Q^ie)]=ie&Q,ee[l.log2(ie^ue)]=ie&ue;var ae=ue^7;ae===I||ae===Z?(ae=Q^7,ee[l.log2(ue^ae)]=ae&ue):ee[l.log2(Q^ae)]=ae&Q;for(var ce=b,Te=I,F=0;F<3;++F)Te&1<<F?ce[F]=-1:ce[F]=1;return T}},501(a,o,i){"use strict";a.exports=S;var l=i(2762),u=i(8116),s=i(1879).n,f=[0,0,0],c=[0,0,0],p=[0,0,0],x=[0,0,0],g=[1,1];function w(b){return b[0]=b[1]=b[2]=0,b}function M(b,T){return b[0]=T[0],b[1]=T[1],b[2]=T[2],b}function m(b,T,h,_,y,v,A,d){this.gl=b,this.vertBuffer=T,this.vao=h,this.shader=_,this.tickCount=y,this.tickOffset=v,this.gridCount=A,this.gridOffset=d}var k=m.prototype;k.bind=function(b,T,h){this.shader.bind(),this.shader.uniforms.model=b,this.shader.uniforms.view=T,this.shader.uniforms.projection=h,g[0]=this.gl.drawingBufferWidth,g[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=g,this.vao.bind()},k.unbind=function(){this.vao.unbind()},k.drawAxisLine=function(b,T,h,_,y){var v=w(c);this.shader.uniforms.majorAxis=c,v[b]=T[1][b]-T[0][b],this.shader.uniforms.minorAxis=v;var A=M(x,h);A[b]+=T[0][b],this.shader.uniforms.offset=A,this.shader.uniforms.lineWidth=y,this.shader.uniforms.color=_;var d=w(p);d[(b+2)%3]=1,this.shader.uniforms.screenAxis=d,this.vao.draw(this.gl.TRIANGLES,6);var d=w(p);d[(b+1)%3]=1,this.shader.uniforms.screenAxis=d,this.vao.draw(this.gl.TRIANGLES,6)},k.drawAxisTicks=function(b,T,h,_,y){if(this.tickCount[b]){var v=w(f);v[b]=1,this.shader.uniforms.majorAxis=v,this.shader.uniforms.offset=T,this.shader.uniforms.minorAxis=h,this.shader.uniforms.color=_,this.shader.uniforms.lineWidth=y;var A=w(p);A[b]=1,this.shader.uniforms.screenAxis=A,this.vao.draw(this.gl.TRIANGLES,this.tickCount[b],this.tickOffset[b])}},k.drawGrid=function(b,T,h,_,y,v){if(this.gridCount[b]){var A=w(c);A[T]=h[1][T]-h[0][T],this.shader.uniforms.minorAxis=A;var d=M(x,_);d[T]+=h[0][T],this.shader.uniforms.offset=d;var D=w(f);D[b]=1,this.shader.uniforms.majorAxis=D;var E=w(p);E[b]=1,this.shader.uniforms.screenAxis=E,this.shader.uniforms.lineWidth=v,this.shader.uniforms.color=y,this.vao.draw(this.gl.TRIANGLES,this.gridCount[b],this.gridOffset[b])}},k.drawZero=function(b,T,h,_,y,v){var A=w(c);this.shader.uniforms.majorAxis=A,A[b]=h[1][b]-h[0][b],this.shader.uniforms.minorAxis=A;var d=M(x,_);d[b]+=h[0][b],this.shader.uniforms.offset=d;var D=w(p);D[T]=1,this.shader.uniforms.screenAxis=D,this.shader.uniforms.lineWidth=v,this.shader.uniforms.color=y,this.vao.draw(this.gl.TRIANGLES,6)},k.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()};function S(b,T,h){var _=[],y=[0,0,0],v=[0,0,0],A=[0,0,0],d=[0,0,0];_.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var D=0;D<3;++D){for(var z=_.length/3|0,E=0;E<h[D].length;++E){var R=+h[D][E].x;_.push(R,0,1,R,1,1,R,0,-1,R,0,-1,R,1,1,R,1,-1)}var P=_.length/3|0;y[D]=z,v[D]=P-z;for(var z=_.length/3|0,I=0;I<h[D].length;++I){var R=+h[D][I].x;_.push(R,0,1,R,1,1,R,0,-1,R,0,-1,R,1,1,R,1,-1)}var P=_.length/3|0;A[D]=z,d[D]=P-z}var L=l(b,new Float32Array(_)),F=u(b,[{buffer:L,type:b.FLOAT,size:3,stride:0,offset:0}]),B=s(b);return B.attributes.position.location=0,new m(b,L,F,B,v,y,d,A)}},1879(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`precision highp float;
#define GLSLIFY 1

attribute vec3 position;

uniform mat4 model, view, projection;
uniform vec3 offset, majorAxis, minorAxis, screenAxis;
uniform float lineWidth;
uniform vec2 screenShape;

vec3 project(vec3 p) {
  vec4 pp = projection * (view * (model * vec4(p, 1.0)));
  return pp.xyz / max(pp.w, 0.0001);
}

void main() {
  vec3 major = position.x * majorAxis;
  vec3 minor = position.y * minorAxis;

  vec3 vPosition = major + minor + offset;
  vec3 pPosition = project(vPosition);
  vec3 offset = project(vPosition + screenAxis * position.z);

  vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;

  gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);
}
`]),f=l([`precision highp float;
#define GLSLIFY 1

uniform vec4 color;
void main() {
  gl_FragColor = color;
}`]);o.n=function(w){return u(w,s,f,null,[{name:"position",type:"vec3"}])};var c=l([`precision highp float;
#define GLSLIFY 1

attribute vec3 position;

uniform mat4 model, view, projection;
uniform vec3 offset, axis, alignDir, alignOpt;
uniform float scale, angle, pixelScale;
uniform vec2 resolution;

vec3 project(vec3 p) {
  vec4 pp = projection * (view * (model * vec4(p, 1.0)));
  return pp.xyz / max(pp.w, 0.0001);
}

float computeViewAngle(vec3 a, vec3 b) {
  vec3 A = project(a);
  vec3 B = project(b);

  return atan(
    (B.y - A.y) * resolution.y,
    (B.x - A.x) * resolution.x
  );
}

const float PI = 3.141592;
const float TWO_PI = 2.0 * PI;
const float HALF_PI = 0.5 * PI;
const float ONE_AND_HALF_PI = 1.5 * PI;

int option = int(floor(alignOpt.x + 0.001));
float hv_ratio =       alignOpt.y;
bool enableAlign =    (alignOpt.z != 0.0);

float mod_angle(float a) {
  return mod(a, PI);
}

float positive_angle(float a) {
  return mod_angle((a < 0.0) ?
    a + TWO_PI :
    a
  );
}

float look_upwards(float a) {
  float b = positive_angle(a);
  return ((b > 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);
}
`]),p=l([`precision highp float;
#define GLSLIFY 1

uniform vec4 color;
void main() {
  gl_FragColor = color;
}`]);o.Q=function(w){return u(w,c,p,null,[{name:"position",type:"vec3"}])};var x=l([`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);
}
`]),g=l([`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];
}`]);o.bg=function(w){return u(w,x,g,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935(a,o,i){"use strict";a.exports=k;var l=i(2762),u=i(8116),s=i(4359),f=i(1879).Q,c=window||process.global||{},p=c.__TEXT_CACHE||{};c.__TEXT_CACHE={};var x=3;function g(S,b,T,h){this.gl=S,this.shader=b,this.buffer=T,this.vao=h,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var w=g.prototype,M=[0,0];w.bind=function(S,b,T,h){this.vao.bind(),this.shader.bind();var _=this.shader.uniforms;_.model=S,_.view=b,_.projection=T,_.pixelScale=h,M[0]=this.gl.drawingBufferWidth,M[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=M},w.unbind=function(){this.vao.unbind()},w.update=function(S,b,T,h,_){var y=[];function v(F,B,O,V,K,j){var G=[O.style,O.weight,O.variant,O.family].join("_"),q=p[G];q||(q=p[G]={});var J=q[B];J||(J=q[B]=m(B,{triangles:!0,font:O.family,fontStyle:O.style,fontWeight:O.weight,fontVariant:O.variant,textAlign:"center",textBaseline:"middle",lineSpacing:K,styletags:j}));for(var te=(V||12)/12,Z=J.positions,ie=J.cells,Q=0,re=ie.length;Q<re;++Q)for(var ue=ie[Q],ee=2;ee>=0;--ee){var ae=Z[ue[ee]];y.push(te*ae[0],-te*ae[1],F)}}for(var A=[0,0,0],d=[0,0,0],D=[0,0,0],E=[0,0,0],R=1.25,z={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},I=0;I<3;++I){D[I]=y.length/x|0,v(.5*(S[0][I]+S[1][I]),b[I],T[I],12,R,z),E[I]=(y.length/x|0)-D[I],A[I]=y.length/x|0;for(var P=0;P<h[I].length;++P)if(h[I][P].text){var L={family:h[I][P].font||_[I].family,style:_[I].fontStyle||_[I].style,weight:_[I].fontWeight||_[I].weight,variant:_[I].fontVariant||_[I].variant};v(h[I][P].x,h[I][P].text,L,h[I][P].fontSize||12,R,z)}d[I]=(y.length/x|0)-A[I]}this.buffer.update(y),this.tickOffset=A,this.tickCount=d,this.labelOffset=D,this.labelCount=E},w.drawTicks=function(S,b,T,h,_,y,v,A){this.tickCount[S]&&(this.shader.uniforms.axis=y,this.shader.uniforms.color=_,this.shader.uniforms.angle=T,this.shader.uniforms.scale=b,this.shader.uniforms.offset=h,this.shader.uniforms.alignDir=v,this.shader.uniforms.alignOpt=A,this.vao.draw(this.gl.TRIANGLES,this.tickCount[S],this.tickOffset[S]))},w.drawLabel=function(S,b,T,h,_,y,v,A){this.labelCount[S]&&(this.shader.uniforms.axis=y,this.shader.uniforms.color=_,this.shader.uniforms.angle=T,this.shader.uniforms.scale=b,this.shader.uniforms.offset=h,this.shader.uniforms.alignDir=v,this.shader.uniforms.alignOpt=A,this.vao.draw(this.gl.TRIANGLES,this.labelCount[S],this.labelOffset[S]))},w.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()};function m(S,b){try{return s(S,b)}catch(T){return console.warn('error vectorizing text:"'+S+'" error:',T),{cells:[],positions:[]}}}function k(S,b,T,h,_,y){var v=l(S),A=u(S,[{buffer:v,size:3}]),d=f(S);d.attributes.position.location=0;var D=new g(S,d,v,A);return D.update(b,T,h,_,y),D}},6444(a,o){"use strict";o.create=l,o.equal=u;function i(s,f){var c=s+"",p=c.indexOf("."),x=0;p>=0&&(x=c.length-p-1);var g=Math.pow(10,x),w=Math.round(s*f*g),M=w+"";if(M.indexOf("e")>=0)return M;var m=w/g,k=w%g;w<0?(m=-Math.ceil(m)|0,k=-k|0):(m=Math.floor(m)|0,k=k|0);var S=""+m;if(w<0&&(S="-"+S),x){for(var b=""+k;b.length<x;)b="0"+b;return S+"."+b}else return S}function l(s,f){for(var c=[],p=0;p<3;++p){for(var x=[],g=.5*(s[0][p]+s[1][p]),w=0;w*f[p]<=s[1][p];++w)x.push({x:w*f[p],text:i(f[p],w)});for(var w=-1;w*f[p]>=s[0][p];--w)x.push({x:w*f[p],text:i(f[p],w)});c.push(x)}return c}function u(s,f){for(var c=0;c<3;++c){if(s[c].length!==f[c].length)return!1;for(var p=0;p<s[c].length;++p){var x=s[c][p],g=f[c][p];if(x.x!==g.x||x.text!==g.text||x.font!==g.font||x.fontColor!==g.fontColor||x.fontSize!==g.fontSize||x.dx!==g.dx||x.dy!==g.dy)return!1}}return!0}},5445(a,o,i){"use strict";a.exports=T;var l=i(5033),u=i(5202),s=i(6429),f=i(6760),c=i(5665),p=i(5352),x=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),g=new Float32Array(16);function w(h,_,y){this.lo=h,this.hi=_,this.pixelsPerDataUnit=y}var M=[0,0,0,1],m=[0,0,0,1];function k(h,_,y,v,A){for(var d=0;d<3;++d){for(var D=M,E=m,R=0;R<3;++R)E[R]=D[R]=y[R];E[3]=D[3]=1,E[d]+=1,p(E,E,_),E[3]<0&&(h[d]=1/0),D[d]-=1,p(D,D,_),D[3]<0&&(h[d]=1/0);var z=(D[0]/D[3]-E[0]/E[3])*v,I=(D[1]/D[3]-E[1]/E[3])*A;h[d]=.25*Math.sqrt(z*z+I*I)}return h}var S=[new w(1/0,-1/0,1/0),new w(1/0,-1/0,1/0),new w(1/0,-1/0,1/0)],b=[0,0,0];function T(h,_,y,v,I){var d=_.model||x,D=_.view||x,E=_.projection||x,R=_._ortho||!1,z=h.bounds,I=I||s(d,D,E,z,R),P=I.axis;f(g,D,d),f(g,E,g);for(var L=S,F=0;F<3;++F)L[F].lo=1/0,L[F].hi=-1/0,L[F].pixelsPerDataUnit=1/0;var B=l(c(g,g));c(g,g);for(var O=0;O<3;++O){var V=(O+1)%3,K=(O+2)%3,j=b;e:for(var F=0;F<2;++F){var G=[];if(P[O]<0!=!!F){j[O]=z[F][O];for(var q=0;q<2;++q){j[V]=z[q^F][V];for(var J=0;J<2;++J)j[K]=z[J^q^F][K],G.push(j.slice())}for(var te=R?5:4,q=te;q===te;++q){if(G.length===0)continue e;G=u.positive(G,B[q])}for(var q=0;q<G.length;++q)for(var K=G[q],Z=k(b,g,K,y,v),J=0;J<3;++J)L[J].lo=Math.min(L[J].lo,K[J]),L[J].hi=Math.max(L[J].hi,K[J]),J!==O&&(L[J].pixelsPerDataUnit=Math.min(L[J].pixelsPerDataUnit,Math.abs(Z[J])))}}}return L}},2762(a,o,i){"use strict";var l=i(1888),u=i(5298),s=i(9618),f=["uint8","uint8_clamped","uint16","uint32","int8","int16","int32","float32"];function c(m,k,S,b,T){this.gl=m,this.type=k,this.handle=S,this.length=b,this.usage=T}var p=c.prototype;p.bind=function(){this.gl.bindBuffer(this.type,this.handle)},p.unbind=function(){this.gl.bindBuffer(this.type,null)},p.dispose=function(){this.gl.deleteBuffer(this.handle)};function x(m,k,S,b,T,h){var _=T.length*T.BYTES_PER_ELEMENT;if(h<0)return m.bufferData(k,T,b),_;if(_+h>S)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return m.bufferSubData(k,h,T),S}function g(m,k){for(var S=l.malloc(m.length,k),b=m.length,T=0;T<b;++T)S[T]=m[T];return S}function w(m,k){for(var S=1,b=k.length-1;b>=0;--b){if(k[b]!==S)return!1;S*=m[b]}return!0}p.update=function(m,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof m=="object"&&typeof m.shape!="undefined"){var S=m.dtype;if(f.indexOf(S)<0&&(S="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var b=gl.getExtension("OES_element_index_uint");b&&S!=="uint16"?S="uint32":S="uint16"}if(S===m.dtype&&w(m.shape,m.stride))m.offset===0&&m.data.length===m.shape[0]?this.length=x(this.gl,this.type,this.length,this.usage,m.data,k):this.length=x(this.gl,this.type,this.length,this.usage,m.data.subarray(m.offset,m.shape[0]),k);else{var T=l.malloc(m.size,S),h=s(T,m.shape);u.assign(h,m),k<0?this.length=x(this.gl,this.type,this.length,this.usage,T,k):this.length=x(this.gl,this.type,this.length,this.usage,T.subarray(0,m.size),k),l.free(T)}}else if(Array.isArray(m)){var _;this.type===this.gl.ELEMENT_ARRAY_BUFFER?_=g(m,"uint16"):_=g(m,"float32"),k<0?this.length=x(this.gl,this.type,this.length,this.usage,_,k):this.length=x(this.gl,this.type,this.length,this.usage,_.subarray(0,m.length),k),l.free(_)}else if(typeof m=="object"&&typeof m.length=="number")this.length=x(this.gl,this.type,this.length,this.usage,m,k);else if(typeof m=="number"||m===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");m=m|0,m<=0&&(m=1),this.gl.bufferData(this.type,m|0,this.usage),this.length=m}else throw new Error("gl-buffer: Invalid data type")};function M(m,k,S,b){if(S=S||m.ARRAY_BUFFER,b=b||m.DYNAMIC_DRAW,S!==m.ARRAY_BUFFER&&S!==m.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(b!==m.DYNAMIC_DRAW&&b!==m.STATIC_DRAW&&b!==m.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 T=m.createBuffer(),h=new c(m,S,T,0,b);return h.update(k),h}a.exports=M},6405(a,o,i){"use strict";var l=i(2931);a.exports=function(s,f){var c=s.positions,p=s.vectors,x={positions:[],vertexIntensity:[],vertexIntensityBounds:s.vertexIntensityBounds,vectors:[],cells:[],coneOffset:s.coneOffset,colormap:s.colormap};if(s.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),x;for(var g=0,w=1/0,M=-1/0,m=1/0,k=-1/0,S=1/0,b=-1/0,T=null,h=null,_=[],y=1/0,v=!1,A=s.coneSizemode==="raw",d=0;d<c.length;d++){var D=c[d];w=Math.min(D[0],w),M=Math.max(D[0],M),m=Math.min(D[1],m),k=Math.max(D[1],k),S=Math.min(D[2],S),b=Math.max(D[2],b);var E=p[d];if(l.length(E)>g&&(g=l.length(E)),d&&!A){var R=2*l.distance(T,D)/(l.length(h)+l.length(E));R?(y=Math.min(y,R),v=!1):v=!0}v||(T=D,h=E),_.push(E)}var z=[w,m,S],I=[M,k,b];f&&(f[0]=z,f[1]=I),g===0&&(g=1);var P=1/g;isFinite(y)||(y=1),x.vectorScale=y;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*P),x.coneScale=L;for(var d=0,F=0;d<c.length;d++)for(var D=c[d],B=D[0],O=D[1],V=D[2],K=_[d],j=l.length(K)*P,G=0,q=8;G<q;G++){x.positions.push([B,O,V,F++]),x.positions.push([B,O,V,F++]),x.positions.push([B,O,V,F++]),x.positions.push([B,O,V,F++]),x.positions.push([B,O,V,F++]),x.positions.push([B,O,V,F++]),x.vectors.push(K),x.vectors.push(K),x.vectors.push(K),x.vectors.push(K),x.vectors.push(K),x.vectors.push(K),x.vertexIntensity.push(j,j,j),x.vertexIntensity.push(j,j,j);var J=x.positions.length;x.cells.push([J-6,J-5,J-4],[J-3,J-2,J-1])}return x};var u=i(614);a.exports.createMesh=i(9060),a.exports.createConeMesh=function(s,f){return a.exports.createMesh(s,f,{shaders:u,traceType:"cone"})}},9060(a,o,i){"use strict";var l=i(9405),u=i(2762),s=i(8116),f=i(7766),c=i(6760),p=i(7608),x=i(9618),g=i(6729),w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function M(_,y,v,A,d,D,E,R,z,I,P){this.gl=_,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=y,this.dirty=!0,this.triShader=v,this.pickShader=A,this.trianglePositions=d,this.triangleVectors=D,this.triangleColors=R,this.triangleUVs=z,this.triangleIds=E,this.triangleVAO=I,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=P,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var m=M.prototype;m.isOpaque=function(){return this.opacity>=1},m.isTransparent=function(){return this.opacity<1},m.pickSlots=1,m.setPickBase=function(_){this.pickId=_};function k(_){for(var y=g({colormap:_,nshades:256,format:"rgba"}),v=new Uint8Array(256*4),A=0;A<256;++A){for(var d=y[A],D=0;D<3;++D)v[4*A+D]=d[D];v[4*A+3]=d[3]*255}return x(v,[256,256,4],[4,0,1])}function S(_){for(var y=_.length,v=new Array(y),A=0;A<y;++A)v[A]=_[A][2];return v}m.update=function(_){_=_||{};var y=this.gl;this.dirty=!0,"lightPosition"in _&&(this.lightPosition=_.lightPosition),"opacity"in _&&(this.opacity=_.opacity),"ambient"in _&&(this.ambientLight=_.ambient),"diffuse"in _&&(this.diffuseLight=_.diffuse),"specular"in _&&(this.specularLight=_.specular),"roughness"in _&&(this.roughness=_.roughness),"fresnel"in _&&(this.fresnel=_.fresnel),_.tubeScale!==void 0&&(this.tubeScale=_.tubeScale),_.vectorScale!==void 0&&(this.vectorScale=_.vectorScale),_.coneScale!==void 0&&(this.coneScale=_.coneScale),_.coneOffset!==void 0&&(this.coneOffset=_.coneOffset),_.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=y.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=y.LINEAR,this.texture.setPixels(k(_.colormap)),this.texture.generateMipmap());var v=_.cells,A=_.positions,d=_.vectors;if(!(!A||!v||!d)){var D=[],E=[],R=[],z=[],I=[];this.cells=v,this.positions=A,this.vectors=d;var P=_.meshColor||[1,1,1,1],L=_.vertexIntensity,F=1/0,B=-1/0;if(L)if(_.vertexIntensityBounds)F=+_.vertexIntensityBounds[0],B=+_.vertexIntensityBounds[1];else for(var O=0;O<L.length;++O){var V=L[O];F=Math.min(F,V),B=Math.max(B,V)}else for(var O=0;O<A.length;++O){var V=A[O][2];F=Math.min(F,V),B=Math.max(B,V)}L?this.intensity=L:this.intensity=S(A),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(var O=0;O<A.length;++O)for(var K=A[O],j=0;j<3;++j)isNaN(K[j])||!isFinite(K[j])||(this.bounds[0][j]=Math.min(this.bounds[0][j],K[j]),this.bounds[1][j]=Math.max(this.bounds[1][j],K[j]));var G=0;e:for(var O=0;O<v.length;++O){var q=v[O];switch(q.length){case 3:for(var j=0;j<3;++j)for(var J=q[j],K=A[J],te=0;te<3;++te)if(isNaN(K[te])||!isFinite(K[te]))continue e;for(var j=0;j<3;++j){var J=q[2-j],K=A[J];D.push(K[0],K[1],K[2],K[3]);var Z=d[J];E.push(Z[0],Z[1],Z[2],Z[3]||0);var ie=P;ie.length===3?R.push(ie[0],ie[1],ie[2],1):R.push(ie[0],ie[1],ie[2],ie[3]);var Q;L?Q=[(L[J]-F)/(B-F),0]:Q=[(K[2]-F)/(B-F),0],z.push(Q[0],Q[1]),I.push(O)}G+=1;break;default:break}}this.triangleCount=G,this.trianglePositions.update(D),this.triangleVectors.update(E),this.triangleColors.update(R),this.triangleUVs.update(z),this.triangleIds.update(new Uint32Array(I))}},m.drawTransparent=m.draw=function(_){_=_||{};for(var y=this.gl,v=_.model||w,A=_.view||w,d=_.projection||w,D=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)D[0][E]=Math.max(D[0][E],this.clipBounds[0][E]),D[1][E]=Math.min(D[1][E],this.clipBounds[1][E]);var R={model:v,view:A,projection:d,inverseModel:w.slice(),clipBounds:D,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};R.inverseModel=p(R.inverseModel,R.model),y.disable(y.CULL_FACE),this.texture.bind(0);var z=new Array(16);c(z,R.view,R.model),c(z,R.projection,z),p(z,z);for(var E=0;E<3;++E)R.eyePosition[E]=z[12+E]/z[15];for(var I=z[15],E=0;E<3;++E)I+=this.lightPosition[E]*z[4*E+3];for(var E=0;E<3;++E){for(var P=z[12+E],L=0;L<3;++L)P+=z[4*L+E]*this.lightPosition[L];R.lightPosition[E]=P/I}if(this.triangleCount>0){var F=this.triShader;F.bind(),F.uniforms=R,this.triangleVAO.bind(),y.drawArrays(y.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},m.drawPick=function(_){_=_||{};for(var y=this.gl,v=_.model||w,A=_.view||w,d=_.projection||w,D=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)D[0][E]=Math.max(D[0][E],this.clipBounds[0][E]),D[1][E]=Math.min(D[1][E],this.clipBounds[1][E]);this._model=[].slice.call(v),this._view=[].slice.call(A),this._projection=[].slice.call(d),this._resolution=[y.drawingBufferWidth,y.drawingBufferHeight];var R={model:v,view:A,projection:d,clipBounds:D,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},z=this.pickShader;z.bind(),z.uniforms=R,this.triangleCount>0&&(this.triangleVAO.bind(),y.drawArrays(y.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},m.pick=function(_){if(!_||_.id!==this.pickId)return null;var y=_.value[0]+256*_.value[1]+65536*_.value[2],v=this.cells[y],A=this.positions[v[1]].slice(0,3),d={position:A,dataCoordinate:A,index:Math.floor(v[1]/48)};return this.traceType==="cone"?d.index=Math.floor(v[1]/48):this.traceType==="streamtube"&&(d.intensity=this.intensity[v[1]],d.velocity=this.vectors[v[1]].slice(0,3),d.divergence=this.vectors[v[1]][3],d.index=y),d},m.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 b(_,y){var v=l(_,y.meshShader.vertex,y.meshShader.fragment,null,y.meshShader.attributes);return v.attributes.position.location=0,v.attributes.color.location=2,v.attributes.uv.location=3,v.attributes.vector.location=4,v}function T(_,y){var v=l(_,y.pickShader.vertex,y.pickShader.fragment,null,y.pickShader.attributes);return v.attributes.position.location=0,v.attributes.id.location=1,v.attributes.vector.location=4,v}function h(_,y,v){var A=v.shaders;arguments.length===1&&(y=_,_=y.gl);var d=b(_,A),D=T(_,A),E=f(_,x(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=_.LINEAR_MIPMAP_LINEAR,E.magFilter=_.LINEAR;var R=u(_),z=u(_),I=u(_),P=u(_),L=u(_),F=s(_,[{buffer:R,type:_.FLOAT,size:4},{buffer:L,type:_.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:I,type:_.FLOAT,size:4},{buffer:P,type:_.FLOAT,size:2},{buffer:z,type:_.FLOAT,size:4}]),B=new M(_,E,d,D,R,z,L,I,P,F,v.traceType||"cone");return B.update(y),B}a.exports=h},614(a,o,i){var l=i(3236),u=l([`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;
}
`]),s=l([`#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;
}
`]),f=l([`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;
}
`]),c=l([`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);
}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},o.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737(a){a.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(a,o,i){var l=i(737);a.exports=function(s){return l[s]}},9165(a,o,i){"use strict";a.exports=M;var l=i(2762),u=i(8116),s=i(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(m,k,S,b){this.gl=m,this.shader=b,this.buffer=k,this.vao=S,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 p=c.prototype;p.isOpaque=function(){return!this.hasAlpha},p.isTransparent=function(){return this.hasAlpha},p.drawTransparent=p.draw=function(m){var k=this.gl,S=this.shader.uniforms;this.shader.bind();var b=S.view=m.view||f,T=S.projection=m.projection||f;S.model=m.model||f,S.clipBounds=this.clipBounds,S.opacity=this.opacity;var h=b[12],_=b[13],y=b[14],v=b[15],A=m._ortho||!1,d=A?2:1,D=d*this.pixelRatio*(T[3]*h+T[7]*_+T[11]*y+T[15]*v)/k.drawingBufferHeight;this.vao.bind();for(var E=0;E<3;++E)k.lineWidth(this.lineWidth[E]*this.pixelRatio),S.capSize=this.capSize[E]*D,this.lineCount[E]&&k.drawArrays(k.LINES,this.lineOffset[E],this.lineCount[E]);this.vao.unbind()};function x(m,k){for(var S=0;S<3;++S)m[0][S]=Math.min(m[0][S],k[S]),m[1][S]=Math.max(m[1][S],k[S])}var g=(function(){for(var m=new Array(3),k=0;k<3;++k){for(var S=[],b=1;b<=2;++b)for(var T=-1;T<=1;T+=2){var h=(b+k)%3,_=[0,0,0];_[h]=T,S.push(_)}m[k]=S}return m})();function w(m,k,S,b){for(var T=g[b],h=0;h<T.length;++h){var _=T[h];m.push(k[0],k[1],k[2],S[0],S[1],S[2],S[3],_[0],_[1],_[2])}return T.length}p.update=function(m){m=m||{},"lineWidth"in m&&(this.lineWidth=m.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),"capSize"in m&&(this.capSize=m.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,"opacity"in m&&(this.opacity=+m.opacity,this.opacity<1&&(this.hasAlpha=!0));var k=m.color||[[0,0,0],[0,0,0],[0,0,0]],S=m.position,b=m.error;if(Array.isArray(k[0])||(k=[k,k,k]),S&&b){var T=[],h=S.length,_=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var y=0;y<3;++y){this.lineOffset[y]=_;e:for(var v=0;v<h;++v){for(var A=S[v],d=0;d<3;++d)if(isNaN(A[d])||!isFinite(A[d]))continue e;var D=b[v],E=k[y];if(Array.isArray(E[0])&&(E=k[v]),E.length===3?E=[E[0],E[1],E[2],1]:E.length===4&&(E=[E[0],E[1],E[2],E[3]],!this.hasAlpha&&E[3]<1&&(this.hasAlpha=!0)),!(isNaN(D[0][y])||isNaN(D[1][y]))){if(D[0][y]<0){var R=A.slice();R[y]+=D[0][y],T.push(A[0],A[1],A[2],E[0],E[1],E[2],E[3],0,0,0,R[0],R[1],R[2],E[0],E[1],E[2],E[3],0,0,0),x(this.bounds,R),_+=2+w(T,R,E,y)}if(D[1][y]>0){var R=A.slice();R[y]+=D[1][y],T.push(A[0],A[1],A[2],E[0],E[1],E[2],E[3],0,0,0,R[0],R[1],R[2],E[0],E[1],E[2],E[3],0,0,0),x(this.bounds,R),_+=2+w(T,R,E,y)}}}this.lineCount[y]=_-this.lineOffset[y]}this.buffer.update(T)}},p.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function M(m){var k=m.gl,S=l(k),b=u(k,[{buffer:S,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:S,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:S,type:k.FLOAT,size:3,offset:28,stride:40}]),T=s(k);T.attributes.position.location=0,T.attributes.color.location=1,T.attributes.offset.location=2;var h=new c(k,S,b,T);return h.update(m),h}},3436(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`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;
}`]),f=l([`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;
}`]);a.exports=function(c){return u(c,s,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260(a,o,i){"use strict";var l=i(7766);a.exports=_;var u=null,s,f,c,p;function x(y){var v=y.getParameter(y.FRAMEBUFFER_BINDING),A=y.getParameter(y.RENDERBUFFER_BINDING),d=y.getParameter(y.TEXTURE_BINDING_2D);return[v,A,d]}function g(y,v){y.bindFramebuffer(y.FRAMEBUFFER,v[0]),y.bindRenderbuffer(y.RENDERBUFFER,v[1]),y.bindTexture(y.TEXTURE_2D,v[2])}function w(y,v){var A=y.getParameter(v.MAX_COLOR_ATTACHMENTS_WEBGL);u=new Array(A+1);for(var d=0;d<=A;++d){for(var D=new Array(A),E=0;E<d;++E)D[E]=y.COLOR_ATTACHMENT0+E;for(var E=d;E<A;++E)D[E]=y.NONE;u[d]=D}}function M(y){switch(y){case s:throw new Error("gl-fbo: Framebuffer unsupported");case f:throw new Error("gl-fbo: Framebuffer incomplete attachment");case c:throw new Error("gl-fbo: Framebuffer incomplete dimensions");case p:throw new Error("gl-fbo: Framebuffer incomplete missing attachment");default:throw new Error("gl-fbo: Framebuffer failed for unspecified reason")}}function m(y,v,A,d,D,E){if(!d)return null;var R=l(y,v,A,D,d);return R.magFilter=y.NEAREST,R.minFilter=y.NEAREST,R.mipSamples=1,R.bind(),y.framebufferTexture2D(y.FRAMEBUFFER,E,y.TEXTURE_2D,R.handle,0),R}function k(y,v,A,d,D){var E=y.createRenderbuffer();return y.bindRenderbuffer(y.RENDERBUFFER,E),y.renderbufferStorage(y.RENDERBUFFER,d,v,A),y.framebufferRenderbuffer(y.FRAMEBUFFER,D,y.RENDERBUFFER,E),E}function S(y){var v=x(y.gl),A=y.gl,d=y.handle=A.createFramebuffer(),D=y._shape[0],E=y._shape[1],R=y.color.length,z=y._ext,I=y._useStencil,P=y._useDepth,L=y._colorType;A.bindFramebuffer(A.FRAMEBUFFER,d);for(var F=0;F<R;++F)y.color[F]=m(A,D,E,L,A.RGBA,A.COLOR_ATTACHMENT0+F);R===0?(y._color_rb=k(A,D,E,A.RGBA4,A.COLOR_ATTACHMENT0),z&&z.drawBuffersWEBGL(u[0])):R>1&&z.drawBuffersWEBGL(u[R]);var B=A.getExtension("WEBGL_depth_texture");B?I?y.depth=m(A,D,E,B.UNSIGNED_INT_24_8_WEBGL,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):P&&(y.depth=m(A,D,E,A.UNSIGNED_SHORT,A.DEPTH_COMPONENT,A.DEPTH_ATTACHMENT)):P&&I?y._depth_rb=k(A,D,E,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):P?y._depth_rb=k(A,D,E,A.DEPTH_COMPONENT16,A.DEPTH_ATTACHMENT):I&&(y._depth_rb=k(A,D,E,A.STENCIL_INDEX,A.STENCIL_ATTACHMENT));var O=A.checkFramebufferStatus(A.FRAMEBUFFER);if(O!==A.FRAMEBUFFER_COMPLETE){y._destroyed=!0,A.bindFramebuffer(A.FRAMEBUFFER,null),A.deleteFramebuffer(y.handle),y.handle=null,y.depth&&(y.depth.dispose(),y.depth=null),y._depth_rb&&(A.deleteRenderbuffer(y._depth_rb),y._depth_rb=null);for(var F=0;F<y.color.length;++F)y.color[F].dispose(),y.color[F]=null;y._color_rb&&(A.deleteRenderbuffer(y._color_rb),y._color_rb=null),g(A,v),M(O)}g(A,v)}function b(y,v,A,d,D,E,R,z){this.gl=y,this._shape=[v|0,A|0],this._destroyed=!1,this._ext=z,this.color=new Array(D);for(var I=0;I<D;++I)this.color[I]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=d,this._useDepth=E,this._useStencil=R;var P=this,L=[v|0,A|0];Object.defineProperties(L,{0:{get:function(){return P._shape[0]},set:function(F){return P.width=F}},1:{get:function(){return P._shape[1]},set:function(F){return P.height=F}}}),this._shapeVector=L,S(this)}var T=b.prototype;function h(y,v,A){if(y._destroyed)throw new Error("gl-fbo: Can't resize destroyed FBO");if(!(y._shape[0]===v&&y._shape[1]===A)){var d=y.gl,D=d.getParameter(d.MAX_RENDERBUFFER_SIZE);if(v<0||v>D||A<0||A>D)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");y._shape[0]=v,y._shape[1]=A;for(var E=x(d),R=0;R<y.color.length;++R)y.color[R].shape=y._shape;y._color_rb&&(d.bindRenderbuffer(d.RENDERBUFFER,y._color_rb),d.renderbufferStorage(d.RENDERBUFFER,d.RGBA4,y._shape[0],y._shape[1])),y.depth&&(y.depth.shape=y._shape),y._depth_rb&&(d.bindRenderbuffer(d.RENDERBUFFER,y._depth_rb),y._useDepth&&y._useStencil?d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_STENCIL,y._shape[0],y._shape[1]):y._useDepth?d.renderbufferStorage(d.RENDERBUFFER,d.DEPTH_COMPONENT16,y._shape[0],y._shape[1]):y._useStencil&&d.renderbufferStorage(d.RENDERBUFFER,d.STENCIL_INDEX,y._shape[0],y._shape[1])),d.bindFramebuffer(d.FRAMEBUFFER,y.handle);var z=d.checkFramebufferStatus(d.FRAMEBUFFER);z!==d.FRAMEBUFFER_COMPLETE&&(y.dispose(),g(d,E),M(z)),g(d,E)}}Object.defineProperties(T,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(y){if(Array.isArray(y)||(y=[y|0,y|0]),y.length!==2)throw new Error("gl-fbo: Shape vector must be length 2");var v=y[0]|0,A=y[1]|0;return h(this,v,A),[v,A]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(y){return y=y|0,h(this,y,this._shape[1]),y},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(y){return y=y|0,h(this,this._shape[0],y),y},enumerable:!1}}),T.bind=function(){if(!this._destroyed){var y=this.gl;y.bindFramebuffer(y.FRAMEBUFFER,this.handle),y.viewport(0,0,this._shape[0],this._shape[1])}},T.dispose=function(){if(!this._destroyed){this._destroyed=!0;var y=this.gl;y.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(y.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var v=0;v<this.color.length;++v)this.color[v].dispose(),this.color[v]=null;this._color_rb&&(y.deleteRenderbuffer(this._color_rb),this._color_rb=null)}};function _(y,v,A,d){s||(s=y.FRAMEBUFFER_UNSUPPORTED,f=y.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,c=y.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,p=y.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var D=y.getExtension("WEBGL_draw_buffers");if(!u&&D&&w(y,D),Array.isArray(v)&&(d=A,A=v[1]|0,v=v[0]|0),typeof v!="number")throw new Error("gl-fbo: Missing shape parameter");var E=y.getParameter(y.MAX_RENDERBUFFER_SIZE);if(v<0||v>E||A<0||A>E)throw new Error("gl-fbo: Parameters are too large for FBO");d=d||{};var R=1;if("color"in d){if(R=Math.max(d.color|0,0),R<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(R>1)if(D){if(R>y.getParameter(D.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+R+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var z=y.UNSIGNED_BYTE,I=y.getExtension("OES_texture_float");if(d.float&&R>0){if(!I)throw new Error("gl-fbo: Context does not support floating point textures");z=y.FLOAT}else d.preferFloat&&R>0&&I&&(z=y.FLOAT);var P=!0;"depth"in d&&(P=!!d.depth);var L=!1;return"stencil"in d&&(L=!!d.stencil),new b(y,v,A,z,R,P,L,D)}},2992(a,o,i){var l=i(3387).sprintf,u=i(5171),s=i(1848),f=i(1085);a.exports=c;function c(p,x,g){"use strict";var w=s(x)||"of unknown name (see npm glsl-shader-name)",M="unknown type";g!==void 0&&(M=g===u.FRAGMENT_SHADER?"fragment":"vertex");for(var m=l(`Error compiling %s shader %s:
`,M,w),k=l("%s%s",m,p),S=p.split(`
`),b={},T=0;T<S.length;T++){var h=S[T];if(!(h===""||h==="\0")){var _=parseInt(h.split(":")[2]);if(isNaN(_))throw new Error(l("Could not parse error: %s",h));b[_]=h}}for(var y=f(x).split(`
`),T=0;T<y.length;T++)if(!(!b[T+3]&&!b[T+2]&&!b[T+1])){var v=y[T];if(m+=v+`
`,b[T+1]){var A=b[T+1];A=A.substr(A.split(":",3).join(":").length+1).trim(),m+=l(`^^^ %s

`,A)}}return{long:m.trim(),short:k.trim()}}},7319(a,o,i){var l=i(3236),u=i(9405),s=l([`precision highp float;
#define GLSLIFY 1

attribute vec3 position, nextPosition;
attribute float arcLength, lineWidth;
attribute vec4 color;

uniform vec2 screenShape;
uniform float pixelRatio;
uniform mat4 model, view, projection;

varying vec4 fragColor;
varying vec3 worldPosition;
varying float pixelArcLength;

vec4 project(vec3 p) {
  return projection * (view * (model * vec4(p, 1.0)));
}

void main() {
  vec4 startPoint = project(position);
  vec4 endPoint   = project(nextPosition);

  vec2 A = startPoint.xy / startPoint.w;
  vec2 B =   endPoint.xy /   endPoint.w;

  float clipAngle = atan(
    (B.y - A.y) * screenShape.y,
    (B.x - A.x) * screenShape.x
  );

  vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(
    sin(clipAngle),
    -cos(clipAngle)
  ) / screenShape;

  gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);

  worldPosition = position;
  pixelArcLength = arcLength;
  fragColor = color;
}
`]),f=l([`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 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;
}
`]),c=l([`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);
}`]),p=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];o.createShader=function(x){return u(x,s,f,null,p)},o.createPickShader=function(x){return u(x,s,c,null,p)}},5714(a,o,i){"use strict";a.exports=y;var l=i(2762),u=i(8116),s=i(7766),f=new Uint8Array(4),c=new Float32Array(f.buffer);function p(v,A,d,D){return f[0]=D,f[1]=d,f[2]=A,f[3]=v,c[0]}var x=i(2478),g=i(9618),w=i(7319),M=w.createShader,m=w.createPickShader,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function S(v,A){for(var d=0,D=0;D<3;++D){var E=v[D]-A[D];d+=E*E}return Math.sqrt(d)}function b(v){for(var A=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],d=0;d<3;++d)A[0][d]=Math.max(v[0][d],A[0][d]),A[1][d]=Math.min(v[1][d],A[1][d]);return A}function T(v,A,d,D){this.arcLength=v,this.position=A,this.index=d,this.dataCoordinate=D}function h(v,A,d,D,E,R){this.gl=v,this.shader=A,this.pickShader=d,this.buffer=D,this.vao=E,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=R,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var _=h.prototype;_.isTransparent=function(){return this.hasAlpha},_.isOpaque=function(){return!this.hasAlpha},_.pickSlots=1,_.setPickBase=function(v){this.pickId=v},_.drawTransparent=_.draw=function(v){if(this.vertexCount){var A=this.gl,d=this.shader,D=this.vao;d.bind(),d.uniforms={model:v.model||k,view:v.view||k,projection:v.projection||k,clipBounds:b(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},D.bind(),D.draw(A.TRIANGLE_STRIP,this.vertexCount),D.unbind()}},_.drawPick=function(v){if(this.vertexCount){var A=this.gl,d=this.pickShader,D=this.vao;d.bind(),d.uniforms={model:v.model||k,view:v.view||k,projection:v.projection||k,pickId:this.pickId,clipBounds:b(this.clipBounds),screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},D.bind(),D.draw(A.TRIANGLE_STRIP,this.vertexCount),D.unbind()}},_.update=function(v){var A,d;this.dirty=!0;var D=!!v.connectGaps;"dashScale"in v&&(this.dashScale=v.dashScale),this.hasAlpha=!1,"opacity"in v&&(this.opacity=+v.opacity,this.opacity<1&&(this.hasAlpha=!0));var E=[],R=[],z=[],I=0,P=0,L=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],F=v.position||v.positions;if(F){var B=v.color||v.colors||[0,0,0,1],O=v.lineWidth||1,V=!1;e:for(A=1;A<F.length;++A){var K=F[A-1],j=F[A];for(R.push(I),z.push(K.slice()),d=0;d<3;++d){if(isNaN(K[d])||isNaN(j[d])||!isFinite(K[d])||!isFinite(j[d])){if(!D&&E.length>0){for(var G=0;G<24;++G)E.push(E[E.length-12]);P+=2,V=!0}continue e}L[0][d]=Math.min(L[0][d],K[d],j[d]),L[1][d]=Math.max(L[1][d],K[d],j[d])}var q,J;Array.isArray(B[0])?(q=B.length>A-1?B[A-1]:B.length>0?B[B.length-1]:[0,0,0,1],J=B.length>A?B[A]:B.length>0?B[B.length-1]:[0,0,0,1]):q=J=B,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 te;Array.isArray(O)?te=O.length>A-1?O[A-1]:O.length>0?O[O.length-1]:[0,0,0,1]:te=O;var Z=I;if(I+=S(K,j),V){for(d=0;d<2;++d)E.push(K[0],K[1],K[2],j[0],j[1],j[2],Z,te,q[0],q[1],q[2],q[3]);P+=2,V=!1}E.push(K[0],K[1],K[2],j[0],j[1],j[2],Z,te,q[0],q[1],q[2],q[3],K[0],K[1],K[2],j[0],j[1],j[2],Z,-te,q[0],q[1],q[2],q[3],j[0],j[1],j[2],K[0],K[1],K[2],I,-te,J[0],J[1],J[2],J[3],j[0],j[1],j[2],K[0],K[1],K[2],I,te,J[0],J[1],J[2],J[3]),P+=4}}if(this.buffer.update(E),R.push(I),z.push(F[F.length-1].slice()),this.bounds=L,this.vertexCount=P,this.points=z,this.arcLength=R,"dashes"in v){var ie=v.dashes,Q=ie.slice();for(Q.unshift(0),A=1;A<Q.length;++A)Q[A]=Q[A-1]+Q[A];var re=g(new Array(256*4),[256,1,4]);for(A=0;A<256;++A){for(d=0;d<4;++d)re.set(A,0,d,0);x.le(Q,Q[Q.length-1]*A/255)&1?re.set(A,0,0,0):re.set(A,0,0,255)}this.texture.setPixels(re)}},_.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},_.pick=function(v){if(!v||v.id!==this.pickId)return null;var A=p(v.value[0],v.value[1],v.value[2],0),d=x.le(this.arcLength,A);if(d<0)return null;if(d===this.arcLength.length-1)return new T(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),d);for(var D=this.points[d],E=this.points[Math.min(d+1,this.points.length-1)],R=(A-this.arcLength[d])/(this.arcLength[d+1]-this.arcLength[d]),z=1-R,I=[0,0,0],P=0;P<3;++P)I[P]=z*D[P]+R*E[P];var L=Math.min(R<.5?d:d+1,this.points.length-1);return new T(A,I,L,this.points[L])};function y(v){var A=v.gl||v.scene&&v.scene.gl,d=M(A);d.attributes.position.location=0,d.attributes.nextPosition.location=1,d.attributes.arcLength.location=2,d.attributes.lineWidth.location=3,d.attributes.color.location=4;var D=m(A);D.attributes.position.location=0,D.attributes.nextPosition.location=1,D.attributes.arcLength.location=2,D.attributes.lineWidth.location=3,D.attributes.color.location=4;for(var E=l(A),R=u(A,[{buffer:E,size:3,offset:0,stride:48},{buffer:E,size:3,offset:12,stride:48},{buffer:E,size:1,offset:24,stride:48},{buffer:E,size:1,offset:28,stride:48},{buffer:E,size:4,offset:32,stride:48}]),z=g(new Array(256*4),[256,1,4]),I=0;I<1024;++I)z.data[I]=255;var P=s(A,z);P.wrap=A.REPEAT;var L=new h(A,d,D,E,R,P);return L.update(v),L}},1903(a){a.exports=o;function o(i){var l=new Float32Array(16);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l[4]=i[4],l[5]=i[5],l[6]=i[6],l[7]=i[7],l[8]=i[8],l[9]=i[9],l[10]=i[10],l[11]=i[11],l[12]=i[12],l[13]=i[13],l[14]=i[14],l[15]=i[15],l}},6864(a){a.exports=o;function o(){var i=new Float32Array(16);return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}},9921(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3],c=i[4],p=i[5],x=i[6],g=i[7],w=i[8],M=i[9],m=i[10],k=i[11],S=i[12],b=i[13],T=i[14],h=i[15],_=l*p-u*c,y=l*x-s*c,v=l*g-f*c,A=u*x-s*p,d=u*g-f*p,D=s*g-f*x,E=w*b-M*S,R=w*T-m*S,z=w*h-k*S,I=M*T-m*b,P=M*h-k*b,L=m*h-k*T;return _*L-y*P+v*I+A*z-d*R+D*E}},7399(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],c=l[3],p=u+u,x=s+s,g=f+f,w=u*p,M=s*p,m=s*x,k=f*p,S=f*x,b=f*g,T=c*p,h=c*x,_=c*g;return i[0]=1-m-b,i[1]=M+_,i[2]=k-h,i[3]=0,i[4]=M-_,i[5]=1-w-b,i[6]=S+T,i[7]=0,i[8]=k+h,i[9]=S-T,i[10]=1-w-m,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}},6743(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],p=l[3],x=s+s,g=f+f,w=c+c,M=s*x,m=s*g,k=s*w,S=f*g,b=f*w,T=c*w,h=p*x,_=p*g,y=p*w;return i[0]=1-(S+T),i[1]=m+y,i[2]=k-_,i[3]=0,i[4]=m-y,i[5]=1-(M+T),i[6]=b+h,i[7]=0,i[8]=k+_,i[9]=b-h,i[10]=1-(M+S),i[11]=0,i[12]=u[0],i[13]=u[1],i[14]=u[2],i[15]=1,i}},7894(a){a.exports=o;function o(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}},7608(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],c=l[3],p=l[4],x=l[5],g=l[6],w=l[7],M=l[8],m=l[9],k=l[10],S=l[11],b=l[12],T=l[13],h=l[14],_=l[15],y=u*x-s*p,v=u*g-f*p,A=u*w-c*p,d=s*g-f*x,D=s*w-c*x,E=f*w-c*g,R=M*T-m*b,z=M*h-k*b,I=M*_-S*b,P=m*h-k*T,L=m*_-S*T,F=k*_-S*h,B=y*F-v*L+A*P+d*I-D*z+E*R;return B?(B=1/B,i[0]=(x*F-g*L+w*P)*B,i[1]=(f*L-s*F-c*P)*B,i[2]=(T*E-h*D+_*d)*B,i[3]=(k*D-m*E-S*d)*B,i[4]=(g*I-p*F-w*z)*B,i[5]=(u*F-f*I+c*z)*B,i[6]=(h*A-b*E-_*v)*B,i[7]=(M*E-k*A+S*v)*B,i[8]=(p*L-x*I+w*R)*B,i[9]=(s*I-u*L-c*R)*B,i[10]=(b*D-T*A+_*y)*B,i[11]=(m*A-M*D-S*y)*B,i[12]=(x*z-p*P-g*R)*B,i[13]=(u*P-s*z+f*R)*B,i[14]=(T*v-b*d-h*y)*B,i[15]=(M*d-m*v+k*y)*B,i):null}},6582(a,o,i){var l=i(7894);a.exports=u;function u(s,f,c,p){var x,g,w,M,m,k,S,b,T,h,_=f[0],y=f[1],v=f[2],A=p[0],d=p[1],D=p[2],E=c[0],R=c[1],z=c[2];return Math.abs(_-E)<1e-6&&Math.abs(y-R)<1e-6&&Math.abs(v-z)<1e-6?l(s):(S=_-E,b=y-R,T=v-z,h=1/Math.sqrt(S*S+b*b+T*T),S*=h,b*=h,T*=h,x=d*T-D*b,g=D*S-A*T,w=A*b-d*S,h=Math.sqrt(x*x+g*g+w*w),h?(h=1/h,x*=h,g*=h,w*=h):(x=0,g=0,w=0),M=b*w-T*g,m=T*x-S*w,k=S*g-b*x,h=Math.sqrt(M*M+m*m+k*k),h?(h=1/h,M*=h,m*=h,k*=h):(M=0,m=0,k=0),s[0]=x,s[1]=M,s[2]=S,s[3]=0,s[4]=g,s[5]=m,s[6]=b,s[7]=0,s[8]=w,s[9]=k,s[10]=T,s[11]=0,s[12]=-(x*_+g*y+w*v),s[13]=-(M*_+m*y+k*v),s[14]=-(S*_+b*y+T*v),s[15]=1,s)}},6760(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],p=l[3],x=l[4],g=l[5],w=l[6],M=l[7],m=l[8],k=l[9],S=l[10],b=l[11],T=l[12],h=l[13],_=l[14],y=l[15],v=u[0],A=u[1],d=u[2],D=u[3];return i[0]=v*s+A*x+d*m+D*T,i[1]=v*f+A*g+d*k+D*h,i[2]=v*c+A*w+d*S+D*_,i[3]=v*p+A*M+d*b+D*y,v=u[4],A=u[5],d=u[6],D=u[7],i[4]=v*s+A*x+d*m+D*T,i[5]=v*f+A*g+d*k+D*h,i[6]=v*c+A*w+d*S+D*_,i[7]=v*p+A*M+d*b+D*y,v=u[8],A=u[9],d=u[10],D=u[11],i[8]=v*s+A*x+d*m+D*T,i[9]=v*f+A*g+d*k+D*h,i[10]=v*c+A*w+d*S+D*_,i[11]=v*p+A*M+d*b+D*y,v=u[12],A=u[13],d=u[14],D=u[15],i[12]=v*s+A*x+d*m+D*T,i[13]=v*f+A*g+d*k+D*h,i[14]=v*c+A*w+d*S+D*_,i[15]=v*p+A*M+d*b+D*y,i}},4040(a){a.exports=o;function o(i,l,u,s,f,c,p){var x=1/(l-u),g=1/(s-f),w=1/(c-p);return i[0]=-2*x,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*g,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=2*w,i[11]=0,i[12]=(l+u)*x,i[13]=(f+s)*g,i[14]=(p+c)*w,i[15]=1,i}},4772(a){a.exports=o;function o(i,l,u,s,f){var c=1/Math.tan(l/2),p=1/(s-f);return i[0]=c/u,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=c,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=(f+s)*p,i[11]=-1,i[12]=0,i[13]=0,i[14]=2*f*s*p,i[15]=0,i}},6079(a){a.exports=o;function o(i,l,u,s){var f=s[0],c=s[1],p=s[2],x=Math.sqrt(f*f+c*c+p*p),g,w,M,m,k,S,b,T,h,_,y,v,A,d,D,E,R,z,I,P,L,F,B,O;return Math.abs(x)<1e-6?null:(x=1/x,f*=x,c*=x,p*=x,g=Math.sin(u),w=Math.cos(u),M=1-w,m=l[0],k=l[1],S=l[2],b=l[3],T=l[4],h=l[5],_=l[6],y=l[7],v=l[8],A=l[9],d=l[10],D=l[11],E=f*f*M+w,R=c*f*M+p*g,z=p*f*M-c*g,I=f*c*M-p*g,P=c*c*M+w,L=p*c*M+f*g,F=f*p*M+c*g,B=c*p*M-f*g,O=p*p*M+w,i[0]=m*E+T*R+v*z,i[1]=k*E+h*R+A*z,i[2]=S*E+_*R+d*z,i[3]=b*E+y*R+D*z,i[4]=m*I+T*P+v*L,i[5]=k*I+h*P+A*L,i[6]=S*I+_*P+d*L,i[7]=b*I+y*P+D*L,i[8]=m*F+T*B+v*O,i[9]=k*F+h*B+A*O,i[10]=S*F+_*B+d*O,i[11]=b*F+y*B+D*O,l!==i&&(i[12]=l[12],i[13]=l[13],i[14]=l[14],i[15]=l[15]),i)}},5567(a){a.exports=o;function o(i,l,u){var s=Math.sin(u),f=Math.cos(u),c=l[4],p=l[5],x=l[6],g=l[7],w=l[8],M=l[9],m=l[10],k=l[11];return l!==i&&(i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3],i[12]=l[12],i[13]=l[13],i[14]=l[14],i[15]=l[15]),i[4]=c*f+w*s,i[5]=p*f+M*s,i[6]=x*f+m*s,i[7]=g*f+k*s,i[8]=w*f-c*s,i[9]=M*f-p*s,i[10]=m*f-x*s,i[11]=k*f-g*s,i}},2408(a){a.exports=o;function o(i,l,u){var s=Math.sin(u),f=Math.cos(u),c=l[0],p=l[1],x=l[2],g=l[3],w=l[8],M=l[9],m=l[10],k=l[11];return l!==i&&(i[4]=l[4],i[5]=l[5],i[6]=l[6],i[7]=l[7],i[12]=l[12],i[13]=l[13],i[14]=l[14],i[15]=l[15]),i[0]=c*f-w*s,i[1]=p*f-M*s,i[2]=x*f-m*s,i[3]=g*f-k*s,i[8]=c*s+w*f,i[9]=p*s+M*f,i[10]=x*s+m*f,i[11]=g*s+k*f,i}},7089(a){a.exports=o;function o(i,l,u){var s=Math.sin(u),f=Math.cos(u),c=l[0],p=l[1],x=l[2],g=l[3],w=l[4],M=l[5],m=l[6],k=l[7];return l!==i&&(i[8]=l[8],i[9]=l[9],i[10]=l[10],i[11]=l[11],i[12]=l[12],i[13]=l[13],i[14]=l[14],i[15]=l[15]),i[0]=c*f+w*s,i[1]=p*f+M*s,i[2]=x*f+m*s,i[3]=g*f+k*s,i[4]=w*f-c*s,i[5]=M*f-p*s,i[6]=m*f-x*s,i[7]=k*f-g*s,i}},2504(a){a.exports=o;function o(i,l,u){var s=u[0],f=u[1],c=u[2];return i[0]=l[0]*s,i[1]=l[1]*s,i[2]=l[2]*s,i[3]=l[3]*s,i[4]=l[4]*f,i[5]=l[5]*f,i[6]=l[6]*f,i[7]=l[7]*f,i[8]=l[8]*c,i[9]=l[9]*c,i[10]=l[10]*c,i[11]=l[11]*c,i[12]=l[12],i[13]=l[13],i[14]=l[14],i[15]=l[15],i}},7656(a){a.exports=o;function o(i,l,u){var s=u[0],f=u[1],c=u[2],p,x,g,w,M,m,k,S,b,T,h,_;return l===i?(i[12]=l[0]*s+l[4]*f+l[8]*c+l[12],i[13]=l[1]*s+l[5]*f+l[9]*c+l[13],i[14]=l[2]*s+l[6]*f+l[10]*c+l[14],i[15]=l[3]*s+l[7]*f+l[11]*c+l[15]):(p=l[0],x=l[1],g=l[2],w=l[3],M=l[4],m=l[5],k=l[6],S=l[7],b=l[8],T=l[9],h=l[10],_=l[11],i[0]=p,i[1]=x,i[2]=g,i[3]=w,i[4]=M,i[5]=m,i[6]=k,i[7]=S,i[8]=b,i[9]=T,i[10]=h,i[11]=_,i[12]=p*s+M*f+b*c+l[12],i[13]=x*s+m*f+T*c+l[13],i[14]=g*s+k*f+h*c+l[14],i[15]=w*s+S*f+_*c+l[15]),i}},5665(a){a.exports=o;function o(i,l){if(i===l){var u=l[1],s=l[2],f=l[3],c=l[6],p=l[7],x=l[11];i[1]=l[4],i[2]=l[8],i[3]=l[12],i[4]=u,i[6]=l[9],i[7]=l[13],i[8]=s,i[9]=c,i[11]=l[14],i[12]=f,i[13]=p,i[14]=x}else i[0]=l[0],i[1]=l[4],i[2]=l[8],i[3]=l[12],i[4]=l[1],i[5]=l[5],i[6]=l[9],i[7]=l[13],i[8]=l[2],i[9]=l[6],i[10]=l[10],i[11]=l[14],i[12]=l[3],i[13]=l[7],i[14]=l[11],i[15]=l[15];return i}},7626(a,o,i){"use strict";var l=i(2642),u=i(9346);a.exports=x;function s(g,w){for(var M=[0,0,0,0],m=0;m<4;++m)for(var k=0;k<4;++k)M[k]+=g[4*m+k]*w[m];return M}function f(g,w,M,m,k){for(var S=s(m,s(M,s(w,[g[0],g[1],g[2],1]))),b=0;b<3;++b)S[b]/=S[3];return[.5*k[0]*(1+S[0]),.5*k[1]*(1-S[1])]}function c(g,w){if(g.length===2){for(var M=0,m=0,k=0;k<2;++k)M+=Math.pow(w[k]-g[0][k],2),m+=Math.pow(w[k]-g[1][k],2);return M=Math.sqrt(M),m=Math.sqrt(m),M+m<1e-6?[1,0]:[m/(M+m),M/(m+M)]}else if(g.length===3){var S=[0,0];return u(g[0],g[1],g[2],w,S),l(g,S)}return[]}function p(g,w){for(var M=[0,0,0],m=0;m<g.length;++m)for(var k=g[m],S=w[m],b=0;b<3;++b)M[b]+=S*k[b];return M}function x(g,w,M,m,k,S){if(g.length===1)return[0,g[0].slice()];for(var b=new Array(g.length),T=0;T<g.length;++T)b[T]=f(g[T],M,m,k,S);for(var h=0,_=1/0,T=0;T<b.length;++T){for(var y=0,v=0;v<2;++v)y+=Math.pow(b[T][v]-w[v],2);y<_&&(_=y,h=T)}for(var A=c(b,w),d=0,T=0;T<3;++T){if(A[T]<-.001||A[T]>1.0001)return null;d+=A[T]}return Math.abs(d-1)>.001?null:[h,p(g,A),A]}},840(a,o,i){var l=i(3236),u=l([`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;
}
`]),s=l([`#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;
}
`]),f=l([`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;
}`]),c=l([`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;
}`]),p=l([`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;
}`]),x=l([`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;
}`]),g=l([`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;
}`]),w=l([`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);
}`]),M=l([`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;
}`]),m=l([`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)));
}`]),k=l([`precision highp float;
#define GLSLIFY 1

uniform vec3 contourColor;

void main() {
  gl_FragColor = vec4(contourColor, 1.0);
}
`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.pointShader={vertex:p,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},o.pickShader={vertex:g,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},o.pointPickShader={vertex:M,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},o.contourShader={vertex:m,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201(a,o,i){"use strict";var l=1e-6,u=1e-6,s=i(9405),f=i(2762),c=i(8116),p=i(7766),x=i(8406),g=i(6760),w=i(7608),M=i(9618),m=i(6729),k=i(7765),S=i(1888),b=i(840),T=i(7626),h=b.meshShader,_=b.wireShader,y=b.pointShader,v=b.pickShader,A=b.pointPickShader,d=b.contourShader,D=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(G,q,J,te,Z,ie,Q,re,ue,ee,ae,ce,Te,ke,Se,ge,Le,Ce,le,Y,$,pe,oe,ve,he,me,be){this.gl=G,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=J,this.lineShader=te,this.pointShader=Z,this.pickShader=ie,this.pointPickShader=Q,this.contourShader=re,this.trianglePositions=ue,this.triangleColors=ae,this.triangleNormals=Te,this.triangleUVs=ce,this.triangleIds=ee,this.triangleVAO=ke,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Se,this.edgeColors=Le,this.edgeUVs=Ce,this.edgeIds=ge,this.edgeVAO=le,this.edgeCount=0,this.pointPositions=Y,this.pointColors=pe,this.pointUVs=oe,this.pointSizes=ve,this.pointIds=$,this.pointVAO=he,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=me,this.contourVAO=be,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=D,this._view=D,this._projection=D,this._resolution=[1,1]}var R=E.prototype;R.isOpaque=function(){return!this.hasAlpha},R.isTransparent=function(){return this.hasAlpha},R.pickSlots=1,R.setPickBase=function(G){this.pickId=G};function z(G,q){if(!q||!q.length)return 1;for(var J=0;J<q.length;++J){if(q.length<2)return 1;if(q[J][0]===G)return q[J][1];if(q[J][0]>G&&J>0){var te=(q[J][0]-G)/(q[J][0]-q[J-1][0]);return q[J][1]*(1-te)+te*q[J-1][1]}}return 1}function I(G,q){for(var J=m({colormap:G,nshades:256,format:"rgba"}),te=new Uint8Array(256*4),Z=0;Z<256;++Z){for(var ie=J[Z],Q=0;Q<3;++Q)te[4*Z+Q]=ie[Q];q?te[4*Z+3]=255*z(Z/255,q):te[4*Z+3]=255*ie[3]}return M(te,[256,256,4],[4,0,1])}function P(G){for(var q=G.length,J=new Array(q),te=0;te<q;++te)J[te]=G[te][2];return J}R.highlight=function(G){if(!G||!this.contourEnable){this.contourCount=0;return}for(var q=k(this.cells,this.intensity,G.intensity),J=q.cells,te=q.vertexIds,Z=q.vertexWeights,ie=J.length,Q=S.mallocFloat32(6*ie),re=0,ue=0;ue<ie;++ue)for(var ee=J[ue],ae=0;ae<2;++ae){var ce=ee[0];ee.length===2&&(ce=ee[ae]);for(var Te=te[ce][0],ke=te[ce][1],Se=Z[ce],ge=1-Se,Le=this.positions[Te],Ce=this.positions[ke],le=0;le<3;++le)Q[re++]=Se*Le[le]+ge*Ce[le]}this.contourCount=re/3|0,this.contourPositions.update(Q.subarray(0,re)),S.free(Q)},R.update=function(G){G=G||{};var q=this.gl;this.dirty=!0,"contourEnable"in G&&(this.contourEnable=G.contourEnable),"contourColor"in G&&(this.contourColor=G.contourColor),"lineWidth"in G&&(this.lineWidth=G.lineWidth),"lightPosition"in G&&(this.lightPosition=G.lightPosition),this.hasAlpha=!1,"opacity"in G&&(this.opacity=G.opacity,this.opacity<1&&(this.hasAlpha=!0)),"opacityscale"in G&&(this.opacityscale=G.opacityscale,this.hasAlpha=!0),"ambient"in G&&(this.ambientLight=G.ambient),"diffuse"in G&&(this.diffuseLight=G.diffuse),"specular"in G&&(this.specularLight=G.specular),"roughness"in G&&(this.roughness=G.roughness),"fresnel"in G&&(this.fresnel=G.fresnel),G.texture?(this.texture.dispose(),this.texture=p(q,G.texture)):G.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=q.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=q.LINEAR,this.texture.setPixels(I(G.colormap,this.opacityscale)),this.texture.generateMipmap());var J=G.cells,te=G.positions;if(!(!te||!J)){var Z=[],ie=[],Q=[],re=[],ue=[],ee=[],ae=[],ce=[],Te=[],ke=[],Se=[],ge=[],Le=[],Ce=[];this.cells=J,this.positions=te;var le=G.vertexNormals,Y=G.cellNormals,$=G.vertexNormalsEpsilon===void 0?l:G.vertexNormalsEpsilon,pe=G.faceNormalsEpsilon===void 0?u:G.faceNormalsEpsilon;G.useFacetNormals&&!Y&&(Y=x.faceNormals(J,te,pe)),!Y&&!le&&(le=x.vertexNormals(J,te,$));var oe=G.vertexColors,ve=G.cellColors,he=G.meshColor||[1,1,1,1],me=G.vertexUVs,be=G.vertexIntensity,ye=G.cellUVs,de=G.cellIntensity,_e=1/0,Ae=-1/0;if(!me&&!ye)if(be)if(G.vertexIntensityBounds)_e=+G.vertexIntensityBounds[0],Ae=+G.vertexIntensityBounds[1];else for(var Pe=0;Pe<be.length;++Pe){var Fe=be[Pe];_e=Math.min(_e,Fe),Ae=Math.max(Ae,Fe)}else if(de)if(G.cellIntensityBounds)_e=+G.cellIntensityBounds[0],Ae=+G.cellIntensityBounds[1];else for(var Pe=0;Pe<de.length;++Pe){var Fe=de[Pe];_e=Math.min(_e,Fe),Ae=Math.max(Ae,Fe)}else for(var Pe=0;Pe<te.length;++Pe){var Fe=te[Pe][2];_e=Math.min(_e,Fe),Ae=Math.max(Ae,Fe)}be?this.intensity=be:de?this.intensity=de:this.intensity=P(te),this.pickVertex=!(de||ve);var Ye=G.pointSizes,qe=G.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(var Pe=0;Pe<te.length;++Pe)for(var Be=te[Pe],Oe=0;Oe<3;++Oe)isNaN(Be[Oe])||!isFinite(Be[Oe])||(this.bounds[0][Oe]=Math.min(this.bounds[0][Oe],Be[Oe]),this.bounds[1][Oe]=Math.max(this.bounds[1][Oe],Be[Oe]));var We=0,Xe=0,tr=0;e:for(var Pe=0;Pe<J.length;++Pe){var ir=J[Pe];switch(ir.length){case 1:for(var je=ir[0],Be=te[je],Oe=0;Oe<3;++Oe)if(isNaN(Be[Oe])||!isFinite(Be[Oe]))continue e;ke.push(Be[0],Be[1],Be[2]);var Ke;oe?Ke=oe[je]:ve?Ke=ve[Pe]:Ke=he,this.opacityscale&&be?ie.push(Ke[0],Ke[1],Ke[2],this.opacity*z((be[je]-_e)/(Ae-_e),this.opacityscale)):Ke.length===3?Se.push(Ke[0],Ke[1],Ke[2],this.opacity):(Se.push(Ke[0],Ke[1],Ke[2],Ke[3]*this.opacity),Ke[3]<1&&(this.hasAlpha=!0));var Ee;me?Ee=me[je]:be?Ee=[(be[je]-_e)/(Ae-_e),0]:ye?Ee=ye[Pe]:de?Ee=[(de[Pe]-_e)/(Ae-_e),0]:Ee=[(Be[2]-_e)/(Ae-_e),0],ge.push(Ee[0],Ee[1]),Ye?Le.push(Ye[je]):Le.push(qe),Ce.push(Pe),tr+=1;break;case 2:for(var Oe=0;Oe<2;++Oe)for(var je=ir[Oe],Be=te[je],ze=0;ze<3;++ze)if(isNaN(Be[ze])||!isFinite(Be[ze]))continue e;for(var Oe=0;Oe<2;++Oe){var je=ir[Oe],Be=te[je];ee.push(Be[0],Be[1],Be[2]);var Ke;oe?Ke=oe[je]:ve?Ke=ve[Pe]:Ke=he,this.opacityscale&&be?ie.push(Ke[0],Ke[1],Ke[2],this.opacity*z((be[je]-_e)/(Ae-_e),this.opacityscale)):Ke.length===3?ae.push(Ke[0],Ke[1],Ke[2],this.opacity):(ae.push(Ke[0],Ke[1],Ke[2],Ke[3]*this.opacity),Ke[3]<1&&(this.hasAlpha=!0));var Ee;me?Ee=me[je]:be?Ee=[(be[je]-_e)/(Ae-_e),0]:ye?Ee=ye[Pe]:de?Ee=[(de[Pe]-_e)/(Ae-_e),0]:Ee=[(Be[2]-_e)/(Ae-_e),0],ce.push(Ee[0],Ee[1]),Te.push(Pe)}Xe+=1;break;case 3:for(var Oe=0;Oe<3;++Oe)for(var je=ir[Oe],Be=te[je],ze=0;ze<3;++ze)if(isNaN(Be[ze])||!isFinite(Be[ze]))continue e;for(var Oe=0;Oe<3;++Oe){var je=ir[2-Oe],Be=te[je];Z.push(Be[0],Be[1],Be[2]);var Ke;oe?Ke=oe[je]:ve?Ke=ve[Pe]:Ke=he,Ke?this.opacityscale&&be?ie.push(Ke[0],Ke[1],Ke[2],this.opacity*z((be[je]-_e)/(Ae-_e),this.opacityscale)):Ke.length===3?ie.push(Ke[0],Ke[1],Ke[2],this.opacity):(ie.push(Ke[0],Ke[1],Ke[2],Ke[3]*this.opacity),Ke[3]<1&&(this.hasAlpha=!0)):ie.push(.5,.5,.5,1);var Ee;me?Ee=me[je]:be?Ee=[(be[je]-_e)/(Ae-_e),0]:ye?Ee=ye[Pe]:de?Ee=[(de[Pe]-_e)/(Ae-_e),0]:Ee=[(Be[2]-_e)/(Ae-_e),0],re.push(Ee[0],Ee[1]);var Qe;le?Qe=le[je]:Qe=Y[Pe],Q.push(Qe[0],Qe[1],Qe[2]),ue.push(Pe)}We+=1;break;default:break}}this.pointCount=tr,this.edgeCount=Xe,this.triangleCount=We,this.pointPositions.update(ke),this.pointColors.update(Se),this.pointUVs.update(ge),this.pointSizes.update(Le),this.pointIds.update(new Uint32Array(Ce)),this.edgePositions.update(ee),this.edgeColors.update(ae),this.edgeUVs.update(ce),this.edgeIds.update(new Uint32Array(Te)),this.trianglePositions.update(Z),this.triangleColors.update(ie),this.triangleUVs.update(re),this.triangleNormals.update(Q),this.triangleIds.update(new Uint32Array(ue))}},R.drawTransparent=R.draw=function(G){G=G||{};for(var q=this.gl,J=G.model||D,te=G.view||D,Z=G.projection||D,ie=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Q=0;Q<3;++Q)ie[0][Q]=Math.max(ie[0][Q],this.clipBounds[0][Q]),ie[1][Q]=Math.min(ie[1][Q],this.clipBounds[1][Q]);var re={model:J,view:te,projection:Z,inverseModel:D.slice(),clipBounds:ie,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};re.inverseModel=w(re.inverseModel,re.model),q.disable(q.CULL_FACE),this.texture.bind(0);var ue=new Array(16);g(ue,re.view,re.model),g(ue,re.projection,ue),w(ue,ue);for(var Q=0;Q<3;++Q)re.eyePosition[Q]=ue[12+Q]/ue[15];for(var ee=ue[15],Q=0;Q<3;++Q)ee+=this.lightPosition[Q]*ue[4*Q+3];for(var Q=0;Q<3;++Q){for(var ae=ue[12+Q],ce=0;ce<3;++ce)ae+=ue[4*ce+Q]*this.lightPosition[ce];re.lightPosition[Q]=ae/ee}if(this.triangleCount>0){var Te=this.triShader;Te.bind(),Te.uniforms=re,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var Te=this.lineShader;Te.bind(),Te.uniforms=re,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 Te=this.pointShader;Te.bind(),Te.uniforms=re,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var Te=this.contourShader;Te.bind(),Te.uniforms=re,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},R.drawPick=function(G){G=G||{};for(var q=this.gl,J=G.model||D,te=G.view||D,Z=G.projection||D,ie=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Q=0;Q<3;++Q)ie[0][Q]=Math.max(ie[0][Q],this.clipBounds[0][Q]),ie[1][Q]=Math.min(ie[1][Q],this.clipBounds[1][Q]);this._model=[].slice.call(J),this._view=[].slice.call(te),this._projection=[].slice.call(Z),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var re={model:J,view:te,projection:Z,clipBounds:ie,pickId:this.pickId/255},ue=this.pickShader;if(ue.bind(),ue.uniforms=re,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 ue=this.pointPickShader;ue.bind(),ue.uniforms=re,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},R.pick=function(G){if(!G||G.id!==this.pickId)return null;for(var q=G.value[0]+256*G.value[1]+65536*G.value[2],J=this.cells[q],te=this.positions,Z=new Array(J.length),ie=0;ie<J.length;++ie)Z[ie]=te[J[ie]];var Q=G.coord[0],re=G.coord[1];if(!this.pickVertex){var ue=this.positions[J[0]],ee=this.positions[J[1]],ae=this.positions[J[2]],ce=[(ue[0]+ee[0]+ae[0])/3,(ue[1]+ee[1]+ae[1])/3,(ue[2]+ee[2]+ae[2])/3];return{_cellCenter:!0,position:[Q,re],index:q,cell:J,cellId:q,intensity:this.intensity[q],dataCoordinate:ce}}var Te=T(Z,[Q*this.pixelRatio,this._resolution[1]-re*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!Te)return null;for(var ke=Te[2],Se=0,ie=0;ie<J.length;++ie)Se+=ke[ie]*this.intensity[J[ie]];return{position:Te[1],index:J[Te[0]],cell:J,cellId:q,intensity:Se,dataCoordinate:this.positions[J[Te[0]]]}},R.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()};function L(G){var q=s(G,h.vertex,h.fragment);return q.attributes.position.location=0,q.attributes.color.location=2,q.attributes.uv.location=3,q.attributes.normal.location=4,q}function F(G){var q=s(G,_.vertex,_.fragment);return q.attributes.position.location=0,q.attributes.color.location=2,q.attributes.uv.location=3,q}function B(G){var q=s(G,y.vertex,y.fragment);return q.attributes.position.location=0,q.attributes.color.location=2,q.attributes.uv.location=3,q.attributes.pointSize.location=4,q}function O(G){var q=s(G,v.vertex,v.fragment);return q.attributes.position.location=0,q.attributes.id.location=1,q}function V(G){var q=s(G,A.vertex,A.fragment);return q.attributes.position.location=0,q.attributes.id.location=1,q.attributes.pointSize.location=4,q}function K(G){var q=s(G,d.vertex,d.fragment);return q.attributes.position.location=0,q}function j(G,q){arguments.length===1&&(q=G,G=q.gl);var J=G.getExtension("OES_standard_derivatives")||G.getExtension("MOZ_OES_standard_derivatives")||G.getExtension("WEBKIT_OES_standard_derivatives");if(!J)throw new Error("derivatives not supported");var te=L(G),Z=F(G),ie=B(G),Q=O(G),re=V(G),ue=K(G),ee=p(G,M(new Uint8Array([255,255,255,255]),[1,1,4]));ee.generateMipmap(),ee.minFilter=G.LINEAR_MIPMAP_LINEAR,ee.magFilter=G.LINEAR;var ae=f(G),ce=f(G),Te=f(G),ke=f(G),Se=f(G),ge=c(G,[{buffer:ae,type:G.FLOAT,size:3},{buffer:Se,type:G.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:ce,type:G.FLOAT,size:4},{buffer:Te,type:G.FLOAT,size:2},{buffer:ke,type:G.FLOAT,size:3}]),Le=f(G),Ce=f(G),le=f(G),Y=f(G),$=c(G,[{buffer:Le,type:G.FLOAT,size:3},{buffer:Y,type:G.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Ce,type:G.FLOAT,size:4},{buffer:le,type:G.FLOAT,size:2}]),pe=f(G),oe=f(G),ve=f(G),he=f(G),me=f(G),be=c(G,[{buffer:pe,type:G.FLOAT,size:3},{buffer:me,type:G.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:oe,type:G.FLOAT,size:4},{buffer:ve,type:G.FLOAT,size:2},{buffer:he,type:G.FLOAT,size:1}]),ye=f(G),de=c(G,[{buffer:ye,type:G.FLOAT,size:3}]),_e=new E(G,ee,te,Z,ie,Q,re,ue,ae,Se,ce,Te,ke,ge,Le,Y,Ce,le,$,pe,me,oe,ve,he,be,ye,de);return _e.update(q),_e}a.exports=j},4437(a,o,i){"use strict";a.exports=x;var l=i(3025),u=i(6296),s=i(351),f=i(8512),c=i(24),p=i(7520);function x(g,w){g=g||document.body,w=w||{};var M=[.01,1/0];"distanceLimits"in w&&(M[0]=w.distanceLimits[0],M[1]=w.distanceLimits[1]),"zoomMin"in w&&(M[0]=w.zoomMin),"zoomMax"in w&&(M[1]=w.zoomMax);var m=u({center:w.center||[0,0,0],up:w.up||[0,1,0],eye:w.eye||[0,0,10],mode:w.mode||"orbit",distanceLimits:M}),k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S=0,b=g.clientWidth,T=g.clientHeight,h={keyBindingMode:"rotate",enableWheel:!0,view:m,element:g,delay:w.delay||16,rotateSpeed:w.rotateSpeed||1,zoomSpeed:w.zoomSpeed||1,translateSpeed:w.translateSpeed||1,flipX:!!w.flipX,flipY:!!w.flipY,modes:m.modes,_ortho:w._ortho||w.projection&&w.projection.type==="orthographic"||!1,tick:function(){var _=l(),y=this.delay,v=_-2*y;m.idle(_-y),m.recalcMatrix(v),m.flush(_-(100+y*2));for(var A=!0,d=m.computedMatrix,D=0;D<16;++D)A=A&&k[D]===d[D],k[D]=d[D];var E=g.clientWidth===b&&g.clientHeight===T;return b=g.clientWidth,T=g.clientHeight,A?!E:(S=Math.exp(m.computedRadius[0]),!0)},lookAt:function(_,y,v){m.lookAt(m.lastT(),_,y,v)},rotate:function(_,y,v){m.rotate(m.lastT(),_,y,v)},pan:function(_,y,v){m.pan(m.lastT(),_,y,v)},translate:function(_,y,v){m.translate(m.lastT(),_,y,v)}};return Object.defineProperties(h,{matrix:{get:function(){return m.computedMatrix},set:function(_){return m.setMatrix(m.lastT(),_),m.computedMatrix},enumerable:!0},mode:{get:function(){return m.getMode()},set:function(_){var y=m.computedUp.slice(),v=m.computedEye.slice(),A=m.computedCenter.slice();if(m.setMode(_),_==="turntable"){var d=l();m._active.lookAt(d,v,A,y),m._active.lookAt(d+500,v,A,[0,0,1]),m._active.flush(d)}return m.getMode()},enumerable:!0},center:{get:function(){return m.computedCenter},set:function(_){return m.lookAt(m.lastT(),null,_),m.computedCenter},enumerable:!0},eye:{get:function(){return m.computedEye},set:function(_){return m.lookAt(m.lastT(),_),m.computedEye},enumerable:!0},up:{get:function(){return m.computedUp},set:function(_){return m.lookAt(m.lastT(),null,null,_),m.computedUp},enumerable:!0},distance:{get:function(){return S},set:function(_){return m.setDistance(m.lastT(),_),_},enumerable:!0},distanceLimits:{get:function(){return m.getDistanceLimits(M)},set:function(_){return m.setDistanceLimits(_),_},enumerable:!0}}),g.addEventListener("contextmenu",function(_){return _.preventDefault(),!1}),h._lastX=-1,h._lastY=-1,h._lastMods={shift:!1,control:!1,alt:!1,meta:!1},h.enableMouseListeners=function(){h.mouseListener=s(g,_),g.addEventListener("touchstart",function(y){var v=c(y.changedTouches[0],g);_(0,v[0],v[1],h._lastMods),_(1,v[0],v[1],h._lastMods)},p?{passive:!0}:!1),g.addEventListener("touchmove",function(y){var v=c(y.changedTouches[0],g);_(1,v[0],v[1],h._lastMods),y.preventDefault()},p?{passive:!1}:!1),g.addEventListener("touchend",function(y){_(0,h._lastX,h._lastY,h._lastMods)},p?{passive:!0}:!1);function _(y,v,A,d){var D=h.keyBindingMode;if(D!==!1){var E=D==="rotate",R=D==="pan",z=D==="zoom",I=!!d.control,P=!!d.alt,L=!!d.shift,F=!!(y&1),B=!!(y&2),O=!!(y&4),V=1/g.clientHeight,K=V*(v-h._lastX),j=V*(A-h._lastY),G=h.flipX?1:-1,q=h.flipY?1:-1,J=Math.PI*h.rotateSpeed,te=l();if(h._lastX!==-1&&h._lastY!==-1&&((E&&F&&!I&&!P&&!L||F&&!I&&!P&&L)&&m.rotate(te,G*J*K,-q*J*j,0),(R&&F&&!I&&!P&&!L||B||F&&I&&!P&&!L)&&m.pan(te,-h.translateSpeed*K*S,h.translateSpeed*j*S,0),z&&F&&!I&&!P&&!L||O||F&&!I&&P&&!L)){var Z=-h.zoomSpeed*j/window.innerHeight*(te-m.lastT())*100;m.pan(te,0,0,S*(Math.exp(Z)-1))}return h._lastX=v,h._lastY=A,h._lastMods=d,!0}}h.wheelListener=f(g,function(y,v){if(h.keyBindingMode!==!1&&h.enableWheel){var A=h.flipX?1:-1,d=h.flipY?1:-1,D=l();if(Math.abs(y)>Math.abs(v))m.rotate(D,0,0,-y*A*Math.PI*h.rotateSpeed/window.innerWidth);else if(!h._ortho){var E=-h.zoomSpeed*d*v/window.innerHeight*(D-m.lastT())/20;m.pan(D,0,0,S*(Math.exp(E)-1))}}},!0)},h.enableMouseListeners(),h}},799(a,o,i){var l=i(3236),u=i(9405),s=l([`precision mediump float;
#define GLSLIFY 1
attribute vec2 position;
varying vec2 uv;
void main() {
  uv = position;
  gl_Position = vec4(position, 0, 1);
}`]),f=l([`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);
}`]);a.exports=function(c){return u(c,s,f,null,[{name:"position",type:"vec2"}])}},4100(a,o,i){"use strict";var l=i(4437),u=i(3837),s=i(5445),f=i(4449),c=i(3589),p=i(2260),x=i(7169),g=i(351),w=i(4772),M=i(4040),m=i(799),k=i(2431)({tablet:!0,featureDetect:!0});a.exports={createScene:_,createCamera:l};function S(){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 b(v,A){var d=null;try{d=v.getContext("webgl",A),d||(d=v.getContext("experimental-webgl",A))}catch(D){return null}return d}function T(v){var A=Math.round(Math.log(Math.abs(v))/Math.log(10));if(A<0){var d=Math.round(Math.pow(10,-A));return Math.ceil(v*d)/d}else if(A>0){var d=Math.round(Math.pow(10,A));return Math.ceil(v/d)*d}return Math.ceil(v)}function h(v){return typeof v=="boolean"?v:!0}function _(v){v=v||{},v.camera=v.camera||{};var A=v.canvas;if(!A)if(A=document.createElement("canvas"),v.container){var d=v.container;d.appendChild(A)}else document.body.appendChild(A);var D=v.gl;if(D||(v.glOptions&&(k=!!v.glOptions.preserveDrawingBuffer),D=b(A,v.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!D)throw new Error("webgl not supported");var E=v.bounds||[[-10,-10,-10],[10,10,10]],R=new S,z=p(D,D.drawingBufferWidth,D.drawingBufferHeight,{preferFloat:!k}),I=m(D),P=v.cameraObject&&v.cameraObject._ortho===!0||v.camera.projection&&v.camera.projection.type==="orthographic"||!1,L={eye:v.camera.eye||[2,0,0],center:v.camera.center||[0,0,0],up:v.camera.up||[0,1,0],zoomMin:v.camera.zoomMax||.1,zoomMax:v.camera.zoomMin||100,mode:v.camera.mode||"turntable",_ortho:P},F=v.axes||{},B=u(D,F);B.enable=!F.disable;var O=v.spikes||{},V=f(D,O),K=[],j=[],G=[],q=[],J=!0,Q=!0,te=new Array(16),Z=new Array(16),ie={view:null,projection:te,model:Z,_ortho:!1},Q=!0,re=[D.drawingBufferWidth,D.drawingBufferHeight],ue=v.cameraObject||l(A,L),ee={gl:D,contextLost:!1,pixelRatio:v.pixelRatio||1,canvas:A,selection:R,camera:ue,axes:B,axesPixels:null,spikes:V,bounds:E,objects:K,shape:re,aspect:v.aspectRatio||[1,1,1],pickRadius:v.pickRadius||10,zNear:v.zNear||.01,zFar:v.zFar||1e3,fovy:v.fovy||Math.PI/4,clearColor:v.clearColor||[0,0,0,0],autoResize:h(v.autoResize),autoBounds:h(v.autoBounds),autoScale:!!v.autoScale,autoCenter:h(v.autoCenter),clipToBounds:h(v.clipToBounds),snapToData:!!v.snapToData,onselect:v.onselect||null,onrender:v.onrender||null,onclick:v.onclick||null,cameraParams:ie,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Y){this.aspect[0]=Y.x,this.aspect[1]=Y.y,this.aspect[2]=Y.z,Q=!0},setBounds:function(Y,$){this.bounds[0][Y]=$.min,this.bounds[1][Y]=$.max},setClearColor:function(Y){this.clearColor=Y},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)}},ae=[D.drawingBufferWidth/ee.pixelRatio|0,D.drawingBufferHeight/ee.pixelRatio|0];function ce(){if(!ee._stopped&&ee.autoResize){var Y=A.parentNode,$=1,pe=1;Y&&Y!==document.body?($=Y.clientWidth,pe=Y.clientHeight):($=window.innerWidth,pe=window.innerHeight);var oe=Math.ceil($*ee.pixelRatio)|0,ve=Math.ceil(pe*ee.pixelRatio)|0;if(oe!==A.width||ve!==A.height){A.width=oe,A.height=ve;var he=A.style;he.position=he.position||"absolute",he.left="0px",he.top="0px",he.width=$+"px",he.height=pe+"px",J=!0}}}ee.autoResize&&ce(),window.addEventListener("resize",ce);function Te(){for(var Y=K.length,$=q.length,pe=0;pe<$;++pe)G[pe]=0;e:for(var pe=0;pe<Y;++pe){var oe=K[pe],ve=oe.pickSlots;if(!ve){j[pe]=-1;continue}for(var he=0;he<$;++he)if(G[he]+ve<255){j[pe]=he,oe.setPickBase(G[he]+1),G[he]+=ve;continue e}var me=c(D,re);j[pe]=$,q.push(me),G.push(ve),oe.setPickBase(1),$+=1}for(;$>0&&G[$-1]===0;)G.pop(),q.pop().dispose()}ee.update=function(Y){ee._stopped||(Y=Y||{},J=!0,Q=!0)},ee.add=function(Y){ee._stopped||(Y.axes=B,K.push(Y),j.push(-1),J=!0,Q=!0,Te())},ee.remove=function(Y){if(!ee._stopped){var $=K.indexOf(Y);$<0||(K.splice($,1),j.pop(),J=!0,Q=!0,Te())}},ee.dispose=function(){if(!ee._stopped&&(ee._stopped=!0,window.removeEventListener("resize",ce),A.removeEventListener("webglcontextlost",ke),ee.mouseListener.enabled=!1,!ee.contextLost)){B.dispose(),V.dispose();for(var Y=0;Y<K.length;++Y)K[Y].dispose();z.dispose();for(var Y=0;Y<q.length;++Y)q[Y].dispose();I.dispose(),D=null,B=null,V=null,K=[]}},ee._mouseRotating=!1,ee._prevButtons=0,ee.enableMouseListeners=function(){ee.mouseListener=g(A,function(Y,$,pe){if(!ee._stopped){var oe=q.length,ve=K.length,he=R.object;R.distance=1/0,R.mouse[0]=$,R.mouse[1]=pe,R.object=null,R.screen=null,R.dataCoordinate=R.dataPosition=null;var me=!1;if(Y&&ee._prevButtons)ee._mouseRotating=!0;else{ee._mouseRotating&&(Q=!0),ee._mouseRotating=!1;for(var be=0;be<oe;++be){var ye=q[be].query($,ae[1]-pe-1,ee.pickRadius);if(ye){if(ye.distance>R.distance)continue;for(var de=0;de<ve;++de){var _e=K[de];if(j[de]===be){var Ae=_e.pick(ye);Ae&&(R.buttons=Y,R.screen=ye.coord,R.distance=ye.distance,R.object=_e,R.index=Ae.distance,R.dataPosition=Ae.position,R.dataCoordinate=Ae.dataCoordinate,R.data=Ae,me=!0)}}}}}he&&he!==R.object&&(he.highlight&&he.highlight(null),J=!0),R.object&&(R.object.highlight&&R.object.highlight(R.data),J=!0),me=me||R.object!==he,me&&ee.onselect&&ee.onselect(R),Y&1&&!(ee._prevButtons&1)&&ee.onclick&&ee.onclick(R),ee._prevButtons=Y}})};function ke(){if(ee.contextLost)return!0;D.isContextLost()&&(ee.contextLost=!0,ee.mouseListener.enabled=!1,ee.selection.object=null,ee.oncontextloss&&ee.oncontextloss())}A.addEventListener("webglcontextlost",ke);function Se(){if(!ke()){D.colorMask(!0,!0,!0,!0),D.depthMask(!0),D.disable(D.BLEND),D.enable(D.DEPTH_TEST),D.depthFunc(D.LEQUAL);for(var Y=K.length,$=q.length,pe=0;pe<$;++pe){var oe=q[pe];oe.shape=ae,oe.begin();for(var ve=0;ve<Y;++ve)if(j[ve]===pe){var he=K[ve];he.drawPick&&(he.pixelRatio=1,he.drawPick(ie))}oe.end()}}}var ge=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],Le=[ge[0].slice(),ge[1].slice()];function Ce(){if(!ke()){ce();var Y=ee.camera.tick();ie.view=ee.camera.matrix,J=J||Y,Q=Q||Y,B.pixelRatio=ee.pixelRatio,V.pixelRatio=ee.pixelRatio;var $=K.length,pe=ge[0],oe=ge[1];pe[0]=pe[1]=pe[2]=1/0,oe[0]=oe[1]=oe[2]=-1/0;for(var ve=0;ve<$;++ve){var he=K[ve];he.pixelRatio=ee.pixelRatio,he.axes=ee.axes,J=J||!!he.dirty,Q=Q||!!he.dirty;var me=he.bounds;if(me)for(var be=me[0],ye=me[1],de=0;de<3;++de)pe[de]=Math.min(pe[de],be[de]),oe[de]=Math.max(oe[de],ye[de])}var _e=ee.bounds;if(ee.autoBounds)for(var de=0;de<3;++de){if(oe[de]<pe[de])pe[de]=-1,oe[de]=1;else{pe[de]===oe[de]&&(pe[de]-=1,oe[de]+=1);var Ae=.05*(oe[de]-pe[de]);pe[de]=pe[de]-Ae,oe[de]=oe[de]+Ae}_e[0][de]=pe[de],_e[1][de]=oe[de]}for(var Pe=!1,de=0;de<3;++de)Pe=Pe||Le[0][de]!==_e[0][de]||Le[1][de]!==_e[1][de],Le[0][de]=_e[0][de],Le[1][de]=_e[1][de];if(Q=Q||Pe,J=J||Pe,!!J){if(Pe){for(var Fe=[0,0,0],ve=0;ve<3;++ve)Fe[ve]=T((_e[1][ve]-_e[0][ve])/10);B.autoTicks?B.update({bounds:_e,tickSpacing:Fe}):B.update({bounds:_e})}var Ye=D.drawingBufferWidth,qe=D.drawingBufferHeight;re[0]=Ye,re[1]=qe,ae[0]=Math.max(Ye/ee.pixelRatio,1)|0,ae[1]=Math.max(qe/ee.pixelRatio,1)|0,y(ee,P);for(var ve=0;ve<$;++ve){var he=K[ve];he.axesBounds=_e,ee.clipToBounds&&(he.clipBounds=_e)}R.object&&(ee.snapToData?V.position=R.dataCoordinate:V.position=R.dataPosition,V.bounds=_e),Q&&(Q=!1,Se()),ee.axesPixels=s(ee.axes,ie,Ye,qe),ee.onrender&&ee.onrender(),D.bindFramebuffer(D.FRAMEBUFFER,null),D.viewport(0,0,Ye,qe),ee.clearRGBA(),D.depthMask(!0),D.colorMask(!0,!0,!0,!0),D.enable(D.DEPTH_TEST),D.depthFunc(D.LEQUAL),D.disable(D.BLEND),D.disable(D.CULL_FACE);var Be=!1;B.enable&&(Be=Be||B.isTransparent(),B.draw(ie)),V.axes=B,R.object&&V.draw(ie),D.disable(D.CULL_FACE);for(var ve=0;ve<$;++ve){var he=K[ve];he.axes=B,he.pixelRatio=ee.pixelRatio,he.isOpaque&&he.isOpaque()&&he.draw(ie),he.isTransparent&&he.isTransparent()&&(Be=!0)}if(Be){z.shape=re,z.bind(),D.clear(D.DEPTH_BUFFER_BIT),D.colorMask(!1,!1,!1,!1),D.depthMask(!0),D.depthFunc(D.LESS),B.enable&&B.isTransparent()&&B.drawTransparent(ie);for(var ve=0;ve<$;++ve){var he=K[ve];he.isOpaque&&he.isOpaque()&&he.draw(ie)}D.enable(D.BLEND),D.blendEquation(D.FUNC_ADD),D.blendFunc(D.ONE,D.ONE_MINUS_SRC_ALPHA),D.colorMask(!0,!0,!0,!0),D.depthMask(!1),D.clearColor(0,0,0,0),D.clear(D.COLOR_BUFFER_BIT),B.isTransparent()&&B.drawTransparent(ie);for(var ve=0;ve<$;++ve){var he=K[ve];he.isTransparent&&he.isTransparent()&&he.drawTransparent(ie)}D.bindFramebuffer(D.FRAMEBUFFER,null),D.blendFunc(D.ONE,D.ONE_MINUS_SRC_ALPHA),D.disable(D.DEPTH_TEST),I.bind(),z.color[0].bind(0),I.uniforms.accumBuffer=0,x(D),D.disable(D.BLEND)}J=!1;for(var ve=0;ve<$;++ve)K[ve].dirty=!1}}}function le(){ee._stopped||ee.contextLost||(Ce(),requestAnimationFrame(le))}return ee.enableMouseListeners(),le(),ee.redraw=function(){ee._stopped||(J=!0,Ce())},ee}function y(v,A){var d=v.bounds,D=v.cameraParams,E=D.projection,R=D.model,z=v.gl.drawingBufferWidth,I=v.gl.drawingBufferHeight,P=v.zNear,L=v.zFar,F=v.fovy,B=z/I;A?(M(E,-B,B,-1,1,P,L),D._ortho=!0):(w(E,F,B,P,L),D._ortho=!1);for(var O=0;O<16;++O)R[O]=0;R[15]=1;for(var V=0,O=0;O<3;++O)V=Math.max(V,d[1][O]-d[0][O]);for(var O=0;O<3;++O)v.autoScale?R[5*O]=v.aspect[O]/(d[1][O]-d[0][O]):R[5*O]=1/V,v.autoCenter&&(R[12+O]=-R[5*O]*.5*(d[0][O]+d[1][O]))}},783(a){a.exports=o;function o(i,l,u,s){var f=l[0],c=l[1],p=l[2],x=l[3],g=u[0],w=u[1],M=u[2],m=u[3],k,S,b,T,h;return S=f*g+c*w+p*M+x*m,S<0&&(S=-S,g=-g,w=-w,M=-M,m=-m),1-S>1e-6?(k=Math.acos(S),b=Math.sin(k),T=Math.sin((1-s)*k)/b,h=Math.sin(s*k)/b):(T=1-s,h=s),i[0]=T*f+h*g,i[1]=T*c+h*w,i[2]=T*p+h*M,i[3]=T*x+h*m,i}},5964(a){"use strict";a.exports=function(o){return!o&&o!==0?"":o.toString()}},9366(a,o,i){"use strict";var l=i(4359);a.exports=s;var u={};function s(f,c,p){var x=[c.style,c.weight,c.variant,c.family].join("_"),g=u[x];if(g||(g=u[x]={}),f in g)return g[f];var w={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c.family,fontStyle:c.style,fontWeight:c.weight,fontVariant:c.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};w.triangles=!0;var M=l(f,w);w.triangles=!1;var m=l(f,w),k,S;if(p&&p!==1){for(k=0;k<M.positions.length;++k)for(S=0;S<M.positions[k].length;++S)M.positions[k][S]/=p;for(k=0;k<m.positions.length;++k)for(S=0;S<m.positions[k].length;++S)m.positions[k][S]/=p}var b=[[1/0,1/0],[-1/0,-1/0]],T=m.positions.length;for(k=0;k<T;++k){var h=m.positions[k];for(S=0;S<2;++S)b[0][S]=Math.min(b[0][S],h[S]),b[1][S]=Math.max(b[1][S],h[S])}return g[f]=[M,m,b]}},1283(a,o,i){var l=i(9405),u=i(3236),s=u([`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 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;
  }
}`]),f=u([`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;
  }
}`]),c=u([`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;
  }
}
`]),p=u([`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;
}
`]),x=u([`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);
}`]),g=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],w={vertex:s,fragment:p,attributes:g},M={vertex:f,fragment:p,attributes:g},m={vertex:c,fragment:p,attributes:g},k={vertex:s,fragment:x,attributes:g},S={vertex:f,fragment:x,attributes:g},b={vertex:c,fragment:x,attributes:g};function T(h,_){var y=l(h,_),v=y.attributes;return v.position.location=0,v.color.location=1,v.glyph.location=2,v.id.location=3,y}o.createPerspective=function(h){return T(h,w)},o.createOrtho=function(h){return T(h,M)},o.createProject=function(h){return T(h,m)},o.createPickPerspective=function(h){return T(h,k)},o.createPickOrtho=function(h){return T(h,S)},o.createPickProject=function(h){return T(h,b)}},8418(a,o,i){"use strict";var l=i(5219),u=i(2762),s=i(8116),f=i(1888),c=i(6760),p=i(1283),x=i(9366),g=i(5964),w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],M=ArrayBuffer,m=DataView;function k(Z){return M.isView(Z)&&!(Z instanceof m)}function S(Z){return Array.isArray(Z)||k(Z)}a.exports=te;function b(Z,ie){var Q=Z[0],re=Z[1],ue=Z[2],ee=Z[3];return Z[0]=ie[0]*Q+ie[4]*re+ie[8]*ue+ie[12]*ee,Z[1]=ie[1]*Q+ie[5]*re+ie[9]*ue+ie[13]*ee,Z[2]=ie[2]*Q+ie[6]*re+ie[10]*ue+ie[14]*ee,Z[3]=ie[3]*Q+ie[7]*re+ie[11]*ue+ie[15]*ee,Z}function T(Z,ie,Q,re){return b(re,re,Q),b(re,re,ie),b(re,re,Z)}function h(Z,ie){this.index=Z,this.dataCoordinate=this.position=ie}function _(Z){return Z===!0||Z>1?1:Z}function y(Z,ie,Q,re,ue,ee,ae,ce,Te,ke,Se,ge){this.gl=Z,this.pixelRatio=1,this.shader=ie,this.orthoShader=Q,this.projectShader=re,this.pointBuffer=ue,this.colorBuffer=ee,this.glyphBuffer=ae,this.idBuffer=ce,this.vao=Te,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=ke,this.pickOrthoShader=Se,this.pickProjectShader=ge,this.points=[],this._selectResult=new h(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 v=y.prototype;v.pickSlots=1,v.setPickBase=function(Z){this.pickId=Z},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&this.projectHasAlpha)return!0;return!1},v.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 A=[0,0],d=[0,0,0],D=[0,0,0],E=[0,0,0,1],R=[0,0,0,1],z=w.slice(),I=[0,0,0],P=[[0,0,0],[0,0,0]];function L(Z){return Z[0]=Z[1]=Z[2]=0,Z}function F(Z,ie){return Z[0]=ie[0],Z[1]=ie[1],Z[2]=ie[2],Z[3]=1,Z}function B(Z,ie,Q,re){return Z[0]=ie[0],Z[1]=ie[1],Z[2]=ie[2],Z[Q]=re,Z}function O(Z){for(var ie=P,Q=0;Q<2;++Q)for(var re=0;re<3;++re)ie[Q][re]=Math.max(Math.min(Z[Q][re],1e8),-1e8);return ie}function V(Z,ie,Q,re){var ue=ie.axesProject,ee=ie.gl,ae=Z.uniforms,ce=Q.model||w,Te=Q.view||w,ke=Q.projection||w,Se=ie.axesBounds,ge=O(ie.clipBounds),Le;ie.axes&&ie.axes.lastCubeProps?Le=ie.axes.lastCubeProps.axis:Le=[1,1,1],A[0]=2/ee.drawingBufferWidth,A[1]=2/ee.drawingBufferHeight,Z.bind(),ae.view=Te,ae.projection=ke,ae.screenSize=A,ae.highlightId=ie.highlightId,ae.highlightScale=ie.highlightScale,ae.clipBounds=ge,ae.pickGroup=ie.pickId/255,ae.pixelRatio=re;for(var Ce=0;Ce<3;++Ce)if(ue[Ce]){ae.scale=ie.projectScale[Ce],ae.opacity=ie.projectOpacity[Ce];for(var le=z,Y=0;Y<16;++Y)le[Y]=0;for(var Y=0;Y<4;++Y)le[5*Y]=1;le[5*Ce]=0,Le[Ce]<0?le[12+Ce]=Se[0][Ce]:le[12+Ce]=Se[1][Ce],c(le,ce,le),ae.model=le;var $=(Ce+1)%3,pe=(Ce+2)%3,oe=L(d),ve=L(D);oe[$]=1,ve[pe]=1;var he=T(ke,Te,ce,F(E,oe)),me=T(ke,Te,ce,F(R,ve));if(Math.abs(he[1])>Math.abs(me[1])){var be=he;he=me,me=be,be=oe,oe=ve,ve=be;var ye=$;$=pe,pe=ye}he[0]<0&&(oe[$]=-1),me[1]>0&&(ve[pe]=-1);for(var de=0,_e=0,Y=0;Y<4;++Y)de+=Math.pow(ce[4*$+Y],2),_e+=Math.pow(ce[4*pe+Y],2);oe[$]/=Math.sqrt(de),ve[pe]/=Math.sqrt(_e),ae.axes[0]=oe,ae.axes[1]=ve,ae.fragClipBounds[0]=B(I,ge[0],Ce,-1e8),ae.fragClipBounds[1]=B(I,ge[1],Ce,1e8),ie.vao.bind(),ie.vao.draw(ee.TRIANGLES,ie.vertexCount),ie.lineWidth>0&&(ee.lineWidth(ie.lineWidth*re),ie.vao.draw(ee.LINES,ie.lineVertexCount,ie.vertexCount)),ie.vao.unbind()}}var K=[-1e8,-1e8,-1e8],j=[1e8,1e8,1e8],G=[K,j];function q(Z,ie,Q,re,ue,ee,ae){var ce=Q.gl;if((ee===Q.projectHasAlpha||ae)&&V(ie,Q,re,ue),ee===Q.hasAlpha||ae){Z.bind();var Te=Z.uniforms;Te.model=re.model||w,Te.view=re.view||w,Te.projection=re.projection||w,A[0]=2/ce.drawingBufferWidth,A[1]=2/ce.drawingBufferHeight,Te.screenSize=A,Te.highlightId=Q.highlightId,Te.highlightScale=Q.highlightScale,Te.fragClipBounds=G,Te.clipBounds=Q.axes.bounds,Te.opacity=Q.opacity,Te.pickGroup=Q.pickId/255,Te.pixelRatio=ue,Q.vao.bind(),Q.vao.draw(ce.TRIANGLES,Q.vertexCount),Q.lineWidth>0&&(ce.lineWidth(Q.lineWidth*ue),Q.vao.draw(ce.LINES,Q.lineVertexCount,Q.vertexCount)),Q.vao.unbind()}}v.draw=function(Z){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,Z,this.pixelRatio,!1,!1)},v.drawTransparent=function(Z){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,Z,this.pixelRatio,!0,!1)},v.drawPick=function(Z){var ie=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(ie,this.pickProjectShader,this,Z,1,!0,!0)},v.pick=function(Z){if(!Z||Z.id!==this.pickId)return null;var ie=Z.value[2]+(Z.value[1]<<8)+(Z.value[0]<<16);if(ie>=this.pointCount||ie<0)return null;var Q=this.points[ie],re=this._selectResult;re.index=ie;for(var ue=0;ue<3;++ue)re.position[ue]=re.dataCoordinate[ue]=Q[ue];return re},v.highlight=function(Z){if(!Z)this.highlightId=[1,1,1,1];else{var ie=Z.index,Q=ie&255,re=ie>>8&255,ue=ie>>16&255;this.highlightId=[Q/255,re/255,ue/255,0]}};function J(Z,ie,Q,re){var ue;S(Z)?ie<Z.length?ue=Z[ie]:ue=void 0:ue=Z,ue=g(ue);var ee=!0;l(ue)&&(ue="\u25BC",ee=!1),Q||(Q={});var ae=Q.family;S(ae)&&(ae=ae[ie]),ae||(ae="normal");var ce=Q.weight;S(ce)&&(ce=ce[ie]),ce||(ce="normal");var Te=Q.style;S(Te)&&(Te=Te[ie]),Te||(Te="normal");var ke=Q.variant;S(ke)&&(ke=ke[ie]),ke||(ke="normal");var Se=x(ue,{family:ae,weight:ce,style:Te,variant:ke},re),Se=x(ue,Q,re);return{mesh:Se[0],lines:Se[1],bounds:Se[2],visible:ee}}v.update=function(Z){if(Z=Z||{},"perspective"in Z&&(this.useOrtho=!Z.perspective),"orthographic"in Z&&(this.useOrtho=!!Z.orthographic),"lineWidth"in Z&&(this.lineWidth=Z.lineWidth),"project"in Z)if(S(Z.project))this.axesProject=Z.project;else{var ie=!!Z.project;this.axesProject=[ie,ie,ie]}if("projectScale"in Z)if(S(Z.projectScale))this.projectScale=Z.projectScale.slice();else{var Q=+Z.projectScale;this.projectScale=[Q,Q,Q]}if(this.projectHasAlpha=!1,"projectOpacity"in Z){if(S(Z.projectOpacity))this.projectOpacity=Z.projectOpacity.slice();else{var Q=+Z.projectOpacity;this.projectOpacity=[Q,Q,Q]}for(var re=0;re<3;++re)this.projectOpacity[re]=_(this.projectOpacity[re]),this.projectOpacity[re]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in Z&&(this.opacity=_(Z.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var ue=Z.position,ee={family:Z.font||"normal",style:Z.fontStyle||"normal",weight:Z.fontWeight||"normal",variant:Z.fontVariant||"normal"},ae=Z.alignment||[0,0],ce,Te;if(ae.length===2)ce=ae[0],Te=ae[1];else{ce=[],Te=[];for(var re=0;re<ae.length;++re)ce[re]=ae[re][0],Te[re]=ae[re][1]}var ke=[1/0,1/0,1/0],Se=[-1/0,-1/0,-1/0],ge=Z.glyph,Le=Z.color,Ce=Z.size,le=Z.angle,Y=Z.lineColor,$=-1,pe=0,oe=0,ve=0;if(ue.length){ve=ue.length;e:for(var re=0;re<ve;++re){for(var he=ue[re],me=0;me<3;++me)if(isNaN(he[me])||!isFinite(he[me]))continue e;var be=J(ge,re,ee,this.pixelRatio),ye=be.mesh,de=be.lines,_e=be.bounds;pe+=ye.cells.length*3,oe+=de.edges.length*2}}var Ae=pe+oe,Pe=f.mallocFloat(3*Ae),Fe=f.mallocFloat(4*Ae),Ye=f.mallocFloat(2*Ae),qe=f.mallocUint32(Ae);if(Ae>0){var Be=0,Oe=pe,We=[0,0,0,1],Xe=[0,0,0,1],tr=S(Le)&&S(Le[0]),ir=S(Y)&&S(Y[0]);e:for(var re=0;re<ve;++re){$+=1;for(var he=ue[re],me=0;me<3;++me){if(isNaN(he[me])||!isFinite(he[me]))continue e;Se[me]=Math.max(Se[me],he[me]),ke[me]=Math.min(ke[me],he[me])}var be=J(ge,re,ee,this.pixelRatio),ye=be.mesh,de=be.lines,_e=be.bounds,je=be.visible;if(!je)We=[1,1,1,0];else if(S(Le)){var Ke;if(tr?re<Le.length?Ke=Le[re]:Ke=[0,0,0,0]:Ke=Le,Ke.length===3){for(var me=0;me<3;++me)We[me]=Ke[me];We[3]=1}else if(Ke.length===4){for(var me=0;me<4;++me)We[me]=Ke[me];!this.hasAlpha&&Ke[3]<1&&(this.hasAlpha=!0)}}else We[0]=We[1]=We[2]=0,We[3]=1;if(!je)Xe=[1,1,1,0];else if(S(Y)){var Ke;if(ir?re<Y.length?Ke=Y[re]:Ke=[0,0,0,0]:Ke=Y,Ke.length===3){for(var me=0;me<3;++me)Xe[me]=Ke[me];Xe[me]=1}else if(Ke.length===4){for(var me=0;me<4;++me)Xe[me]=Ke[me];!this.hasAlpha&&Ke[3]<1&&(this.hasAlpha=!0)}}else Xe[0]=Xe[1]=Xe[2]=0,Xe[3]=1;var Ee=.5;je?S(Ce)?re<Ce.length?Ee=+Ce[re]:Ee=12:Ce?Ee=+Ce:this.useOrtho&&(Ee=12):Ee=0;var ze=0;S(le)?re<le.length?ze=+le[re]:ze=0:le&&(ze=+le);for(var Qe=Math.cos(ze),er=Math.sin(ze),he=ue[re],me=0;me<3;++me)Se[me]=Math.max(Se[me],he[me]),ke[me]=Math.min(ke[me],he[me]);var wr=ce,Vr=Te,wr=0;S(ce)?re<ce.length?wr=ce[re]:wr=0:ce&&(wr=ce);var Vr=0;S(Te)?re<Te.length?Vr=Te[re]:Vr=0:Te&&(Vr=Te),wr*=wr>0?1-_e[0][0]:wr<0?1+_e[1][0]:1,Vr*=Vr>0?1-_e[0][1]:Vr<0?1+_e[1][1]:1;for(var Mr=[wr,Vr],bt=ye.cells||[],Jr=ye.positions||[],me=0;me<bt.length;++me)for(var Rr=bt[me],Qr=0;Qr<3;++Qr){for(var Sr=0;Sr<3;++Sr)Pe[3*Be+Sr]=he[Sr];for(var Sr=0;Sr<4;++Sr)Fe[4*Be+Sr]=We[Sr];qe[Be]=$;var Wr=Jr[Rr[Qr]];Ye[2*Be]=Ee*(Qe*Wr[0]-er*Wr[1]+Mr[0]),Ye[2*Be+1]=Ee*(er*Wr[0]+Qe*Wr[1]+Mr[1]),Be+=1}for(var bt=de.edges,Jr=de.positions,me=0;me<bt.length;++me)for(var Rr=bt[me],Qr=0;Qr<2;++Qr){for(var Sr=0;Sr<3;++Sr)Pe[3*Oe+Sr]=he[Sr];for(var Sr=0;Sr<4;++Sr)Fe[4*Oe+Sr]=Xe[Sr];qe[Oe]=$;var Wr=Jr[Rr[Qr]];Ye[2*Oe]=Ee*(Qe*Wr[0]-er*Wr[1]+Mr[0]),Ye[2*Oe+1]=Ee*(er*Wr[0]+Qe*Wr[1]+Mr[1]),Oe+=1}}}this.bounds=[ke,Se],this.points=ue,this.pointCount=ue.length,this.vertexCount=pe,this.lineVertexCount=oe,this.pointBuffer.update(Pe),this.colorBuffer.update(Fe),this.glyphBuffer.update(Ye),this.idBuffer.update(qe),f.free(Pe),f.free(Fe),f.free(Ye),f.free(qe)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()};function te(Z){var ie=Z.gl,Q=p.createPerspective(ie),re=p.createOrtho(ie),ue=p.createProject(ie),ee=p.createPickPerspective(ie),ae=p.createPickOrtho(ie),ce=p.createPickProject(ie),Te=u(ie),ke=u(ie),Se=u(ie),ge=u(ie),Le=s(ie,[{buffer:Te,size:3,type:ie.FLOAT},{buffer:ke,size:4,type:ie.FLOAT},{buffer:Se,size:2,type:ie.FLOAT},{buffer:ge,size:4,type:ie.UNSIGNED_BYTE,normalized:!0}]),Ce=new y(ie,Q,re,ue,Te,ke,Se,ge,Le,ee,ae,ce);return Ce.update(Z),Ce}},3589(a,o,i){"use strict";a.exports=w;var l=i(2260),u=i(1888),s=i(9618),f=i(8828).nextPow2,c=function(M,m,k){for(var S=1e8,b=-1,T=-1,h=M.shape[0],_=M.shape[1],y=0;y<h;y++)for(var v=0;v<_;v++){var A=M.get(y,v,0),d=M.get(y,v,1),D=M.get(y,v,2),E=M.get(y,v,3);if(A<255||d<255||D<255||E<255){var R=m-y,z=k-v,I=R*R+z*z;I<S&&(S=I,b=y,T=v)}}return[b,T,S]};function p(M,m,k,S,b){this.coord=[M,m],this.id=k,this.value=S,this.distance=b}function x(M,m,k){this.gl=M,this.fbo=m,this.buffer=k,this._readTimeout=null;var S=this;this._readCallback=function(){S.gl&&(m.bind(),M.readPixels(0,0,m.shape[0],m.shape[1],M.RGBA,M.UNSIGNED_BYTE,S.buffer),S._readTimeout=null)}}var g=x.prototype;Object.defineProperty(g,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(M){if(this.gl){this.fbo.shape=M;var m=this.fbo.shape[0],k=this.fbo.shape[1];if(k*m*4>this.buffer.length){u.free(this.buffer);for(var S=this.buffer=u.mallocUint8(f(k*m*4)),b=0;b<k*m*4;++b)S[b]=255}return M}}}),g.begin=function(){var M=this.gl,m=this.shape;M&&(this.fbo.bind(),M.clearColor(1,1,1,1),M.clear(M.COLOR_BUFFER_BIT|M.DEPTH_BUFFER_BIT))},g.end=function(){var M=this.gl;M&&(M.bindFramebuffer(M.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},g.query=function(M,m,k){if(!this.gl)return null;var S=this.fbo.shape.slice();M=M|0,m=m|0,typeof k!="number"&&(k=1);var b=Math.min(Math.max(M-k,0),S[0])|0,T=Math.min(Math.max(M+k,0),S[0])|0,h=Math.min(Math.max(m-k,0),S[1])|0,_=Math.min(Math.max(m+k,0),S[1])|0;if(T<=b||_<=h)return null;var y=[T-b,_-h],v=s(this.buffer,[y[0],y[1],4],[4,S[0]*4,1],4*(b+S[0]*h)),A=c(v.hi(y[0],y[1],1),k,k),d=A[0],D=A[1];if(d<0||Math.pow(this.radius,2)<A[2])return null;var E=v.get(d,D,0),R=v.get(d,D,1),z=v.get(d,D,2),I=v.get(d,D,3);return new p(d+b|0,D+h|0,E,[R,z,I],Math.sqrt(A[2]))},g.dispose=function(){this.gl&&(this.fbo.dispose(),u.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))};function w(M,m){var k=m[0],S=m[1],b={},T=l(M,k,S,b),h=u.mallocUint8(k*S*4);return new x(M,T,h)}},9405(a,o,i){"use strict";var l=i(3327),u=i(8731),s=i(216),f=i(5091),c=i(2145),p=i(8866);function x(m){this.gl=m,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var g=x.prototype;g.bind=function(){this.program||this._relink();var m,k=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),S=this.gl.lastAttribCount;if(k>S)for(m=S;m<k;m++)this.gl.enableVertexAttribArray(m);else if(S>k)for(m=k;m<S;m++)this.gl.disableVertexAttribArray(m);this.gl.lastAttribCount=k,this.gl.useProgram(this.program)},g.dispose=function(){for(var m=this.gl.lastAttribCount,k=0;k<m;k++)this.gl.disableVertexAttribArray(k);this.gl.lastAttribCount=0,this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null};function w(m,k){return m.name<k.name?-1:1}g.update=function(m,k,S,b){if(!k||arguments.length===1){var T=m;m=T.vertex,k=T.fragment,S=T.uniforms,b=T.attributes}var h=this,_=h.gl,y=h._vref;h._vref=f.shader(_,_.VERTEX_SHADER,m),y&&y.dispose(),h.vertShader=h._vref.shader;var v=this._fref;if(h._fref=f.shader(_,_.FRAGMENT_SHADER,k),v&&v.dispose(),h.fragShader=h._fref.shader,!S||!b){var A=_.createProgram();if(_.attachShader(A,h.fragShader),_.attachShader(A,h.vertShader),_.linkProgram(A),!_.getProgramParameter(A,_.LINK_STATUS)){var d=_.getProgramInfoLog(A);throw new p(d,"Error linking program:"+d)}S=S||c.uniforms(_,A),b=b||c.attributes(_,A),_.deleteProgram(A)}b=b.slice(),b.sort(w);var D=[],E=[],R=[],z;for(z=0;z<b.length;++z){var I=b[z];if(I.type.indexOf("mat")>=0){for(var P=I.type.charAt(I.type.length-1)|0,L=new Array(P),F=0;F<P;++F)L[F]=R.length,E.push(I.name+"["+F+"]"),typeof I.location=="number"?R.push(I.location+F):Array.isArray(I.location)&&I.location.length===P&&typeof I.location[F]=="number"?R.push(I.location[F]|0):R.push(-1);D.push({name:I.name,type:I.type,locations:L})}else D.push({name:I.name,type:I.type,locations:[R.length]}),E.push(I.name),typeof I.location=="number"?R.push(I.location|0):R.push(-1)}var B=0;for(z=0;z<R.length;++z)if(R[z]<0){for(;R.indexOf(B)>=0;)B+=1;R[z]=B}var O=new Array(S.length);function V(){h.program=f.program(_,h._vref,h._fref,E,R);for(var K=0;K<S.length;++K)O[K]=_.getUniformLocation(h.program,S[K].name)}V(),h._relink=V,h.types={uniforms:s(S),attributes:s(b)},h.attributes=u(_,h,D,R),Object.defineProperty(h,"uniforms",l(_,h,S,O))};function M(m,k,S,b,T){var h=new x(m);return h.update(k,S,b,T),h}a.exports=M},8866(a){function o(i,l,u){this.shortMessage=l||"",this.longMessage=u||"",this.rawError=i||"",this.message="gl-shader: "+(l||i||"")+(u?`
`+u:""),this.stack=new Error().stack}o.prototype=new Error,o.prototype.name="GLError",o.prototype.constructor=o,a.exports=o},8731(a,o,i){"use strict";a.exports=x;var l=i(8866);function u(g,w,M,m,k,S){this._gl=g,this._wrapper=w,this._index=M,this._locations=m,this._dimension=k,this._constFunc=S}var s=u.prototype;s.pointer=function(w,M,m,k){var S=this,b=S._gl,T=S._locations[S._index];b.vertexAttribPointer(T,S._dimension,w||b.FLOAT,!!M,m||0,k||0),b.enableVertexAttribArray(T)},s.set=function(g,w,M,m){return this._constFunc(this._locations[this._index],g,w,M,m)},Object.defineProperty(s,"location",{get:function(){return this._locations[this._index]},set:function(g){return g!==this._locations[this._index]&&(this._locations[this._index]=g|0,this._wrapper.program=null),g|0}});var f=[function(g,w,M){return M.length===void 0?g.vertexAttrib1f(w,M):g.vertexAttrib1fv(w,M)},function(g,w,M,m){return M.length===void 0?g.vertexAttrib2f(w,M,m):g.vertexAttrib2fv(w,M)},function(g,w,M,m,k){return M.length===void 0?g.vertexAttrib3f(w,M,m,k):g.vertexAttrib3fv(w,M)},function(g,w,M,m,k,S){return M.length===void 0?g.vertexAttrib4f(w,M,m,k,S):g.vertexAttrib4fv(w,M)}];function c(g,w,M,m,k,S,b){var T=f[k],h=new u(g,w,M,m,k,T);Object.defineProperty(S,b,{set:function(_){return g.disableVertexAttribArray(m[M]),T(g,m[M],_),_},get:function(){return h},enumerable:!0})}function p(g,w,M,m,k,S,b){for(var T=new Array(k),h=new Array(k),_=0;_<k;++_)c(g,w,M[_],m,k,T,_),h[_]=T[_];Object.defineProperty(T,"location",{set:function(A){if(Array.isArray(A))for(var d=0;d<k;++d)h[d].location=A[d];else for(var d=0;d<k;++d)h[d].location=A+d;return A},get:function(){for(var A=new Array(k),d=0;d<k;++d)A[d]=m[M[d]];return A},enumerable:!0}),T.pointer=function(A,d,D,E){A=A||g.FLOAT,d=!!d,D=D||k*k,E=E||0;for(var R=0;R<k;++R){var z=m[M[R]];g.vertexAttribPointer(z,k,A,d,D,E+R*k),g.enableVertexAttribArray(z)}};var y=new Array(k),v=g["vertexAttrib"+k+"fv"];Object.defineProperty(S,b,{set:function(A){for(var d=0;d<k;++d){var D=m[M[d]];if(g.disableVertexAttribArray(D),Array.isArray(A[0]))v.call(g,D,A[d]);else{for(var E=0;E<k;++E)y[E]=A[k*d+E];v.call(g,D,y)}}return A},get:function(){return T},enumerable:!0})}function x(g,w,M,m){for(var k={},S=0,b=M.length;S<b;++S){var T=M[S],h=T.name,_=T.type,y=T.locations;switch(_){case"bool":case"int":case"float":c(g,w,y[0],m,1,k,h);break;default:if(_.indexOf("vec")>=0){var v=_.charCodeAt(_.length-1)-48;if(v<2||v>4)throw new l("","Invalid data type for attribute "+h+": "+_);c(g,w,y[0],m,v,k,h)}else if(_.indexOf("mat")>=0){var v=_.charCodeAt(_.length-1)-48;if(v<2||v>4)throw new l("","Invalid data type for attribute "+h+": "+_);p(g,w,y,m,v,k,h)}else throw new l("","Unknown data type for attribute "+h+": "+_);break}}return k}},3327(a,o,i){"use strict";var l=i(216),u=i(8866);a.exports=c;function s(p){return function(){return p}}function f(p,x){for(var g=new Array(p),w=0;w<p;++w)g[w]=x;return g}function c(p,x,g,w){function M(_){return function(y,v,A){return y.getUniform(v.program,A[_])}}function m(_){return function(v){for(var A=k("",_),d=0;d<A.length;++d){var D=A[d],E=D[0],R=D[1];if(w[R]){var z=v;if(typeof E=="string"&&(E.indexOf(".")===0||E.indexOf("[")===0)){var I=E;if(E.indexOf(".")===0&&(I=E.slice(1)),I.indexOf("]")===I.length-1){var P=I.indexOf("["),L=I.slice(0,P),F=I.slice(P+1,I.length-1);z=L?v[L][F]:v[F]}else z=v[I]}var B=g[R].type,O;switch(B){case"bool":case"int":case"sampler2D":case"samplerCube":p.uniform1i(w[R],z);break;case"float":p.uniform1f(w[R],z);break;default:var V=B.indexOf("vec");if(0<=V&&V<=1&&B.length===4+V){if(O=B.charCodeAt(B.length-1)-48,O<2||O>4)throw new u("","Invalid data type");switch(B.charAt(0)){case"b":case"i":p["uniform"+O+"iv"](w[R],z);break;case"v":p["uniform"+O+"fv"](w[R],z);break;default:throw new u("","Unrecognized data type for vector "+name+": "+B)}}else if(B.indexOf("mat")===0&&B.length===4){if(O=B.charCodeAt(B.length-1)-48,O<2||O>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+B);p["uniformMatrix"+O+"fv"](w[R],!1,z);break}else throw new u("","Unknown uniform data type for "+name+": "+B)}}}}}function k(_,y){if(typeof y!="object")return[[_,y]];var v=[];for(var A in y){var d=y[A],D=_;parseInt(A)+""===A?D+="["+A+"]":D+="."+A,typeof d=="object"?v.push.apply(v,k(D,d)):v.push([D,d])}return v}function S(_){switch(_){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var y=_.indexOf("vec");if(0<=y&&y<=1&&_.length===4+y){var v=_.charCodeAt(_.length-1)-48;if(v<2||v>4)throw new u("","Invalid data type");return _.charAt(0)==="b"?f(v,!1):f(v,0)}else if(_.indexOf("mat")===0&&_.length===4){var v=_.charCodeAt(_.length-1)-48;if(v<2||v>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+_);return f(v*v,0)}else throw new u("","Unknown uniform data type for "+name+": "+_)}}function b(_,y,v){if(typeof v=="object"){var A=T(v);Object.defineProperty(_,y,{get:s(A),set:m(v),enumerable:!0,configurable:!1})}else w[v]?Object.defineProperty(_,y,{get:M(v),set:m(v),enumerable:!0,configurable:!1}):_[y]=S(g[v].type)}function T(_){var y;if(Array.isArray(_)){y=new Array(_.length);for(var v=0;v<_.length;++v)b(y,v,_[v])}else{y={};for(var A in _)b(y,A,_[A])}return y}var h=l(g,!0);return{get:s(T(h)),set:m(h),enumerable:!0,configurable:!0}}},216(a){"use strict";a.exports=o;function o(i,l){for(var u={},s=0;s<i.length;++s)for(var f=i[s].name,c=f.split("."),p=u,x=0;x<c.length;++x){var g=c[x].split("[");if(g.length>1){g[0]in p||(p[g[0]]=[]),p=p[g[0]];for(var w=1;w<g.length;++w){var M=parseInt(g[w]);w<g.length-1||x<c.length-1?(M in p||(w<g.length-1?p[M]=[]:p[M]={}),p=p[M]):l?p[M]=s:p[M]=i[s].type}}else x<c.length-1?(g[0]in p||(p[g[0]]={}),p=p[g[0]]):l?p[g[0]]=s:p[g[0]]=i[s].type}return u}},2145(a,o){"use strict";o.uniforms=s,o.attributes=f;var i={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube"},l=null;function u(c,p){if(!l){var x=Object.keys(i);l={};for(var g=0;g<x.length;++g){var w=x[g];l[c[w]]=i[w]}}return l[p]}function s(c,p){for(var x=c.getProgramParameter(p,c.ACTIVE_UNIFORMS),g=[],w=0;w<x;++w){var M=c.getActiveUniform(p,w);if(M){var m=u(c,M.type);if(M.size>1)for(var k=0;k<M.size;++k)g.push({name:M.name.replace("[0]","["+k+"]"),type:m});else g.push({name:M.name,type:m})}}return g}function f(c,p){for(var x=c.getProgramParameter(p,c.ACTIVE_ATTRIBUTES),g=[],w=0;w<x;++w){var M=c.getActiveAttrib(p,w);M&&g.push({name:M.name,type:u(c,M.type)})}return g}},5091(a,o,i){"use strict";o.shader=k,o.program=S;var l=i(8866),u=i(2992),s=typeof WeakMap=="undefined"?i(606):WeakMap,f=new s,c=0;function p(b,T,h,_,y,v,A){this.id=b,this.src=T,this.type=h,this.shader=_,this.count=v,this.programs=[],this.cache=A}p.prototype.dispose=function(){if(--this.count===0){for(var b=this.cache,T=b.gl,h=this.programs,_=0,y=h.length;_<y;++_){var v=b.programs[h[_]];v&&(delete b.programs[_],T.deleteProgram(v))}T.deleteShader(this.shader),delete b.shaders[this.type===T.FRAGMENT_SHADER|0][this.src]}};function x(b){this.gl=b,this.shaders=[{},{}],this.programs={}}var g=x.prototype;function w(b,T,h){var _=b.createShader(T);if(b.shaderSource(_,h),b.compileShader(_),!b.getShaderParameter(_,b.COMPILE_STATUS)){var y=b.getShaderInfoLog(_);try{var v=u(y,h,T)}catch(A){throw console.warn("Failed to format compiler error: "+A),new l(y,`Error compiling shader:
`+y)}throw new l(y,v.short,v.long)}return _}g.getShaderReference=function(b,T){var h=this.gl,_=this.shaders[b===h.FRAGMENT_SHADER|0],y=_[T];if(!y||!h.isShader(y.shader)){var v=w(h,b,T);y=_[T]=new p(c++,T,b,v,[],1,this)}else y.count+=1;return y};function M(b,T,h,_,y){var v=b.createProgram();b.attachShader(v,T),b.attachShader(v,h);for(var A=0;A<_.length;++A)b.bindAttribLocation(v,y[A],_[A]);if(b.linkProgram(v),!b.getProgramParameter(v,b.LINK_STATUS)){var d=b.getProgramInfoLog(v);throw new l(d,"Error linking program: "+d)}return v}g.getProgram=function(b,T,h,_){var y=[b.id,T.id,h.join(":"),_.join(":")].join("@"),v=this.programs[y];return(!v||!this.gl.isProgram(v))&&(this.programs[y]=v=M(this.gl,b.shader,T.shader,h,_),b.programs.push(y),T.programs.push(y)),v};function m(b){var T=f.get(b);return T||(T=new x(b),f.set(b,T)),T}function k(b,T,h){return m(b).getShaderReference(T,h)}function S(b,T,h,_,y){return m(b).getProgram(T,h,_,y)}},1493(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`precision mediump float;
#define GLSLIFY 1

attribute vec3 position, color;
attribute float weight;

uniform mat4 model, view, projection;
uniform vec3 coordinates[3];
uniform vec4 colors[3];
uniform vec2 screenShape;
uniform float lineWidth;

varying vec4 fragColor;

void main() {
  vec3 vertexPosition = mix(coordinates[0],
    mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));

  vec4 clipPos = projection * (view * (model * vec4(vertexPosition, 1.0)));
  vec2 clipOffset = (projection * (view * (model * vec4(color, 0.0)))).xy;
  vec2 delta = weight * clipOffset * screenShape;
  vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;

  gl_Position   = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);
  fragColor     = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];
}
`]),f=l([`precision mediump float;
#define GLSLIFY 1

varying vec4 fragColor;

void main() {
  gl_FragColor = fragColor;
}`]);a.exports=function(c){return u(c,s,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec3"},{name:"weight",type:"float"}])}},4449(a,o,i){"use strict";var l=i(2762),u=i(8116),s=i(1493);a.exports=M;var f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(m,k,S,b){this.gl=m,this.buffer=k,this.vao=S,this.shader=b,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var p=c.prototype,x=[0,0,0],g=[0,0,0],w=[0,0];p.isTransparent=function(){return!1},p.drawTransparent=function(m){},p.draw=function(m){var k=this.gl,S=this.vao,b=this.shader;S.bind(),b.bind();var T=m.model||f,h=m.view||f,_=m.projection||f,y;this.axes&&(y=this.axes.lastCubeProps.axis);for(var v=x,A=g,d=0;d<3;++d)y&&y[d]<0?(v[d]=this.bounds[0][d],A[d]=this.bounds[1][d]):(v[d]=this.bounds[1][d],A[d]=this.bounds[0][d]);w[0]=k.drawingBufferWidth,w[1]=k.drawingBufferHeight,b.uniforms.model=T,b.uniforms.view=h,b.uniforms.projection=_,b.uniforms.coordinates=[this.position,v,A],b.uniforms.colors=this.colors,b.uniforms.screenShape=w;for(var d=0;d<3;++d)b.uniforms.lineWidth=this.lineWidth[d]*this.pixelRatio,this.enabled[d]&&(S.draw(k.TRIANGLES,6,6*d),this.drawSides[d]&&S.draw(k.TRIANGLES,12,18+12*d));S.unbind()},p.update=function(m){m&&("bounds"in m&&(this.bounds=m.bounds),"position"in m&&(this.position=m.position),"lineWidth"in m&&(this.lineWidth=m.lineWidth),"colors"in m&&(this.colors=m.colors),"enabled"in m&&(this.enabled=m.enabled),"drawSides"in m&&(this.drawSides=m.drawSides))},p.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function M(m,k){var S=[];function b(v,A,d,D,E,R){var z=[v,A,d,0,0,0,1];z[D+3]=1,z[D]=E,S.push.apply(S,z),z[6]=-1,S.push.apply(S,z),z[D]=R,S.push.apply(S,z),S.push.apply(S,z),z[6]=1,S.push.apply(S,z),z[D]=E,S.push.apply(S,z)}b(0,0,0,0,0,1),b(0,0,0,1,0,1),b(0,0,0,2,0,1),b(1,0,0,1,-1,1),b(1,0,0,2,-1,1),b(0,1,0,0,-1,1),b(0,1,0,2,-1,1),b(0,0,1,0,-1,1),b(0,0,1,1,-1,1);var T=l(m,S),h=u(m,[{type:m.FLOAT,buffer:T,size:3,offset:0,stride:28},{type:m.FLOAT,buffer:T,size:3,offset:12,stride:28},{type:m.FLOAT,buffer:T,size:1,offset:24,stride:28}]),_=s(m);_.attributes.position.location=0,_.attributes.color.location=1,_.attributes.weight.location=2;var y=new c(m,T,h,_);return y.update(k),y}},6740(a,o,i){var l=i(3236),u=l([`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 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;
}
`]),s=l([`#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;
}
`]),f=l([`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;
}
`]),c=l([`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);
}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},o.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815(a,o,i){"use strict";var l=i(2931),u=i(9970),s=["xyz","xzy","yxz","yzx","zxy","zyx"],f=function(b,T,h,_){for(var y=b.points,v=b.velocities,A=b.divergences,d=[],D=[],E=[],R=[],z=[],I=[],P=0,L=0,F=u.create(),B=u.create(),O=8,V=0;V<y.length;V++){var K=y[V],j=v[V],G=A[V];T===0&&(G=h*.05),L=l.length(j)/_,F=u.create(),l.copy(F,j),F[3]=G;for(var q=0;q<O;q++)z[q]=[K[0],K[1],K[2],q];if(R.length>0)for(var q=0;q<O;q++){var J=(q+1)%O;d.push(R[q],z[q],z[J],z[J],R[J],R[q]),E.push(B,F,F,F,B,B),I.push(P,L,L,L,P,P);var te=d.length;D.push([te-6,te-5,te-4],[te-3,te-2,te-1])}var Z=R;R=z,z=Z;var ie=B;B=F,F=ie;var Q=P;P=L,L=Q}return{positions:d,cells:D,vectors:E,vertexIntensity:I}},c=function(b,T,h,_){for(var y=0,v=0;v<b.length;v++)for(var A=b[v].velocities,d=0;d<A.length;d++)y=Math.max(y,l.length(A[d]));for(var D=b.map(function(V){return f(V,h,_,y)}),E=[],R=[],z=[],I=[],v=0;v<D.length;v++){var P=D[v],L=E.length;E=E.concat(P.positions),z=z.concat(P.vectors),I=I.concat(P.vertexIntensity);for(var d=0;d<P.cells.length;d++){var F=P.cells[d],B=[];R.push(B);for(var O=0;O<F.length;O++)B.push(F[O]+L)}}return{positions:E,cells:R,vectors:z,vertexIntensity:I,colormap:T}},p=function(b,T){var h=b.length,_;for(_=0;_<h;_++){var y=b[_];if(y===T)return _;if(y>T)return _-1}return _},x=function(b,T,h){return b<T?T:b>h?h:b},g=function(b,T,h){var _=T.vectors,y=T.meshgrid,v=b[0],A=b[1],d=b[2],D=y[0].length,E=y[1].length,R=y[2].length,z=p(y[0],v),I=p(y[1],A),P=p(y[2],d),L=z+1,F=I+1,B=P+1;if(z=x(z,0,D-1),L=x(L,0,D-1),I=x(I,0,E-1),F=x(F,0,E-1),P=x(P,0,R-1),B=x(B,0,R-1),z<0||I<0||P<0||L>D-1||F>E-1||B>R-1)return l.create();var O=y[0][z],V=y[0][L],K=y[1][I],j=y[1][F],G=y[2][P],q=y[2][B],J=(v-O)/(V-O),te=(A-K)/(j-K),Z=(d-G)/(q-G);isFinite(J)||(J=.5),isFinite(te)||(te=.5),isFinite(Z)||(Z=.5);var ie,Q,re,ue,ee,ae;switch(h.reversedX&&(z=D-1-z,L=D-1-L),h.reversedY&&(I=E-1-I,F=E-1-F),h.reversedZ&&(P=R-1-P,B=R-1-B),h.filled){case 5:ee=P,ae=B,re=I*R,ue=F*R,ie=z*R*E,Q=L*R*E;break;case 4:ee=P,ae=B,ie=z*R,Q=L*R,re=I*R*D,ue=F*R*D;break;case 3:re=I,ue=F,ee=P*E,ae=B*E,ie=z*E*R,Q=L*E*R;break;case 2:re=I,ue=F,ie=z*E,Q=L*E,ee=P*E*D,ae=B*E*D;break;case 1:ie=z,Q=L,ee=P*D,ae=B*D,re=I*D*R,ue=F*D*R;break;default:ie=z,Q=L,re=I*D,ue=F*D,ee=P*D*E,ae=B*D*E;break}var ce=_[ie+re+ee],Te=_[ie+re+ae],ke=_[ie+ue+ee],Se=_[ie+ue+ae],ge=_[Q+re+ee],Le=_[Q+re+ae],Ce=_[Q+ue+ee],le=_[Q+ue+ae],Y=l.create(),$=l.create(),pe=l.create(),oe=l.create();l.lerp(Y,ce,ge,J),l.lerp($,Te,Le,J),l.lerp(pe,ke,Ce,J),l.lerp(oe,Se,le,J);var ve=l.create(),he=l.create();l.lerp(ve,Y,pe,te),l.lerp(he,$,oe,te);var me=l.create();return l.lerp(me,ve,he,Z),me},w=function(b,T){var h=T[0],_=T[1],y=T[2];return b[0]=h<0?-h:h,b[1]=_<0?-_:_,b[2]=y<0?-y:y,b},M=function(b){var T=1/0;b.sort(function(v,A){return v-A});for(var h=b.length,_=1;_<h;_++){var y=Math.abs(b[_]-b[_-1]);y<T&&(T=y)}return T},m=function(b){for(var T=[],h=[],_=[],y={},v={},A={},d=b.length,D=0;D<d;D++){var E=b[D],R=E[0],z=E[1],I=E[2];y[R]||(T.push(R),y[R]=!0),v[z]||(h.push(z),v[z]=!0),A[I]||(_.push(I),A[I]=!0)}var P=M(T),L=M(h),F=M(_),B=Math.min(P,L,F);return isFinite(B)?B:1};a.exports=function(b,T){var h=b.startingPositions,_=b.maxLength||1e3,y=b.tubeSize||1,v=b.absoluteTubeSize,A=b.gridFill||"+x+y+z",d={};A.indexOf("-x")!==-1&&(d.reversedX=!0),A.indexOf("-y")!==-1&&(d.reversedY=!0),A.indexOf("-z")!==-1&&(d.reversedZ=!0),d.filled=s.indexOf(A.replace(/-/g,"").replace(/\+/g,""));var D=b.getVelocity||function(Le){return g(Le,b,d)},E=b.getDivergence||function(Le,Ce){var le=l.create(),Y=1e-4;l.add(le,Le,[Y,0,0]);var $=D(le);l.subtract($,$,Ce),l.scale($,$,1/Y),l.add(le,Le,[0,Y,0]);var pe=D(le);l.subtract(pe,pe,Ce),l.scale(pe,pe,1/Y),l.add(le,Le,[0,0,Y]);var oe=D(le);return l.subtract(oe,oe,Ce),l.scale(oe,oe,1/Y),l.add(le,$,pe),l.add(le,le,oe),le},R=[],z=T[0][0],I=T[0][1],P=T[0][2],L=T[1][0],F=T[1][1],B=T[1][2],O=function(Le){var Ce=Le[0],le=Le[1],Y=Le[2];return!(Ce<z||Ce>L||le<I||le>F||Y<P||Y>B)},V=l.distance(T[0],T[1]),K=10*V/_,j=K*K,G=1,q=0,J=h.length;J>1&&(G=m(h));for(var te=0;te<J;te++){var Z=l.create();l.copy(Z,h[te]);var ie=[Z],Q=[],re=D(Z),ue=Z;Q.push(re);var ee=[],ae=E(Z,re),ce=l.length(ae);isFinite(ce)&&ce>q&&(q=ce),ee.push(ce),R.push({points:ie,velocities:Q,divergences:ee});for(var Te=0;Te<_*100&&ie.length<_&&O(Z);){Te++;var ke=l.clone(re),Se=l.squaredLength(ke);if(Se===0)break;if(Se>j&&l.scale(ke,ke,K/Math.sqrt(Se)),l.add(ke,ke,Z),re=D(ke),l.squaredDistance(ue,ke)-j>-1e-4*j){ie.push(ke),ue=ke,Q.push(re);var ae=E(ke,re),ce=l.length(ae);isFinite(ce)&&ce>q&&(q=ce),ee.push(ce)}Z=ke}}var ge=c(R,b.colormap,q,G);return v?ge.tubeScale=v:(q===0&&(q=1),ge.tubeScale=y*.5*G/q),ge};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(b,T){return S(b,T,{shaders:k,traceType:"streamtube"})}},990(a,o,i){var l=i(9405),u=i(3236),s=u([`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);
}
`]),f=u([`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 \u2014 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;
}
`]),c=u([`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);
}
`]),p=u([`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));
}
`]);o.createShader=function(x){var g=l(x,s,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return g.attributes.uv.location=0,g.attributes.f.location=1,g.attributes.normal.location=2,g},o.createPickShader=function(x){var g=l(x,s,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return g.attributes.uv.location=0,g.attributes.f.location=1,g.attributes.normal.location=2,g},o.createContourShader=function(x){var g=l(x,c,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return g.attributes.uv.location=0,g.attributes.f.location=1,g},o.createPickContourShader=function(x){var g=l(x,c,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return g.attributes.uv.location=0,g.attributes.f.location=1,g}},9499(a,o,i){"use strict";a.exports=ie;var l=i(8828),u=i(2762),s=i(8116),f=i(7766),c=i(1888),p=i(6729),x=i(5298),g=i(9994),w=i(9618),M=i(3711),m=i(6760),k=i(7608),S=i(2478),b=i(6199),T=i(990),h=T.createShader,_=T.createContourShader,y=T.createPickShader,v=T.createPickContourShader,A=40,d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],D=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],E=[[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 re=E[Q],ue=(Q+1)%3,ee=(Q+2)%3;re[ue+0]=1,re[ee+3]=1,re[Q+6]=1}})();function R(Q,re,ue,ee,ae){this.position=Q,this.index=re,this.uv=ue,this.level=ee,this.dataCoordinate=ae}var z=256;function I(Q,re,ue,ee,ae,ce,Te,ke,Se,ge,Le,Ce,le,Y,$){this.gl=Q,this.shape=re,this.bounds=ue,this.objectOffset=$,this.intensityBounds=[],this._shader=ee,this._pickShader=ae,this._coordinateBuffer=ce,this._vao=Te,this._colorMap=ke,this._contourShader=Se,this._contourPickShader=ge,this._contourBuffer=Le,this._contourVAO=Ce,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new R([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=le,this._dynamicVAO=Y,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=[w(c.mallocFloat(1024),[0,0]),w(c.mallocFloat(1024),[0,0]),w(c.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 P=I.prototype;P.genColormap=function(Q,re){var ue=!1,ee=g([p({colormap:Q,nshades:z,format:"rgba"}).map(function(ae,ce){var Te=re?L(ce/255,re):ae[3];return Te<1&&(ue=!0),[ae[0],ae[1],ae[2],255*Te]})]);return x.divseq(ee,255),this.hasAlphaScale=ue,ee},P.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},P.isOpaque=function(){return!this.isTransparent()},P.pickSlots=1,P.setPickBase=function(Q){this.pickId=Q};function L(Q,re){if(!re||!re.length)return 1;for(var ue=0;ue<re.length;++ue){if(re.length<2)return 1;if(re[ue][0]===Q)return re[ue][1];if(re[ue][0]>Q&&ue>0){var ee=(re[ue][0]-Q)/(re[ue][0]-re[ue-1][0]);return re[ue][1]*(1-ee)+ee*re[ue-1][1]}}return 1}var F=[0,0,0],B={showSurface:!1,showContour:!1,projections:[d.slice(),d.slice(),d.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function O(Q,re){var ue,ee,ae,ce=re.axes&&re.axes.lastCubeProps.axis||F,Te=re.showSurface,ke=re.showContour;for(ue=0;ue<3;++ue)for(Te=Te||re.surfaceProject[ue],ee=0;ee<3;++ee)ke=ke||re.contourProject[ue][ee];for(ue=0;ue<3;++ue){var Se=B.projections[ue];for(ee=0;ee<16;++ee)Se[ee]=0;for(ee=0;ee<4;++ee)Se[5*ee]=1;Se[5*ue]=0,Se[12+ue]=re.axesBounds[+(ce[ue]>0)][ue],m(Se,Q.model,Se);var ge=B.clipBounds[ue];for(ae=0;ae<2;++ae)for(ee=0;ee<3;++ee)ge[ae][ee]=Q.clipBounds[ae][ee];ge[0][ue]=-1e8,ge[1][ue]=1e8}return B.showSurface=Te,B.showContour=ke,B}var V={model:d,view:d,projection:d,inverseModel:d.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},K=d.slice(),j=[1,0,0,0,1,0,0,0,1];function G(Q,re){Q=Q||{};var ue=this.gl;ue.disable(ue.CULL_FACE),this._colorMap.bind(0);var ee=V;ee.model=Q.model||d,ee.view=Q.view||d,ee.projection=Q.projection||d,ee.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ee.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ee.objectOffset=this.objectOffset,ee.contourColor=this.contourColor[0],ee.inverseModel=k(ee.inverseModel,ee.model);for(var ae=0;ae<2;++ae)for(var ce=ee.clipBounds[ae],Te=0;Te<3;++Te)ce[Te]=Math.min(Math.max(this.clipBounds[ae][Te],-1e8),1e8);ee.kambient=this.ambientLight,ee.kdiffuse=this.diffuseLight,ee.kspecular=this.specularLight,ee.roughness=this.roughness,ee.fresnel=this.fresnel,ee.opacity=this.opacity,ee.height=0,ee.permutation=j,ee.vertexColor=this.vertexColor;var ke=K;for(m(ke,ee.view,ee.model),m(ke,ee.projection,ke),k(ke,ke),ae=0;ae<3;++ae)ee.eyePosition[ae]=ke[12+ae]/ke[15];var Se=ke[15];for(ae=0;ae<3;++ae)Se+=this.lightPosition[ae]*ke[4*ae+3];for(ae=0;ae<3;++ae){var ge=ke[12+ae];for(Te=0;Te<3;++Te)ge+=ke[4*Te+ae]*this.lightPosition[Te];ee.lightPosition[ae]=ge/Se}var Le=O(ee,this);if(Le.showSurface){for(this._shader.bind(),this._shader.uniforms=ee,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(ue.TRIANGLES,this._vertexCount),ae=0;ae<3;++ae)!this.surfaceProject[ae]||!this.vertexCount||(this._shader.uniforms.model=Le.projections[ae],this._shader.uniforms.clipBounds=Le.clipBounds[ae],this._vao.draw(ue.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Le.showContour){var Ce=this._contourShader;ee.kambient=1,ee.kdiffuse=0,ee.kspecular=0,ee.opacity=1,Ce.bind(),Ce.uniforms=ee;var le=this._contourVAO;for(le.bind(),ae=0;ae<3;++ae)for(Ce.uniforms.permutation=E[ae],ue.lineWidth(this.contourWidth[ae]*this.pixelRatio),Te=0;Te<this.contourLevels[ae].length;++Te)Te===this.highlightLevel[ae]?(Ce.uniforms.contourColor=this.highlightColor[ae],Ce.uniforms.contourTint=this.highlightTint[ae]):(Te===0||Te-1===this.highlightLevel[ae])&&(Ce.uniforms.contourColor=this.contourColor[ae],Ce.uniforms.contourTint=this.contourTint[ae]),this._contourCounts[ae][Te]&&(Ce.uniforms.height=this.contourLevels[ae][Te],le.draw(ue.LINES,this._contourCounts[ae][Te],this._contourOffsets[ae][Te]));for(ae=0;ae<3;++ae)for(Ce.uniforms.model=Le.projections[ae],Ce.uniforms.clipBounds=Le.clipBounds[ae],Te=0;Te<3;++Te)if(this.contourProject[ae][Te]){Ce.uniforms.permutation=E[Te],ue.lineWidth(this.contourWidth[Te]*this.pixelRatio);for(var Y=0;Y<this.contourLevels[Te].length;++Y)Y===this.highlightLevel[Te]?(Ce.uniforms.contourColor=this.highlightColor[Te],Ce.uniforms.contourTint=this.highlightTint[Te]):(Y===0||Y-1===this.highlightLevel[Te])&&(Ce.uniforms.contourColor=this.contourColor[Te],Ce.uniforms.contourTint=this.contourTint[Te]),this._contourCounts[Te][Y]&&(Ce.uniforms.height=this.contourLevels[Te][Y],le.draw(ue.LINES,this._contourCounts[Te][Y],this._contourOffsets[Te][Y]))}for(le.unbind(),le=this._dynamicVAO,le.bind(),ae=0;ae<3;++ae)if(this._dynamicCounts[ae]!==0)for(Ce.uniforms.model=ee.model,Ce.uniforms.clipBounds=ee.clipBounds,Ce.uniforms.permutation=E[ae],ue.lineWidth(this.dynamicWidth[ae]*this.pixelRatio),Ce.uniforms.contourColor=this.dynamicColor[ae],Ce.uniforms.contourTint=this.dynamicTint[ae],Ce.uniforms.height=this.dynamicLevel[ae],le.draw(ue.LINES,this._dynamicCounts[ae],this._dynamicOffsets[ae]),Te=0;Te<3;++Te)this.contourProject[Te][ae]&&(Ce.uniforms.model=Le.projections[Te],Ce.uniforms.clipBounds=Le.clipBounds[Te],le.draw(ue.LINES,this._dynamicCounts[ae],this._dynamicOffsets[ae]));le.unbind()}}P.draw=function(Q){return G.call(this,Q,!1)},P.drawTransparent=function(Q){return G.call(this,Q,!0)};var q={model:d,view:d,projection:d,inverseModel:d,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};P.drawPick=function(Q){Q=Q||{};var re=this.gl;re.disable(re.CULL_FACE);var ue=q;ue.model=Q.model||d,ue.view=Q.view||d,ue.projection=Q.projection||d,ue.shape=this._field[2].shape,ue.pickId=this.pickId/255,ue.lowerBound=this.bounds[0],ue.upperBound=this.bounds[1],ue.objectOffset=this.objectOffset,ue.permutation=j;for(var ee=0;ee<2;++ee)for(var ae=ue.clipBounds[ee],ce=0;ce<3;++ce)ae[ce]=Math.min(Math.max(this.clipBounds[ee][ce],-1e8),1e8);var Te=O(ue,this);if(Te.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=ue,this._vao.bind(),this._vao.draw(re.TRIANGLES,this._vertexCount),ee=0;ee<3;++ee)this.surfaceProject[ee]&&(this._pickShader.uniforms.model=Te.projections[ee],this._pickShader.uniforms.clipBounds=Te.clipBounds[ee],this._vao.draw(re.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Te.showContour){var ke=this._contourPickShader;ke.bind(),ke.uniforms=ue;var Se=this._contourVAO;for(Se.bind(),ce=0;ce<3;++ce)for(re.lineWidth(this.contourWidth[ce]*this.pixelRatio),ke.uniforms.permutation=E[ce],ee=0;ee<this.contourLevels[ce].length;++ee)this._contourCounts[ce][ee]&&(ke.uniforms.height=this.contourLevels[ce][ee],Se.draw(re.LINES,this._contourCounts[ce][ee],this._contourOffsets[ce][ee]));for(ee=0;ee<3;++ee)for(ke.uniforms.model=Te.projections[ee],ke.uniforms.clipBounds=Te.clipBounds[ee],ce=0;ce<3;++ce)if(this.contourProject[ee][ce]){ke.uniforms.permutation=E[ce],re.lineWidth(this.contourWidth[ce]*this.pixelRatio);for(var ge=0;ge<this.contourLevels[ce].length;++ge)this._contourCounts[ce][ge]&&(ke.uniforms.height=this.contourLevels[ce][ge],Se.draw(re.LINES,this._contourCounts[ce][ge],this._contourOffsets[ce][ge]))}Se.unbind()}},P.pick=function(Q){if(!Q||Q.id!==this.pickId)return null;var re=this._field[2].shape,ue=this._pickResult,ee=re[0]*(Q.value[0]+(Q.value[2]>>4)/16)/255,ae=Math.floor(ee),ce=ee-ae,Te=re[1]*(Q.value[1]+(Q.value[2]&15)/16)/255,ke=Math.floor(Te),Se=Te-ke;ae+=1,ke+=1;var ge=ue.position;ge[0]=ge[1]=ge[2]=0;for(var Le=0;Le<2;++Le)for(var Ce=Le?ce:1-ce,le=0;le<2;++le)for(var Y=le?Se:1-Se,$=ae+Le,pe=ke+le,oe=Ce*Y,ve=0;ve<3;++ve)ge[ve]+=this._field[ve].get($,pe)*oe;for(var he=this._pickResult.level,me=0;me<3;++me)if(he[me]=S.le(this.contourLevels[me],ge[me]),he[me]<0)this.contourLevels[me].length>0&&(he[me]=0);else if(he[me]<this.contourLevels[me].length-1){var be=this.contourLevels[me][he[me]],ye=this.contourLevels[me][he[me]+1];Math.abs(be-ge[me])>Math.abs(ye-ge[me])&&(he[me]+=1)}for(ue.index[0]=ce<.5?ae:ae+1,ue.index[1]=Se<.5?ke:ke+1,ue.uv[0]=ee/re[0],ue.uv[1]=Te/re[1],ve=0;ve<3;++ve)ue.dataCoordinate[ve]=this._field[ve].get(ue.index[0],ue.index[1]);return ue},P.padField=function(Q,re){var ue=re.shape.slice(),ee=Q.shape.slice();x.assign(Q.lo(1,1).hi(ue[0],ue[1]),re),x.assign(Q.lo(1).hi(ue[0],1),re.hi(ue[0],1)),x.assign(Q.lo(1,ee[1]-1).hi(ue[0],1),re.lo(0,ue[1]-1).hi(ue[0],1)),x.assign(Q.lo(0,1).hi(1,ue[1]),re.hi(1)),x.assign(Q.lo(ee[0]-1,1).hi(1,ue[1]),re.lo(ue[0]-1)),Q.set(0,0,re.get(0,0)),Q.set(0,ee[1]-1,re.get(0,ue[1]-1)),Q.set(ee[0]-1,0,re.get(ue[0]-1,0)),Q.set(ee[0]-1,ee[1]-1,re.get(ue[0]-1,ue[1]-1))};function J(Q,re){return Array.isArray(Q)?[re(Q[0]),re(Q[1]),re(Q[2])]:[re(Q),re(Q),re(Q)]}function te(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[te(Q[0]),te(Q[1]),te(Q[2])];var re=te(Q);return[re.slice(),re.slice(),re.slice()]}}P.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(Ha){return J(Ha,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 re=Q.field||Q.coords&&Q.coords[2]||null,ue=!1;if(re||(this._field[2].shape[0]||this._field[2].shape[2]?re=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):re=this._field[2].hi(0,0)),"field"in Q||"coords"in Q){var ee=(re.shape[0]+2)*(re.shape[1]+2);ee>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(l.nextPow2(ee))),this._field[2]=w(this._field[2].data,[re.shape[0]+2,re.shape[1]+2]),this.padField(this._field[2],re),this.shape=re.shape.slice();for(var ae=this.shape,ce=0;ce<2;++ce)this._field[2].size>this._field[ce].data.length&&(c.freeFloat(this._field[ce].data),this._field[ce].data=c.mallocFloat(this._field[2].size)),this._field[ce]=w(this._field[ce].data,[ae[0]+2,ae[1]+2]);if(Q.coords){var Te=Q.coords;if(!Array.isArray(Te)||Te.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ce=0;ce<2;++ce){var ke=Te[ce];for(le=0;le<2;++le)if(ke.shape[le]!==ae[le])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ce],ke)}}else if(Q.ticks){var Se=Q.ticks;if(!Array.isArray(Se)||Se.length!==2)throw new Error("gl-surface: invalid ticks");for(ce=0;ce<2;++ce){var ge=Se[ce];if((Array.isArray(ge)||ge.length)&&(ge=w(ge)),ge.shape[0]!==ae[ce])throw new Error("gl-surface: invalid tick length");var Le=w(ge.data,ae);Le.stride[ce]=ge.stride[0],Le.stride[ce^1]=0,this.padField(this._field[ce],Le)}}else{for(ce=0;ce<2;++ce){var Ce=[0,0];Ce[ce]=1,this._field[ce]=w(this._field[ce].data,[ae[0]+2,ae[1]+2],Ce,0)}this._field[0].set(0,0,0);for(var le=0;le<ae[0];++le)this._field[0].set(le+1,0,le);for(this._field[0].set(ae[0]+1,0,ae[0]-1),this._field[1].set(0,0,0),le=0;le<ae[1];++le)this._field[1].set(0,le+1,le);this._field[1].set(0,ae[1]+1,ae[1]-1)}var Y=this._field,$=w(c.mallocFloat(Y[2].size*3*2),[3,ae[0]+2,ae[1]+2,2]);for(ce=0;ce<3;++ce)b($.pick(ce),Y[ce],"mirror");var pe=w(c.mallocFloat(Y[2].size*3),[ae[0]+2,ae[1]+2,3]);for(ce=0;ce<ae[0]+2;++ce)for(le=0;le<ae[1]+2;++le){var oe=$.get(0,ce,le,0),ve=$.get(0,ce,le,1),he=$.get(1,ce,le,0),me=$.get(1,ce,le,1),be=$.get(2,ce,le,0),ye=$.get(2,ce,le,1),de=he*ye-me*be,_e=be*ve-ye*oe,Ae=oe*me-ve*he,Pe=Math.sqrt(de*de+_e*_e+Ae*Ae);Pe<1e-8?(Pe=Math.max(Math.abs(de),Math.abs(_e),Math.abs(Ae)),Pe<1e-8?(Ae=1,_e=de=0,Pe=1):Pe=1/Pe):Pe=1/Math.sqrt(Pe),pe.set(ce,le,0,de*Pe),pe.set(ce,le,1,_e*Pe),pe.set(ce,le,2,Ae*Pe)}c.free($.data);var Fe=[1/0,1/0,1/0],Ye=[-1/0,-1/0,-1/0],qe=1/0,Be=-1/0,Oe=(ae[0]-1)*(ae[1]-1)*6,We=c.mallocFloat(l.nextPow2(10*Oe)),Xe=0,tr=0;for(ce=0;ce<ae[0]-1;++ce)e:for(le=0;le<ae[1]-1;++le){for(var ir=0;ir<2;++ir)for(var je=0;je<2;++je)for(var Ke=0;Ke<3;++Ke){var Ee=this._field[Ke].get(1+ce+ir,1+le+je);if(isNaN(Ee)||!isFinite(Ee))continue e}for(Ke=0;Ke<6;++Ke){var ze=ce+D[Ke][0],Qe=le+D[Ke][1],er=this._field[0].get(ze+1,Qe+1),wr=this._field[1].get(ze+1,Qe+1);Ee=this._field[2].get(ze+1,Qe+1),de=pe.get(ze+1,Qe+1,0),_e=pe.get(ze+1,Qe+1,1),Ae=pe.get(ze+1,Qe+1,2),Q.intensity&&(Vr=Q.intensity.get(ze,Qe));var Vr=Q.intensity?Q.intensity.get(ze,Qe):Ee+this.objectOffset[2];We[Xe++]=ze,We[Xe++]=Qe,We[Xe++]=er,We[Xe++]=wr,We[Xe++]=Ee,We[Xe++]=0,We[Xe++]=Vr,We[Xe++]=de,We[Xe++]=_e,We[Xe++]=Ae,Fe[0]=Math.min(Fe[0],er+this.objectOffset[0]),Fe[1]=Math.min(Fe[1],wr+this.objectOffset[1]),Fe[2]=Math.min(Fe[2],Ee+this.objectOffset[2]),qe=Math.min(qe,Vr),Ye[0]=Math.max(Ye[0],er+this.objectOffset[0]),Ye[1]=Math.max(Ye[1],wr+this.objectOffset[1]),Ye[2]=Math.max(Ye[2],Ee+this.objectOffset[2]),Be=Math.max(Be,Vr),tr+=1}}for(Q.intensityBounds&&(qe=+Q.intensityBounds[0],Be=+Q.intensityBounds[1]),ce=6;ce<Xe;ce+=10)We[ce]=(We[ce]-qe)/(Be-qe);this._vertexCount=tr,this._coordinateBuffer.update(We.subarray(0,Xe)),c.freeFloat(We),c.free(pe.data),this.bounds=[Fe,Ye],this.intensity=Q.intensity||this._field[2],(this.intensityBounds[0]!==qe||this.intensityBounds[1]!==Be)&&(ue=!0),this.intensityBounds=[qe,Be]}if("levels"in Q){var Mr=Q.levels;for(Array.isArray(Mr[0])?Mr=Mr.slice():Mr=[[],[],Mr],ce=0;ce<3;++ce)Mr[ce]=Mr[ce].slice(),Mr[ce].sort(function(Ha,Oi){return Ha-Oi});for(ce=0;ce<3;++ce)for(le=0;le<Mr[ce].length;++le)Mr[ce][le]-=this.objectOffset[ce];e:for(ce=0;ce<3;++ce){if(Mr[ce].length!==this.contourLevels[ce].length){ue=!0;break}for(le=0;le<Mr[ce].length;++le)if(Mr[ce][le]!==this.contourLevels[ce][le]){ue=!0;break e}}this.contourLevels=Mr}if(ue){Y=this._field,ae=this.shape;for(var Rr=[],Qr=0;Qr<3;++Qr){var Sr=this.contourLevels[Qr],Wr=[],bt=[],Jr=[0,0,0];for(ce=0;ce<Sr.length;++ce){var lt=M(this._field[Qr],Sr[ce]);Wr.push(Rr.length/5|0),tr=0;e:for(le=0;le<lt.cells.length;++le){var Cn=lt.cells[le];for(Ke=0;Ke<2;++Ke){var lr=lt.positions[Cn[Ke]],zr=lr[0],rt=Math.floor(zr)|0,Or=zr-rt,Gr=lr[1],pt=Math.floor(Gr)|0,at=Gr-pt,Ct=!1;r:for(var Zt=0;Zt<3;++Zt){Jr[Zt]=0;var St=(Qr+Zt+1)%3;for(ir=0;ir<2;++ir){var gt=ir?Or:1-Or;for(ze=Math.min(Math.max(rt+ir,0),ae[0])|0,je=0;je<2;++je){var Et=je?at:1-at;if(Qe=Math.min(Math.max(pt+je,0),ae[1])|0,Zt<2?Ee=this._field[St].get(ze,Qe):Ee=(this.intensity.get(ze,Qe)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(Ee)||isNaN(Ee)){Ct=!0;break r}var Lt=gt*Et;Jr[Zt]+=Lt*Ee}}}if(!Ct)Rr.push(Jr[0],Jr[1],lr[0],lr[1],Jr[2]),tr+=1;else{if(Ke>0){for(var da=0;da<5;++da)Rr.pop();tr-=1}continue e}}}bt.push(tr)}this._contourOffsets[Qr]=Wr,this._contourCounts[Qr]=bt}var Wn=c.mallocFloat(Rr.length);for(ce=0;ce<Rr.length;++ce)Wn[ce]=Rr[ce];this._contourBuffer.update(Wn),c.freeFloat(Wn)}},P.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var Q=0;Q<3;++Q)c.freeFloat(this._field[Q].data)},P.highlight=function(Q){var re;if(!Q){this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],this.highlightLevel=[-1,-1,-1];return}for(re=0;re<3;++re)this.enableHighlight[re]?this.highlightLevel[re]=Q.level[re]:this.highlightLevel[re]=-1;var ue;for(this.snapToData?ue=Q.dataCoordinate:ue=Q.position,re=0;re<3;++re)ue[re]-=this.objectOffset[re];if(!((!this.enableDynamic[0]||ue[0]===this.dynamicLevel[0])&&(!this.enableDynamic[1]||ue[1]===this.dynamicLevel[1])&&(!this.enableDynamic[2]||ue[2]===this.dynamicLevel[2]))){for(var ee=0,ae=this.shape,ce=c.mallocFloat(12*ae[0]*ae[1]),Te=0;Te<3;++Te){if(!this.enableDynamic[Te]){this.dynamicLevel[Te]=NaN,this._dynamicCounts[Te]=0;continue}this.dynamicLevel[Te]=ue[Te];var ke=(Te+1)%3,Se=(Te+2)%3,ge=this._field[Te],Le=this._field[ke],Ce=this._field[Se],le=M(ge,ue[Te]),Y=le.cells,$=le.positions;for(this._dynamicOffsets[Te]=ee,re=0;re<Y.length;++re)for(var pe=Y[re],oe=0;oe<2;++oe){var ve=$[pe[oe]],he=+ve[0],me=he|0,be=Math.min(me+1,ae[0])|0,ye=he-me,de=1-ye,_e=+ve[1],Ae=_e|0,Pe=Math.min(Ae+1,ae[1])|0,Fe=_e-Ae,Ye=1-Fe,qe=de*Ye,Be=de*Fe,Oe=ye*Ye,We=ye*Fe,Xe=qe*Le.get(me,Ae)+Be*Le.get(me,Pe)+Oe*Le.get(be,Ae)+We*Le.get(be,Pe),tr=qe*Ce.get(me,Ae)+Be*Ce.get(me,Pe)+Oe*Ce.get(be,Ae)+We*Ce.get(be,Pe);if(isNaN(Xe)||isNaN(tr)){oe&&(ee-=1);break}ce[2*ee+0]=Xe,ce[2*ee+1]=tr,ee+=1}this._dynamicCounts[Te]=ee-this._dynamicOffsets[Te]}this._dynamicBuffer.update(ce.subarray(0,2*ee)),c.freeFloat(ce)}};function ie(Q){var re=Q.gl,ue=h(re),ee=y(re),ae=_(re),ce=v(re),Te=u(re),ke=s(re,[{buffer:Te,size:4,stride:A,offset:0},{buffer:Te,size:3,stride:A,offset:16},{buffer:Te,size:3,stride:A,offset:28}]),Se=u(re),ge=s(re,[{buffer:Se,size:4,stride:20,offset:0},{buffer:Se,size:1,stride:20,offset:16}]),Le=u(re),Ce=s(re,[{buffer:Le,size:2,type:re.FLOAT}]),le=f(re,1,z,re.RGBA,re.UNSIGNED_BYTE);le.minFilter=re.LINEAR,le.magFilter=re.LINEAR;var Y=new I(re,[0,0],[[0,0,0],[0,0,0]],ue,ee,Te,ke,le,ae,ce,Se,ge,Le,Ce,[0,0,0]),$={levels:[[],[],[]]};for(var pe in Q)$[pe]=Q[pe];return $.colormap=$.colormap||"jet",Y.update($),Y}},7766(a,o,i){"use strict";var l=i(9618),u=i(5298),s=i(1888);a.exports=v;var f=null,c=null,p=null;function x(A){f=[A.LINEAR,A.NEAREST_MIPMAP_LINEAR,A.LINEAR_MIPMAP_NEAREST,A.LINEAR_MIPMAP_NEAREST],c=[A.NEAREST,A.LINEAR,A.NEAREST_MIPMAP_NEAREST,A.NEAREST_MIPMAP_LINEAR,A.LINEAR_MIPMAP_NEAREST,A.LINEAR_MIPMAP_LINEAR],p=[A.REPEAT,A.CLAMP_TO_EDGE,A.MIRRORED_REPEAT]}function g(A){return typeof HTMLCanvasElement!="undefined"&&A instanceof HTMLCanvasElement||typeof HTMLImageElement!="undefined"&&A instanceof HTMLImageElement||typeof HTMLVideoElement!="undefined"&&A instanceof HTMLVideoElement||typeof ImageData!="undefined"&&A instanceof ImageData}var w=function(A,d){u.muls(A,d,255)};function M(A,d,D){var E=A.gl,R=E.getParameter(E.MAX_TEXTURE_SIZE);if(d<0||d>R||D<0||D>R)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[d,D],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,d,D,0,A.format,A.type,null),A._mipLevels=[0],A}function m(A,d,D,E,R,z){this.gl=A,this.handle=d,this.format=R,this.type=z,this._shape=[D,E],this._mipLevels=[0],this._magFilter=A.NEAREST,this._minFilter=A.NEAREST,this._wrapS=A.CLAMP_TO_EDGE,this._wrapT=A.CLAMP_TO_EDGE,this._anisoSamples=1;var I=this,P=[this._wrapS,this._wrapT];Object.defineProperties(P,[{get:function(){return I._wrapS},set:function(F){return I.wrapS=F}},{get:function(){return I._wrapT},set:function(F){return I.wrapT=F}}]),this._wrapVector=P;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return I._shape[0]},set:function(F){return I.width=F}},{get:function(){return I._shape[1]},set:function(F){return I.height=F}}]),this._shapeVector=L}var k=m.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(A){this.bind();var d=this.gl;if(this.type===d.FLOAT&&f.indexOf(A)>=0&&(d.getExtension("OES_texture_float_linear")||(A=d.NEAREST)),c.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,A),this._minFilter=A}},magFilter:{get:function(){return this._magFilter},set:function(A){this.bind();var d=this.gl;if(this.type===d.FLOAT&&f.indexOf(A)>=0&&(d.getExtension("OES_texture_float_linear")||(A=d.NEAREST)),c.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,A),this._magFilter=A}},mipSamples:{get:function(){return this._anisoSamples},set:function(A){var d=this._anisoSamples;if(this._anisoSamples=Math.max(A,1)|0,d!==this._anisoSamples){var D=this.gl.getExtension("EXT_texture_filter_anisotropic");D&&this.gl.texParameterf(this.gl.TEXTURE_2D,D.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,A),this._wrapS=A}},wrapT:{get:function(){return this._wrapT},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,A),this._wrapT=A}},wrap:{get:function(){return this._wrapVector},set:function(A){if(Array.isArray(A)||(A=[A,A]),A.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var d=0;d<2;++d)if(p.indexOf(A[d])<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);this._wrapS=A[0],this._wrapT=A[1];var D=this.gl;return this.bind(),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_S,this._wrapS),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_T,this._wrapT),A}},shape:{get:function(){return this._shapeVector},set:function(A){if(!Array.isArray(A))A=[A|0,A|0];else if(A.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return M(this,A[0]|0,A[1]|0),[A[0]|0,A[1]|0]}},width:{get:function(){return this._shape[0]},set:function(A){return A=A|0,M(this,A,this._shape[1]),A}},height:{get:function(){return this._shape[1]},set:function(A){return A=A|0,M(this,this._shape[0],A),A}}}),k.bind=function(A){var d=this.gl;return A!==void 0&&d.activeTexture(d.TEXTURE0+(A|0)),d.bindTexture(d.TEXTURE_2D,this.handle),A!==void 0?A|0:d.getParameter(d.ACTIVE_TEXTURE)-d.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var A=Math.min(this._shape[0],this._shape[1]),d=0;A>0;++d,A>>>=1)this._mipLevels.indexOf(d)<0&&this._mipLevels.push(d)},k.setPixels=function(A,d,D,E){var R=this.gl;this.bind(),Array.isArray(d)?(E=D,D=d[1]|0,d=d[0]|0):(d=d||0,D=D||0),E=E||0;var z=g(A)?A:A.raw;if(z){var I=this._mipLevels.indexOf(E)<0;I?(R.texImage2D(R.TEXTURE_2D,0,this.format,this.format,this.type,z),this._mipLevels.push(E)):R.texSubImage2D(R.TEXTURE_2D,E,d,D,this.format,this.type,z)}else if(A.shape&&A.stride&&A.data){if(A.shape.length<2||d+A.shape[1]>this._shape[1]>>>E||D+A.shape[0]>this._shape[0]>>>E||d<0||D<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");b(R,d,D,E,this.format,this.type,this._mipLevels,A)}else throw new Error("gl-texture2d: Unsupported data type")};function S(A,d){return A.length===3?d[2]===1&&d[1]===A[0]*A[2]&&d[0]===A[2]:d[0]===1&&d[1]===A[0]}function b(A,d,D,E,R,z,I,P){var L=P.dtype,F=P.shape.slice();if(F.length<2||F.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var B=0,O=0,V=S(F,P.stride.slice());L==="float32"?B=A.FLOAT:L==="float64"?(B=A.FLOAT,V=!1,L="float32"):L==="uint8"?B=A.UNSIGNED_BYTE:(B=A.UNSIGNED_BYTE,V=!1,L="uint8");var K=1;if(F.length===2)O=A.LUMINANCE,F=[F[0],F[1],1],P=l(P.data,F,[P.stride[0],P.stride[1],1],P.offset);else if(F.length===3){if(F[2]===1)O=A.ALPHA;else if(F[2]===2)O=A.LUMINANCE_ALPHA;else if(F[2]===3)O=A.RGB;else if(F[2]===4)O=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");K=F[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((O===A.LUMINANCE||O===A.ALPHA)&&(R===A.LUMINANCE||R===A.ALPHA)&&(O=R),O!==R)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var j=P.size,G=I.indexOf(E)<0;if(G&&I.push(E),B===z&&V)P.offset===0&&P.data.length===j?G?A.texImage2D(A.TEXTURE_2D,E,R,F[0],F[1],0,R,z,P.data):A.texSubImage2D(A.TEXTURE_2D,E,d,D,F[0],F[1],R,z,P.data):G?A.texImage2D(A.TEXTURE_2D,E,R,F[0],F[1],0,R,z,P.data.subarray(P.offset,P.offset+j)):A.texSubImage2D(A.TEXTURE_2D,E,d,D,F[0],F[1],R,z,P.data.subarray(P.offset,P.offset+j));else{var q;z===A.FLOAT?q=s.mallocFloat32(j):q=s.mallocUint8(j);var J=l(q,F,[F[2],F[2]*F[0],1]);B===A.FLOAT&&z===A.UNSIGNED_BYTE?w(J,P):u.assign(J,P),G?A.texImage2D(A.TEXTURE_2D,E,R,F[0],F[1],0,R,z,q.subarray(0,j)):A.texSubImage2D(A.TEXTURE_2D,E,d,D,F[0],F[1],R,z,q.subarray(0,j)),z===A.FLOAT?s.freeFloat32(q):s.freeUint8(q)}}function T(A){var d=A.createTexture();return A.bindTexture(A.TEXTURE_2D,d),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.NEAREST),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),d}function h(A,d,D,E,R){var z=A.getParameter(A.MAX_TEXTURE_SIZE);if(d<0||d>z||D<0||D>z)throw new Error("gl-texture2d: Invalid texture shape");if(R===A.FLOAT&&!A.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var I=T(A);return A.texImage2D(A.TEXTURE_2D,0,E,d,D,0,E,R,null),new m(A,I,d,D,E,R)}function _(A,d,D,E,R,z){var I=T(A);return A.texImage2D(A.TEXTURE_2D,0,R,R,z,d),new m(A,I,D,E,R,z)}function y(A,d){var D=d.dtype,E=d.shape.slice(),R=A.getParameter(A.MAX_TEXTURE_SIZE);if(E[0]<0||E[0]>R||E[1]<0||E[1]>R)throw new Error("gl-texture2d: Invalid texture size");var z=S(E,d.stride.slice()),I=0;D==="float32"?I=A.FLOAT:D==="float64"?(I=A.FLOAT,z=!1,D="float32"):D==="uint8"?I=A.UNSIGNED_BYTE:(I=A.UNSIGNED_BYTE,z=!1,D="uint8");var P=0;if(E.length===2)P=A.LUMINANCE,E=[E[0],E[1],1],d=l(d.data,E,[d.stride[0],d.stride[1],1],d.offset);else if(E.length===3)if(E[2]===1)P=A.ALPHA;else if(E[2]===2)P=A.LUMINANCE_ALPHA;else if(E[2]===3)P=A.RGB;else if(E[2]===4)P=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");I===A.FLOAT&&!A.getExtension("OES_texture_float")&&(I=A.UNSIGNED_BYTE,z=!1);var L,F,B=d.size;if(z)d.offset===0&&d.data.length===B?L=d.data:L=d.data.subarray(d.offset,d.offset+B);else{var O=[E[2],E[2]*E[0],1];F=s.malloc(B,D);var V=l(F,E,O,0);(D==="float32"||D==="float64")&&I===A.UNSIGNED_BYTE?w(V,d):u.assign(V,d),L=F.subarray(0,B)}var K=T(A);return A.texImage2D(A.TEXTURE_2D,0,P,E[0],E[1],0,P,I,L),z||s.free(F),new m(A,K,E[0],E[1],P,I)}function v(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||x(A),typeof arguments[1]=="number")return h(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return h(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var d=arguments[1],D=g(d)?d:d.raw;if(D)return _(A,D,d.width|0,d.height|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(d.shape&&d.data&&d.stride)return y(A,d)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433(a){"use strict";function o(i,l,u){l?l.bind():i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,null);var s=i.getParameter(i.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>s)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f<u.length;++f){var c=u[f];if(c.buffer){var p=c.buffer,x=c.size||4,g=c.type||i.FLOAT,w=!!c.normalized,M=c.stride||0,m=c.offset||0;p.bind(),i.enableVertexAttribArray(f),i.vertexAttribPointer(f,x,g,w,M,m)}else{if(typeof c=="number")i.vertexAttrib1f(f,c);else if(c.length===1)i.vertexAttrib1f(f,c[0]);else if(c.length===2)i.vertexAttrib2f(f,c[0],c[1]);else if(c.length===3)i.vertexAttrib3f(f,c[0],c[1],c[2]);else if(c.length===4)i.vertexAttrib4f(f,c[0],c[1],c[2],c[3]);else throw new Error("gl-vao: Invalid vertex attribute");i.disableVertexAttribArray(f)}}for(;f<s;++f)i.disableVertexAttribArray(f)}else{i.bindBuffer(i.ARRAY_BUFFER,null);for(var f=0;f<s;++f)i.disableVertexAttribArray(f)}}a.exports=o},870(a,o,i){"use strict";var l=i(1433);function u(f){this.gl=f,this._elements=null,this._attributes=null,this._elementsType=f.UNSIGNED_SHORT}u.prototype.bind=function(){l(this.gl,this._elements,this._attributes)},u.prototype.update=function(f,c,p){this._elements=c,this._attributes=f,this._elementsType=p||this.gl.UNSIGNED_SHORT},u.prototype.dispose=function(){},u.prototype.unbind=function(){},u.prototype.draw=function(f,c,p){p=p||0;var x=this.gl;this._elements?x.drawElements(f,c,this._elementsType,p):x.drawArrays(f,p,c)};function s(f){return new u(f)}a.exports=s},7518(a,o,i){"use strict";var l=i(1433);function u(c,p,x,g,w,M){this.location=c,this.dimension=p,this.a=x,this.b=g,this.c=w,this.d=M}u.prototype.bind=function(c){switch(this.dimension){case 1:c.vertexAttrib1f(this.location,this.a);break;case 2:c.vertexAttrib2f(this.location,this.a,this.b);break;case 3:c.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:c.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d);break}};function s(c,p,x){this.gl=c,this._ext=p,this.handle=x,this._attribs=[],this._useElements=!1,this._elementsType=c.UNSIGNED_SHORT}s.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var c=0;c<this._attribs.length;++c)this._attribs[c].bind(this.gl)},s.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},s.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},s.prototype.update=function(c,p,x){if(this.bind(),l(this.gl,p,c),this.unbind(),this._attribs.length=0,c)for(var g=0;g<c.length;++g){var w=c[g];typeof w=="number"?this._attribs.push(new u(g,1,w)):Array.isArray(w)&&this._attribs.push(new u(g,w.length,w[0],w[1],w[2],w[3]))}this._useElements=!!p,this._elementsType=x||this.gl.UNSIGNED_SHORT},s.prototype.draw=function(c,p,x){x=x||0;var g=this.gl;this._useElements?g.drawElements(c,p,this._elementsType,x):g.drawArrays(c,x,p)};function f(c,p){return new s(c,p,p.createVertexArrayOES())}a.exports=f},8116(a,o,i){"use strict";var l=i(7518),u=i(870);function s(c){this.bindVertexArrayOES=c.bindVertexArray.bind(c),this.createVertexArrayOES=c.createVertexArray.bind(c),this.deleteVertexArrayOES=c.deleteVertexArray.bind(c)}function f(c,p,x,g){var w=c.createVertexArray?new s(c):c.getExtension("OES_vertex_array_object"),M;return w?M=l(c,w):M=u(c),M.update(p,x,g),M}a.exports=f},5632(a){a.exports=o;function o(i,l,u){return i[0]=l[0]+u[0],i[1]=l[1]+u[1],i[2]=l[2]+u[2],i}},8192(a,o,i){a.exports=f;var l=i(2825),u=i(3536),s=i(244);function f(c,p){var x=l(c[0],c[1],c[2]),g=l(p[0],p[1],p[2]);u(x,x),u(g,g);var w=s(x,g);return w>1?0:Math.acos(w)}},9226(a){a.exports=o;function o(i,l){return i[0]=Math.ceil(l[0]),i[1]=Math.ceil(l[1]),i[2]=Math.ceil(l[2]),i}},3126(a){a.exports=o;function o(i){var l=new Float32Array(3);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l}},3990(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i}},1091(a){a.exports=o;function o(){var i=new Float32Array(3);return i[0]=0,i[1]=0,i[2]=0,i}},5911(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],p=u[0],x=u[1],g=u[2];return i[0]=f*g-c*x,i[1]=c*p-s*g,i[2]=s*x-f*p,i}},5455(a,o,i){a.exports=i(7056)},7056(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return Math.sqrt(u*u+s*s+f*f)}},4008(a,o,i){a.exports=i(6690)},6690(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i}},244(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]}},2613(a){a.exports=1e-6},9922(a,o,i){a.exports=u;var l=i(2613);function u(s,f){var c=s[0],p=s[1],x=s[2],g=f[0],w=f[1],M=f[2];return Math.abs(c-g)<=l*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(p-w)<=l*Math.max(1,Math.abs(p),Math.abs(w))&&Math.abs(x-M)<=l*Math.max(1,Math.abs(x),Math.abs(M))}},9265(a){a.exports=o;function o(i,l){return i[0]===l[0]&&i[1]===l[1]&&i[2]===l[2]}},2681(a){a.exports=o;function o(i,l){return i[0]=Math.floor(l[0]),i[1]=Math.floor(l[1]),i[2]=Math.floor(l[2]),i}},5137(a,o,i){a.exports=u;var l=i(1091)();function u(s,f,c,p,x,g){var w,M;for(f||(f=3),c||(c=0),p?M=Math.min(p*f+c,s.length):M=s.length,w=c;w<M;w+=f)l[0]=s[w],l[1]=s[w+1],l[2]=s[w+2],x(l,l,g),s[w]=l[0],s[w+1]=l[1],s[w+2]=l[2];return s}},2825(a){a.exports=o;function o(i,l,u){var s=new Float32Array(3);return s[0]=i,s[1]=l,s[2]=u,s}},2931(a,o,i){a.exports={EPSILON:i(2613),create:i(1091),clone:i(3126),angle:i(8192),fromValues:i(2825),copy:i(3990),set:i(1463),equals:i(9922),exactEquals:i(9265),add:i(5632),subtract:i(6843),sub:i(2229),multiply:i(5847),mul:i(4505),divide:i(6690),div:i(4008),min:i(8107),max:i(7417),floor:i(2681),ceil:i(9226),round:i(2447),scale:i(6621),scaleAndAdd:i(8489),distance:i(7056),dist:i(5455),squaredDistance:i(2953),sqrDist:i(6141),length:i(1387),len:i(868),squaredLength:i(3066),sqrLen:i(5486),negate:i(5093),inverse:i(811),normalize:i(3536),dot:i(244),cross:i(5911),lerp:i(6658),random:i(7636),transformMat4:i(5673),transformMat3:i(492),transformQuat:i(264),rotateX:i(6894),rotateY:i(109),rotateZ:i(8692),forEach:i(5137)}},811(a){a.exports=o;function o(i,l){return i[0]=1/l[0],i[1]=1/l[1],i[2]=1/l[2],i}},868(a,o,i){a.exports=i(1387)},1387(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2];return Math.sqrt(l*l+u*u+s*s)}},6658(a){a.exports=o;function o(i,l,u,s){var f=l[0],c=l[1],p=l[2];return i[0]=f+s*(u[0]-f),i[1]=c+s*(u[1]-c),i[2]=p+s*(u[2]-p),i}},7417(a){a.exports=o;function o(i,l,u){return i[0]=Math.max(l[0],u[0]),i[1]=Math.max(l[1],u[1]),i[2]=Math.max(l[2],u[2]),i}},8107(a){a.exports=o;function o(i,l,u){return i[0]=Math.min(l[0],u[0]),i[1]=Math.min(l[1],u[1]),i[2]=Math.min(l[2],u[2]),i}},4505(a,o,i){a.exports=i(5847)},5847(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u[0],i[1]=l[1]*u[1],i[2]=l[2]*u[2],i}},5093(a){a.exports=o;function o(i,l){return i[0]=-l[0],i[1]=-l[1],i[2]=-l[2],i}},3536(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],c=u*u+s*s+f*f;return c>0&&(c=1/Math.sqrt(c),i[0]=l[0]*c,i[1]=l[1]*c,i[2]=l[2]*c),i}},7636(a){a.exports=o;function o(i,l){l=l||1;var u=Math.random()*2*Math.PI,s=Math.random()*2-1,f=Math.sqrt(1-s*s)*l;return i[0]=Math.cos(u)*f,i[1]=Math.sin(u)*f,i[2]=s*l,i}},6894(a){a.exports=o;function o(i,l,u,s){var f=u[1],c=u[2],p=l[1]-f,x=l[2]-c,g=Math.sin(s),w=Math.cos(s);return i[0]=l[0],i[1]=f+p*w-x*g,i[2]=c+p*g+x*w,i}},109(a){a.exports=o;function o(i,l,u,s){var f=u[0],c=u[2],p=l[0]-f,x=l[2]-c,g=Math.sin(s),w=Math.cos(s);return i[0]=f+x*g+p*w,i[1]=l[1],i[2]=c+x*w-p*g,i}},8692(a){a.exports=o;function o(i,l,u,s){var f=u[0],c=u[1],p=l[0]-f,x=l[1]-c,g=Math.sin(s),w=Math.cos(s);return i[0]=f+p*w-x*g,i[1]=c+p*g+x*w,i[2]=l[2],i}},2447(a){a.exports=o;function o(i,l){return i[0]=Math.round(l[0]),i[1]=Math.round(l[1]),i[2]=Math.round(l[2]),i}},6621(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i}},8489(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i}},1463(a){a.exports=o;function o(i,l,u,s){return i[0]=l,i[1]=u,i[2]=s,i}},6141(a,o,i){a.exports=i(2953)},5486(a,o,i){a.exports=i(3066)},2953(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return u*u+s*s+f*f}},3066(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2];return l*l+u*u+s*s}},2229(a,o,i){a.exports=i(6843)},6843(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i}},492(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2];return i[0]=s*u[0]+f*u[3]+c*u[6],i[1]=s*u[1]+f*u[4]+c*u[7],i[2]=s*u[2]+f*u[5]+c*u[8],i}},5673(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],p=u[3]*s+u[7]*f+u[11]*c+u[15];return p=p||1,i[0]=(u[0]*s+u[4]*f+u[8]*c+u[12])/p,i[1]=(u[1]*s+u[5]*f+u[9]*c+u[13])/p,i[2]=(u[2]*s+u[6]*f+u[10]*c+u[14])/p,i}},264(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],p=u[0],x=u[1],g=u[2],w=u[3],M=x*c-g*f,m=g*s-p*c,k=p*f-x*s;return M*=2,m*=2,k*=2,i[0]=s+w*M+x*k-g*m,i[1]=f+w*m+g*M-p*k,i[2]=c+w*k+p*m-x*M,i}},4361(a){a.exports=o;function o(i,l,u){return i[0]=l[0]+u[0],i[1]=l[1]+u[1],i[2]=l[2]+u[2],i[3]=l[3]+u[3],i}},2335(a){a.exports=o;function o(i){var l=new Float32Array(4);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l}},2933(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3],i}},7536(a){a.exports=o;function o(){var i=new Float32Array(4);return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}},4691(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],c=l[3]-i[3];return Math.sqrt(u*u+s*s+f*f+c*c)}},1373(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i[3]=l[3]/u[3],i}},3750(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3]*l[3]}},3390(a){a.exports=o;function o(i,l,u,s){var f=new Float32Array(4);return f[0]=i,f[1]=l,f[2]=u,f[3]=s,f}},9970(a,o,i){a.exports={create:i(7536),clone:i(2335),fromValues:i(3390),copy:i(2933),set:i(4578),add:i(4361),subtract:i(6860),multiply:i(3576),divide:i(1373),min:i(2334),max:i(160),scale:i(9288),scaleAndAdd:i(4844),distance:i(4691),squaredDistance:i(7960),length:i(6808),squaredLength:i(483),negate:i(1498),inverse:i(4494),normalize:i(5177),dot:i(3750),lerp:i(2573),random:i(9131),transformMat4:i(5352),transformQuat:i(4041)}},4494(a){a.exports=o;function o(i,l){return i[0]=1/l[0],i[1]=1/l[1],i[2]=1/l[2],i[3]=1/l[3],i}},6808(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return Math.sqrt(l*l+u*u+s*s+f*f)}},2573(a){a.exports=o;function o(i,l,u,s){var f=l[0],c=l[1],p=l[2],x=l[3];return i[0]=f+s*(u[0]-f),i[1]=c+s*(u[1]-c),i[2]=p+s*(u[2]-p),i[3]=x+s*(u[3]-x),i}},160(a){a.exports=o;function o(i,l,u){return i[0]=Math.max(l[0],u[0]),i[1]=Math.max(l[1],u[1]),i[2]=Math.max(l[2],u[2]),i[3]=Math.max(l[3],u[3]),i}},2334(a){a.exports=o;function o(i,l,u){return i[0]=Math.min(l[0],u[0]),i[1]=Math.min(l[1],u[1]),i[2]=Math.min(l[2],u[2]),i[3]=Math.min(l[3],u[3]),i}},3576(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u[0],i[1]=l[1]*u[1],i[2]=l[2]*u[2],i[3]=l[3]*u[3],i}},1498(a){a.exports=o;function o(i,l){return i[0]=-l[0],i[1]=-l[1],i[2]=-l[2],i[3]=-l[3],i}},5177(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],c=l[3],p=u*u+s*s+f*f+c*c;return p>0&&(p=1/Math.sqrt(p),i[0]=u*p,i[1]=s*p,i[2]=f*p,i[3]=c*p),i}},9131(a,o,i){var l=i(5177),u=i(9288);a.exports=s;function s(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),l(f,f),u(f,f,c),f}},9288(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i[3]=l[3]*u,i}},4844(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i[3]=l[3]+u[3]*s,i}},4578(a){a.exports=o;function o(i,l,u,s,f){return i[0]=l,i[1]=u,i[2]=s,i[3]=f,i}},7960(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],c=l[3]-i[3];return u*u+s*s+f*f+c*c}},483(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return l*l+u*u+s*s+f*f}},6860(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i[3]=l[3]-u[3],i}},5352(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],p=l[3];return i[0]=u[0]*s+u[4]*f+u[8]*c+u[12]*p,i[1]=u[1]*s+u[5]*f+u[9]*c+u[13]*p,i[2]=u[2]*s+u[6]*f+u[10]*c+u[14]*p,i[3]=u[3]*s+u[7]*f+u[11]*c+u[15]*p,i}},4041(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],p=u[0],x=u[1],g=u[2],w=u[3],M=w*s+x*c-g*f,m=w*f+g*s-p*c,k=w*c+p*f-x*s,S=-p*s-x*f-g*c;return i[0]=M*w+S*-p+m*-g-k*-x,i[1]=m*w+S*-x+k*-p-M*-g,i[2]=k*w+S*-g+M*-x-m*-p,i[3]=l[3],i}},1848(a,o,i){var l=i(4905),u=i(6468);a.exports=s;function s(f){for(var c=Array.isArray(f)?f:l(f),p=0;p<c.length;p++){var x=c[p];if(x.type==="preprocessor"){var g=x.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(g&&g[2]){var w=g[1],M=g[2];return(w?u(M):M).trim()}}}}},5874(a,o,i){a.exports=d;var l=i(620),u=i(7827),s=i(6852),f=i(7932),c=i(3508),p=999,x=9999,g=0,w=1,M=2,m=3,k=4,S=5,b=6,T=7,h=8,_=9,y=10,v=11,A=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"];function d(D){var E=0,R=0,z=p,I,P,L=[],F=[],B=0,O=0,V=1,K=0,j=0,G=!1,q=!1,J="",te;D=D||{};var Z=s,ie=l;D.version==="300 es"&&(Z=c,ie=f);for(var Q={},re={},E=0;E<Z.length;E++)Q[Z[E]]=!0;for(var E=0;E<ie.length;E++)re[ie[E]]=!0;return function(oe){return F=[],oe!==null?ee(oe):ae()};function ue(oe){oe.length&&F.push({type:A[z],data:oe,position:j,line:V,column:K})}function ee(oe){E=0,oe.toString&&(oe=oe.toString()),J+=oe.replace(/\r\n/g,`
`),te=J.length;for(var ve;I=J[E],E<te;){switch(ve=E,z){case g:E=ge();break;case w:E=Se();break;case M:E=ke();break;case m:E=Le();break;case k:E=Y();break;case v:E=le();break;case S:E=$();break;case x:E=pe();break;case _:E=Te();break;case p:E=ce();break}ve!==E&&(J[ve]===`
`?(K=0,++V):++K)}return R+=E,J=J.slice(E),F}function ae(oe){return L.length&&ue(L.join("")),z=y,ue("(eof)"),F}function ce(){return L=L.length?[]:L,P==="/"&&I==="*"?(j=R+E-1,z=g,P=I,E+1):P==="/"&&I==="/"?(j=R+E-1,z=w,P=I,E+1):I==="#"?(z=M,j=R+E,E):/\s/.test(I)?(z=_,j=R+E,E):(G=/\d/.test(I),q=/[^\w_]/.test(I),j=R+E,z=G?k:q?m:x,E)}function Te(){return/[^\s]/g.test(I)?(ue(L.join("")),z=p,E):(L.push(I),P=I,E+1)}function ke(){return(I==="\r"||I===`
`)&&P!=="\\"?(ue(L.join("")),z=p,E):(L.push(I),P=I,E+1)}function Se(){return ke()}function ge(){return I==="/"&&P==="*"?(L.push(I),ue(L.join("")),z=p,E+1):(L.push(I),P=I,E+1)}function Le(){if(P==="."&&/\d/.test(I))return z=S,E;if(P==="/"&&I==="*")return z=g,E;if(P==="/"&&I==="/")return z=w,E;if(I==="."&&L.length){for(;Ce(L););return z=S,E}if(I===";"||I===")"||I==="("){if(L.length)for(;Ce(L););return ue(I),z=p,E+1}var oe=L.length===2&&I!=="=";if(/[\w_\d\s]/.test(I)||oe){for(;Ce(L););return z=p,E}return L.push(I),P=I,E+1}function Ce(oe){var ve=0,he,me;do{if(he=u.indexOf(oe.slice(0,oe.length+ve).join("")),me=u[he],he===-1){if(ve--+oe.length>0)continue;me=oe.slice(0,1).join("")}return ue(me),j+=me.length,L=L.slice(me.length),L.length}while(!0)}function le(){return/[^a-fA-F0-9]/.test(I)?(ue(L.join("")),z=p,E):(L.push(I),P=I,E+1)}function Y(){return I==="."||/[eE]/.test(I)?(L.push(I),z=S,P=I,E+1):I==="x"&&L.length===1&&L[0]==="0"?(z=v,L.push(I),P=I,E+1):/[^\d]/.test(I)?(ue(L.join("")),z=p,E):(L.push(I),P=I,E+1)}function $(){return I==="f"&&(L.push(I),P=I,E+=1),/[eE]/.test(I)||(I==="-"||I==="+")&&/[eE]/.test(P)?(L.push(I),P=I,E+1):/[^\d]/.test(I)?(ue(L.join("")),z=p,E):(L.push(I),P=I,E+1)}function pe(){if(/[^\d\w_]/.test(I)){var oe=L.join("");return re[oe]?z=h:Q[oe]?z=T:z=b,ue(L.join("")),z=p,E}return L.push(I),P=I,E+1}}},3508(a,o,i){var l=i(6852);l=l.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),a.exports=l.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(a){a.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(a,o,i){var l=i(620);a.exports=l.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(a){a.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(a){a.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905(a,o,i){var l=i(5874);a.exports=u;function u(s,f){var c=l(f),p=[];return p=p.concat(c(s)),p=p.concat(c(null)),p}},3236(a){a.exports=function(o){typeof o=="string"&&(o=[o]);for(var i=[].slice.call(arguments,1),l=[],u=0;u<o.length-1;u++)l.push(o[u],i[u]||"");return l.push(o[u]),l.join("")}},7520(a,o,i){"use strict";var l=i(9507);function u(){var s=!1;try{var f=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("test",null,f),window.removeEventListener("test",null,f)}catch(c){s=!1}return s}a.exports=l&&u()},3778(a,o){o.read=function(i,l,u,s,f){var c,p,x=f*8-s-1,g=(1<<x)-1,w=g>>1,M=-7,m=u?f-1:0,k=u?-1:1,S=i[l+m];for(m+=k,c=S&(1<<-M)-1,S>>=-M,M+=x;M>0;c=c*256+i[l+m],m+=k,M-=8);for(p=c&(1<<-M)-1,c>>=-M,M+=s;M>0;p=p*256+i[l+m],m+=k,M-=8);if(c===0)c=1-w;else{if(c===g)return p?NaN:(S?-1:1)*(1/0);p=p+Math.pow(2,s),c=c-w}return(S?-1:1)*p*Math.pow(2,c-s)},o.write=function(i,l,u,s,f,c){var p,x,g,w=c*8-f-1,M=(1<<w)-1,m=M>>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=s?0:c-1,b=s?1:-1,T=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(x=isNaN(l)?1:0,p=M):(p=Math.floor(Math.log(l)/Math.LN2),l*(g=Math.pow(2,-p))<1&&(p--,g*=2),p+m>=1?l+=k/g:l+=k*Math.pow(2,1-m),l*g>=2&&(p++,g/=2),p+m>=M?(x=0,p=M):p+m>=1?(x=(l*g-1)*Math.pow(2,f),p=p+m):(x=l*Math.pow(2,m-1)*Math.pow(2,f),p=0));f>=8;i[u+S]=x&255,S+=b,x/=256,f-=8);for(p=p<<f|x,w+=f;w>0;i[u+S]=p&255,S+=b,p/=256,w-=8);i[u+S-b]|=T*128}},8954(a,o,i){"use strict";a.exports=m;var l=i(3250),u=i(6803).Fw;function s(k,S,b){this.vertices=k,this.adjacent=S,this.boundary=b,this.lastVisited=-1}s.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var S=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=S};function f(k,S,b){this.vertices=k,this.cell=S,this.index=b}function c(k,S){return u(k.vertices,S.vertices)}function p(k){return function(){var S=this.tuple;return k.apply(this,S)}}function x(k){var S=l[k+1];return S||(S=l),p(S)}var g=[];function w(k,S,b){this.dimension=k,this.vertices=S,this.simplices=b,this.interior=b.filter(function(_){return!_.boundary}),this.tuple=new Array(k+1);for(var T=0;T<=k;++T)this.tuple[T]=this.vertices[T];var h=g[k];h||(h=g[k]=x(k)),this.orient=h}var M=w.prototype;M.handleBoundaryDegeneracy=function(k,S){var b=this.dimension,T=this.vertices.length-1,h=this.tuple,_=this.vertices,y=[k];for(k.lastVisited=-T;y.length>0;){k=y.pop();for(var v=k.adjacent,A=0;A<=b;++A){var d=v[A];if(!(!d.boundary||d.lastVisited<=-T)){for(var D=d.vertices,E=0;E<=b;++E){var R=D[E];R<0?h[E]=S:h[E]=_[R]}var z=this.orient();if(z>0)return d;d.lastVisited=-T,z===0&&y.push(d)}}}return null},M.walk=function(k,S){var b=this.vertices.length-1,T=this.dimension,h=this.vertices,_=this.tuple,y=S?this.interior.length*Math.random()|0:this.interior.length-1,v=this.interior[y];e:for(;!v.boundary;){for(var A=v.vertices,d=v.adjacent,D=0;D<=T;++D)_[D]=h[A[D]];v.lastVisited=b;for(var D=0;D<=T;++D){var E=d[D];if(!(E.lastVisited>=b)){var R=_[D];_[D]=k;var z=this.orient();if(_[D]=R,z<0){v=E;continue e}else E.boundary?E.lastVisited=-b:E.lastVisited=b}}return}return v},M.addPeaks=function(k,S){var b=this.vertices.length-1,T=this.dimension,h=this.vertices,_=this.tuple,y=this.interior,v=this.simplices,A=[S];S.lastVisited=b,S.vertices[S.vertices.indexOf(-1)]=b,S.boundary=!1,y.push(S);for(var d=[];A.length>0;){var S=A.pop(),D=S.vertices,E=S.adjacent,R=D.indexOf(b);if(!(R<0)){for(var z=0;z<=T;++z)if(z!==R){var I=E[z];if(!(!I.boundary||I.lastVisited>=b)){var P=I.vertices;if(I.lastVisited!==-b){for(var L=0,F=0;F<=T;++F)P[F]<0?(L=F,_[F]=k):_[F]=h[P[F]];var B=this.orient();if(B>0){P[L]=b,I.boundary=!1,y.push(I),A.push(I),I.lastVisited=b;continue}else I.lastVisited=-b}var O=I.adjacent,V=D.slice(),K=E.slice(),j=new s(V,K,!0);v.push(j);var G=O.indexOf(S);if(!(G<0)){O[G]=j,K[R]=I,V[z]=-1,K[z]=S,E[z]=j,j.flip();for(var F=0;F<=T;++F){var q=V[F];if(!(q<0||q===b)){for(var J=new Array(T-1),te=0,Z=0;Z<=T;++Z){var ie=V[Z];ie<0||Z===F||(J[te++]=ie)}d.push(new f(J,j,F))}}}}}}}d.sort(c);for(var z=0;z+1<d.length;z+=2){var Q=d[z],re=d[z+1],ue=Q.index,ee=re.index;ue<0||ee<0||(Q.cell.adjacent[Q.index]=re.cell,re.cell.adjacent[re.index]=Q.cell)}},M.insert=function(k,S){var b=this.vertices;b.push(k);var T=this.walk(k,S);if(T){for(var h=this.dimension,_=this.tuple,y=0;y<=h;++y){var v=T.vertices[y];v<0?_[y]=k:_[y]=b[v]}var A=this.orient(_);A<0||A===0&&(T=this.handleBoundaryDegeneracy(T,k),!T)||this.addPeaks(k,T)}},M.boundary=function(){for(var k=this.dimension,S=[],b=this.simplices,T=b.length,h=0;h<T;++h){var _=b[h];if(_.boundary){for(var y=new Array(k),v=_.vertices,A=0,d=0,D=0;D<=k;++D)v[D]>=0?y[A++]=v[D]:d=D&1;if(d===(k&1)){var E=y[0];y[0]=y[1],y[1]=E}S.push(y)}}return S};function m(k,S){var b=k.length;if(b===0)throw new Error("Must have at least d+1 points");var T=k[0].length;if(b<=T)throw new Error("Must input at least d+1 points");var h=k.slice(0,T+1),_=l.apply(void 0,h);if(_===0)throw new Error("Input not in general position");for(var y=new Array(T+1),v=0;v<=T;++v)y[v]=v;_<0&&(y[0]=1,y[1]=0);for(var A=new s(y,new Array(T+1),!1),d=A.adjacent,D=new Array(T+2),v=0;v<=T;++v){for(var E=y.slice(),R=0;R<=T;++R)R===v&&(E[R]=-1);var z=E[0];E[0]=E[1],E[1]=z;var I=new s(E,new Array(T+1),!0);d[v]=I,D[v]=I}D[T+1]=A;for(var v=0;v<=T;++v)for(var E=d[v].vertices,P=d[v].adjacent,R=0;R<=T;++R){var L=E[R];if(L<0){P[R]=A;continue}for(var F=0;F<=T;++F)d[F].vertices.indexOf(L)<0&&(P[R]=d[F])}for(var B=new w(T,h,D),O=!!S,v=T+1;v<b;++v)B.insert(k[v],O);return B.boundary()}},3352(a,o,i){"use strict";var l=i(2478),u=0,s=1,f=2;a.exports=A;function c(d,D,E,R,z){this.mid=d,this.left=D,this.right=E,this.leftPoints=R,this.rightPoints=z,this.count=(D?D.count:0)+(E?E.count:0)+R.length}var p=c.prototype;function x(d,D){d.mid=D.mid,d.left=D.left,d.right=D.right,d.leftPoints=D.leftPoints,d.rightPoints=D.rightPoints,d.count=D.count}function g(d,D){var E=_(D);d.mid=E.mid,d.left=E.left,d.right=E.right,d.leftPoints=E.leftPoints,d.rightPoints=E.rightPoints,d.count=E.count}function w(d,D){var E=d.intervals([]);E.push(D),g(d,E)}function M(d,D){var E=d.intervals([]),R=E.indexOf(D);return R<0?u:(E.splice(R,1),g(d,E),s)}p.intervals=function(d){return d.push.apply(d,this.leftPoints),this.left&&this.left.intervals(d),this.right&&this.right.intervals(d),d},p.insert=function(d){var D=this.count-this.leftPoints.length;if(this.count+=1,d[1]<this.mid)this.left?4*(this.left.count+1)>3*(D+1)?w(this,d):this.left.insert(d):this.left=_([d]);else if(d[0]>this.mid)this.right?4*(this.right.count+1)>3*(D+1)?w(this,d):this.right.insert(d):this.right=_([d]);else{var E=l.ge(this.leftPoints,d,T),R=l.ge(this.rightPoints,d,h);this.leftPoints.splice(E,0,d),this.rightPoints.splice(R,0,d)}},p.remove=function(d){var D=this.count-this.leftPoints;if(d[1]<this.mid){if(!this.left)return u;var E=this.right?this.right.count:0;if(4*E>3*(D-1))return M(this,d);var R=this.left.remove(d);return R===f?(this.left=null,this.count-=1,s):(R===s&&(this.count-=1),R)}else if(d[0]>this.mid){if(!this.right)return u;var z=this.left?this.left.count:0;if(4*z>3*(D-1))return M(this,d);var R=this.right.remove(d);return R===f?(this.right=null,this.count-=1,s):(R===s&&(this.count-=1),R)}else{if(this.count===1)return this.leftPoints[0]===d?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===d){if(this.left&&this.right){for(var I=this,P=this.left;P.right;)I=P,P=P.right;if(I===this)P.right=this.right;else{var L=this.left,R=this.right;I.count-=P.count,I.right=P.left,P.left=L,P.right=R}x(this,P),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?x(this,this.left):x(this,this.right);return s}for(var L=l.ge(this.leftPoints,d,T);L<this.leftPoints.length&&this.leftPoints[L][0]===d[0];++L)if(this.leftPoints[L]===d){this.count-=1,this.leftPoints.splice(L,1);for(var R=l.ge(this.rightPoints,d,h);R<this.rightPoints.length&&this.rightPoints[R][1]===d[1];++R)if(this.rightPoints[R]===d)return this.rightPoints.splice(R,1),s}return u}};function m(d,D,E){for(var R=0;R<d.length&&d[R][0]<=D;++R){var z=E(d[R]);if(z)return z}}function k(d,D,E){for(var R=d.length-1;R>=0&&d[R][1]>=D;--R){var z=E(d[R]);if(z)return z}}function S(d,D){for(var E=0;E<d.length;++E){var R=D(d[E]);if(R)return R}}p.queryPoint=function(d,D){if(d<this.mid){if(this.left){var E=this.left.queryPoint(d,D);if(E)return E}return m(this.leftPoints,d,D)}else if(d>this.mid){if(this.right){var E=this.right.queryPoint(d,D);if(E)return E}return k(this.rightPoints,d,D)}else return S(this.leftPoints,D)},p.queryInterval=function(d,D,E){if(d<this.mid&&this.left){var R=this.left.queryInterval(d,D,E);if(R)return R}if(D>this.mid&&this.right){var R=this.right.queryInterval(d,D,E);if(R)return R}return D<this.mid?m(this.leftPoints,D,E):d>this.mid?k(this.rightPoints,d,E):S(this.leftPoints,E)};function b(d,D){return d-D}function T(d,D){var E=d[0]-D[0];return E||d[1]-D[1]}function h(d,D){var E=d[1]-D[1];return E||d[0]-D[0]}function _(d){if(d.length===0)return null;for(var D=[],E=0;E<d.length;++E)D.push(d[E][0],d[E][1]);D.sort(b);for(var R=D[D.length>>1],z=[],I=[],P=[],E=0;E<d.length;++E){var L=d[E];L[1]<R?z.push(L):R<L[0]?I.push(L):P.push(L)}var F=P,B=P.slice();return F.sort(T),B.sort(h),new c(R,_(z),_(I),F,B)}function y(d){this.root=d}var v=y.prototype;v.insert=function(d){this.root?this.root.insert(d):this.root=new c(d[0],null,null,[d],[d])},v.remove=function(d){if(this.root){var D=this.root.remove(d);return D===f&&(this.root=null),D!==u}return!1},v.queryPoint=function(d,D){if(this.root)return this.root.queryPoint(d,D)},v.queryInterval=function(d,D,E){if(d<=D&&this.root)return this.root.queryInterval(d,D,E)},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([]):[]}});function A(d){return!d||d.length===0?new y(null):new y(_(d))}},9507(a){a.exports=!0},7163(a){a.exports=function(l){return l!=null&&(o(l)||i(l)||!!l._isBuffer)};function o(l){return!!l.constructor&&typeof l.constructor.isBuffer=="function"&&l.constructor.isBuffer(l)}function i(l){return typeof l.readFloatLE=="function"&&typeof l.slice=="function"&&o(l.slice(0,0))}},2431(a){"use strict";a.exports=u,a.exports.isMobile=u,a.exports.default=u;let o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,l=/android|ipad|playbook|silk/i;function u(s){s||(s={});let f=s.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;let c=o.test(f)&&!i.test(f)||!!s.tablet&&l.test(f);return!c&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},5219(a){"use strict";a.exports=function(o){for(var i=o.length,l,u=0;u<i;u++)if(l=o.charCodeAt(u),(l<9||l>13)&&l!==32&&l!==133&&l!==160&&l!==5760&&l!==6158&&(l<8192||l>8205)&&l!==8232&&l!==8233&&l!==8239&&l!==8287&&l!==8288&&l!==12288&&l!==65279)return!1;return!0}},395(a){function o(i,l,u){return i*(1-u)+l*u}a.exports=o},2652(a,o,i){var l=i(4335),u=i(6864),s=i(1903),f=i(9921),c=i(7608),p=i(5665),x={length:i(1387),normalize:i(3536),dot:i(244),cross:i(5911)},g=u(),w=u(),M=[0,0,0,0],m=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];a.exports=function(_,y,v,A,d,D){if(y||(y=[0,0,0]),v||(v=[0,0,0]),A||(A=[0,0,0]),d||(d=[0,0,0,1]),D||(D=[0,0,0,1]),!l(g,_)||(s(w,g),w[3]=0,w[7]=0,w[11]=0,w[15]=1,Math.abs(f(w)<1e-8)))return!1;var E=g[3],R=g[7],z=g[11],I=g[12],P=g[13],L=g[14],F=g[15];if(E!==0||R!==0||z!==0){M[0]=E,M[1]=R,M[2]=z,M[3]=F;var B=c(w,w);if(!B)return!1;p(w,w),S(d,M,w)}else d[0]=d[1]=d[2]=0,d[3]=1;if(y[0]=I,y[1]=P,y[2]=L,b(m,g),v[0]=x.length(m[0]),x.normalize(m[0],m[0]),A[0]=x.dot(m[0],m[1]),T(m[1],m[1],m[0],1,-A[0]),v[1]=x.length(m[1]),x.normalize(m[1],m[1]),A[0]/=v[1],A[1]=x.dot(m[0],m[2]),T(m[2],m[2],m[0],1,-A[1]),A[2]=x.dot(m[1],m[2]),T(m[2],m[2],m[1],1,-A[2]),v[2]=x.length(m[2]),x.normalize(m[2],m[2]),A[1]/=v[2],A[2]/=v[2],x.cross(k,m[1],m[2]),x.dot(m[0],k)<0)for(var O=0;O<3;O++)v[O]*=-1,m[O][0]*=-1,m[O][1]*=-1,m[O][2]*=-1;return D[0]=.5*Math.sqrt(Math.max(1+m[0][0]-m[1][1]-m[2][2],0)),D[1]=.5*Math.sqrt(Math.max(1-m[0][0]+m[1][1]-m[2][2],0)),D[2]=.5*Math.sqrt(Math.max(1-m[0][0]-m[1][1]+m[2][2],0)),D[3]=.5*Math.sqrt(Math.max(1+m[0][0]+m[1][1]+m[2][2],0)),m[2][1]>m[1][2]&&(D[0]=-D[0]),m[0][2]>m[2][0]&&(D[1]=-D[1]),m[1][0]>m[0][1]&&(D[2]=-D[2]),!0};function S(h,_,y){var v=_[0],A=_[1],d=_[2],D=_[3];return h[0]=y[0]*v+y[4]*A+y[8]*d+y[12]*D,h[1]=y[1]*v+y[5]*A+y[9]*d+y[13]*D,h[2]=y[2]*v+y[6]*A+y[10]*d+y[14]*D,h[3]=y[3]*v+y[7]*A+y[11]*d+y[15]*D,h}function b(h,_){h[0][0]=_[0],h[0][1]=_[1],h[0][2]=_[2],h[1][0]=_[4],h[1][1]=_[5],h[1][2]=_[6],h[2][0]=_[8],h[2][1]=_[9],h[2][2]=_[10]}function T(h,_,y,v,A){h[0]=_[0]*v+y[0]*A,h[1]=_[1]*v+y[1]*A,h[2]=_[2]*v+y[2]*A}},4335(a){a.exports=function(i,l){var u=l[15];if(u===0)return!1;for(var s=1/u,f=0;f<16;f++)i[f]=l[f]*s;return!0}},7442(a,o,i){var l=i(6658),u=i(7182),s=i(2652),f=i(9921),c=i(8648),p=M(),x=M(),g=M();a.exports=w;function w(S,b,T,h){if(f(b)===0||f(T)===0)return!1;var _=s(b,p.translate,p.scale,p.skew,p.perspective,p.quaternion),y=s(T,x.translate,x.scale,x.skew,x.perspective,x.quaternion);return!_||!y?!1:(l(g.translate,p.translate,x.translate,h),l(g.skew,p.skew,x.skew,h),l(g.scale,p.scale,x.scale,h),l(g.perspective,p.perspective,x.perspective,h),c(g.quaternion,p.quaternion,x.quaternion,h),u(S,g.translate,g.scale,g.skew,g.perspective,g.quaternion),!0)}function M(){return{translate:m(),scale:m(1),skew:m(),perspective:k(),quaternion:k()}}function m(S){return[S||0,S||0,S||0]}function k(){return[0,0,0,1]}},7182(a,o,i){var l={identity:i(7894),translate:i(7656),multiply:i(6760),create:i(6864),scale:i(2504),fromRotationTranslation:i(6743)},u=l.create(),s=l.create();a.exports=function(c,p,x,g,w,M){return l.identity(c),l.fromRotationTranslation(c,M,p),c[3]=w[0],c[7]=w[1],c[11]=w[2],c[15]=w[3],l.identity(s),g[2]!==0&&(s[9]=g[2],l.multiply(c,c,s)),g[1]!==0&&(s[9]=0,s[8]=g[1],l.multiply(c,c,s)),g[0]!==0&&(s[8]=0,s[4]=g[0],l.multiply(c,c,s)),l.scale(c,c,x),c}},1811(a,o,i){"use strict";var l=i(2478),u=i(7442),s=i(7608),f=i(5567),c=i(2408),p=i(7089),x=i(6582),g=i(7656),w=i(2504),M=i(3536),m=[0,0,0];a.exports=T;function k(h){this._components=h.slice(),this._time=[0],this.prevMatrix=h.slice(),this.nextMatrix=h.slice(),this.computedMatrix=h.slice(),this.computedInverse=h.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 S=k.prototype;S.recalcMatrix=function(h){var _=this._time,y=l.le(_,h),v=this.computedMatrix;if(!(y<0)){var A=this._components;if(y===_.length-1)for(var d=16*y,D=0;D<16;++D)v[D]=A[d++];else{for(var E=_[y+1]-_[y],d=16*y,R=this.prevMatrix,z=!0,D=0;D<16;++D)R[D]=A[d++];for(var I=this.nextMatrix,D=0;D<16;++D)I[D]=A[d++],z=z&&R[D]===I[D];if(E<1e-6||z)for(var D=0;D<16;++D)v[D]=R[D];else u(v,R,I,(h-_[y])/E)}var P=this.computedUp;P[0]=v[1],P[1]=v[5],P[2]=v[9],M(P,P);var L=this.computedInverse;s(L,v);var F=this.computedEye,B=L[15];F[0]=L[12]/B,F[1]=L[13]/B,F[2]=L[14]/B;for(var O=this.computedCenter,V=Math.exp(this.computedRadius[0]),D=0;D<3;++D)O[D]=F[D]-v[2+4*D]*V}},S.idle=function(h){if(!(h<this.lastT())){for(var _=this._components,y=_.length-16,v=0;v<16;++v)_.push(_[y++]);this._time.push(h)}},S.flush=function(h){var _=l.gt(this._time,h)-2;_<0||(this._time.splice(0,_),this._components.splice(0,16*_))},S.lastT=function(){return this._time[this._time.length-1]},S.lookAt=function(h,_,y,v){this.recalcMatrix(h),_=_||this.computedEye,y=y||m,v=v||this.computedUp,this.setMatrix(h,x(this.computedMatrix,_,y,v));for(var A=0,d=0;d<3;++d)A+=Math.pow(y[d]-_[d],2);A=Math.log(Math.sqrt(A)),this.computedRadius[0]=A},S.rotate=function(h,_,y,v){this.recalcMatrix(h);var A=this.computedInverse;_&&c(A,A,_),y&&f(A,A,y),v&&p(A,A,v),this.setMatrix(h,s(this.computedMatrix,A))};var b=[0,0,0];S.pan=function(h,_,y,v){b[0]=-(_||0),b[1]=-(y||0),b[2]=-(v||0),this.recalcMatrix(h);var A=this.computedInverse;g(A,A,b),this.setMatrix(h,s(A,A))},S.translate=function(h,_,y,v){b[0]=_||0,b[1]=y||0,b[2]=v||0,this.recalcMatrix(h);var A=this.computedMatrix;g(A,A,b),this.setMatrix(h,A)},S.setMatrix=function(h,_){if(!(h<this.lastT())){this._time.push(h);for(var y=0;y<16;++y)this._components.push(_[y])}},S.setDistance=function(h,_){this.computedRadius[0]=_},S.setDistanceLimits=function(h,_){var y=this._limits;y[0]=h,y[1]=_},S.getDistanceLimits=function(h){var _=this._limits;return h?(h[0]=_[0],h[1]=_[1],h):_};function T(h){h=h||{};var _=h.matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return new k(_)}},3090(a,o,i){"use strict";a.exports=u;var l=i(3250)[3];function u(s){var f=s.length;if(f<3){for(var k=new Array(f),c=0;c<f;++c)k[c]=c;return f===2&&s[0][0]===s[1][0]&&s[0][1]===s[1][1]?[0]:k}for(var p=new Array(f),c=0;c<f;++c)p[c]=c;p.sort(function(h,_){var y=s[h][0]-s[_][0];return y||s[h][1]-s[_][1]});for(var x=[p[0],p[1]],g=[p[0],p[1]],c=2;c<f;++c){for(var w=p[c],M=s[w],m=x.length;m>1&&l(s[x[m-2]],s[x[m-1]],M)<=0;)m-=1,x.pop();for(x.push(w),m=g.length;m>1&&l(s[g[m-2]],s[g[m-1]],M)>=0;)m-=1,g.pop();g.push(w)}for(var k=new Array(g.length+x.length-2),S=0,c=0,b=x.length;c<b;++c)k[S++]=x[c];for(var T=g.length-2;T>0;--T)k[S++]=g[T];return k}},351(a,o,i){"use strict";a.exports=u;var l=i(4687);function u(s,f){f||(f=s,s=window);var c=0,p=0,x=0,g={shift:!1,alt:!1,control:!1,meta:!1},w=!1;function M(d){var D=!1;return"altKey"in d&&(D=D||d.altKey!==g.alt,g.alt=!!d.altKey),"shiftKey"in d&&(D=D||d.shiftKey!==g.shift,g.shift=!!d.shiftKey),"ctrlKey"in d&&(D=D||d.ctrlKey!==g.control,g.control=!!d.ctrlKey),"metaKey"in d&&(D=D||d.metaKey!==g.meta,g.meta=!!d.metaKey),D}function m(d,D){var E=l.x(D),R=l.y(D);"buttons"in D&&(d=D.buttons|0),(d!==c||E!==p||R!==x||M(D))&&(c=d|0,p=E||0,x=R||0,f&&f(c,p,x,g))}function k(d){m(0,d)}function S(){(c||p||x||g.shift||g.alt||g.meta||g.control)&&(p=x=0,c=0,g.shift=g.alt=g.control=g.meta=!1,f&&f(0,0,0,g))}function b(d){M(d)&&f&&f(c,p,x,g)}function T(d){l.buttons(d)===0?m(0,d):m(c,d)}function h(d){m(c|l.buttons(d),d)}function _(d){m(c&~l.buttons(d),d)}function y(){w||(w=!0,s.addEventListener("mousemove",T),s.addEventListener("mousedown",h),s.addEventListener("mouseup",_),s.addEventListener("mouseleave",k),s.addEventListener("mouseenter",k),s.addEventListener("mouseout",k),s.addEventListener("mouseover",k),s.addEventListener("blur",S),s.addEventListener("keyup",b),s.addEventListener("keydown",b),s.addEventListener("keypress",b),s!==window&&(window.addEventListener("blur",S),window.addEventListener("keyup",b),window.addEventListener("keydown",b),window.addEventListener("keypress",b)))}function v(){w&&(w=!1,s.removeEventListener("mousemove",T),s.removeEventListener("mousedown",h),s.removeEventListener("mouseup",_),s.removeEventListener("mouseleave",k),s.removeEventListener("mouseenter",k),s.removeEventListener("mouseout",k),s.removeEventListener("mouseover",k),s.removeEventListener("blur",S),s.removeEventListener("keyup",b),s.removeEventListener("keydown",b),s.removeEventListener("keypress",b),s!==window&&(window.removeEventListener("blur",S),window.removeEventListener("keyup",b),window.removeEventListener("keydown",b),window.removeEventListener("keypress",b)))}y();var A={element:s};return Object.defineProperties(A,{enabled:{get:function(){return w},set:function(d){d?y():v()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return p},enumerable:!0},y:{get:function(){return x},enumerable:!0},mods:{get:function(){return g},enumerable:!0}}),A}},24(a){var o={left:0,top:0};a.exports=i;function i(u,s,f){s=s||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var c=u.clientX||0,p=u.clientY||0,x=l(s);return f[0]=c-x.left,f[1]=p-x.top,f}function l(u){return u===window||u===document||u===document.body?o:u.getBoundingClientRect()}},4687(a,o){"use strict";function i(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var c=f.which;if(c===2)return 4;if(c===3)return 2;if(c>0)return 1<<c-1}else if("button"in f){var c=f.button;if(c===1)return 4;if(c===2)return 2;if(c>=0)return 1<<c}}return 0}o.buttons=i;function l(f){return f.target||f.srcElement||window}o.element=l;function u(f){if(typeof f=="object"){if("offsetX"in f)return f.offsetX;var c=l(f),p=c.getBoundingClientRect();return f.clientX-p.left}return 0}o.x=u;function s(f){if(typeof f=="object"){if("offsetY"in f)return f.offsetY;var c=l(f),p=c.getBoundingClientRect();return f.clientY-p.top}return 0}o.y=s},2288(a,o,i){"use strict";var l=i(3202);a.exports=c;var u=96;function s(p,x){var g=l(getComputedStyle(p).getPropertyValue(x));return g[0]*c(g[1],p)}function f(p,x){var g=document.createElement("div");g.style["font-size"]="128"+p,x.appendChild(g);var w=s(g,"font-size")/128;return x.removeChild(g),w}function c(p,x){switch(x=x||document.body,p=(p||"px").trim().toLowerCase(),(x===window||x===document)&&(x=document.body),p){case"%":return x.clientHeight/100;case"ch":case"ex":return f(p,x);case"em":return s(x,"font-size");case"rem":return s(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 u;case"cm":return u/2.54;case"mm":return u/25.4;case"pt":return u/72;case"pc":return u/6}return 1}},8512(a,o,i){"use strict";var l=i(2288);a.exports=u;function u(s,f,c){typeof s=="function"&&(c=!!f,f=s,s=window);var p=l("ex",s),x=function(g){c&&g.preventDefault();var w=g.deltaX||0,M=g.deltaY||0,m=g.deltaZ||0,k=g.deltaMode,S=1;switch(k){case 1:S=p;break;case 2:S=window.innerHeight;break}if(w*=S,M*=S,m*=S,w||M||m)return f(w,M,m,g)};return s.addEventListener("wheel",x),x}},2640(a,o,i){"use strict";var l=i(1888);a.exports=f;var u={"false,0,1":function(p,x,g,w,M){return function(k,S,b,T){var h=k.shape[0]|0,_=k.shape[1]|0,y=k.data,v=k.offset|0,A=k.stride[0]|0,d=k.stride[1]|0,D=v,E,R=-A|0,z=0,I=-d|0,P=0,L=-A-d|0,F=0,B=A|0,O=d-A*h|0,V=0,K=0,j=0,G=2*h|0,q=w(G),J=w(G),te=0,Z=0,ie=-1,Q=-1,re=0,ue=-h|0,ee=h|0,ae=0,ce=-h-1|0,Te=h-1|0,ke=0,Se=0,ge=0;for(V=0;V<h;++V)q[te++]=g(y[D],S,b,T),D+=B;if(D+=O,_>0){if(K=1,q[te++]=g(y[D],S,b,T),D+=B,h>0)for(V=1,E=y[D],Z=q[te]=g(E,S,b,T),re=q[te+ie],ae=q[te+ue],ke=q[te+ce],(Z!==re||Z!==ae||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,re,ae,ke,S,b,T),Se=J[te]=j++),te+=1,D+=B,V=2;V<h;++V)E=y[D],Z=q[te]=g(E,S,b,T),re=q[te+ie],ae=q[te+ue],ke=q[te+ce],(Z!==re||Z!==ae||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,re,ae,ke,S,b,T),Se=J[te]=j++,ke!==re&&x(J[te+ie],Se,F,z,ke,re,S,b,T)),te+=1,D+=B;for(D+=O,te=0,ge=ie,ie=Q,Q=ge,ge=ue,ue=ee,ee=ge,ge=ce,ce=Te,Te=ge,K=2;K<_;++K){if(q[te++]=g(y[D],S,b,T),D+=B,h>0)for(V=1,E=y[D],Z=q[te]=g(E,S,b,T),re=q[te+ie],ae=q[te+ue],ke=q[te+ce],(Z!==re||Z!==ae||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,re,ae,ke,S,b,T),Se=J[te]=j++,ke!==ae&&x(J[te+ue],Se,P,F,ae,ke,S,b,T)),te+=1,D+=B,V=2;V<h;++V)E=y[D],Z=q[te]=g(E,S,b,T),re=q[te+ie],ae=q[te+ue],ke=q[te+ce],(Z!==re||Z!==ae||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,re,ae,ke,S,b,T),Se=J[te]=j++,ke!==ae&&x(J[te+ue],Se,P,F,ae,ke,S,b,T),ke!==re&&x(J[te+ie],Se,F,z,ke,re,S,b,T)),te+=1,D+=B;K&1&&(te=0),ge=ie,ie=Q,Q=ge,ge=ue,ue=ee,ee=ge,ge=ce,ce=Te,Te=ge,D+=O}}M(J),M(q)}},"false,1,0":function(p,x,g,w,M){return function(k,S,b,T){var h=k.shape[0]|0,_=k.shape[1]|0,y=k.data,v=k.offset|0,A=k.stride[0]|0,d=k.stride[1]|0,D=v,E,R=-A|0,z=0,I=-d|0,P=0,L=-A-d|0,F=0,B=d|0,O=A-d*_|0,V=0,K=0,j=0,G=2*_|0,q=w(G),J=w(G),te=0,Z=0,ie=-1,Q=-1,re=0,ue=-_|0,ee=_|0,ae=0,ce=-_-1|0,Te=_-1|0,ke=0,Se=0,ge=0;for(K=0;K<_;++K)q[te++]=g(y[D],S,b,T),D+=B;if(D+=O,h>0){if(V=1,q[te++]=g(y[D],S,b,T),D+=B,_>0)for(K=1,E=y[D],Z=q[te]=g(E,S,b,T),ae=q[te+ue],re=q[te+ie],ke=q[te+ce],(Z!==ae||Z!==re||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,ae,re,ke,S,b,T),Se=J[te]=j++),te+=1,D+=B,K=2;K<_;++K)E=y[D],Z=q[te]=g(E,S,b,T),ae=q[te+ue],re=q[te+ie],ke=q[te+ce],(Z!==ae||Z!==re||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,ae,re,ke,S,b,T),Se=J[te]=j++,ke!==re&&x(J[te+ie],Se,P,F,re,ke,S,b,T)),te+=1,D+=B;for(D+=O,te=0,ge=ue,ue=ee,ee=ge,ge=ie,ie=Q,Q=ge,ge=ce,ce=Te,Te=ge,V=2;V<h;++V){if(q[te++]=g(y[D],S,b,T),D+=B,_>0)for(K=1,E=y[D],Z=q[te]=g(E,S,b,T),ae=q[te+ue],re=q[te+ie],ke=q[te+ce],(Z!==ae||Z!==re||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,ae,re,ke,S,b,T),Se=J[te]=j++,ke!==ae&&x(J[te+ue],Se,F,z,ke,ae,S,b,T)),te+=1,D+=B,K=2;K<_;++K)E=y[D],Z=q[te]=g(E,S,b,T),ae=q[te+ue],re=q[te+ie],ke=q[te+ce],(Z!==ae||Z!==re||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,ae,re,ke,S,b,T),Se=J[te]=j++,ke!==re&&x(J[te+ie],Se,P,F,re,ke,S,b,T),ke!==ae&&x(J[te+ue],Se,F,z,ke,ae,S,b,T)),te+=1,D+=B;V&1&&(te=0),ge=ue,ue=ee,ee=ge,ge=ie,ie=Q,Q=ge,ge=ce,ce=Te,Te=ge,D+=O}}M(J),M(q)}}};function s(c,p,x,g,w,M){var m=[M,w].join(","),k=u[m];return k(c,p,x,l.mallocUint32,l.freeUint32)}function f(c){function p(S){throw new Error("ndarray-extract-contour: "+S)}typeof c!="object"&&p("Must specify arguments");var x=c.order;Array.isArray(x)||p("Must specify order");var g=c.arrayArguments||1;g<1&&p("Must have at least one array argument");var w=c.scalarArguments||0;w<0&&p("Scalar arg count must be > 0"),typeof c.vertex!="function"&&p("Must specify vertex creation function"),typeof c.cell!="function"&&p("Must specify cell creation function"),typeof c.phase!="function"&&p("Must specify phase function");for(var M=c.getters||[],m=new Array(g),k=0;k<g;++k)M.indexOf(k)>=0?m[k]=!0:m[k]=!1;return s(c.vertex,c.cell,c.phase,w,x,m)}},6199(a,o,i){"use strict";var l=i(1338),u={zero:function(T,h,_,y){var v=T[0],A=_[0];y|=0;var d=0,D=A;for(d=0;d<v;++d)h[y]=0,y+=D},fdTemplate1:function(T,h,_,y,v,A,d){var D=T[0],E=_[0],R=A[0],z=-1*E,I=E;y|=0,d|=0;var P=0,L=E,F=R;for(P=0;P<D;++P)v[d]=.5*(h[y+z]-h[y+I]),y+=L,d+=F},fdTemplate2:function(T,h,_,y,v,A,d,D,E,R){var z=T[0],I=T[1],P=_[0],L=_[1],F=A[0],B=A[1],O=E[0],V=E[1],K=-1*P,j=P,G=-1*L,q=L;y|=0,d|=0,R|=0;var J=0,te=0,Z=L,ie=P-I*L,Q=B,re=F-I*B,ue=V,ee=O-I*V;for(te=0;te<z;++te){for(J=0;J<I;++J)v[d]=.5*(h[y+K]-h[y+j]),D[R]=.5*(h[y+G]-h[y+q]),y+=Z,d+=Q,R+=ue;y+=ie,d+=re,R+=ee}}},s={cdiff:function(T){var h={};return function(y,v,A){var d=y.dtype,D=y.order,E=v.dtype,R=v.order,z=A.dtype,I=A.order,P=[d,D.join(),E,R.join(),z,I.join()].join(),L=h[P];return L||(h[P]=L=T([d,D,E,R,z,I])),L(y.shape.slice(0),y.data,y.stride,y.offset|0,v.data,v.stride,v.offset|0,A.data,A.stride,A.offset|0)}},zero:function(T){var h={};return function(y){var v=y.dtype,A=y.order,d=[v,A.join()].join(),D=h[d];return D||(h[d]=D=T([v,A])),D(y.shape.slice(0),y.data,y.stride,y.offset|0)}},fdTemplate1:function(T){var h={};return function(y,v){var A=y.dtype,d=y.order,D=v.dtype,E=v.order,R=[A,d.join(),D,E.join()].join(),z=h[R];return z||(h[R]=z=T([A,d,D,E])),z(y.shape.slice(0),y.data,y.stride,y.offset|0,v.data,v.stride,v.offset|0)}},fdTemplate2:function(T){var h={};return function(y,v,A){var d=y.dtype,D=y.order,E=v.dtype,R=v.order,z=A.dtype,I=A.order,P=[d,D.join(),E,R.join(),z,I.join()].join(),L=h[P];return L||(h[P]=L=T([d,D,E,R,z,I])),L(y.shape.slice(0),y.data,y.stride,y.offset|0,v.data,v.stride,v.offset|0,A.data,A.stride,A.offset|0)}}};function f(T){var h=s[T.funcName];return h(c.bind(void 0,T))}function c(T){return u[T.funcName]}function p(T){return f({funcName:T.funcName})}var x={},g={},w=null,M=p({funcName:"cdiff"}),m=p({funcName:"zero"});function k(T){return T in x?x[T]:x[T]=p({funcName:"fdTemplate"+T})}function S(T,h,_,y){return function(v,A){var d=A.shape.slice();return d[0]>2&&d[1]>2&&y(A.pick(-1,-1).lo(1,1).hi(d[0]-2,d[1]-2),v.pick(-1,-1,0).lo(1,1).hi(d[0]-2,d[1]-2),v.pick(-1,-1,1).lo(1,1).hi(d[0]-2,d[1]-2)),d[1]>2&&(_(A.pick(0,-1).lo(1).hi(d[1]-2),v.pick(0,-1,1).lo(1).hi(d[1]-2)),h(v.pick(0,-1,0).lo(1).hi(d[1]-2))),d[1]>2&&(_(A.pick(d[0]-1,-1).lo(1).hi(d[1]-2),v.pick(d[0]-1,-1,1).lo(1).hi(d[1]-2)),h(v.pick(d[0]-1,-1,0).lo(1).hi(d[1]-2))),d[0]>2&&(_(A.pick(-1,0).lo(1).hi(d[0]-2),v.pick(-1,0,0).lo(1).hi(d[0]-2)),h(v.pick(-1,0,1).lo(1).hi(d[0]-2))),d[0]>2&&(_(A.pick(-1,d[1]-1).lo(1).hi(d[0]-2),v.pick(-1,d[1]-1,0).lo(1).hi(d[0]-2)),h(v.pick(-1,d[1]-1,1).lo(1).hi(d[0]-2))),v.set(0,0,0,0),v.set(0,0,1,0),v.set(d[0]-1,0,0,0),v.set(d[0]-1,0,1,0),v.set(0,d[1]-1,0,0),v.set(0,d[1]-1,1,0),v.set(d[0]-1,d[1]-1,0,0),v.set(d[0]-1,d[1]-1,1,0),v}}function b(T){var h=T.join(),d=g[h];if(d)return d;for(var _=T.length,y=[M,m],v=1;v<=_;++v)y.push(k(v));var A=S,d=A.apply(void 0,y);return g[h]=d,d}a.exports=function(h,_,y){if(Array.isArray(y)||(typeof y=="string"?y=l(_.dimension,y):y=l(_.dimension,"clamp")),_.size===0)return h;if(_.dimension===0)return h.set(0),h;var v=b(y);return v(h,_)}},4317(a){"use strict";function o(f,c){var p=Math.floor(c),x=c-p,g=0<=p&&p<f.shape[0],w=0<=p+1&&p+1<f.shape[0],M=g?+f.get(p):0,m=w?+f.get(p+1):0;return(1-x)*M+x*m}function i(f,c,p){var x=Math.floor(c),g=c-x,w=0<=x&&x<f.shape[0],M=0<=x+1&&x+1<f.shape[0],m=Math.floor(p),k=p-m,S=0<=m&&m<f.shape[1],b=0<=m+1&&m+1<f.shape[1],T=w&&S?f.get(x,m):0,h=w&&b?f.get(x,m+1):0,_=M&&S?f.get(x+1,m):0,y=M&&b?f.get(x+1,m+1):0;return(1-k)*((1-g)*T+g*_)+k*((1-g)*h+g*y)}function l(f,c,p,x){var g=Math.floor(c),w=c-g,M=0<=g&&g<f.shape[0],m=0<=g+1&&g+1<f.shape[0],k=Math.floor(p),S=p-k,b=0<=k&&k<f.shape[1],T=0<=k+1&&k+1<f.shape[1],h=Math.floor(x),_=x-h,y=0<=h&&h<f.shape[2],v=0<=h+1&&h+1<f.shape[2],A=M&&b&&y?f.get(g,k,h):0,d=M&&T&&y?f.get(g,k+1,h):0,D=m&&b&&y?f.get(g+1,k,h):0,E=m&&T&&y?f.get(g+1,k+1,h):0,R=M&&b&&v?f.get(g,k,h+1):0,z=M&&T&&v?f.get(g,k+1,h+1):0,I=m&&b&&v?f.get(g+1,k,h+1):0,P=m&&T&&v?f.get(g+1,k+1,h+1):0;return(1-_)*((1-S)*((1-w)*A+w*D)+S*((1-w)*d+w*E))+_*((1-S)*((1-w)*R+w*I)+S*((1-w)*z+w*P))}function u(f){var c=f.shape.length|0,p=new Array(c),x=new Array(c),g=new Array(c),w=new Array(c),M,m;for(M=0;M<c;++M)m=+arguments[M+1],p[M]=Math.floor(m),x[M]=m-p[M],g[M]=0<=p[M]&&p[M]<f.shape[M],w[M]=0<=p[M]+1&&p[M]+1<f.shape[M];var k=0,S,b,T;e:for(M=0;M<1<<c;++M){for(b=1,T=f.offset,S=0;S<c;++S)if(M&1<<S){if(!w[S])continue e;b*=x[S],T+=f.stride[S]*(p[S]+1)}else{if(!g[S])continue e;b*=1-x[S],T+=f.stride[S]*p[S]}k+=b*f.data[T]}return k}function s(f,c,p,x){switch(f.shape.length){case 0:return 0;case 1:return o(f,c);case 2:return i(f,c,p);case 3:return l(f,c,p,x);default:return u.apply(void 0,arguments)}}a.exports=s,a.exports.d1=o,a.exports.d2=i,a.exports.d3=l},5298(a,o){"use strict";var i={"float64,2,1,0":function(){return function(g,w,M,m,k){var S=g[0],b=g[1],T=g[2],h=M[0],_=M[1],y=M[2];m|=0;var v=0,A=0,d=0,D=y,E=_-T*y,R=h-b*_;for(d=0;d<S;++d){for(A=0;A<b;++A){for(v=0;v<T;++v)w[m]/=k,m+=D;m+=E}m+=R}}},"uint8,2,0,1,float64,2,1,0":function(){return function(g,w,M,m,k,S,b,T){var h=g[0],_=g[1],y=g[2],v=M[0],A=M[1],d=M[2],D=S[0],E=S[1],R=S[2];m|=0,b|=0;for(var z=m,I=b,P=g[0]|0;P>0;){P<64?(h=P,P=0):(h=64,P-=64);for(var L=g[1]|0;L>0;){L<64?(_=L,L=0):(_=64,L-=64),m=z+P*v+L*A,b=I+P*D+L*E;var F=0,B=0,O=0,V=d,K=v-y*d,j=A-h*v,G=R,q=D-y*R,J=E-h*D;for(O=0;O<_;++O){for(B=0;B<h;++B){for(F=0;F<y;++F)w[m]=k[b]*T,m+=V,b+=G;m+=K,b+=q}m+=j,b+=J}}}}},"float32,1,0,float32,1,0":function(){return function(g,w,M,m,k,S,b){var T=g[0],h=g[1],_=M[0],y=M[1],v=S[0],A=S[1];m|=0,b|=0;var d=0,D=0,E=y,R=_-h*y,z=A,I=v-h*A;for(D=0;D<T;++D){for(d=0;d<h;++d)w[m]=k[b],m+=E,b+=z;m+=R,b+=I}}},"float32,1,0,float32,0,1":function(){return function(g,w,M,m,k,S,b){var T=g[0],h=g[1],_=M[0],y=M[1],v=S[0],A=S[1];m|=0,b|=0;for(var d=m,D=b,E=g[1]|0;E>0;){E<64?(h=E,E=0):(h=64,E-=64);for(var R=g[0]|0;R>0;){R<64?(T=R,R=0):(T=64,R-=64),m=d+E*y+R*_,b=D+E*A+R*v;var z=0,I=0,P=y,L=_-h*y,F=A,B=v-h*A;for(I=0;I<T;++I){for(z=0;z<h;++z)w[m]=k[b],m+=P,b+=F;m+=L,b+=B}}}}},"uint8,2,0,1,uint8,1,2,0":function(){return function(g,w,M,m,k,S,b){var T=g[0],h=g[1],_=g[2],y=M[0],v=M[1],A=M[2],d=S[0],D=S[1],E=S[2];m|=0,b|=0;for(var R=m,z=b,I=g[2]|0;I>0;){I<64?(_=I,I=0):(_=64,I-=64);for(var P=g[0]|0;P>0;){P<64?(T=P,P=0):(T=64,P-=64);for(var L=g[1]|0;L>0;){L<64?(h=L,L=0):(h=64,L-=64),m=R+I*A+P*y+L*v,b=z+I*E+P*d+L*D;var F=0,B=0,O=0,V=A,K=y-_*A,j=v-T*y,G=E,q=d-_*E,J=D-T*d;for(O=0;O<h;++O){for(B=0;B<T;++B){for(F=0;F<_;++F)w[m]=k[b],m+=V,b+=G;m+=K,b+=q}m+=j,b+=J}}}}}},"uint8,2,0,1,array,2,0,1":function(){return function(g,w,M,m,k,S,b){var T=g[0],h=g[1],_=g[2],y=M[0],v=M[1],A=M[2],d=S[0],D=S[1],E=S[2];m|=0,b|=0;var R=0,z=0,I=0,P=A,L=y-_*A,F=v-T*y,B=E,O=d-_*E,V=D-T*d;for(I=0;I<h;++I){for(z=0;z<T;++z){for(R=0;R<_;++R)w[m]=k[b],m+=P,b+=B;m+=L,b+=O}m+=F,b+=V}}}};function l(x,g){var w=g.join(","),M=i[w];return M()}var u=l,s={mul:function(x){var g={};return function(M,m,k){var S=M.dtype,b=M.order,T=m.dtype,h=m.order,_=k.dtype,y=k.order,v=[S,b.join(),T,h.join(),_,y.join()].join(),A=g[v];return A||(g[v]=A=x([S,b,T,h,_,y])),A(M.shape.slice(0),M.data,M.stride,M.offset|0,m.data,m.stride,m.offset|0,k.data,k.stride,k.offset|0)}},muls:function(x){var g={};return function(M,m,k){var S=M.dtype,b=M.order,T=m.dtype,h=m.order,_=[S,b.join(),T,h.join()].join(),y=g[_];return y||(g[_]=y=x([S,b,T,h])),y(M.shape.slice(0),M.data,M.stride,M.offset|0,m.data,m.stride,m.offset|0,k)}},mulseq:function(x){var g={};return function(M,m){var k=M.dtype,S=M.order,b=[k,S.join()].join(),T=g[b];return T||(g[b]=T=x([k,S])),T(M.shape.slice(0),M.data,M.stride,M.offset|0,m)}},div:function(x){var g={};return function(M,m,k){var S=M.dtype,b=M.order,T=m.dtype,h=m.order,_=k.dtype,y=k.order,v=[S,b.join(),T,h.join(),_,y.join()].join(),A=g[v];return A||(g[v]=A=x([S,b,T,h,_,y])),A(M.shape.slice(0),M.data,M.stride,M.offset|0,m.data,m.stride,m.offset|0,k.data,k.stride,k.offset|0)}},divs:function(x){var g={};return function(M,m,k){var S=M.dtype,b=M.order,T=m.dtype,h=m.order,_=[S,b.join(),T,h.join()].join(),y=g[_];return y||(g[_]=y=x([S,b,T,h])),y(M.shape.slice(0),M.data,M.stride,M.offset|0,m.data,m.stride,m.offset|0,k)}},divseq:function(x){var g={};return function(M,m){var k=M.dtype,S=M.order,b=[k,S.join()].join(),T=g[b];return T||(g[b]=T=x([k,S])),T(M.shape.slice(0),M.data,M.stride,M.offset|0,m)}},assign:function(x){var g={};return function(M,m){var k=M.dtype,S=M.order,b=m.dtype,T=m.order,h=[k,S.join(),b,T.join()].join(),_=g[h];return _||(g[h]=_=x([k,S,b,T])),_(M.shape.slice(0),M.data,M.stride,M.offset|0,m.data,m.stride,m.offset|0)}}};function f(x){var g=s[x.funcName];return g(u.bind(void 0,x))}function c(x){return f({funcName:x.funcName})}var p={mul:"*",div:"/"};(function(){for(var x in p)o[x]=c({funcName:x}),o[x+"s"]=c({funcName:x+"s"}),o[x+"seq"]=c({funcName:x+"seq"})})(),o.assign=c({funcName:"assign"})},9994(a,o,i){"use strict";var l=i(9618),u=i(8277);a.exports=function(f,c){for(var p=[],x=f,g=1;Array.isArray(x);)p.push(x.length),g*=x.length,x=x[0];return p.length===0?l():(c||(c=l(new Float64Array(g),p)),u(c,f),c)}},8277(a){"use strict";function o(){return function(c,p,x,g,w){var M=c[0],m=c[1],k=c[2],S=x[0],b=x[1],T=x[2],h=[0,0,0];g|=0;var _=0,y=0,v=0,A=T,d=b-k*T,D=S-m*b;for(v=0;v<M;++v){for(y=0;y<m;++y){for(_=0;_<k;++_){{var E=w,R;for(R=0;R<h.length-1;++R)E=E[h[R]];p[g]=E[h[h.length-1]]}g+=A,++h[2]}g+=d,h[2]-=k,++h[1]}g+=D,h[1]-=m,++h[0]}}}function i(){return o()}var l=i;function u(c){var p={};return function(g,w){var M=g.dtype,m=g.order,k=[M,m.join()].join(),S=p[k];return S||(p[k]=S=c([M,m])),S(g.shape.slice(0),g.data,g.stride,g.offset|0,w)}}function s(c){return u(l.bind(void 0,c))}function f(c){return s({funcName:c.funcName})}a.exports=f({funcName:"convert"})},7640(a,o,i){"use strict";var l=i(1888);function u(w){return w==="uint32"?[l.mallocUint32,l.freeUint32]:null}var s={"uint32,1,0":function(w,M){return function(k,S,b,T,h,_,y,v,A,d,D){var E,R,z,I=k*h+T,P,L=w(v),F,B,O,V;for(E=k+1;E<=S;++E){for(R=E,I+=h,z=I,F=0,B=I,P=0;P<v;++P)L[F++]=b[B],B+=A;e:for(;R-- >k;){F=0,B=z-h;r:for(P=0;P<v;++P){if(O=b[B],V=L[F],O<V)break e;if(O>V)break r;B+=d,F+=D}for(F=z,B=z-h,P=0;P<v;++P)b[F]=b[B],F+=A,B+=A;z-=h}for(F=z,B=0,P=0;P<v;++P)b[F]=L[B++],F+=A}M(L)}}};function f(w,M){var m=u(M),k=[M,w].join(","),S=s[k];return m?S(m[0],m[1]):S()}var c={"uint32,1,0":function(w,M,m){return function k(S,b,T,h,_,y,v,A,d,D,E){var R=(b-S+1)/6|0,z=S+R,I=b-R,P=S+b>>1,L=P-R,F=P+R,B=z,O=L,V=P,K=F,j=I,G=S+1,q=b-1,J=!0,te,Z,ie,Q,re,ue,ee,ae,ce,Te=0,ke=0,Se=0,ge,Le,Ce,le,Y,$,pe,oe,ve,he,me,be,ye,de,_e,Ae,Pe=A,Fe=M(Pe),Ye=M(Pe);Le=_*B,Ce=_*O,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ce+Ae,Se=T[ee]-T[ae],Se>0){Z=B,B=O,O=Z;break e}if(Se<0)break e;Ae+=D}Le=_*K,Ce=_*j,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ce+Ae,Se=T[ee]-T[ae],Se>0){Z=K,K=j,j=Z;break e}if(Se<0)break e;Ae+=D}Le=_*B,Ce=_*V,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ce+Ae,Se=T[ee]-T[ae],Se>0){Z=B,B=V,V=Z;break e}if(Se<0)break e;Ae+=D}Le=_*O,Ce=_*V,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ce+Ae,Se=T[ee]-T[ae],Se>0){Z=O,O=V,V=Z;break e}if(Se<0)break e;Ae+=D}Le=_*B,Ce=_*K,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ce+Ae,Se=T[ee]-T[ae],Se>0){Z=B,B=K,K=Z;break e}if(Se<0)break e;Ae+=D}Le=_*V,Ce=_*K,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ce+Ae,Se=T[ee]-T[ae],Se>0){Z=V,V=K,K=Z;break e}if(Se<0)break e;Ae+=D}Le=_*O,Ce=_*j,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ce+Ae,Se=T[ee]-T[ae],Se>0){Z=O,O=j,j=Z;break e}if(Se<0)break e;Ae+=D}Le=_*O,Ce=_*V,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ce+Ae,Se=T[ee]-T[ae],Se>0){Z=O,O=V,V=Z;break e}if(Se<0)break e;Ae+=D}Le=_*K,Ce=_*j,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Le+Ae,ae=Ce+Ae,Se=T[ee]-T[ae],Se>0){Z=K,K=j,j=Z;break e}if(Se<0)break e;Ae+=D}for(Le=_*B,Ce=_*O,le=_*V,Y=_*K,$=_*j,pe=_*z,oe=_*P,ve=_*I,_e=0,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,ce=le+Ae,he=Y+Ae,me=$+Ae,be=pe+Ae,ye=oe+Ae,de=ve+Ae,Fe[_e]=T[ae],Ye[_e]=T[he],J=J&&Fe[_e]===Ye[_e],ie=T[ee],Q=T[ce],re=T[me],T[be]=ie,T[ye]=Q,T[de]=re,++_e,Ae+=d;for(Le=_*L,Ce=_*S,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,T[ee]=T[ae],Ae+=d;for(Le=_*F,Ce=_*b,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,T[ee]=T[ae],Ae+=d;if(J)for(ue=G;ue<=q;++ue){ee=h+ue*_,_e=0;e:for(ge=0;ge<A;++ge){if(Se=T[ee]-Fe[_e],Se!==0)break e;_e+=E,ee+=D}if(Se!==0)if(Se<0){if(ue!==G)for(Le=_*ue,Ce=_*G,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,te=T[ee],T[ee]=T[ae],T[ae]=te,Ae+=d;++G}else for(;;){ee=h+q*_,_e=0;e:for(ge=0;ge<A;++ge){if(Se=T[ee]-Fe[_e],Se!==0)break e;_e+=E,ee+=D}if(Se>0)q--;else if(Se<0){for(Le=_*ue,Ce=_*G,le=_*q,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,ce=le+Ae,te=T[ee],T[ee]=T[ae],T[ae]=T[ce],T[ce]=te,Ae+=d;++G,--q;break}else{for(Le=_*ue,Ce=_*q,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,te=T[ee],T[ee]=T[ae],T[ae]=te,Ae+=d;--q;break}}}else for(ue=G;ue<=q;++ue){ee=h+ue*_,_e=0;e:for(ge=0;ge<A;++ge){if(Te=T[ee]-Fe[_e],Te!==0)break e;_e+=E,ee+=D}if(Te<0){if(ue!==G)for(Le=_*ue,Ce=_*G,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,te=T[ee],T[ee]=T[ae],T[ae]=te,Ae+=d;++G}else{ee=h+ue*_,_e=0;e:for(ge=0;ge<A;++ge){if(ke=T[ee]-Ye[_e],ke!==0)break e;_e+=E,ee+=D}if(ke>0)for(;;){ee=h+q*_,_e=0;e:for(ge=0;ge<A;++ge){if(Se=T[ee]-Ye[_e],Se!==0)break e;_e+=E,ee+=D}if(Se>0){if(--q<ue)break;continue}else{ee=h+q*_,_e=0;e:for(ge=0;ge<A;++ge){if(Se=T[ee]-Fe[_e],Se!==0)break e;_e+=E,ee+=D}if(Se<0){for(Le=_*ue,Ce=_*G,le=_*q,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,ce=le+Ae,te=T[ee],T[ee]=T[ae],T[ae]=T[ce],T[ce]=te,Ae+=d;++G,--q}else{for(Le=_*ue,Ce=_*q,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,te=T[ee],T[ee]=T[ae],T[ae]=te,Ae+=d;--q}break}}}}for(Le=_*S,Ce=_*(G-1),_e=0,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,T[ee]=T[ae],T[ae]=Fe[_e],++_e,Ae+=d;for(Le=_*b,Ce=_*(q+1),_e=0,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,T[ee]=T[ae],T[ae]=Ye[_e],++_e,Ae+=d;if(G-2-S<=32?w(S,G-2,T,h,_,y,v,A,d,D,E):k(S,G-2,T,h,_,y,v,A,d,D,E),b-(q+2)<=32?w(q+2,b,T,h,_,y,v,A,d,D,E):k(q+2,b,T,h,_,y,v,A,d,D,E),J){m(Fe),m(Ye);return}if(G<z&&q>I){e:for(;;){for(ee=h+G*_,_e=0,Ae=h,ge=0;ge<A;++ge){if(T[ee]!==Fe[_e])break e;++_e,ee+=d}++G}e:for(;;){for(ee=h+q*_,_e=0,Ae=h,ge=0;ge<A;++ge){if(T[ee]!==Ye[_e])break e;++_e,ee+=d}--q}for(ue=G;ue<=q;++ue){ee=h+ue*_,_e=0;e:for(ge=0;ge<A;++ge){if(Te=T[ee]-Fe[_e],Te!==0)break e;_e+=E,ee+=D}if(Te===0){if(ue!==G)for(Le=_*ue,Ce=_*G,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,te=T[ee],T[ee]=T[ae],T[ae]=te,Ae+=d;++G}else{ee=h+ue*_,_e=0;e:for(ge=0;ge<A;++ge){if(ke=T[ee]-Ye[_e],ke!==0)break e;_e+=E,ee+=D}if(ke===0)for(;;){ee=h+q*_,_e=0;e:for(ge=0;ge<A;++ge){if(Se=T[ee]-Ye[_e],Se!==0)break e;_e+=E,ee+=D}if(Se===0){if(--q<ue)break;continue}else{ee=h+q*_,_e=0;e:for(ge=0;ge<A;++ge){if(Se=T[ee]-Fe[_e],Se!==0)break e;_e+=E,ee+=D}if(Se<0){for(Le=_*ue,Ce=_*G,le=_*q,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,ce=le+Ae,te=T[ee],T[ee]=T[ae],T[ae]=T[ce],T[ce]=te,Ae+=d;++G,--q}else{for(Le=_*ue,Ce=_*q,Ae=h,ge=0;ge<A;++ge)ee=Le+Ae,ae=Ce+Ae,te=T[ee],T[ee]=T[ae],T[ae]=te,Ae+=d;--q}break}}}}}m(Fe),m(Ye),q-G<=32?w(G,q,T,h,_,y,v,A,d,D,E):k(G,q,T,h,_,y,v,A,d,D,E)}}};function p(w,M,m){var k=u(M),S=[M,w].join(","),b=c[S];return w.length>1&&k?b(m,k[0],k[1]):b(m)}var x={"uint32,1,0":function(w,M){return function(m){var k=m.data,S=m.offset|0,b=m.shape,T=m.stride,h=T[0]|0,_=b[0]|0,y=T[1]|0,v=b[1]|0,A=y,d=y,D=1;_<=32?w(0,_-1,k,S,h,y,_,v,A,d,D):M(0,_-1,k,S,h,y,_,v,A,d,D)}}};function g(w,M){var m=[M,w].join(","),k=x[m],S=f(w,M),b=p(w,M,S);return k(S,b)}a.exports=g},446(a,o,i){"use strict";var l=i(7640),u={};function s(f){var c=f.order,p=f.dtype,x=[c,p],g=x.join(":"),w=u[g];return w||(u[g]=w=l(c,p)),w(f),f}a.exports=s},9618(a,o,i){var l=i(7163),u=typeof Float64Array!="undefined";function s(M,m){return M[0]-m[0]}function f(){var M=this.stride,m=new Array(M.length),k;for(k=0;k<m.length;++k)m[k]=[Math.abs(M[k]),k];m.sort(s);var S=new Array(m.length);for(k=0;k<S.length;++k)S[k]=m[k][1];return S}var c={T:function(M){function m(S){this.data=S}var k=m.prototype;return k.dtype=M,k.index=function(){return-1},k.size=0,k.dimension=-1,k.shape=k.stride=k.order=[],k.lo=k.hi=k.transpose=k.step=function(){return new m(this.data)},k.get=k.set=function(){},k.pick=function(){return null},function(b){return new m(b)}},0:function(M,m){function k(b,T){this.data=b,this.offset=T}var S=k.prototype;return S.dtype=M,S.index=function(){return this.offset},S.dimension=0,S.size=1,S.shape=S.stride=S.order=[],S.lo=S.hi=S.transpose=S.step=function(){return new k(this.data,this.offset)},S.pick=function(){return m(this.data)},S.valueOf=S.get=function(){return M==="generic"?this.data.get(this.offset):this.data[this.offset]},S.set=function(T){return M==="generic"?this.data.set(this.offset,T):this.data[this.offset]=T},function(T,h,_,y){return new k(T,y)}},1:function(M,m,k){function S(T,h,_,y){this.data=T,this.shape=[h],this.stride=[_],this.offset=y|0}var b=S.prototype;return b.dtype=M,b.dimension=1,Object.defineProperty(b,"size",{get:function(){return this.shape[0]}}),b.order=[0],b.set=function(h,_){return M==="generic"?this.data.set(this.offset+this.stride[0]*h,_):this.data[this.offset+this.stride[0]*h]=_},b.get=function(h){return M==="generic"?this.data.get(this.offset+this.stride[0]*h):this.data[this.offset+this.stride[0]*h]},b.index=function(h){return this.offset+this.stride[0]*h},b.hi=function(h){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,this.stride[0],this.offset)},b.lo=function(h){var _=this.offset,y=0,v=this.shape[0],A=this.stride[0];return typeof h=="number"&&h>=0&&(y=h|0,_+=A*y,v-=y),new S(this.data,v,A,_)},b.step=function(h){var _=this.shape[0],y=this.stride[0],v=this.offset,A=0,d=Math.ceil;return typeof h=="number"&&(A=h|0,A<0?(v+=y*(_-1),_=d(-_/A)):_=d(_/A),y*=A),new S(this.data,_,y,v)},b.transpose=function(h){h=h===void 0?0:h|0;var _=this.shape,y=this.stride;return new S(this.data,_[h],y[h],this.offset)},b.pick=function(h){var _=[],y=[],v=this.offset;typeof h=="number"&&h>=0?v=v+this.stride[0]*h|0:(_.push(this.shape[0]),y.push(this.stride[0]));var A=m[_.length+1];return A(this.data,_,y,v)},function(h,_,y,v){return new S(h,_[0],y[0],v)}},2:function(M,m,k){function S(T,h,_,y,v,A){this.data=T,this.shape=[h,_],this.stride=[y,v],this.offset=A|0}var b=S.prototype;return b.dtype=M,b.dimension=2,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(b,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),b.set=function(h,_,y){return M==="generic"?this.data.set(this.offset+this.stride[0]*h+this.stride[1]*_,y):this.data[this.offset+this.stride[0]*h+this.stride[1]*_]=y},b.get=function(h,_){return M==="generic"?this.data.get(this.offset+this.stride[0]*h+this.stride[1]*_):this.data[this.offset+this.stride[0]*h+this.stride[1]*_]},b.index=function(h,_){return this.offset+this.stride[0]*h+this.stride[1]*_},b.hi=function(h,_){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,typeof _!="number"||_<0?this.shape[1]:_|0,this.stride[0],this.stride[1],this.offset)},b.lo=function(h,_){var y=this.offset,v=0,A=this.shape[0],d=this.shape[1],D=this.stride[0],E=this.stride[1];return typeof h=="number"&&h>=0&&(v=h|0,y+=D*v,A-=v),typeof _=="number"&&_>=0&&(v=_|0,y+=E*v,d-=v),new S(this.data,A,d,D,E,y)},b.step=function(h,_){var y=this.shape[0],v=this.shape[1],A=this.stride[0],d=this.stride[1],D=this.offset,E=0,R=Math.ceil;return typeof h=="number"&&(E=h|0,E<0?(D+=A*(y-1),y=R(-y/E)):y=R(y/E),A*=E),typeof _=="number"&&(E=_|0,E<0?(D+=d*(v-1),v=R(-v/E)):v=R(v/E),d*=E),new S(this.data,y,v,A,d,D)},b.transpose=function(h,_){h=h===void 0?0:h|0,_=_===void 0?1:_|0;var y=this.shape,v=this.stride;return new S(this.data,y[h],y[_],v[h],v[_],this.offset)},b.pick=function(h,_){var y=[],v=[],A=this.offset;typeof h=="number"&&h>=0?A=A+this.stride[0]*h|0:(y.push(this.shape[0]),v.push(this.stride[0])),typeof _=="number"&&_>=0?A=A+this.stride[1]*_|0:(y.push(this.shape[1]),v.push(this.stride[1]));var d=m[y.length+1];return d(this.data,y,v,A)},function(h,_,y,v){return new S(h,_[0],_[1],y[0],y[1],v)}},3:function(M,m,k){function S(T,h,_,y,v,A,d,D){this.data=T,this.shape=[h,_,y],this.stride=[v,A,d],this.offset=D|0}var b=S.prototype;return b.dtype=M,b.dimension=3,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(b,"order",{get:function(){var h=Math.abs(this.stride[0]),_=Math.abs(this.stride[1]),y=Math.abs(this.stride[2]);return h>_?_>y?[2,1,0]:h>y?[1,2,0]:[1,0,2]:h>y?[2,0,1]:y>_?[0,1,2]:[0,2,1]}}),b.set=function(h,_,y,v){return M==="generic"?this.data.set(this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y,v):this.data[this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y]=v},b.get=function(h,_,y){return M==="generic"?this.data.get(this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y):this.data[this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y]},b.index=function(h,_,y){return this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y},b.hi=function(h,_,y){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,typeof _!="number"||_<0?this.shape[1]:_|0,typeof y!="number"||y<0?this.shape[2]:y|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},b.lo=function(h,_,y){var v=this.offset,A=0,d=this.shape[0],D=this.shape[1],E=this.shape[2],R=this.stride[0],z=this.stride[1],I=this.stride[2];return typeof h=="number"&&h>=0&&(A=h|0,v+=R*A,d-=A),typeof _=="number"&&_>=0&&(A=_|0,v+=z*A,D-=A),typeof y=="number"&&y>=0&&(A=y|0,v+=I*A,E-=A),new S(this.data,d,D,E,R,z,I,v)},b.step=function(h,_,y){var v=this.shape[0],A=this.shape[1],d=this.shape[2],D=this.stride[0],E=this.stride[1],R=this.stride[2],z=this.offset,I=0,P=Math.ceil;return typeof h=="number"&&(I=h|0,I<0?(z+=D*(v-1),v=P(-v/I)):v=P(v/I),D*=I),typeof _=="number"&&(I=_|0,I<0?(z+=E*(A-1),A=P(-A/I)):A=P(A/I),E*=I),typeof y=="number"&&(I=y|0,I<0?(z+=R*(d-1),d=P(-d/I)):d=P(d/I),R*=I),new S(this.data,v,A,d,D,E,R,z)},b.transpose=function(h,_,y){h=h===void 0?0:h|0,_=_===void 0?1:_|0,y=y===void 0?2:y|0;var v=this.shape,A=this.stride;return new S(this.data,v[h],v[_],v[y],A[h],A[_],A[y],this.offset)},b.pick=function(h,_,y){var v=[],A=[],d=this.offset;typeof h=="number"&&h>=0?d=d+this.stride[0]*h|0:(v.push(this.shape[0]),A.push(this.stride[0])),typeof _=="number"&&_>=0?d=d+this.stride[1]*_|0:(v.push(this.shape[1]),A.push(this.stride[1])),typeof y=="number"&&y>=0?d=d+this.stride[2]*y|0:(v.push(this.shape[2]),A.push(this.stride[2]));var D=m[v.length+1];return D(this.data,v,A,d)},function(h,_,y,v){return new S(h,_[0],_[1],_[2],y[0],y[1],y[2],v)}},4:function(M,m,k){function S(T,h,_,y,v,A,d,D,E,R){this.data=T,this.shape=[h,_,y,v],this.stride=[A,d,D,E],this.offset=R|0}var b=S.prototype;return b.dtype=M,b.dimension=4,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(b,"order",{get:k}),b.set=function(h,_,y,v,A){return M==="generic"?this.data.set(this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v,A):this.data[this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v]=A},b.get=function(h,_,y,v){return M==="generic"?this.data.get(this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v):this.data[this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v]},b.index=function(h,_,y,v){return this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v},b.hi=function(h,_,y,v){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,typeof _!="number"||_<0?this.shape[1]:_|0,typeof y!="number"||y<0?this.shape[2]:y|0,typeof v!="number"||v<0?this.shape[3]:v|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},b.lo=function(h,_,y,v){var A=this.offset,d=0,D=this.shape[0],E=this.shape[1],R=this.shape[2],z=this.shape[3],I=this.stride[0],P=this.stride[1],L=this.stride[2],F=this.stride[3];return typeof h=="number"&&h>=0&&(d=h|0,A+=I*d,D-=d),typeof _=="number"&&_>=0&&(d=_|0,A+=P*d,E-=d),typeof y=="number"&&y>=0&&(d=y|0,A+=L*d,R-=d),typeof v=="number"&&v>=0&&(d=v|0,A+=F*d,z-=d),new S(this.data,D,E,R,z,I,P,L,F,A)},b.step=function(h,_,y,v){var A=this.shape[0],d=this.shape[1],D=this.shape[2],E=this.shape[3],R=this.stride[0],z=this.stride[1],I=this.stride[2],P=this.stride[3],L=this.offset,F=0,B=Math.ceil;return typeof h=="number"&&(F=h|0,F<0?(L+=R*(A-1),A=B(-A/F)):A=B(A/F),R*=F),typeof _=="number"&&(F=_|0,F<0?(L+=z*(d-1),d=B(-d/F)):d=B(d/F),z*=F),typeof y=="number"&&(F=y|0,F<0?(L+=I*(D-1),D=B(-D/F)):D=B(D/F),I*=F),typeof v=="number"&&(F=v|0,F<0?(L+=P*(E-1),E=B(-E/F)):E=B(E/F),P*=F),new S(this.data,A,d,D,E,R,z,I,P,L)},b.transpose=function(h,_,y,v){h=h===void 0?0:h|0,_=_===void 0?1:_|0,y=y===void 0?2:y|0,v=v===void 0?3:v|0;var A=this.shape,d=this.stride;return new S(this.data,A[h],A[_],A[y],A[v],d[h],d[_],d[y],d[v],this.offset)},b.pick=function(h,_,y,v){var A=[],d=[],D=this.offset;typeof h=="number"&&h>=0?D=D+this.stride[0]*h|0:(A.push(this.shape[0]),d.push(this.stride[0])),typeof _=="number"&&_>=0?D=D+this.stride[1]*_|0:(A.push(this.shape[1]),d.push(this.stride[1])),typeof y=="number"&&y>=0?D=D+this.stride[2]*y|0:(A.push(this.shape[2]),d.push(this.stride[2])),typeof v=="number"&&v>=0?D=D+this.stride[3]*v|0:(A.push(this.shape[3]),d.push(this.stride[3]));var E=m[A.length+1];return E(this.data,A,d,D)},function(h,_,y,v){return new S(h,_[0],_[1],_[2],_[3],y[0],y[1],y[2],y[3],v)}},5:function(m,k,S){function b(h,_,y,v,A,d,D,E,R,z,I,P){this.data=h,this.shape=[_,y,v,A,d],this.stride=[D,E,R,z,I],this.offset=P|0}var T=b.prototype;return T.dtype=m,T.dimension=5,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(T,"order",{get:S}),T.set=function(_,y,v,A,d,D){return m==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*d,D):this.data[this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*d]=D},T.get=function(_,y,v,A,d){return m==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*d):this.data[this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*d]},T.index=function(_,y,v,A,d){return this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*d},T.hi=function(_,y,v,A,d){return new b(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof y!="number"||y<0?this.shape[1]:y|0,typeof v!="number"||v<0?this.shape[2]:v|0,typeof A!="number"||A<0?this.shape[3]:A|0,typeof d!="number"||d<0?this.shape[4]:d|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},T.lo=function(_,y,v,A,d){var D=this.offset,E=0,R=this.shape[0],z=this.shape[1],I=this.shape[2],P=this.shape[3],L=this.shape[4],F=this.stride[0],B=this.stride[1],O=this.stride[2],V=this.stride[3],K=this.stride[4];return typeof _=="number"&&_>=0&&(E=_|0,D+=F*E,R-=E),typeof y=="number"&&y>=0&&(E=y|0,D+=B*E,z-=E),typeof v=="number"&&v>=0&&(E=v|0,D+=O*E,I-=E),typeof A=="number"&&A>=0&&(E=A|0,D+=V*E,P-=E),typeof d=="number"&&d>=0&&(E=d|0,D+=K*E,L-=E),new b(this.data,R,z,I,P,L,F,B,O,V,K,D)},T.step=function(_,y,v,A,d){var D=this.shape[0],E=this.shape[1],R=this.shape[2],z=this.shape[3],I=this.shape[4],P=this.stride[0],L=this.stride[1],F=this.stride[2],B=this.stride[3],O=this.stride[4],V=this.offset,K=0,j=Math.ceil;return typeof _=="number"&&(K=_|0,K<0?(V+=P*(D-1),D=j(-D/K)):D=j(D/K),P*=K),typeof y=="number"&&(K=y|0,K<0?(V+=L*(E-1),E=j(-E/K)):E=j(E/K),L*=K),typeof v=="number"&&(K=v|0,K<0?(V+=F*(R-1),R=j(-R/K)):R=j(R/K),F*=K),typeof A=="number"&&(K=A|0,K<0?(V+=B*(z-1),z=j(-z/K)):z=j(z/K),B*=K),typeof d=="number"&&(K=d|0,K<0?(V+=O*(I-1),I=j(-I/K)):I=j(I/K),O*=K),new b(this.data,D,E,R,z,I,P,L,F,B,O,V)},T.transpose=function(_,y,v,A,d){_=_===void 0?0:_|0,y=y===void 0?1:y|0,v=v===void 0?2:v|0,A=A===void 0?3:A|0,d=d===void 0?4:d|0;var D=this.shape,E=this.stride;return new b(this.data,D[_],D[y],D[v],D[A],D[d],E[_],E[y],E[v],E[A],E[d],this.offset)},T.pick=function(_,y,v,A,d){var D=[],E=[],R=this.offset;typeof _=="number"&&_>=0?R=R+this.stride[0]*_|0:(D.push(this.shape[0]),E.push(this.stride[0])),typeof y=="number"&&y>=0?R=R+this.stride[1]*y|0:(D.push(this.shape[1]),E.push(this.stride[1])),typeof v=="number"&&v>=0?R=R+this.stride[2]*v|0:(D.push(this.shape[2]),E.push(this.stride[2])),typeof A=="number"&&A>=0?R=R+this.stride[3]*A|0:(D.push(this.shape[3]),E.push(this.stride[3])),typeof d=="number"&&d>=0?R=R+this.stride[4]*d|0:(D.push(this.shape[4]),E.push(this.stride[4]));var z=k[D.length+1];return z(this.data,D,E,R)},function(_,y,v,A){return new b(_,y[0],y[1],y[2],y[3],y[4],v[0],v[1],v[2],v[3],v[4],A)}}};function p(M,m){var k=m===-1?"T":String(m),S=c[k];return m===-1?S(M):m===0?S(M,g[M][0]):S(M,g[M],f)}function x(M){if(l(M))return"buffer";if(u)switch(Object.prototype.toString.call(M)){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(M)?"array":"generic"}var g={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function w(M,m,k,S){if(M===void 0){var v=g.array[0];return v([])}else typeof M=="number"&&(M=[M]);m===void 0&&(m=[M.length]);var b=m.length;if(k===void 0){k=new Array(b);for(var T=b-1,h=1;T>=0;--T)k[T]=h,h*=m[T]}if(S===void 0){S=0;for(var T=0;T<b;++T)k[T]<0&&(S-=(m[T]-1)*k[T])}for(var _=x(M),y=g[_];y.length<=b+1;)y.push(p(_,y.length-1));var v=y[b+1];return v(M,m,k,S)}a.exports=w},1278(a,o,i){"use strict";var l=i(2361),u=Math.pow(2,-1074),s=-1>>>0;a.exports=f;function f(c,p){if(isNaN(c)||isNaN(p))return NaN;if(c===p)return c;if(c===0)return p<0?-u:u;var x=l.hi(c),g=l.lo(c);return p>c==c>0?g===s?(x+=1,g=0):g+=1:g===0?(g=s,x-=1):g-=1,l.pack(g,x)}},8406(a,o){var i=1e-6,l=1e-6;o.vertexNormals=function(u,s,f){for(var c=s.length,p=new Array(c),x=f===void 0?i:f,g=0;g<c;++g)p[g]=[0,0,0];for(var g=0;g<u.length;++g)for(var w=u[g],M=0,m=w[w.length-1],k=w[0],S=0;S<w.length;++S){M=m,m=k,k=w[(S+1)%w.length];for(var b=s[M],T=s[m],h=s[k],_=new Array(3),y=0,v=new Array(3),A=0,d=0;d<3;++d)_[d]=b[d]-T[d],y+=_[d]*_[d],v[d]=h[d]-T[d],A+=v[d]*v[d];if(y*A>x)for(var D=p[m],E=1/Math.sqrt(y*A),d=0;d<3;++d){var R=(d+1)%3,z=(d+2)%3;D[d]+=E*(v[R]*_[z]-v[z]*_[R])}}for(var g=0;g<c;++g){for(var D=p[g],I=0,d=0;d<3;++d)I+=D[d]*D[d];if(I>x)for(var E=1/Math.sqrt(I),d=0;d<3;++d)D[d]*=E;else for(var d=0;d<3;++d)D[d]=0}return p},o.faceNormals=function(u,s,f){for(var c=u.length,p=new Array(c),x=f===void 0?l:f,g=0;g<c;++g){for(var w=u[g],M=new Array(3),m=0;m<3;++m)M[m]=s[w[m]];for(var k=new Array(3),S=new Array(3),m=0;m<3;++m)k[m]=M[1][m]-M[0][m],S[m]=M[2][m]-M[0][m];for(var b=new Array(3),T=0,m=0;m<3;++m){var h=(m+1)%3,_=(m+2)%3;b[m]=k[h]*S[_]-k[_]*S[h],T+=b[m]*b[m]}T>x?T=1/Math.sqrt(T):T=0;for(var m=0;m<3;++m)b[m]*=T;p[g]=b}return p}},4081(a){"use strict";a.exports=o;function o(i,l,u,s,f,c,p,x,g,w){var M=l+c+w;if(m>0){var m=Math.sqrt(M+1);i[0]=.5*(p-g)/m,i[1]=.5*(x-s)/m,i[2]=.5*(u-c)/m,i[3]=.5*m}else{var k=Math.max(l,c,w),m=Math.sqrt(2*k-M+1);l>=k?(i[0]=.5*m,i[1]=.5*(f+u)/m,i[2]=.5*(x+s)/m,i[3]=.5*(p-g)/m):c>=k?(i[0]=.5*(u+f)/m,i[1]=.5*m,i[2]=.5*(g+p)/m,i[3]=.5*(x-s)/m):(i[0]=.5*(s+x)/m,i[1]=.5*(p+g)/m,i[2]=.5*m,i[3]=.5*(u-f)/m)}return i}},9977(a,o,i){"use strict";a.exports=m;var l=i(9215),u=i(6582),s=i(7399),f=i(7608),c=i(4081);function p(k,S,b){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(b,2))}function x(k,S,b,T){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(b,2)+Math.pow(T,2))}function g(k,S){var b=S[0],T=S[1],h=S[2],_=S[3],y=x(b,T,h,_);y>1e-6?(k[0]=b/y,k[1]=T/y,k[2]=h/y,k[3]=_/y):(k[0]=k[1]=k[2]=0,k[3]=1)}function w(k,S,b){this.radius=l([b]),this.center=l(S),this.rotation=l(k),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 M=w.prototype;M.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},M.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var S=this.computedRotation;g(S,S);var b=this.computedMatrix;s(b,S);var T=this.computedCenter,h=this.computedEye,_=this.computedUp,y=Math.exp(this.computedRadius[0]);h[0]=T[0]+y*b[2],h[1]=T[1]+y*b[6],h[2]=T[2]+y*b[10],_[0]=b[1],_[1]=b[5],_[2]=b[9];for(var v=0;v<3;++v){for(var A=0,d=0;d<3;++d)A+=b[v+4*d]*h[d];b[12+v]=-A}},M.getMatrix=function(k,S){this.recalcMatrix(k);var b=this.computedMatrix;if(S){for(var T=0;T<16;++T)S[T]=b[T];return S}return b},M.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},M.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},M.pan=function(k,S,b,T){S=S||0,b=b||0,T=T||0,this.recalcMatrix(k);var h=this.computedMatrix,_=h[1],y=h[5],v=h[9],A=p(_,y,v);_/=A,y/=A,v/=A;var d=h[0],D=h[4],E=h[8],R=d*_+D*y+E*v;d-=_*R,D-=y*R,E-=v*R;var z=p(d,D,E);d/=z,D/=z,E/=z;var I=h[2],P=h[6],L=h[10],F=I*_+P*y+L*v,B=I*d+P*D+L*E;I-=F*_+B*d,P-=F*y+B*D,L-=F*v+B*E;var O=p(I,P,L);I/=O,P/=O,L/=O;var V=d*S+_*b,K=D*S+y*b,j=E*S+v*b;this.center.move(k,V,K,j);var G=Math.exp(this.computedRadius[0]);G=Math.max(1e-4,G+T),this.radius.set(k,Math.log(G))},M.rotate=function(k,S,b,T){this.recalcMatrix(k),S=S||0,b=b||0;var h=this.computedMatrix,_=h[0],y=h[4],v=h[8],A=h[1],d=h[5],D=h[9],E=h[2],R=h[6],z=h[10],I=S*_+b*A,P=S*y+b*d,L=S*v+b*D,F=-(R*L-z*P),B=-(z*I-E*L),O=-(E*P-R*I),V=Math.sqrt(Math.max(0,1-Math.pow(F,2)-Math.pow(B,2)-Math.pow(O,2))),K=x(F,B,O,V);K>1e-6?(F/=K,B/=K,O/=K,V/=K):(F=B=O=0,V=1);var j=this.computedRotation,G=j[0],q=j[1],J=j[2],te=j[3],Z=G*V+te*F+q*O-J*B,ie=q*V+te*B+J*F-G*O,Q=J*V+te*O+G*B-q*F,re=te*V-G*F-q*B-J*O;if(T){F=E,B=R,O=z;var ue=Math.sin(T)/p(F,B,O);F*=ue,B*=ue,O*=ue,V=Math.cos(S),Z=Z*V+re*F+ie*O-Q*B,ie=ie*V+re*B+Q*F-Z*O,Q=Q*V+re*O+Z*B-ie*F,re=re*V-Z*F-ie*B-Q*O}var ee=x(Z,ie,Q,re);ee>1e-6?(Z/=ee,ie/=ee,Q/=ee,re/=ee):(Z=ie=Q=0,re=1),this.rotation.set(k,Z,ie,Q,re)},M.lookAt=function(k,S,b,T){this.recalcMatrix(k),b=b||this.computedCenter,S=S||this.computedEye,T=T||this.computedUp;var h=this.computedMatrix;u(h,S,b,T);var _=this.computedRotation;c(_,h[0],h[1],h[2],h[4],h[5],h[6],h[8],h[9],h[10]),g(_,_),this.rotation.set(k,_[0],_[1],_[2],_[3]);for(var y=0,v=0;v<3;++v)y+=Math.pow(b[v]-S[v],2);this.radius.set(k,.5*Math.log(Math.max(y,1e-6))),this.center.set(k,b[0],b[1],b[2])},M.translate=function(k,S,b,T){this.center.move(k,S||0,b||0,T||0)},M.setMatrix=function(k,S){var b=this.computedRotation;c(b,S[0],S[1],S[2],S[4],S[5],S[6],S[8],S[9],S[10]),g(b,b),this.rotation.set(k,b[0],b[1],b[2],b[3]);var T=this.computedMatrix;f(T,S);var h=T[15];if(Math.abs(h)>1e-6){var _=T[12]/h,y=T[13]/h,v=T[14]/h;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,_-T[2]*A,y-T[6]*A,v-T[10]*A),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},M.setDistance=function(k,S){S>0&&this.radius.set(k,Math.log(S))},M.setDistanceLimits=function(k,S){k>0?k=Math.log(k):k=-1/0,S>0?S=Math.log(S):S=1/0,S=Math.max(S,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=S},M.getDistanceLimits=function(k){var S=this.radius.bounds;return k?(k[0]=Math.exp(S[0][0]),k[1]=Math.exp(S[1][0]),k):[Math.exp(S[0][0]),Math.exp(S[1][0])]},M.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]}},M.fromJSON=function(k){var S=this.lastT(),b=k.center;b&&this.center.set(S,b[0],b[1],b[2]);var T=k.rotation;T&&this.rotation.set(S,T[0],T[1],T[2],T[3]);var h=k.distance;h&&h>0&&this.radius.set(S,Math.log(h)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function m(k){k=k||{};var S=k.center||[0,0,0],b=k.rotation||[0,0,0,1],T=k.radius||1;S=[].slice.call(S,0,3),b=[].slice.call(b,0,4),g(b,b);var h=new w(b,S,Math.log(T));return h.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&h.lookAt(0,k.eye,k.center,k.up),h}},1371(a,o,i){"use strict";var l=i(3233);a.exports=function(s,f,c){return c=typeof c!="undefined"?c+"":" ",l(c,f)+s}},3202(a){a.exports=function(i,l){l||(l=[0,""]),i=String(i);var u=parseFloat(i,10);return l[0]=u,l[1]=i.match(/[\d.\-\+]*\s*(.*)/)[1]||"",l}},3088(a,o,i){"use strict";a.exports=u;var l=i(3140);function u(s,f){for(var c=f.length|0,p=s.length,x=[new Array(c),new Array(c)],g=0;g<c;++g)x[0][g]=[],x[1][g]=[];for(var g=0;g<p;++g){var w=s[g];x[0][w[0]].push(w),x[1][w[1]].push(w)}for(var M=[],g=0;g<c;++g)x[0][g].length+x[1][g].length===0&&M.push([g]);function m(v,A){var d=x[A][v[A]];d.splice(d.indexOf(v),1)}function k(v,A,d){for(var D,E,R,z=0;z<2;++z)if(x[z][A].length>0){D=x[z][A][0],R=z;break}E=D[R^1];for(var I=0;I<2;++I)for(var P=x[I][A],L=0;L<P.length;++L){var F=P[L],B=F[I^1],O=l(f[v],f[A],f[E],f[B]);O>0&&(D=F,E=B,R=I)}return d||D&&m(D,R),E}function S(v,A){var d=x[A][v][0],D=[v];m(d,A);for(var E=d[A^1],R=A;;){for(;E!==v;)D.push(E),E=k(D[D.length-2],E,!1);if(x[0][v].length+x[1][v].length===0)break;var z=D[D.length-1],I=v,P=D[1],L=k(z,I,!0);if(l(f[z],f[I],f[P],f[L])<0)break;D.push(v),E=k(z,I)}return D}function b(v,A){return A[1]===A[A.length-1]}for(var g=0;g<c;++g)for(var T=0;T<2;++T){for(var h=[];x[T][g].length>0;){var _=x[0][g].length,y=S(g,T);b(h,y)?h.push.apply(h,y):(h.length>0&&M.push(h),h=y)}h.length>0&&M.push(h)}return M}},5609(a,o,i){"use strict";a.exports=u;var l=i(3134);function u(s,f){for(var c=l(s,f.length),p=new Array(f.length),x=new Array(f.length),g=[],w=0;w<f.length;++w){var M=c[w].length;x[w]=M,p[w]=!0,M<=1&&g.push(w)}for(;g.length>0;){var m=g.pop();p[m]=!1;for(var k=c[m],w=0;w<k.length;++w){var S=k[w];--x[S]===0&&g.push(S)}}for(var b=new Array(f.length),T=[],w=0;w<f.length;++w)if(p[w]){var m=T.length;b[w]=m,T.push(f[w])}else b[w]=-1;for(var h=[],w=0;w<s.length;++w){var _=s[w];p[_[0]]&&p[_[1]]&&h.push([b[_[0]],b[_[1]]])}return[h,T]}},2095(a,o,i){"use strict";a.exports=M;var l=i(3134),u=i(3088),s=i(5085),f=i(5250),c=i(8210),p=i(1682),x=i(5609);function g(m,k){for(var S=new Array(m),b=0;b<m;++b)S[b]=k;return S}function w(m){for(var k=new Array(m),S=0;S<m;++S)k[S]=[];return k}function M(m,k){var ue=x(m,k);m=ue[0],k=ue[1];for(var S=k.length,b=m.length,T=l(m,k.length),h=0;h<S;++h)if(T[h].length%2===1)throw new Error("planar-graph-to-polyline: graph must be manifold");var _=u(m,k);function y(ge){for(var Le=ge.length,Ce=[0],le=0;le<Le;++le){var Y=k[ge[le]],$=k[ge[(le+1)%Le]],pe=f(-Y[0],Y[1]),oe=f(-Y[0],$[1]),ve=f($[0],Y[1]),he=f($[0],$[1]);Ce=c(Ce,c(c(pe,oe),c(ve,he)))}return Ce[Ce.length-1]>0}_=_.filter(y);for(var v=_.length,A=new Array(v),d=new Array(v),h=0;h<v;++h){A[h]=h;var D=new Array(v),E=_[h].map(function(Le){return k[Le]}),R=s([E]),z=0;e:for(var I=0;I<v;++I)if(D[I]=0,h!==I){for(var P=_[I],L=P.length,F=0;F<L;++F){var B=R(k[P[F]]);if(B!==0){B<0&&(D[I]=1,z+=1);continue e}}D[I]=1,z+=1}d[h]=[z,h,D]}d.sort(function(ge,Le){return Le[0]-ge[0]});for(var h=0;h<v;++h)for(var D=d[h],O=D[1],V=D[2],I=0;I<v;++I)V[I]&&(A[I]=O);for(var K=w(v),h=0;h<v;++h)K[h].push(A[h]),K[A[h]].push(h);for(var j={},G=g(S,!1),h=0;h<v;++h)for(var P=_[h],L=P.length,I=0;I<L;++I){var q=P[I],J=P[(I+1)%L],te=Math.min(q,J)+":"+Math.max(q,J);if(te in j){var Z=j[te];K[Z].push(h),K[h].push(Z),G[q]=G[J]=!0}else j[te]=h}function ie(ge){for(var Le=ge.length,Ce=0;Ce<Le;++Ce)if(!G[ge[Ce]])return!1;return!0}for(var Q=[],re=g(v,-1),h=0;h<v;++h)A[h]===h&&!ie(_[h])?(Q.push(h),re[h]=0):re[h]=-1;for(var ue=[];Q.length>0;){var ee=Q.pop(),ae=K[ee];p(ae,function(ge,Le){return ge-Le});var ce=ae.length,Te=re[ee],ke;if(Te===0){var P=_[ee];ke=[P]}for(var h=0;h<ce;++h){var Se=ae[h];if(!(re[Se]>=0)&&(re[Se]=Te^1,Q.push(Se),Te===0)){var P=_[Se];ie(P)||(P.reverse(),ke.push(P))}}Te===0&&ue.push(ke)}return ue}},5085(a,o,i){a.exports=k;var l=i(3250)[3],u=i(4209),s=i(3352),f=i(2478);function c(){return!0}function p(S){return function(b,T){var h=S[b];return h?!!h.queryPoint(T,c):!1}}function x(S){for(var b={},T=0;T<S.length;++T){var h=S[T],_=h[0][0],y=h[0][1],v=h[1][1],A=[Math.min(y,v),Math.max(y,v)];_ in b?b[_].push(A):b[_]=[A]}for(var d={},D=Object.keys(b),T=0;T<D.length;++T){var E=b[D[T]];d[D[T]]=s(E)}return p(d)}function g(S,b){return function(T){var h=f.le(b,T[0]);if(h<0)return 1;var _=S[h];if(!_)if(h>0&&b[h]===T[0])_=S[h-1];else return 1;for(var y=1;_;){var v=_.key,A=l(T,v[0],v[1]);if(v[0][0]<v[1][0])if(A<0)_=_.left;else if(A>0)y=-1,_=_.right;else return 0;else if(A>0)_=_.left;else if(A<0)y=1,_=_.right;else return 0}return y}}function w(S){return 1}function M(S){return function(T){return S(T[0],T[1])?0:1}}function m(S,b){return function(h){return S(h[0],h[1])?0:b(h)}}function k(S){for(var b=S.length,T=[],h=[],_=0,y=0;y<b;++y)for(var v=S[y],A=v.length,d=A-1,D=0;D<A;d=D++){var E=v[d],R=v[D];E[0]===R[0]?h.push([E,R]):T.push([E,R])}if(T.length===0)return h.length===0?w:M(x(h));var z=u(T),I=g(z.slabs,z.coordinates);return h.length===0?I:m(x(h),I)}},9346(a){"use strict";var o=new Float64Array(4),i=new Float64Array(4),l=new Float64Array(4);function u(s,f,c,p,x){o.length<p.length&&(o=new Float64Array(p.length),i=new Float64Array(p.length),l=new Float64Array(p.length));for(var g=0;g<p.length;++g)o[g]=s[g]-p[g],i[g]=f[g]-s[g],l[g]=c[g]-s[g];for(var w=0,M=0,m=0,k=0,S=0,b=0,g=0;g<p.length;++g){var T=i[g],h=l[g],_=o[g];w+=T*T,M+=T*h,m+=h*h,k+=_*T,S+=_*h,b+=_*_}var y=Math.abs(w*m-M*M),v=M*S-m*k,A=M*k-w*S,d;if(v+A<=y)if(v<0)A<0&&k<0?(A=0,-k>=w?(v=1,d=w+2*k+b):(v=-k/w,d=k*v+b)):(v=0,S>=0?(A=0,d=b):-S>=m?(A=1,d=m+2*S+b):(A=-S/m,d=S*A+b));else if(A<0)A=0,k>=0?(v=0,d=b):-k>=w?(v=1,d=w+2*k+b):(v=-k/w,d=k*v+b);else{var D=1/y;v*=D,A*=D,d=v*(w*v+M*A+2*k)+A*(M*v+m*A+2*S)+b}else{var E,R,z,I;v<0?(E=M+k,R=m+S,R>E?(z=R-E,I=w-2*M+m,z>=I?(v=1,A=0,d=w+2*k+b):(v=z/I,A=1-v,d=v*(w*v+M*A+2*k)+A*(M*v+m*A+2*S)+b)):(v=0,R<=0?(A=1,d=m+2*S+b):S>=0?(A=0,d=b):(A=-S/m,d=S*A+b))):A<0?(E=M+S,R=w+k,R>E?(z=R-E,I=w-2*M+m,z>=I?(A=1,v=0,d=m+2*S+b):(A=z/I,v=1-A,d=v*(w*v+M*A+2*k)+A*(M*v+m*A+2*S)+b)):(A=0,R<=0?(v=1,d=w+2*k+b):k>=0?(v=0,d=b):(v=-k/w,d=k*v+b))):(z=m+S-M-k,z<=0?(v=0,A=1,d=m+2*S+b):(I=w-2*M+m,z>=I?(v=1,A=0,d=w+2*k+b):(v=z/I,A=1-v,d=v*(w*v+M*A+2*k)+A*(M*v+m*A+2*S)+b)))}for(var P=1-v-A,g=0;g<p.length;++g)x[g]=P*s[g]+v*f[g]+A*c[g];return d<0?0:d}a.exports=u},8648(a,o,i){a.exports=i(783)},2653(a,o,i){"use strict";var l=i(3865);a.exports=u;function u(s,f){for(var c=s.length,p=new Array(c),x=0;x<c;++x)p[x]=l(s[x],f[x]);return p}},5838(a,o,i){"use strict";a.exports=u;var l=i(7842);function u(s){for(var f=new Array(s.length),c=0;c<s.length;++c)f[c]=l(s[c]);return f}},8987(a,o,i){"use strict";var l=i(7842),u=i(6504);a.exports=s;function s(f,c){for(var p=l(c),x=f.length,g=new Array(x),w=0;w<x;++w)g[w]=u(f[w],p);return g}},544(a,o,i){"use strict";var l=i(5572);a.exports=u;function u(s,f){for(var c=s.length,p=new Array(c),x=0;x<c;++x)p[x]=l(s[x],f[x]);return p}},5771(a,o,i){"use strict";var l=i(8507),u=i(3788),s=i(2419);a.exports=f;function f(c){c.sort(u);for(var p=c.length,x=0,g=0;g<p;++g){var w=c[g],M=s(w);if(M!==0){if(x>0){var m=c[x-1];if(l(w,m)===0&&s(m)!==M){x-=1;continue}}c[x++]=w}}return c.length=x,c}},3233(a){"use strict";var o="",i;a.exports=l;function l(u,s){if(typeof u!="string")throw new TypeError("expected a string");if(s===1)return u;if(s===2)return u+u;var f=u.length*s;if(i!==u||typeof i=="undefined")i=u,o="";else if(o.length>=f)return o.substr(0,f);for(;f>o.length&&s>1;)s&1&&(o+=u),s>>=1,u+=u;return o+=u,o=o.substr(0,f),o}},3025(a,o,i){a.exports=i.g.performance&&i.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004(a){"use strict";a.exports=o;function o(i){for(var l=i.length,u=i[i.length-1],s=l,f=l-2;f>=0;--f){var c=u,p=i[f];u=c+p;var x=u-c,g=p-x;g&&(i[--s]=u,u=g)}for(var w=0,f=s;f<l;++f){var c=i[f],p=u;u=c+p;var x=u-c,g=p-x;g&&(i[w++]=g)}return i[w++]=u,i.length=w,i}},2962(a,o,i){"use strict";var l=i(5250),u=i(8210),s=i(3012),f=i(7004),c=6;function p(b,T,h,_){return function(v){return _(b(h(v[0][0],v[1][1]),h(-v[0][1],v[1][0])))}}function x(b,T,h,_){return function(v){return _(b(T(b(h(v[1][1],v[2][2]),h(-v[1][2],v[2][1])),v[0][0]),b(T(b(h(v[1][0],v[2][2]),h(-v[1][2],v[2][0])),-v[0][1]),T(b(h(v[1][0],v[2][1]),h(-v[1][1],v[2][0])),v[0][2]))))}}function g(b,T,h,_){return function(v){return _(b(b(T(b(T(b(h(v[2][2],v[3][3]),h(-v[2][3],v[3][2])),v[1][1]),b(T(b(h(v[2][1],v[3][3]),h(-v[2][3],v[3][1])),-v[1][2]),T(b(h(v[2][1],v[3][2]),h(-v[2][2],v[3][1])),v[1][3]))),v[0][0]),T(b(T(b(h(v[2][2],v[3][3]),h(-v[2][3],v[3][2])),v[1][0]),b(T(b(h(v[2][0],v[3][3]),h(-v[2][3],v[3][0])),-v[1][2]),T(b(h(v[2][0],v[3][2]),h(-v[2][2],v[3][0])),v[1][3]))),-v[0][1])),b(T(b(T(b(h(v[2][1],v[3][3]),h(-v[2][3],v[3][1])),v[1][0]),b(T(b(h(v[2][0],v[3][3]),h(-v[2][3],v[3][0])),-v[1][1]),T(b(h(v[2][0],v[3][1]),h(-v[2][1],v[3][0])),v[1][3]))),v[0][2]),T(b(T(b(h(v[2][1],v[3][2]),h(-v[2][2],v[3][1])),v[1][0]),b(T(b(h(v[2][0],v[3][2]),h(-v[2][2],v[3][0])),-v[1][1]),T(b(h(v[2][0],v[3][1]),h(-v[2][1],v[3][0])),v[1][2]))),-v[0][3]))))}}function w(b,T,h,_){return function(v){return _(b(b(T(b(b(T(b(T(b(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][2]),b(T(b(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),-v[2][3]),T(b(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][4]))),v[1][1]),T(b(T(b(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][1]),b(T(b(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),-v[2][3]),T(b(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),v[2][4]))),-v[1][2])),b(T(b(T(b(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),v[2][1]),b(T(b(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),-v[2][2]),T(b(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][4]))),v[1][3]),T(b(T(b(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][1]),b(T(b(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),-v[2][2]),T(b(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][3]))),-v[1][4]))),v[0][0]),T(b(b(T(b(T(b(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][2]),b(T(b(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),-v[2][3]),T(b(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][4]))),v[1][0]),T(b(T(b(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][0]),b(T(b(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][3]),T(b(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),v[2][4]))),-v[1][2])),b(T(b(T(b(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),v[2][0]),b(T(b(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][2]),T(b(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),v[2][4]))),v[1][3]),T(b(T(b(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][0]),b(T(b(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),-v[2][2]),T(b(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),v[2][3]))),-v[1][4]))),-v[0][1])),b(T(b(b(T(b(T(b(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][1]),b(T(b(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),-v[2][3]),T(b(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),v[2][4]))),v[1][0]),T(b(T(b(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][0]),b(T(b(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][3]),T(b(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),v[2][4]))),-v[1][1])),b(T(b(T(b(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),v[2][0]),b(T(b(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][1]),T(b(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][4]))),v[1][3]),T(b(T(b(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),v[2][0]),b(T(b(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),-v[2][1]),T(b(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][3]))),-v[1][4]))),v[0][2]),b(T(b(b(T(b(T(b(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),v[2][1]),b(T(b(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),-v[2][2]),T(b(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][4]))),v[1][0]),T(b(T(b(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),v[2][0]),b(T(b(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][2]),T(b(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),v[2][4]))),-v[1][1])),b(T(b(T(b(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),v[2][0]),b(T(b(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][1]),T(b(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][4]))),v[1][2]),T(b(T(b(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][0]),b(T(b(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),-v[2][1]),T(b(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][2]))),-v[1][4]))),-v[0][3]),T(b(b(T(b(T(b(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][1]),b(T(b(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),-v[2][2]),T(b(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][3]))),v[1][0]),T(b(T(b(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][0]),b(T(b(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),-v[2][2]),T(b(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),v[2][3]))),-v[1][1])),b(T(b(T(b(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),v[2][0]),b(T(b(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),-v[2][1]),T(b(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][3]))),v[1][2]),T(b(T(b(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][0]),b(T(b(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),-v[2][1]),T(b(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][2]))),-v[1][3]))),v[0][4])))))}}function M(b){var T=b===2?p:b===3?x:b===4?g:b===5?w:void 0;return T(u,s,l,f)}var m=[function(){return[0]},function(T){return[T[0][0]]}];function k(b,T,h,_,y,v,A,d){return function(E){switch(E.length){case 0:return b(E);case 1:return T(E);case 2:return h(E);case 3:return _(E);case 4:return y(E);case 5:return v(E)}var R=A[E.length];return R||(R=A[E.length]=d(E.length)),R(E)}}function S(){for(;m.length<c;)m.push(M(m.length));a.exports=k.apply(void 0,m.concat([m,M]));for(var b=0;b<m.length;++b)a.exports[b]=m[b]}S()},1944(a,o,i){"use strict";var l=i(5250),u=i(8210);a.exports=s;function s(f,c){for(var p=l(f[0],c[0]),x=1;x<f.length;++x)p=u(p,l(f[x],c[x]));return p}},2646(a,o,i){"use strict";var l=i(5250),u=i(8210),s=i(8545),f=i(3012),c=6;function p(y){var v=y===3?M:y===4?m:y===5?k:S;return v(u,s,l,f)}function x(){return 0}function g(){return 0}function w(){return 0}function M(y,v,A,d){function D(E,R,z){var I=A(E[0],E[0]),P=d(I,R[0]),L=d(I,z[0]),F=A(R[0],R[0]),B=d(F,E[0]),O=d(F,z[0]),V=A(z[0],z[0]),K=d(V,E[0]),j=d(V,R[0]),G=y(v(j,O),v(B,P)),q=v(K,L),J=v(G,q);return J[J.length-1]}return D}function m(y,v,A,d){function D(E,R,z,I){var P=y(A(E[0],E[0]),A(E[1],E[1])),L=d(P,R[0]),F=d(P,z[0]),B=d(P,I[0]),O=y(A(R[0],R[0]),A(R[1],R[1])),V=d(O,E[0]),K=d(O,z[0]),j=d(O,I[0]),G=y(A(z[0],z[0]),A(z[1],z[1])),q=d(G,E[0]),J=d(G,R[0]),te=d(G,I[0]),Z=y(A(I[0],I[0]),A(I[1],I[1])),ie=d(Z,E[0]),Q=d(Z,R[0]),re=d(Z,z[0]),ue=y(y(d(v(re,te),R[1]),y(d(v(Q,j),-z[1]),d(v(J,K),I[1]))),y(d(v(Q,j),E[1]),y(d(v(ie,B),-R[1]),d(v(V,L),I[1])))),ee=y(y(d(v(re,te),E[1]),y(d(v(ie,B),-z[1]),d(v(q,F),I[1]))),y(d(v(J,K),E[1]),y(d(v(q,F),-R[1]),d(v(V,L),z[1])))),ae=v(ue,ee);return ae[ae.length-1]}return D}function k(y,v,A,d){function D(E,R,z,I,P){var L=y(A(E[0],E[0]),y(A(E[1],E[1]),A(E[2],E[2]))),F=d(L,R[0]),B=d(L,z[0]),O=d(L,I[0]),V=d(L,P[0]),K=y(A(R[0],R[0]),y(A(R[1],R[1]),A(R[2],R[2]))),j=d(K,E[0]),G=d(K,z[0]),q=d(K,I[0]),J=d(K,P[0]),te=y(A(z[0],z[0]),y(A(z[1],z[1]),A(z[2],z[2]))),Z=d(te,E[0]),ie=d(te,R[0]),Q=d(te,I[0]),re=d(te,P[0]),ue=y(A(I[0],I[0]),y(A(I[1],I[1]),A(I[2],I[2]))),ee=d(ue,E[0]),ae=d(ue,R[0]),ce=d(ue,z[0]),Te=d(ue,P[0]),ke=y(A(P[0],P[0]),y(A(P[1],P[1]),A(P[2],P[2]))),Se=d(ke,E[0]),ge=d(ke,R[0]),Le=d(ke,z[0]),Ce=d(ke,I[0]),le=y(y(y(d(y(d(v(Ce,Te),z[1]),y(d(v(Le,re),-I[1]),d(v(ce,Q),P[1]))),R[2]),y(d(y(d(v(Ce,Te),R[1]),y(d(v(ge,J),-I[1]),d(v(ae,q),P[1]))),-z[2]),d(y(d(v(Le,re),R[1]),y(d(v(ge,J),-z[1]),d(v(ie,G),P[1]))),I[2]))),y(d(y(d(v(ce,Q),R[1]),y(d(v(ae,q),-z[1]),d(v(ie,G),I[1]))),-P[2]),y(d(y(d(v(Ce,Te),R[1]),y(d(v(ge,J),-I[1]),d(v(ae,q),P[1]))),E[2]),d(y(d(v(Ce,Te),E[1]),y(d(v(Se,V),-I[1]),d(v(ee,O),P[1]))),-R[2])))),y(y(d(y(d(v(ge,J),E[1]),y(d(v(Se,V),-R[1]),d(v(j,F),P[1]))),I[2]),y(d(y(d(v(ae,q),E[1]),y(d(v(ee,O),-R[1]),d(v(j,F),I[1]))),-P[2]),d(y(d(v(ce,Q),R[1]),y(d(v(ae,q),-z[1]),d(v(ie,G),I[1]))),E[2]))),y(d(y(d(v(ce,Q),E[1]),y(d(v(ee,O),-z[1]),d(v(Z,B),I[1]))),-R[2]),y(d(y(d(v(ae,q),E[1]),y(d(v(ee,O),-R[1]),d(v(j,F),I[1]))),z[2]),d(y(d(v(ie,G),E[1]),y(d(v(Z,B),-R[1]),d(v(j,F),z[1]))),-I[2]))))),Y=y(y(y(d(y(d(v(Ce,Te),z[1]),y(d(v(Le,re),-I[1]),d(v(ce,Q),P[1]))),E[2]),d(y(d(v(Ce,Te),E[1]),y(d(v(Se,V),-I[1]),d(v(ee,O),P[1]))),-z[2])),y(d(y(d(v(Le,re),E[1]),y(d(v(Se,V),-z[1]),d(v(Z,B),P[1]))),I[2]),d(y(d(v(ce,Q),E[1]),y(d(v(ee,O),-z[1]),d(v(Z,B),I[1]))),-P[2]))),y(y(d(y(d(v(Le,re),R[1]),y(d(v(ge,J),-z[1]),d(v(ie,G),P[1]))),E[2]),d(y(d(v(Le,re),E[1]),y(d(v(Se,V),-z[1]),d(v(Z,B),P[1]))),-R[2])),y(d(y(d(v(ge,J),E[1]),y(d(v(Se,V),-R[1]),d(v(j,F),P[1]))),z[2]),d(y(d(v(ie,G),E[1]),y(d(v(Z,B),-R[1]),d(v(j,F),z[1]))),-P[2])))),$=v(le,Y);return $[$.length-1]}return D}function S(y,v,A,d){function D(E,R,z,I,P,L){var F=y(y(A(E[0],E[0]),A(E[1],E[1])),y(A(E[2],E[2]),A(E[3],E[3]))),B=d(F,R[0]),O=d(F,z[0]),V=d(F,I[0]),K=d(F,P[0]),j=d(F,L[0]),G=y(y(A(R[0],R[0]),A(R[1],R[1])),y(A(R[2],R[2]),A(R[3],R[3]))),q=d(G,E[0]),J=d(G,z[0]),te=d(G,I[0]),Z=d(G,P[0]),ie=d(G,L[0]),Q=y(y(A(z[0],z[0]),A(z[1],z[1])),y(A(z[2],z[2]),A(z[3],z[3]))),re=d(Q,E[0]),ue=d(Q,R[0]),ee=d(Q,I[0]),ae=d(Q,P[0]),ce=d(Q,L[0]),Te=y(y(A(I[0],I[0]),A(I[1],I[1])),y(A(I[2],I[2]),A(I[3],I[3]))),ke=d(Te,E[0]),Se=d(Te,R[0]),ge=d(Te,z[0]),Le=d(Te,P[0]),Ce=d(Te,L[0]),le=y(y(A(P[0],P[0]),A(P[1],P[1])),y(A(P[2],P[2]),A(P[3],P[3]))),Y=d(le,E[0]),$=d(le,R[0]),pe=d(le,z[0]),oe=d(le,I[0]),ve=d(le,L[0]),he=y(y(A(L[0],L[0]),A(L[1],L[1])),y(A(L[2],L[2]),A(L[3],L[3]))),me=d(he,E[0]),be=d(he,R[0]),ye=d(he,z[0]),de=d(he,I[0]),_e=d(he,P[0]),Ae=y(y(y(d(y(y(d(y(d(v(_e,ve),I[1]),y(d(v(de,Ce),-P[1]),d(v(oe,Le),L[1]))),z[2]),d(y(d(v(_e,ve),z[1]),y(d(v(ye,ce),-P[1]),d(v(pe,ae),L[1]))),-I[2])),y(d(y(d(v(de,Ce),z[1]),y(d(v(ye,ce),-I[1]),d(v(ge,ee),L[1]))),P[2]),d(y(d(v(oe,Le),z[1]),y(d(v(pe,ae),-I[1]),d(v(ge,ee),P[1]))),-L[2]))),R[3]),y(d(y(y(d(y(d(v(_e,ve),I[1]),y(d(v(de,Ce),-P[1]),d(v(oe,Le),L[1]))),R[2]),d(y(d(v(_e,ve),R[1]),y(d(v(be,ie),-P[1]),d(v($,Z),L[1]))),-I[2])),y(d(y(d(v(de,Ce),R[1]),y(d(v(be,ie),-I[1]),d(v(Se,te),L[1]))),P[2]),d(y(d(v(oe,Le),R[1]),y(d(v($,Z),-I[1]),d(v(Se,te),P[1]))),-L[2]))),-z[3]),d(y(y(d(y(d(v(_e,ve),z[1]),y(d(v(ye,ce),-P[1]),d(v(pe,ae),L[1]))),R[2]),d(y(d(v(_e,ve),R[1]),y(d(v(be,ie),-P[1]),d(v($,Z),L[1]))),-z[2])),y(d(y(d(v(ye,ce),R[1]),y(d(v(be,ie),-z[1]),d(v(ue,J),L[1]))),P[2]),d(y(d(v(pe,ae),R[1]),y(d(v($,Z),-z[1]),d(v(ue,J),P[1]))),-L[2]))),I[3]))),y(y(d(y(y(d(y(d(v(de,Ce),z[1]),y(d(v(ye,ce),-I[1]),d(v(ge,ee),L[1]))),R[2]),d(y(d(v(de,Ce),R[1]),y(d(v(be,ie),-I[1]),d(v(Se,te),L[1]))),-z[2])),y(d(y(d(v(ye,ce),R[1]),y(d(v(be,ie),-z[1]),d(v(ue,J),L[1]))),I[2]),d(y(d(v(ge,ee),R[1]),y(d(v(Se,te),-z[1]),d(v(ue,J),I[1]))),-L[2]))),-P[3]),d(y(y(d(y(d(v(oe,Le),z[1]),y(d(v(pe,ae),-I[1]),d(v(ge,ee),P[1]))),R[2]),d(y(d(v(oe,Le),R[1]),y(d(v($,Z),-I[1]),d(v(Se,te),P[1]))),-z[2])),y(d(y(d(v(pe,ae),R[1]),y(d(v($,Z),-z[1]),d(v(ue,J),P[1]))),I[2]),d(y(d(v(ge,ee),R[1]),y(d(v(Se,te),-z[1]),d(v(ue,J),I[1]))),-P[2]))),L[3])),y(d(y(y(d(y(d(v(_e,ve),I[1]),y(d(v(de,Ce),-P[1]),d(v(oe,Le),L[1]))),R[2]),d(y(d(v(_e,ve),R[1]),y(d(v(be,ie),-P[1]),d(v($,Z),L[1]))),-I[2])),y(d(y(d(v(de,Ce),R[1]),y(d(v(be,ie),-I[1]),d(v(Se,te),L[1]))),P[2]),d(y(d(v(oe,Le),R[1]),y(d(v($,Z),-I[1]),d(v(Se,te),P[1]))),-L[2]))),E[3]),d(y(y(d(y(d(v(_e,ve),I[1]),y(d(v(de,Ce),-P[1]),d(v(oe,Le),L[1]))),E[2]),d(y(d(v(_e,ve),E[1]),y(d(v(me,j),-P[1]),d(v(Y,K),L[1]))),-I[2])),y(d(y(d(v(de,Ce),E[1]),y(d(v(me,j),-I[1]),d(v(ke,V),L[1]))),P[2]),d(y(d(v(oe,Le),E[1]),y(d(v(Y,K),-I[1]),d(v(ke,V),P[1]))),-L[2]))),-R[3])))),y(y(y(d(y(y(d(y(d(v(_e,ve),R[1]),y(d(v(be,ie),-P[1]),d(v($,Z),L[1]))),E[2]),d(y(d(v(_e,ve),E[1]),y(d(v(me,j),-P[1]),d(v(Y,K),L[1]))),-R[2])),y(d(y(d(v(be,ie),E[1]),y(d(v(me,j),-R[1]),d(v(q,B),L[1]))),P[2]),d(y(d(v($,Z),E[1]),y(d(v(Y,K),-R[1]),d(v(q,B),P[1]))),-L[2]))),I[3]),d(y(y(d(y(d(v(de,Ce),R[1]),y(d(v(be,ie),-I[1]),d(v(Se,te),L[1]))),E[2]),d(y(d(v(de,Ce),E[1]),y(d(v(me,j),-I[1]),d(v(ke,V),L[1]))),-R[2])),y(d(y(d(v(be,ie),E[1]),y(d(v(me,j),-R[1]),d(v(q,B),L[1]))),I[2]),d(y(d(v(Se,te),E[1]),y(d(v(ke,V),-R[1]),d(v(q,B),I[1]))),-L[2]))),-P[3])),y(d(y(y(d(y(d(v(oe,Le),R[1]),y(d(v($,Z),-I[1]),d(v(Se,te),P[1]))),E[2]),d(y(d(v(oe,Le),E[1]),y(d(v(Y,K),-I[1]),d(v(ke,V),P[1]))),-R[2])),y(d(y(d(v($,Z),E[1]),y(d(v(Y,K),-R[1]),d(v(q,B),P[1]))),I[2]),d(y(d(v(Se,te),E[1]),y(d(v(ke,V),-R[1]),d(v(q,B),I[1]))),-P[2]))),L[3]),d(y(y(d(y(d(v(de,Ce),z[1]),y(d(v(ye,ce),-I[1]),d(v(ge,ee),L[1]))),R[2]),d(y(d(v(de,Ce),R[1]),y(d(v(be,ie),-I[1]),d(v(Se,te),L[1]))),-z[2])),y(d(y(d(v(ye,ce),R[1]),y(d(v(be,ie),-z[1]),d(v(ue,J),L[1]))),I[2]),d(y(d(v(ge,ee),R[1]),y(d(v(Se,te),-z[1]),d(v(ue,J),I[1]))),-L[2]))),E[3]))),y(y(d(y(y(d(y(d(v(de,Ce),z[1]),y(d(v(ye,ce),-I[1]),d(v(ge,ee),L[1]))),E[2]),d(y(d(v(de,Ce),E[1]),y(d(v(me,j),-I[1]),d(v(ke,V),L[1]))),-z[2])),y(d(y(d(v(ye,ce),E[1]),y(d(v(me,j),-z[1]),d(v(re,O),L[1]))),I[2]),d(y(d(v(ge,ee),E[1]),y(d(v(ke,V),-z[1]),d(v(re,O),I[1]))),-L[2]))),-R[3]),d(y(y(d(y(d(v(de,Ce),R[1]),y(d(v(be,ie),-I[1]),d(v(Se,te),L[1]))),E[2]),d(y(d(v(de,Ce),E[1]),y(d(v(me,j),-I[1]),d(v(ke,V),L[1]))),-R[2])),y(d(y(d(v(be,ie),E[1]),y(d(v(me,j),-R[1]),d(v(q,B),L[1]))),I[2]),d(y(d(v(Se,te),E[1]),y(d(v(ke,V),-R[1]),d(v(q,B),I[1]))),-L[2]))),z[3])),y(d(y(y(d(y(d(v(ye,ce),R[1]),y(d(v(be,ie),-z[1]),d(v(ue,J),L[1]))),E[2]),d(y(d(v(ye,ce),E[1]),y(d(v(me,j),-z[1]),d(v(re,O),L[1]))),-R[2])),y(d(y(d(v(be,ie),E[1]),y(d(v(me,j),-R[1]),d(v(q,B),L[1]))),z[2]),d(y(d(v(ue,J),E[1]),y(d(v(re,O),-R[1]),d(v(q,B),z[1]))),-L[2]))),-I[3]),d(y(y(d(y(d(v(ge,ee),R[1]),y(d(v(Se,te),-z[1]),d(v(ue,J),I[1]))),E[2]),d(y(d(v(ge,ee),E[1]),y(d(v(ke,V),-z[1]),d(v(re,O),I[1]))),-R[2])),y(d(y(d(v(Se,te),E[1]),y(d(v(ke,V),-R[1]),d(v(q,B),I[1]))),z[2]),d(y(d(v(ue,J),E[1]),y(d(v(re,O),-R[1]),d(v(q,B),z[1]))),-I[2]))),L[3]))))),Pe=y(y(y(d(y(y(d(y(d(v(_e,ve),I[1]),y(d(v(de,Ce),-P[1]),d(v(oe,Le),L[1]))),z[2]),d(y(d(v(_e,ve),z[1]),y(d(v(ye,ce),-P[1]),d(v(pe,ae),L[1]))),-I[2])),y(d(y(d(v(de,Ce),z[1]),y(d(v(ye,ce),-I[1]),d(v(ge,ee),L[1]))),P[2]),d(y(d(v(oe,Le),z[1]),y(d(v(pe,ae),-I[1]),d(v(ge,ee),P[1]))),-L[2]))),E[3]),y(d(y(y(d(y(d(v(_e,ve),I[1]),y(d(v(de,Ce),-P[1]),d(v(oe,Le),L[1]))),E[2]),d(y(d(v(_e,ve),E[1]),y(d(v(me,j),-P[1]),d(v(Y,K),L[1]))),-I[2])),y(d(y(d(v(de,Ce),E[1]),y(d(v(me,j),-I[1]),d(v(ke,V),L[1]))),P[2]),d(y(d(v(oe,Le),E[1]),y(d(v(Y,K),-I[1]),d(v(ke,V),P[1]))),-L[2]))),-z[3]),d(y(y(d(y(d(v(_e,ve),z[1]),y(d(v(ye,ce),-P[1]),d(v(pe,ae),L[1]))),E[2]),d(y(d(v(_e,ve),E[1]),y(d(v(me,j),-P[1]),d(v(Y,K),L[1]))),-z[2])),y(d(y(d(v(ye,ce),E[1]),y(d(v(me,j),-z[1]),d(v(re,O),L[1]))),P[2]),d(y(d(v(pe,ae),E[1]),y(d(v(Y,K),-z[1]),d(v(re,O),P[1]))),-L[2]))),I[3]))),y(y(d(y(y(d(y(d(v(de,Ce),z[1]),y(d(v(ye,ce),-I[1]),d(v(ge,ee),L[1]))),E[2]),d(y(d(v(de,Ce),E[1]),y(d(v(me,j),-I[1]),d(v(ke,V),L[1]))),-z[2])),y(d(y(d(v(ye,ce),E[1]),y(d(v(me,j),-z[1]),d(v(re,O),L[1]))),I[2]),d(y(d(v(ge,ee),E[1]),y(d(v(ke,V),-z[1]),d(v(re,O),I[1]))),-L[2]))),-P[3]),d(y(y(d(y(d(v(oe,Le),z[1]),y(d(v(pe,ae),-I[1]),d(v(ge,ee),P[1]))),E[2]),d(y(d(v(oe,Le),E[1]),y(d(v(Y,K),-I[1]),d(v(ke,V),P[1]))),-z[2])),y(d(y(d(v(pe,ae),E[1]),y(d(v(Y,K),-z[1]),d(v(re,O),P[1]))),I[2]),d(y(d(v(ge,ee),E[1]),y(d(v(ke,V),-z[1]),d(v(re,O),I[1]))),-P[2]))),L[3])),y(d(y(y(d(y(d(v(_e,ve),z[1]),y(d(v(ye,ce),-P[1]),d(v(pe,ae),L[1]))),R[2]),d(y(d(v(_e,ve),R[1]),y(d(v(be,ie),-P[1]),d(v($,Z),L[1]))),-z[2])),y(d(y(d(v(ye,ce),R[1]),y(d(v(be,ie),-z[1]),d(v(ue,J),L[1]))),P[2]),d(y(d(v(pe,ae),R[1]),y(d(v($,Z),-z[1]),d(v(ue,J),P[1]))),-L[2]))),E[3]),d(y(y(d(y(d(v(_e,ve),z[1]),y(d(v(ye,ce),-P[1]),d(v(pe,ae),L[1]))),E[2]),d(y(d(v(_e,ve),E[1]),y(d(v(me,j),-P[1]),d(v(Y,K),L[1]))),-z[2])),y(d(y(d(v(ye,ce),E[1]),y(d(v(me,j),-z[1]),d(v(re,O),L[1]))),P[2]),d(y(d(v(pe,ae),E[1]),y(d(v(Y,K),-z[1]),d(v(re,O),P[1]))),-L[2]))),-R[3])))),y(y(y(d(y(y(d(y(d(v(_e,ve),R[1]),y(d(v(be,ie),-P[1]),d(v($,Z),L[1]))),E[2]),d(y(d(v(_e,ve),E[1]),y(d(v(me,j),-P[1]),d(v(Y,K),L[1]))),-R[2])),y(d(y(d(v(be,ie),E[1]),y(d(v(me,j),-R[1]),d(v(q,B),L[1]))),P[2]),d(y(d(v($,Z),E[1]),y(d(v(Y,K),-R[1]),d(v(q,B),P[1]))),-L[2]))),z[3]),d(y(y(d(y(d(v(ye,ce),R[1]),y(d(v(be,ie),-z[1]),d(v(ue,J),L[1]))),E[2]),d(y(d(v(ye,ce),E[1]),y(d(v(me,j),-z[1]),d(v(re,O),L[1]))),-R[2])),y(d(y(d(v(be,ie),E[1]),y(d(v(me,j),-R[1]),d(v(q,B),L[1]))),z[2]),d(y(d(v(ue,J),E[1]),y(d(v(re,O),-R[1]),d(v(q,B),z[1]))),-L[2]))),-P[3])),y(d(y(y(d(y(d(v(pe,ae),R[1]),y(d(v($,Z),-z[1]),d(v(ue,J),P[1]))),E[2]),d(y(d(v(pe,ae),E[1]),y(d(v(Y,K),-z[1]),d(v(re,O),P[1]))),-R[2])),y(d(y(d(v($,Z),E[1]),y(d(v(Y,K),-R[1]),d(v(q,B),P[1]))),z[2]),d(y(d(v(ue,J),E[1]),y(d(v(re,O),-R[1]),d(v(q,B),z[1]))),-P[2]))),L[3]),d(y(y(d(y(d(v(oe,Le),z[1]),y(d(v(pe,ae),-I[1]),d(v(ge,ee),P[1]))),R[2]),d(y(d(v(oe,Le),R[1]),y(d(v($,Z),-I[1]),d(v(Se,te),P[1]))),-z[2])),y(d(y(d(v(pe,ae),R[1]),y(d(v($,Z),-z[1]),d(v(ue,J),P[1]))),I[2]),d(y(d(v(ge,ee),R[1]),y(d(v(Se,te),-z[1]),d(v(ue,J),I[1]))),-P[2]))),E[3]))),y(y(d(y(y(d(y(d(v(oe,Le),z[1]),y(d(v(pe,ae),-I[1]),d(v(ge,ee),P[1]))),E[2]),d(y(d(v(oe,Le),E[1]),y(d(v(Y,K),-I[1]),d(v(ke,V),P[1]))),-z[2])),y(d(y(d(v(pe,ae),E[1]),y(d(v(Y,K),-z[1]),d(v(re,O),P[1]))),I[2]),d(y(d(v(ge,ee),E[1]),y(d(v(ke,V),-z[1]),d(v(re,O),I[1]))),-P[2]))),-R[3]),d(y(y(d(y(d(v(oe,Le),R[1]),y(d(v($,Z),-I[1]),d(v(Se,te),P[1]))),E[2]),d(y(d(v(oe,Le),E[1]),y(d(v(Y,K),-I[1]),d(v(ke,V),P[1]))),-R[2])),y(d(y(d(v($,Z),E[1]),y(d(v(Y,K),-R[1]),d(v(q,B),P[1]))),I[2]),d(y(d(v(Se,te),E[1]),y(d(v(ke,V),-R[1]),d(v(q,B),I[1]))),-P[2]))),z[3])),y(d(y(y(d(y(d(v(pe,ae),R[1]),y(d(v($,Z),-z[1]),d(v(ue,J),P[1]))),E[2]),d(y(d(v(pe,ae),E[1]),y(d(v(Y,K),-z[1]),d(v(re,O),P[1]))),-R[2])),y(d(y(d(v($,Z),E[1]),y(d(v(Y,K),-R[1]),d(v(q,B),P[1]))),z[2]),d(y(d(v(ue,J),E[1]),y(d(v(re,O),-R[1]),d(v(q,B),z[1]))),-P[2]))),-I[3]),d(y(y(d(y(d(v(ge,ee),R[1]),y(d(v(Se,te),-z[1]),d(v(ue,J),I[1]))),E[2]),d(y(d(v(ge,ee),E[1]),y(d(v(ke,V),-z[1]),d(v(re,O),I[1]))),-R[2])),y(d(y(d(v(Se,te),E[1]),y(d(v(ke,V),-R[1]),d(v(q,B),I[1]))),z[2]),d(y(d(v(ue,J),E[1]),y(d(v(re,O),-R[1]),d(v(q,B),z[1]))),-I[2]))),P[3]))))),Fe=v(Ae,Pe);return Fe[Fe.length-1]}return D}var b=[x,g,w];function T(y){var v=b[y.length];return v||(v=b[y.length]=p(y.length)),v.apply(void 0,y)}function h(y,v,A,d,D,E,R,z){function I(P,L,F,B,O,V){switch(arguments.length){case 0:case 1:return 0;case 2:return d(P,L);case 3:return D(P,L,F);case 4:return E(P,L,F,B);case 5:return R(P,L,F,B,O);case 6:return z(P,L,F,B,O,V)}for(var K=new Array(arguments.length),j=0;j<arguments.length;++j)K[j]=arguments[j];return y(K)}return I}function _(){for(;b.length<=c;)b.push(p(b.length));a.exports=h.apply(void 0,[T].concat(b));for(var y=0;y<=c;++y)a.exports[y]=b[y]}_()},727(a,o,i){"use strict";var l=i(2962),u=6;function s(b){var T=b===2?p:b===3?x:b===4?g:b===5?w:M;return b<6?T(l[b]):T(l)}function f(){return[[0]]}function c(b,T){return[[T[0]],[b[0][0]]]}function p(b){return function(h,_){return[b([[+_[0],+h[0][1]],[+_[1],+h[1][1]]]),b([[+h[0][0],+_[0]],[+h[1][0],+_[1]]]),b(h)]}}function x(b){return function(h,_){return[b([[+_[0],+h[0][1],+h[0][2]],[+_[1],+h[1][1],+h[1][2]],[+_[2],+h[2][1],+h[2][2]]]),b([[+h[0][0],+_[0],+h[0][2]],[+h[1][0],+_[1],+h[1][2]],[+h[2][0],+_[2],+h[2][2]]]),b([[+h[0][0],+h[0][1],+_[0]],[+h[1][0],+h[1][1],+_[1]],[+h[2][0],+h[2][1],+_[2]]]),b(h)]}}function g(b){return function(h,_){return[b([[+_[0],+h[0][1],+h[0][2],+h[0][3]],[+_[1],+h[1][1],+h[1][2],+h[1][3]],[+_[2],+h[2][1],+h[2][2],+h[2][3]],[+_[3],+h[3][1],+h[3][2],+h[3][3]]]),b([[+h[0][0],+_[0],+h[0][2],+h[0][3]],[+h[1][0],+_[1],+h[1][2],+h[1][3]],[+h[2][0],+_[2],+h[2][2],+h[2][3]],[+h[3][0],+_[3],+h[3][2],+h[3][3]]]),b([[+h[0][0],+h[0][1],+_[0],+h[0][3]],[+h[1][0],+h[1][1],+_[1],+h[1][3]],[+h[2][0],+h[2][1],+_[2],+h[2][3]],[+h[3][0],+h[3][1],+_[3],+h[3][3]]]),b([[+h[0][0],+h[0][1],+h[0][2],+_[0]],[+h[1][0],+h[1][1],+h[1][2],+_[1]],[+h[2][0],+h[2][1],+h[2][2],+_[2]],[+h[3][0],+h[3][1],+h[3][2],+_[3]]]),b(h)]}}function w(b){return function(h,_){return[b([[+_[0],+h[0][1],+h[0][2],+h[0][3],+h[0][4]],[+_[1],+h[1][1],+h[1][2],+h[1][3],+h[1][4]],[+_[2],+h[2][1],+h[2][2],+h[2][3],+h[2][4]],[+_[3],+h[3][1],+h[3][2],+h[3][3],+h[3][4]],[+_[4],+h[4][1],+h[4][2],+h[4][3],+h[4][4]]]),b([[+h[0][0],+_[0],+h[0][2],+h[0][3],+h[0][4]],[+h[1][0],+_[1],+h[1][2],+h[1][3],+h[1][4]],[+h[2][0],+_[2],+h[2][2],+h[2][3],+h[2][4]],[+h[3][0],+_[3],+h[3][2],+h[3][3],+h[3][4]],[+h[4][0],+_[4],+h[4][2],+h[4][3],+h[4][4]]]),b([[+h[0][0],+h[0][1],+_[0],+h[0][3],+h[0][4]],[+h[1][0],+h[1][1],+_[1],+h[1][3],+h[1][4]],[+h[2][0],+h[2][1],+_[2],+h[2][3],+h[2][4]],[+h[3][0],+h[3][1],+_[3],+h[3][3],+h[3][4]],[+h[4][0],+h[4][1],+_[4],+h[4][3],+h[4][4]]]),b([[+h[0][0],+h[0][1],+h[0][2],+_[0],+h[0][4]],[+h[1][0],+h[1][1],+h[1][2],+_[1],+h[1][4]],[+h[2][0],+h[2][1],+h[2][2],+_[2],+h[2][4]],[+h[3][0],+h[3][1],+h[3][2],+_[3],+h[3][4]],[+h[4][0],+h[4][1],+h[4][2],+_[4],+h[4][4]]]),b([[+h[0][0],+h[0][1],+h[0][2],+h[0][3],+_[0]],[+h[1][0],+h[1][1],+h[1][2],+h[1][3],+_[1]],[+h[2][0],+h[2][1],+h[2][2],+h[2][3],+_[2]],[+h[3][0],+h[3][1],+h[3][2],+h[3][3],+_[3]],[+h[4][0],+h[4][1],+h[4][2],+h[4][3],+_[4]]]),b(h)]}}function M(b){return function(h,_){return[b([[+_[0],+h[0][1],+h[0][2],+h[0][3],+h[0][4],+h[0][5]],[+_[1],+h[1][1],+h[1][2],+h[1][3],+h[1][4],+h[1][5]],[+_[2],+h[2][1],+h[2][2],+h[2][3],+h[2][4],+h[2][5]],[+_[3],+h[3][1],+h[3][2],+h[3][3],+h[3][4],+h[3][5]],[+_[4],+h[4][1],+h[4][2],+h[4][3],+h[4][4],+h[4][5]],[+_[5],+h[5][1],+h[5][2],+h[5][3],+h[5][4],+h[5][5]]]),b([[+h[0][0],+_[0],+h[0][2],+h[0][3],+h[0][4],+h[0][5]],[+h[1][0],+_[1],+h[1][2],+h[1][3],+h[1][4],+h[1][5]],[+h[2][0],+_[2],+h[2][2],+h[2][3],+h[2][4],+h[2][5]],[+h[3][0],+_[3],+h[3][2],+h[3][3],+h[3][4],+h[3][5]],[+h[4][0],+_[4],+h[4][2],+h[4][3],+h[4][4],+h[4][5]],[+h[5][0],+_[5],+h[5][2],+h[5][3],+h[5][4],+h[5][5]]]),b([[+h[0][0],+h[0][1],+_[0],+h[0][3],+h[0][4],+h[0][5]],[+h[1][0],+h[1][1],+_[1],+h[1][3],+h[1][4],+h[1][5]],[+h[2][0],+h[2][1],+_[2],+h[2][3],+h[2][4],+h[2][5]],[+h[3][0],+h[3][1],+_[3],+h[3][3],+h[3][4],+h[3][5]],[+h[4][0],+h[4][1],+_[4],+h[4][3],+h[4][4],+h[4][5]],[+h[5][0],+h[5][1],+_[5],+h[5][3],+h[5][4],+h[5][5]]]),b([[+h[0][0],+h[0][1],+h[0][2],+_[0],+h[0][4],+h[0][5]],[+h[1][0],+h[1][1],+h[1][2],+_[1],+h[1][4],+h[1][5]],[+h[2][0],+h[2][1],+h[2][2],+_[2],+h[2][4],+h[2][5]],[+h[3][0],+h[3][1],+h[3][2],+_[3],+h[3][4],+h[3][5]],[+h[4][0],+h[4][1],+h[4][2],+_[4],+h[4][4],+h[4][5]],[+h[5][0],+h[5][1],+h[5][2],+_[5],+h[5][4],+h[5][5]]]),b([[+h[0][0],+h[0][1],+h[0][2],+h[0][3],+_[0],+h[0][5]],[+h[1][0],+h[1][1],+h[1][2],+h[1][3],+_[1],+h[1][5]],[+h[2][0],+h[2][1],+h[2][2],+h[2][3],+_[2],+h[2][5]],[+h[3][0],+h[3][1],+h[3][2],+h[3][3],+_[3],+h[3][5]],[+h[4][0],+h[4][1],+h[4][2],+h[4][3],+_[4],+h[4][5]],[+h[5][0],+h[5][1],+h[5][2],+h[5][3],+_[5],+h[5][5]]]),b([[+h[0][0],+h[0][1],+h[0][2],+h[0][3],+h[0][4],+_[0]],[+h[1][0],+h[1][1],+h[1][2],+h[1][3],+h[1][4],+_[1]],[+h[2][0],+h[2][1],+h[2][2],+h[2][3],+h[2][4],+_[2]],[+h[3][0],+h[3][1],+h[3][2],+h[3][3],+h[3][4],+_[3]],[+h[4][0],+h[4][1],+h[4][2],+h[4][3],+h[4][4],+_[4]],[+h[5][0],+h[5][1],+h[5][2],+h[5][3],+h[5][4],+_[5]]]),b(h)]}}var m=[f,c];function k(b,T,h,_,y,v,A,d){return function(E,R){switch(E.length){case 0:return b(E,R);case 1:return T(E,R);case 2:return h(E,R);case 3:return _(E,R);case 4:return y(E,R);case 5:return v(E,R)}var z=A[E.length];return z||(z=A[E.length]=d(E.length)),z(E,R)}}function S(){for(;m.length<u;)m.push(s(m.length));a.exports=k.apply(void 0,m.concat([m,s]));for(var b=0;b<u;++b)a.exports[b]=m[b]}S()},3250(a,o,i){"use strict";var l=i(5250),u=i(8210),s=i(3012),f=i(8545),c=5,p=11102230246251565e-32,x=(3+16*p)*p,g=(7+56*p)*p;function w(v,A,d,D){return function(R,z,I){var P=v(v(A(z[1],I[0]),A(-I[1],z[0])),v(A(R[1],z[0]),A(-z[1],R[0]))),L=v(A(R[1],I[0]),A(-I[1],R[0])),F=D(P,L);return F[F.length-1]}}function M(v,A,d,D){return function(R,z,I,P){var L=v(v(d(v(A(I[1],P[0]),A(-P[1],I[0])),z[2]),v(d(v(A(z[1],P[0]),A(-P[1],z[0])),-I[2]),d(v(A(z[1],I[0]),A(-I[1],z[0])),P[2]))),v(d(v(A(z[1],P[0]),A(-P[1],z[0])),R[2]),v(d(v(A(R[1],P[0]),A(-P[1],R[0])),-z[2]),d(v(A(R[1],z[0]),A(-z[1],R[0])),P[2])))),F=v(v(d(v(A(I[1],P[0]),A(-P[1],I[0])),R[2]),v(d(v(A(R[1],P[0]),A(-P[1],R[0])),-I[2]),d(v(A(R[1],I[0]),A(-I[1],R[0])),P[2]))),v(d(v(A(z[1],I[0]),A(-I[1],z[0])),R[2]),v(d(v(A(R[1],I[0]),A(-I[1],R[0])),-z[2]),d(v(A(R[1],z[0]),A(-z[1],R[0])),I[2])))),B=D(L,F);return B[B.length-1]}}function m(v,A,d,D){return function(R,z,I,P,L){var F=v(v(v(d(v(d(v(A(P[1],L[0]),A(-L[1],P[0])),I[2]),v(d(v(A(I[1],L[0]),A(-L[1],I[0])),-P[2]),d(v(A(I[1],P[0]),A(-P[1],I[0])),L[2]))),z[3]),v(d(v(d(v(A(P[1],L[0]),A(-L[1],P[0])),z[2]),v(d(v(A(z[1],L[0]),A(-L[1],z[0])),-P[2]),d(v(A(z[1],P[0]),A(-P[1],z[0])),L[2]))),-I[3]),d(v(d(v(A(I[1],L[0]),A(-L[1],I[0])),z[2]),v(d(v(A(z[1],L[0]),A(-L[1],z[0])),-I[2]),d(v(A(z[1],I[0]),A(-I[1],z[0])),L[2]))),P[3]))),v(d(v(d(v(A(I[1],P[0]),A(-P[1],I[0])),z[2]),v(d(v(A(z[1],P[0]),A(-P[1],z[0])),-I[2]),d(v(A(z[1],I[0]),A(-I[1],z[0])),P[2]))),-L[3]),v(d(v(d(v(A(P[1],L[0]),A(-L[1],P[0])),z[2]),v(d(v(A(z[1],L[0]),A(-L[1],z[0])),-P[2]),d(v(A(z[1],P[0]),A(-P[1],z[0])),L[2]))),R[3]),d(v(d(v(A(P[1],L[0]),A(-L[1],P[0])),R[2]),v(d(v(A(R[1],L[0]),A(-L[1],R[0])),-P[2]),d(v(A(R[1],P[0]),A(-P[1],R[0])),L[2]))),-z[3])))),v(v(d(v(d(v(A(z[1],L[0]),A(-L[1],z[0])),R[2]),v(d(v(A(R[1],L[0]),A(-L[1],R[0])),-z[2]),d(v(A(R[1],z[0]),A(-z[1],R[0])),L[2]))),P[3]),v(d(v(d(v(A(z[1],P[0]),A(-P[1],z[0])),R[2]),v(d(v(A(R[1],P[0]),A(-P[1],R[0])),-z[2]),d(v(A(R[1],z[0]),A(-z[1],R[0])),P[2]))),-L[3]),d(v(d(v(A(I[1],P[0]),A(-P[1],I[0])),z[2]),v(d(v(A(z[1],P[0]),A(-P[1],z[0])),-I[2]),d(v(A(z[1],I[0]),A(-I[1],z[0])),P[2]))),R[3]))),v(d(v(d(v(A(I[1],P[0]),A(-P[1],I[0])),R[2]),v(d(v(A(R[1],P[0]),A(-P[1],R[0])),-I[2]),d(v(A(R[1],I[0]),A(-I[1],R[0])),P[2]))),-z[3]),v(d(v(d(v(A(z[1],P[0]),A(-P[1],z[0])),R[2]),v(d(v(A(R[1],P[0]),A(-P[1],R[0])),-z[2]),d(v(A(R[1],z[0]),A(-z[1],R[0])),P[2]))),I[3]),d(v(d(v(A(z[1],I[0]),A(-I[1],z[0])),R[2]),v(d(v(A(R[1],I[0]),A(-I[1],R[0])),-z[2]),d(v(A(R[1],z[0]),A(-z[1],R[0])),I[2]))),-P[3]))))),B=v(v(v(d(v(d(v(A(P[1],L[0]),A(-L[1],P[0])),I[2]),v(d(v(A(I[1],L[0]),A(-L[1],I[0])),-P[2]),d(v(A(I[1],P[0]),A(-P[1],I[0])),L[2]))),R[3]),d(v(d(v(A(P[1],L[0]),A(-L[1],P[0])),R[2]),v(d(v(A(R[1],L[0]),A(-L[1],R[0])),-P[2]),d(v(A(R[1],P[0]),A(-P[1],R[0])),L[2]))),-I[3])),v(d(v(d(v(A(I[1],L[0]),A(-L[1],I[0])),R[2]),v(d(v(A(R[1],L[0]),A(-L[1],R[0])),-I[2]),d(v(A(R[1],I[0]),A(-I[1],R[0])),L[2]))),P[3]),d(v(d(v(A(I[1],P[0]),A(-P[1],I[0])),R[2]),v(d(v(A(R[1],P[0]),A(-P[1],R[0])),-I[2]),d(v(A(R[1],I[0]),A(-I[1],R[0])),P[2]))),-L[3]))),v(v(d(v(d(v(A(I[1],L[0]),A(-L[1],I[0])),z[2]),v(d(v(A(z[1],L[0]),A(-L[1],z[0])),-I[2]),d(v(A(z[1],I[0]),A(-I[1],z[0])),L[2]))),R[3]),d(v(d(v(A(I[1],L[0]),A(-L[1],I[0])),R[2]),v(d(v(A(R[1],L[0]),A(-L[1],R[0])),-I[2]),d(v(A(R[1],I[0]),A(-I[1],R[0])),L[2]))),-z[3])),v(d(v(d(v(A(z[1],L[0]),A(-L[1],z[0])),R[2]),v(d(v(A(R[1],L[0]),A(-L[1],R[0])),-z[2]),d(v(A(R[1],z[0]),A(-z[1],R[0])),L[2]))),I[3]),d(v(d(v(A(z[1],I[0]),A(-I[1],z[0])),R[2]),v(d(v(A(R[1],I[0]),A(-I[1],R[0])),-z[2]),d(v(A(R[1],z[0]),A(-z[1],R[0])),I[2]))),-L[3])))),O=D(F,B);return O[O.length-1]}}function k(v){var A=v===3?w:v===4?M:m;return A(u,l,s,f)}var S=k(3),b=k(4),T=[function(){return 0},function(){return 0},function(A,d){return d[0]-A[0]},function(A,d,D){var E=(A[1]-D[1])*(d[0]-D[0]),R=(A[0]-D[0])*(d[1]-D[1]),z=E-R,I;if(E>0){if(R<=0)return z;I=E+R}else if(E<0){if(R>=0)return z;I=-(E+R)}else return z;var P=x*I;return z>=P||z<=-P?z:S(A,d,D)},function(A,d,D,E){var R=A[0]-E[0],z=d[0]-E[0],I=D[0]-E[0],P=A[1]-E[1],L=d[1]-E[1],F=D[1]-E[1],B=A[2]-E[2],O=d[2]-E[2],V=D[2]-E[2],K=z*F,j=I*L,G=I*P,q=R*F,J=R*L,te=z*P,Z=B*(K-j)+O*(G-q)+V*(J-te),ie=(Math.abs(K)+Math.abs(j))*Math.abs(B)+(Math.abs(G)+Math.abs(q))*Math.abs(O)+(Math.abs(J)+Math.abs(te))*Math.abs(V),Q=g*ie;return Z>Q||-Z>Q?Z:b(A,d,D,E)}];function h(v){var A=T[v.length];return A||(A=T[v.length]=k(v.length)),A.apply(void 0,v)}function _(v,A,d,D,E,R,z){return function(P,L,F,B,O){switch(arguments.length){case 0:case 1:return 0;case 2:return D(P,L);case 3:return E(P,L,F);case 4:return R(P,L,F,B);case 5:return z(P,L,F,B,O)}for(var V=new Array(arguments.length),K=0;K<arguments.length;++K)V[K]=arguments[K];return v(V)}}function y(){for(;T.length<=c;)T.push(k(T.length));a.exports=_.apply(void 0,[h].concat(T));for(var v=0;v<=c;++v)a.exports[v]=T[v]}y()},5382(a,o,i){"use strict";var l=i(8210),u=i(3012);a.exports=s;function s(f,c){if(f.length===1)return u(c,f[0]);if(c.length===1)return u(f,c[0]);if(f.length===0||c.length===0)return[0];var p=[0];if(f.length<c.length)for(var x=0;x<f.length;++x)p=l(p,u(c,f[x]));else for(var x=0;x<c.length;++x)p=l(p,u(f,c[x]));return p}},3012(a,o,i){"use strict";var l=i(5250),u=i(9362);a.exports=s;function s(f,c){var p=f.length;if(p===1){var x=l(f[0],c);return x[0]?x:[x[1]]}var g=new Array(2*p),w=[.1,.1],M=[.1,.1],m=0;l(f[0],c,w),w[0]&&(g[m++]=w[0]);for(var k=1;k<p;++k){l(f[k],c,M);var S=w[1];u(S,M[0],w),w[0]&&(g[m++]=w[0]);var b=M[1],T=w[1],h=b+T,_=h-b,y=T-_;w[1]=h,y&&(g[m++]=y)}return w[1]&&(g[m++]=w[1]),m===0&&(g[m++]=0),g.length=m,g}},1125(a,o,i){"use strict";a.exports=s;var l=i(3250)[3];function u(f,c,p,x){for(var g=0;g<2;++g){var w=f[g],M=c[g],m=Math.min(w,M),k=Math.max(w,M),S=p[g],b=x[g],T=Math.min(S,b),h=Math.max(S,b);if(h<m||k<T)return!1}return!0}function s(f,c,p,x){var g=l(f,p,x),w=l(c,p,x);if(g>0&&w>0||g<0&&w<0)return!1;var M=l(p,f,c),m=l(x,f,c);return M>0&&m>0||M<0&&m<0?!1:g===0&&w===0&&M===0&&m===0?u(f,c,p,x):!0}},8545(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,c=s-f,p=u-f,x=l-c,g=x+p;return g?[g,s]:[s]}function i(l,u){var s=l.length|0,f=u.length|0;if(s===1&&f===1)return o(l[0],-u[0]);var c=s+f,p=new Array(c),x=0,g=0,w=0,M=Math.abs,m=l[g],k=M(m),S=-u[w],b=M(S),T,h;k<b?(h=m,g+=1,g<s&&(m=l[g],k=M(m))):(h=S,w+=1,w<f&&(S=-u[w],b=M(S))),g<s&&k<b||w>=f?(T=m,g+=1,g<s&&(m=l[g],k=M(m))):(T=S,w+=1,w<f&&(S=-u[w],b=M(S)));for(var _=T+h,y=_-T,v=h-y,A=v,d=_,D,E,R,z,I;g<s&&w<f;)k<b?(T=m,g+=1,g<s&&(m=l[g],k=M(m))):(T=S,w+=1,w<f&&(S=-u[w],b=M(S))),h=A,_=T+h,y=_-T,v=h-y,v&&(p[x++]=v),D=d+_,E=D-d,R=D-E,z=_-E,I=d-R,A=I+z,d=D;for(;g<s;)T=m,h=A,_=T+h,y=_-T,v=h-y,v&&(p[x++]=v),D=d+_,E=D-d,R=D-E,z=_-E,I=d-R,A=I+z,d=D,g+=1,g<s&&(m=l[g]);for(;w<f;)T=S,h=A,_=T+h,y=_-T,v=h-y,v&&(p[x++]=v),D=d+_,E=D-d,R=D-E,z=_-E,I=d-R,A=I+z,d=D,w+=1,w<f&&(S=-u[w]);return A&&(p[x++]=A),d&&(p[x++]=d),x||(p[x++]=0),p.length=x,p}},8210(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,c=s-f,p=u-f,x=l-c,g=x+p;return g?[g,s]:[s]}function i(l,u){var s=l.length|0,f=u.length|0;if(s===1&&f===1)return o(l[0],u[0]);var c=s+f,p=new Array(c),x=0,g=0,w=0,M=Math.abs,m=l[g],k=M(m),S=u[w],b=M(S),T,h;k<b?(h=m,g+=1,g<s&&(m=l[g],k=M(m))):(h=S,w+=1,w<f&&(S=u[w],b=M(S))),g<s&&k<b||w>=f?(T=m,g+=1,g<s&&(m=l[g],k=M(m))):(T=S,w+=1,w<f&&(S=u[w],b=M(S)));for(var _=T+h,y=_-T,v=h-y,A=v,d=_,D,E,R,z,I;g<s&&w<f;)k<b?(T=m,g+=1,g<s&&(m=l[g],k=M(m))):(T=S,w+=1,w<f&&(S=u[w],b=M(S))),h=A,_=T+h,y=_-T,v=h-y,v&&(p[x++]=v),D=d+_,E=D-d,R=D-E,z=_-E,I=d-R,A=I+z,d=D;for(;g<s;)T=m,h=A,_=T+h,y=_-T,v=h-y,v&&(p[x++]=v),D=d+_,E=D-d,R=D-E,z=_-E,I=d-R,A=I+z,d=D,g+=1,g<s&&(m=l[g]);for(;w<f;)T=S,h=A,_=T+h,y=_-T,v=h-y,v&&(p[x++]=v),D=d+_,E=D-d,R=D-E,z=_-E,I=d-R,A=I+z,d=D,w+=1,w<f&&(S=u[w]);return A&&(p[x++]=A),d&&(p[x++]=d),x||(p[x++]=0),p.length=x,p}},9127(a,o,i){"use strict";a.exports=s;var l=i(6204),u=i(5771);function s(f){return u(l(f))}},7765(a,o,i){"use strict";a.exports=m;var l=i(9618),u=i(1888),s=i(446),f=i(1570);function c(k){for(var S=k.length,b=0,T=0;T<S;++T)b=Math.max(b,k[T].length)|0;return b-1}function p(k,S){for(var b=k.length,T=u.mallocUint8(b),h=0;h<b;++h)T[h]=k[h]<S|0;return T}function x(k,S){for(var b=k.length,T=S*(S+1)/2*b|0,h=u.mallocUint32(T*2),_=0,y=0;y<b;++y)for(var v=k[y],S=v.length,A=0;A<S;++A)for(var d=0;d<A;++d){var D=v[d],E=v[A];h[_++]=Math.min(D,E)|0,h[_++]=Math.max(D,E)|0}var R=_/2|0;s(l(h,[R,2]));for(var z=2,y=2;y<_;y+=2)h[y-2]===h[y]&&h[y-1]===h[y+1]||(h[z++]=h[y],h[z++]=h[y+1]);return l(h,[z/2|0,2])}function g(k,S,b,T){for(var h=k.data,_=k.shape[0],y=u.mallocDouble(_),v=0,A=0;A<_;++A){var d=h[2*A],D=h[2*A+1];if(b[d]!==b[D]){var E=S[d],R=S[D];h[2*v]=d,h[2*v+1]=D,y[v++]=(R-T)/(R-E)}}return k.shape[0]=v,l(y,[v])}function w(k,S){var b=u.mallocInt32(S*2),T=k.shape[0],h=k.data;b[0]=0;for(var _=0,y=0;y<T;++y){var v=h[2*y];if(v!==_){for(b[2*_+1]=y;++_<v;)b[2*_]=y,b[2*_+1]=y;b[2*_]=y}}for(b[2*_+1]=T;++_<S;)b[2*_]=b[2*_+1]=T;return b}function M(k){for(var S=k.shape[0]|0,b=k.data,T=new Array(S),h=0;h<S;++h)T[h]=[b[2*h],b[2*h+1]];return T}function m(k,S,b,T){b=b||0,typeof T=="undefined"&&(T=c(k));var h=k.length;if(h===0||T<1)return{cells:[],vertexIds:[],vertexWeights:[]};var _=p(S,+b),y=x(k,T),v=g(y,S,_,+b),A=w(y,S.length|0),d=f(T)(k,y.data,A,_),D=M(y),E=[].slice.call(v.data,0,v.shape[0]);return u.free(_),u.free(y.data),u.free(v.data),u.free(A),{cells:d,vertexIds:D,vertexWeights:E}}},1570(a){"use strict";a.exports=i;var o=[function(){function u(f,c,p,x){for(var g=Math.min(p,x)|0,w=Math.max(p,x)|0,M=f[2*g],m=f[2*g+1];M<m;){var k=M+m>>1,S=c[2*k+1];if(S===w)return k;w<S?m=k:M=k+1}return M}function s(f,c,p,x){for(var g=f.length,w=[],M=0;M<g;++M)var m=f[M],k=m.length;return w}return s},function(){function u(f,c,p,x){for(var g=Math.min(p,x)|0,w=Math.max(p,x)|0,M=f[2*g],m=f[2*g+1];M<m;){var k=M+m>>1,S=c[2*k+1];if(S===w)return k;w<S?m=k:M=k+1}return M}function s(f,c,p,x){for(var g=f.length,w=[],M=0;M<g;++M){var m=f[M],k=m.length;if(k===2){var S=(x[m[0]]<<0)+(x[m[1]]<<1);if(S===0||S===3)continue;switch(S){case 0:break;case 1:w.push([u(p,c,m[0],m[1])]);break;case 2:w.push([u(p,c,m[1],m[0])]);break;case 3:break}}}return w}return s},function(){function u(f,c,p,x){for(var g=Math.min(p,x)|0,w=Math.max(p,x)|0,M=f[2*g],m=f[2*g+1];M<m;){var k=M+m>>1,S=c[2*k+1];if(S===w)return k;w<S?m=k:M=k+1}return M}function s(f,c,p,x){for(var g=f.length,w=[],M=0;M<g;++M){var m=f[M],k=m.length;if(k===3){var S=(x[m[0]]<<0)+(x[m[1]]<<1)+(x[m[2]]<<2);if(S===0||S===7)continue;switch(S){case 0:break;case 1:w.push([u(p,c,m[0],m[2]),u(p,c,m[0],m[1])]);break;case 2:w.push([u(p,c,m[1],m[0]),u(p,c,m[1],m[2])]);break;case 3:w.push([u(p,c,m[0],m[2]),u(p,c,m[1],m[2])]);break;case 4:w.push([u(p,c,m[2],m[1]),u(p,c,m[2],m[0])]);break;case 5:w.push([u(p,c,m[2],m[1]),u(p,c,m[0],m[1])]);break;case 6:w.push([u(p,c,m[1],m[0]),u(p,c,m[2],m[0])]);break;case 7:break}}else if(k===2){var S=(x[m[0]]<<0)+(x[m[1]]<<1);if(S===0||S===3)continue;switch(S){case 0:break;case 1:w.push([u(p,c,m[0],m[1])]);break;case 2:w.push([u(p,c,m[1],m[0])]);break;case 3:break}}}return w}return s},function(){function u(f,c,p,x){for(var g=Math.min(p,x)|0,w=Math.max(p,x)|0,M=f[2*g],m=f[2*g+1];M<m;){var k=M+m>>1,S=c[2*k+1];if(S===w)return k;w<S?m=k:M=k+1}return M}function s(f,c,p,x){for(var g=f.length,w=[],M=0;M<g;++M){var m=f[M],k=m.length;if(k===4){var S=(x[m[0]]<<0)+(x[m[1]]<<1)+(x[m[2]]<<2)+(x[m[3]]<<3);if(S===0||S===15)continue;switch(S){case 0:break;case 1:w.push([u(p,c,m[0],m[1]),u(p,c,m[0],m[2]),u(p,c,m[0],m[3])]);break;case 2:w.push([u(p,c,m[1],m[2]),u(p,c,m[1],m[0]),u(p,c,m[1],m[3])]);break;case 3:w.push([u(p,c,m[1],m[2]),u(p,c,m[0],m[2]),u(p,c,m[0],m[3])],[u(p,c,m[1],m[3]),u(p,c,m[1],m[2]),u(p,c,m[0],m[3])]);break;case 4:w.push([u(p,c,m[2],m[0]),u(p,c,m[2],m[1]),u(p,c,m[2],m[3])]);break;case 5:w.push([u(p,c,m[0],m[1]),u(p,c,m[2],m[1]),u(p,c,m[0],m[3])],[u(p,c,m[2],m[1]),u(p,c,m[2],m[3]),u(p,c,m[0],m[3])]);break;case 6:w.push([u(p,c,m[2],m[0]),u(p,c,m[1],m[0]),u(p,c,m[1],m[3])],[u(p,c,m[2],m[3]),u(p,c,m[2],m[0]),u(p,c,m[1],m[3])]);break;case 7:w.push([u(p,c,m[0],m[3]),u(p,c,m[1],m[3]),u(p,c,m[2],m[3])]);break;case 8:w.push([u(p,c,m[3],m[1]),u(p,c,m[3],m[0]),u(p,c,m[3],m[2])]);break;case 9:w.push([u(p,c,m[3],m[1]),u(p,c,m[0],m[1]),u(p,c,m[0],m[2])],[u(p,c,m[3],m[2]),u(p,c,m[3],m[1]),u(p,c,m[0],m[2])]);break;case 10:w.push([u(p,c,m[1],m[0]),u(p,c,m[3],m[0]),u(p,c,m[1],m[2])],[u(p,c,m[3],m[0]),u(p,c,m[3],m[2]),u(p,c,m[1],m[2])]);break;case 11:w.push([u(p,c,m[1],m[2]),u(p,c,m[0],m[2]),u(p,c,m[3],m[2])]);break;case 12:w.push([u(p,c,m[3],m[0]),u(p,c,m[2],m[0]),u(p,c,m[2],m[1])],[u(p,c,m[3],m[1]),u(p,c,m[3],m[0]),u(p,c,m[2],m[1])]);break;case 13:w.push([u(p,c,m[0],m[1]),u(p,c,m[2],m[1]),u(p,c,m[3],m[1])]);break;case 14:w.push([u(p,c,m[2],m[0]),u(p,c,m[1],m[0]),u(p,c,m[3],m[0])]);break;case 15:break}}else if(k===3){var S=(x[m[0]]<<0)+(x[m[1]]<<1)+(x[m[2]]<<2);if(S===0||S===7)continue;switch(S){case 0:break;case 1:w.push([u(p,c,m[0],m[2]),u(p,c,m[0],m[1])]);break;case 2:w.push([u(p,c,m[1],m[0]),u(p,c,m[1],m[2])]);break;case 3:w.push([u(p,c,m[0],m[2]),u(p,c,m[1],m[2])]);break;case 4:w.push([u(p,c,m[2],m[1]),u(p,c,m[2],m[0])]);break;case 5:w.push([u(p,c,m[2],m[1]),u(p,c,m[0],m[1])]);break;case 6:w.push([u(p,c,m[1],m[0]),u(p,c,m[2],m[0])]);break;case 7:break}}else if(k===2){var S=(x[m[0]]<<0)+(x[m[1]]<<1);if(S===0||S===3)continue;switch(S){case 0:break;case 1:w.push([u(p,c,m[0],m[1])]);break;case 2:w.push([u(p,c,m[1],m[0])]);break;case 3:break}}}return w}return s}];function i(l){return o[l]()}},6803(a,o,i){"use strict";var l,u=i(8828),s=i(1755);function f(A){for(var d=0,D=Math.max,E=0,R=A.length;E<R;++E)d=D(d,A[E].length);return d-1}l=f;function c(A){for(var d=-1,D=Math.max,E=0,R=A.length;E<R;++E)for(var z=A[E],I=0,P=z.length;I<P;++I)d=D(d,z[I]);return d+1}l=c;function p(A){for(var d=new Array(A.length),D=0,E=A.length;D<E;++D)d[D]=A[D].slice(0);return d}l=p;function x(A,d){var D=A.length,E=A.length-d.length,R=Math.min;if(E)return E;switch(D){case 0:return 0;case 1:return A[0]-d[0];case 2:var F=A[0]+A[1]-d[0]-d[1];return F||R(A[0],A[1])-R(d[0],d[1]);case 3:var z=A[0]+A[1],I=d[0]+d[1];if(F=z+A[2]-(I+d[2]),F)return F;var P=R(A[0],A[1]),L=R(d[0],d[1]),F=R(P,A[2])-R(L,d[2]);return F||R(P+A[2],z)-R(L+d[2],I);default:var B=A.slice(0);B.sort();var O=d.slice(0);O.sort();for(var V=0;V<D;++V)if(E=B[V]-O[V],E)return E;return 0}}o.Fw=x;function g(A,d){return x(A[0],d[0])}function w(A,d){if(d){for(var D=A.length,E=new Array(D),R=0;R<D;++R)E[R]=[A[R],d[R]];E.sort(g);for(var R=0;R<D;++R)A[R]=E[R][0],d[R]=E[R][1];return A}else return A.sort(x),A}l=w;function M(A){if(A.length===0)return[];for(var d=1,D=A.length,E=1;E<D;++E){var R=A[E];if(x(R,A[E-1])){if(E===d){d++;continue}A[d++]=R}}return A.length=d,A}l=M;function m(A,d){for(var D=0,E=A.length-1,R=-1;D<=E;){var z=D+E>>1,I=x(A[z],d);I<=0?(I===0&&(R=z),D=z+1):I>0&&(E=z-1)}return R}l=m;function k(A,d){for(var D=new Array(A.length),E=0,R=D.length;E<R;++E)D[E]=[];for(var z=[],E=0,I=d.length;E<I;++E)for(var P=d[E],L=P.length,F=1,B=1<<L;F<B;++F){z.length=u.popCount(F);for(var O=0,V=0;V<L;++V)F&1<<V&&(z[O++]=P[V]);var K=m(A,z);if(!(K<0))for(;D[K++].push(E),!(K>=A.length||x(A[K],z)!==0););}return D}l=k;function S(A,d){if(!d)return k(M(T(A,0)),A,0);for(var D=new Array(d),E=0;E<d;++E)D[E]=[];for(var E=0,R=A.length;E<R;++E)for(var z=A[E],I=0,P=z.length;I<P;++I)D[z[I]].push(E);return D}l=S;function b(A){for(var d=[],D=0,E=A.length;D<E;++D)for(var R=A[D],z=R.length|0,I=1,P=1<<z;I<P;++I){for(var L=[],F=0;F<z;++F)I>>>F&1&&L.push(R[F]);d.push(L)}return w(d)}l=b;function T(A,d){if(d<0)return[];for(var D=[],E=(1<<d+1)-1,R=0;R<A.length;++R)for(var z=A[R],I=E;I<1<<z.length;I=u.nextCombination(I)){for(var P=new Array(d+1),L=0,F=0;F<z.length;++F)I&1<<F&&(P[L++]=z[F]);D.push(P)}return w(D)}l=T;function h(A){for(var d=[],D=0,E=A.length;D<E;++D)for(var R=A[D],z=0,I=R.length;z<I;++z){for(var P=new Array(R.length-1),L=0,F=0;L<I;++L)L!==z&&(P[F++]=R[L]);d.push(P)}return w(d)}l=h;function _(A,d){for(var D=new s(d),E=0;E<A.length;++E)for(var R=A[E],z=0;z<R.length;++z)for(var I=z+1;I<R.length;++I)D.link(R[z],R[I]);for(var P=[],L=D.ranks,E=0;E<L.length;++E)L[E]=-1;for(var E=0;E<A.length;++E){var F=D.find(A[E][0]);L[F]<0?(L[F]=P.length,P.push([A[E].slice(0)])):P[L[F]].push(A[E].slice(0))}return P}function y(A){for(var d=M(w(T(A,0))),D=new s(d.length),E=0;E<A.length;++E)for(var R=A[E],z=0;z<R.length;++z)for(var I=m(d,[R[z]]),P=z+1;P<R.length;++P)D.link(I,m(d,[R[P]]));for(var L=[],F=D.ranks,E=0;E<F.length;++E)F[E]=-1;for(var E=0;E<A.length;++E){var B=D.find(m(d,[A[E][0]]));F[B]<0?(F[B]=L.length,L.push([A[E].slice(0)])):L[F[B]].push(A[E].slice(0))}return L}function v(A,d){return d?_(A,d):y(A)}l=v},3105(a,o){"use strict";"use restrict";var i=32;o.INT_BITS=i,o.INT_MAX=2147483647,o.INT_MIN=-1<<i-1,o.sign=function(s){return(s>0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s<f)},o.max=function(s,f){return s^(s^f)&-(s<f)},o.isPow2=function(s){return!(s&s-1)&&!!s},o.log2=function(s){var f,c;return f=(s>65535)<<4,s>>>=f,c=(s>255)<<3,s>>>=c,f|=c,c=(s>15)<<2,s>>>=c,f|=c,c=(s>3)<<1,s>>>=c,f|=c,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var c=f,p=f,x=7;for(c>>>=1;c;c>>>=1)p<<=1,p|=c&1,--x;s[f]=p<<x&255}})(u),o.reverse=function(s){return u[s&255]<<24|u[s>>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,c){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,s|c<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},2014(a,o,i){"use strict";"use restrict";var l=i(3105),u=i(4623);function s(v){for(var A=0,d=Math.max,D=0,E=v.length;D<E;++D)A=d(A,v[D].length);return A-1}o.dimension=s;function f(v){for(var A=-1,d=Math.max,D=0,E=v.length;D<E;++D)for(var R=v[D],z=0,I=R.length;z<I;++z)A=d(A,R[z]);return A+1}o.countVertices=f;function c(v){for(var A=new Array(v.length),d=0,D=v.length;d<D;++d)A[d]=v[d].slice(0);return A}o.cloneCells=c;function p(v,A){var d=v.length,D=v.length-A.length,E=Math.min;if(D)return D;switch(d){case 0:return 0;case 1:return v[0]-A[0];case 2:var L=v[0]+v[1]-A[0]-A[1];return L||E(v[0],v[1])-E(A[0],A[1]);case 3:var R=v[0]+v[1],z=A[0]+A[1];if(L=R+v[2]-(z+A[2]),L)return L;var I=E(v[0],v[1]),P=E(A[0],A[1]),L=E(I,v[2])-E(P,A[2]);return L||E(I+v[2],R)-E(P+A[2],z);default:var F=v.slice(0);F.sort();var B=A.slice(0);B.sort();for(var O=0;O<d;++O)if(D=F[O]-B[O],D)return D;return 0}}o.compareCells=p;function x(v,A){return p(v[0],A[0])}function g(v,A){if(A){for(var d=v.length,D=new Array(d),E=0;E<d;++E)D[E]=[v[E],A[E]];D.sort(x);for(var E=0;E<d;++E)v[E]=D[E][0],A[E]=D[E][1];return v}else return v.sort(p),v}o.normalize=g;function w(v){if(v.length===0)return[];for(var A=1,d=v.length,D=1;D<d;++D){var E=v[D];if(p(E,v[D-1])){if(D===A){A++;continue}v[A++]=E}}return v.length=A,v}o.unique=w;function M(v,A){for(var d=0,D=v.length-1,E=-1;d<=D;){var R=d+D>>1,z=p(v[R],A);z<=0?(z===0&&(E=R),d=R+1):z>0&&(D=R-1)}return E}o.findCell=M;function m(v,A){for(var d=new Array(v.length),D=0,E=d.length;D<E;++D)d[D]=[];for(var R=[],D=0,z=A.length;D<z;++D)for(var I=A[D],P=I.length,L=1,F=1<<P;L<F;++L){R.length=l.popCount(L);for(var B=0,O=0;O<P;++O)L&1<<O&&(R[B++]=I[O]);var V=M(v,R);if(!(V<0))for(;d[V++].push(D),!(V>=v.length||p(v[V],R)!==0););}return d}o.incidence=m;function k(v,A){if(!A)return m(w(b(v,0)),v,0);for(var d=new Array(A),D=0;D<A;++D)d[D]=[];for(var D=0,E=v.length;D<E;++D)for(var R=v[D],z=0,I=R.length;z<I;++z)d[R[z]].push(D);return d}o.dual=k;function S(v){for(var A=[],d=0,D=v.length;d<D;++d)for(var E=v[d],R=E.length|0,z=1,I=1<<R;z<I;++z){for(var P=[],L=0;L<R;++L)z>>>L&1&&P.push(E[L]);A.push(P)}return g(A)}o.explode=S;function b(v,A){if(A<0)return[];for(var d=[],D=(1<<A+1)-1,E=0;E<v.length;++E)for(var R=v[E],z=D;z<1<<R.length;z=l.nextCombination(z)){for(var I=new Array(A+1),P=0,L=0;L<R.length;++L)z&1<<L&&(I[P++]=R[L]);d.push(I)}return g(d)}o.skeleton=b;function T(v){for(var A=[],d=0,D=v.length;d<D;++d)for(var E=v[d],R=0,z=E.length;R<z;++R){for(var I=new Array(E.length-1),P=0,L=0;P<z;++P)P!==R&&(I[L++]=E[P]);A.push(I)}return g(A)}o.boundary=T;function h(v,A){for(var d=new u(A),D=0;D<v.length;++D)for(var E=v[D],R=0;R<E.length;++R)for(var z=R+1;z<E.length;++z)d.link(E[R],E[z]);for(var I=[],P=d.ranks,D=0;D<P.length;++D)P[D]=-1;for(var D=0;D<v.length;++D){var L=d.find(v[D][0]);P[L]<0?(P[L]=I.length,I.push([v[D].slice(0)])):I[P[L]].push(v[D].slice(0))}return I}function _(v){for(var A=w(g(b(v,0))),d=new u(A.length),D=0;D<v.length;++D)for(var E=v[D],R=0;R<E.length;++R)for(var z=M(A,[E[R]]),I=R+1;I<E.length;++I)d.link(z,M(A,[E[I]]));for(var P=[],L=d.ranks,D=0;D<L.length;++D)L[D]=-1;for(var D=0;D<v.length;++D){var F=d.find(M(A,[v[D][0]]));L[F]<0?(L[F]=P.length,P.push([v[D].slice(0)])):P[L[F]].push(v[D].slice(0))}return P}function y(v,A){return A?h(v,A):_(v)}o.connectedComponents=y},4623(a){"use strict";"use restrict";a.exports=o;function o(i){this.roots=new Array(i),this.ranks=new Array(i);for(var l=0;l<i;++l)this.roots[l]=l,this.ranks[l]=0}o.prototype.length=function(){return this.roots.length},o.prototype.makeSet=function(){var i=this.roots.length;return this.roots.push(i),this.ranks.push(0),i},o.prototype.find=function(i){for(var l=this.roots;l[i]!==i;){var u=l[i];l[i]=l[u],i=u}return i},o.prototype.link=function(i,l){var u=this.find(i),s=this.find(l);if(u!==s){var f=this.ranks,c=this.roots,p=f[u],x=f[s];p<x?c[u]=s:x<p?c[s]=u:(c[s]=u,++f[u])}}},5878(a,o,i){"use strict";a.exports=f;var l=i(3250),u=i(2014);function s(c,p,x){var g=Math.abs(l(c,p,x)),w=Math.sqrt(Math.pow(p[0]-x[0],2)+Math.pow(p[1]-x[1],2));return g/w}function f(c,p,x){for(var g=p.length,w=c.length,M=new Array(g),m=new Array(g),k=new Array(g),S=new Array(g),b=0;b<g;++b)M[b]=m[b]=-1,k[b]=1/0,S[b]=!1;for(var b=0;b<w;++b){var T=c[b];if(T.length!==2)throw new Error("Input must be a graph");var h=T[1],_=T[0];m[_]!==-1?m[_]=-2:m[_]=h,M[h]!==-1?M[h]=-2:M[h]=_}function y(q){if(S[q])return 1/0;var J=M[q],te=m[q];return J<0||te<0?1/0:s(p[q],p[J],p[te])}function v(q,J){var te=P[q],Z=P[J];P[q]=Z,P[J]=te,L[te]=J,L[Z]=q}function A(q){return k[P[q]]}function d(q){return q&1?q-1>>1:(q>>1)-1}function D(q){for(var J=A(q);;){var te=J,Z=2*q+1,ie=2*(q+1),Q=q;if(Z<B){var re=A(Z);re<te&&(Q=Z,te=re)}if(ie<B){var ue=A(ie);ue<te&&(Q=ie)}if(Q===q)return q;v(q,Q),q=Q}}function E(q){for(var J=A(q);q>0;){var te=d(q);if(te>=0){var Z=A(te);if(J<Z){v(q,te),q=te;continue}}return q}}function R(){if(B>0){var q=P[0];return v(0,B-1),B-=1,D(0),q}return-1}function z(q,J){var te=P[q];return k[te]===J?q:(k[te]=-1/0,E(q),R(),k[te]=J,B+=1,E(B-1))}function I(q){if(!S[q]){S[q]=!0;var J=M[q],te=m[q];M[te]>=0&&(M[te]=J),m[J]>=0&&(m[J]=te),L[J]>=0&&z(L[J],y(J)),L[te]>=0&&z(L[te],y(te))}}for(var P=[],L=new Array(g),b=0;b<g;++b){var F=k[b]=y(b);F<1/0?(L[b]=P.length,P.push(b)):L[b]=-1}for(var B=P.length,b=B>>1;b>=0;--b)D(b);for(;;){var O=R();if(O<0||k[O]>x)break;I(O)}for(var V=[],b=0;b<g;++b)S[b]||(L[b]=V.length,V.push(p[b].slice()));var K=V.length;function j(q,J){if(q[J]<0)return J;var te=J,Z=J;do{var ie=q[Z];if(!S[Z]||ie<0||ie===Z||(Z=ie,ie=q[Z],!S[Z]||ie<0||ie===Z))break;Z=ie,te=q[te]}while(te!==Z);for(var Q=J;Q!==Z;Q=q[Q])q[Q]=Z;return Z}var G=[];return c.forEach(function(q){var J=j(M,q[0]),te=j(m,q[1]);if(J>=0&&te>=0&&J!==te){var Z=L[J],ie=L[te];Z!==ie&&G.push([Z,ie])}}),u.unique(u.normalize(G)),{positions:V,edges:G}}},1303(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,c){var p,x;if(c[0][0]<c[1][0])p=c[0],x=c[1];else if(c[0][0]>c[1][0])p=c[1],x=c[0];else{var g=Math.min(f[0][1],f[1][1]),w=Math.max(f[0][1],f[1][1]),M=Math.min(c[0][1],c[1][1]),m=Math.max(c[0][1],c[1][1]);return w<M?w-M:g>m?g-m:w-m}var k,S;f[0][1]<f[1][1]?(k=f[0],S=f[1]):(k=f[1],S=f[0]);var b=l(x,p,k);return b||(b=l(x,p,S),b)?b:S-x}function s(f,c){var p,x;if(c[0][0]<c[1][0])p=c[0],x=c[1];else if(c[0][0]>c[1][0])p=c[1],x=c[0];else return u(c,f);var g,w;if(f[0][0]<f[1][0])g=f[0],w=f[1];else if(f[0][0]>f[1][0])g=f[1],w=f[0];else return-u(f,c);var M=l(p,x,w),m=l(p,x,g);if(M<0){if(m<=0)return M}else if(M>0){if(m>=0)return M}else if(m)return m;if(M=l(w,g,x),m=l(w,g,p),M<0){if(m<=0)return M}else if(M>0){if(m>=0)return M}else if(m)return m;return x[0]-w[0]}},4209(a,o,i){"use strict";a.exports=m;var l=i(2478),u=i(3840),s=i(3250),f=i(1303);function c(k,S,b){this.slabs=k,this.coordinates=S,this.horizontal=b}var p=c.prototype;function x(k,S){return k.y-S}function g(k,S){for(var b=null;k;){var T=k.key,h,_;T[0][0]<T[1][0]?(h=T[0],_=T[1]):(h=T[1],_=T[0]);var y=s(h,_,S);if(y<0)k=k.left;else if(y>0)if(S[0]!==T[1][0])b=k,k=k.right;else{var v=g(k.right,S);if(v)return v;k=k.left}else{if(S[0]!==T[1][0])return k;var v=g(k.right,S);if(v)return v;k=k.left}}return b}p.castUp=function(k){var S=l.le(this.coordinates,k[0]);if(S<0)return-1;var b=this.slabs[S],T=g(this.slabs[S],k),h=-1;if(T&&(h=T.value),this.coordinates[S]===k[0]){var _=null;if(T&&(_=T.key),S>0){var y=g(this.slabs[S-1],k);y&&(_?f(y.key,_)>0&&(_=y.key,h=y.value):(h=y.value,_=y.key))}var v=this.horizontal[S];if(v.length>0){var A=l.ge(v,k[1],x);if(A<v.length){var d=v[A];if(k[1]===d.y){if(d.closed)return d.index;for(;A<v.length-1&&v[A+1].y===k[1];)if(A=A+1,d=v[A],d.closed)return d.index;if(d.y===k[1]&&!d.start){if(A=A+1,A>=v.length)return h;d=v[A]}}if(d.start)if(_){var D=s(_[0],_[1],[k[0],d.y]);_[0][0]>_[1][0]&&(D=-D),D>0&&(h=d.index)}else h=d.index;else d.y!==k[1]&&(h=d.index)}}}return h};function w(k,S,b,T){this.y=k,this.index=S,this.start=b,this.closed=T}function M(k,S,b,T){this.x=k,this.segment=S,this.create=b,this.index=T}function m(k){for(var S=k.length,b=2*S,T=new Array(b),h=0;h<S;++h){var _=k[h],y=_[0][0]<_[1][0];T[2*h]=new M(_[0][0],_,y,h),T[2*h+1]=new M(_[1][0],_,!y,h)}T.sort(function(P,L){var F=P.x-L.x;return F||(F=P.create-L.create,F)?F:Math.min(P.segment[0][1],P.segment[1][1])-Math.min(L.segment[0][1],L.segment[1][1])});for(var v=u(f),A=[],d=[],D=[],E=-1/0,h=0;h<b;){for(var R=T[h].x,z=[];h<b;){var I=T[h];if(I.x!==R)break;h+=1,I.segment[0][0]===I.x&&I.segment[1][0]===I.x?I.create&&(I.segment[0][1]<I.segment[1][1]?(z.push(new w(I.segment[0][1],I.index,!0,!0)),z.push(new w(I.segment[1][1],I.index,!1,!1))):(z.push(new w(I.segment[1][1],I.index,!0,!1)),z.push(new w(I.segment[0][1],I.index,!1,!0)))):I.create?v=v.insert(I.segment,I.index):v=v.remove(I.segment)}A.push(v.root),d.push(R),D.push(z)}return new c(A,d,D)}},5202(a,o,i){"use strict";var l=i(1944),u=i(8210);a.exports=c,a.exports.positive=p,a.exports.negative=x;function s(g,w){var M=u(l(g,w),[w[w.length-1]]);return M[M.length-1]}function f(g,w,M,m){var k=m-w,S=-w/k;S<0?S=0:S>1&&(S=1);for(var b=1-S,T=g.length,h=new Array(T),_=0;_<T;++_)h[_]=S*g[_]+b*M[_];return h}function c(g,w){for(var M=[],m=[],k=s(g[g.length-1],w),S=g[g.length-1],b=g[0],T=0;T<g.length;++T,S=b){b=g[T];var h=s(b,w);if(k<0&&h>0||k>0&&h<0){var _=f(S,h,b,k);M.push(_),m.push(_.slice())}h<0?m.push(b.slice()):h>0?M.push(b.slice()):(M.push(b.slice()),m.push(b.slice())),k=h}return{positive:M,negative:m}}function p(g,w){for(var M=[],m=s(g[g.length-1],w),k=g[g.length-1],S=g[0],b=0;b<g.length;++b,k=S){S=g[b];var T=s(S,w);(m<0&&T>0||m>0&&T<0)&&M.push(f(k,T,S,m)),T>=0&&M.push(S.slice()),m=T}return M}function x(g,w){for(var M=[],m=s(g[g.length-1],w),k=g[g.length-1],S=g[0],b=0;b<g.length;++b,k=S){S=g[b];var T=s(S,w);(m<0&&T>0||m>0&&T<0)&&M.push(f(k,T,S,m)),T<=0&&M.push(S.slice()),m=T}return M}},3387(a,o,i){var l;(function(){"use strict";var u={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 s(g){return c(x(g),arguments)}function f(g,w){return s.apply(null,[g].concat(w||[]))}function c(g,w){var M=1,m=g.length,k,S="",b,T,h,_,y,v,A,d;for(b=0;b<m;b++)if(typeof g[b]=="string")S+=g[b];else if(typeof g[b]=="object"){if(h=g[b],h.keys)for(k=w[M],T=0;T<h.keys.length;T++){if(k==null)throw new Error(s('[sprintf] Cannot access property "%s" of undefined value "%s"',h.keys[T],h.keys[T-1]));k=k[h.keys[T]]}else h.param_no?k=w[h.param_no]:k=w[M++];if(u.not_type.test(h.type)&&u.not_primitive.test(h.type)&&k instanceof Function&&(k=k()),u.numeric_arg.test(h.type)&&typeof k!="number"&&isNaN(k))throw new TypeError(s("[sprintf] expecting number but found %T",k));switch(u.number.test(h.type)&&(A=k>=0),h.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,h.width?parseInt(h.width):0);break;case"e":k=h.precision?parseFloat(k).toExponential(h.precision):parseFloat(k).toExponential();break;case"f":k=h.precision?parseFloat(k).toFixed(h.precision):parseFloat(k);break;case"g":k=h.precision?String(Number(k.toPrecision(h.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=h.precision?k.substring(0,h.precision):k;break;case"t":k=String(!!k),k=h.precision?k.substring(0,h.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=h.precision?k.substring(0,h.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=h.precision?k.substring(0,h.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(h.type)?S+=k:(u.number.test(h.type)&&(!A||h.sign)?(d=A?"+":"-",k=k.toString().replace(u.sign,"")):d="",y=h.pad_char?h.pad_char==="0"?"0":h.pad_char.charAt(1):" ",v=h.width-(d+k).length,_=h.width&&v>0?y.repeat(v):"",S+=h.align?d+k+_:y==="0"?d+_+k:_+d+k)}return S}var p=Object.create(null);function x(g){if(p[g])return p[g];for(var w=g,M,m=[],k=0;w;){if((M=u.text.exec(w))!==null)m.push(M[0]);else if((M=u.modulo.exec(w))!==null)m.push("%");else if((M=u.placeholder.exec(w))!==null){if(M[2]){k|=1;var S=[],b=M[2],T=[];if((T=u.key.exec(b))!==null)for(S.push(T[1]);(b=b.substring(T[0].length))!=="";)if((T=u.key_access.exec(b))!==null)S.push(T[1]);else if((T=u.index_access.exec(b))!==null)S.push(T[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");M[2]=S}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");m.push({placeholder:M[0],param_no:M[1],keys:M[2],sign:M[3],pad_char:M[4],align:M[5],width:M[6],precision:M[7],type:M[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");w=w.substring(M[0].length)}return p[g]=m}o.sprintf=s,o.vsprintf=f,typeof window!="undefined"&&(window.sprintf=s,window.vsprintf=f,l=(function(){return{sprintf:s,vsprintf:f}}).call(o,i,o,a),l!==void 0&&(a.exports=l))})()},3711(a,o,i){"use strict";a.exports=x;var l=i(2640),u=i(781),s={"2d":function(g,w,M){var m=g({order:w,scalarArguments:3,getters:M==="generic"?[0]:void 0,phase:function(S,b,T,h){return S>h|0},vertex:function(S,b,T,h,_,y,v,A,d,D,E,R,z){var I=(v<<0)+(A<<1)+(d<<2)+(D<<3)|0;if(!(I===0||I===15))switch(I){case 0:E.push([S-.5,b-.5]);break;case 1:E.push([S-.25-.25*(h+T-2*z)/(T-h),b-.25-.25*(_+T-2*z)/(T-_)]);break;case 2:E.push([S-.75-.25*(-h-T+2*z)/(h-T),b-.25-.25*(y+h-2*z)/(h-y)]);break;case 3:E.push([S-.5,b-.5-.5*(_+T+y+h-4*z)/(T-_+h-y)]);break;case 4:E.push([S-.25-.25*(y+_-2*z)/(_-y),b-.75-.25*(-_-T+2*z)/(_-T)]);break;case 5:E.push([S-.5-.5*(h+T+y+_-4*z)/(T-h+_-y),b-.5]);break;case 6:E.push([S-.5-.25*(-h-T+y+_)/(h-T+_-y),b-.5-.25*(-_-T+y+h)/(_-T+h-y)]);break;case 7:E.push([S-.75-.25*(y+_-2*z)/(_-y),b-.75-.25*(y+h-2*z)/(h-y)]);break;case 8:E.push([S-.75-.25*(-y-_+2*z)/(y-_),b-.75-.25*(-y-h+2*z)/(y-h)]);break;case 9:E.push([S-.5-.25*(h+T+-y-_)/(T-h+y-_),b-.5-.25*(_+T+-y-h)/(T-_+y-h)]);break;case 10:E.push([S-.5-.5*(-h-T+-y-_+4*z)/(h-T+y-_),b-.5]);break;case 11:E.push([S-.25-.25*(-y-_+2*z)/(y-_),b-.75-.25*(_+T-2*z)/(T-_)]);break;case 12:E.push([S-.5,b-.5-.5*(-_-T+-y-h+4*z)/(_-T+y-h)]);break;case 13:E.push([S-.75-.25*(h+T-2*z)/(T-h),b-.25-.25*(-y-h+2*z)/(y-h)]);break;case 14:E.push([S-.25-.25*(-h-T+2*z)/(h-T),b-.25-.25*(-_-T+2*z)/(_-T)]);break;case 15:E.push([S-.5,b-.5]);break}},cell:function(S,b,T,h,_,y,v,A,d){_?A.push([S,b]):A.push([b,S])}});return function(k,S){var b=[],T=[];return m(k,b,T,S),{positions:b,cells:T}}}};function f(g,w){var M=g.length+"d",m=s[M];if(m)return m(l,g,w)}function c(g,w){for(var M=u(g,w),m=M.length,k=new Array(m),S=new Array(m),b=0;b<m;++b)k[b]=[M[b]],S[b]=[b];return{positions:k,cells:S}}var p={};function x(g,k){if(g.dimension<=0)return{positions:[],cells:[]};if(g.dimension===1)return c(g,k);var M=g.order.join()+"-"+g.dtype,m=p[M],k=+k||0;return m||(m=p[M]=f(g.order,g.dtype)),m(g,k)}},7261(a,o,i){"use strict";a.exports=S;var l=i(9215),u=i(7608),s=i(6079),f=i(5911),c=i(3536),p=i(244);function x(b,T,h){return Math.sqrt(Math.pow(b,2)+Math.pow(T,2)+Math.pow(h,2))}function g(b){return Math.min(1,Math.max(-1,b))}function w(b){var T=Math.abs(b[0]),h=Math.abs(b[1]),_=Math.abs(b[2]),y=[0,0,0];T>Math.max(h,_)?y[2]=1:h>Math.max(T,_)?y[0]=1:y[1]=1;for(var v=0,A=0,d=0;d<3;++d)v+=b[d]*b[d],A+=y[d]*b[d];for(var d=0;d<3;++d)y[d]-=A/v*b[d];return c(y,y),y}function M(b,T,h,_,y,v,A,d){this.center=l(h),this.up=l(_),this.right=l(y),this.radius=l([v]),this.angle=l([A,d]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(b,T),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 D=0;D<16;++D)this.computedMatrix[D]=.5;this.recalcMatrix(0)}var m=M.prototype;m.setDistanceLimits=function(b,T){b>0?b=Math.log(b):b=-1/0,T>0?T=Math.log(T):T=1/0,T=Math.max(T,b),this.radius.bounds[0][0]=b,this.radius.bounds[1][0]=T},m.getDistanceLimits=function(b){var T=this.radius.bounds[0];return b?(b[0]=Math.exp(T[0][0]),b[1]=Math.exp(T[1][0]),b):[Math.exp(T[0][0]),Math.exp(T[1][0])]},m.recalcMatrix=function(b){this.center.curve(b),this.up.curve(b),this.right.curve(b),this.radius.curve(b),this.angle.curve(b);for(var T=this.computedUp,h=this.computedRight,_=0,y=0,v=0;v<3;++v)y+=T[v]*h[v],_+=T[v]*T[v];for(var A=Math.sqrt(_),d=0,v=0;v<3;++v)h[v]-=T[v]*y/_,d+=h[v]*h[v],T[v]/=A;for(var D=Math.sqrt(d),v=0;v<3;++v)h[v]/=D;var E=this.computedToward;f(E,T,h),c(E,E);for(var R=Math.exp(this.computedRadius[0]),z=this.computedAngle[0],I=this.computedAngle[1],P=Math.cos(z),L=Math.sin(z),F=Math.cos(I),B=Math.sin(I),O=this.computedCenter,V=P*F,K=L*F,j=B,G=-P*B,q=-L*B,J=F,te=this.computedEye,Z=this.computedMatrix,v=0;v<3;++v){var ie=V*h[v]+K*E[v]+j*T[v];Z[4*v+1]=G*h[v]+q*E[v]+J*T[v],Z[4*v+2]=ie,Z[4*v+3]=0}var Q=Z[1],re=Z[5],ue=Z[9],ee=Z[2],ae=Z[6],ce=Z[10],Te=re*ce-ue*ae,ke=ue*ee-Q*ce,Se=Q*ae-re*ee,ge=x(Te,ke,Se);Te/=ge,ke/=ge,Se/=ge,Z[0]=Te,Z[4]=ke,Z[8]=Se;for(var v=0;v<3;++v)te[v]=O[v]+Z[2+4*v]*R;for(var v=0;v<3;++v){for(var d=0,Le=0;Le<3;++Le)d+=Z[v+4*Le]*te[Le];Z[12+v]=-d}Z[15]=1},m.getMatrix=function(b,T){this.recalcMatrix(b);var h=this.computedMatrix;if(T){for(var _=0;_<16;++_)T[_]=h[_];return T}return h};var k=[0,0,0];m.rotate=function(b,T,h,_){if(this.angle.move(b,T,h),_){this.recalcMatrix(b);var y=this.computedMatrix;k[0]=y[2],k[1]=y[6],k[2]=y[10];for(var v=this.computedUp,A=this.computedRight,d=this.computedToward,D=0;D<3;++D)y[4*D]=v[D],y[4*D+1]=A[D],y[4*D+2]=d[D];s(y,y,_,k);for(var D=0;D<3;++D)v[D]=y[4*D],A[D]=y[4*D+1];this.up.set(b,v[0],v[1],v[2]),this.right.set(b,A[0],A[1],A[2])}},m.pan=function(b,T,h,_){T=T||0,h=h||0,_=_||0,this.recalcMatrix(b);var y=this.computedMatrix,v=Math.exp(this.computedRadius[0]),A=y[1],d=y[5],D=y[9],E=x(A,d,D);A/=E,d/=E,D/=E;var R=y[0],z=y[4],I=y[8],P=R*A+z*d+I*D;R-=A*P,z-=d*P,I-=D*P;var L=x(R,z,I);R/=L,z/=L,I/=L;var F=R*T+A*h,B=z*T+d*h,O=I*T+D*h;this.center.move(b,F,B,O);var V=Math.exp(this.computedRadius[0]);V=Math.max(1e-4,V+_),this.radius.set(b,Math.log(V))},m.translate=function(b,T,h,_){this.center.move(b,T||0,h||0,_||0)},m.setMatrix=function(b,T,h,_){var y=1;typeof h=="number"&&(y=h|0),(y<0||y>3)&&(y=1);var v=(y+2)%3,A=(y+1)%3;T||(this.recalcMatrix(b),T=this.computedMatrix);var d=T[y],D=T[y+4],E=T[y+8];if(_){var z=Math.abs(d),I=Math.abs(D),P=Math.abs(E),L=Math.max(z,I,P);z===L?(d=d<0?-1:1,D=E=0):P===L?(E=E<0?-1:1,d=D=0):(D=D<0?-1:1,d=E=0)}else{var R=x(d,D,E);d/=R,D/=R,E/=R}var F=T[v],B=T[v+4],O=T[v+8],V=F*d+B*D+O*E;F-=d*V,B-=D*V,O-=E*V;var K=x(F,B,O);F/=K,B/=K,O/=K;var j=D*O-E*B,G=E*F-d*O,q=d*B-D*F,J=x(j,G,q);j/=J,G/=J,q/=J,this.center.jump(b,pe,oe,ve),this.radius.idle(b),this.up.jump(b,d,D,E),this.right.jump(b,F,B,O);var te,Z;if(y===2){var ie=T[1],Q=T[5],re=T[9],ue=ie*F+Q*B+re*O,ee=ie*j+Q*G+re*q;ke<0?te=-Math.PI/2:te=Math.PI/2,Z=Math.atan2(ee,ue)}else{var ae=T[2],ce=T[6],Te=T[10],ke=ae*d+ce*D+Te*E,Se=ae*F+ce*B+Te*O,ge=ae*j+ce*G+Te*q;te=Math.asin(g(ke)),Z=Math.atan2(ge,Se)}this.angle.jump(b,Z,te),this.recalcMatrix(b);var Le=T[2],Ce=T[6],le=T[10],Y=this.computedMatrix;u(Y,T);var $=Y[15],pe=Y[12]/$,oe=Y[13]/$,ve=Y[14]/$,he=Math.exp(this.computedRadius[0]);this.center.jump(b,pe-Le*he,oe-Ce*he,ve-le*he)},m.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},m.idle=function(b){this.center.idle(b),this.up.idle(b),this.right.idle(b),this.radius.idle(b),this.angle.idle(b)},m.flush=function(b){this.center.flush(b),this.up.flush(b),this.right.flush(b),this.radius.flush(b),this.angle.flush(b)},m.setDistance=function(b,T){T>0&&this.radius.set(b,Math.log(T))},m.lookAt=function(b,T,h,_){this.recalcMatrix(b),T=T||this.computedEye,h=h||this.computedCenter,_=_||this.computedUp;var y=_[0],v=_[1],A=_[2],d=x(y,v,A);if(!(d<1e-6)){y/=d,v/=d,A/=d;var D=T[0]-h[0],E=T[1]-h[1],R=T[2]-h[2],z=x(D,E,R);if(!(z<1e-6)){D/=z,E/=z,R/=z;var I=this.computedRight,P=I[0],L=I[1],F=I[2],B=y*P+v*L+A*F;P-=B*y,L-=B*v,F-=B*A;var O=x(P,L,F);if(!(O<.01&&(P=v*R-A*E,L=A*D-y*R,F=y*E-v*D,O=x(P,L,F),O<1e-6))){P/=O,L/=O,F/=O,this.up.set(b,y,v,A),this.right.set(b,P,L,F),this.center.set(b,h[0],h[1],h[2]),this.radius.set(b,Math.log(z));var V=v*F-A*L,K=A*P-y*F,j=y*L-v*P,G=x(V,K,j);V/=G,K/=G,j/=G;var q=y*D+v*E+A*R,J=P*D+L*E+F*R,te=V*D+K*E+j*R,Z=Math.asin(g(q)),ie=Math.atan2(te,J),Q=this.angle._state,re=Q[Q.length-1],ue=Q[Q.length-2];re=re%(2*Math.PI);var ee=Math.abs(re+2*Math.PI-ie),ae=Math.abs(re-ie),ce=Math.abs(re-2*Math.PI-ie);ee<ae&&(re+=2*Math.PI),ce<ae&&(re-=2*Math.PI),this.angle.jump(this.angle.lastT(),re,ue),this.angle.set(b,ie,Z)}}}};function S(b){b=b||{};var T=b.center||[0,0,0],h=b.up||[0,1,0],_=b.right||w(h),y=b.radius||1,v=b.theta||0,A=b.phi||0;if(T=[].slice.call(T,0,3),h=[].slice.call(h,0,3),c(h,h),_=[].slice.call(_,0,3),c(_,_),"eye"in b){var d=b.eye,D=[d[0]-T[0],d[1]-T[1],d[2]-T[2]];f(_,D,h),x(_[0],_[1],_[2])<1e-6?_=w(h):c(_,_),y=x(D[0],D[1],D[2]);var E=p(h,D)/y,R=p(_,D)/y;A=Math.acos(E),v=Math.acos(R)}return y=Math.log(y),new M(b.zoomMin,b.zoomMax,T,h,_,y,v,A)}},5250(a){"use strict";a.exports=i;var o=+(Math.pow(2,27)+1);function i(l,u,s){var f=l*u,c=o*l,p=c-l,x=c-p,g=l-x,w=o*u,M=w-u,m=w-M,k=u-m,S=f-x*m,b=S-g*m,T=b-x*k,h=g*k-T;return s?(s[0]=h,s[1]=f,s):[h,f]}},9362(a){"use strict";a.exports=o;function o(i,l,u){var s=i+l,f=s-i,c=s-f,p=l-f,x=i-c;return u?(u[0]=x+p,u[1]=s,u):[x+p,s]}},1888(a,o,i){"use strict";var l=i(8828),u=i(1338),s=i(5500).hp;i.g.__TYPEDARRAY_POOL||(i.g.__TYPEDARRAY_POOL={UINT8:u([32,0]),UINT16:u([32,0]),UINT32:u([32,0]),BIGUINT64:u([32,0]),INT8:u([32,0]),INT16:u([32,0]),INT32:u([32,0]),BIGINT64:u([32,0]),FLOAT:u([32,0]),DOUBLE:u([32,0]),DATA:u([32,0]),UINT8C:u([32,0]),BUFFER:u([32,0])});var f=typeof Uint8ClampedArray!="undefined",c=typeof BigUint64Array!="undefined",p=typeof BigInt64Array!="undefined",x=i.g.__TYPEDARRAY_POOL;x.UINT8C||(x.UINT8C=u([32,0])),x.BIGUINT64||(x.BIGUINT64=u([32,0])),x.BIGINT64||(x.BIGINT64=u([32,0])),x.BUFFER||(x.BUFFER=u([32,0]));var g=x.DATA,w=x.BUFFER;o.free=function(P){if(s.isBuffer(P))w[l.log2(P.length)].push(P);else{if(Object.prototype.toString.call(P)!=="[object ArrayBuffer]"&&(P=P.buffer),!P)return;var L=P.length||P.byteLength,F=l.log2(L)|0;g[F].push(P)}};function M(I){if(I){var P=I.length||I.byteLength,L=l.log2(P);g[L].push(I)}}function m(I){M(I.buffer)}o.freeUint8=o.freeUint16=o.freeUint32=o.freeBigUint64=o.freeInt8=o.freeInt16=o.freeInt32=o.freeBigInt64=o.freeFloat32=o.freeFloat=o.freeFloat64=o.freeDouble=o.freeUint8Clamped=o.freeDataView=m,o.freeArrayBuffer=M,o.freeBuffer=function(P){w[l.log2(P.length)].push(P)},o.malloc=function(P,L){if(L===void 0||L==="arraybuffer")return k(P);switch(L){case"uint8":return S(P);case"uint16":return b(P);case"uint32":return T(P);case"int8":return h(P);case"int16":return _(P);case"int32":return y(P);case"float":case"float32":return v(P);case"double":case"float64":return A(P);case"uint8_clamped":return d(P);case"bigint64":return E(P);case"biguint64":return D(P);case"buffer":return z(P);case"data":case"dataview":return R(P);default:return null}return null};function k(P){var P=l.nextPow2(P),L=l.log2(P),F=g[L];return F.length>0?F.pop():new ArrayBuffer(P)}o.mallocArrayBuffer=k;function S(I){return new Uint8Array(k(I),0,I)}o.mallocUint8=S;function b(I){return new Uint16Array(k(2*I),0,I)}o.mallocUint16=b;function T(I){return new Uint32Array(k(4*I),0,I)}o.mallocUint32=T;function h(I){return new Int8Array(k(I),0,I)}o.mallocInt8=h;function _(I){return new Int16Array(k(2*I),0,I)}o.mallocInt16=_;function y(I){return new Int32Array(k(4*I),0,I)}o.mallocInt32=y;function v(I){return new Float32Array(k(4*I),0,I)}o.mallocFloat32=o.mallocFloat=v;function A(I){return new Float64Array(k(8*I),0,I)}o.mallocFloat64=o.mallocDouble=A;function d(I){return f?new Uint8ClampedArray(k(I),0,I):S(I)}o.mallocUint8Clamped=d;function D(I){return c?new BigUint64Array(k(8*I),0,I):null}o.mallocBigUint64=D;function E(I){return p?new BigInt64Array(k(8*I),0,I):null}o.mallocBigInt64=E;function R(I){return new DataView(k(I),0,I)}o.mallocDataView=R;function z(I){I=l.nextPow2(I);var P=l.log2(I),L=w[P];return L.length>0?L.pop():new s(I)}o.mallocBuffer=z,o.clearCache=function(){for(var P=0;P<32;++P)x.UINT8[P].length=0,x.UINT16[P].length=0,x.UINT32[P].length=0,x.INT8[P].length=0,x.INT16[P].length=0,x.INT32[P].length=0,x.FLOAT[P].length=0,x.DOUBLE[P].length=0,x.BIGUINT64[P].length=0,x.BIGINT64[P].length=0,x.UINT8C[P].length=0,g[P].length=0,w[P].length=0}},1755(a){"use strict";"use restrict";a.exports=o;function o(l){this.roots=new Array(l),this.ranks=new Array(l);for(var u=0;u<l;++u)this.roots[u]=u,this.ranks[u]=0}var i=o.prototype;Object.defineProperty(i,"length",{get:function(){return this.roots.length}}),i.makeSet=function(){var l=this.roots.length;return this.roots.push(l),this.ranks.push(0),l},i.find=function(l){for(var u=l,s=this.roots;s[l]!==l;)l=s[l];for(;s[u]!==l;){var f=s[u];s[u]=l,u=f}return l},i.link=function(l,u){var s=this.find(l),f=this.find(u);if(s!==f){var c=this.ranks,p=this.roots,x=c[s],g=c[f];x<g?p[s]=f:g<x?p[f]=s:(p[f]=s,++c[s])}}},1682(a){"use strict";function o(u,s){for(var f=1,c=u.length,p=u[0],x=u[0],g=1;g<c;++g)if(x=p,p=u[g],s(p,x)){if(g===f){f++;continue}u[f++]=p}return u.length=f,u}function i(u){for(var s=1,f=u.length,c=u[0],p=u[0],x=1;x<f;++x,p=c)if(p=c,c=u[x],c!==p){if(x===s){s++;continue}u[s++]=c}return u.length=s,u}function l(u,s,f){return u.length===0?u:s?(f||u.sort(s),o(u,s)):(f||u.sort(),i(u))}a.exports=l},4359(a,o,i){"use strict";a.exports=f;var l=i(7718),u=null,s=null;typeof document!="undefined"&&(u=document.createElement("canvas"),u.width=8192,u.height=1024,s=u.getContext("2d"));function f(c,p){return(typeof p!="object"||p===null)&&(p={}),l(c,p.canvas||u,p.context||s,p)}},7718(a,o,i){a.exports=E,a.exports.processPixels=D;var l=i(3711),u=i(9618),s=i(5878),f=i(332),c=i(2538),p=i(2095),x="b",g="b|",w="i",M="i|",m="sup",k="+",S="+1",b="sub",T="-",h="-1";function _(R,z,I,P){for(var L="<"+R+">",F="</"+R+">",B=L.length,O=F.length,V=z[0]===k||z[0]===T,K=0,j=-O;K>-1&&(K=I.indexOf(L,K),!(K===-1||(j=I.indexOf(F,K+B),j===-1)||j<=K));){for(var G=K;G<j+O;++G)if(G<K+B||G>=j)P[G]=null,I=I.substr(0,G)+" "+I.substr(G+1);else if(P[G]!==null){var q=P[G].indexOf(z[0]);q===-1?P[G]+=z:V&&(P[G]=P[G].substr(0,q+1)+(1+parseInt(P[G][q+1]))+P[G].substr(q+2))}var J=K+B,te=I.substr(J,j-J),Z=te.indexOf(L);Z!==-1?K=Z:K=j+O}return P}function y(R,z,I){for(var P=z.textAlign||"start",L=z.textBaseline||"alphabetic",F=[1<<30,1<<30],B=[0,0],O=R.length,V=0;V<O;++V)for(var K=R[V],j=0;j<2;++j)F[j]=Math.min(F[j],K[j])|0,B[j]=Math.max(B[j],K[j])|0;var G=0;switch(P){case"center":G=-.5*(F[0]+B[0]);break;case"right":case"end":G=-B[0];break;case"left":case"start":G=-F[0];break;default:throw new Error("vectorize-text: Unrecognized textAlign: '"+P+"'")}var q=0;switch(L){case"hanging":case"top":q=-F[1];break;case"middle":q=-.5*(F[1]+B[1]);break;case"alphabetic":case"ideographic":q=-3*I;break;case"bottom":q=-B[1];break;default:throw new Error("vectorize-text: Unrecoginized textBaseline: '"+L+"'")}var J=1/I;return"lineHeight"in z?J*=+z.lineHeight:"width"in z?J=z.width/(B[0]-F[0]):"height"in z&&(J=z.height/(B[1]-F[1])),R.map(function(te){return[J*(te[0]+G),J*(te[1]+q)]})}function v(R,z,I,P,L,F){I=I.replace(/\n/g,""),F.breaklines===!0?I=I.replace(/\<br\>/g,`
`):I=I.replace(/\<br\>/g," ");var B="",O=[];for(re=0;re<I.length;++re)O[re]=B;F.bolds===!0&&(O=_(x,g,I,O)),F.italics===!0&&(O=_(w,M,I,O)),F.superscripts===!0&&(O=_(m,S,I,O)),F.subscripts===!0&&(O=_(b,h,I,O));var V=[],K="";for(re=0;re<I.length;++re)O[re]!==null&&(K+=I[re],V.push(O[re]));var j=K.split(`
`),G=j.length,q=Math.round(L*P),J=P,te=P*2,Z=0,ie=G*q+te;R.height<ie&&(R.height=ie),z.fillStyle="#000",z.fillRect(0,0,R.width,R.height),z.fillStyle="#fff";var Q,re,ue,ee,ae,ce=0,Te="";function ke(){if(Te!==""){var oe=z.measureText(Te).width;z.fillText(Te,J+ue,te+ee),ue+=oe}}function Se(){return""+Math.round(ae)+"px "}function ge(oe,ve){var he=""+z.font;if(F.subscripts===!0){var me=oe.indexOf(T),be=ve.indexOf(T),ye=me>-1?parseInt(oe[1+me]):0,de=be>-1?parseInt(ve[1+be]):0;ye!==de&&(he=he.replace(Se(),"?px "),ae*=Math.pow(.75,de-ye),he=he.replace("?px ",Se())),ee+=.25*q*(de-ye)}if(F.superscripts===!0){var _e=oe.indexOf(k),Ae=ve.indexOf(k),Pe=_e>-1?parseInt(oe[1+_e]):0,Fe=Ae>-1?parseInt(ve[1+Ae]):0;Pe!==Fe&&(he=he.replace(Se(),"?px "),ae*=Math.pow(.75,Fe-Pe),he=he.replace("?px ",Se())),ee-=.25*q*(Fe-Pe)}if(F.bolds===!0){var Ye=oe.indexOf(g)>-1,qe=ve.indexOf(g)>-1;!Ye&&qe&&(Be?he=he.replace("italic ","italic bold "):he="bold "+he),Ye&&!qe&&(he=he.replace("bold ",""))}if(F.italics===!0){var Be=oe.indexOf(M)>-1,Oe=ve.indexOf(M)>-1;!Be&&Oe&&(he="italic "+he),Be&&!Oe&&(he=he.replace("italic ",""))}z.font=he}for(Q=0;Q<G;++Q){var Le=j[Q]+`
`;for(ue=0,ee=Q*q,ae=P,Te="",re=0;re<Le.length;++re){var Ce=re+ce<V.length?V[re+ce]:V[V.length-1];B===Ce?Te+=Le[re]:(ke(),Te=Le[re],Ce!==void 0&&(ge(B,Ce),B=Ce))}ke(),ce+=Le.length;var le=Math.round(ue+2*J)|0;Z<le&&(Z=le)}var Y=Z,$=te+q*G,pe=u(z.getImageData(0,0,Y,$).data,[$,Y,4]);return pe.pick(-1,-1,0).transpose(1,0)}function A(R,z){var I=l(R,128);return z?s(I.cells,I.positions,.25):{edges:I.cells,positions:I.positions}}function d(R,z,I,P){var L=A(R,P),F=y(L.positions,z,I),B=L.edges,O=z.orientation==="ccw";if(f(F,B),z.polygons||z.polygon||z.polyline){for(var V=p(B,F),K=new Array(V.length),j=0;j<V.length;++j){for(var G=V[j],q=new Array(G.length),J=0;J<G.length;++J){for(var te=G[J],Z=new Array(te.length),ie=0;ie<te.length;++ie)Z[ie]=F[te[ie]].slice();O&&Z.reverse(),q[J]=Z}K[j]=q}return K}else return z.triangles||z.triangulate||z.triangle?{cells:c(F,B,{delaunay:!1,exterior:!1,interior:!0}),positions:F}:{edges:B,positions:F}}function D(R,z,I){try{return d(R,z,I,!0)}catch(P){}try{return d(R,z,I,!1)}catch(P){}return z.polygons||z.polyline||z.polygon?[]:z.triangles||z.triangulate||z.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function E(R,z,I,P){var L=64,F=1.25,B={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};P&&(P.size&&P.size>0&&(L=P.size),P.lineSpacing&&P.lineSpacing>0&&(F=P.lineSpacing),P.styletags&&P.styletags.breaklines&&(B.breaklines=!!P.styletags.breaklines),P.styletags&&P.styletags.bolds&&(B.bolds=!!P.styletags.bolds),P.styletags&&P.styletags.italics&&(B.italics=!!P.styletags.italics),P.styletags&&P.styletags.subscripts&&(B.subscripts=!!P.styletags.subscripts),P.styletags&&P.styletags.superscripts&&(B.superscripts=!!P.styletags.superscripts)),I.font=[P.fontStyle,P.fontVariant,P.fontWeight,L+"px",P.font].filter(function(V){return V}).join(" "),I.textAlign="start",I.textBaseline="alphabetic",I.direction="ltr";var O=v(z,I,R,L,F,B);return D(O,P,L)}},1538(a){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function i(d){d.permitHostObjects___&&d.permitHostObjects___(i)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=i);var l=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var s=new u,f=Object.freeze({});if(s.set(f,1),s.get(f)!==1)l=!0;else{a.exports=WeakMap;return}}}var c=Object.prototype.hasOwnProperty,p=Object.getOwnPropertyNames,x=Object.defineProperty,g=Object.isExtensible,w="weakmap:",M=w+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var m=new ArrayBuffer(25),k=new Uint8Array(m);crypto.getRandomValues(k),M=w+"rand:"+Array.prototype.map.call(k,function(d){return(d%36).toString(36)}).join("")+"___"}function S(d){return!(d.substr(0,w.length)==w&&d.substr(d.length-3)==="___")}if(x(Object,"getOwnPropertyNames",{value:function(D){return p(D).filter(S)}}),"getPropertyNames"in Object){var b=Object.getPropertyNames;x(Object,"getPropertyNames",{value:function(D){return b(D).filter(S)}})}function T(d){if(d!==Object(d))throw new TypeError("Not an object: "+d);var D=d[M];if(D&&D.key===d)return D;if(g(d)){D={key:d};try{return x(d,M,{value:D,writable:!1,enumerable:!1,configurable:!1}),D}catch(E){return}}}(function(){var d=Object.freeze;x(Object,"freeze",{value:function(z){return T(z),d(z)}});var D=Object.seal;x(Object,"seal",{value:function(z){return T(z),D(z)}});var E=Object.preventExtensions;x(Object,"preventExtensions",{value:function(z){return T(z),E(z)}})})();function h(d){return d.prototype=null,Object.freeze(d)}var _=!1;function y(){!_&&typeof console!="undefined"&&(_=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var v=0,A=function(){this instanceof A||y();var d=[],D=[],E=v++;function R(L,F){var B,O=T(L);return O?E in O?O[E]:F:(B=d.indexOf(L),B>=0?D[B]:F)}function z(L){var F=T(L);return F?E in F:d.indexOf(L)>=0}function I(L,F){var B,O=T(L);return O?O[E]=F:(B=d.indexOf(L),B>=0?D[B]=F:(B=d.length,D[B]=F,d[B]=L)),this}function P(L){var F=T(L),B,O;return F?E in F&&delete F[E]:(B=d.indexOf(L),B<0?!1:(O=d.length-1,d[B]=void 0,D[B]=D[O],d[B]=d[O],d.length=O,D.length=O,!0))}return Object.create(A.prototype,{get___:{value:h(R)},has___:{value:h(z)},set___:{value:h(I)},delete___:{value:h(P)}})};A.prototype=Object.create(Object.prototype,{get:{value:function(D,E){return this.get___(D,E)},writable:!0,configurable:!0},has:{value:function(D){return this.has___(D)},writable:!0,configurable:!0},set:{value:function(D,E){return this.set___(D,E)},writable:!0,configurable:!0},delete:{value:function(D){return this.delete___(D)},writable:!0,configurable:!0}}),typeof u=="function"?(function(){l&&typeof Proxy!="undefined"&&(Proxy=void 0);function d(){this instanceof A||y();var D=new u,E=void 0,R=!1;function z(F,B){return E?D.has(F)?D.get(F):E.get___(F,B):D.get(F,B)}function I(F){return D.has(F)||(E?E.has___(F):!1)}var P;l?P=function(F,B){return D.set(F,B),D.has(F)||(E||(E=new A),E.set(F,B)),this}:P=function(F,B){if(R)try{D.set(F,B)}catch(O){E||(E=new A),E.set___(F,B)}else D.set(F,B);return this};function L(F){var B=!!D.delete(F);return E&&E.delete___(F)||B}return Object.create(A.prototype,{get___:{value:h(z)},has___:{value:h(I)},set___:{value:h(P)},delete___:{value:h(L)},permitHostObjects___:{value:h(function(F){if(F===i)R=!0;else throw new Error("bogus call to permitHostObjects___")})}})}d.prototype=A.prototype,a.exports=d,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})})():(typeof Proxy!="undefined"&&(Proxy=void 0),a.exports=A)})()},236(a,o,i){var l=i(8284);a.exports=u;function u(){var s={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var c=f.valueOf(s);return c&&c.identity===s?c:l(f,s)}}},8284(a){a.exports=o;function o(i,l){var u={identity:l},s=i.valueOf;return Object.defineProperty(i,"valueOf",{value:function(f){return f!==l?s.apply(this,arguments):u},writable:!0}),u}},606(a,o,i){var l=i(236);a.exports=u;function u(){var s=l();return{get:function(f,c){var p=s(f);return p.hasOwnProperty("value")?p.value:c},set:function(f,c){return s(f).value=c,this},has:function(f){return"value"in s(f)},delete:function(f){return delete s(f).value}}}},3349(a){"use strict";function o(){return function(c,p,x,g,w,M){var m=c[0],k=x[0],S=[0],b=k;g|=0;var T=0,h=k;for(T=0;T<m;++T){{var _=p[g]-M,y=p[g+b]-M;_>=0!=y>=0&&w.push(S[0]+.5+.5*(_+y)/(_-y))}g+=h,++S[0]}}}function i(){return o()}var l=i;function u(c){var p={};return function(g,w,M){var m=g.dtype,k=g.order,S=[m,k.join()].join(),b=p[S];return b||(p[S]=b=c([m,k])),b(g.shape.slice(0),g.data,g.stride,g.offset|0,w,M)}}function s(c){return u(l.bind(void 0,c))}function f(c){return s({funcName:c.funcName})}a.exports=f({funcName:"zeroCrossings"})},781(a,o,i){"use strict";a.exports=u;var l=i(3349);function u(s,f){var c=[];return f=+f||0,l(s.hi(s.shape[0]-1),c,f),c}},7790(){}};let r={};function t(a){let o=r[a];if(o!==void 0)return o.exports;let i=r[a]={id:a,loaded:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}t.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}})(),t.nmd=a=>(a.paths=[],a.children||(a.children=[]),a);let n=t(3065);HB.exports=n})()});var Vo=xe((h6e,VB)=>{"use strict";var{normalize:Y1e}=Xr();function X1e(e){return e?Y1e(e):[0,0,0,1]}VB.exports=X1e});var Bl=xe((d6e,JB)=>{"use strict";var WB=it(),Yd=ji(),Iu=Xr(),W1e=Zi().defaultLine,GB=sa().isArrayOrTypedArray,Bx=Iu.normalize(W1e),ZB=1;function YB(e,r){return[e[0],e[1],e[2],e[3]*r]}function qx(e){return WB(e)||!Iu.isChannelArray(e)&&!Iu.isValid(e)?Bx:Iu.normalize(e)}function XB(e){return WB(e)?e:ZB}function Z1e(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=GB(n),o=GB(r),i=Yd.extractOpts(e),l=[],u,s,f,c,p;if(i.colorscale!==void 0?u=Yd.makeColorScaleFuncFromTrace(e):u=qx,a?s=(g,w)=>g[w]===void 0?Bx:i.colorscale===void 0?u(g[w]):Iu.normalize(u(g[w])):s=qx,o?f=function(g,w){return g[w]===void 0?ZB:XB(g[w])}:f=XB,a||o)for(var x=0;x<t;x++)c=s(n,x),p=f(r,x),l[x]=YB(c,p);else l=YB(qx(n),r);return l}function J1e(e){var r=Yd.extractOpts(e),t=r.colorscale;return r.reversescale&&(t=Yd.flipScale(r.colorscale)),t.map(function(n){return{index:n[0],rgb:Iu.rgbaArray(n[1])}})}JB.exports={formatColor:Z1e,parseColorScale:J1e}});var Ox=xe((p6e,$B)=>{"use strict";$B.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]}});var Xd=xe((g6e,KB)=>{"use strict";KB.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var jB=xe((y6e,QB)=>{"use strict";var $1e=Cr();function Ux(e,r,t,n){if(!r||!r.visible)return null;for(var a=$1e.getComponentMethod("errorbars","makeComputeError")(r),o=new Array(e.length),i=0;i<e.length;i++){var l=a(+e[i],i);if(n.type==="log"){var u=n.c2l(e[i]),s=e[i]-l[0],f=e[i]+l[1];if(o[i]=[(n.c2l(s,!0)-u)*t,(n.c2l(f,!0)-u)*t],s>0){var c=n.c2l(s);n._lowerLogErrorBound||(n._lowerLogErrorBound=c),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,c)}}else o[i]=[-l[0]*t,l[1]*t]}return o}function K1e(e){for(var r=0;r<e.length;r++)if(e[r])return e[r].length;return 0}function Q1e(e,r,t){var n=[Ux(e.x,e.error_x,r[0],t.xaxis),Ux(e.y,e.error_y,r[1],t.yaxis),Ux(e.z,e.error_z,r[2],t.zaxis)],a=K1e(n);if(a===0)return null;for(var o=new Array(a),i=0;i<a;i++){for(var l=[[0,0,0],[0,0,0]],u=0;u<3;u++)if(n[u])for(var s=0;s<2;s++)l[s][u]=n[u][i][s];o[i]=l}return o}QB.exports=Q1e});var sO=xe((m6e,lO)=>{"use strict";var j1e=kn().gl_line3d,eO=kn().gl_scatter3d,e2e=kn().gl_error3d,r2e=kn().gl_mesh3d,t2e=kn().delaunay_triangulate,Go=rr(),iO=Vo(),Wd=Bl().formatColor,n2e=Ny(),Hx=Ox(),a2e=Xd(),i2e=Bt(),o2e=eo().appendArrayPointValue,l2e=jB();function oO(e,r){this.scene=e,this.uid=r,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 Gx=oO.prototype;Gx.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var r=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Go.isArrayOrTypedArray(this.textLabels)?(this.textLabels[r]||this.textLabels[r]===0)&&(e.textLabel=this.textLabels[r]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]],!0}};function s2e(e,r,t){var n=(t+1)%3,a=(t+2)%3,o=[],i=[],l;for(l=0;l<e.length;++l){var u=e[l];isNaN(u[n])||!isFinite(u[n])||isNaN(u[a])||!isFinite(u[a])||(o.push([u[n],u[a]]),i.push(l))}var s=t2e(o);for(l=0;l<s.length;++l)for(var f=s[l],c=0;c<f.length;++c)f[c]=i[f[c]];return{positions:e,cells:s,meshColor:r}}function u2e(e){for(var r=[0,0,0],t=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],a=0;a<3;a++){var o=e[a];o&&o.copy_zstyle!==!1&&e[2].visible!==!1&&(o=e[2]),!(!o||!o.visible)&&(r[a]=o.width/2,t[a]=iO(o.color),n[a]=o.thickness)}return{capSize:r,color:t,lineWidth:n}}function rO(e){return e==null?0:e.indexOf("left")>-1?-1:e.indexOf("right")>-1?1:0}function tO(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function f2e(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a<e.length;a++)n[a]=[r,t],e[a]&&(n[a][0]=rO(e[a]),n[a][1]=tO(e[a]));else n[0]=rO(e),n[1]=tO(e);return n}function c2e(e,r){return r(e*4)}function v2e(e){return a2e[e]}function Vx(e,r,t,n,a){var o=null;if(Go.isArrayOrTypedArray(e)){o=[];for(var i=0;i<r;i++)e[i]===void 0?o[i]=n:o[i]=t(e[i],a)}else o=t(e,Go.identity);return o}function h2e(e,r){var t=[],n=e.fullSceneLayout,a=e.dataScale,o=n.xaxis,i=n.yaxis,l=n.zaxis,u=r.marker,s=r.line,f=r.x||[],c=r.y||[],p=r.z||[],x=f.length,g=r.xcalendar,w=r.ycalendar,M=r.zcalendar,m,k,S,b,T,h;for(T=0;T<x;T++)m=o.d2l(f[T],0,g)*a[0],k=i.d2l(c[T],0,w)*a[1],S=l.d2l(p[T],0,M)*a[2],t[T]=[m,k,S];if(Array.isArray(r.text))h=r.text;else if(Go.isTypedArray(r.text))h=Array.from(r.text);else if(r.text!==void 0)for(h=new Array(x),T=0;T<x;T++)h[T]=r.text;function _(O,V){var K=n[O];return i2e.tickText(K,K.d2l(V),!0).text}var y=r.texttemplate;if(y){var v=e.fullLayout,A=v._d3locale,d=Array.isArray(y),D=d?Math.min(y.length,x):x,E=d?function(O){return y[O]}:function(){return y};for(h=new Array(D),T=0;T<D;T++){var R={x:f[T],y:c[T],z:p[T]},z={xLabel:_("xaxis",f[T]),yLabel:_("yaxis",c[T]),zLabel:_("zaxis",p[T])},I={};o2e(I,r,T),h[T]=Go.texttemplateString({data:[I,R,r._meta],fallback:r.texttemplatefallback,labels:z,locale:A,template:E(T)})}}if(b={position:t,mode:r.mode,text:h},"line"in r&&(b.lineColor=Wd(s,1,x),b.lineWidth=s.width,b.lineDashes=s.dash),"marker"in r){var P=n2e(r);b.scatterColor=Wd(u,1,x),b.scatterSize=Vx(u.size,x,c2e,20,P),b.scatterMarker=Vx(u.symbol,x,v2e,"\u25CF"),b.scatterLineWidth=u.line.width,b.scatterLineColor=Wd(u.line,1,x),b.scatterAngle=0}"textposition"in r&&(b.textOffset=f2e(r.textposition),b.textColor=Wd(r.textfont,1,x),b.textSize=Vx(r.textfont.size,x,Go.identity,12),b.textFontFamily=r.textfont.family,b.textFontWeight=r.textfont.weight,b.textFontStyle=r.textfont.style,b.textFontVariant=r.textfont.variant,b.textAngle=0);var L=["x","y","z"];for(b.project=[!1,!1,!1],b.projectScale=[1,1,1],b.projectOpacity=[1,1,1],T=0;T<3;++T){var F=r.projection[L[T]];(b.project[T]=F.show)&&(b.projectOpacity[T]=F.opacity,b.projectScale[T]=F.scale)}b.errorBounds=l2e(r,a,n);var B=u2e([r.error_x,r.error_y,r.error_z]);return b.errorColor=B.color,b.errorLineWidth=B.lineWidth,b.errorCapSize=B.capSize,b.delaunayAxis=r.surfaceaxis,b.delaunayColor=iO(r.surfacecolor),b}function nO(e){if(Go.isArrayOrTypedArray(e)){var r=e[0];return Go.isArrayOrTypedArray(r)&&(e=r),"rgb("+e.slice(0,3).map(function(t){return Math.round(t*255)})+")"}return null}function aO(e){return Go.isArrayOrTypedArray(e)?e.length===4&&typeof e[0]=="number"?nO(e):e.map(nO):null}Gx.update=function(e){var r=this.scene.glplot.gl,t,n,a,o,i=Hx.solid;this.data=e;var l=h2e(this.scene,e);"mode"in l&&(this.mode=l.mode),"lineDashes"in l&&l.lineDashes in Hx&&(i=Hx[l.lineDashes]),this.color=aO(l.scatterColor)||aO(l.lineColor),this.dataPoints=l.position,t={gl:this.scene.glplot.gl,position:l.position,color:l.lineColor,lineWidth:l.lineWidth||1,dashes:i[0],dashScale:i[1],opacity:e.opacity,connectGaps:e.connectgaps},this.mode.indexOf("lines")!==-1?this.linePlot?this.linePlot.update(t):(this.linePlot=j1e(t),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var u=e.opacity;if(e.marker&&e.marker.opacity!==void 0&&(u*=e.marker.opacity),n={gl:this.scene.glplot.gl,position:l.position,color:l.scatterColor,size:l.scatterSize,glyph:l.scatterMarker,opacity:u,orthographic:!0,lineWidth:l.scatterLineWidth,lineColor:l.scatterLineColor,project:l.project,projectScale:l.projectScale,projectOpacity:l.projectOpacity},this.mode.indexOf("markers")!==-1?this.scatterPlot?this.scatterPlot.update(n):(this.scatterPlot=eO(n),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),o={gl:this.scene.glplot.gl,position:l.position,glyph:l.text,color:l.textColor,size:l.textSize,angle:l.textAngle,alignment:l.textOffset,font:l.textFontFamily,fontWeight:l.textFontWeight,fontStyle:l.textFontStyle,fontVariant:l.textFontVariant,orthographic:!0,lineWidth:0,project:!1,opacity:e.opacity},this.textLabels=e.hovertext||e.text,this.mode.indexOf("text")!==-1?this.textMarkers?this.textMarkers.update(o):(this.textMarkers=eO(o),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),a={gl:this.scene.glplot.gl,position:l.position,color:l.errorColor,error:l.errorBounds,lineWidth:l.errorLineWidth,capSize:l.errorCapSize,opacity:e.opacity},this.errorBars?l.errorBounds?this.errorBars.update(a):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):l.errorBounds&&(this.errorBars=e2e(a),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),l.delaunayAxis>=0){var s=s2e(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=r2e(s),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)};Gx.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 d2e(e,r){var t=new oO(e,r.uid);return t.update(r),t}lO.exports=d2e});var Jx=xe((b6e,vO)=>{"use strict";var Yo=Os(),p2e=Nn(),Zx=wi(),Yx=Ro().axisHoverFormat,{hovertemplateAttrs:g2e,texttemplateAttrs:y2e,templatefallbackAttrs:uO}=mi(),fO=qn(),m2e=Ox(),b2e=Xd(),Ni=Rt().extendFlat,x2e=ea().overrideAll,cO=(Ih(),Kn(Ph)).default,_2e=Yo.line,js=Yo.marker,w2e=js.line,M2e=Ni({width:_2e.width,dash:{valType:"enumerated",values:cO(m2e),dflt:"solid"}},Zx("line"));function Xx(e){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 Wx=vO.exports=x2e({x:Yo.x,y:Yo.y,z:{valType:"data_array"},text:Ni({},Yo.text,{}),texttemplate:y2e(),texttemplatefallback:uO({editType:"calc"}),hovertext:Ni({},Yo.hovertext,{}),hovertemplate:g2e(),hovertemplatefallback:uO(),xhoverformat:Yx("x"),yhoverformat:Yx("y"),zhoverformat:Yx("z"),mode:Ni({},Yo.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:Xx("x"),y:Xx("y"),z:Xx("z")},connectgaps:Yo.connectgaps,line:M2e,marker:Ni({symbol:{valType:"enumerated",values:cO(b2e),dflt:"circle",arrayOk:!0},size:Ni({},js.size,{dflt:8}),sizeref:js.sizeref,sizemin:js.sizemin,sizemode:js.sizemode,opacity:Ni({},js.opacity,{arrayOk:!1}),colorbar:js.colorbar,line:Ni({width:Ni({},w2e.width,{arrayOk:!1})},Zx("marker.line"))},Zx("marker")),textposition:Ni({},Yo.textposition,{dflt:"top center"}),textfont:p2e({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:fO.opacity,hoverinfo:Ni({},fO.hoverinfo)},"calc","nested");Wx.x.editType=Wx.y.editType=Wx.z.editType="calc+clearAxisTypes"});var pO=xe((x6e,dO)=>{"use strict";var hO=Cr(),T2e=rr(),$x=wa(),A2e=db(),k2e=pb(),S2e=gb(),C2e=Jx();dO.exports=function(r,t,n,a){function o(x,g){return T2e.coerce(r,t,C2e,x,g)}var i=E2e(r,t,o,a);if(!i){t.visible=!1;return}o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),o("mode"),$x.hasMarkers(t)&&A2e(r,t,n,a,o,{noAngle:!0,noLineDash:!0,noSelect:!0}),$x.hasLines(t)&&(o("connectgaps"),k2e(r,t,n,a,o)),$x.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),S2e(r,t,a,o,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var l=(t.line||{}).color,u=(t.marker||{}).color;o("surfaceaxis")>=0&&o("surfacecolor",l||u);for(var s=["x","y","z"],f=0;f<3;++f){var c="projection."+s[f];o(c+".show")&&(o(c+".opacity"),o(c+".scale"))}var p=hO.getComponentMethod("errorbars","supplyDefaults");p(r,t,l||u||n,{axis:"z"}),p(r,t,l||u||n,{axis:"y",inherit:"z"}),p(r,t,l||u||n,{axis:"x",inherit:"z"})};function E2e(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=hO.getComponentMethod("calendars","handleTraceDefaults");return u(e,r,["x","y","z"],n),o&&i&&l&&(a=Math.min(o.length,i.length,l.length),r._length=r._xlength=r._ylength=r._zlength=a),a}});var yO=xe((_6e,gO)=>{"use strict";var L2e=td(),D2e=bb();gO.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return L2e(n,t),D2e(r,t),n}});var bO=xe((w6e,mO)=>{mO.exports=R2e;function R2e(e,r){if(typeof e!="string")throw new TypeError("must specify type string");if(r=r||{},typeof document=="undefined"&&!r.canvas)return null;var t=r.canvas||document.createElement("canvas");typeof r.width=="number"&&(t.width=r.width),typeof r.height=="number"&&(t.height=r.height);var n=r,a;try{var o=[e];e.indexOf("webgl")===0&&o.push("experimental-"+e);for(var i=0;i<o.length;i++)if(a=t.getContext(o[i],n),a)return a}catch(l){a=null}return a||null}});var _O=xe((M6e,xO)=>{var F2e=bO();xO.exports=function(r){return F2e("webgl",r)}});var TO=xe((T6e,MO)=>{"use strict";var wO=Xr(),P2e=function(){};MO.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=P2e);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=wO.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=wO.lightLine,n.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%",n.appendChild(a),r.container.appendChild(n),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var SO=xe((A6e,kO)=>{"use strict";var e0=Vo(),I2e=rr(),z2e=["xaxis","yaxis","zaxis"];function AO(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var N2e=AO.prototype;N2e.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[z2e[n]];if(!a.visible){t.tickEnable[n]=!1,t.labelEnable[n]=!1,t.lineEnable[n]=!1,t.lineTickEnable[n]=!1,t.gridEnable[n]=!1,t.zeroEnable[n]=!1,t.backgroundEnable[n]=!1;continue}t.labels[n]=e._meta?I2e.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=e0(a.title.font.color)),a.title.font.family&&(t.labelFont[n]=a.title.font.family),a.title.font.size&&(t.labelSize[n]=a.title.font.size),a.title.font.weight&&(t.labelFontWeight[n]=a.title.font.weight),a.title.font.style&&(t.labelFontStyle[n]=a.title.font.style),a.title.font.variant&&(t.labelFontVariant[n]=a.title.font.variant)),"showline"in a&&(t.lineEnable[n]=a.showline),"linecolor"in a&&(t.lineColor[n]=e0(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=e0(a.gridcolor)),"gridwidth"in a&&(t.gridWidth[n]=a.gridwidth),a.type==="log"?t.zeroEnable[n]=!1:"zeroline"in a&&(t.zeroEnable[n]=a.zeroline),"zerolinecolor"in a&&(t.zeroLineColor[n]=e0(a.zerolinecolor)),"zerolinewidth"in a&&(t.zeroLineWidth[n]=a.zerolinewidth),"ticks"in a&&a.ticks?t.lineTickEnable[n]=!0:t.lineTickEnable[n]=!1,"ticklen"in a&&(t.lineTickLength[n]=t._defaultLineTickLength[n]=a.ticklen),"tickcolor"in a&&(t.lineTickColor[n]=e0(a.tickcolor)),"tickwidth"in a&&(t.lineTickWidth[n]=a.tickwidth),"tickangle"in a&&(t.tickAngle[n]=a.tickangle==="auto"?-3600:Math.PI*-a.tickangle/180),"showticklabels"in a&&(t.tickEnable[n]=a.showticklabels),"tickfont"in a&&(a.tickfont.color&&(t.tickColor[n]=e0(a.tickfont.color)),a.tickfont.family&&(t.tickFont[n]=a.tickfont.family),a.tickfont.size&&(t.tickSize[n]=a.tickfont.size),a.tickfont.weight&&(t.tickFontWeight[n]=a.tickfont.weight),a.tickfont.style&&(t.tickFontStyle[n]=a.tickfont.style),a.tickfont.variant&&(t.tickFontVariant[n]=a.tickfont.variant)),"mirror"in a?["ticks","all","allticks"].indexOf(a.mirror)!==-1?(t.lineTickMirror[n]=!0,t.lineMirror[n]=!0):a.mirror===!0?(t.lineTickMirror[n]=!1,t.lineMirror[n]=!0):(t.lineTickMirror[n]=!1,t.lineMirror[n]=!1):t.lineMirror[n]=!1,"showbackground"in a&&a.showbackground!==!1?(t.backgroundEnable[n]=!0,t.backgroundColor[n]=e0(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function q2e(e,r){var t=new AO;return t.merge(e,r),t}kO.exports=q2e});var LO=xe((k6e,EO)=>{"use strict";var B2e=Vo(),O2e=["xaxis","yaxis","zaxis"];function CO(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var U2e=CO.prototype;U2e.merge=function(e){for(var r=0;r<3;++r){var t=e[O2e[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=B2e(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function H2e(e){var r=new CO;return r.merge(e),r}EO.exports=H2e});var FO=xe((S6e,RO)=>{"use strict";RO.exports=W2e;var DO=Bt(),V2e=rr(),G2e=["xaxis","yaxis","zaxis"],Y2e=[0,0,0];function X2e(e){for(var r=new Array(3),t=0;t<3;++t){for(var n=e[t],a=new Array(n.length),o=0;o<n.length;++o)a[o]=n[o].x;r[t]=a}return r}function W2e(e){for(var r=e.axesOptions,t=e.glplot.axesPixels,n=e.fullSceneLayout,a=[[],[],[]],o=0;o<3;++o){var i=n[G2e[o]];if(i._length=(t[o].hi-t[o].lo)*t[o].pixelsPerDataUnit/e.dataScale[o],Math.abs(i._length)===1/0||isNaN(i._length))a[o]=[];else{i._input_range=i.range.slice(),i.range[0]=t[o].lo/e.dataScale[o],i.range[1]=t[o].hi/e.dataScale[o],i._m=1/(e.dataScale[o]*t[o].pixelsPerDataUnit),i.range[0]===i.range[1]&&(i.range[0]-=1,i.range[1]+=1);var l=i.tickmode;if(i.tickmode==="auto"){i.tickmode="linear";var u=i.nticks||V2e.constrain(i._length/40,4,9);DO.autoTicks(i,Math.abs(i.range[1]-i.range[0])/u)}for(var s=DO.calcTicks(i,{msUTC:!0}),f=0;f<s.length;++f)s[f].x=s[f].x*e.dataScale[o],i.type==="date"&&(s[f].text=s[f].text.replace(/\<br\>/g," "));a[o]=s,i.tickmode=l}}r.ticks=a;for(var o=0;o<3;++o){Y2e[o]=.5*(e.glplot.bounds[0][o]+e.glplot.bounds[1][o]);for(var f=0;f<2;++f)r.bounds[f][o]=e.glplot.bounds[f][o]}e.contourLevels=X2e(a)}});var OO=xe((C6e,BO)=>{"use strict";var zO=kn().gl_plot3d,Z2e=zO.createCamera,PO=zO.createScene,J2e=_O(),$2e=z1(),$d=Cr(),va=rr(),Jd=va.preserveDrawingBuffer(),Kd=Bt(),qi=so(),K2e=Vo(),Q2e=TO(),j2e=tx(),ede=SO(),rde=LO(),tde=FO(),nde=K0().applyAutorangeOptions,iv,Zd,NO=!1;function qO(e,r){var t=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.position="absolute",a.style.top=a.style.left="0px",a.style.width=a.style.height="100%",a.style["z-index"]=20,a.style["pointer-events"]="none",t.appendChild(a),this.svgContainer=a,t.id=e.id,t.style.position="absolute",t.style.top=t.style.left="0px",t.style.width=t.style.height="100%",n.appendChild(t),this.fullLayout=r,this.id=e.id||"scene",this.fullSceneLayout=r[this.id],this.plotArgs=[[],{},{}],this.axesOptions=ede(r,r[this.id]),this.spikeOptions=rde(r[this.id]),this.container=t,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=$d.getComponentMethod("annotations3d","convert"),this.drawAnnotations=$d.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Gn=qO.prototype;Gn.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:Jd,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!Zd&&(iv=document.createElement("canvas"),Zd=J2e({canvas:iv,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!Zd))throw new Error("error creating static canvas/context for image server");r.gl=Zd,r.canvas=iv}return r};var IO=!0;Gn.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=PO(r)}catch(n){if(e.staticMode||!IO||Jd)t=!1;else{va.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{Jd=r.glOptions.preserveDrawingBuffer=!0,e.glplot=PO(r)}catch(a){Jd=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return IO=!1,t};Gn.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=Z2e(e.container,{center:[r.center.x,r.center.y,r.center.z],eye:[r.eye.x,r.eye.y,r.eye.z],up:[r.up.x,r.up.y,r.up.z],_ortho:t,zoomMin:.01,zoomMax:100,mode:"orbit"})};Gn.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return Q2e(e);e.traces={},e.make4thDimension();var t=e.graphDiv,n=t.layout,a=function(){var i={};return e.isCameraChanged(n)&&(i[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(i[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=i[e.id+".aspectmode"]="manual")),i},o=function(i){if(i.fullSceneLayout.dragmode!==!1){var l=a();i.saveLayout(n),i.graphDiv.emit("plotly_relayout",l)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){o(e)}),e.glplot.canvas.addEventListener("touchstart",function(){NO=!0}),e.glplot.canvas.addEventListener("wheel",function(i){if(t._context._scrollZoom.gl3d){if(e.camera._ortho){var l=i.deltaX>i.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:l*u.x,y:l*u.y,z:l*u.z})}o(e)}},$2e?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var i=a();e.graphDiv.emit("plotly_relayouting",i)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(i){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:i,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Gn.render=function(){var e=this,r=e.graphDiv,t,n=e.svgContainer,a=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var o=r._fullLayout._invScaleX,i=r._fullLayout._invScaleY,l=a.width*o,u=a.height*i;n.setAttributeNS(null,"viewBox","0 0 "+l+" "+u),n.setAttributeNS(null,"width",l),n.setAttributeNS(null,"height",u),tde(e),e.glplot.axes.update(e.axesOptions);for(var s=Object.keys(e.traces),f=null,c=e.glplot.selection,p=0;p<s.length;++p)t=e.traces[s[p]],t.data.hoverinfo!=="skip"&&t.handlePick(c)&&(f=t),t.setContourLevels&&t.setContourLevels();function x(A,d,D){var E=e.fullSceneLayout[A+"axis"];return E.type!=="log"&&(d=E.d2l(d)),Kd.hoverLabelText(E,d,D)}if(f!==null){var g=j2e(e.glplot.cameraParams,c.dataCoordinate);t=f.data;var w=r._fullData[t.index],M=c.index,m={xLabel:x("x",c.traceCoordinate[0],t.xhoverformat),yLabel:x("y",c.traceCoordinate[1],t.yhoverformat),zLabel:x("z",c.traceCoordinate[2],t.zhoverformat)},k=qi.castHoverinfo(w,e.fullLayout,M),S=(k||"").split("+"),b=k&&k==="all";!w.hovertemplate&&!b&&(S.indexOf("x")===-1&&(m.xLabel=void 0),S.indexOf("y")===-1&&(m.yLabel=void 0),S.indexOf("z")===-1&&(m.zLabel=void 0),S.indexOf("text")===-1&&(c.textLabel=void 0),S.indexOf("name")===-1&&(f.name=void 0));var T,h=[];t.type==="cone"||t.type==="streamtube"?(m.uLabel=x("x",c.traceCoordinate[3],t.uhoverformat),(b||S.indexOf("u")!==-1)&&h.push("u: "+m.uLabel),m.vLabel=x("y",c.traceCoordinate[4],t.vhoverformat),(b||S.indexOf("v")!==-1)&&h.push("v: "+m.vLabel),m.wLabel=x("z",c.traceCoordinate[5],t.whoverformat),(b||S.indexOf("w")!==-1)&&h.push("w: "+m.wLabel),m.normLabel=c.traceCoordinate[6].toPrecision(3),(b||S.indexOf("norm")!==-1)&&h.push("norm: "+m.normLabel),t.type==="streamtube"&&(m.divergenceLabel=c.traceCoordinate[7].toPrecision(3),(b||S.indexOf("divergence")!==-1)&&h.push("divergence: "+m.divergenceLabel)),c.textLabel&&h.push(c.textLabel),T=h.join("<br>")):t.type==="isosurface"||t.type==="volume"?(m.valueLabel=Kd.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),t.valuehoverformat),h.push("value: "+m.valueLabel),c.textLabel&&h.push(c.textLabel),T=h.join("<br>")):T=c.textLabel;var _={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:M};qi.appendArrayPointValue(_,w,M),t._module.eventData&&(_=w._module.eventData(_,c,w,{},M));var y={points:[_]};if(e.fullSceneLayout.hovermode){var v=[];qi.loneHover({trace:w,x:(.5+.5*g[0]/g[3])*l,y:(.5-.5*g[1]/g[3])*u,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:T,name:f.name,color:qi.castHoverOption(w,M,"bgcolor")||f.color,borderColor:qi.castHoverOption(w,M,"bordercolor"),fontFamily:qi.castHoverOption(w,M,"font.family"),fontSize:qi.castHoverOption(w,M,"font.size"),fontColor:qi.castHoverOption(w,M,"font.color"),nameLength:qi.castHoverOption(w,M,"namelength"),textAlign:qi.castHoverOption(w,M,"align"),hovertemplate:va.castOption(w,M,"hovertemplate"),hovertemplateLabels:va.extendFlat({},_,m),eventData:[_]},{container:n,gd:r,inOut_bbox:v}),_.bbox=v[0]}c.distance<5&&(c.buttons||NO)?r.emit("plotly_click",y):r.emit("plotly_hover",y),this.oldEventData=y}else qi.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Gn.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){va.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var ov=["xaxis","yaxis","zaxis"];function ade(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=ov[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!va.isArrayOrTypedArray(u))t[0][a]=Math.min(t[0][a],0),t[1][a]=Math.max(t[1][a],f-1);else for(var c,p=0;p<(f||u.length);p++)if(va.isArrayOrTypedArray(u[p]))for(var x=0;x<u[p].length;++x)c=l.d2l(u[p][x],0,s),!isNaN(c)&&isFinite(c)&&(t[0][a]=Math.min(t[0][a],c),t[1][a]=Math.max(t[1][a],c));else c=l.d2l(u[p],0,s),!isNaN(c)&&isFinite(c)&&(t[0][a]=Math.min(t[0][a],c),t[1][a]=Math.max(t[1][a],c))}}function ide(e,r){for(var t=e.fullSceneLayout,n=t.annotations||[],a=0;a<3;a++)for(var o=ov[a],i=o.charAt(0),l=t[o],u=0;u<n.length;u++){var s=n[u];if(s.visible){var f=l.r2l(s[i]);!isNaN(f)&&isFinite(f)&&(r[0][a]=Math.min(r[0][a],f),r[1][a]=Math.max(r[1][a],f))}}}Gn.plot=function(e,r,t){var n=this;if(n.plotArgs=[e,r,t],!n.glplot.contextLost){var a,o,i,l,u,s,f=r[n.id],c=t[n.id];n.fullLayout=r,n.fullSceneLayout=f,n.axesOptions.merge(r,f),n.spikeOptions.merge(f),n.setViewport(f),n.updateFx(f.dragmode,f.hovermode),n.camera.enableWheel=n.graphDiv._context._scrollZoom.gl3d,n.glplot.setClearColor(K2e(f.bgcolor)),n.setConvert(u),e?Array.isArray(e)||(e=[e]):e=[];var p=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(i=0;i<e.length;++i)a=e[i],!(a.visible!==!0||a._length===0)&&ade(this,a,p);ide(this,p);var x=[1,1,1];for(l=0;l<3;++l)p[1][l]===p[0][l]?x[l]=1:x[l]=1/(p[1][l]-p[0][l]);for(n.dataScale=x,n.convertAnnotations(this),i=0;i<e.length;++i)a=e[i],!(a.visible!==!0||a._length===0)&&(o=n.traces[a.uid],o?o.data.type===a.type?o.update(a):(o.dispose(),o=a._module.plot(this,a),n.traces[a.uid]=o):(o=a._module.plot(this,a),n.traces[a.uid]=o),o.name=a.name);var g=Object.keys(n.traces);e:for(i=0;i<g.length;++i){for(l=0;l<e.length;++l)if(e[l].uid===g[i]&&e[l].visible===!0&&e[l]._length!==0)continue e;o=n.traces[g[i]],o.dispose(),delete n.traces[g[i]]}n.glplot.objects.sort(function(O,V){return O._trace.data.index-V._trace.data.index});var w=[[0,0,0],[0,0,0]],M=[],m={};for(i=0;i<3;++i){u=f[ov[i]],s=u.type,s in m?(m[s].acc*=x[i],m[s].count+=1):m[s]={acc:x[i],count:1};var k;if(u.autorange){w[0][i]=1/0,w[1][i]=-1/0;var S=n.glplot.objects,b=n.fullSceneLayout.annotations||[],T=u._name.charAt(0);for(l=0;l<S.length;l++){var h=S[l],_=h.bounds,y=h._trace.data._pad||0;h.constructor.name==="ErrorBars"&&u._lowerLogErrorBound?w[0][i]=Math.min(w[0][i],u._lowerLogErrorBound):w[0][i]=Math.min(w[0][i],_[0][i]/x[i]-y),w[1][i]=Math.max(w[1][i],_[1][i]/x[i]+y)}for(l=0;l<b.length;l++){var v=b[l];if(v.visible){var A=u.r2l(v[T]);w[0][i]=Math.min(w[0][i],A),w[1][i]=Math.max(w[1][i],A)}}if("rangemode"in u&&u.rangemode==="tozero"&&(w[0][i]=Math.min(w[0][i],0),w[1][i]=Math.max(w[1][i],0)),w[0][i]>w[1][i])w[0][i]=-1,w[1][i]=1;else{var d=w[1][i]-w[0][i];w[0][i]-=d/32,w[1][i]+=d/32}if(k=[w[0][i],w[1][i]],k=nde(k,u),w[0][i]=k[0],w[1][i]=k[1],u.isReversed()){var D=w[0][i];w[0][i]=w[1][i],w[1][i]=D}}else k=u.range,w[0][i]=u.r2l(k[0]),w[1][i]=u.r2l(k[1]);w[0][i]===w[1][i]&&(w[0][i]-=1,w[1][i]+=1),M[i]=w[1][i]-w[0][i],u.range=[w[0][i],w[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*x[i],max:u.range[1]*x[i]})}var E,R=f.aspectmode;if(R==="cube")E=[1,1,1];else if(R==="manual"){var z=f.aspectratio;E=[z.x,z.y,z.z]}else if(R==="auto"||R==="data"){var I=[1,1,1];for(i=0;i<3;++i){u=f[ov[i]],s=u.type;var P=m[s];I[i]=Math.pow(P.acc,1/P.count)/x[i]}R==="data"||Math.max.apply(null,I)/Math.min.apply(null,I)<=4?E=I:E=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=E[0],f.aspectratio.y=c.aspectratio.y=E[1],f.aspectratio.z=c.aspectratio.z=E[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var L=f.domain||null,F=r._size||null;if(L&&F){var B=n.container.style;B.position="absolute",B.left=F.l+L.x[0]*F.w+"px",B.top=F.t+(1-L.y[1])*F.h+"px",B.width=F.w*(L.x[1]-L.x[0])+"px",B.height=F.h*(L.y[1]-L.y[0])+"px"}n.glplot.redraw()}};Gn.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function ode(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function lde(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Gn.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),lde(e.camera)};Gn.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,ode(t)),r.glplot.setAspectratio(e.aspectratio);var n=t.projection.type==="orthographic",a=r.camera._ortho;n!==a&&(r.glplot.redraw(),r.glplot.clearRGBA(),r.glplot.dispose(),r.initializeGLPlot())};Gn.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=va.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,c,p){var x=["up","center","eye"],g=["x","y","z"];return f[x[c]]&&s[x[c]][g[p]]===f[x[c]][g[p]]}var i=!1;if(a===void 0)i=!0;else{for(var l=0;l<3;l++)for(var u=0;u<3;u++)if(!o(t,a,l,u)){i=!0;break}(!a.projection||t.projection&&t.projection.type!==a.projection.type)&&(i=!0)}return i};Gn.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=va.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};Gn.saveLayout=function(e){var r=this,t=r.fullLayout,n,a,o,i,l,u,s=r.isCameraChanged(e),f=r.isAspectChanged(e),c=s||f;if(c){var p={};if(s&&(n=r.getCamera(),a=va.nestedProperty(e,r.id+".camera"),o=a.get(),p[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=va.nestedProperty(e,r.id+".aspectratio"),u=l.get(),p[r.id+".aspectratio"]=u),$d.call("_storeDirectGUIEdit",e,t._preGUI,p),s){a.set(n);var x=va.nestedProperty(t,r.id+".camera");x.set(n)}if(f){l.set(i);var g=va.nestedProperty(t,r.id+".aspectratio");g.set(i),r.glplot.redraw()}}return c};Gn.updateFx=function(e,r){var t=this,n=t.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var a=t.graphDiv,o=a._fullLayout,i=t.fullSceneLayout.camera,l=i.up.x,u=i.up.y,s=i.up.z;if(s/Math.sqrt(l*l+u*u+s*s)<.999){var f=t.id+".camera.up",c={x:0,y:0,z:1},p={};p[f]=c;var x=a.layout;$d.call("_storeDirectGUIEdit",x,o._preGUI,p),i.up=c,va.nestedProperty(x,f).set(c)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function sde(e,r,t){for(var n=0,a=t-1;n<a;++n,--a)for(var o=0;o<r;++o)for(var i=0;i<4;++i){var l=4*(r*n+o)+i,u=4*(r*a+o)+i,s=e[l];e[l]=e[u],e[u]=s}}function ude(e,r,t){for(var n=0;n<t;++n)for(var a=0;a<r;++a){var o=4*(r*n+a),i=e[o+3];if(i>0)for(var l=255/i,u=0;u<3;++u)e[o+u]=Math.min(l*e[o+u],255)}}Gn.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(iv),r.glplot.redraw();var t=r.glplot.gl,n=t.drawingBufferWidth,a=t.drawingBufferHeight;t.bindFramebuffer(t.FRAMEBUFFER,null);var o=new Uint8Array(n*a*4);t.readPixels(0,0,n,a,t.RGBA,t.UNSIGNED_BYTE,o),sde(o,n,a),ude(o,n,a);var i=document.createElement("canvas");i.width=n,i.height=a;var l=i.getContext("2d",{willReadFrequently:!0}),u=l.createImageData(n,a);u.data.set(o),l.putImageData(u,0,0);var s;switch(e){case"jpeg":s=i.toDataURL("image/jpeg");break;case"webp":s=i.toDataURL("image/webp");break;default:s=i.toDataURL("image/png")}return r.staticMode&&r.container.removeChild(iv),s};Gn.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[ov[r]];Kd.setConvert(t,e.fullLayout),t.setScale=va.noop}};Gn.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},Kd.setConvert(e._mockAxis,t)};BO.exports=qO});var HO=xe((E6e,UO)=>{"use strict";UO.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var Qx=xe((L6e,VO)=>{"use strict";var fde=Xr(),Br=$a(),Kx=Rt().extendFlat,cde=ea().overrideAll;VO.exports=cde({visible:Br.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:fde.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Br.color,categoryorder:Br.categoryorder,categoryarray:Br.categoryarray,title:{text:Br.title.text,font:Br.title.font},type:Kx({},Br.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Br.autotypenumbers,autorange:Br.autorange,autorangeoptions:{minallowed:Br.autorangeoptions.minallowed,maxallowed:Br.autorangeoptions.maxallowed,clipmin:Br.autorangeoptions.clipmin,clipmax:Br.autorangeoptions.clipmax,include:Br.autorangeoptions.include,editType:"plot"},rangemode:Br.rangemode,minallowed:Br.minallowed,maxallowed:Br.maxallowed,range:Kx({},Br.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Br.minor.tickmode,nticks:Br.nticks,tick0:Br.tick0,dtick:Br.dtick,tickvals:Br.tickvals,ticktext:Br.ticktext,ticks:Br.ticks,mirror:Br.mirror,ticklen:Br.ticklen,tickwidth:Br.tickwidth,tickcolor:Br.tickcolor,showticklabels:Br.showticklabels,labelalias:Br.labelalias,tickfont:Br.tickfont,tickangle:Br.tickangle,tickprefix:Br.tickprefix,showtickprefix:Br.showtickprefix,ticksuffix:Br.ticksuffix,showticksuffix:Br.showticksuffix,showexponent:Br.showexponent,exponentformat:Br.exponentformat,minexponent:Br.minexponent,separatethousands:Br.separatethousands,tickformat:Br.tickformat,tickformatstops:Br.tickformatstops,hoverformat:Br.hoverformat,showline:Br.showline,linecolor:Br.linecolor,linewidth:Br.linewidth,showgrid:Br.showgrid,gridcolor:Kx({},Br.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Br.gridwidth,zeroline:Br.zeroline,zerolinecolor:Br.zerolinecolor,zerolinewidth:Br.zerolinewidth},"plot","from-root")});var t4=xe((D6e,GO)=>{"use strict";var jx=Qx(),vde=Bd().attributes,e4=Rt().extendFlat,hde=rr().counterRegex;function r4(e,r,t){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}GO.exports={_arrayAttrRegexps:[hde("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:e4(r4(0,0,1),{}),center:e4(r4(0,0,0),{}),eye:e4(r4(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:vde({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:jx,yaxis:jx,zaxis:jx,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"}});var XO=xe((R6e,YO)=>{"use strict";var dde=rr(),pde=wt(),gde=Bd().defaults;YO.exports=function(r,t,n,a){var o=a.type,i=a.attributes,l=a.handleDefaults,u=a.partition||"x",s=t._subplots[o],f=s.length,c=f&&s[0].replace(/\d+$/,""),p,x;function g(k,S){return dde.coerce(p,x,i,k,S)}for(var w=0;w<f;w++){var M=s[w];r[M]?p=r[M]:p=r[M]={},x=pde.newContainer(t,M,c),a.noUirevision||g("uirevision",t.uirevision);var m={};m[u]=[w/f,(w+1)/f],gde(x,t,g,m),a.id=M,l(p,x,g,a)}}});var $O=xe((F6e,JO)=>{"use strict";var yde=Xr(),WO=rr(),mde=wt(),bde=Qx(),xde=qb(),_de=cd(),ZO=["xaxis","yaxis","zaxis"],wde=13600/187;JO.exports=function(r,t,n){var a,o;function i(s,f){return WO.coerce(a,o,bde,s,f)}for(var l=0;l<ZO.length;l++){var u=ZO[l];a=r[u]||{},o=mde.newContainer(t,u),o._id=u[0]+n.scene,o._name=u,xde(a,o,i,n),_de(a,o,i,{font:n.font,letter:u[0],data:n.data,showGrid:!0,noAutotickangles:!0,noMinorloglabels:!0,noTicklabelindex:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,noInsiderange:!0,noUnifiedhovertitle:!0,bgColor:n.bgColor,calendar:n.calendar},n.fullLayout),i("gridcolor",yde.mix(o.color,n.bgColor,wde)),i("title.text",u[0]),o.setScale=WO.noop,i("showspikes")&&(i("spikesides"),i("spikethickness"),i("spikecolor",o.color)),i("showaxeslabels"),i("showbackground")&&i("backgroundcolor")}}});var eU=xe((P6e,jO)=>{"use strict";var Mde=rr(),Tde=Xr(),Ade=Cr(),kde=XO(),Sde=$O(),KO=t4(),Cde=Uf().getSubplotData,QO="gl3d";jO.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=Mde.validate(r[i],KO[i]);if(l)return r[i]}}kde(r,t,n,{type:QO,attributes:KO,handleDefaults:Ede,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function Ede(e,r,t,n){for(var a=t("bgcolor"),o=Tde.combine(a,n.paper_bgcolor),i=["up","center","eye"],l=0;l<i.length;l++)t("camera."+i[l]+".x"),t("camera."+i[l]+".y"),t("camera."+i[l]+".z");t("camera.projection.type");var u=!!t("aspectratio.x")&&!!t("aspectratio.y")&&!!t("aspectratio.z"),s=u?"manual":"auto",f=t("aspectmode",s);u||(e.aspectratio=r.aspectratio={x:1,y:1,z:1},f==="manual"&&(r.aspectmode="auto"),e.aspectmode=r.aspectmode);var c=Cde(n.fullData,QO,n.id);Sde(e,r,{font:n.font,scene:n.id,data:c,bgColor:o,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),Ade.getComponentMethod("annotations3d","handleDefaults")(e,r,n);var p=n.getDfltFromLayout("dragmode");if(p!==!1&&!p)if(p="orbit",e.camera&&e.camera.up){var x=e.camera.up.x,g=e.camera.up.y,w=e.camera.up.z;w!==0&&(!x||!g||!w||w/Math.sqrt(x*x+g*g+w*w)>.999)&&(p="turntable")}else p="turntable";t("dragmode",p),t("hovermode",n.getDfltFromLayout("hovermode"))}});var Ol=xe(ha=>{"use strict";var Lde=ea().overrideAll,Dde=ts(),Rde=OO(),Fde=Uf().getSubplotData,Pde=rr(),Ide=hl(),zu="gl3d",n4="scene";ha.name=zu;ha.attr=n4;ha.idRoot=n4;ha.idRegex=ha.attrRegex=Pde.counterRegex("scene");ha.attributes=HO();ha.layoutAttributes=t4();ha.baseLayoutAttrOverrides=Lde({hoverlabel:Dde.hoverlabel},"plot","nested");ha.supplyLayoutDefaults=eU();ha.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[zu],o=0;o<a.length;o++){var i=a[o],l=Fde(n,zu,i),u=t[i],s=u.camera,f=u._scene;f||(f=new Rde({id:i,graphDiv:r,container:r.querySelector(".gl-container"),staticPlot:r._context.staticPlot,plotGlPixelRatio:r._context.plotGlPixelRatio,camera:s},t),u._scene=f),f.viewInitial||(f.viewInitial={up:{x:s.up.x,y:s.up.y,z:s.up.z},eye:{x:s.eye.x,y:s.eye.y,z:s.eye.z},center:{x:s.center.x,y:s.center.y,z:s.center.z}}),f.plot(l,t,r.layout)}};ha.clean=function(e,r,t,n){for(var a=n._subplots[zu]||[],o=0;o<a.length;o++){var i=a[o];!r[i]&&n[i]._scene&&(n[i]._scene.destroy(),n._infolayer&&n._infolayer.selectAll(".annotation-"+i).remove())}};ha.toSVG=function(e){for(var r=e._fullLayout,t=r._subplots[zu],n=r._size,a=0;a<t.length;a++){var o=r[t[a]],i=o.domain,l=o._scene,u=l.toImage("png"),s=r._glimages.append("svg:image");s.attr({xmlns:Ide.svg,"xlink:href":u,x:n.l+n.w*i.x[0],y:n.t+n.h*(1-i.y[1]),width:n.w*(i.x[1]-i.x[0]),height:n.h*(i.y[1]-i.y[0]),preserveAspectRatio:"none"}),l.destroy()}};ha.cleanId=function(r){if(r.match(/^scene[0-9]*$/)){var t=r.slice(5);return t==="1"&&(t=""),n4+t}};ha.updateFx=function(e){for(var r=e._fullLayout,t=r._subplots[zu],n=0;n<t.length;n++){var a=r[t[n]]._scene;a.updateFx(r.dragmode,r.hovermode)}}});var tU=xe((z6e,rU)=>{"use strict";rU.exports={plot:sO(),attributes:Jx(),markerSymbols:Xd(),supplyDefaults:pO(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:yO(),moduleType:"trace",name:"scatter3d",basePlotModule:Ol(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var aU=xe((N6e,nU)=>{"use strict";nU.exports=tU()});var lv=xe((q6e,lU)=>{"use strict";var iU=Xr(),zde=wi(),a4=Ro().axisHoverFormat,{hovertemplateAttrs:Nde,templatefallbackAttrs:qde}=mi(),oU=qn(),i4=Rt().extendFlat,Bde=ea().overrideAll;function o4(e){return{valType:"boolean",dflt:!1}}function l4(e){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:o4("x"),y:o4("y"),z:o4("z")},color:{valType:"color",dflt:iU.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:iU.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var s4=lU.exports=Bde(i4({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:Nde(),hovertemplatefallback:qde(),xhoverformat:a4("x"),yhoverformat:a4("y"),zhoverformat:a4("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},zde("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:l4("x"),y:l4("y"),z:l4("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:i4({},oU.hoverinfo),showlegend:i4({},oU.showlegend,{dflt:!1})}),"calc","nested");s4.x.editType=s4.y.editType=s4.z.editType="calc+clearAxisTypes"});var f4=xe((B6e,fU)=>{"use strict";var Ode=Cr(),sU=rr(),Ude=Qi(),Hde=lv(),u4=.1;function Vde(e,r){for(var t=[],n=32,a=0;a<n;a++){var o=a/(n-1),i=r+(1-r)*(1-Math.pow(Math.sin(e*o*Math.PI),2));t.push([o,Math.max(0,Math.min(1,i))])}return t}function Gde(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t<e.length;t++){var n=e[t];if(n.length!==2||+n[0]<r)return!1;r=+n[0]}return!0}function Yde(e,r,t,n){var a,o;function i(M,m){return sU.coerce(e,r,Hde,M,m)}var l=i("x"),u=i("y"),s=i("z");if(!s||!s.length||l&&l.length<1||u&&u.length<1){r.visible=!1;return}r._xlength=Array.isArray(l)&&sU.isArrayOrTypedArray(l[0])?s.length:s[0].length,r._ylength=s.length;var f=Ode.getComponentMethod("calendars","handleTraceDefaults");f(e,r,["x","y","z"],n),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat"),i("zhoverformat"),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lightposition.x","lightposition.y","lightposition.z","hidesurface","connectgaps","opacity"].forEach(function(M){i(M)});var c=i("surfacecolor"),p=["x","y","z"];for(a=0;a<3;++a){var x="contours."+p[a],g=i(x+".show"),w=i(x+".highlight");if(g||w)for(o=0;o<3;++o)i(x+".project."+p[o]);g&&(i(x+".color"),i(x+".width"),i(x+".usecolormap")),w&&(i(x+".highlightcolor"),i(x+".highlightwidth")),i(x+".start"),i(x+".end"),i(x+".size")}Ude(e,r,n,i,{prefix:"",cLetter:"c"}),uU(e,r,n,i),r._length=null}function uU(e,r,t,n){var a=n("opacityscale");a==="max"?r.opacityscale=[[0,u4],[1,1]]:a==="min"?r.opacityscale=[[0,1],[1,u4]]:a==="extremes"?r.opacityscale=Vde(1,u4):Gde(a)||(r.opacityscale=void 0)}fU.exports={supplyDefaults:Yde,opacityscaleDefaults:uU}});var hU=xe((O6e,vU)=>{"use strict";var cU=pl();vU.exports=function(r,t){t.surfacecolor?cU(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):cU(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var yU=xe((U6e,gU)=>{"use strict";var Xde=rr(),dU=.01,Wde=[[-1,0],[1,0],[0,-1],[0,1]];function Zde(e){return .5-.25*Math.min(1,e*.5)}gU.exports=function(r,t){var n=1,a;for(pU(r,t),a=0;a<t.length&&!(t[a][2]<4);a++);for(t=t.slice(a),a=0;a<100&&n>dU;a++)n=pU(r,t,Zde(n));return n>dU&&Xde.log("interp2d didn't converge quickly",n),r};function pU(e,r,t){var n=0,a,o,i,l,u,s,f,c,p,x,g,w,M;for(l=0;l<r.length;l++){for(a=r[l],o=a[0],i=a[1],g=e[o][i],x=0,p=0,u=0;u<4;u++)s=Wde[u],f=e[o+s[0]],f&&(c=f[i+s[1]],c!==void 0&&(x===0?w=M=c:(w=Math.min(w,c),M=Math.max(M,c)),p++,x+=c));if(p===0)throw"iterateInterp2d order is wrong: no defined neighbors";e[o][i]=x/p,g===void 0?p<4&&(n=1):(e[o][i]=(1+t)*e[o][i]-t*g,M>w&&(n=Math.max(n,Math.abs(e[o][i]-g)/(M-w))))}return n}});var bU=xe((H6e,mU)=>{"use strict";var Jde=rr().maxRowLength;mU.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=Jde(r),s,f,c,p,x,g,w,M;for(f=0;f<r.length;f++)for(s=i,i=o,o=r[f+1]||[],c=0;c<u;c++)i[c]===void 0&&(g=(i[c-1]!==void 0?1:0)+(i[c+1]!==void 0?1:0)+(s[c]!==void 0?1:0)+(o[c]!==void 0?1:0),g?(f===0&&g++,c===0&&g++,f===r.length-1&&g++,c===i.length-1&&g++,g<4&&(n[[f,c]]=[f,c,g]),t.push([f,c,g])):a.push([f,c]));for(;a.length;){for(w={},M=!1,x=a.length-1;x>=0;x--)p=a[x],f=p[0],c=p[1],g=((n[[f-1,c]]||l)[2]+(n[[f+1,c]]||l)[2]+(n[[f,c-1]]||l)[2]+(n[[f,c+1]]||l)[2])/20,g&&(w[p]=[f,c,g],a.splice(x,1),M=!0);if(!M)throw"findEmpties iterated with no new neighbors";for(p in w)n[p]=w[p],t.push(w[p])}return t.sort(function(m,k){return k[2]-m[2]})}});var AU=xe((V6e,TU)=>{"use strict";var $de=kn().gl_surface3d,Nu=kn().ndarray,Kde=kn().ndarray_linear_interpolate.d2,Qde=yU(),jde=bU(),sv=rr().isArrayOrTypedArray,epe=Bl().parseColorScale,xU=Vo(),rpe=ji().extractOpts;function wU(e,r,t){this.scene=e,this.uid=t,this.surface=r,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 Bi=wU.prototype;Bi.getXat=function(e,r,t,n){var a=sv(this.data.x)?sv(this.data.x[0])?this.data.x[r][e]:this.data.x[e]:e;return t===void 0?a:n.d2l(a,0,t)};Bi.getYat=function(e,r,t,n){var a=sv(this.data.y)?sv(this.data.y[0])?this.data.y[r][e]:this.data.y[r]:r;return t===void 0?a:n.d2l(a,0,t)};Bi.getZat=function(e,r,t,n){var a=this.data.z[r][e];return a===null&&this.data.connectgaps&&this.data._interpolatedZ&&(a=this.data._interpolatedZ[r][e]),t===void 0?a:n.d2l(a,0,t)};Bi.handlePick=function(e){if(e.object===this.surface){var r=(e.data.index[0]-1)/this.dataScaleX-1,t=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(r),this.data.z[0].length-1),0),a=Math.max(Math.min(Math.round(t),this.data._ylength-1),0);e.index=[n,a],e.traceCoordinate=[this.getXat(n,a),this.getYat(n,a),this.getZat(n,a)],e.dataCoordinate=[this.getXat(n,a,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,a,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,a,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var o=0;o<3;o++){var i=e.dataCoordinate[o];i!=null&&(e.dataCoordinate[o]*=this.scene.dataScale[o])}var l=this.data.hovertext||this.data.text;return sv(l)&&l[a]&&l[a][n]!==void 0?e.textLabel=l[a][n]:l?e.textLabel=l:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function tpe(e){var r=e[0].rgb,t=e[e.length-1].rgb;return r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2]&&r[3]===t[3]}var qu=[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 npe(e,r){if(e<r)return 0;for(var t=0;Math.floor(e%r)===0;)e/=r,t++;return t}function c4(e){for(var r=[],t=0;t<qu.length;t++){var n=qu[t];r.push(npe(e,n))}return r}function ape(e){for(var r=c4(e),t=e,n=0;n<qu.length;n++)if(r[n]>0){t=qu[n];break}return t}function ipe(e,r){if(!(e<1||r<1)){for(var t=c4(e),n=c4(r),a=1,o=0;o<qu.length;o++)a*=Math.pow(qu[o],Math.max(t[o],n[o]));return a}}function ope(e){if(e.length!==0){for(var r=1,t=0;t<e.length;t++)r=ipe(r,e[t]);return r}}Bi.calcXnums=function(e){var r,t=[];for(r=1;r<e;r++){var n=this.getXat(r-1,0),a=this.getXat(r,0);a!==n&&n!==void 0&&n!==null&&a!==void 0&&a!==null?t[r-1]=Math.abs(a-n):t[r-1]=0}var o=0;for(r=1;r<e;r++)o+=t[r-1];for(r=1;r<e;r++)t[r-1]===0?t[r-1]=1:t[r-1]=Math.round(o/t[r-1]);return t};Bi.calcYnums=function(e){var r,t=[];for(r=1;r<e;r++){var n=this.getYat(0,r-1),a=this.getYat(0,r);a!==n&&n!==void 0&&n!==null&&a!==void 0&&a!==null?t[r-1]=Math.abs(a-n):t[r-1]=0}var o=0;for(r=1;r<e;r++)o+=t[r-1];for(r=1;r<e;r++)t[r-1]===0?t[r-1]=1:t[r-1]=Math.round(o/t[r-1]);return t};var MU=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],_U=MU[9],Qd=MU[13];Bi.estimateScale=function(e,r){for(var t=r===0?this.calcXnums(e):this.calcYnums(e),n=1+ope(t);n<_U;)n*=2;for(;n>Qd;)n--,n/=ape(n),n++,n<_U&&(n=Qd);var a=Math.round(n/e);return a>1?a:1};function lpe(e,r,t){var n=t[8]+t[2]*r[0]+t[5]*r[1];return e[0]=(t[6]+t[0]*r[0]+t[3]*r[1])/n,e[1]=(t[7]+t[1]*r[0]+t[4]*r[1])/n,e}function spe(e,r,t){return upe(e,r,lpe,t),e}function upe(e,r,t,n){for(var a=[0,0],o=e.shape[0],i=e.shape[1],l=0;l<o;l++)for(var u=0;u<i;u++)t(a,[l,u],n),e.set(l,u,Kde(r,a[0],a[1]));return e}Bi.refineCoords=function(e){for(var r=this.dataScaleX,t=this.dataScaleY,n=e[0].shape[0],a=e[0].shape[1],o=Math.floor(e[0].shape[0]*r+1)|0,i=Math.floor(e[0].shape[1]*t+1)|0,l=1+n+1,u=1+a+1,s=Nu(new Float32Array(l*u),[l,u]),f=[1/r,0,0,0,1/t,0,0,0,1],c=0;c<e.length;++c){this.surface.padField(s,e[c]);var p=Nu(new Float32Array(o*i),[o,i]);spe(p,s,f),e[c]=p}};function fpe(e,r){for(var t=!1,n=0;n<e.length;n++)if(r===e[n]){t=!0;break}t===!1&&e.push(r)}Bi.setContourLevels=function(){var e=[[],[],[]],r=[!1,!1,!1],t=!1,n,a,o;for(n=0;n<3;++n)if(this.showContour[n]&&(t=!0,this.contourSize[n]>0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(r[n]=!0,a=this.contourStart[n];a<this.contourEnd[n];a+=this.contourSize[n])o=a*this.scene.dataScale[n],fpe(e[n],o);if(t){var i=[[],[],[]];for(n=0;n<3;++n)this.showContour[n]&&(i[n]=r[n]?e[n]:this.scene.contourLevels[n]);this.surface.update({levels:i})}};Bi.update=function(e){var r=this.scene,t=r.fullSceneLayout,n=this.surface,a=epe(e),o=r.dataScale,i=e.z[0].length,l=e._ylength,u=r.contourLevels;this.data=e;var s,f,c,p,x=[];for(s=0;s<3;s++)for(x[s]=[],f=0;f<i;f++)x[s][f]=[];for(f=0;f<i;f++)for(c=0;c<l;c++)x[0][f][c]=this.getXat(f,c,e.xcalendar,t.xaxis),x[1][f][c]=this.getYat(f,c,e.ycalendar,t.yaxis),x[2][f][c]=this.getZat(f,c,e.zcalendar,t.zaxis);if(e.connectgaps)for(e._emptypoints=jde(x[2]),Qde(x[2],e._emptypoints),e._interpolatedZ=[],f=0;f<i;f++)for(e._interpolatedZ[f]=[],c=0;c<l;c++)e._interpolatedZ[f][c]=x[2][f][c];for(s=0;s<3;s++)for(f=0;f<i;f++)for(c=0;c<l;c++)p=x[s][f][c],p==null?x[s][f][c]=NaN:p=x[s][f][c]*=o[s];for(s=0;s<3;s++)for(f=0;f<i;f++)for(c=0;c<l;c++)p=x[s][f][c],p!=null&&(this.minValues[s]>p&&(this.minValues[s]=p),this.maxValues[s]<p&&(this.maxValues[s]=p));for(s=0;s<3;s++)this.objectOffset[s]=.5*(this.minValues[s]+this.maxValues[s]);for(s=0;s<3;s++)for(f=0;f<i;f++)for(c=0;c<l;c++)p=x[s][f][c],p!=null&&(x[s][f][c]-=this.objectOffset[s]);var g=[Nu(new Float32Array(i*l),[i,l]),Nu(new Float32Array(i*l),[i,l]),Nu(new Float32Array(i*l),[i,l])];for(s=0;s<3;s++)for(f=0;f<i;f++)for(c=0;c<l;c++)g[s].set(f,c,x[s][f][c]);x=[];var w={colormap:a,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!e.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:e.opacityscale,opacity:e.opacity},M=rpe(e);if(w.intensityBounds=[M.min,M.max],e.surfacecolor){var m=Nu(new Float32Array(i*l),[i,l]);for(f=0;f<i;f++)for(c=0;c<l;c++)m.set(f,c,e.surfacecolor[c][f]);g.push(m)}else w.intensityBounds[0]*=o[2],w.intensityBounds[1]*=o[2];(Qd<g[0].shape[0]||Qd<g[0].shape[1])&&(this.refineData=!1),this.refineData===!0&&(this.dataScaleX=this.estimateScale(g[0].shape[0],0),this.dataScaleY=this.estimateScale(g[0].shape[1],1),(this.dataScaleX!==1||this.dataScaleY!==1)&&this.refineCoords(g)),e.surfacecolor&&(w.intensity=g.pop());var k=[!0,!0,!0],S=["x","y","z"];for(s=0;s<3;++s){var b=e.contours[S[s]];k[s]=b.highlight,w.showContour[s]=b.show||b.highlight,w.showContour[s]&&(w.contourProject[s]=[b.project.x,b.project.y,b.project.z],b.show?(this.showContour[s]=!0,w.levels[s]=u[s],n.highlightColor[s]=w.contourColor[s]=xU(b.color),b.usecolormap?n.highlightTint[s]=w.contourTint[s]=0:n.highlightTint[s]=w.contourTint[s]=1,w.contourWidth[s]=b.width,this.contourStart[s]=b.start,this.contourEnd[s]=b.end,this.contourSize[s]=b.size):(this.showContour[s]=!1,this.contourStart[s]=null,this.contourEnd[s]=null,this.contourSize[s]=0),b.highlight&&(w.dynamicColor[s]=xU(b.highlightcolor),w.dynamicWidth[s]=b.highlightwidth))}tpe(a)&&(w.vertexColor=!0),w.objectOffset=this.objectOffset,w.coords=g,n.update(w),n.visible=e.visible,n.enableDynamic=k,n.enableHighlight=k,n.snapToData=!0,"lighting"in e&&(n.ambientLight=e.lighting.ambient,n.diffuseLight=e.lighting.diffuse,n.specularLight=e.lighting.specular,n.roughness=e.lighting.roughness,n.fresnel=e.lighting.fresnel),"lightposition"in e&&(n.lightPosition=[e.lightposition.x,e.lightposition.y,e.lightposition.z])};Bi.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()};function cpe(e,r){var t=e.glplot.gl,n=$de({gl:t}),a=new wU(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}TU.exports=cpe});var SU=xe((G6e,kU)=>{"use strict";kU.exports={attributes:lv(),supplyDefaults:f4().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:hU(),plot:AU(),moduleType:"trace",name:"surface",basePlotModule:Ol(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var EU=xe((Y6e,CU)=>{"use strict";CU.exports=SU()});var Bu=xe((X6e,DU)=>{"use strict";var vpe=wi(),v4=Ro().axisHoverFormat,{hovertemplateAttrs:hpe,templatefallbackAttrs:dpe}=mi(),Ul=lv(),LU=qn(),Hl=Rt().extendFlat;DU.exports=Hl({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:hpe({editType:"calc"}),hovertemplatefallback:dpe({editType:"calc"}),xhoverformat:v4("x"),yhoverformat:v4("y"),zhoverformat:v4("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"}},vpe("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Ul.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:Hl({},Ul.contours.x.show,{}),color:Ul.contours.x.color,width:Ul.contours.x.width,editType:"calc"},lightposition:{x:Hl({},Ul.lightposition.x,{dflt:1e5}),y:Hl({},Ul.lightposition.y,{dflt:1e5}),z:Hl({},Ul.lightposition.z,{dflt:0}),editType:"calc"},lighting:Hl({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},Ul.lighting),hoverinfo:Hl({},LU.hoverinfo,{editType:"calc"}),showlegend:Hl({},LU.showlegend,{dflt:!1})})});var ep=xe((W6e,FU)=>{"use strict";var ppe=wi(),jd=Ro().axisHoverFormat,{hovertemplateAttrs:gpe,templatefallbackAttrs:ype}=mi(),uv=Bu(),RU=qn(),h4=Rt().extendFlat,mpe=ea().overrideAll;function d4(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function p4(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Ou=FU.exports=mpe(h4({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:d4("x"),y:d4("y"),z:d4("z")},caps:{x:p4("x"),y:p4("y"),z:p4("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:gpe(),hovertemplatefallback:ype(),xhoverformat:jd("x"),yhoverformat:jd("y"),zhoverformat:jd("z"),valuehoverformat:jd("value",1),showlegend:h4({},RU.showlegend,{dflt:!1})},ppe("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:uv.opacity,lightposition:uv.lightposition,lighting:uv.lighting,flatshading:uv.flatshading,contour:uv.contour,hoverinfo:h4({},RU.hoverinfo)}),"calc","nested");Ou.flatshading.dflt=!0;Ou.lighting.facenormalsepsilon.dflt=0;Ou.x.editType=Ou.y.editType=Ou.z.editType=Ou.value.editType="calc+clearAxisTypes"});var g4=xe((Z6e,IU)=>{"use strict";var bpe=rr(),xpe=Cr(),_pe=ep(),wpe=Qi();function Mpe(e,r,t,n){function a(o,i){return bpe.coerce(e,r,_pe,o,i)}PU(e,r,t,n,a)}function PU(e,r,t,n,a){var o=a("isomin"),i=a("isomax");i!=null&&o!==void 0&&o!==null&&o>i&&(r.isomin=null,r.isomax=null);var l=a("x"),u=a("y"),s=a("z"),f=a("value");if(!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length){r.visible=!1;return}var c=xpe.getComponentMethod("calendars","handleTraceDefaults");c(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(w){a(w+"hoverformat");var M="caps."+w,m=a(M+".show");m&&a(M+".fill");var k="slices."+w,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var p=a("spaceframe.show");p&&a("spaceframe.fill");var x=a("surface.show");x&&(a("surface.count"),a("surface.fill"),a("surface.pattern"));var g=a("contour.show");g&&(a("contour.color"),a("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(w){a(w)}),wpe(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}IU.exports={supplyDefaults:Mpe,supplyIsoDefaults:PU}});var rp=xe((J6e,NU)=>{"use strict";var m4=rr(),Tpe=pl();function Ape(e,r){r._len=Math.min(r.u.length,r.v.length,r.w.length,r.x.length,r.y.length,r.z.length),r._u=mo(r.u,r._len),r._v=mo(r.v,r._len),r._w=mo(r.w,r._len),r._x=mo(r.x,r._len),r._y=mo(r.y,r._len),r._z=mo(r.z,r._len);var t=zU(r);r._gridFill=t.fill,r._Xs=t.Xs,r._Ys=t.Ys,r._Zs=t.Zs,r._len=t.len;var n=0,a,o,i;r.starts&&(a=mo(r.starts.x||[]),o=mo(r.starts.y||[]),i=mo(r.starts.z||[]),n=Math.min(a.length,o.length,i.length)),r._startsX=a||[],r._startsY=o||[],r._startsZ=i||[];var l=0,u=1/0,s;for(s=0;s<r._len;s++){var f=r._u[s],c=r._v[s],p=r._w[s],x=Math.sqrt(f*f+c*c+p*p);l=Math.max(l,x),u=Math.min(u,x)}for(Tpe(e,r,{vals:[u,l],containerStr:"",cLetter:"c"}),s=0;s<n;s++){var g=a[s];t.xMax=Math.max(t.xMax,g),t.xMin=Math.min(t.xMin,g);var w=o[s];t.yMax=Math.max(t.yMax,w),t.yMin=Math.min(t.yMin,w);var M=i[s];t.zMax=Math.max(t.zMax,M),t.zMin=Math.min(t.zMin,M)}r._slen=n,r._normMax=l,r._xbnds=[t.xMin,t.xMax],r._ybnds=[t.yMin,t.yMax],r._zbnds=[t.zMin,t.zMax]}function zU(e){var r=e._x,t=e._y,n=e._z,a=e._len,o,i,l,u=-1/0,s=1/0,f=-1/0,c=1/0,p=-1/0,x=1/0,g="",w,M,m,k,S,b,T,h,_;for(a&&(k=r[0],b=t[0],h=n[0]),a>1&&(S=r[a-1],T=t[a-1],_=n[a-1]),o=0;o<a;o++)u=Math.max(u,r[o]),s=Math.min(s,r[o]),f=Math.max(f,t[o]),c=Math.min(c,t[o]),p=Math.max(p,n[o]),x=Math.min(x,n[o]),!w&&r[o]!==k&&(w=!0,g+="x"),!M&&t[o]!==b&&(M=!0,g+="y"),!m&&n[o]!==h&&(m=!0,g+="z");w||(g+="x"),M||(g+="y"),m||(g+="z");var y=y4(e._x),v=y4(e._y),A=y4(e._z);g=g.replace("x",(k>S?"-":"+")+"x"),g=g.replace("y",(b>T?"-":"+")+"y"),g=g.replace("z",(h>_?"-":"+")+"z");var d=function(){a=0,y=[],v=[],A=[]};(!a||a<y.length*v.length*A.length)&&d();var D=function(ie){return ie==="x"?r:ie==="y"?t:n},E=function(ie){return ie==="x"?y:ie==="y"?v:A},R=function(ie){return ie[a-1]<ie[0]?-1:1},z=D(g[1]),I=D(g[3]),P=D(g[5]),L=E(g[1]).length,F=E(g[3]).length,B=E(g[5]).length,O=!1,V=function(ie,Q,re){return L*(F*ie+Q)+re},K=R(D(g[1])),j=R(D(g[3])),G=R(D(g[5]));for(o=0;o<B-1;o++){for(i=0;i<F-1;i++){for(l=0;l<L-1;l++){var q=V(o,i,l),J=V(o,i,l+1),te=V(o,i+1,l),Z=V(o+1,i,l);if((!(z[q]*K<z[J]*K)||!(I[q]*j<I[te]*j)||!(P[q]*G<P[Z]*G))&&(O=!0),O)break}if(O)break}if(O)break}return O&&(m4.warn("Encountered arbitrary coordinates! Unable to input data grid."),d()),{xMin:s,yMin:c,zMin:x,xMax:u,yMax:f,zMax:p,Xs:y,Ys:v,Zs:A,len:a,fill:g}}function y4(e){return m4.distinctVals(e).vals}function mo(e,r){if(r===void 0&&(r=e.length),m4.isTypedArray(e))return e.subarray(0,r);for(var t=[],n=0;n<r;n++)t[n]=+e[n];return t}NU.exports={calc:Ape,filter:mo,processGrid:zU}});var b4=xe(($6e,qU)=>{"use strict";var kpe=pl(),Spe=rp().processGrid,tp=rp().filter;qU.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=tp(t.x,t._len),t._y=tp(t.y,t._len),t._z=tp(t.z,t._len),t._value=tp(t.value,t._len);var n=Spe(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;for(var a=1/0,o=-1/0,i=0;i<t._len;i++){var l=t._value[i];a=Math.min(a,l),o=Math.max(o,l)}t._minValues=a,t._maxValues=o,t._vMin=t.isomin===void 0||t.isomin===null?a:t.isomin,t._vMax=t.isomax===void 0||t.isomax===null?o:t.isomax,kpe(r,t,{vals:[t._vMin,t._vMax],containerStr:"",cLetter:"c"})}});var Uu=xe((K6e,BU)=>{"use strict";BU.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i<a;i++)o[i]=[r[i],t[i],n[i]];return o}});var np=xe((Q6e,VU)=>{"use strict";var Cpe=kn().gl_mesh3d,Epe=Bl().parseColorScale,Lpe=rr().isArrayOrTypedArray,Dpe=Vo(),Rpe=ji().extractOpts,OU=Uu(),fv=function(e,r){for(var t=r.length-1;t>0;t--){var n=Math.min(r[t],r[t-1]),a=Math.max(r[t],r[t-1]);if(a>n&&n<e&&e<=a)return{id:t,distRatio:(a-e)/(a-n)}}return{id:0,distRatio:0}};function UU(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var x4=UU.prototype;x4.handlePick=function(e){if(e.object===this.mesh){var r=e.data.index,t=this.data._meshX[r],n=this.data._meshY[r],a=this.data._meshZ[r],o=this.data._Ys.length,i=this.data._Zs.length,l=fv(t,this.data._Xs).id,u=fv(n,this.data._Ys).id,s=fv(a,this.data._Zs).id,f=e.index=s+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return Lpe(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};x4.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=HU(e);function n(u,s,f,c){return s.map(function(p){return u.d2l(p,0,c)*f})}var a=OU(n(t.xaxis,e._meshX,r.dataScale[0],e.xcalendar),n(t.yaxis,e._meshY,r.dataScale[1],e.ycalendar),n(t.zaxis,e._meshZ,r.dataScale[2],e.zcalendar)),o=OU(e._meshI,e._meshJ,e._meshK),i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:Dpe(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=Rpe(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=Epe(e),this.mesh.update(i)};x4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var Fpe=["xyz","xzy","yxz","yzx","zxy","zyx"];function HU(e){e._meshI=[],e._meshJ=[],e._meshK=[];var r=e.surface.show,t=e.spaceframe.show,n=e.surface.fill,a=e.spaceframe.fill,o=!1,i=!1,l=0,u,s,f=e._Xs,c=e._Ys,p=e._Zs,x=f.length,g=c.length,w=p.length,M=Fpe.indexOf(e._gridFill.replace(/-/g,"").replace(/\+/g,"")),m=function(he,me,be){switch(M){case 5:return be+w*me+w*g*he;case 4:return be+w*he+w*x*me;case 3:return me+g*be+g*w*he;case 2:return me+g*he+g*x*be;case 1:return he+x*be+x*w*me;default:return he+x*me+x*g*be}},k=e._minValues,S=e._maxValues,b=e._vMin,T=e._vMax,h,_,y,v;function A(he,me,be){for(var ye=v.length,de=s;de<ye;de++)if(he===h[de]&&me===_[de]&&be===y[de])return de;return-1}function d(){s=u}function D(){h=[],_=[],y=[],v=[],u=0,d()}function E(he,me,be,ye){return h.push(he),_.push(me),y.push(be),v.push(ye),u++,u-1}function R(he,me,be){return e._meshI.push(he),e._meshJ.push(me),e._meshK.push(be),l++,l-1}function z(he,me,be){for(var ye=[],de=0;de<he.length;de++)ye[de]=(he[de]+me[de]+be[de])/3;return ye}function I(he,me,be){for(var ye=[],de=0;de<he.length;de++)ye[de]=he[de]*(1-be)+be*me[de];return ye}var P;function L(he){P=he}function F(he,me){var be=he[0],ye=he[1],de=he[2],_e=z(be,ye,de),Ae=Math.sqrt(1-P),Pe=I(_e,be,Ae),Fe=I(_e,ye,Ae),Ye=I(_e,de,Ae),qe=me[0],Be=me[1],Oe=me[2];return{xyzv:[[be,ye,Fe],[Fe,Pe,be],[ye,de,Ye],[Ye,Fe,ye],[de,be,Pe],[Pe,Ye,de]],abc:[[qe,Be,-1],[-1,-1,qe],[Be,Oe,-1],[-1,-1,Be],[Oe,qe,-1],[-1,-1,Oe]]}}function B(he,me){return he==="all"||he===null?!0:he.indexOf(me)>-1}function O(he,me){return he===null?me:he}function V(he,me,be){d();var ye=[me],de=[be];if(P>=1)ye=[me],de=[be];else if(P>0){var _e=F(me,be);ye=_e.xyzv,de=_e.abc}for(var Ae=0;Ae<ye.length;Ae++){me=ye[Ae],be=de[Ae];for(var Pe=[],Fe=0;Fe<3;Fe++){var Ye=me[Fe][0],qe=me[Fe][1],Be=me[Fe][2],Oe=me[Fe][3],We=be[Fe]>-1?be[Fe]:A(Ye,qe,Be);We>-1?Pe[Fe]=We:Pe[Fe]=E(Ye,qe,Be,O(he,Oe))}R(Pe[0],Pe[1],Pe[2])}}function K(he,me,be){var ye=function(de,_e,Ae){V(he,[me[de],me[_e],me[Ae]],[be[de],be[_e],be[Ae]])};ye(0,1,2),ye(2,3,0)}function j(he,me,be){var ye=function(de,_e,Ae){V(he,[me[de],me[_e],me[Ae]],[be[de],be[_e],be[Ae]])};ye(0,1,2),ye(3,0,1),ye(2,3,0),ye(1,2,3)}function G(he,me,be,ye){var de=he[3];de<be&&(de=be),de>ye&&(de=ye);for(var _e=(he[3]-de)/(he[3]-me[3]+1e-9),Ae=[],Pe=0;Pe<4;Pe++)Ae[Pe]=(1-_e)*he[Pe]+_e*me[Pe];return Ae}function q(he,me,be){return he>=me&&he<=be}function J(he){var me=.001*(T-b);return he>=b-me&&he<=T+me}function te(he){for(var me=[],be=0;be<4;be++){var ye=he[be];me.push([e._x[ye],e._y[ye],e._z[ye],e._value[ye]])}return me}var Z=3;function ie(he,me,be,ye,de,_e){_e||(_e=1),be=[-1,-1,-1];var Ae=!1,Pe=[q(me[0][3],ye,de),q(me[1][3],ye,de),q(me[2][3],ye,de)];if(!Pe[0]&&!Pe[1]&&!Pe[2])return!1;var Fe=function(qe,Be,Oe){return J(Be[0][3])&&J(Be[1][3])&&J(Be[2][3])?(V(qe,Be,Oe),!0):_e<Z?ie(qe,Be,Oe,b,T,++_e):!1};if(Pe[0]&&Pe[1]&&Pe[2])return Fe(he,me,be)||Ae;var Ye=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach(function(qe){if(Pe[qe[0]]&&Pe[qe[1]]&&!Pe[qe[2]]){var Be=me[qe[0]],Oe=me[qe[1]],We=me[qe[2]],Xe=G(We,Be,ye,de),tr=G(We,Oe,ye,de);Ae=Fe(he,[tr,Xe,Be],[-1,-1,be[qe[0]]])||Ae,Ae=Fe(he,[Be,Oe,tr],[be[qe[0]],be[qe[1]],-1])||Ae,Ye=!0}}),Ye||[[0,1,2],[1,2,0],[2,0,1]].forEach(function(qe){if(Pe[qe[0]]&&!Pe[qe[1]]&&!Pe[qe[2]]){var Be=me[qe[0]],Oe=me[qe[1]],We=me[qe[2]],Xe=G(Oe,Be,ye,de),tr=G(We,Be,ye,de);Ae=Fe(he,[tr,Xe,Be],[-1,-1,be[qe[0]]])||Ae,Ye=!0}}),Ae}function Q(he,me,be,ye){var de=!1,_e=te(me),Ae=[q(_e[0][3],be,ye),q(_e[1][3],be,ye),q(_e[2][3],be,ye),q(_e[3][3],be,ye)];if(!Ae[0]&&!Ae[1]&&!Ae[2]&&!Ae[3])return de;if(Ae[0]&&Ae[1]&&Ae[2]&&Ae[3])return i&&(de=j(he,_e,me)||de),de;var Pe=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach(function(Fe){if(Ae[Fe[0]]&&Ae[Fe[1]]&&Ae[Fe[2]]&&!Ae[Fe[3]]){var Ye=_e[Fe[0]],qe=_e[Fe[1]],Be=_e[Fe[2]],Oe=_e[Fe[3]];if(i)de=V(he,[Ye,qe,Be],[me[Fe[0]],me[Fe[1]],me[Fe[2]]])||de;else{var We=G(Oe,Ye,be,ye),Xe=G(Oe,qe,be,ye),tr=G(Oe,Be,be,ye);de=V(null,[We,Xe,tr],[-1,-1,-1])||de}Pe=!0}}),Pe||([[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(Fe){if(Ae[Fe[0]]&&Ae[Fe[1]]&&!Ae[Fe[2]]&&!Ae[Fe[3]]){var Ye=_e[Fe[0]],qe=_e[Fe[1]],Be=_e[Fe[2]],Oe=_e[Fe[3]],We=G(Be,Ye,be,ye),Xe=G(Be,qe,be,ye),tr=G(Oe,qe,be,ye),ir=G(Oe,Ye,be,ye);i?(de=V(he,[Ye,ir,We],[me[Fe[0]],-1,-1])||de,de=V(he,[qe,Xe,tr],[me[Fe[1]],-1,-1])||de):de=K(null,[We,Xe,tr,ir],[-1,-1,-1,-1])||de,Pe=!0}}),Pe)||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach(function(Fe){if(Ae[Fe[0]]&&!Ae[Fe[1]]&&!Ae[Fe[2]]&&!Ae[Fe[3]]){var Ye=_e[Fe[0]],qe=_e[Fe[1]],Be=_e[Fe[2]],Oe=_e[Fe[3]],We=G(qe,Ye,be,ye),Xe=G(Be,Ye,be,ye),tr=G(Oe,Ye,be,ye);i?(de=V(he,[Ye,We,Xe],[me[Fe[0]],-1,-1])||de,de=V(he,[Ye,Xe,tr],[me[Fe[0]],-1,-1])||de,de=V(he,[Ye,tr,We],[me[Fe[0]],-1,-1])||de):de=V(null,[We,Xe,tr],[-1,-1,-1])||de,Pe=!0}}),de}function re(he,me,be,ye,de,_e,Ae,Pe,Fe,Ye,qe){var Be=!1;return o&&(B(he,"A")&&(Be=Q(null,[me,be,ye,_e],Ye,qe)||Be),B(he,"B")&&(Be=Q(null,[be,ye,de,Fe],Ye,qe)||Be),B(he,"C")&&(Be=Q(null,[be,_e,Ae,Fe],Ye,qe)||Be),B(he,"D")&&(Be=Q(null,[ye,_e,Pe,Fe],Ye,qe)||Be),B(he,"E")&&(Be=Q(null,[be,ye,_e,Fe],Ye,qe)||Be)),i&&(Be=Q(he,[be,ye,_e,Fe],Ye,qe)||Be),Be}function ue(he,me,be,ye,de,_e,Ae,Pe){return[Pe[0]===!0?!0:ie(he,te([me,be,ye]),[me,be,ye],_e,Ae),Pe[1]===!0?!0:ie(he,te([ye,de,me]),[ye,de,me],_e,Ae)]}function ee(he,me,be,ye,de,_e,Ae,Pe,Fe){return Pe?ue(he,me,be,de,ye,_e,Ae,Fe):ue(he,be,de,ye,me,_e,Ae,Fe)}function ae(he,me,be,ye,de,_e,Ae){var Pe=!1,Fe,Ye,qe,Be,Oe=function(){Pe=ie(he,[Fe,Ye,qe],[-1,-1,-1],de,_e)||Pe,Pe=ie(he,[qe,Be,Fe],[-1,-1,-1],de,_e)||Pe},We=Ae[0],Xe=Ae[1],tr=Ae[2];return We&&(Fe=I(te([m(me,be-0,ye-0)])[0],te([m(me-1,be-0,ye-0)])[0],We),Ye=I(te([m(me,be-0,ye-1)])[0],te([m(me-1,be-0,ye-1)])[0],We),qe=I(te([m(me,be-1,ye-1)])[0],te([m(me-1,be-1,ye-1)])[0],We),Be=I(te([m(me,be-1,ye-0)])[0],te([m(me-1,be-1,ye-0)])[0],We),Oe()),Xe&&(Fe=I(te([m(me-0,be,ye-0)])[0],te([m(me-0,be-1,ye-0)])[0],Xe),Ye=I(te([m(me-0,be,ye-1)])[0],te([m(me-0,be-1,ye-1)])[0],Xe),qe=I(te([m(me-1,be,ye-1)])[0],te([m(me-1,be-1,ye-1)])[0],Xe),Be=I(te([m(me-1,be,ye-0)])[0],te([m(me-1,be-1,ye-0)])[0],Xe),Oe()),tr&&(Fe=I(te([m(me-0,be-0,ye)])[0],te([m(me-0,be-0,ye-1)])[0],tr),Ye=I(te([m(me-0,be-1,ye)])[0],te([m(me-0,be-1,ye-1)])[0],tr),qe=I(te([m(me-1,be-1,ye)])[0],te([m(me-1,be-1,ye-1)])[0],tr),Be=I(te([m(me-1,be-0,ye)])[0],te([m(me-1,be-0,ye-1)])[0],tr),Oe()),Pe}function ce(he,me,be,ye,de,_e,Ae,Pe,Fe,Ye,qe,Be){var Oe=he;return Be?(o&&he==="even"&&(Oe=null),re(Oe,me,be,ye,de,_e,Ae,Pe,Fe,Ye,qe)):(o&&he==="odd"&&(Oe=null),re(Oe,Fe,Pe,Ae,_e,de,ye,be,me,Ye,qe))}function Te(he,me,be,ye,de){for(var _e=[],Ae=0,Pe=0;Pe<me.length;Pe++)for(var Fe=me[Pe],Ye=1;Ye<w;Ye++)for(var qe=1;qe<g;qe++)_e.push(ee(he,m(Fe,qe-1,Ye-1),m(Fe,qe-1,Ye),m(Fe,qe,Ye-1),m(Fe,qe,Ye),be,ye,(Fe+qe+Ye)%2,de&&de[Ae]?de[Ae]:[])),Ae++;return _e}function ke(he,me,be,ye,de){for(var _e=[],Ae=0,Pe=0;Pe<me.length;Pe++)for(var Fe=me[Pe],Ye=1;Ye<x;Ye++)for(var qe=1;qe<w;qe++)_e.push(ee(he,m(Ye-1,Fe,qe-1),m(Ye,Fe,qe-1),m(Ye-1,Fe,qe),m(Ye,Fe,qe),be,ye,(Ye+Fe+qe)%2,de&&de[Ae]?de[Ae]:[])),Ae++;return _e}function Se(he,me,be,ye,de){for(var _e=[],Ae=0,Pe=0;Pe<me.length;Pe++)for(var Fe=me[Pe],Ye=1;Ye<g;Ye++)for(var qe=1;qe<x;qe++)_e.push(ee(he,m(qe-1,Ye-1,Fe),m(qe-1,Ye,Fe),m(qe,Ye-1,Fe),m(qe,Ye,Fe),be,ye,(qe+Ye+Fe)%2,de&&de[Ae]?de[Ae]:[])),Ae++;return _e}function ge(he,me,be){for(var ye=1;ye<w;ye++)for(var de=1;de<g;de++)for(var _e=1;_e<x;_e++)ce(he,m(_e-1,de-1,ye-1),m(_e-1,de-1,ye),m(_e-1,de,ye-1),m(_e-1,de,ye),m(_e,de-1,ye-1),m(_e,de-1,ye),m(_e,de,ye-1),m(_e,de,ye),me,be,(_e+de+ye)%2)}function Le(he,me,be){i=!0,ge(he,me,be),i=!1}function Ce(he,me,be){o=!0,ge(he,me,be),o=!1}function le(he,me,be,ye,de,_e){for(var Ae=[],Pe=0,Fe=0;Fe<me.length;Fe++)for(var Ye=me[Fe],qe=1;qe<w;qe++)for(var Be=1;Be<g;Be++)Ae.push(ae(he,Ye,Be,qe,be,ye,de[Fe],_e&&_e[Pe]?_e[Pe]:[])),Pe++;return Ae}function Y(he,me,be,ye,de,_e){for(var Ae=[],Pe=0,Fe=0;Fe<me.length;Fe++)for(var Ye=me[Fe],qe=1;qe<x;qe++)for(var Be=1;Be<w;Be++)Ae.push(ae(he,qe,Ye,Be,be,ye,de[Fe],_e&&_e[Pe]?_e[Pe]:[])),Pe++;return Ae}function $(he,me,be,ye,de,_e){for(var Ae=[],Pe=0,Fe=0;Fe<me.length;Fe++)for(var Ye=me[Fe],qe=1;qe<g;qe++)for(var Be=1;Be<x;Be++)Ae.push(ae(he,Be,qe,Ye,be,ye,de[Fe],_e&&_e[Pe]?_e[Pe]:[])),Pe++;return Ae}function pe(he,me){for(var be=[],ye=he;ye<me;ye++)be.push(ye);return be}function oe(){for(var he=0;he<x;he++)for(var me=0;me<g;me++)for(var be=0;be<w;be++){var ye=m(he,me,be);E(e._x[ye],e._y[ye],e._z[ye],e._value[ye])}}function ve(){D(),oe();var he=null;if(t&&a&&(L(a),Le(he,b,T)),r&&n){L(n);for(var me=e.surface.pattern,be=e.surface.count,ye=0;ye<be;ye++){var de=be===1?.5:ye/(be-1),_e=(1-de)*b+de*T,Ae=Math.abs(_e-k),Pe=Math.abs(_e-S),Fe=Ae>Pe?[k,_e]:[_e,S];Ce(me,Fe[0],Fe[1])}}var Ye=[[Math.min(b,S),Math.max(b,S)],[Math.min(k,T),Math.max(k,T)]];["x","y","z"].forEach(function(qe){for(var Be=[],Oe=0;Oe<Ye.length;Oe++){var We=0,Xe=Ye[Oe][0],tr=Ye[Oe][1],ir=e.slices[qe];if(ir.show&&ir.fill){L(ir.fill);var je=[],Ke=[],Ee=[];if(ir.locations.length)for(var ze=0;ze<ir.locations.length;ze++){var Qe=fv(ir.locations[ze],qe==="x"?f:qe==="y"?c:p);Qe.distRatio===0?je.push(Qe.id):Qe.id>0&&(Ke.push(Qe.id),qe==="x"?Ee.push([Qe.distRatio,0,0]):qe==="y"?Ee.push([0,Qe.distRatio,0]):Ee.push([0,0,Qe.distRatio]))}else qe==="x"?je=pe(1,x-1):qe==="y"?je=pe(1,g-1):je=pe(1,w-1);Ke.length>0&&(qe==="x"?Be[We]=le(he,Ke,Xe,tr,Ee,Be[We]):qe==="y"?Be[We]=Y(he,Ke,Xe,tr,Ee,Be[We]):Be[We]=$(he,Ke,Xe,tr,Ee,Be[We]),We++),je.length>0&&(qe==="x"?Be[We]=Te(he,je,Xe,tr,Be[We]):qe==="y"?Be[We]=ke(he,je,Xe,tr,Be[We]):Be[We]=Se(he,je,Xe,tr,Be[We]),We++)}var er=e.caps[qe];er.show&&er.fill&&(L(er.fill),qe==="x"?Be[We]=Te(he,[0,x-1],Xe,tr,Be[We]):qe==="y"?Be[We]=ke(he,[0,g-1],Xe,tr,Be[We]):Be[We]=Se(he,[0,w-1],Xe,tr,Be[We]),We++)}}),l===0&&D(),e._meshX=h,e._meshY=_,e._meshZ=y,e._meshIntensity=v,e._Xs=f,e._Ys=c,e._Zs=p}return ve(),e}function Ppe(e,r){var t=e.glplot.gl,n=Cpe({gl:t}),a=new UU(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}VU.exports={findNearestOnAxis:fv,generateIsoMeshes:HU,createIsosurfaceTrace:Ppe}});var YU=xe((j6e,GU)=>{"use strict";GU.exports={attributes:ep(),supplyDefaults:g4().supplyDefaults,calc:b4(),colorbar:{min:"cmin",max:"cmax"},plot:np().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:Ol(),categories:["gl3d","showLegend"],meta:{}}});var WU=xe((e_e,XU)=>{"use strict";XU.exports=YU()});var w4=xe((r_e,JU)=>{"use strict";var Ipe=wi(),nn=ep(),zpe=lv(),ZU=qn(),_4=Rt().extendFlat,Npe=ea().overrideAll,ap=JU.exports=Npe(_4({x:nn.x,y:nn.y,z:nn.z,value:nn.value,isomin:nn.isomin,isomax:nn.isomax,surface:nn.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:nn.slices,caps:nn.caps,text:nn.text,hovertext:nn.hovertext,xhoverformat:nn.xhoverformat,yhoverformat:nn.yhoverformat,zhoverformat:nn.zhoverformat,valuehoverformat:nn.valuehoverformat,hovertemplate:nn.hovertemplate,hovertemplatefallback:nn.hovertemplatefallback},Ipe("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:nn.colorbar,opacity:nn.opacity,opacityscale:zpe.opacityscale,lightposition:nn.lightposition,lighting:nn.lighting,flatshading:nn.flatshading,contour:nn.contour,hoverinfo:_4({},ZU.hoverinfo),showlegend:_4({},ZU.showlegend,{dflt:!1})}),"calc","nested");ap.x.editType=ap.y.editType=ap.z.editType=ap.value.editType="calc+clearAxisTypes"});var KU=xe((t_e,$U)=>{"use strict";var qpe=rr(),Bpe=w4(),Ope=g4().supplyIsoDefaults,Upe=f4().opacityscaleDefaults;$U.exports=function(r,t,n,a){function o(i,l){return qpe.coerce(r,t,Bpe,i,l)}Ope(r,t,n,a,o),Upe(r,t,a,o)}});var rH=xe((n_e,eH)=>{"use strict";var Hpe=kn().gl_mesh3d,Vpe=Bl().parseColorScale,Gpe=rr().isArrayOrTypedArray,Ype=Vo(),Xpe=ji().extractOpts,QU=Uu(),M4=np().findNearestOnAxis,Wpe=np().generateIsoMeshes;function jU(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var T4=jU.prototype;T4.handlePick=function(e){if(e.object===this.mesh){var r=e.data.index,t=this.data._meshX[r],n=this.data._meshY[r],a=this.data._meshZ[r],o=this.data._Ys.length,i=this.data._Zs.length,l=M4(t,this.data._Xs).id,u=M4(n,this.data._Ys).id,s=M4(a,this.data._Zs).id,f=e.index=s+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return Gpe(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};T4.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=Wpe(e);function n(u,s,f,c){return s.map(function(p){return u.d2l(p,0,c)*f})}var a=QU(n(t.xaxis,e._meshX,r.dataScale[0],e.xcalendar),n(t.yaxis,e._meshY,r.dataScale[1],e.ycalendar),n(t.zaxis,e._meshZ,r.dataScale[2],e.zcalendar)),o=QU(e._meshI,e._meshJ,e._meshK),i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:Ype(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=Xpe(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=Vpe(e),this.mesh.update(i)};T4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Zpe(e,r){var t=e.glplot.gl,n=Hpe({gl:t}),a=new jU(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}eH.exports=Zpe});var nH=xe((a_e,tH)=>{"use strict";tH.exports={attributes:w4(),supplyDefaults:KU(),calc:b4(),colorbar:{min:"cmin",max:"cmax"},plot:rH(),moduleType:"trace",name:"volume",basePlotModule:Ol(),categories:["gl3d","showLegend"],meta:{}}});var iH=xe((i_e,aH)=>{"use strict";aH.exports=nH()});var sH=xe((o_e,lH)=>{"use strict";var Jpe=Cr(),oH=rr(),$pe=Qi(),Kpe=Bu();lH.exports=function(r,t,n,a){function o(f,c){return oH.coerce(r,t,Kpe,f,c)}function i(f){var c=f.map(function(p){var x=o(p);return x&&oH.isArrayOrTypedArray(x)?x:null});return c.every(function(p){return p&&p.length===c[0].length})&&c}var l=i(["x","y","z"]);if(!l){t.visible=!1;return}if(i(["i","j","k"]),t.i&&(!t.j||!t.k)||t.j&&(!t.k||!t.i)||t.k&&(!t.i||!t.j)){t.visible=!1;return}var u=Jpe.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["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(f){o(f)});var s=o("contour.show");s&&(o("contour.color"),o("contour.width")),"intensity"in r?(o("intensity"),o("intensitymode"),$pe(r,t,a,o,{prefix:"",cLetter:"c"})):(t.showscale=!1,"facecolor"in r?o("facecolor"):"vertexcolor"in r?o("vertexcolor"):o("color",n)),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var fH=xe((l_e,uH)=>{"use strict";var Qpe=pl();uH.exports=function(r,t){t.intensity&&Qpe(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var pH=xe((s_e,dH)=>{"use strict";var jpe=kn().gl_mesh3d,ege=kn().delaunay_triangulate,rge=kn().alpha_shape,tge=kn().convex_hull,nge=Bl().parseColorScale,age=rr().isArrayOrTypedArray,C4=Vo(),ige=ji().extractOpts,cH=Uu();function hH(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var E4=hH.prototype;E4.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]];var t=this.data.hovertext||this.data.text;return age(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function vH(e){for(var r=[],t=e.length,n=0;n<t;n++)r[n]=C4(e[n]);return r}function A4(e,r,t,n){for(var a=[],o=r.length,i=0;i<o;i++)a[i]=e.d2l(r[i],0,n)*t;return a}function k4(e){for(var r=[],t=e.length,n=0;n<t;n++)r[n]=Math.round(e[n]);return r}function oge(e,r){for(var t=["x","y","z"].indexOf(e),n=[],a=r.length,o=0;o<a;o++)n[o]=[r[o][(t+1)%3],r[o][(t+2)%3]];return ege(n)}function S4(e,r){for(var t=e.length,n=0;n<t;n++)if(e[n]<=-.5||e[n]>=r-.5)return!1;return!0}E4.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=cH(A4(t.xaxis,e.x,r.dataScale[0],e.xcalendar),A4(t.yaxis,e.y,r.dataScale[1],e.ycalendar),A4(t.zaxis,e.z,r.dataScale[2],e.zcalendar)),o;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!S4(e.i,n)||!S4(e.j,n)||!S4(e.k,n))return;o=cH(k4(e.i),k4(e.j),k4(e.k))}else e.alphahull===0?o=tge(a):e.alphahull>0?o=rge(e.alphahull,a):o=oge(e.delaunayaxis,a);var i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:C4(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=ige(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=nge(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=vH(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=vH(e.facecolor)):(this.color=e.color,i.meshColor=C4(e.color));this.mesh.update(i)};E4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function lge(e,r){var t=e.glplot.gl,n=jpe({gl:t}),a=new hH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}dH.exports=lge});var yH=xe((u_e,gH)=>{"use strict";gH.exports={attributes:Bu(),supplyDefaults:sH(),calc:fH(),colorbar:{min:"cmin",max:"cmax"},plot:pH(),moduleType:"trace",name:"mesh3d",basePlotModule:Ol(),categories:["gl3d","showLegend"],meta:{}}});var bH=xe((f_e,mH)=>{"use strict";mH.exports=yH()});var D4=xe((c_e,_H)=>{"use strict";var sge=wi(),Hu=Ro().axisHoverFormat,{hovertemplateAttrs:uge,templatefallbackAttrs:fge}=mi(),cge=Bu(),xH=qn(),L4=Rt().extendFlat,ip={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:uge({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:fge({editType:"calc"}),uhoverformat:Hu("u",1),vhoverformat:Hu("v",1),whoverformat:Hu("w",1),xhoverformat:Hu("x"),yhoverformat:Hu("y"),zhoverformat:Hu("z"),showlegend:L4({},xH.showlegend,{dflt:!1})};L4(ip,sge("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var vge=["opacity","lightposition","lighting"];vge.forEach(function(e){ip[e]=cge[e]});ip.hoverinfo=L4({},xH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});_H.exports=ip});var MH=xe((v_e,wH)=>{"use strict";var hge=rr(),dge=Qi(),pge=D4();wH.exports=function(r,t,n,a){function o(x,g){return hge.coerce(r,t,pge,x,g)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),c=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!c||!c.length){t.visible=!1;return}var p=o("sizemode");o("sizeref",p==="raw"?1:.5),o("anchor"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),dge(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var AH=xe((h_e,TH)=>{"use strict";var gge=pl();TH.exports=function(r,t){for(var n=t.u,a=t.v,o=t.w,i=Math.min(t.x.length,t.y.length,t.z.length,n.length,a.length,o.length),l=-1/0,u=1/0,s=0;s<i;s++){var f=n[s],c=a[s],p=o[s],x=Math.sqrt(f*f+c*c+p*p);l=Math.max(l,x),u=Math.min(u,x)}t._len=i,t._normMax=l,gge(r,t,{vals:[u,l],containerStr:"",cLetter:"c"})}});var LH=xe((d_e,EH)=>{"use strict";var yge=kn().gl_cone3d,mge=kn().gl_cone3d.createConeMesh,bge=rr().simpleMap,xge=Bl().parseColorScale,_ge=ji().extractOpts,wge=rr().isArrayOrTypedArray,kH=Uu();function SH(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var R4=SH.prototype;R4.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index,t=this.data.x[r],n=this.data.y[r],a=this.data.z[r],o=this.data.u[r],i=this.data.v[r],l=this.data.w[r];e.traceCoordinate=[t,n,a,o,i,l,Math.sqrt(o*o+i*i+l*l)];var u=this.data.hovertext||this.data.text;return wge(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var Mge={xaxis:0,yaxis:1,zaxis:2},Tge={tip:1,tail:0,cm:.25,center:.5},Age={tip:1,tail:1,cm:.75,center:.5};function CH(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,c){var p=t[c],x=n[Mge[c]];return bge(f,function(g){return p.d2l(g)*x})}a.vectors=kH(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=kH(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=_ge(r);a.colormap=xge(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=Tge[r.anchor];var l=r.sizemode;l==="scaled"?a.coneSize=r.sizeref||.5:l==="absolute"?a.coneSize=r.sizeref&&r._normMax?r.sizeref/r._normMax:.5:l==="raw"&&(a.coneSize=r.sizeref),a.coneSizemode=l;var u=yge(a),s=r.lightposition;return u.lightPosition=[s.x,s.y,s.z],u.ambient=r.lighting.ambient,u.diffuse=r.lighting.diffuse,u.specular=r.lighting.specular,u.roughness=r.lighting.roughness,u.fresnel=r.lighting.fresnel,u.opacity=r.opacity,r._pad=Age[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}R4.update=function(e){this.data=e;var r=CH(this.scene,e);this.mesh.update(r)};R4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function kge(e,r){var t=e.glplot.gl,n=CH(e,r),a=mge(t,n),o=new SH(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}EH.exports=kge});var RH=xe((p_e,DH)=>{"use strict";DH.exports={moduleType:"trace",name:"cone",basePlotModule:Ol(),categories:["gl3d","showLegend"],attributes:D4(),supplyDefaults:MH(),colorbar:{min:"cmin",max:"cmax"},calc:AH(),plot:LH(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var PH=xe((g_e,FH)=>{"use strict";FH.exports=RH()});var P4=xe((y_e,zH)=>{"use strict";var Sge=wi(),Vu=Ro().axisHoverFormat,{hovertemplateAttrs:Cge,templatefallbackAttrs:Ege}=mi(),Lge=Bu(),IH=qn(),F4=Rt().extendFlat,op={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:Cge({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:Ege({editType:"calc"}),uhoverformat:Vu("u",1),vhoverformat:Vu("v",1),whoverformat:Vu("w",1),xhoverformat:Vu("x"),yhoverformat:Vu("y"),zhoverformat:Vu("z"),showlegend:F4({},IH.showlegend,{dflt:!1})};F4(op,Sge("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Dge=["opacity","lightposition","lighting"];Dge.forEach(function(e){op[e]=Lge[e]});op.hoverinfo=F4({},IH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});zH.exports=op});var qH=xe((m_e,NH)=>{"use strict";var Rge=rr(),Fge=Qi(),Pge=P4();NH.exports=function(r,t,n,a){function o(p,x){return Rge.coerce(r,t,Pge,p,x)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),c=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!c||!c.length){t.visible=!1;return}o("starts.x"),o("starts.y"),o("starts.z"),o("maxdisplayed"),o("sizeref"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),Fge(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var XH=xe((b_e,YH)=>{"use strict";var UH=kn().gl_streamtube3d,Ige=UH.createTubeMesh,zge=rr(),Nge=Bl().parseColorScale,qge=ji().extractOpts,BH=Uu(),HH={xaxis:0,yaxis:1,zaxis:2};function VH(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var z4=VH.prototype;z4.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[HH[l]];return u.l2c(i)/s}if(e.object===this.mesh){var a=e.data.position,o=e.data.velocity;return e.traceCoordinate=[n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),n(o[0],"xaxis"),n(o[1],"yaxis"),n(o[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function OH(e){var r=e.length,t;return r>2?t=e.slice(1,r-1):r===2?t=[(e[0]+e[1])/2]:t=e,t}function I4(e){var r=e.length;return r===1?[.5,.5]:[e[1]-e[0],e[r-1]-e[r-2]]}function GH(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(D,E){var R=t[E],z=n[HH[E]];return zge.simpleMap(D,function(I){return R.d2l(I)*z})}if(o.vectors=BH(i(r._u,"xaxis"),i(r._v,"yaxis"),i(r._w,"zaxis"),a),!a)return{positions:[],cells:[]};var l=i(r._Xs,"xaxis"),u=i(r._Ys,"yaxis"),s=i(r._Zs,"zaxis");o.meshgrid=[l,u,s],o.gridFill=r._gridFill;var f=r._slen;if(f)o.startingPositions=BH(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var c=u[0],p=OH(l),x=OH(s),g=new Array(p.length*x.length),w=0,M=0;M<p.length;M++)for(var m=0;m<x.length;m++)g[w++]=[p[M],c,x[m]];o.startingPositions=g}o.colormap=Nge(r),o.tubeSize=r.sizeref,o.maxLength=r.maxdisplayed;var k=i(r._xbnds,"xaxis"),S=i(r._ybnds,"yaxis"),b=i(r._zbnds,"zaxis"),T=I4(l),h=I4(u),_=I4(s),y=[[k[0]-T[0],S[0]-h[0],b[0]-_[0]],[k[1]+T[1],S[1]+h[1],b[1]+_[1]]],v=UH(o,y),A=qge(r);v.vertexIntensityBounds=[A.min/r._normMax,A.max/r._normMax];var d=r.lightposition;return v.lightPosition=[d.x,d.y,d.z],v.ambient=r.lighting.ambient,v.diffuse=r.lighting.diffuse,v.specular=r.lighting.specular,v.roughness=r.lighting.roughness,v.fresnel=r.lighting.fresnel,v.opacity=r.opacity,r._pad=v.tubeScale*r.sizeref*2,v}z4.update=function(e){this.data=e;var r=GH(this.scene,e);this.mesh.update(r)};z4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Bge(e,r){var t=e.glplot.gl,n=GH(e,r),a=Ige(t,n),o=new VH(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}YH.exports=Bge});var ZH=xe((x_e,WH)=>{"use strict";WH.exports={moduleType:"trace",name:"streamtube",basePlotModule:Ol(),categories:["gl3d","showLegend"],attributes:P4(),supplyDefaults:qH(),colorbar:{min:"cmin",max:"cmax"},calc:rp().calc,plot:XH(),eventData:function(e,r){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=r.traceCoordinate[3],e.tubev=r.traceCoordinate[4],e.tubew=r.traceCoordinate[5],e.norm=r.traceCoordinate[6],e.divergence=r.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var $H=xe((__e,JH)=>{"use strict";JH.exports=ZH()});var Yn=xe((w_e,QH)=>{"use strict";var KH=Object.getOwnPropertySymbols,Oge=Object.prototype.hasOwnProperty,Uge=Object.prototype.propertyIsEnumerable;function Hge(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Vge(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}QH.exports=Vge()?Object.assign:function(e,r){for(var t,n=Hge(e),a,o=1;o<arguments.length;o++){t=Object(arguments[o]);for(var i in t)Oge.call(t,i)&&(n[i]=t[i]);if(KH){a=KH(t);for(var l=0;l<a.length;l++)Uge.call(t,a[l])&&(n[a[l]]=t[a[l]])}}return n}});var Xn=xe((M_e,eV)=>{var sp=Yn();function jH(){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={}}sp(jH.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var o=t%10;n=(o===0?"":e[o]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function N4(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function lp(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}sp(N4.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Zr.local.differentCalendars||Zr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+lp(Math.abs(this.year()),4)+"-"+lp(this.month(),2)+"-"+lp(this.day(),2)}});function q4(){this.shortYearCutoff="+10"}sp(q4.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new N4(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Zr.local.invalidYear||Zr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Zr.local.invalidYear||Zr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+lp(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zr.local.invalidYear||Zr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Zr.local.invalidMonth||Zr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Zr.local.invalidMonth||Zr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Zr.local.invalidYear||Zr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var o=e.year()+(t==="y"?r:0),i=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;i<f.minMonth;)o--,i+=f.monthsInYear(o);for(var c=f.monthsInYear(o);i>c-1+f.minMonth;)o++,i-=c,c=f.monthsInYear(o)};t==="y"?(e.month()!==this.fromMonthOfYear(o,i)&&(i=this.newDate(o,e.month(),this.minDay).monthOfYear()),i=Math.min(i,this.monthsInYear(o)),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i))));var u=[o,this.fromMonthOfYear(o,i),a];return this._validateLevel--,u}catch(s){throw this._validateLevel--,s}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],o=t<0?-1:1;r=this._add(e,t*a[0]+o*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),o=t==="d"?r:e.day();return(t==="y"||t==="m")&&(o=Math.min(o,this.daysInMonth(n,a))),e.date(n,a,o)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth<this.monthsInYear(a)&&t>=this.minDay&&t-this.minDay<this.daysInMonth(a)}return this._validateLevel--,n},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate);return Zr.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(e){return this.fromJD(Zr.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,n){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(Zr.local.differentCalendars||Zr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,e.calendar().local.name);return e}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(e,r,t))throw n.replace(/\{0\}/,this.local.name);var a=this.newDate(e,r,t);return this._validateLevel--,a}catch(o){throw this._validateLevel--,o}}});function B4(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}B4.prototype=new q4;sp(B4.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Zr.local.invalidYear||Zr.regionalOptions[""].invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===0&&(t%100!==0||t%400===0)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Zr.local.invalidMonth||Zr.regionalOptions[""].invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate);e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<3&&(r+=12,e--);var a=Math.floor(e/100),o=2-a+Math.floor(a/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t+o-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=Math.floor((r-186721625e-2)/36524.25);t=r+1+t-Math.floor(t/4);var n=t+1524,a=Math.floor((n-122.1)/365.25),o=Math.floor(365.25*a),i=Math.floor((n-o)/30.6001),l=n-o-Math.floor(i*30.6001),u=i-(i>13.5?13:1),s=a-(u>2.5?4716:4715);return s<=0&&s--,this.newDate(s,u,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Zr.local.invalidDate||Zr.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Zr=eV.exports=new jH;Zr.cdate=N4;Zr.baseCalendar=q4;Zr.calendars.gregorian=B4});var rV=xe(()=>{var O4=Yn(),Sn=Xn();O4(Sn.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"});Sn.local=Sn.regionalOptions[""];O4(Sn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});O4(Sn.baseCalendar.prototype,{UNIX_EPOCH:Sn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Sn.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Sn.local.invalidFormat||Sn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,o=t.monthNumbers||this.local.monthNumbers,i=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,u=t.calculateWeek||this.local.calculateWeek,s=function(b,T){for(var h=1;S+h<e.length&&e.charAt(S+h)===b;)h++;return S+=h-1,Math.floor(h/(T||1))>1},f=function(b,T,h,_){var y=""+T;if(s(b,_))for(;y.length<h;)y="0"+y;return y},c=function(b,T,h,_){return s(b)?_[T]:h[T]},p=this,x=function(b){return typeof o=="function"?o.call(p,b,s("m")):M(f("m",b.month(),2))},g=function(b,T){return T?typeof l=="function"?l.call(p,b):l[b.month()-p.minMonth]:typeof i=="function"?i.call(p,b):i[b.month()-p.minMonth]},w=this.local.digits,M=function(b){return t.localNumbers&&w?w(b):b},m="",k=!1,S=0;S<e.length;S++)if(k)e.charAt(S)==="'"&&!s("'")?k=!1:m+=e.charAt(S);else switch(e.charAt(S)){case"d":m+=M(f("d",r.day(),2));break;case"D":m+=c("D",r.dayOfWeek(),n,a);break;case"o":m+=f("o",r.dayOfYear(),3);break;case"w":m+=f("w",r.weekOfYear(),2);break;case"m":m+=x(r);break;case"M":m+=g(r,s("M"));break;case"y":m+=s("y",2)?r.year():(r.year()%100<10?"0":"")+r.year()%100;break;case"Y":s("Y",2),m+=r.formatYear();break;case"J":m+=r.toJD();break;case"@":m+=(r.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":m+=(r.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":s("'")?m+="'":k=!0;break;default:m+=e.charAt(S)}return m},parseDate:function(e,r,t){if(r==null)throw Sn.local.invalidArguments||Sn.regionalOptions[""].invalidArguments;if(r=typeof r=="object"?r.toString():r+"",r==="")return null;e=e||this.local.dateFormat,t=t||{};var n=t.shortYearCutoff||this.shortYearCutoff;n=typeof n!="string"?n:this.today().year()%100+parseInt(n,10);for(var a=t.dayNamesShort||this.local.dayNamesShort,o=t.dayNames||this.local.dayNames,i=t.parseMonth||this.local.parseMonth,l=t.monthNumbers||this.local.monthNumbers,u=t.monthNamesShort||this.local.monthNamesShort,s=t.monthNames||this.local.monthNames,f=-1,c=-1,p=-1,x=-1,g=-1,w=!1,M=!1,m=function(D,E){for(var R=1;v+R<e.length&&e.charAt(v+R)===D;)R++;return v+=R-1,Math.floor(R/(E||1))>1},k=function(D,E){var R=m(D,E),z=[2,3,R?4:2,R?4:2,10,11,20]["oyYJ@!".indexOf(D)+1],I=new RegExp("^-?\\d{1,"+z+"}"),P=r.substring(y).match(I);if(!P)throw(Sn.local.missingNumberAt||Sn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,y);return y+=P[0].length,parseInt(P[0],10)},S=this,b=function(){if(typeof l=="function"){m("m");var D=l.call(S,r.substring(y));return y+=D.length,D}return k("m")},T=function(D,E,R,z){for(var I=m(D,z)?R:E,P=0;P<I.length;P++)if(r.substr(y,I[P].length).toLowerCase()===I[P].toLowerCase())return y+=I[P].length,P+S.minMonth;throw(Sn.local.unknownNameAt||Sn.regionalOptions[""].unknownNameAt).replace(/\{0\}/,y)},h=function(){if(typeof s=="function"){var D=m("M")?s.call(S,r.substring(y)):u.call(S,r.substring(y));return y+=D.length,D}return T("M",u,s)},_=function(){if(r.charAt(y)!==e.charAt(v))throw(Sn.local.unexpectedLiteralAt||Sn.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,y);y++},y=0,v=0;v<e.length;v++)if(M)e.charAt(v)==="'"&&!m("'")?M=!1:_();else switch(e.charAt(v)){case"d":x=k("d");break;case"D":T("D",a,o);break;case"o":g=k("o");break;case"w":k("w");break;case"m":p=b();break;case"M":p=h();break;case"y":var A=v;w=!m("y",2),v=A,c=k("y",2);break;case"Y":c=k("Y",2);break;case"J":f=k("J")+.5,r.charAt(y)==="."&&(y++,k("J"));break;case"@":f=k("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=k("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":y=r.length;break;case"'":m("'")?_():M=!0;break;default:_()}if(y<r.length)throw Sn.local.unexpectedText||Sn.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&w&&(c+=n===-1?1900:this.today().year()-this.today().year()%100-(c<=n?0:100)),typeof p=="string"&&(p=i.call(this,c,p)),g>-1){p=1,x=g;for(var d=this.daysInMonth(c,p);x>d;d=this.daysInMonth(c,p))p++,x-=d}return f>-1?this.fromJD(f):this.newDate(c,p,x)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var o=this,i=function(l){try{return o.parseDate(n,l,a)}catch(c){}l=l.toLowerCase();for(var u=(l.match(/^c/)&&t?t.newDate():null)||o.today(),s=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=s.exec(l);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=s.exec(l);return u};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?i(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:o.today().add(e,"d"):o.newDate(e),e}})});var tV=xe(()=>{var Vl=Xn(),Gge=Yn(),U4=Vl.instance();function up(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}up.prototype=new Vl.baseCalendar;Gge(up.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(Xge);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),o=""+this.toChineseMonth(n,a);return r&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(n,a)&&(o+="i"),o},monthNames:function(e){if(typeof e=="string"){var r=e.match(Wge);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(Zge);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var o=this.toMonthIndex(e,t,n);return o},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw Vl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o;return n?!t&&r<=n?o=r-1:o=r:o=r-1,o},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw Vl.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r<t?a=r+1:a=r:a=r+1,a},intercalaryMonth:function(e){e=this._validateYear(e);var r=Gl[e-Gl[0]],t=r>>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,Vl.local.invalidyear),a=Yl[n-Yl[0]],o=a>>9&4095,i=a>>5&15,l=a&31,u;u=U4.newDate(o,i,l),u.add(4-(u.dayOfWeek()||7),"d");var s=this.toJD(e,r,t)-u.toJD();return 1+Math.floor(s/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Gl[e-Gl[0]],n=t>>13,a=n?12:11;if(r>a)throw Vl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o=t&1<<12-r?30:29;return o},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,o,t,Vl.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),o=this.toChineseMonth(e,r),i=$ge(e,o,t,a);return U4.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=U4.fromJD(e),t=Jge(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(Yge),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],o=this.toMonthIndex(t,n,a),i=+r[4];return this.newDate(t,o,i)},add:function(e,r,t){var n=e.year(),a=e.month(),o=this.isIntercalaryMonth(n,a),i=this.toChineseMonth(n,a),l=Object.getPrototypeOf(up.prototype).add.call(this,e,r,t);if(t==="y"){var u=l.year(),s=l.month(),f=this.isIntercalaryMonth(u,i),c=o&&f?this.toMonthIndex(u,i,!0):this.toMonthIndex(u,i,!1);c!==s&&l.month(c)}return l}});var Yge=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Xge=/^\d?\d[iI]?/m,Wge=/^闰?十?[一二三四五六七八九]?月/m,Zge=/^闰?十?[一二三四五六七八九]?/m;Vl.calendars.chinese=up;var Gl=[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],Yl=[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 Jge(e,r,t,n){var a,o;if(typeof e=="object")a=e,o=r||{};else{var i=typeof e=="number"&&e>=1888&&e<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=31;if(!u)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},o=n||{}}var s=Yl[a.year-Yl[0]],f=a.year<<9|a.month<<5|a.day;o.year=f>=s?a.year:a.year-1,s=Yl[o.year-Yl[0]];var c=s>>9&4095,p=s>>5&15,x=s&31,g,w=new Date(c,p-1,x),M=new Date(a.year,a.month-1,a.day);g=Math.round((M-w)/(24*3600*1e3));var m=Gl[o.year-Gl[0]],k;for(k=0;k<13;k++){var S=m&1<<12-k?30:29;if(g<S)break;g-=S}var b=m>>13;return!b||k<b?(o.isIntercalary=!1,o.month=1+k):k===b?(o.isIntercalary=!0,o.month=k):(o.isIntercalary=!1,o.month=k),o.day=1+g,o}function $ge(e,r,t,n,a){var o,i;if(typeof e=="object")i=e,o=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var u=typeof r=="number"&&r>=1&&r<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=30;if(!s)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,o=n):(f=!!n,o=a||{}),i={year:e,month:r,day:t,isIntercalary:f}}var c;c=i.day-1;var p=Gl[i.year-Gl[0]],x=p>>13,g;x&&(i.month>x||i.isIntercalary)?g=i.month:g=i.month-1;for(var w=0;w<g;w++){var M=p&1<<12-w?30:29;c+=M}var m=Yl[i.year-Yl[0]],k=m>>9&4095,S=m>>5&15,b=m&31,T=new Date(k,S-1,b+c);return o.year=T.getFullYear(),o.month=1+T.getMonth(),o.day=T.getDate(),o}});var nV=xe(()=>{var r0=Xn(),Kge=Yn();function H4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H4.prototype=new r0.baseCalendar;Kge(H4.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,r0.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,r0.local.invalidYear||r0.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,r0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,r0.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});r0.calendars.coptic=H4});var aV=xe(()=>{var Xo=Xn(),Qge=Yn();function V4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V4.prototype=new Xo.baseCalendar;Qge(V4.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xo.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xo.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xo.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xo.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Xo.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Xo.local.invalidDate);return{century:jge[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,Xo.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var jge={20:"Fruitbat",21:"Anchovy"};Xo.calendars.discworld=V4});var iV=xe(()=>{var t0=Xn(),e3e=Yn();function G4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G4.prototype=new t0.baseCalendar;e3e(G4.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,t0.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,t0.local.invalidYear||t0.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,t0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,t0.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});t0.calendars.ethiopian=G4});var oV=xe(()=>{var Xl=Xn(),r3e=Yn();function Y4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y4.prototype=new Xl.baseCalendar;r3e(Y4.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,Xl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,fp(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Xl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Xl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&fp(this.daysInYear(e),10)===5?30:r===9&&fp(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Xl.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,Xl.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var i=7;i<=this.monthsInYear(e);i++)o+=this.daysInMonth(e,i);for(var i=1;i<r;i++)o+=this.daysInMonth(e,i)}else for(var i=7;i<r;i++)o+=this.daysInMonth(e,i);return o},_delay1:function(e){var r=Math.floor((235*e-234)/19),t=12084+13753*r,n=r*29+Math.floor(t/25920);return fp(3*(n+1),7)<3&&n++,n},_delay2:function(e){var r=this._delay1(e-1),t=this._delay1(e),n=this._delay1(e+1);return n-t===356?2:t-r===382?1:0},fromJD:function(e){e=Math.floor(e)+.5;for(var r=Math.floor((e-this.jdEpoch)*98496/35975351)-1;e>=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=e<this.toJD(r,1,1)?7:1;e>this.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function fp(e,r){return e-r*Math.floor(e/r)}Xl.calendars.hebrew=Y4});var lV=xe(()=>{var cv=Xn(),t3e=Yn();function X4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X4.prototype=new cv.baseCalendar;t3e(X4.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cv.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,cv.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});cv.calendars.islamic=X4});var sV=xe(()=>{var vv=Xn(),n3e=Yn();function W4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W4.prototype=new vv.baseCalendar;n3e(W4.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,vv.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,vv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,vv.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),o=Math.floor((t-a)/30.6001),i=o-Math.floor(o<14?1:13),l=n-Math.floor(i>2?4716:4715),u=t-a-Math.floor(30.6001*o);return l<=0&&l--,this.newDate(l,i,u)}});vv.calendars.julian=W4});var fV=xe(()=>{var vi=Xn(),a3e=Yn();function J4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J4.prototype=new vi.baseCalendar;a3e(J4.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,vi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,vi.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t<e.length;t++){var n=parseInt(e[t],10);if(Math.abs(n)>19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,vi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,vi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,vi.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,vi.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,vi.local.invalidDate),a=n.toJD(),o=this._toHaab(a),i=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[i[0]-1],tzolkinDay:i[0],tzolkinTrecena:i[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=Z4(e+8+340,365);return[Math.floor(r/20)+1,Z4(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[uV(e+20,20),uV(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,vi.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function Z4(e,r){return e-r*Math.floor(e/r)}function uV(e,r){return Z4(e-1,r)+1}vi.calendars.mayan=J4});var vV=xe(()=>{var n0=Xn(),i3e=Yn();function $4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}$4.prototype=new n0.baseCalendar;var cV=n0.instance("gregorian");i3e($4.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,n0.local.invalidYear||n0.regionalOptions[""].invalidYear);return cV.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,n0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,n0.local.invalidMonth),a=n.year();a<0&&a++;for(var o=n.day(),i=1;i<n.month();i++)o+=this.daysPerMonth[i-1];return o+cV.toJD(a+1468,3,13)},fromJD:function(e){e=Math.floor(e+.5);for(var r=Math.floor((e-(this.jdEpoch-1))/366);e>=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});n0.calendars.nanakshahi=$4});var hV=xe(()=>{var a0=Xn(),o3e=Yn();function K4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K4.prototype=new a0.baseCalendar;o3e(K4.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,a0.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,a0.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,a0.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=a0.instance(),o=0,i=r,l=e;this._createMissingCalendarData(e);var u=e-(i>9||i===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(o=t,i--);i!==9;)i<=0&&(i=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][i],i--;return r===9?(o+=t-this.NEPALI_CALENDAR_DATA[l][0],o<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=a0.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),o=n+56;this._createMissingCalendarData(o);for(var i=9,l=this.NEPALI_CALENDAR_DATA[o][0],u=this.NEPALI_CALENDAR_DATA[o][i]-l+1;a>u;)i++,i>12&&(i=1,o++),u+=this.NEPALI_CALENDAR_DATA[o][i];var s=this.NEPALI_CALENDAR_DATA[o][i]-(u-a);return this.newDate(o,i,s)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t<e+2;t++)typeof this.NEPALI_CALENDAR_DATA[t]=="undefined"&&(this.NEPALI_CALENDAR_DATA[t]=r)},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]}});a0.calendars.nepali=K4});var dV=xe(()=>{var Gu=Xn(),l3e=Yn();function vp(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function cp(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),o=n-Math.floor(n),i=a-Math.floor(a);return o>i}vp.prototype=new Gu.baseCalendar;l3e(vp.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Gu.local.invalidYear);return cp(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Gu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Gu.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var o=1;o<e;o++)cp(o)&&a++;else if(e<0)for(var o=e;o<0;o++)cp(o)&&a--;return t+(r<=7?(r-1)*31:(r-1)*30+6)+(e>0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,cp(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),o=e-this.toJD(t,a,1)+1;return this.newDate(t,a,o)}});Gu.calendars.persian=vp;Gu.calendars.jalali=vp});var pV=xe(()=>{var i0=Xn(),s3e=Yn(),hp=i0.instance();function Q4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Q4.prototype=new i0.baseCalendar;s3e(Q4.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,i0.local.invalidYear),t=this._t2gYear(r.year());return hp.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,i0.local.invalidYear),a=this._t2gYear(n.year());return hp.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,i0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,i0.local.invalidDate),a=this._t2gYear(n.year());return hp.toJD(a,n.month(),n.day())},fromJD:function(e){var r=hp.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});i0.calendars.taiwan=Q4});var gV=xe(()=>{var o0=Xn(),u3e=Yn(),dp=o0.instance();function j4(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}j4.prototype=new o0.baseCalendar;u3e(j4.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,o0.local.invalidYear),t=this._t2gYear(r.year());return dp.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,o0.local.invalidYear),a=this._t2gYear(n.year());return dp.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,o0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,o0.local.invalidDate),a=this._t2gYear(n.year());return dp.toJD(a,n.month(),n.day())},fromJD:function(e){var r=dp.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});o0.calendars.thai=j4});var yV=xe(()=>{var l0=Xn(),f3e=Yn();function e6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}e6.prototype=new l0.baseCalendar;f3e(e6.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,l0.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,l0.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,o=0;o<Wl.length;o++){if(Wl[o]>n)return Wl[a]-Wl[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,l0.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,o=n.day()+Wl[a-1]-1;return o+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;n<Wl.length&&!(Wl[n]>r);n++)t++;var a=t+15292,o=Math.floor((a-1)/12),i=o+1,l=a-12*o,u=r-Wl[t-1]+1;return this.newDate(i,l,u)},isValid:function(e,r,t){var n=l0.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=l0.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});l0.calendars.ummalqura=e6;var Wl=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var bV=xe((e7e,mV)=>{"use strict";mV.exports=Xn();rV();tV();nV();aV();iV();oV();lV();sV();fV();vV();hV();dV();pV();gV();yV()});var kV=xe((r7e,AV)=>{"use strict";var _V=bV(),hv=rr(),wV=pn(),c3e=wV.EPOCHJD,v3e=wV.ONEDAY,n6={valType:"enumerated",values:hv.sortObjectKeys(_V.calendars),editType:"calc",dflt:"gregorian"},MV=function(e,r,t,n){var a={};return a[t]=n6,hv.coerce(e,r,a,t,n)},h3e=function(e,r,t,n){for(var a=0;a<t.length;a++)MV(e,r,t[a]+"calendar",n.calendar)},d3e={chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},p3e={chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},g3e={chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},pp="##",y3e={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:pp,w:pp,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function m3e(e,r,t){for(var n=Math.floor((r+.05)/v3e)+c3e,a=TV(t).fromJD(n),o=0,i,l,u,s,f;(o=e.indexOf("%",o))!==-1;)i=e.charAt(o+1),i==="0"||i==="-"||i==="_"?(u=3,l=e.charAt(o+2),i==="_"&&(i="-")):(l=i,i="0",u=2),s=y3e[l],s?(s===pp?f=pp:f=a.formatDate(s[i]),e=e.slice(0,o)+f+e.slice(o+u),o+=f.length):o+=u;return e}var xV={};function TV(e){var r=xV[e];return r||(r=xV[e]=_V.instance(e),r)}function dv(e){return hv.extendFlat({},n6,{description:e})}function a6(e){return"Sets the calendar system to use with `"+e+"` date data."}var t6={xcalendar:dv(a6("x"))},bo=hv.extendFlat({},t6,{ycalendar:dv(a6("y"))}),r6=hv.extendFlat({},bo,{zcalendar:dv(a6("z"))}),Yu=dv(["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(" "));AV.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:bo,bar:bo,box:bo,heatmap:bo,contour:bo,histogram:bo,histogram2d:bo,histogram2dcontour:bo,scatter3d:r6,surface:r6,mesh3d:r6,scattergl:bo,ohlc:t6,candlestick:t6},layout:{calendar:dv(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:Yu},yaxis:{calendar:Yu},scene:{xaxis:{calendar:Yu},yaxis:{calendar:Yu},zaxis:{calendar:Yu}},polar:{radialaxis:{calendar:Yu}}}},layoutAttributes:n6,handleDefaults:MV,handleTraceDefaults:h3e,CANONICAL_SUNDAY:p3e,CANONICAL_TICK:d3e,DFLTRANGE:g3e,getCal:TV,worldCalFmt:m3e}});var CV=xe((t7e,SV)=>{"use strict";SV.exports=kV()});var b3e=xe((n7e,LV)=>{var EV=UB();EV.register([aU(),EU(),WU(),iH(),bH(),PH(),$H(),CV()]);LV.exports=EV});return b3e();})();
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
/*!
 * pad-left <https://github.com/jonschlinkert/pad-left>
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT license.
 */
/*!
 * repeat-string <https://github.com/jonschlinkert/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
   *)

object-assign/index.js:
  (*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  *)
*/

window.Plotly = Plotly;
return Plotly;
}));