UNPKG

plotly.js

Version:

The open source javascript graphing library that powers plotly

1,983 lines • 1.76 MB
/**
* plotly.js (gl3d - minified) v4.3.0
* 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 HY=Object.create;var sf=Object.defineProperty,VY=Object.defineProperties,GY=Object.getOwnPropertyDescriptor,YY=Object.getOwnPropertyDescriptors,XY=Object.getOwnPropertyNames,Vv=Object.getOwnPropertySymbols,WY=Object.getPrototypeOf,sg=Object.prototype.hasOwnProperty,J_=Object.prototype.propertyIsEnumerable;var Z_=(e,r,t)=>r in e?sf(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,wt=(e,r)=>{for(var t in r||(r={}))sg.call(r,t)&&Z_(e,t,r[t]);if(Vv)for(var t of Vv(r))J_.call(r,t)&&Z_(e,t,r[t]);return e},Ot=(e,r)=>VY(e,YY(r));var $_=(e,r)=>{var t={};for(var n in e)sg.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&Vv)for(var n of Vv(e))r.indexOf(n)<0&&J_.call(e,n)&&(t[n]=e[n]);return t};var Ut=(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}},Ht=(e,r)=>{for(var t in r)sf(e,t,{get:r[t],enumerable:!0})},K_=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of XY(r))!sg.call(e,a)&&a!==t&&sf(e,a,{get:()=>r[a],enumerable:!(n=GY(r,a))||n.enumerable});return e};var Q_=(e,r,t)=>(t=e!=null?HY(WY(e)):{},K_(r||!e||!e.__esModule?sf(t,"default",{value:e,enumerable:!0}):t,e)),or=e=>K_(sf({},"__esModule",{value:!0}),e);var j_=(e,r,t)=>new Promise((n,a)=>{var o=u=>{try{l(t.next(u))}catch(s){a(s)}},i=u=>{try{l(t.throw(u))}catch(s){a(s)}},l=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,i);l((t=t.apply(e,r)).next())});var uf=xe(e7=>{"use strict";e7.version="4.3.0"});var t7=xe((r7,Gv)=>{(function(r,t,n){t[r]=t[r]||n(),typeof Gv!="undefined"&&Gv.exports&&(Gv.exports=t[r])})("Promise",typeof window!="undefined"?window:r7,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,x,M){return Object.defineProperty(k,S,{value:x,writable:!0,configurable:M!==!1})}}catch(m){r=function(S,x,M){return S[x]=M,S}}n=(function(){var k,S,x;function M(d,w){this.fn=d,this.self=w,this.next=void 0}return{add:function(w,y){x=new M(w,y),S?S.next=x:k=x,S=x,x=void 0},drain:function(){var w=k;for(k=S=t=void 0;w;)w.fn.call(w.self),w=w.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 x,M;try{k===!1?S.reject(m.msg):(k===!0?x=m.msg:x=k.call(void 0,m.msg),x===S.promise?S.reject(TypeError("Promise-chain cycle")):(M=l(x))?M.call(x,S.resolve,S.reject):S.resolve(x))}catch(d){S.reject(d)}}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 x=new b(S);try{k.call(m,function(){f.apply(x,arguments)},function(){c.apply(x,arguments)})}catch(M){c.call(x,M)}}):(S.msg=m,S.state=1,S.chain.length>0&&i(u,S))}catch(x){c.call(new b(S),x)}}}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 g(m,k,S,x){for(var M=0;M<k.length;M++)(function(w){m.resolve(k[w]).then(function(v){S(w,v)},x)})(M)}function b(m){this.def=m,this.triggered=!1}function h(m){this.promise=m,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function _(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 h(this);this.then=function(x,M){var d={success:typeof x=="function"?x:!0,failure:typeof M=="function"?M:!1};return d.promise=new this.constructor(function(y,v){if(typeof y!="function"||typeof v!="function")throw TypeError("Not a function");d.resolve=y,d.reject=v}),k.chain.push(d),k.state!==0&&i(u,k),d.promise},this.catch=function(x){return this.then(void 0,x)};try{m.call(void 0,function(x){f.call(k,x)},function(x){c.call(k,x)})}catch(S){c.call(k,S)}}var T=r({},"constructor",_,!1);return _.prototype=T,r(T,"__NPO__",0,!1),r(_,"resolve",function(k){var S=this;return k&&typeof k=="object"&&k.__NPO__===1?k:new S(function(M,d){if(typeof M!="function"||typeof d!="function")throw TypeError("Not a function");M(k)})}),r(_,"reject",function(k){return new this(function(x,M){if(typeof x!="function"||typeof M!="function")throw TypeError("Not a function");M(k)})}),r(_,"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(M,d){if(typeof M!="function"||typeof d!="function")throw TypeError("Not a function");var w=k.length,y=Array(w),v=0;g(S,k,function(p,D){y[p]=D,++v===w&&M(y)},d)})}),r(_,"race",function(k){var S=this;return a.call(k)!="[object Array]"?S.reject(TypeError("Not an array")):new S(function(M,d){if(typeof M!="function"||typeof d!="function")throw TypeError("Not a function");g(S,k,function(y,v){M(v)},d)})}),_})});var lt=xe((Nbe,Yv)=>{(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,Y,W;if(arguments.length===1){for(;++U<H;)if((W=C[U])!=null&&W>=W){Y=W;break}for(;++U<H;)(W=C[U])!=null&&Y>W&&(Y=W)}else{for(;++U<H;)if((W=N.call(C,C[U],U))!=null&&W>=W){Y=W;break}for(;++U<H;)(W=N.call(C,C[U],U))!=null&&Y>W&&(Y=W)}return Y},e.max=function(C,N){var U=-1,H=C.length,Y,W;if(arguments.length===1){for(;++U<H;)if((W=C[U])!=null&&W>=W){Y=W;break}for(;++U<H;)(W=C[U])!=null&&W>Y&&(Y=W)}else{for(;++U<H;)if((W=N.call(C,C[U],U))!=null&&W>=W){Y=W;break}for(;++U<H;)(W=N.call(C,C[U],U))!=null&&W>Y&&(Y=W)}return Y},e.extent=function(C,N){var U=-1,H=C.length,Y,W,le;if(arguments.length===1){for(;++U<H;)if((W=C[U])!=null&&W>=W){Y=le=W;break}for(;++U<H;)(W=C[U])!=null&&(Y>W&&(Y=W),le<W&&(le=W))}else{for(;++U<H;)if((W=N.call(C,C[U],U))!=null&&W>=W){Y=le=W;break}for(;++U<H;)(W=N.call(C,C[U],U))!=null&&(Y>W&&(Y=W),le<W&&(le=W))}return[Y,le]};function g(C){return C===null?NaN:+C}function b(C){return!isNaN(C)}e.sum=function(C,N){var U=0,H=C.length,Y,W=-1;if(arguments.length===1)for(;++W<H;)b(Y=+C[W])&&(U+=Y);else for(;++W<H;)b(Y=+N.call(C,C[W],W))&&(U+=Y);return U},e.mean=function(C,N){var U=0,H=C.length,Y,W=-1,le=H;if(arguments.length===1)for(;++W<H;)b(Y=g(C[W]))?U+=Y:--le;else for(;++W<H;)b(Y=g(N.call(C,C[W],W)))?U+=Y:--le;if(le)return U/le},e.quantile=function(C,N){var U=(C.length-1)*N+1,H=Math.floor(U),Y=+C[H-1],W=U-H;return W?Y+W*(C[H]-Y):Y},e.median=function(C,N){var U=[],H=C.length,Y,W=-1;if(arguments.length===1)for(;++W<H;)b(Y=g(C[W]))&&U.push(Y);else for(;++W<H;)b(Y=g(N.call(C,C[W],W)))&&U.push(Y);if(U.length)return e.quantile(U.sort(c),.5)},e.variance=function(C,N){var U=C.length,H=0,Y,W,le=0,ne=-1,ce=0;if(arguments.length===1)for(;++ne<U;)b(Y=g(C[ne]))&&(W=Y-H,H+=W/++ce,le+=W*(Y-H));else for(;++ne<U;)b(Y=g(N.call(C,C[ne],ne)))&&(W=Y-H,H+=W/++ce,le+=W*(Y-H));if(ce>1)return le/(ce-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function h(C){return{left:function(N,U,H,Y){for(arguments.length<3&&(H=0),arguments.length<4&&(Y=N.length);H<Y;){var W=H+Y>>>1;C(N[W],U)<0?H=W+1:Y=W}return H},right:function(N,U,H,Y){for(arguments.length<3&&(H=0),arguments.length<4&&(Y=N.length);H<Y;){var W=H+Y>>>1;C(N[W],U)>0?Y=W:H=W+1}return H}}}var _=h(c);e.bisectLeft=_.left,e.bisect=e.bisectRight=_.right,e.bisector=function(C){return h(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,Y,W;H;)W=Math.random()*H--|0,Y=C[H+N],C[H+N]=C[W+N],C[W+N]=Y;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,Y=C[0],W=new Array(U<0?0:U);N<U;)W[N]=[H=Y,Y=C[++N]];return W},e.transpose=function(C){if(!(W=C.length))return[];for(var N=-1,U=e.min(C,T),H=new Array(U);++N<U;)for(var Y=-1,W,le=H[N]=new Array(W);++Y<W;)le[Y]=C[Y][N];return H};function T(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,Y=0,W,le;++H<N;)Y+=C[H].length;for(W=new Array(Y);--N>=0;)for(le=C[N],U=le.length;--U>=0;)W[--Y]=le[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=[],Y=k(m(U)),W=-1,le;if(C*=Y,N*=Y,U*=Y,U<0)for(;(le=C+U*++W)>N;)H.push(le/Y);else for(;(le=C+U*++W)<N;)H.push(le/Y);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 x;if(C instanceof x)C.forEach(function(ne,ce){U.set(ne,ce)});else if(Array.isArray(C)){var H=-1,Y=C.length,W;if(arguments.length===1)for(;++H<Y;)U.set(H,C[H]);else for(;++H<Y;)U.set(N.call(C,W=C[H],H),W)}else for(var le in C)U.set(le,C[le]);return U};function x(){this._=Object.create(null)}var M="__proto__",d="\0";S(x,{has:v,get:function(C){return this._[w(C)]},set:function(C,N){return this._[w(C)]=N},remove:A,keys:p,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 w(C){return(C+="")===M||C[0]===d?d+C:C}function y(C){return(C+="")[0]===d?C.slice(1):C}function v(C){return w(C)in this._}function A(C){return(C=w(C))in this._&&delete this._[C]}function p(){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,Y;function W(ne,ce,_e){if(_e>=N.length)return Y?Y.call(C,ce):H?ce.sort(H):ce;for(var Me=-1,De=ce.length,Fe=N[_e++],Ge,Je,Ie,Ne=new x,Be;++Me<De;)(Be=Ne.get(Ge=Fe(Je=ce[Me])))?Be.push(Je):Ne.set(Ge,[Je]);return ne?(Je=ne(),Ie=function(Ze,$e){Je.set(Ze,W(ne,$e,_e))}):(Je={},Ie=function(Ze,$e){Je[Ze]=W(ne,$e,_e)}),Ne.forEach(Ie),Je}function le(ne,ce){if(ce>=N.length)return ne;var _e=[],Me=U[ce++];return ne.forEach(function(De,Fe){_e.push({key:De,values:le(Fe,ce)})}),Me?_e.sort(function(De,Fe){return Me(De.key,Fe.key)}):_e}return C.map=function(ne,ce){return W(ce,ne,0)},C.entries=function(ne){return le(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 Y=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._[w(C+="")]=!0,C},remove:A,values:p,size:D,empty:E,forEach:function(C){for(var N in this._)C.call(this,y(N))}}),e.behavior={};function I(C){return C}e.rebind=function(C,N){for(var U=1,H=arguments.length,Y;++U<H;)C[Y=arguments[U]]=z(C,N,N[Y]);return C};function z(C,N,U){return function(){var H=U.apply(N,arguments);return H===N?C:H}}function F(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 Y=L[U]+N;if(Y in C)return Y}}var L=["webkit","ms","moz","Moz","o","O"];function P(){}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 x;function H(){for(var Y=N,W=-1,le=Y.length,ne;++W<le;)(ne=Y[W].on)&&ne.apply(this,arguments);return C}return H.on=function(Y,W){var le=U.get(Y),ne;return arguments.length<2?le&&le.on:(le&&(le.on=null,N=N.slice(0,ne=N.indexOf(le)).concat(N.slice(ne+1)),U.remove(Y)),W&&N.push(U.set(Y,{on:W})),C)},H}e.event=null;function G(){e.event.preventDefault()}function J(){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(Y,W){return function(le){try{var ne=le.sourceEvent=e.event;le.target=C,e.event=le,N[le.type].apply(Y,W)}finally{e.event=ne}}},N}e.requote=function(C){return C.replace(V,"\\$&")};var V=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,q={}.__proto__?function(C,N){C.__proto__=N}:function(C,N){for(var U in N)C[U]=N[U]};function Z(C){return q(C,Q),C}var re=function(C,N){return N.querySelector(C)},$=function(C,N){return N.querySelectorAll(C)},ae=function(C,N){var U=C.matches||C[F(C,"matchesSelector")];return ae=function(H,Y){return U.call(H,Y)},ae(C,N)};typeof Sizzle=="function"&&(re=function(C,N){return Sizzle(C,N)[0]||null},$=Sizzle,ae=Sizzle.matchesSelector),e.selection=function(){return e.select(n.documentElement)};var Q=e.selection.prototype=[];Q.select=function(C){var N=[],U,H,Y,W;C=te(C);for(var le=-1,ne=this.length;++le<ne;){N.push(U=[]),U.parentNode=(Y=this[le]).parentNode;for(var ce=-1,_e=Y.length;++ce<_e;)(W=Y[ce])?(U.push(H=C.call(W,W.__data__,ce,le)),H&&"__data__"in W&&(H.__data__=W.__data__)):U.push(null)}return Z(N)};function te(C){return typeof C=="function"?C:function(){return re(C,this)}}Q.selectAll=function(C){var N=[],U,H;C=ue(C);for(var Y=-1,W=this.length;++Y<W;)for(var le=this[Y],ne=-1,ce=le.length;++ne<ce;)(H=le[ne])&&(N.push(U=t(C.call(H,H.__data__,ne,Y))),U.parentNode=H);return Z(N)};function ue(C){return typeof C=="function"?C:function(){return $(C,this)}}var ee="http://www.w3.org/1999/xhtml",ie={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:ie,qualify:function(C){var N=C.indexOf(":"),U=C;return N>=0&&(U=C.slice(0,N))!=="xmlns"&&(C=C.slice(N+1)),ie.hasOwnProperty(U)?{space:ie[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(fe(N,C[N]));return this}return this.each(fe(C,N))};function fe(C,N){C=e.ns.qualify(C);function U(){this.removeAttribute(C)}function H(){this.removeAttributeNS(C.space,C.local)}function Y(){this.setAttribute(C,N)}function W(){this.setAttributeNS(C.space,C.local,N)}function le(){var ce=N.apply(this,arguments);ce==null?this.removeAttribute(C):this.setAttribute(C,ce)}function ne(){var ce=N.apply(this,arguments);ce==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,ce)}return N==null?C.local?H:U:typeof N=="function"?C.local?ne:le:C.local?W:Y}function we(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=ke(C)).length,Y=-1;if(N=U.classList){for(;++Y<H;)if(!N.contains(C[Y]))return!1}else for(N=U.getAttribute("class");++Y<H;)if(!Te(C[Y]).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 Te(C){return new RegExp("(?:^|\\s+)"+e.requote(C)+"(?:\\s+|$)","g")}function ke(C){return(C+"").trim().split(/^|\s+/)}function ge(C,N){C=ke(C).map(Ee);var U=C.length;function H(){for(var W=-1;++W<U;)C[W](this,N)}function Y(){for(var W=-1,le=N.apply(this,arguments);++W<U;)C[W](this,le)}return typeof N=="function"?Y:H}function Ee(C){var N=Te(C);return function(U,H){if(Y=U.classList)return H?Y.add(C):Y.remove(C);var Y=U.getAttribute("class")||"";H?(N.lastIndex=0,N.test(Y)||U.setAttribute("class",we(Y+" "+C))):U.setAttribute("class",we(Y.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(Le(U,C[U],N));return this}if(H<2){var Y=this.node();return o(Y).getComputedStyle(Y,null).getPropertyValue(C)}U=""}return this.each(Le(C,N,U))};function Le(C,N,U){function H(){this.style.removeProperty(C)}function Y(){this.style.setProperty(C,N,U)}function W(){var le=N.apply(this,arguments);le==null?this.style.removeProperty(C):this.style.setProperty(C,le,U)}return N==null?H:typeof N=="function"?W:Y}Q.property=function(C,N){if(arguments.length<2){if(typeof C=="string")return this.node()[C];for(N in C)this.each(se(N,C[N]));return this}return this.each(se(C,N))};function se(C,N){function U(){delete this[C]}function H(){this[C]=N}function Y(){var W=N.apply(this,arguments);W==null?delete this[C]:this[C]=W}return N==null?U:typeof N=="function"?Y: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=X(C),this.select(function(){return this.appendChild(C.apply(this,arguments))})};function X(C){function N(){var H=this.ownerDocument,Y=this.namespaceURI;return Y===ee&&H.documentElement.namespaceURI===ee?H.createElement(C):H.createElementNS(Y,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=X(C),N=te(N),this.select(function(){return this.insertBefore(C.apply(this,arguments),N.apply(this,arguments)||null)})},Q.remove=function(){return this.each(K)};function K(){var C=this.parentNode;C&&C.removeChild(this)}Q.data=function(C,N){var U=-1,H=this.length,Y,W;if(!arguments.length){for(C=new Array(H=(Y=this[0]).length);++U<H;)(W=Y[U])&&(C[U]=W.__data__);return C}function le(Me,De){var Fe,Ge=Me.length,Je=De.length,Ie=Math.min(Ge,Je),Ne=new Array(Je),Be=new Array(Je),Ze=new Array(Ge),$e,He;if(N){var ir=new x,hr=new Array(Ge),gr;for(Fe=-1;++Fe<Ge;)($e=Me[Fe])&&(ir.has(gr=N.call($e,$e.__data__,Fe))?Ze[Fe]=$e:ir.set(gr,$e),hr[Fe]=gr);for(Fe=-1;++Fe<Je;)($e=ir.get(gr=N.call(De,He=De[Fe],Fe)))?$e!==!0&&(Ne[Fe]=$e,$e.__data__=He):Be[Fe]=ye(He),ir.set(gr,!0);for(Fe=-1;++Fe<Ge;)Fe in hr&&ir.get(hr[Fe])!==!0&&(Ze[Fe]=Me[Fe])}else{for(Fe=-1;++Fe<Ie;)$e=Me[Fe],He=De[Fe],$e?($e.__data__=He,Ne[Fe]=$e):Be[Fe]=ye(He);for(;Fe<Je;++Fe)Be[Fe]=ye(De[Fe]);for(;Fe<Ge;++Fe)Ze[Fe]=Me[Fe]}Be.update=Ne,Be.parentNode=Ne.parentNode=Ze.parentNode=Me.parentNode,ne.push(Be),ce.push(Ne),_e.push(Ze)}var ne=me([]),ce=Z([]),_e=Z([]);if(typeof C=="function")for(;++U<H;)le(Y=this[U],C.call(Y,Y.parentNode.__data__,U));else for(;++U<H;)le(Y=this[U],C);return ce.enter=function(){return ne},ce.exit=function(){return _e},ce};function ye(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,Y;typeof C!="function"&&(C=oe(C));for(var W=0,le=this.length;W<le;W++){N.push(U=[]),U.parentNode=(H=this[W]).parentNode;for(var ne=0,ce=H.length;ne<ce;ne++)(Y=H[ne])&&C.call(Y,Y.__data__,ne,W)&&U.push(Y)}return Z(N)};function oe(C){return function(){return ae(this,C)}}Q.order=function(){for(var C=-1,N=this.length;++C<N;)for(var U=this[C],H=U.length-1,Y=U[H],W;--H>=0;)(W=U[H])&&(Y&&Y!==W.nextSibling&&Y.parentNode.insertBefore(W,Y),Y=W);return this},Q.sort=function(C){C=de.apply(this,arguments);for(var N=-1,U=this.length;++N<U;)this[N].sort(C);return this.order()};function de(C){return arguments.length||(C=c),function(N,U){return N&&U?C(N.__data__,U.__data__):!N-!U}}Q.each=function(C){return pe(this,function(N,U,H){C.call(N,N.__data__,U,H)})};function pe(C,N){for(var U=0,H=C.length;U<H;U++)for(var Y=C[U],W=0,le=Y.length,ne;W<le;W++)(ne=Y[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,Y=U.length;H<Y;H++){var W=U[H];if(W)return W}return null},Q.size=function(){var C=0;return pe(this,function(){++C}),C};function me(C){return q(C,Se),C}var Se=[];e.selection.enter=me,e.selection.enter.prototype=Se,Se.append=Q.append,Se.empty=Q.empty,Se.node=Q.node,Se.call=Q.call,Se.size=Q.size,Se.select=function(C){for(var N=[],U,H,Y,W,le,ne=-1,ce=this.length;++ne<ce;){Y=(W=this[ne]).update,N.push(U=[]),U.parentNode=W.parentNode;for(var _e=-1,Me=W.length;++_e<Me;)(le=W[_e])?(U.push(Y[_e]=H=C.call(W.parentNode,le.__data__,_e,ne)),H.__data__=le.__data__):U.push(null)}return Z(N)},Se.insert=function(C,N){return arguments.length<2&&(N=ve(this)),Q.insert.call(this,C,N)};function ve(C){var N,U;return function(H,Y,W){var le=C[W].update,ne=le.length,ce;for(W!=U&&(U=W,N=0),Y>=N&&(N=Y+1);!(ce=le[N])&&++N<ne;);return ce}}e.select=function(C){var N;return typeof C=="string"?(N=[re(C,n)],N.parentNode=n.documentElement):(N=[C],N.parentNode=a(C)),Z([N])},e.selectAll=function(C){var N;return typeof C=="string"?(N=t($(C,n)),N.parentNode=n.documentElement):(N=t(C),N.parentNode=null),Z([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(he(U,C[U],N));return this}if(H<2)return(H=this.node()["__on"+C])&&H._;U=!1}return this.each(he(C,N,U))};function he(C,N,U){var H="__on"+C,Y=C.indexOf("."),W=Ae;Y>0&&(C=C.slice(0,Y));var le=be.get(C);le&&(C=le,W=Re);function ne(){var Me=this[H];Me&&(this.removeEventListener(C,Me,Me.$),delete this[H])}function ce(){var Me=W(N,t(arguments));ne.call(this),this.addEventListener(C,this[H]=Me,Me.$=U),Me._=N}function _e(){var Me=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),De;for(var Fe in this)if(De=Fe.match(Me)){var Ge=this[Fe];this.removeEventListener(De[1],Ge,Ge.$),delete this[Fe]}}return Y?N?ce:ne:N?P:_e}var be=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&be.forEach(function(C){"on"+C in n&&be.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 Re(C,N){var U=Ae(C,N);return function(H){var Y=this,W=H.relatedTarget;(!W||W!==Y&&!(W.compareDocumentPosition(Y)&8))&&U.call(Y,H)}}var Pe,Ye=0;function Ve(C){var N=".dragsuppress-"+ ++Ye,U="click"+N,H=e.select(o(C)).on("touchmove"+N,G).on("dragstart"+N,G).on("selectstart"+N,G);if(Pe==null&&(Pe="onselectstart"in C?!1:F(C.style,"userSelect")),Pe){var Y=a(C).style,W=Y[Pe];Y[Pe]="none"}return function(le){if(H.on(N,null),Pe&&(Y[Pe]=W),le){var ne=function(){H.on(U,null)};H.on(U,function(){G(),ne()},!0),setTimeout(ne,0)}}}e.mouse=function(C){return qe(C,J())};var Ue=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function qe(C,N){N.changedTouches&&(N=N.changedTouches[0]);var U=C.ownerSVGElement||C;if(U.createSVGPoint){var H=U.createSVGPoint();if(Ue<0){var Y=o(C);if(Y.scrollX||Y.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();Ue=!(W.f||W.e),U.remove()}}return Ue?(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 le=C.getBoundingClientRect();return[N.clientX-le.left-C.clientLeft,N.clientY-le.top-C.clientTop]}e.touch=function(C,N,U){if(arguments.length<3&&(U=N,N=J().changedTouches),N){for(var H=0,Y=N.length,W;H<Y;++H)if((W=N[H]).identifier===U)return qe(C,W)}},e.behavior.drag=function(){var C=j(Y,"drag","dragstart","dragend"),N=null,U=W(P,e.mouse,o,"mousemove","mouseup"),H=W(We,e.touch,I,"touchmove","touchend");function Y(){this.on("mousedown.drag",U).on("touchstart.drag",H)}function W(le,ne,ce,_e,Me){return function(){var De=this,Fe=e.event.target.correspondingElement||e.event.target,Ge=De.parentNode,Je=C.of(De,arguments),Ie=0,Ne=le(),Be=".drag"+(Ne==null?"":"-"+Ne),Ze,$e=e.select(ce(Fe)).on(_e+Be,hr).on(Me+Be,gr),He=Ve(Fe),ir=ne(Ge,Ne);N?(Ze=N.apply(De,arguments),Ze=[Ze.x-ir[0],Ze.y-ir[1]]):Ze=[0,0],Je({type:"dragstart"});function hr(){var pr=ne(Ge,Ne),br,xr;pr&&(br=pr[0]-ir[0],xr=pr[1]-ir[1],Ie|=br|xr,ir=pr,Je({type:"drag",x:pr[0]+Ze[0],y:pr[1]+Ze[1],dx:br,dy:xr}))}function gr(){ne(Ge,Ne)&&($e.on(_e+Be,null).on(Me+Be,null),He(Ie),Je({type:"dragend"}))}}}return Y.origin=function(le){return arguments.length?(N=le,Y):N},e.rebind(Y,C,"on")};function We(){return e.event.changedTouches[0].identifier}e.touches=function(C,N){return arguments.length<2&&(N=J().touches),N?t(N).map(function(U){var H=qe(C,U);return H.identifier=U.identifier,H}):[]};var Xe=1e-6,er=Xe*Xe,nr=Math.PI,rr=2*nr,Qe=rr-Xe,Ce=nr/2,ze=nr/180,Ke=180/nr;function je(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 Xr(C){return C>1?0:C<-1?nr:Math.acos(C)}function Tr(C){return C>1?Ce:C<-1?-Ce:Math.asin(C)}function Pr(C){return((C=Math.exp(C))-1/C)/2}function at(C){return((C=Math.exp(C))+1/C)/2}function Ar(C){return((C=Math.exp(2*C))-1)/(C+1)}function Hr(C){return(C=Math.sin(C/2))*C}var ot=Math.SQRT2,Ir=2,Jr=4;e.interpolateZoom=function(C,N){var U=C[0],H=C[1],Y=C[2],W=N[0],le=N[1],ne=N[2],ce=W-U,_e=le-H,Me=ce*ce+_e*_e,De,Fe;if(Me<er)Fe=Math.log(ne/Y)/ot,De=function(Ze){return[U+Ze*ce,H+Ze*_e,Y*Math.exp(ot*Ze*Fe)]};else{var Ge=Math.sqrt(Me),Je=(ne*ne-Y*Y+Jr*Me)/(2*Y*Ir*Ge),Ie=(ne*ne-Y*Y-Jr*Me)/(2*ne*Ir*Ge),Ne=Math.log(Math.sqrt(Je*Je+1)-Je),Be=Math.log(Math.sqrt(Ie*Ie+1)-Ie);Fe=(Be-Ne)/ot,De=function(Ze){var $e=Ze*Fe,He=at(Ne),ir=Y/(Ir*Ge)*(He*Ar(ot*$e+Ne)-Pr(Ne));return[U+ir*ce,H+ir*_e,Y*He/at(ot*$e+Ne)]}}return De.duration=Fe*1e3,De},e.behavior.zoom=function(){var C={x:0,y:0,k:1},N,U,H,Y=[960,500],W=Xt,le=250,ne=0,ce="mousedown.zoom",_e="mousemove.zoom",Me="mouseup.zoom",De,Fe="touchstart.zoom",Ge,Je=j($e,"zoomstart","zoom","zoomend"),Ie,Ne,Be,Ze;Kr||(Kr="onwheel"in n?(tt=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in n?(tt=function(){return e.event.wheelDelta},"mousewheel"):(tt=function(){return-e.event.detail},"MozMousePixelScroll"));function $e(cr){cr.on(ce,Fr).on(Kr+".zoom",an).on("dblclick.zoom",bt).on(Fe,pt)}$e.event=function(cr){cr.each(function(){var Or=Je.of(this,arguments),Gr=C;is?e.select(this).transition().each("start.zoom",function(){C=this.__chart__||{x:0,y:0,k:1},xr(Or)}).tween("zoom:zoom",function(){var gt=Y[0],$t=Y[1],gn=U?U[0]:gt/2,Bn=U?U[1]:$t/2,ia=e.interpolateZoom([(gn-C.x)/C.k,(Bn-C.y)/C.k,gt/C.k],[(gn-Gr.x)/Gr.k,(Bn-Gr.y)/Gr.k,gt/Gr.k]);return function(ma){var oa=ia(ma),Ta=gt/oa[2];this.__chart__=C={x:gn-oa[0]*Ta,y:Bn-oa[1]*Ta,k:Ta},Br(Or)}}).each("interrupt.zoom",function(){Mr(Or)}).each("end.zoom",function(){Mr(Or)}):(this.__chart__=C,xr(Or),Br(Or),Mr(Or))})},$e.translate=function(cr){return arguments.length?(C={x:+cr[0],y:+cr[1],k:C.k},br(),$e):[C.x,C.y]},$e.scale=function(cr){return arguments.length?(C={x:C.x,y:C.y,k:null},hr(+cr),br(),$e):C.k},$e.scaleExtent=function(cr){return arguments.length?(W=cr==null?Xt:[+cr[0],+cr[1]],$e):W},$e.center=function(cr){return arguments.length?(H=cr&&[+cr[0],+cr[1]],$e):H},$e.size=function(cr){return arguments.length?(Y=cr&&[+cr[0],+cr[1]],$e):Y},$e.duration=function(cr){return arguments.length?(le=+cr,$e):le},$e.x=function(cr){return arguments.length?(Ne=cr,Ie=cr.copy(),C={x:0,y:0,k:1},$e):Ne},$e.y=function(cr){return arguments.length?(Ze=cr,Be=cr.copy(),C={x:0,y:0,k:1},$e):Ze};function He(cr){return[(cr[0]-C.x)/C.k,(cr[1]-C.y)/C.k]}function ir(cr){return[cr[0]*C.k+C.x,cr[1]*C.k+C.y]}function hr(cr){C.k=Math.max(W[0],Math.min(W[1],cr))}function gr(cr,Or){Or=ir(Or),C.x+=cr[0]-Or[0],C.y+=cr[1]-Or[1]}function pr(cr,Or,Gr,gt){cr.__chart__={x:C.x,y:C.y,k:C.k},hr(Math.pow(2,gt)),gr(U=Or,Gr),cr=e.select(cr),le>0&&(cr=cr.transition().duration(le)),cr.call($e.event)}function br(){Ne&&Ne.domain(Ie.range().map(function(cr){return(cr-C.x)/C.k}).map(Ie.invert)),Ze&&Ze.domain(Be.range().map(function(cr){return(cr-C.y)/C.k}).map(Be.invert))}function xr(cr){ne++||cr({type:"zoomstart"})}function Br(cr){br(),cr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function Mr(cr){--ne||(cr({type:"zoomend"}),U=null)}function Fr(){var cr=this,Or=Je.of(cr,arguments),Gr=0,gt=e.select(o(cr)).on(_e,Bn).on(Me,ia),$t=He(e.mouse(cr)),gn=Ve(cr);Bv.call(cr),xr(Or);function Bn(){Gr=1,gr(e.mouse(cr),$t),Br(Or)}function ia(){gt.on(_e,null).on(Me,null),gn(Gr),Mr(Or)}}function pt(){var cr=this,Or=Je.of(cr,arguments),Gr={},gt=0,$t,gn=".zoom-"+e.event.changedTouches[0].identifier,Bn="touchmove"+gn,ia="touchend"+gn,ma=[],oa=e.select(cr),Ta=Ve(cr);Aa(),xr(Or),oa.on(ce,null).on(Fe,Aa);function Xn(){var Mi=e.touches(cr);return $t=C.k,Mi.forEach(function(On){On.identifier in Gr&&(Gr[On.identifier]=He(On))}),Mi}function Aa(){var Mi=e.event.target;e.select(Mi).on(Bn,os).on(ia,UY),ma.push(Mi);for(var On=e.event.changedTouches,ja=0,ji=On.length;ja<ji;++ja)Gr[On[ja].identifier]=null;var ei=Xn(),_0=Date.now();if(ei.length===1){if(_0-Ge<500){var ls=ei[0];pr(cr,ls,Gr[ls.identifier],Math.floor(Math.log(C.k)/Math.LN2)+1),G()}Ge=_0}else if(ei.length>1){var ls=ei[0],nl=ei[1],Hv=ls[0]-nl[0],W_=ls[1]-nl[1];gt=Hv*Hv+W_*W_}}function os(){var Mi=e.touches(cr),On,ja,ji,ei;Bv.call(cr);for(var _0=0,ls=Mi.length;_0<ls;++_0,ei=null)if(ji=Mi[_0],ei=Gr[ji.identifier]){if(ja)break;On=ji,ja=ei}if(ei){var nl=(nl=ji[0]-On[0])*nl+(nl=ji[1]-On[1])*nl,Hv=gt&&Math.sqrt(nl/gt);On=[(On[0]+ji[0])/2,(On[1]+ji[1])/2],ja=[(ja[0]+ei[0])/2,(ja[1]+ei[1])/2],hr(Hv*$t)}Ge=null,gr(On,ja),Br(Or)}function UY(){if(e.event.touches.length){for(var Mi=e.event.changedTouches,On=0,ja=Mi.length;On<ja;++On)delete Gr[Mi[On].identifier];for(var ji in Gr)return void Xn()}e.selectAll(ma).on(gn,null),oa.on(ce,Fr).on(Fe,pt),Ta(),Mr(Or)}}function an(){var cr=Je.of(this,arguments);De?clearTimeout(De):(Bv.call(this),N=He(U=H||e.mouse(this)),xr(cr)),De=setTimeout(function(){De=null,Mr(cr)},50),G(),hr(Math.pow(2,tt()*.002)*C.k),gr(U,N),Br(cr)}function bt(){var cr=e.mouse(this),Or=Math.log(C.k)/Math.LN2;pr(this,cr,He(cr),e.event.shiftKey?Math.ceil(Or)-1:Math.floor(Or)+1)}return e.rebind($e,Je,"on")};var Xt=[0,1/0],tt,Kr;e.color=qt;function qt(){}qt.prototype.toString=function(){return this.rgb()+""},e.hsl=lr;function lr(C,N,U){return this instanceof lr?(this.h=+C,this.s=+N,void(this.l=+U)):arguments.length<2?C instanceof lr?new lr(C.h,C.s,C.l):_v(""+C,wv,lr):new lr(C,N,U)}var Dr=lr.prototype=new qt;Dr.brighter=function(C){return C=Math.pow(.7,arguments.length?C:1),new lr(this.h,this.s,this.l/C)},Dr.darker=function(C){return C=Math.pow(.7,arguments.length?C:1),new lr(this.h,this.s,C*this.l)},Dr.rgb=function(){return Vr(this.h,this.s,this.l)};function Vr(C,N,U){var H,Y;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,Y=U<=.5?U*(1+N):U+N-U*N,H=2*U-Y;function W(ne){return ne>360?ne-=360:ne<0&&(ne+=360),ne<60?H+(Y-H)*ne/60:ne<180?Y:ne<240?H+(Y-H)*(240-ne)/60:H}function le(ne){return Math.round(W(ne)*255)}return new nn(le(C+120),le(C),le(C-120))}e.hcl=st;function st(C,N,U){return this instanceof st?(this.h=+C,this.c=+N,void(this.l=+U)):arguments.length<2?C instanceof st?new st(C.h,C.c,C.l):C instanceof it?xi(C.l,C.a,C.b):xi((C=Mv((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new st(C,N,U)}var mt=st.prototype=new qt;mt.brighter=function(C){return new st(this.h,this.c,Math.min(100,this.l+vt*(arguments.length?C:1)))},mt.darker=function(C){return new st(this.h,this.c,Math.max(0,this.l-vt*(arguments.length?C:1)))},mt.rgb=function(){return St(this.h,this.c,this.l).rgb()};function St(C,N,U){return isNaN(C)&&(C=0),isNaN(N)&&(N=0),new it(U,Math.cos(C*=ze)*N,Math.sin(C)*N)}e.lab=it;function it(C,N,U){return this instanceof it?(this.l=+C,this.a=+N,void(this.b=+U)):arguments.length<2?C instanceof it?new it(C.l,C.a,C.b):C instanceof st?St(C.h,C.c,C.l):Mv((C=nn(C)).r,C.g,C.b):new it(C,N,U)}var vt=18,Bt=.95047,Gn=1,Yn=1.08883,_n=it.prototype=new qt;_n.brighter=function(C){return new it(Math.min(100,this.l+vt*(arguments.length?C:1)),this.a,this.b)},_n.darker=function(C){return new it(Math.max(0,this.l-vt*(arguments.length?C:1)),this.a,this.b)},_n.rgb=function(){return Ct(this.l,this.a,this.b)};function Ct(C,N,U){var H=(C+16)/116,Y=H+N/500,W=H-U/200;return Y=tn(Y)*Bt,H=tn(H)*Gn,W=tn(W)*Yn,new nn(_i(3.2404542*Y-1.5371385*H-.4985314*W),_i(-.969266*Y+1.8760108*H+.041556*W),_i(.0556434*Y-.2040259*H+1.0572252*W))}function xi(C,N,U){return C>0?new st(Math.atan2(U,N)*Ke,Math.sqrt(N*N+U*U),C):new st(NaN,NaN,C)}function tn(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function $a(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function _i(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=nn;function nn(C,N,U){return this instanceof nn?(this.r=~~C,this.g=~~N,void(this.b=~~U)):arguments.length<2?C instanceof nn?new nn(C.r,C.g,C.b):_v(""+C,nn,Vr):new nn(C,N,U)}function el(C){return new nn(C>>16,C>>8&255,C&255)}function $i(C){return el(C)+""}var Ki=nn.prototype=new qt;Ki.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var N=this.r,U=this.g,H=this.b,Y=30;return!N&&!U&&!H?new nn(Y,Y,Y):(N&&N<Y&&(N=Y),U&&U<Y&&(U=Y),H&&H<Y&&(H=Y),new nn(Math.min(255,N/C),Math.min(255,U/C),Math.min(255,H/C)))},Ki.darker=function(C){return C=Math.pow(.7,arguments.length?C:1),new nn(C*this.r,C*this.g,C*this.b)},Ki.hsl=function(){return wv(this.r,this.g,this.b)},Ki.toString=function(){return"#"+rl(this.r)+rl(this.g)+rl(this.b)};function rl(C){return C<16?"0"+Math.max(0,C).toString(16):Math.min(255,C).toString(16)}function _v(C,N,U){var H=0,Y=0,W=0,le,ne,ce;if(le=/([a-z]+)\((.*)\)/.exec(C=C.toLowerCase()),le)switch(ne=le[2].split(","),le[1]){case"hsl":return U(parseFloat(ne[0]),parseFloat(ne[1])/100,parseFloat(ne[2])/100);case"rgb":return N(Ku(ne[0]),Ku(ne[1]),Ku(ne[2]))}return(ce=Sr.get(C))?N(ce.r,ce.g,ce.b):(C!=null&&C.charAt(0)==="#"&&!isNaN(ce=parseInt(C.slice(1),16))&&(C.length===4?(H=(ce&3840)>>4,H=H>>4|H,Y=ce&240,Y=Y>>4|Y,W=ce&15,W=W<<4|W):C.length===7&&(H=(ce&16711680)>>16,Y=(ce&65280)>>8,W=ce&255)),N(H,Y,W))}function wv(C,N,U){var H=Math.min(C/=255,N/=255,U/=255),Y=Math.max(C,N,U),W=Y-H,le,ne,ce=(Y+H)/2;return W?(ne=ce<.5?W/(Y+H):W/(2-Y-H),C==Y?le=(N-U)/W+(N<U?6:0):N==Y?le=(U-C)/W+2:le=(C-N)/W+4,le*=60):(le=NaN,ne=ce>0&&ce<1?0:le),new lr(le,ne,ce)}function Mv(C,N,U){C=$u(C),N=$u(N),U=$u(U);var H=$a((.4124564*C+.3575761*N+.1804375*U)/Bt),Y=$a((.2126729*C+.7151522*N+.072175*U)/Gn),W=$a((.0193339*C+.119192*N+.9503041*U)/Yn);return it(116*Y-16,500*(H-Y),200*(Y-W))}function $u(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function Ku(C){var N=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(N*2.55):N}var Sr=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});Sr.forEach(function(C,N){Sr.set(C,el(N))});function kr(C){return typeof C=="function"?C:function(){return C}}e.functor=kr,e.xhr=yt(I);function yt(C){return function(N,U,H){return arguments.length===2&&typeof U=="function"&&(H=U,U=null),dr(N,U,C,H)}}function dr(C,N,U,H){var Y={},W=e.dispatch("beforesend","progress","load","error"),le={},ne=new XMLHttpRequest,ce=null;self.XDomainRequest&&!("withCredentials"in ne)&&/^(http(s)?:)?\/\//.test(C)&&(ne=new XDomainRequest),"onload"in ne?ne.onload=ne.onerror=_e:ne.onreadystatechange=function(){ne.readyState>3&&_e()};function _e(){var Me=ne.status,De;if(!Me&&Dt(ne)||Me>=200&&Me<300||Me===304){try{De=U.call(Y,ne)}catch(Fe){W.error.call(Y,Fe);return}W.load.call(Y,De)}else W.error.call(Y,ne)}return ne.onprogress=function(Me){var De=e.event;e.event=Me;try{W.progress.call(Y,ne)}finally{e.event=De}},Y.header=function(Me,De){return Me=(Me+"").toLowerCase(),arguments.length<2?le[Me]:(De==null?delete le[Me]:le[Me]=De+"",Y)},Y.mimeType=function(Me){return arguments.length?(N=Me==null?null:Me+"",Y):N},Y.responseType=function(Me){return arguments.length?(ce=Me,Y):ce},Y.response=function(Me){return U=Me,Y},["get","post"].forEach(function(Me){Y[Me]=function(){return Y.send.apply(Y,[Me].concat(t(arguments)))}}),Y.send=function(Me,De,Fe){if(arguments.length===2&&typeof De=="function"&&(Fe=De,De=null),ne.open(Me,C,!0),N!=null&&!("accept"in le)&&(le.accept=N+",*/*"),ne.setRequestHeader)for(var Ge in le)ne.setRequestHeader(Ge,le[Ge]);return N!=null&&ne.overrideMimeType&&ne.overrideMimeType(N),ce!=null&&(ne.responseType=ce),Fe!=null&&Y.on("error",Fe).on("load",function(Je){Fe(null,Je)}),W.beforesend.call(Y,ne),ne.send(De==null?null:De),Y},Y.abort=function(){return ne.abort(),Y},e.rebind(Y,W,"on"),H==null?Y:Y.get(aa(H))}function aa(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 Y(_e,Me,De){arguments.length<3&&(De=Me,Me=null);var Fe=dr(_e,N,Me==null?W:le(Me),De);return Fe.row=function(Ge){return arguments.length?Fe.response((Me=Ge)==null?W:le(Ge)):Me},Fe}function W(_e){return Y.parse(_e.responseText)}function le(_e){return function(Me){return Y.parse(Me.responseText,_e)}}Y.parse=function(_e,Me){var De;return Y.parseRows(_e,function(Fe,Ge){if(De)return De(Fe,Ge-1);var Je=function(Ie){for(var Ne={},Be=Fe.length,Ze=0;Ze<Be;++Ze)Ne[Fe[Ze]]=Ie[Ze];return Ne};De=Me?function(Ie,Ne){return Me(Je(Ie),Ne)}:Je})},Y.parseRows=function(_e,Me){var De={},Fe={},Ge=[],Je=_e.length,Ie=0,Ne=0,Be,Ze;function $e(){if(Ie>=Je)return Fe;if(Ze)return Ze=!1,De;var ir=Ie;if(_e.charCodeAt(ir)===34){for(var hr=ir;hr++<Je;)if(_e.charCodeAt(hr)===34){if(_e.charCodeAt(hr+1)!==34)break;++hr}Ie=hr+2;var gr=_e.charCodeAt(hr+1);return gr===13?(Ze=!0,_e.charCodeAt(hr+2)===10&&++Ie):gr===10&&(Ze=!0),_e.slice(ir+1,hr).replace(/""/g,'"')}for(;Ie<Je;){var gr=_e.charCodeAt(Ie++),pr=1;if(gr===10)Ze=!0;else if(gr===13)Ze=!0,_e.charCodeAt(Ie)===10&&(++Ie,++pr);else if(gr!==H)continue;return _e.slice(ir,Ie-pr)}return _e.slice(ir)}for(;(Be=$e())!==Fe;){for(var He=[];Be!==De&&Be!==Fe;)He.push(Be),Be=$e();Me&&(He=Me(He,Ne++))==null||Ge.push(He)}return Ge},Y.format=function(_e){if(Array.isArray(_e[0]))return Y.formatRows(_e);var Me=new R,De=[];return _e.forEach(function(Fe){for(var Ge in Fe)Me.has(Ge)||De.push(Me.add(Ge))}),[De.map(ce).join(C)].concat(_e.map(function(Fe){return De.map(function(Ge){return ce(Fe[Ge])}).join(C)})).join(`
`)},Y.formatRows=function(_e){return _e.map(ne).join(`
`)};function ne(_e){return _e.map(ce).join(C)}function ce(_e){return U.test(_e)?'"'+_e.replace(/\"/g,'""')+'"':_e}return Y},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv("	","text/tab-separated-values");var Nn,qn,Ka,ts,F6=this[F(this,"requestAnimationFrame")]||function(C){setTimeout(C,17)};e.timer=function(){Tv.apply(this,arguments)};function Tv(C,N,U){var H=arguments.length;H<2&&(N=0),H<3&&(U=Date.now());var Y=U+N,W={c:C,t:Y,n:null};return qn?qn.n=W:Nn=W,qn=W,Ka||(ts=clearTimeout(ts),Ka=1,F6(Pp)),W}function Pp(){var C=P6(),N=I6()-C;N>24?(isFinite(N)&&(clearTimeout(ts),ts=setTimeout(Pp,N)),Ka=0):(Ka=1,F6(Pp))}e.timer.flush=function(){P6(),I6()};function P6(){for(var C=Date.now(),N=Nn;N;)C>=N.t&&N.c(C-N.t)&&(N.c=null),N=N.n;return C}function I6(){for(var C,N=Nn,U=1/0;N;)N.c?(N.t<U&&(U=N.t),N=(C=N).n):N=C?C.n=N.n:Nn=N.n;return qn=C,U}e.round=function(C,N){return N?Math.round(C*(N=Math.pow(10,N)))/N:Math.round(C)},e.geom={};function p0(C){return C[0]}function Qu(C){return C[1]}e.geom.hull=function(C){var N=p0,U=Qu;if(arguments.length)return H(C);function H(Y){if(Y.length<3)return[];var W=kr(N),le=kr(U),ne,ce=Y.length,_e=[],Me=[];for(ne=0;ne<ce;ne++)_e.push([+W.call(this,Y[ne],ne),+le.call(this,Y[ne],ne),ne]);for(_e.sort(GV),ne=0;ne<ce;ne++)Me.push([_e[ne][0],-_e[ne][1]]);var De=z6(_e),Fe=z6(Me),Ge=Fe[0]===De[0],Je=Fe[Fe.length-1]===De[De.length-1],Ie=[];for(ne=De.length-1;ne>=0;--ne)Ie.push(Y[_e[De[ne]][2]]);for(ne=+Ge;ne<Fe.length-Je;++ne)Ie.push(Y[_e[Fe[ne]][2]]);return Ie}return H.x=function(Y){return arguments.length?(N=Y,H):N},H.y=function(Y){return arguments.length?(U=Y,H):U},H};function z6(C){for(var N=C.length,U=[0,1],H=2,Y=2;Y<N;Y++){for(;H>1&&wr(C[U[H-2]],C[U[H-1]],C[Y])<=0;)--H;U[H++]=Y}return U.slice(0,H)}function GV(C,N){return C[0]-N[0]||C[1]-N[1]}e.geom.polygon=function(C){return q(C,Av),C};var Av=e.geom.polygon.prototype=[];Av.area=function(){for(var C=-1,N=this.length,U,H=this[N-1],Y=0;++C<N;)U=H,H=this[C],Y+=U[1]*H[0]-U[0]*H[1];return Y*.5},Av.centroid=function(C){var N=-1,U=this.length,H=0,Y=0,W,le=this[U-1],ne;for(arguments.length||(C=-1/(6*this.area()));++N<U;)W=le,le=this[N],ne=W[0]*le[1]-le[0]*W[1],H+=(W[0]+le[0])*ne,Y+=(W[1]+le[1])*ne;return[H*C,Y*C]},Av.clip=function(C){for(var N,U=N6(C),H=-1,Y=this.length-N6(this),W,le,ne=this[Y-1],ce,_e,Me;++H<Y;){for(N=C.slice(),C.length=0,ce=this[H],_e=N[(le=N.length-U)-1],W=-1;++W<le;)Me=N[W],Ip(Me,ne,ce)?(Ip(_e,ne,ce)||C.push(zp(_e,Me,ne,ce)),C.push(Me)):Ip(_e,ne,ce)&&C.push(zp(_e,Me,ne,ce)),_e=Me;U&&C.push(C[0]),ne=ce}return C};function Ip(C,N,U){return(U[0]-N[0])*(C[1]-N[1])<(U[1]-N[1])*(C[0]-N[0])}function zp(C,N,U,H){var Y=C[0],W=U[0],le=N[0]-Y,ne=H[0]-W,ce=C[1],_e=U[1],Me=N[1]-ce,De=H[1]-_e,Fe=(ne*(ce-_e)-De*(Y-W))/(De*le-ne*Me);return[Y+Fe*le,ce+Fe*Me]}function N6(C){var N=C[0],U=C[C.length-1];return!(N[0]-U[0]||N[1]-U[1])}var g0,ns,y0,q6=[],Np,ju,B6=[];function YV(){Cv(this),this.edge=this.site=this.circle=null}function O6(C){var N=q6.pop()||new YV;return N.site=C,N}function qp(C){b0(C),y0.remove(C),q6.push(C),Cv(C)}function XV(C){var N=C.circle,U=N.x,H=N.cy,Y={x:U,y:H},W=C.P,le=C.N,ne=[C];qp(C);for(var ce=W;ce.circle&&m(U-ce.circle.x)<Xe&&m(H-ce.circle.cy)<Xe;)W=ce.P,ne.unshift(ce),qp(ce),ce=W;ne.unshift(ce),b0(ce);for(var _e=le;_e.circle&&m(U-_e.circle.x)<Xe&&m(H-_e.circle.cy)<Xe;)le=_e.N,ne.push(_e),qp(_e),_e=le;ne.push(_e),b0(_e);var Me=ne.length,De;for(De=1;De<Me;++De)_e=ne[De],ce=ne[De-1],kv(_e.edge,ce.site,_e.site,Y);ce=ne[0],_e=ne[Me-1],_e.edge=ef(ce.site,_e.site,null,Y),m0(ce),m0(_e)}function WV(C){for(var N=C.x,U=C.y,H,Y,W,le,ne=y0._;ne;)if(W=U6(ne,U)-N,W>Xe)ne=ne.L;else if(le=N-ZV(ne,U),le>Xe){if(!ne.R){H=ne;break}ne=ne.R}else{W>-Xe?(H=ne.P,Y=ne):le>-Xe?(H=ne,Y=ne.N):H=Y=ne;break}var ce=O6(C);if(y0.insert(H,ce),!(!H&&!Y)){if(H===Y){b0(H),Y=O6(H.site),y0.insert(ce,Y),ce.edge=Y.edge=ef(H.site,ce.site),m0(H),m0(Y);return}if(!Y){ce.edge=ef(H.site,ce.site);return}b0(H),b0(Y);var _e=H.site,Me=_e.x,De=_e.y,Fe=C.x-Me,Ge=C.y-De,Je=Y.site,Ie=Je.x-Me,Ne=Je.y-De,Be=2*(Fe*Ne-Ge*Ie),Ze=Fe*Fe+Ge*Ge,$e=Ie*Ie+Ne*Ne,He={x:(Ne*Ze-Ge*$e)/Be+Me,y:(Fe*$e-Ie*Ze)/Be+De};kv(Y.edge,_e,Je,He),ce.edge=ef(_e,C,null,He),Y.edge=ef(C,Je,null,He),m0(H),m0(Y)}}function U6(C,N){var U=C.site,H=U.x,Y=U.y,W=Y-N;if(!W)return H;var le=C.P;if(!le)return-1/0;U=le.site;var ne=U.x,ce=U.y,_e=ce-N;if(!_e)return ne;var Me=ne-H,De=1/W-1/_e,Fe=Me/_e;return De?(-Fe+Math.sqrt(Fe*Fe-2*De*(Me*Me/(-2*_e)-ce+_e/2+Y-W/2)))/De+H:(H+ne)/2}function ZV(C,N){var U=C.N;if(U)return U6(U,N);var H=C.site;return H.y===N?H.x:1/0}function H6(C){this.site=C,this.edges=[]}H6.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(V6),C.length};function JV(C){for(var N=C[0][0],U=C[1][0],H=C[0][1],Y=C[1][1],W,le,ne,ce,_e=ns,Me=_e.length,De,Fe,Ge,Je,Ie,Ne;Me--;)if(De=_e[Me],!(!De||!De.prepare()))for(Ge=De.edges,Je=Ge.length,Fe=0;Fe<Je;)Ne=Ge[Fe].end(),ne=Ne.x,ce=Ne.y,Ie=Ge[++Fe%Je].start(),W=Ie.x,le=Ie.y,(m(ne-W)>Xe||m(ce-le)>Xe)&&(Ge.splice(Fe,0,new Sv(eG(De.site,Ne,m(ne-N)<Xe&&Y-ce>Xe?{x:N,y:m(W-N)<Xe?le:Y}:m(ce-Y)<Xe&&U-ne>Xe?{x:m(le-Y)<Xe?W:U,y:Y}:m(ne-U)<Xe&&ce-H>Xe?{x:U,y:m(W-U)<Xe?le:H}:m(ce-H)<Xe&&ne-N>Xe?{x:m(le-H)<Xe?W:N,y:H}:null),De.site,null)),++Je)}function V6(C,N){return N.angle-C.angle}function $V(){Cv(this),this.x=this.y=this.arc=this.site=this.cy=null}function m0(C){var N=C.P,U=C.N;if(!(!N||!U)){var H=N.site,Y=C.site,W=U.site;if(H!==W){var le=Y.x,ne=Y.y,ce=H.x-le,_e=H.y-ne,Me=W.x-le,Ne=W.y-ne,De=2*(ce*Ne-_e*Me);if(!(De>=-er)){var Fe=ce*ce+_e*_e,Ge=Me*Me+Ne*Ne,Je=(Ne*Fe-_e*Ge)/De,Ie=(ce*Ge-Me*Fe)/De,Ne=Ie+ne,Be=B6.pop()||new $V;Be.arc=C,Be.site=Y,Be.x=Je+le,Be.y=Ne+Math.sqrt(Je*Je+Ie*Ie),Be.cy=Ne,C.circle=Be;for(var Ze=null,$e=ju._;$e;)if(Be.y<$e.y||Be.y===$e.y&&Be.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,Be),Ze||(Np=Be)}}}}function b0(C){var N=C.circle;N&&(N.P||(Np=N.N),ju.remove(N),B6.push(N),Cv(N),C.circle=null)}function KV(C,N,U,H){return function(Y){var W=Y.a,le=Y.b,ne=W.x,ce=W.y,_e=le.x,Me=le.y,De=0,Fe=1,Ge=_e-ne,Je=Me-ce,Ie;if(Ie=C-ne,!(!Ge&&Ie>0)){if(Ie/=Ge,Ge<0){if(Ie<De)return;Ie<Fe&&(Fe=Ie)}else if(Ge>0){if(Ie>Fe)return;Ie>De&&(De=Ie)}if(Ie=U-ne,!(!Ge&&Ie<0)){if(Ie/=Ge,Ge<0){if(Ie>Fe)return;Ie>De&&(De=Ie)}else if(Ge>0){if(Ie<De)return;Ie<Fe&&(Fe=Ie)}if(Ie=N-ce,!(!Je&&Ie>0)){if(Ie/=Je,Je<0){if(Ie<De)return;Ie<Fe&&(Fe=Ie)}else if(Je>0){if(Ie>Fe)return;Ie>De&&(De=Ie)}if(Ie=H-ce,!(!Je&&Ie<0)){if(Ie/=Je,Je<0){if(Ie>Fe)return;Ie>De&&(De=Ie)}else if(Je>0){if(Ie<De)return;Ie<Fe&&(Fe=Ie)}return De>0&&(Y.a={x:ne+De*Ge,y:ce+De*Je}),Fe<1&&(Y.b={x:ne+Fe*Ge,y:ce+Fe*Je}),Y}}}}}}function QV(C){for(var N=g0,U=KV(C[0][0],C[0][1],C[1][0],C[1][1]),H=N.length,Y;H--;)Y=N[H],(!jV(Y,C)||!U(Y)||m(Y.a.x-Y.b.x)<Xe&&m(Y.a.y-Y.b.y)<Xe)&&(Y.a=Y.b=null,N.splice(H,1))}function jV(C,N){var U=C.b;if(U)return!0;var H=C.a,Y=N[0][0],W=N[1][0],le=N[0][1],ne=N[1][1],ce=C.l,_e=C.r,Me=ce.x,De=ce.y,Fe=_e.x,Ge=_e.y,Je=(Me+Fe)/2,Ie=(De+Ge)/2,Ne,Be;if(Ge===De){if(Je<Y||Je>=W)return;if(Me>Fe){if(!H)H={x:Je,y:le};else if(H.y>=ne)return;U={x:Je,y:ne}}else{if(!H)H={x:Je,y:ne};else if(H.y<le)return;U={x:Je,y:le}}}else if(Ne=(Me-Fe)/(Ge-De),Be=Ie-Ne*Je,Ne<-1||Ne>1)if(Me>Fe){if(!H)H={x:(le-Be)/Ne,y:le};else if(H.y>=ne)return;U={x:(ne-Be)/Ne,y:ne}}else{if(!H)H={x:(ne-Be)/Ne,y:ne};else if(H.y<le)return;U={x:(le-Be)/Ne,y:le}}else if(De<Ge){if(!H)H={x:Y,y:Ne*Y+Be};else if(H.x>=W)return;U={x:W,y:Ne*W+Be}}else{if(!H)H={x:W,y:Ne*W+Be};else if(H.x<Y)return;U={x:Y,y:Ne*Y+Be}}return C.a=H,C.b=U,!0}function G6(C,N){this.l=C,this.r=N,this.a=this.b=null}function ef(C,N,U,H){var Y=new G6(C,N);return g0.push(Y),U&&kv(Y,C,N,U),H&&kv(Y,N,C,H),ns[C.i].edges.push(new Sv(Y,C,N)),ns[N.i].edges.push(new Sv(Y,N,C)),Y}function eG(C,N,U){var H=new G6(C,null);return H.a=N,H.b=U,g0.push(H),H}function kv(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 Sv(C,N,U){var H=C.a,Y=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(Y.x-H.x,H.y-Y.y):Math.atan2(H.x-Y.x,Y.y-H.y)}Sv.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 Bp(){this._=null}function Cv(C){C.U=C.C=C.L=C.R=C.P=C.N=null}Bp.prototype={insert:function(C,N){var U,H,Y;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?(Y=H.R,Y&&Y.C?(U.C=Y.C=!1,H.C=!0,C=H):(C===U.R&&(rf(this,U),C=U,U=C.U),U.C=!1,H.C=!0,tf(this,H))):(Y=H.L,Y&&Y.C?(U.C=Y.C=!1,H.C=!0,C=H):(C===U.L&&(tf(this,U),C=U,U=C.U),U.C=!1,H.C=!0,rf(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,Y=C.R,W,le;if(H?Y?W=Y6(Y):W=H:W=Y,N?N.L===C?N.L=W:N.R=W:this._=W,H&&Y?(le=W.C,W.C=C.C,W.L=H,H.U=W,W!==Y?(N=W.U,W.U=C.U,C=W.R,N.L=C,W.R=Y,Y.U=W):(W.U=N,N=W,C=W.R)):(le=C.C,C=W),C&&(C.U=N),!le){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,rf(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,tf(this,U),U=N.R),U.C=N.C,N.C=U.R.C=!1,rf(this,N),C=this._;break}}else if(U=N.L,U.C&&(U.C=!1,N.C=!0,tf(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,rf(this,U),U=N.L),U.C=N.C,N.C=U.L.C=!1,tf(this,N),C=this._;break}U.C=!0,C=N,N=N.U}while(!C.C);C&&(C.C=!1)}}};function rf(C,N){var U=N,H=N.R,Y=U.U;Y?Y.L===U?Y.L=H:Y.R=H:C._=H,H.U=Y,U.U=H,U.R=H.L,U.R&&(U.R.U=U),H.L=U}function tf(C,N){var U=N,H=N.L,Y=U.U;Y?Y.L===U?Y.L=H:Y.R=H:C._=H,H.U=Y,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 Op(C,N){var U=C.sort(rG).pop(),H,Y,W;for(g0=[],ns=new Array(C.length),y0=new Bp,ju=new Bp;;)if(W=Np,U&&(!W||U.y<W.y||U.y===W.y&&U.x<W.x))(U.x!==H||U.y!==Y)&&(ns[U.i]=new H6(U),WV(U),H=U.x,Y=U.y),U=C.pop();else if(W)XV(W.arc);else break;N&&(QV(N),JV(N));var le={cells:ns,edges:g0};return y0=ju=g0=ns=null,le}function rG(C,N){return N.y-C.y||N.x-C.x}e.geom.voronoi=function(C){var N=p0,U=Qu,H=N,Y=U,W=Ev;if(C)return le(C);function le(ce){var _e=new Array(ce.length),Me=W[0][0],De=W[0][1],Fe=W[1][0],Ge=W[1][1];return Op(ne(ce),W).cells.forEach(function(Je,Ie){var Ne=Je.edges,Be=Je.site,Ze=_e[Ie]=Ne.length?Ne.map(function($e){var He=$e.start();return[He.x,He.y]}):Be.x>=Me&&Be.x<=Fe&&Be.y>=De&&Be.y<=Ge?[[Me,Ge],[Fe,Ge],[Fe,De],[Me,De]]:[];Ze.point=ce[Ie]}),_e}function ne(ce){return ce.map(function(_e,Me){return{x:Math.round(H(_e,Me)/Xe)*Xe,y:Math.round(Y(_e,Me)/Xe)*Xe,i:Me}})}return le.links=function(ce){return Op(ne(ce)).edges.filter(function(_e){return _e.l&&_e.r}).map(function(_e){return{source:ce[_e.l.i],target:ce[_e.r.i]}})},le.triangles=function(ce){var _e=[];return Op(ne(ce)).cells.forEach(function(Me,De){for(var Fe=Me.site,Ge=Me.edges.sort(V6),Je=-1,Ie=Ge.length,Ne,Be,Ze=Ge[Ie-1].edge,$e=Ze.l===Fe?Ze.r:Ze.l;++Je<Ie;)Ne=Ze,Be=$e,Ze=Ge[Je].edge,$e=Ze.l===Fe?Ze.r:Ze.l,De<Be.i&&De<$e.i&&tG(Fe,Be,$e)<0&&_e.push([ce[De],ce[Be.i],ce[$e.i]])}),_e},le.x=function(ce){return arguments.length?(H=kr(N=ce),le):N},le.y=function(ce){return arguments.length?(Y=kr(U=ce),le):U},le.clipExtent=function(ce){return arguments.length?(W=ce==null?Ev:ce,le):W===Ev?null:W},le.size=function(ce){return arguments.length?le.clipExtent(ce&&[[0,0],ce]):W===Ev?null:W&&W[1]},le};var Ev=[[-1e6,-1e6],[1e6,1e6]];function tG(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,Y){var W=p0,le=Qu,ne;if(ne=arguments.length)return W=nG,le=aG,ne===3&&(Y=U,H=N,U=N=0),ce(C);function ce(_e){var Me,De=kr(W),Fe=kr(le),Ge,Je,Ie,Ne,Be,Ze,$e,He;if(N!=null)Be=N,Ze=U,$e=H,He=Y;else if($e=He=-(Be=Ze=1/0),Ge=[],Je=[],Ne=_e.length,ne)for(Ie=0;Ie<Ne;++Ie)Me=_e[Ie],Me.x<Be&&(Be=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 ir=+De(Me=_e[Ie],Ie),hr=+Fe(Me,Ie);ir<Be&&(Be=ir),hr<Ze&&(Ze=hr),ir>$e&&($e=ir),hr>He&&(He=hr),Ge.push(ir),Je.push(hr)}var gr=$e-Be,pr=He-Ze;gr>pr?He=Ze+gr:$e=Be+pr;function br(Mr,Fr,pt,an,bt,cr,Or,Gr){if(!(isNaN(pt)||isNaN(an)))if(Mr.leaf){var gt=Mr.x,$t=Mr.y;if(gt!=null)if(m(gt-pt)+m($t-an)<.01)xr(Mr,Fr,pt,an,bt,cr,Or,Gr);else{var gn=Mr.point;Mr.x=Mr.y=Mr.point=null,xr(Mr,gn,gt,$t,bt,cr,Or,Gr),xr(Mr,Fr,pt,an,bt,cr,Or,Gr)}else Mr.x=pt,Mr.y=an,Mr.point=Fr}else xr(Mr,Fr,pt,an,bt,cr,Or,Gr)}function xr(Mr,Fr,pt,an,bt,cr,Or,Gr){var gt=(bt+Or)*.5,$t=(cr+Gr)*.5,gn=pt>=gt,Bn=an>=$t,ia=Bn<<1|gn;Mr.leaf=!1,Mr=Mr.nodes[ia]||(Mr.nodes[ia]=X6()),gn?bt=gt:Or=gt,Bn?cr=$t:Gr=$t,br(Mr,Fr,pt,an,bt,cr,Or,Gr)}var Br=X6();if(Br.add=function(Mr){br(Br,Mr,+De(Mr,++Ie),+Fe(Mr,Ie),Be,Ze,$e,He)},Br.visit=function(Mr){nf(Mr,Br,Be,Ze,$e,He)},Br.find=function(Mr){return iG(Br,Mr[0],Mr[1],Be,Ze,$e,He)},Ie=-1,N==null){for(;++Ie<Ne;)br(Br,_e[Ie],Ge[Ie],Je[Ie],Be,Ze,$e,He);--Ie}else _e.forEach(Br.add);return Ge=Je=_e=Me=null,Br}return ce.x=function(_e){return arguments.length?(W=_e,ce):W},ce.y=function(_e){return arguments.length?(le=_e,ce):le},ce.extent=function(_e){return arguments.length?(_e==null?N=U=H=Y=null:(N=+_e[0][0],U=+_e[0][1],H=+_e[1][0],Y=+_e[1][1]),ce):N==null?null:[[N,U],[H,Y]]},ce.size=function(_e){return arguments.length?(_e==null?N=U=H=Y=null:(N=U=0,H=+_e[0],Y=+_e[1]),ce):N==null?null:[H-N,Y-U]},ce};function nG(C){return C.x}function aG(C){return C.y}function X6(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function nf(C,N,U,H,Y,W){if(!C(N,U,H,Y,W)){var le=(U+Y)*.5,ne=(H+W)*.5,ce=N.nodes;ce[0]&&nf(C,ce[0],U,H,le,ne),ce[1]&&nf(C,ce[1],le,H,Y,ne),ce[2]&&nf(C,ce[2],U,ne,le,W),ce[3]&&nf(C,ce[3],le,ne,Y,W)}}function iG(C,N,U,H,Y,W,le){var ne=1/0,ce;return(function _e(Me,De,Fe,Ge,Je){if(!(De>W||Fe>le||Ge<H||Je<Y)){if(Ie=Me.point){var Ie,Ne=N-Me.x,Be=U-Me.y,Ze=Ne*Ne+Be*Be;if(Ze<ne){var $e=Math.sqrt(ne=Ze);H=N-$e,Y=U-$e,W=N+$e,le=U+$e,ce=Ie}}for(var He=Me.nodes,ir=(De+Ge)*.5,hr=(Fe+Je)*.5,gr=N>=ir,pr=U>=hr,br=pr<<1|gr,xr=br+4;br<xr;++br)if(Me=He[br&3])switch(br&3){case 0:_e(Me,De,Fe,ir,hr);break;case 1:_e(Me,ir,Fe,Ge,hr);break;case 2:_e(Me,De,hr,ir,Je);break;case 3:_e(Me,ir,hr,Ge,Je);break}}})(C,H,Y,W,le),ce}e.interpolateRgb=Up;function Up(C,N){C=e.rgb(C),N=e.rgb(N);var U=C.r,H=C.g,Y=C.b,W=N.r-U,le=N.g-H,ne=N.b-Y;return function(ce){return"#"+rl(Math.round(U+W*ce))+rl(Math.round(H+le*ce))+rl(Math.round(Y+ne*ce))}}e.interpolateObject=W6;function W6(C,N){var U={},H={},Y;for(Y in C)Y in N?U[Y]=as(C[Y],N[Y]):H[Y]=C[Y];for(Y in N)Y in C||(H[Y]=N[Y]);return function(W){for(Y in U)H[Y]=U[Y](W);return H}}e.interpolateNumber=Co;function Co(C,N){return C=+C,N=+N,function(U){return C*(1-U)+N*U}}e.interpolateString=Z6;function Z6(C,N){var U=Hp.lastIndex=Vp.lastIndex=0,H,Y,W,le=-1,ne=[],ce=[];for(C=C+"",N=N+"";(H=Hp.exec(C))&&(Y=Vp.exec(N));)(W=Y.index)>U&&(W=N.slice(U,W),ne[le]?ne[le]+=W:ne[++le]=W),(H=H[0])===(Y=Y[0])?ne[le]?ne[le]+=Y:ne[++le]=Y:(ne[++le]=null,ce.push({i:le,x:Co(H,Y)})),U=Vp.lastIndex;return U<N.length&&(W=N.slice(U),ne[le]?ne[le]+=W:ne[++le]=W),ne.length<2?ce[0]?(N=ce[0].x,function(_e){return N(_e)+""}):function(){return N}:(N=ce.length,function(_e){for(var Me=0,De;Me<N;++Me)ne[(De=ce[Me]).i]=De.x(_e);return ne.join("")})}var Hp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vp=new RegExp(Hp.source,"g");e.interpolate=as;function as(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"?Sr.has(N.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(N)?Up:Z6:N instanceof qt?Up:Array.isArray(N)?Lv:U==="object"&&isNaN(N)?W6:Co)(C,N)}],e.interpolateArray=Lv;function Lv(C,N){var U=[],H=[],Y=C.length,W=N.length,le=Math.min(C.length,N.length),ne;for(ne=0;ne<le;++ne)U.push(as(C[ne],N[ne]));for(;ne<Y;++ne)H[ne]=C[ne];for(;ne<W;++ne)H[ne]=N[ne];return function(ce){for(ne=0;ne<le;++ne)H[ne]=U[ne](ce);return H}}var J6=function(){return I},oG=e.map({linear:J6,poly:vG,quad:function(){return uG},cubic:function(){return fG},sin:function(){return hG},exp:function(){return dG},circle:function(){return pG},elastic:gG,back:yG,bounce:function(){return mG}}),lG=e.map({in:I,out:$6,"in-out":K6,"out-in":function(C){return K6($6(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=oG.get(U)||J6,H=lG.get(H)||I,sG(H(U.apply(null,r.call(arguments,1))))};function sG(C){return function(N){return N<=0?0:N>=1?1:C(N)}}function $6(C){return function(N){return 1-C(1-N)}}function K6(C){return function(N){return .5*(N<.5?C(2*N):2-C(2-2*N))}}function uG(C){return C*C}function fG(C){return C*C*C}function cG(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 vG(C){return function(N){return Math.pow(N,C)}}function hG(C){return 1-Math.cos(C*Ce)}function dG(C){return Math.pow(2,10*(C-1))}function pG(C){return 1-Math.sqrt(1-C*C)}function gG(C,N){var U;return arguments.length<2&&(N=.45),arguments.length?U=N/rr*Math.asin(1/C):(C=1,U=N/4),function(H){return 1+C*Math.pow(2,-10*H)*Math.sin((H-U)*rr/N)}}function yG(C){return C||(C=1.70158),function(N){return N*N*((C+1)*N-C)}}function mG(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=bG;function bG(C,N){C=e.hcl(C),N=e.hcl(N);var U=C.h,H=C.c,Y=C.l,W=N.h-U,le=N.c-H,ne=N.l-Y;return isNaN(le)&&(le=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(ce){return St(U+W*ce,H+le*ce,Y+ne*ce)+""}}e.interpolateHsl=xG;function xG(C,N){C=e.hsl(C),N=e.hsl(N);var U=C.h,H=C.s,Y=C.l,W=N.h-U,le=N.s-H,ne=N.l-Y;return isNaN(le)&&(le=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(ce){return Vr(U+W*ce,H+le*ce,Y+ne*ce)+""}}e.interpolateLab=_G;function _G(C,N){C=e.lab(C),N=e.lab(N);var U=C.l,H=C.a,Y=C.b,W=N.l-U,le=N.a-H,ne=N.b-Y;return function(ce){return Ct(U+W*ce,H+le*ce,Y+ne*ce)+""}}e.interpolateRound=Q6;function Q6(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 j6(H?H.matrix:MG)})(C)};function j6(C){var N=[C.a,C.b],U=[C.c,C.d],H=r_(N),Y=e_(N,U),W=r_(wG(U,N,-Y))||0;N[0]*U[1]<U[0]*N[1]&&(N[0]*=-1,N[1]*=-1,H*=-1,Y*=-1),this.rotate=(H?Math.atan2(N[1],N[0]):Math.atan2(-U[0],U[1]))*Ke,this.translate=[C.e,C.f],this.scale=[H,W],this.skew=W?Math.atan2(Y,W)*Ke:0}j6.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function e_(C,N){return C[0]*N[0]+C[1]*N[1]}function r_(C){var N=Math.sqrt(e_(C,C));return N&&(C[0]/=N,C[1]/=N),N}function wG(C,N,U){return C[0]+=U*N[0],C[1]+=U*N[1],C}var MG={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=t_;function x0(C){return C.length?C.pop()+",":""}function TG(C,N,U,H){if(C[0]!==N[0]||C[1]!==N[1]){var Y=U.push("translate(",null,",",null,")");H.push({i:Y-4,x:Co(C[0],N[0])},{i:Y-2,x:Co(C[1],N[1])})}else(N[0]||N[1])&&U.push("translate("+N+")")}function AG(C,N,U,H){C!==N?(C-N>180?N+=360:N-C>180&&(C+=360),H.push({i:U.push(x0(U)+"rotate(",null,")")-2,x:Co(C,N)})):N&&U.push(x0(U)+"rotate("+N+")")}function kG(C,N,U,H){C!==N?H.push({i:U.push(x0(U)+"skewX(",null,")")-2,x:Co(C,N)}):N&&U.push(x0(U)+"skewX("+N+")")}function SG(C,N,U,H){if(C[0]!==N[0]||C[1]!==N[1]){var Y=U.push(x0(U)+"scale(",null,",",null,")");H.push({i:Y-4,x:Co(C[0],N[0])},{i:Y-2,x:Co(C[1],N[1])})}else(N[0]!==1||N[1]!==1)&&U.push(x0(U)+"scale("+N+")")}function t_(C,N){var U=[],H=[];return C=e.transform(C),N=e.transform(N),TG(C.translate,N.translate,U,H),AG(C.rotate,N.rotate,U,H),kG(C.skew,N.skew,U,H),SG(C.scale,N.scale,U,H),C=N=null,function(Y){for(var W=-1,le=H.length,ne;++W<le;)U[(ne=H[W]).i]=ne.x(Y);return U.join("")}}function CG(C,N){return N=(N-=C=+C)||1/N,function(U){return(U-C)/N}}function EG(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(LG(C[U]));return N}};function LG(C){for(var N=C.source,U=C.target,H=DG(N,U),Y=[N];N!==H;)N=N.parent,Y.push(N);for(var W=Y.length;U!==H;)Y.splice(W,0,U),U=U.parent;return Y}function n_(C){for(var N=[],U=C.parent;U!=null;)N.push(C),C=U,U=U.parent;return N.push(C),N}function DG(C,N){if(C===N)return C;for(var U=n_(C),H=n_(N),Y=U.pop(),W=H.pop(),le=null;Y===W;)le=Y,Y=U.pop(),W=H.pop();return le}e.layout.chord=function(){var C={},N,U,H,Y,W=0,le,ne,ce;function _e(){var De={},Fe=[],Ge=e.range(Y),Je=[],Ie,Ne,Be,Ze,$e;for(N=[],U=[],Ie=0,Ze=-1;++Ze<Y;){for(Ne=0,$e=-1;++$e<Y;)Ne+=H[Ze][$e];Fe.push(Ne),Je.push(e.range(Y)),Ie+=Ne}for(le&&Ge.sort(function(Br,Mr){return le(Fe[Br],Fe[Mr])}),ne&&Je.forEach(function(Br,Mr){Br.sort(function(Fr,pt){return ne(H[Mr][Fr],H[Mr][pt])})}),Ie=(rr-W*Y)/Ie,Ne=0,Ze=-1;++Ze<Y;){for(Be=Ne,$e=-1;++$e<Y;){var He=Ge[Ze],ir=Je[He][$e],hr=H[He][ir],gr=Ne,pr=Ne+=hr*Ie;De[He+"-"+ir]={index:He,subindex:ir,startAngle:gr,endAngle:pr,value:hr}}U[He]={index:He,startAngle:Be,endAngle:Ne,value:Fe[He]},Ne+=W}for(Ze=-1;++Ze<Y;)for($e=Ze-1;++$e<Y;){var br=De[Ze+"-"+$e],xr=De[$e+"-"+Ze];(br.value||xr.value)&&N.push(br.value<xr.value?{source:xr,target:br}:{source:br,target:xr})}ce&&Me()}function Me(){N.sort(function(De,Fe){return ce((De.source.value+De.target.value)/2,(Fe.source.value+Fe.target.value)/2)})}return C.matrix=function(De){return arguments.length?(Y=(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?(le=De,N=U=null,C):le},C.sortSubgroups=function(De){return arguments.length?(ne=De,N=null,C):ne},C.sortChords=function(De){return arguments.length?(ce=De,N&&Me(),C):ce},C.chords=function(){return N||_e(),N},C.groups=function(){return U||_e(),U},C},e.layout.force=function(){var C={},N=e.dispatch("start","tick","end"),U,H=[1,1],Y,W,le=.9,ne=zG,ce=NG,_e=-30,Me=qG,De=.1,Fe=.64,Ge=[],Je=[],Ie,Ne,Be;function Ze(He){return function(ir,hr,gr,pr){if(ir.point!==He){var br=ir.cx-He.x,xr=ir.cy-He.y,Br=pr-hr,Mr=br*br+xr*xr;if(Br*Br/Fe<Mr){if(Mr<Me){var Fr=ir.charge/Mr;He.px-=br*Fr,He.py-=xr*Fr}return!0}if(ir.point&&Mr&&Mr<Me){var Fr=ir.pointCharge/Mr;He.px-=br*Fr,He.py-=xr*Fr}}return!ir.charge}}C.tick=function(){if((W*=.99)<.005)return U=null,N.end({type:"end",alpha:W=0}),!0;var He=Ge.length,ir=Je.length,hr,gr,pr,br,xr,Br,Mr,Fr,pt;for(gr=0;gr<ir;++gr)pr=Je[gr],br=pr.source,xr=pr.target,Fr=xr.x-br.x,pt=xr.y-br.y,(Br=Fr*Fr+pt*pt)&&(Br=W*Ne[gr]*((Br=Math.sqrt(Br))-Ie[gr])/Br,Fr*=Br,pt*=Br,xr.x-=Fr*(Mr=br.weight+xr.weight?br.weight/(br.weight+xr.weight):.5),xr.y-=pt*Mr,br.x+=Fr*(Mr=1-Mr),br.y+=pt*Mr);if((Mr=W*De)&&(Fr=H[0]/2,pt=H[1]/2,gr=-1,Mr))for(;++gr<He;)pr=Ge[gr],pr.x+=(Fr-pr.x)*Mr,pr.y+=(pt-pr.y)*Mr;if(_e)for(a_(hr=e.geom.quadtree(Ge),W,Be),gr=-1;++gr<He;)(pr=Ge[gr]).fixed||hr.visit(Ze(pr));for(gr=-1;++gr<He;)pr=Ge[gr],pr.fixed?(pr.x=pr.px,pr.y=pr.py):(pr.x-=(pr.px-(pr.px=pr.x))*le,pr.y-=(pr.py-(pr.py=pr.y))*le);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?(ce=typeof He=="function"?He:+He,C):ce},C.friction=function(He){return arguments.length?(le=+He,C):le},C.charge=function(He){return arguments.length?(_e=typeof He=="function"?He:+He,C):_e},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?(Fe=He*He,C):Math.sqrt(Fe)},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=Tv(C.tick)),C):W},C.start=function(){var He,ir=Ge.length,hr=Je.length,gr=H[0],pr=H[1],br,xr;for(He=0;He<ir;++He)(xr=Ge[He]).index=He,xr.weight=0;for(He=0;He<hr;++He)xr=Je[He],typeof xr.source=="number"&&(xr.source=Ge[xr.source]),typeof xr.target=="number"&&(xr.target=Ge[xr.target]),++xr.source.weight,++xr.target.weight;for(He=0;He<ir;++He)xr=Ge[He],isNaN(xr.x)&&(xr.x=Br("x",gr)),isNaN(xr.y)&&(xr.y=Br("y",pr)),isNaN(xr.px)&&(xr.px=xr.x),isNaN(xr.py)&&(xr.py=xr.y);if(Ie=[],typeof ne=="function")for(He=0;He<hr;++He)Ie[He]=+ne.call(this,Je[He],He);else for(He=0;He<hr;++He)Ie[He]=ne;if(Ne=[],typeof ce=="function")for(He=0;He<hr;++He)Ne[He]=+ce.call(this,Je[He],He);else for(He=0;He<hr;++He)Ne[He]=ce;if(Be=[],typeof _e=="function")for(He=0;He<ir;++He)Be[He]=+_e.call(this,Ge[He],He);else for(He=0;He<ir;++He)Be[He]=_e;function Br(Mr,Fr){if(!br){for(br=new Array(ir),bt=0;bt<ir;++bt)br[bt]=[];for(bt=0;bt<hr;++bt){var pt=Je[bt];br[pt.source.index].push(pt.target),br[pt.target.index].push(pt.source)}}for(var an=br[He],bt=-1,cr=an.length,Or;++bt<cr;)if(!isNaN(Or=an[bt][Mr]))return Or;return Math.random()*Fr}return C.resume()},C.resume=function(){return C.alpha(.1)},C.stop=function(){return C.alpha(0)},C.drag=function(){if(Y||(Y=e.behavior.drag().origin(I).on("dragstart.force",RG).on("drag.force",$e).on("dragend.force",FG)),!arguments.length)return Y;this.on("mouseover.force",PG).on("mouseout.force",IG).call(Y)};function $e(He){He.px=e.event.x,He.py=e.event.y,C.resume()}return e.rebind(C,N,"on")};function RG(C){C.fixed|=2}function FG(C){C.fixed&=-7}function PG(C){C.fixed|=4,C.px=C.x,C.py=C.y}function IG(C){C.fixed&=-5}function a_(C,N,U){var H=0,Y=0;if(C.charge=0,!C.leaf)for(var W=C.nodes,le=W.length,ne=-1,ce;++ne<le;)ce=W[ne],ce!=null&&(a_(ce,N,U),C.charge+=ce.charge,H+=ce.charge*ce.cx,Y+=ce.charge*ce.cy);if(C.point){C.leaf||(C.point.x+=Math.random()-.5,C.point.y+=Math.random()-.5);var _e=N*U[C.point.index];C.charge+=C.pointCharge=_e,H+=_e*C.point.x,Y+=_e*C.point.y}C.cx=H/C.charge,C.cy=Y/C.charge}var zG=20,NG=1,qG=1/0;e.layout.hierarchy=function(){var C=UG,N=BG,U=OG;function H(Y){var W=[Y],le=[],ne;for(Y.depth=0;(ne=W.pop())!=null;)if(le.push(ne),(_e=N.call(H,ne,ne.depth))&&(ce=_e.length)){for(var ce,_e,Me;--ce>=0;)W.push(Me=_e[ce]),Me.parent=ne,Me.depth=ne.depth+1;U&&(ne.value=0),ne.children=_e}else U&&(ne.value=+U.call(H,ne,ne.depth)||0),delete ne.children;return Qi(Y,function(De){var Fe,Ge;C&&(Fe=De.children)&&Fe.sort(C),U&&(Ge=De.parent)&&(Ge.value+=De.value)}),le}return H.sort=function(Y){return arguments.length?(C=Y,H):C},H.children=function(Y){return arguments.length?(N=Y,H):N},H.value=function(Y){return arguments.length?(U=Y,H):U},H.revalue=function(Y){return U&&(of(Y,function(W){W.children&&(W.value=0)}),Qi(Y,function(W){var le;W.children||(W.value=+U.call(H,W,W.depth)||0),(le=W.parent)&&(le.value+=W.value)})),Y},H};function af(C,N){return e.rebind(C,N,"sort","children","value"),C.nodes=C,C.links=HG,C}function of(C,N){for(var U=[C];(C=U.pop())!=null;)if(N(C),(Y=C.children)&&(H=Y.length))for(var H,Y;--H>=0;)U.push(Y[H])}function Qi(C,N){for(var U=[C],H=[];(C=U.pop())!=null;)if(H.push(C),(le=C.children)&&(W=le.length))for(var Y=-1,W,le;++Y<W;)U.push(le[Y]);for(;(C=H.pop())!=null;)N(C)}function BG(C){return C.children}function OG(C){return C.value}function UG(C,N){return N.value-C.value}function HG(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,le,ne,ce){var _e=W.children;if(W.x=le,W.y=W.depth*ce,W.dx=ne,W.dy=ce,_e&&(De=_e.length)){var Me=-1,De,Fe,Ge;for(ne=W.value?ne/W.value:0;++Me<De;)U(Fe=_e[Me],le,Ge=Fe.value*ne,ce),le+=Ge}}function H(W){var le=W.children,ne=0;if(le&&(_e=le.length))for(var ce=-1,_e;++ce<_e;)ne=Math.max(ne,H(le[ce]));return 1+ne}function Y(W,le){var ne=C.call(this,W,le);return U(ne[0],0,N[0],N[1]/H(ne[0])),ne}return Y.size=function(W){return arguments.length?(N=W,Y):N},af(Y,C)},e.layout.pie=function(){var C=Number,N=i_,U=0,H=rr,Y=0;function W(le){var ne=le.length,ce=le.map(function(Ze,$e){return+C.call(W,Ze,$e)}),_e=+(typeof U=="function"?U.apply(this,arguments):U),Me=(typeof H=="function"?H.apply(this,arguments):H)-_e,De=Math.min(Math.abs(Me)/ne,+(typeof Y=="function"?Y.apply(this,arguments):Y)),Fe=De*(Me<0?-1:1),Ge=e.sum(ce),Je=Ge?(Me-ne*Fe)/Ge:0,Ie=e.range(ne),Ne=[],Be;return N!=null&&Ie.sort(N===i_?function(Ze,$e){return ce[$e]-ce[Ze]}:function(Ze,$e){return N(le[Ze],le[$e])}),Ie.forEach(function(Ze){Ne[Ze]={data:le[Ze],value:Be=ce[Ze],startAngle:_e,endAngle:_e+=Be*Je+Fe,padAngle:De}}),Ne}return W.value=function(le){return arguments.length?(C=le,W):C},W.sort=function(le){return arguments.length?(N=le,W):N},W.startAngle=function(le){return arguments.length?(U=le,W):U},W.endAngle=function(le){return arguments.length?(H=le,W):H},W.padAngle=function(le){return arguments.length?(Y=le,W):Y},W};var i_={};e.layout.stack=function(){var C=I,N=Gp,U=Yp,H=YG,Y=VG,W=GG;function le(ne,ce){if(!(Je=ne.length))return ne;var _e=ne.map(function(Ze,$e){return C.call(le,Ze,$e)}),Me=_e.map(function(Ze){return Ze.map(function($e,He){return[Y.call(le,$e,He),W.call(le,$e,He)]})}),De=N.call(le,Me,ce);_e=e.permute(_e,De),Me=e.permute(Me,De);var Fe=U.call(le,Me,ce),Ge=_e[0].length,Je,Ie,Ne,Be;for(Ne=0;Ne<Ge;++Ne)for(H.call(le,_e[0][Ne],Be=Fe[Ne],Me[0][Ne][1]),Ie=1;Ie<Je;++Ie)H.call(le,_e[Ie][Ne],Be+=Me[Ie-1][Ne][1],Me[Ie][Ne][1]);return ne}return le.values=function(ne){return arguments.length?(C=ne,le):C},le.order=function(ne){return arguments.length?(N=typeof ne=="function"?ne:XG.get(ne)||Gp,le):N},le.offset=function(ne){return arguments.length?(U=typeof ne=="function"?ne:WG.get(ne)||Yp,le):U},le.x=function(ne){return arguments.length?(Y=ne,le):Y},le.y=function(ne){return arguments.length?(W=ne,le):W},le.out=function(ne){return arguments.length?(H=ne,le):H},le};function VG(C){return C.x}function GG(C){return C.y}function YG(C,N,U){C.y0=N,C.y=U}var XG=e.map({"inside-out":function(C){var N=C.length,U,H,Y=C.map(ZG),W=C.map(JG),le=e.range(N).sort(function(De,Fe){return Y[De]-Y[Fe]}),ne=0,ce=0,_e=[],Me=[];for(U=0;U<N;++U)H=le[U],ne<ce?(ne+=W[H],_e.push(H)):(ce+=W[H],Me.push(H));return Me.reverse().concat(_e)},reverse:function(C){return e.range(C.length).reverse()},default:Gp}),WG=e.map({silhouette:function(C){var N=C.length,U=C[0].length,H=[],Y=0,W,le,ne,ce=[];for(le=0;le<U;++le){for(W=0,ne=0;W<N;W++)ne+=C[W][le][1];ne>Y&&(Y=ne),H.push(ne)}for(le=0;le<U;++le)ce[le]=(Y-H[le])/2;return ce},wiggle:function(C){var N=C.length,U=C[0],H=U.length,Y,W,le,ne,ce,_e,Me,De,Fe,Ge=[];for(Ge[0]=De=Fe=0,W=1;W<H;++W){for(Y=0,ne=0;Y<N;++Y)ne+=C[Y][W][1];for(Y=0,ce=0,Me=U[W][0]-U[W-1][0];Y<N;++Y){for(le=0,_e=(C[Y][W][1]-C[Y][W-1][1])/(2*Me);le<Y;++le)_e+=(C[le][W][1]-C[le][W-1][1])/Me;ce+=_e*C[Y][W][1]}Ge[W]=De-=ne?ce/ne*Me:0,De<Fe&&(Fe=De)}for(W=0;W<H;++W)Ge[W]-=Fe;return Ge},expand:function(C){var N=C.length,U=C[0].length,H=1/N,Y,W,le,ne=[];for(W=0;W<U;++W){for(Y=0,le=0;Y<N;Y++)le+=C[Y][W][1];if(le)for(Y=0;Y<N;Y++)C[Y][W][1]/=le;else for(Y=0;Y<N;Y++)C[Y][W][1]=H}for(W=0;W<U;++W)ne[W]=0;return ne},zero:Yp});function Gp(C){return e.range(C.length)}function Yp(C){for(var N=-1,U=C[0].length,H=[];++N<U;)H[N]=0;return H}function ZG(C){for(var N=1,U=0,H=C[0][1],Y,W=C.length;N<W;++N)(Y=C[N][1])>H&&(U=N,H=Y);return U}function JG(C){return C.reduce($G,0)}function $G(C,N){return C+N[1]}e.layout.histogram=function(){var C=!0,N=Number,U=QG,H=KG;function Y(W,Fe){for(var ne=[],ce=W.map(N,this),_e=U.call(this,ce,Fe),Me=H.call(this,_e,ce,Fe),De,Fe=-1,Ge=ce.length,Je=Me.length-1,Ie=C?1:1/Ge,Ne;++Fe<Je;)De=ne[Fe]=[],De.dx=Me[Fe+1]-(De.x=Me[Fe]),De.y=0;if(Je>0)for(Fe=-1;++Fe<Ge;)Ne=ce[Fe],Ne>=_e[0]&&Ne<=_e[1]&&(De=ne[e.bisect(Me,Ne,1,Je)-1],De.y+=Ie,De.push(W[Fe]));return ne}return Y.value=function(W){return arguments.length?(N=W,Y):N},Y.range=function(W){return arguments.length?(U=kr(W),Y):U},Y.bins=function(W){return arguments.length?(H=typeof W=="number"?function(le){return o_(le,W)}:kr(W),Y):H},Y.frequency=function(W){return arguments.length?(C=!!W,Y):C},Y};function KG(C,N){return o_(C,Math.ceil(Math.log(N.length)/Math.LN2+1))}function o_(C,N){for(var U=-1,H=+C[0],Y=(C[1]-H)/N,W=[];++U<=N;)W[U]=Y*U+H;return W}function QG(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(jG),N=0,U=[1,1],H;function Y(W,le){var ne=C.call(this,W,le),ce=ne[0],_e=U[0],Me=U[1],De=H==null?Math.sqrt:typeof H=="function"?H:function(){return H};if(ce.x=ce.y=0,Qi(ce,function(Ge){Ge.r=+De(Ge.value)}),Qi(ce,u_),N){var Fe=N*(H?1:Math.max(2*ce.r/_e,2*ce.r/Me))/2;Qi(ce,function(Ge){Ge.r+=Fe}),Qi(ce,u_),Qi(ce,function(Ge){Ge.r-=Fe})}return f_(ce,_e/2,Me/2,H?1:1/Math.max(2*ce.r/_e,2*ce.r/Me)),ne}return Y.size=function(W){return arguments.length?(U=W,Y):U},Y.radius=function(W){return arguments.length?(H=W==null||typeof W=="function"?W:+W,Y):H},Y.padding=function(W){return arguments.length?(N=+W,Y):N},af(Y,C)};function jG(C,N){return C.value-N.value}function Xp(C,N){var U=C._pack_next;C._pack_next=N,N._pack_prev=C,N._pack_next=U,U._pack_prev=N}function l_(C,N){C._pack_next=N,N._pack_prev=C}function s_(C,N){var U=N.x-C.x,H=N.y-C.y,Y=C.r+N.r;return .999*Y*Y>U*U+H*H}function u_(C){if(!(N=C.children)||!(Fe=N.length))return;var N,U=1/0,H=-1/0,Y=1/0,W=-1/0,le,ne,ce,_e,Me,De,Fe;function Ge(He){U=Math.min(He.x-He.r,U),H=Math.max(He.x+He.r,H),Y=Math.min(He.y-He.r,Y),W=Math.max(He.y+He.r,W)}if(N.forEach(eY),le=N[0],le.x=-le.r,le.y=0,Ge(le),Fe>1&&(ne=N[1],ne.x=ne.r,ne.y=0,Ge(ne),Fe>2))for(ce=N[2],c_(le,ne,ce),Ge(ce),Xp(le,ce),le._pack_prev=ce,Xp(ce,ne),ne=le._pack_next,_e=3;_e<Fe;_e++){c_(le,ne,ce=N[_e]);var Je=0,Ie=1,Ne=1;for(Me=ne._pack_next;Me!==ne;Me=Me._pack_next,Ie++)if(s_(Me,ce)){Je=1;break}if(Je==1)for(De=le._pack_prev;De!==Me._pack_prev&&!s_(De,ce);De=De._pack_prev,Ne++);Je?(Ie<Ne||Ie==Ne&&ne.r<le.r?l_(le,ne=Me):l_(le=De,ne),_e--):(Xp(le,ce),ne=ce,Ge(ce))}var Be=(U+H)/2,Ze=(Y+W)/2,$e=0;for(_e=0;_e<Fe;_e++)ce=N[_e],ce.x-=Be,ce.y-=Ze,$e=Math.max($e,ce.r+Math.sqrt(ce.x*ce.x+ce.y*ce.y));C.r=$e,N.forEach(rY)}function eY(C){C._pack_next=C._pack_prev=C}function rY(C){delete C._pack_next,delete C._pack_prev}function f_(C,N,U,H){var Y=C.children;if(C.x=N+=H*C.x,C.y=U+=H*C.y,C.r*=H,Y)for(var W=-1,le=Y.length;++W<le;)f_(Y[W],N,U,H)}function c_(C,N,U){var H=C.r+U.r,Y=N.x-C.x,W=N.y-C.y;if(H&&(Y||W)){var le=N.r+U.r,ne=Y*Y+W*W;le*=le,H*=H;var ce=.5+(H-le)/(2*ne),_e=Math.sqrt(Math.max(0,2*le*(H+ne)-(H-=ne)*H-le*le))/(2*ne);U.x=C.x+ce*Y+_e*W,U.y=C.y+ce*W-_e*Y}else U.x=C.x+H,U.y=C.y}e.layout.tree=function(){var C=e.layout.hierarchy().sort(null).value(null),N=v_,U=[1,1],H=null;function Y(Me,De){var Fe=C.call(this,Me,De),Ge=Fe[0],Je=W(Ge);if(Qi(Je,le),Je.parent.m=-Je.z,of(Je,ne),H)of(Ge,_e);else{var Ie=Ge,Ne=Ge,Be=Ge;of(Ge,function(ir){ir.x<Ie.x&&(Ie=ir),ir.x>Ne.x&&(Ne=ir),ir.depth>Be.depth&&(Be=ir)});var Ze=N(Ie,Ne)/2-Ie.x,$e=U[0]/(Ne.x+N(Ne,Ie)/2+Ze),He=U[1]/(Be.depth||1);of(Ge,function(ir){ir.x=(ir.x+Ze)*$e,ir.y=ir.depth*He})}return Fe}function W(Me){for(var De={A:null,children:[Me]},Fe=[De],Ge;(Ge=Fe.pop())!=null;)for(var Je=Ge.children,Ie,Ne=0,Be=Je.length;Ne<Be;++Ne)Fe.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 le(Me){var De=Me.children,Fe=Me.parent.children,Ge=Me.i?Fe[Me.i-1]:null;if(De.length){nY(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=ce(Me,Ge,Me.parent.A||Fe[0])}function ne(Me){Me._.x=Me.z+Me.parent.m,Me.m+=Me.parent.m}function ce(Me,De,Fe){if(De){for(var Ge=Me,Je=Me,Ie=De,Ne=Ge.parent.children[0],Be=Ge.m,Ze=Je.m,$e=Ie.m,He=Ne.m,ir;Ie=Zp(Ie),Ge=Wp(Ge),Ie&&Ge;)Ne=Wp(Ne),Je=Zp(Je),Je.a=Me,ir=Ie.z+$e-Ge.z-Be+N(Ie._,Ge._),ir>0&&(tY(aY(Ie,Me,Fe),Me,ir),Be+=ir,Ze+=ir),$e+=Ie.m,Be+=Ge.m,He+=Ne.m,Ze+=Je.m;Ie&&!Zp(Je)&&(Je.t=Ie,Je.m+=$e-Ze),Ge&&!Wp(Ne)&&(Ne.t=Ge,Ne.m+=Be-He,Fe=Me)}return Fe}function _e(Me){Me.x*=U[0],Me.y=Me.depth*U[1]}return Y.separation=function(Me){return arguments.length?(N=Me,Y):N},Y.size=function(Me){return arguments.length?(H=(U=Me)==null?_e:null,Y):H?null:U},Y.nodeSize=function(Me){return arguments.length?(H=(U=Me)==null?null:_e,Y):H?U:null},af(Y,C)};function v_(C,N){return C.parent==N.parent?1:2}function Wp(C){var N=C.children;return N.length?N[0]:C.t}function Zp(C){var N=C.children,U;return(U=N.length)?N[U-1]:C.t}function tY(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 nY(C){for(var N=0,U=0,H=C.children,Y=H.length,W;--Y>=0;)W=H[Y],W.z+=N,W.m+=N,N+=W.s+(U+=W.c)}function aY(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=v_,U=[1,1],H=!1;function Y(W,le){var ne=C.call(this,W,le),ce=ne[0],_e,Me=0;Qi(ce,function(Ie){var Ne=Ie.children;Ne&&Ne.length?(Ie.x=oY(Ne),Ie.y=iY(Ne)):(Ie.x=_e?Me+=N(Ie,_e):0,Ie.y=0,_e=Ie)});var De=h_(ce),Fe=d_(ce),Ge=De.x-N(De,Fe)/2,Je=Fe.x+N(Fe,De)/2;return Qi(ce,H?function(Ie){Ie.x=(Ie.x-ce.x)*U[0],Ie.y=(ce.y-Ie.y)*U[1]}:function(Ie){Ie.x=(Ie.x-Ge)/(Je-Ge)*U[0],Ie.y=(1-(ce.y?Ie.y/ce.y:1))*U[1]}),ne}return Y.separation=function(W){return arguments.length?(N=W,Y):N},Y.size=function(W){return arguments.length?(H=(U=W)==null,Y):H?null:U},Y.nodeSize=function(W){return arguments.length?(H=(U=W)!=null,Y):H?U:null},af(Y,C)};function iY(C){return 1+e.max(C,function(N){return N.y})}function oY(C){return C.reduce(function(N,U){return N+U.x},0)/C.length}function h_(C){var N=C.children;return N&&N.length?h_(N[0]):C}function d_(C){var N=C.children,U;return N&&(U=N.length)?d_(N[U-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),N=Math.round,U=[1,1],H=null,Y=Jp,W=!1,le,ne="squarify",ce=.5*(1+Math.sqrt(5));function _e(Ie,Ne){for(var Be=-1,Ze=Ie.length,$e,He;++Be<Ze;)He=($e=Ie[Be]).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 Be=Y(Ie),Ze=[],$e=Ne.slice(),He,ir=1/0,hr,gr=ne==="slice"?Be.dx:ne==="dice"?Be.dy:ne==="slice-dice"?Ie.depth&1?Be.dy:Be.dx:Math.min(Be.dx,Be.dy),pr;for(_e($e,Be.dx*Be.dy/Ie.value),Ze.area=0;(pr=$e.length)>0;)Ze.push(He=$e[pr-1]),Ze.area+=He.area,ne!=="squarify"||(hr=Fe(Ze,gr))<=ir?($e.pop(),ir=hr):(Ze.area-=Ze.pop().area,Ge(Ze,gr,Be,!1),gr=Math.min(Be.dx,Be.dy),Ze.length=Ze.area=0,ir=1/0);Ze.length&&(Ge(Ze,gr,Be,!0),Ze.length=Ze.area=0),Ne.forEach(Me)}}function De(Ie){var Ne=Ie.children;if(Ne&&Ne.length){var Be=Y(Ie),Ze=Ne.slice(),$e,He=[];for(_e(Ze,Be.dx*Be.dy/Ie.value),He.area=0;$e=Ze.pop();)He.push($e),He.area+=$e.area,$e.z!=null&&(Ge(He,$e.z?Be.dx:Be.dy,Be,!Ze.length),He.length=He.area=0);Ne.forEach(De)}}function Fe(Ie,Ne){for(var Be=Ie.area,Ze,$e=0,He=1/0,ir=-1,hr=Ie.length;++ir<hr;)(Ze=Ie[ir].area)&&(Ze<He&&(He=Ze),Ze>$e&&($e=Ze));return Be*=Be,Ne*=Ne,Be?Math.max(Ne*$e*ce/Be,Be/(Ne*He*ce)):1/0}function Ge(Ie,Ne,Be,Ze){var $e=-1,He=Ie.length,ir=Be.x,hr=Be.y,gr=Ne?N(Ie.area/Ne):0,pr;if(Ne==Be.dx){for((Ze||gr>Be.dy)&&(gr=Be.dy);++$e<He;)pr=Ie[$e],pr.x=ir,pr.y=hr,pr.dy=gr,ir+=pr.dx=Math.min(Be.x+Be.dx-ir,gr?N(pr.area/gr):0);pr.z=!0,pr.dx+=Be.x+Be.dx-ir,Be.y+=gr,Be.dy-=gr}else{for((Ze||gr>Be.dx)&&(gr=Be.dx);++$e<He;)pr=Ie[$e],pr.x=ir,pr.y=hr,pr.dx=gr,hr+=pr.dy=Math.min(Be.y+Be.dy-hr,gr?N(pr.area/gr):0);pr.z=!1,pr.dy+=Be.y+Be.dy-hr,Be.x+=gr,Be.dx-=gr}}function Je(Ie){var Ne=le||C(Ie),Be=Ne[0];return Be.x=Be.y=0,Be.value?(Be.dx=U[0],Be.dy=U[1]):Be.dx=Be.dy=0,le&&C.revalue(Be),_e([Be],Be.dx*Be.dy/Be.value),(le?De:Me)(Be),W&&(le=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?Jp($e):p_($e,typeof He=="number"?[He,He,He,He]:He)}function Be($e){return p_($e,Ie)}var Ze;return Y=(H=Ie)==null?Jp:(Ze=typeof Ie)=="function"?Ne:(Ze==="number"&&(Ie=[Ie,Ie,Ie,Ie]),Be),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,le=null,Je):W},Je.ratio=function(Ie){return arguments.length?(ce=Ie,Je):ce},Je.mode=function(Ie){return arguments.length?(ne=Ie+"",Je):ne},af(Je,C)};function Jp(C){return{x:C.x,y:C.y,dx:C.dx,dy:C.dy}}function p_(C,N){var U=C.x+N[3],H=C.y+N[0],Y=C.dx-N[1]-N[3],W=C.dy-N[0]-N[2];return Y<0&&(U+=Y/2,Y=0),W<0&&(H+=W/2,W=0),{x:U,y:H,dx:Y,dy:W}}e.random={normal:function(C,N){var U=arguments.length;return U<2&&(N=1),U<1&&(C=0),function(){var H,Y,W;do H=Math.random()*2-1,Y=Math.random()*2-1,W=H*H+Y*Y;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 Dv(C){var N=C[0],U=C[C.length-1];return N<U?[N,U]:[U,N]}function Rv(C){return C.rangeExtent?C.rangeExtent():Dv(C.range())}function lY(C,N,U,H){var Y=U(C[0],C[1]),W=H(N[0],N[1]);return function(le){return W(Y(le))}}function $p(C,N){var U=0,H=C.length-1,Y=C[U],W=C[H],le;return W<Y&&(le=U,U=H,H=le,le=Y,Y=W,W=le),C[U]=N.floor(Y),C[H]=N.ceil(W),C}function g_(C){return C?{floor:function(N){return Math.floor(N/C)*C},ceil:function(N){return Math.ceil(N/C)*C}}:sY}var sY={floor:I,ceil:I};function uY(C,N,U,H){var Y=[],W=[],le=0,ne=Math.min(C.length,N.length)-1;for(C[ne]<C[0]&&(C=C.slice().reverse(),N=N.slice().reverse());++le<=ne;)Y.push(U(C[le-1],C[le])),W.push(H(N[le-1],N[le]));return function(ce){var _e=e.bisect(C,ce,1,ne)-1;return W[_e](Y[_e](ce))}}e.scale.linear=function(){return y_([0,1],[0,1],as,!1)};function y_(C,N,U,H){var Y,W;function le(){var ce=Math.min(C.length,N.length)>2?uY:lY,_e=H?EG:CG;return Y=ce(C,N,_e,U),W=ce(N,C,_e,as),ne}function ne(ce){return Y(ce)}return ne.invert=function(ce){return W(ce)},ne.domain=function(ce){return arguments.length?(C=ce.map(Number),le()):C},ne.range=function(ce){return arguments.length?(N=ce,le()):N},ne.rangeRound=function(ce){return ne.range(ce).interpolate(Q6)},ne.clamp=function(ce){return arguments.length?(H=ce,le()):H},ne.interpolate=function(ce){return arguments.length?(U=ce,le()):U},ne.ticks=function(ce){return Qp(C,ce)},ne.tickFormat=function(ce,_e){return d3_scale_linearTickFormat(C,ce,_e)},ne.nice=function(ce){return b_(C,ce),le()},ne.copy=function(){return y_(C,N,U,H)},le()}function m_(C,N){return e.rebind(C,N,"range","rangeRound","interpolate","clamp")}function b_(C,N){return $p(C,g_(Kp(C,N)[2])),$p(C,g_(Kp(C,N)[2])),C}function Kp(C,N){N==null&&(N=10);var U=Dv(C),H=U[1]-U[0],Y=Math.pow(10,Math.floor(Math.log(H/N)/Math.LN10)),W=N/H*Y;return W<=.15?Y*=10:W<=.35?Y*=5:W<=.75&&(Y*=2),U[0]=Math.ceil(U[0]/Y)*Y,U[1]=Math.floor(U[1]/Y)*Y+Y*.5,U[2]=Y,U}function Qp(C,N){return e.range.apply(e,Kp(C,N))}var fY={s:1,g:1,p:1,r:1,e:1};function x_(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function Pbe(C,N){var U=x_(N[2]);return C in fY?Math.abs(U-x_(Math.max(m(N[0]),m(N[1]))))+ +(C!=="e"):U-(C==="%")*2}e.scale.log=function(){return __(e.scale.linear().domain([0,1]),10,!0,[1,10])};function __(C,N,U,H){function Y(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 le(ne){return C(Y(ne))}return le.invert=function(ne){return W(C.invert(ne))},le.domain=function(ne){return arguments.length?(U=ne[0]>=0,C.domain((H=ne.map(Number)).map(Y)),le):H},le.base=function(ne){return arguments.length?(N=+ne,C.domain(H.map(Y)),le):N},le.nice=function(){var ne=$p(H.map(Y),U?Math:cY);return C.domain(ne),H=ne.map(W),le},le.ticks=function(){var ne=Dv(H),ce=[],_e=ne[0],Me=ne[1],De=Math.floor(Y(_e)),Fe=Math.ceil(Y(Me)),Ge=N%1?2:N;if(isFinite(Fe-De)){if(U){for(;De<Fe;De++)for(var Je=1;Je<Ge;Je++)ce.push(W(De)*Je);ce.push(W(De))}else for(ce.push(W(De));De++<Fe;)for(var Je=Ge-1;Je>0;Je--)ce.push(W(De)*Je);for(De=0;ce[De]<_e;De++);for(Fe=ce.length;ce[Fe-1]>Me;Fe--);ce=ce.slice(De,Fe)}return ce},le.copy=function(){return __(C.copy(),N,U,H)},m_(le,C)}var cY={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return w_(e.scale.linear(),1,[0,1])};function w_(C,N,U){var H=Fv(N),Y=Fv(1/N);function W(le){return C(H(le))}return W.invert=function(le){return Y(C.invert(le))},W.domain=function(le){return arguments.length?(C.domain((U=le.map(Number)).map(H)),W):U},W.ticks=function(le){return Qp(U,le)},W.tickFormat=function(le,ne){return d3_scale_linearTickFormat(U,le,ne)},W.nice=function(le){return W.domain(b_(U,le))},W.exponent=function(le){return arguments.length?(H=Fv(N=le),Y=Fv(1/N),C.domain(U.map(H)),W):N},W.copy=function(){return w_(C.copy(),N,U)},m_(W,C)}function Fv(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 M_([],{t:"range",a:[[]]})};function M_(C,N){var U,H,Y;function W(ne){return H[((U.get(ne)||(N.t==="range"?U.set(ne,C.push(ne)):NaN))-1)%H.length]}function le(ne,ce){return e.range(C.length).map(function(_e){return ne+ce*_e})}return W.domain=function(ne){if(!arguments.length)return C;C=[],U=new x;for(var ce=-1,_e=ne.length,Me;++ce<_e;)U.has(Me=ne[ce])||U.set(Me,C.push(Me));return W[N.t].apply(W,N.a)},W.range=function(ne){return arguments.length?(H=ne,Y=0,N={t:"range",a:arguments},W):H},W.rangePoints=function(ne,ce){arguments.length<2&&(ce=0);var _e=ne[0],Me=ne[1],De=C.length<2?(_e=(_e+Me)/2,0):(Me-_e)/(C.length-1+ce);return H=le(_e+De*ce/2,De),Y=0,N={t:"rangePoints",a:arguments},W},W.rangeRoundPoints=function(ne,ce){arguments.length<2&&(ce=0);var _e=ne[0],Me=ne[1],De=C.length<2?(_e=Me=Math.round((_e+Me)/2),0):(Me-_e)/(C.length-1+ce)|0;return H=le(_e+Math.round(De*ce/2+(Me-_e-(C.length-1+ce)*De)/2),De),Y=0,N={t:"rangeRoundPoints",a:arguments},W},W.rangeBands=function(ne,ce,_e){arguments.length<2&&(ce=0),arguments.length<3&&(_e=ce);var Me=ne[1]<ne[0],De=ne[Me-0],Fe=ne[1-Me],Ge=(Fe-De)/(C.length-ce+2*_e);return H=le(De+Ge*_e,Ge),Me&&H.reverse(),Y=Ge*(1-ce),N={t:"rangeBands",a:arguments},W},W.rangeRoundBands=function(ne,ce,_e){arguments.length<2&&(ce=0),arguments.length<3&&(_e=ce);var Me=ne[1]<ne[0],De=ne[Me-0],Fe=ne[1-Me],Ge=Math.floor((Fe-De)/(C.length-ce+2*_e));return H=le(De+Math.round((Fe-De-(C.length-ce)*Ge)/2),Ge),Me&&H.reverse(),Y=Math.round(Ge*(1-ce)),N={t:"rangeRoundBands",a:arguments},W},W.rangeBand=function(){return Y},W.rangeExtent=function(){return Dv(N.a[0])},W.copy=function(){return M_(C,N)},W.domain(C)}e.scale.category10=function(){return e.scale.ordinal().range(vY)},e.scale.category20=function(){return e.scale.ordinal().range(hY)},e.scale.category20b=function(){return e.scale.ordinal().range(dY)},e.scale.category20c=function(){return e.scale.ordinal().range(pY)};var vY=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map($i),hY=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map($i),dY=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map($i),pY=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map($i);e.scale.quantile=function(){return T_([],[])};function T_(C,N){var U;function H(){var W=0,le=N.length;for(U=[];++W<le;)U[W-1]=e.quantile(C,W/le);return Y}function Y(W){if(!isNaN(W=+W))return N[e.bisect(U,W)]}return Y.domain=function(W){return arguments.length?(C=W.map(g).filter(b).sort(c),H()):C},Y.range=function(W){return arguments.length?(N=W,H()):N},Y.quantiles=function(){return U},Y.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]]},Y.copy=function(){return T_(C,N)},H()}e.scale.quantize=function(){return A_(0,1,[0,1])};function A_(C,N,U){var H,Y;function W(ne){return U[Math.max(0,Math.min(Y,Math.floor(H*(ne-C))))]}function le(){return H=U.length/(N-C),Y=U.length-1,W}return W.domain=function(ne){return arguments.length?(C=+ne[0],N=+ne[ne.length-1],le()):[C,N]},W.range=function(ne){return arguments.length?(U=ne,le()):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 A_(C,N,U)},le()}e.scale.threshold=function(){return k_([.5],[0,1])};function k_(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 k_(C,N)},U}e.scale.identity=function(){return S_([0,1])};function S_(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 Qp(C,U)},N.tickFormat=function(U,H){return d3_scale_linearTickFormat(C,U,H)},N.copy=function(){return S_(C)},N}e.svg={};function gY(){return 0}e.svg.arc=function(){var C=yY,N=mY,U=gY,H=Pv,Y=C_,W=E_,le=bY;function ne(){var _e=Math.max(0,+C.apply(this,arguments)),Me=Math.max(0,+N.apply(this,arguments)),De=Y.apply(this,arguments)-Ce,Fe=W.apply(this,arguments)-Ce,Ge=Math.abs(Fe-De),Je=De>Fe?0:1;if(Me<_e&&(Ie=Me,Me=_e,_e=Ie),Ge>=Qe)return ce(Me,Je)+(_e?ce(_e,1-Je):"")+"Z";var Ie,Ne,Be,Ze,$e=0,He=0,ir,hr,gr,pr,br,xr,Br,Mr,Fr=[];if((Ze=(+le.apply(this,arguments)||0)/2)&&(Be=H===Pv?Math.sqrt(_e*_e+Me*Me):+H.apply(this,arguments),Je||(He*=-1),Me&&(He=Tr(Be/Me*Math.sin(Ze))),_e&&($e=Tr(Be/_e*Math.sin(Ze)))),Me){ir=Me*Math.cos(De+He),hr=Me*Math.sin(De+He),gr=Me*Math.cos(Fe-He),pr=Me*Math.sin(Fe-He);var pt=Math.abs(Fe-De-2*He)<=nr?0:1;if(He&&Iv(ir,hr,gr,pr)===Je^pt){var an=(De+Fe)/2;ir=Me*Math.cos(an),hr=Me*Math.sin(an),gr=pr=null}}else ir=hr=0;if(_e){br=_e*Math.cos(Fe-$e),xr=_e*Math.sin(Fe-$e),Br=_e*Math.cos(De+$e),Mr=_e*Math.sin(De+$e);var bt=Math.abs(De-Fe+2*$e)<=nr?0:1;if($e&&Iv(br,xr,Br,Mr)===1-Je^bt){var cr=(De+Fe)/2;br=_e*Math.cos(cr),xr=_e*Math.sin(cr),Br=Mr=null}}else br=xr=0;if(Ge>Xe&&(Ie=Math.min(Math.abs(Me-_e)/2,+U.apply(this,arguments)))>.001){Ne=_e<Me^Je?0:1;var Or=Ie,Gr=Ie;if(Ge<nr){var gt=Br==null?[br,xr]:gr==null?[ir,hr]:zp([ir,hr],[Br,Mr],[gr,pr],[br,xr]),$t=ir-gt[0],gn=hr-gt[1],Bn=gr-gt[0],ia=pr-gt[1],ma=1/Math.sin(Math.acos(($t*Bn+gn*ia)/(Math.sqrt($t*$t+gn*gn)*Math.sqrt(Bn*Bn+ia*ia)))/2),oa=Math.sqrt(gt[0]*gt[0]+gt[1]*gt[1]);Gr=Math.min(Ie,(_e-oa)/(ma-1)),Or=Math.min(Ie,(Me-oa)/(ma+1))}if(gr!=null){var Ta=zv(Br==null?[br,xr]:[Br,Mr],[ir,hr],Me,Or,Je),Xn=zv([gr,pr],[br,xr],Me,Or,Je);Ie===Or?Fr.push("M",Ta[0],"A",Or,",",Or," 0 0,",Ne," ",Ta[1],"A",Me,",",Me," 0 ",1-Je^Iv(Ta[1][0],Ta[1][1],Xn[1][0],Xn[1][1]),",",Je," ",Xn[1],"A",Or,",",Or," 0 0,",Ne," ",Xn[0]):Fr.push("M",Ta[0],"A",Or,",",Or," 0 1,",Ne," ",Xn[0])}else Fr.push("M",ir,",",hr);if(Br!=null){var Aa=zv([ir,hr],[Br,Mr],_e,-Gr,Je),os=zv([br,xr],gr==null?[ir,hr]:[gr,pr],_e,-Gr,Je);Ie===Gr?Fr.push("L",os[0],"A",Gr,",",Gr," 0 0,",Ne," ",os[1],"A",_e,",",_e," 0 ",Je^Iv(os[1][0],os[1][1],Aa[1][0],Aa[1][1]),",",1-Je," ",Aa[1],"A",Gr,",",Gr," 0 0,",Ne," ",Aa[0]):Fr.push("L",os[0],"A",Gr,",",Gr," 0 0,",Ne," ",Aa[0])}else Fr.push("L",br,",",xr)}else Fr.push("M",ir,",",hr),gr!=null&&Fr.push("A",Me,",",Me," 0 ",pt,",",Je," ",gr,",",pr),Fr.push("L",br,",",xr),Br!=null&&Fr.push("A",_e,",",_e," 0 ",bt,",",1-Je," ",Br,",",Mr);return Fr.push("Z"),Fr.join("")}function ce(_e,Me){return"M0,"+_e+"A"+_e+","+_e+" 0 1,"+Me+" 0,"+-_e+"A"+_e+","+_e+" 0 1,"+Me+" 0,"+_e}return ne.innerRadius=function(_e){return arguments.length?(C=kr(_e),ne):C},ne.outerRadius=function(_e){return arguments.length?(N=kr(_e),ne):N},ne.cornerRadius=function(_e){return arguments.length?(U=kr(_e),ne):U},ne.padRadius=function(_e){return arguments.length?(H=_e==Pv?Pv:kr(_e),ne):H},ne.startAngle=function(_e){return arguments.length?(Y=kr(_e),ne):Y},ne.endAngle=function(_e){return arguments.length?(W=kr(_e),ne):W},ne.padAngle=function(_e){return arguments.length?(le=kr(_e),ne):le},ne.centroid=function(){var _e=(+C.apply(this,arguments)+ +N.apply(this,arguments))/2,Me=(+Y.apply(this,arguments)+ +W.apply(this,arguments))/2-Ce;return[Math.cos(Me)*_e,Math.sin(Me)*_e]},ne};var Pv="auto";function yY(C){return C.innerRadius}function mY(C){return C.outerRadius}function C_(C){return C.startAngle}function E_(C){return C.endAngle}function bY(C){return C&&C.padAngle}function Iv(C,N,U,H){return(C-U)*N-(N-H)*C>0?0:1}function zv(C,N,U,H,Y){var W=C[0]-N[0],le=C[1]-N[1],ne=(Y?H:-H)/Math.sqrt(W*W+le*le),ce=ne*le,_e=-ne*W,Me=C[0]+ce,De=C[1]+_e,Fe=N[0]+ce,Ge=N[1]+_e,Je=(Me+Fe)/2,Ie=(De+Ge)/2,Ne=Fe-Me,Be=Ge-De,Ze=Ne*Ne+Be*Be,$e=U-H,He=Me*Ge-Fe*De,ir=(Be<0?-1:1)*Math.sqrt(Math.max(0,$e*$e*Ze-He*He)),hr=(He*Be-Ne*ir)/Ze,gr=(-He*Ne-Be*ir)/Ze,pr=(He*Be+Ne*ir)/Ze,br=(-He*Ne+Be*ir)/Ze,xr=hr-Je,Br=gr-Ie,Mr=pr-Je,Fr=br-Ie;return xr*xr+Br*Br>Mr*Mr+Fr*Fr&&(hr=pr,gr=br),[[hr-ce,gr-_e],[hr*U/$e,gr*U/$e]]}function L_(){return!0}function D_(C){var N=p0,U=Qu,H=L_,Y=wi,W=Y.key,le=.7;function ne(ce){var _e=[],Me=[],De=-1,Fe=ce.length,Ge,Je=kr(N),Ie=kr(U);function Ne(){_e.push("M",Y(C(Me),le))}for(;++De<Fe;)H.call(this,Ge=ce[De],De)?Me.push([+Je.call(this,Ge,De),+Ie.call(this,Ge,De)]):Me.length&&(Ne(),Me=[]);return Me.length&&Ne(),_e.length?_e.join(""):null}return ne.x=function(ce){return arguments.length?(N=ce,ne):N},ne.y=function(ce){return arguments.length?(U=ce,ne):U},ne.defined=function(ce){return arguments.length?(H=ce,ne):H},ne.interpolate=function(ce){return arguments.length?(typeof ce=="function"?W=Y=ce:W=(Y=jp.get(ce)||wi).key,ne):W},ne.tension=function(ce){return arguments.length?(le=ce,ne):le},ne}e.svg.line=function(){return D_(I)};var jp=e.map({linear:wi,"linear-closed":R_,step:xY,"step-before":eg,"step-after":rg,basis:F_,"basis-open":TY,"basis-closed":AY,bundle:kY,cardinal:MY,"cardinal-open":_Y,"cardinal-closed":wY,monotone:EY});jp.forEach(function(C,N){N.key=C,N.closed=/-closed$/.test(C)});function wi(C){return C.length>1?C.join("L"):C+"Z"}function R_(C){return C.join("L")+"Z"}function xY(C){for(var N=0,U=C.length,H=C[0],Y=[H[0],",",H[1]];++N<U;)Y.push("H",(H[0]+(H=C[N])[0])/2,"V",H[1]);return U>1&&Y.push("H",H[0]),Y.join("")}function eg(C){for(var N=0,U=C.length,H=C[0],Y=[H[0],",",H[1]];++N<U;)Y.push("V",(H=C[N])[1],"H",H[0]);return Y.join("")}function rg(C){for(var N=0,U=C.length,H=C[0],Y=[H[0],",",H[1]];++N<U;)Y.push("H",(H=C[N])[0],"V",H[1]);return Y.join("")}function _Y(C,N){return C.length<4?wi(C):C[1]+Nv(C.slice(1,-1),tg(C,N))}function wY(C,N){return C.length<3?R_(C):C[0]+Nv((C.push(C[0]),C),tg([C[C.length-2]].concat(C,[C[1]]),N))}function MY(C,N){return C.length<3?wi(C):C[0]+Nv(C,tg(C,N))}function Nv(C,N){if(N.length<1||C.length!=N.length&&C.length!=N.length+2)return wi(C);var U=C.length!=N.length,H="",Y=C[0],W=C[1],le=N[0],ne=le,ce=1;if(U&&(H+="Q"+(W[0]-le[0]*2/3)+","+(W[1]-le[1]*2/3)+","+W[0]+","+W[1],Y=C[1],ce=2),N.length>1){ne=N[1],W=C[ce],ce++,H+="C"+(Y[0]+le[0])+","+(Y[1]+le[1])+","+(W[0]-ne[0])+","+(W[1]-ne[1])+","+W[0]+","+W[1];for(var _e=2;_e<N.length;_e++,ce++)W=C[ce],ne=N[_e],H+="S"+(W[0]-ne[0])+","+(W[1]-ne[1])+","+W[0]+","+W[1]}if(U){var Me=C[ce];H+="Q"+(W[0]+ne[0]*2/3)+","+(W[1]+ne[1]*2/3)+","+Me[0]+","+Me[1]}return H}function tg(C,N){for(var U=[],H=(1-N)/2,Y,W=C[0],le=C[1],ne=1,ce=C.length;++ne<ce;)Y=W,W=le,le=C[ne],U.push([H*(le[0]-Y[0]),H*(le[1]-Y[1])]);return U}function F_(C){if(C.length<3)return wi(C);var N=1,U=C.length,H=C[0],Y=H[0],W=H[1],le=[Y,Y,Y,(H=C[1])[0]],ne=[W,W,W,H[1]],ce=[Y,",",W,"L",Qa(tl,le),",",Qa(tl,ne)];for(C.push(C[U-1]);++N<=U;)H=C[N],le.shift(),le.push(H[0]),ne.shift(),ne.push(H[1]),ng(ce,le,ne);return C.pop(),ce.push("L",H),ce.join("")}function TY(C){if(C.length<4)return wi(C);for(var N=[],U=-1,H=C.length,Y,W=[0],le=[0];++U<3;)Y=C[U],W.push(Y[0]),le.push(Y[1]);for(N.push(Qa(tl,W)+","+Qa(tl,le)),--U;++U<H;)Y=C[U],W.shift(),W.push(Y[0]),le.shift(),le.push(Y[1]),ng(N,W,le);return N.join("")}function AY(C){for(var N,U=-1,H=C.length,Y=H+4,W,le=[],ne=[];++U<4;)W=C[U%H],le.push(W[0]),ne.push(W[1]);for(N=[Qa(tl,le),",",Qa(tl,ne)],--U;++U<Y;)W=C[U%H],le.shift(),le.push(W[0]),ne.shift(),ne.push(W[1]),ng(N,le,ne);return N.join("")}function kY(C,N){var U=C.length-1;if(U)for(var H=C[0][0],Y=C[0][1],W=C[U][0]-H,le=C[U][1]-Y,ne=-1,ce,_e;++ne<=U;)ce=C[ne],_e=ne/U,ce[0]=N*ce[0]+(1-N)*(H+_e*W),ce[1]=N*ce[1]+(1-N)*(Y+_e*le);return F_(C)}function Qa(C,N){return C[0]*N[0]+C[1]*N[1]+C[2]*N[2]+C[3]*N[3]}var P_=[0,2/3,1/3,0],I_=[0,1/3,2/3,0],tl=[0,1/6,2/3,1/6];function ng(C,N,U){C.push("C",Qa(P_,N),",",Qa(P_,U),",",Qa(I_,N),",",Qa(I_,U),",",Qa(tl,N),",",Qa(tl,U))}function ag(C,N){return(N[1]-C[1])/(N[0]-C[0])}function SY(C){for(var N=0,U=C.length-1,H=[],Y=C[0],W=C[1],le=H[0]=ag(Y,W);++N<U;)H[N]=(le+(le=ag(Y=W,W=C[N+1])))/2;return H[N]=le,H}function CY(C){for(var N=[],U,H,Y,W,le=SY(C),ne=-1,ce=C.length-1;++ne<ce;)U=ag(C[ne],C[ne+1]),m(U)<Xe?le[ne]=le[ne+1]=0:(H=le[ne]/U,Y=le[ne+1]/U,W=H*H+Y*Y,W>9&&(W=U*3/Math.sqrt(W),le[ne]=W*H,le[ne+1]=W*Y));for(ne=-1;++ne<=ce;)W=(C[Math.min(ce,ne+1)][0]-C[Math.max(0,ne-1)][0])/(6*(1+le[ne]*le[ne])),N.push([W||0,le[ne]*W||0]);return N}function EY(C){return C.length<3?wi(C):C[0]+Nv(C,CY(C))}e.svg.line.radial=function(){var C=D_(z_);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function z_(C){for(var N,U=-1,H=C.length,Y,W;++U<H;)N=C[U],Y=N[0],W=N[1]-Ce,N[0]=Y*Math.cos(W),N[1]=Y*Math.sin(W);return C}function N_(C){var N=p0,U=p0,H=0,Y=Qu,W=L_,le=wi,ne=le.key,ce=le,_e="L",Me=.7;function De(Fe){var Ge=[],Je=[],Ie=[],Ne=-1,Be=Fe.length,Ze,$e=kr(N),He=kr(H),ir=N===U?function(){return gr}:kr(U),hr=H===Y?function(){return pr}:kr(Y),gr,pr;function br(){Ge.push("M",le(C(Ie),Me),_e,ce(C(Je.reverse()),Me),"Z")}for(;++Ne<Be;)W.call(this,Ze=Fe[Ne],Ne)?(Je.push([gr=+$e.call(this,Ze,Ne),pr=+He.call(this,Ze,Ne)]),Ie.push([+ir.call(this,Ze,Ne),+hr.call(this,Ze,Ne)])):Je.length&&(br(),Je=[],Ie=[]);return Je.length&&br(),Ge.length?Ge.join(""):null}return De.x=function(Fe){return arguments.length?(N=U=Fe,De):U},De.x0=function(Fe){return arguments.length?(N=Fe,De):N},De.x1=function(Fe){return arguments.length?(U=Fe,De):U},De.y=function(Fe){return arguments.length?(H=Y=Fe,De):Y},De.y0=function(Fe){return arguments.length?(H=Fe,De):H},De.y1=function(Fe){return arguments.length?(Y=Fe,De):Y},De.defined=function(Fe){return arguments.length?(W=Fe,De):W},De.interpolate=function(Fe){return arguments.length?(typeof Fe=="function"?ne=le=Fe:ne=(le=jp.get(Fe)||wi).key,ce=le.reverse||le,_e=le.closed?"M":"L",De):ne},De.tension=function(Fe){return arguments.length?(Me=Fe,De):Me},De}eg.reverse=rg,rg.reverse=eg,e.svg.area=function(){return N_(I)},e.svg.area.radial=function(){var C=N_(z_);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 q_(C){return C.source}function B_(C){return C.target}e.svg.chord=function(){var C=q_,N=B_,U=LY,H=C_,Y=E_;function W(Me,De){var Fe=le(this,C,Me,De),Ge=le(this,N,Me,De);return"M"+Fe.p0+ce(Fe.r,Fe.p1,Fe.a1-Fe.a0)+(ne(Fe,Ge)?_e(Fe.r,Fe.p1,Fe.r,Fe.p0):_e(Fe.r,Fe.p1,Ge.r,Ge.p0)+ce(Ge.r,Ge.p1,Ge.a1-Ge.a0)+_e(Ge.r,Ge.p1,Fe.r,Fe.p0))+"Z"}function le(Me,De,Fe,Ge){var Je=De.call(Me,Fe,Ge),Ie=U.call(Me,Je,Ge),Ne=H.call(Me,Je,Ge)-Ce,Be=Y.call(Me,Je,Ge)-Ce;return{r:Ie,a0:Ne,a1:Be,p0:[Ie*Math.cos(Ne),Ie*Math.sin(Ne)],p1:[Ie*Math.cos(Be),Ie*Math.sin(Be)]}}function ne(Me,De){return Me.a0==De.a0&&Me.a1==De.a1}function ce(Me,De,Fe){return"A"+Me+","+Me+" 0 "+ +(Fe>nr)+",1 "+De}function _e(Me,De,Fe,Ge){return"Q 0,0 "+Ge}return W.radius=function(Me){return arguments.length?(U=kr(Me),W):U},W.source=function(Me){return arguments.length?(C=kr(Me),W):C},W.target=function(Me){return arguments.length?(N=kr(Me),W):N},W.startAngle=function(Me){return arguments.length?(H=kr(Me),W):H},W.endAngle=function(Me){return arguments.length?(Y=kr(Me),W):Y},W};function LY(C){return C.radius}e.svg.diagonal=function(){var C=q_,N=B_,U=O_;function H(Y,W){var le=C.call(this,Y,W),ne=N.call(this,Y,W),ce=(le.y+ne.y)/2,_e=[le,{x:le.x,y:ce},{x:ne.x,y:ce},ne];return _e=_e.map(U),"M"+_e[0]+"C"+_e[1]+" "+_e[2]+" "+_e[3]}return H.source=function(Y){return arguments.length?(C=kr(Y),H):C},H.target=function(Y){return arguments.length?(N=kr(Y),H):N},H.projection=function(Y){return arguments.length?(U=Y,H):U},H};function O_(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),N=O_,U=C.projection;return C.projection=function(H){return arguments.length?U(DY(N=H)):N},C};function DY(C){return function(){var N=C.apply(this,arguments),U=N[0],H=N[1]-Ce;return[U*Math.cos(H),U*Math.sin(H)]}}e.svg.symbol=function(){var C=FY,N=RY;function U(H,Y){return(H_.get(C.call(this,H,Y))||U_)(N.call(this,H,Y))}return U.type=function(H){return arguments.length?(C=kr(H),U):C},U.size=function(H){return arguments.length?(N=kr(H),U):N},U};function RY(){return 64}function FY(){return"circle"}function U_(C){var N=Math.sqrt(C/nr);return"M0,"+N+"A"+N+","+N+" 0 1,1 0,"+-N+"A"+N+","+N+" 0 1,1 0,"+N+"Z"}var H_=e.map({circle:U_,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*V_)),U=N*V_;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/qv),U=N*qv/2;return"M0,"+U+"L"+N+","+-U+" "+-N+","+-U+"Z"},"triangle-up":function(C){var N=Math.sqrt(C/qv),U=N*qv/2;return"M0,"+-U+"L"+N+","+U+" "+-N+","+U+"Z"}});e.svg.symbolTypes=H_.keys();var qv=Math.sqrt(3),V_=Math.tan(30*ze);Q.transition=function(C){for(var N=is||++Y_,U=og(C),H=[],Y,W,le=Ov||{time:Date.now(),ease:cG,delay:0,duration:250},ne=-1,ce=this.length;++ne<ce;){H.push(Y=[]);for(var _e=this[ne],Me=-1,De=_e.length;++Me<De;)(W=_e[Me])&&Uv(W,Me,U,N,le),Y.push(W)}return lf(H,U,N)},Q.interrupt=function(C){return this.each(C==null?Bv:G_(og(C)))};var Bv=G_(og());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 lf(C,N,U){return q(C,pn),C.namespace=N,C.id=U,C}var pn=[],Y_=0,is,Ov;pn.call=Q.call,pn.empty=Q.empty,pn.node=Q.node,pn.size=Q.size,e.transition=function(C,N){return C&&C.transition?is?C.transition(N):C:e.selection().transition(C)},e.transition.prototype=pn,pn.select=function(C){var N=this.id,U=this.namespace,H=[],Y,W,le;C=te(C);for(var ne=-1,ce=this.length;++ne<ce;){H.push(Y=[]);for(var _e=this[ne],Me=-1,De=_e.length;++Me<De;)(le=_e[Me])&&(W=C.call(le,le.__data__,Me,ne))?("__data__"in le&&(W.__data__=le.__data__),Uv(W,Me,U,N,le[U][N]),Y.push(W)):Y.push(null)}return lf(H,U,N)},pn.selectAll=function(C){var N=this.id,U=this.namespace,H=[],Y,W,le,ne,ce;C=ue(C);for(var _e=-1,Me=this.length;++_e<Me;)for(var De=this[_e],Fe=-1,Ge=De.length;++Fe<Ge;)if(le=De[Fe]){ce=le[U][N],W=C.call(le,le.__data__,Fe,_e),H.push(Y=[]);for(var Je=-1,Ie=W.length;++Je<Ie;)(ne=W[Je])&&Uv(ne,Je,U,N,ce),Y.push(ne)}return lf(H,U,N)},pn.filter=function(C){var N=[],U,H,Y;typeof C!="function"&&(C=oe(C));for(var W=0,le=this.length;W<le;W++){N.push(U=[]);for(var H=this[W],ne=0,ce=H.length;ne<ce;ne++)(Y=H[ne])&&C.call(Y,Y.__data__,ne,W)&&U.push(Y)}return lf(N,this.namespace,this.id)},pn.tween=function(C,N){var U=this.id,H=this.namespace;return arguments.length<2?this.node()[H][U].tween.get(C):pe(this,N==null?function(Y){Y[H][U].tween.remove(C)}:function(Y){Y[H][U].tween.set(C,N)})};function ig(C,N,U,H){var Y=C.id,W=C.namespace;return pe(C,typeof U=="function"?function(le,ne,ce){le[W][Y].tween.set(N,H(U.call(le,le.__data__,ne,ce)))}:(U=H(U),function(le){le[W][Y].tween.set(N,U)}))}pn.attr=function(C,N){if(arguments.length<2){for(N in C)this.attr(N,C[N]);return this}var U=C=="transform"?t_:as,H=e.ns.qualify(C);function Y(){this.removeAttribute(H)}function W(){this.removeAttributeNS(H.space,H.local)}function le(ce){return ce==null?Y:(ce+="",function(){var _e=this.getAttribute(H),Me;return _e!==ce&&(Me=U(_e,ce),function(De){this.setAttribute(H,Me(De))})})}function ne(ce){return ce==null?W:(ce+="",function(){var _e=this.getAttributeNS(H.space,H.local),Me;return _e!==ce&&(Me=U(_e,ce),function(De){this.setAttributeNS(H.space,H.local,Me(De))})})}return ig(this,"attr."+C,N,H.local?ne:le)},pn.attrTween=function(C,N){var U=e.ns.qualify(C);function H(W,le){var ne=N.call(this,W,le,this.getAttribute(U));return ne&&function(ce){this.setAttribute(U,ne(ce))}}function Y(W,le){var ne=N.call(this,W,le,this.getAttributeNS(U.space,U.local));return ne&&function(ce){this.setAttributeNS(U.space,U.local,ne(ce))}}return this.tween("attr."+C,U.local?Y:H)},pn.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 Y(){this.style.removeProperty(C)}function W(le){return le==null?Y:(le+="",function(){var ne=o(this).getComputedStyle(this,null).getPropertyValue(C),ce;return ne!==le&&(ce=as(ne,le),function(_e){this.style.setProperty(C,ce(_e),U)})})}return ig(this,"style."+C,N,W)},pn.styleTween=function(C,N,U){arguments.length<3&&(U="");function H(Y,W){var le=N.call(this,Y,W,o(this).getComputedStyle(this,null).getPropertyValue(C));return le&&function(ne){this.style.setProperty(C,le(ne),U)}}return this.tween("style."+C,H)},pn.text=function(C){return ig(this,"text",C,PY)};function PY(C){return C==null&&(C=""),function(){this.textContent=C}}pn.remove=function(){var C=this.namespace;return this.each("end.transition",function(){var N;this[C].count<2&&(N=this.parentNode)&&N.removeChild(this)})},pn.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)),pe(this,function(H){H[U][N].ease=C}))},pn.delay=function(C){var N=this.id,U=this.namespace;return arguments.length<1?this.node()[U][N].delay:pe(this,typeof C=="function"?function(H,Y,W){H[U][N].delay=+C.call(H,H.__data__,Y,W)}:(C=+C,function(H){H[U][N].delay=C}))},pn.duration=function(C){var N=this.id,U=this.namespace;return arguments.length<1?this.node()[U][N].duration:pe(this,typeof C=="function"?function(H,Y,W){H[U][N].duration=Math.max(1,C.call(H,H.__data__,Y,W))}:(C=Math.max(1,C),function(H){H[U][N].duration=C}))},pn.each=function(C,N){var U=this.id,H=this.namespace;if(arguments.length<2){var Y=Ov,W=is;try{is=U,pe(this,function(le,ne,ce){Ov=le[H][U],C.call(le,le.__data__,ne,ce)})}finally{Ov=Y,is=W}}else pe(this,function(le){var ne=le[H][U];(ne.event||(ne.event=e.dispatch("start","end","interrupt"))).on(C,N)});return this},pn.transition=function(){for(var C=this.id,N=++Y_,U=this.namespace,H=[],Y,W,le,ne,ce=0,_e=this.length;ce<_e;ce++){H.push(Y=[]);for(var W=this[ce],Me=0,De=W.length;Me<De;Me++)(le=W[Me])&&(ne=le[U][C],Uv(le,Me,U,N,{time:ne.time,ease:ne.ease,delay:ne.delay+ne.duration,duration:ne.duration})),Y.push(le)}return lf(H,U,N)};function og(C){return C==null?"__transition__":"__transition_"+C+"__"}function Uv(C,N,U,H,Y){var W=C[U]||(C[U]={active:0,count:0}),le=W[H],ne,ce,_e,Me,De;function Fe(Ie){var Ne=le.delay;if(ce.t=Ne+ne,Ne<=Ie)return Ge(Ie-Ne);ce.c=Ge}function Ge(Ie){var Ne=W.active,Be=W[Ne];Be&&(Be.timer.c=null,Be.timer.t=NaN,--W.count,delete W[Ne],Be.event&&Be.event.interrupt.call(C,C.__data__,Be.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]}ce.c=Je,Tv(function(){return ce.c&&Je(Ie||1)&&(ce.c=null,ce.t=NaN),1},0,ne),W.active=H,le.event&&le.event.start.call(C,C.__data__,N),De=[],le.tween.forEach(function(He,ir){(ir=ir.call(C,C.__data__,N))&&De.push(ir)}),Me=le.ease,_e=le.duration}function Je(Ie){for(var Ne=Ie/_e,Be=Me(Ne),Ze=De.length;Ze>0;)De[--Ze].call(C,Be);if(Ne>=1)return le.event&&le.event.end.call(C,C.__data__,N),--W.count?delete W[H]:delete C[U],1}le||(ne=Y.time,ce=Tv(Fe,0,ne),le=W[H]={tween:new x,time:ne,timer:ce,delay:Y.delay,duration:Y.duration,ease:Y.ease,index:N},Y=null,++W.count)}e.svg.axis=function(){var C=e.scale.linear(),N=X_,U=6,H=6,Y=3,W=[10],le=null,ne;function ce(_e){_e.each(function(){var Me=e.select(this),De=this.__chart__||C,Fe=this.__chart__=C.copy(),Ge=le==null?Fe.ticks?Fe.ticks.apply(Fe,W):Fe.domain():le,Je=ne==null?Fe.tickFormat?Fe.tickFormat.apply(Fe,W):I:ne,Ie=Me.selectAll(".tick").data(Ge,Fe),Ne=Ie.enter().insert("g",".domain").attr("class","tick").style("opacity",Xe),Be=e.transition(Ie.exit()).style("opacity",Xe).remove(),Ze=e.transition(Ie.order()).style("opacity",1),$e=Math.max(U,0)+Y,He,ir=Rv(Fe),hr=Me.selectAll(".domain").data([0]),gr=(hr.enter().append("path").attr("class","domain"),e.transition(hr));Ne.append("line"),Ne.append("text");var pr=Ne.select("line"),br=Ze.select("line"),xr=Ie.select("text").text(Je),Br=Ne.select("text"),Mr=Ze.select("text"),Fr=N==="top"||N==="left"?-1:1,pt,an,bt,cr;if(N==="bottom"||N==="top"?(He=zY,pt="x",bt="y",an="x2",cr="y2",xr.attr("dy",Fr<0?"0em":".71em").style("text-anchor","middle"),gr.attr("d","M"+ir[0]+","+Fr*H+"V0H"+ir[1]+"V"+Fr*H)):(He=NY,pt="y",bt="x",an="y2",cr="x2",xr.attr("dy",".32em").style("text-anchor",Fr<0?"end":"start"),gr.attr("d","M"+Fr*H+","+ir[0]+"H0V"+ir[1]+"H"+Fr*H)),pr.attr(cr,Fr*U),Br.attr(bt,Fr*$e),br.attr(an,0).attr(cr,Fr*U),Mr.attr(pt,0).attr(bt,Fr*$e),Fe.rangeBand){var Or=Fe,Gr=Or.rangeBand()/2;De=Fe=function(gt){return Or(gt)+Gr}}else De.rangeBand?De=Fe:Be.call(He,Fe,De);Ne.call(He,De,Fe),Ze.call(He,Fe,Fe)})}return ce.scale=function(_e){return arguments.length?(C=_e,ce):C},ce.orient=function(_e){return arguments.length?(N=_e in IY?_e+"":X_,ce):N},ce.ticks=function(){return arguments.length?(W=t(arguments),ce):W},ce.tickValues=function(_e){return arguments.length?(le=_e,ce):le},ce.tickFormat=function(_e){return arguments.length?(ne=_e,ce):ne},ce.tickSize=function(_e){var Me=arguments.length;return Me?(U=+_e,H=+arguments[Me-1],ce):U},ce.innerTickSize=function(_e){return arguments.length?(U=+_e,ce):U},ce.outerTickSize=function(_e){return arguments.length?(H=+_e,ce):H},ce.tickPadding=function(_e){return arguments.length?(Y=+_e,ce):Y},ce.tickSubdivide=function(){return arguments.length&&ce},ce};var X_="bottom",IY={top:1,right:1,bottom:1,left:1};function zY(C,N,U){C.attr("transform",function(H){var Y=N(H);return"translate("+(isFinite(Y)?Y:U(H))+",0)"})}function NY(C,N,U){C.attr("transform",function(H){var Y=N(H);return"translate(0,"+(isFinite(Y)?Y:U(H))+")"})}e.svg.brush=function(){var C=j(Me,"brushstart","brush","brushend"),N=null,U=null,H=[0,0],Y=[0,0],W,le,ne=!0,ce=!0,_e=lg[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),Be=Ne.selectAll(".background").data([0]);Be.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(_e,I);Ze.exit().remove(),Ze.enter().append("g").attr("class",function(hr){return"resize "+hr}).style("cursor",function(hr){return qY[hr]}).append("rect").attr("x",function(hr){return/[ew]$/.test(hr)?-3:null}).attr("y",function(hr){return/^[ns]/.test(hr)?-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(Be),ir;N&&(ir=Rv(N),He.attr("x",ir[0]).attr("width",ir[1]-ir[0]),Fe($e)),U&&(ir=Rv(U),He.attr("y",ir[0]).attr("height",ir[1]-ir[0]),Ge($e)),De($e)})}Me.event=function(Ie){Ie.each(function(){var Ne=C.of(this,arguments),Be={x:H,y:Y,i:W,j:le},Ze=this.__chart__||Be;this.__chart__=Be,is?e.select(this).transition().each("start.brush",function(){W=Ze.i,le=Ze.j,H=Ze.x,Y=Ze.y,Ne({type:"brushstart"})}).tween("brush:brush",function(){var $e=Lv(H,Be.x),He=Lv(Y,Be.y);return W=le=null,function(ir){H=Be.x=$e(ir),Y=Be.y=He(ir),Ne({type:"brush",mode:"resize"})}}).each("end.brush",function(){W=Be.i,le=Be.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)]+","+Y[+/^s/.test(Ne)]+")"})}function Fe(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",Y[0]),Ie.selectAll(".extent,.e>rect,.w>rect").attr("height",Y[1]-Y[0])}function Je(){var Ie=this,Ne=e.select(e.event.target),Be=C.of(Ie,arguments),Ze=e.select(Ie),$e=Ne.datum(),He=!/^(n|s)$/.test($e)&&N,ir=!/^(e|w)$/.test($e)&&U,hr=Ne.classed("extent"),gr=Ve(Ie),pr,br=e.mouse(Ie),xr,Br=e.select(o(Ie)).on("keydown.brush",pt).on("keyup.brush",an);if(e.event.changedTouches?Br.on("touchmove.brush",bt).on("touchend.brush",Or):Br.on("mousemove.brush",bt).on("mouseup.brush",Or),Ze.interrupt().selectAll("*").interrupt(),hr)br[0]=H[0]-br[0],br[1]=Y[0]-br[1];else if($e){var Mr=+/w$/.test($e),Fr=+/^n/.test($e);xr=[H[1-Mr]-br[0],Y[1-Fr]-br[1]],br[0]=H[Mr],br[1]=Y[Fr]}else e.event.altKey&&(pr=br.slice());Ze.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ne.style("cursor")),Be({type:"brushstart"}),bt();function pt(){e.event.keyCode==32&&(hr||(pr=null,br[0]-=H[1],br[1]-=Y[1],hr=2),G())}function an(){e.event.keyCode==32&&hr==2&&(br[0]+=H[1],br[1]+=Y[1],hr=0,G())}function bt(){var Gr=e.mouse(Ie),gt=!1;xr&&(Gr[0]+=xr[0],Gr[1]+=xr[1]),hr||(e.event.altKey?(pr||(pr=[(H[0]+H[1])/2,(Y[0]+Y[1])/2]),br[0]=H[+(Gr[0]<pr[0])],br[1]=Y[+(Gr[1]<pr[1])]):pr=null),He&&cr(Gr,N,0)&&(Fe(Ze),gt=!0),ir&&cr(Gr,U,1)&&(Ge(Ze),gt=!0),gt&&(De(Ze),Be({type:"brush",mode:hr?"move":"resize"}))}function cr(Gr,gt,$t){var gn=Rv(gt),Bn=gn[0],ia=gn[1],ma=br[$t],oa=$t?Y:H,Ta=oa[1]-oa[0],Xn,Aa;if(hr&&(Bn-=ma,ia-=Ta+ma),Xn=($t?ce:ne)?Math.max(Bn,Math.min(ia,Gr[$t])):Gr[$t],hr?Aa=(Xn+=ma)+Ta:(pr&&(ma=Math.max(Bn,Math.min(ia,2*pr[$t]-Xn))),ma<Xn?(Aa=Xn,Xn=ma):Aa=ma),oa[0]!=Xn||oa[1]!=Aa)return $t?le=null:W=null,oa[0]=Xn,oa[1]=Aa,!0}function Or(){bt(),Ze.style("pointer-events","all").selectAll(".resize").style("display",Me.empty()?"none":null),e.select("body").style("cursor",null),Br.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),gr(),Be({type:"brushend"})}}return Me.x=function(Ie){return arguments.length?(N=Ie,_e=lg[!N<<1|!U],Me):N},Me.y=function(Ie){return arguments.length?(U=Ie,_e=lg[!N<<1|!U],Me):U},Me.clamp=function(Ie){return arguments.length?(N&&U?(ne=!!Ie[0],ce=!!Ie[1]):N?ne=!!Ie:U&&(ce=!!Ie),Me):N&&U?[ne,ce]:N?ne:U?ce:null},Me.extent=function(Ie){var Ne,Be,Ze,$e,He;return arguments.length?(N&&(Ne=Ie[0],Be=Ie[1],U&&(Ne=Ne[0],Be=Be[0]),W=[Ne,Be],N.invert&&(Ne=N(Ne),Be=N(Be)),Be<Ne&&(He=Ne,Ne=Be,Be=He),(Ne!=H[0]||Be!=H[1])&&(H=[Ne,Be])),U&&(Ze=Ie[0],$e=Ie[1],N&&(Ze=Ze[1],$e=$e[1]),le=[Ze,$e],U.invert&&(Ze=U(Ze),$e=U($e)),$e<Ze&&(He=Ze,Ze=$e,$e=He),(Ze!=Y[0]||$e!=Y[1])&&(Y=[Ze,$e])),Me):(N&&(W?(Ne=W[0],Be=W[1]):(Ne=H[0],Be=H[1],N.invert&&(Ne=N.invert(Ne),Be=N.invert(Be)),Be<Ne&&(He=Ne,Ne=Be,Be=He))),U&&(le?(Ze=le[0],$e=le[1]):(Ze=Y[0],$e=Y[1],U.invert&&(Ze=U.invert(Ze),$e=U.invert($e)),$e<Ze&&(He=Ze,Ze=$e,$e=He))),N&&U?[[Ne,Ze],[Be,$e]]:N?[Ne,Be]:U&&[Ze,$e])},Me.clear=function(){return Me.empty()||(H=[0,0],Y=[0,0],W=le=null),Me},Me.empty=function(){return!!N&&H[0]==H[1]||!!U&&Y[0]==Y[1]},e.rebind(Me,C,"on")};var qY={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},lg=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=yt(function(C){return C.responseText}),e.json=function(C,N){return dr(C,"application/json",BY,N)};function BY(C){return JSON.parse(C.responseText)}e.html=function(C,N){return dr(C,"text/html",OY,N)};function OY(C){var N=n.createRange();return N.selectNode(n.body),N.createContextualFragment(C.responseText)}e.xml=yt(function(C){return C.responseXML}),typeof Yv=="object"&&Yv.exports?Yv.exports=e:this.d3=e}).apply(self)});var ug=xe((Xv,n7)=>{(function(e,r){typeof Xv=="object"&&typeof n7!="undefined"?r(Xv):(e=e||self,r(e.d3=e.d3||{}))})(Xv,function(e){"use strict";var r=new Date,t=new Date;function n(oe,de,pe,me){function Se(ve){return oe(ve=arguments.length===0?new Date:new Date(+ve)),ve}return Se.floor=function(ve){return oe(ve=new Date(+ve)),ve},Se.ceil=function(ve){return oe(ve=new Date(ve-1)),de(ve,1),oe(ve),ve},Se.round=function(ve){var he=Se(ve),be=Se.ceil(ve);return ve-he<be-ve?he:be},Se.offset=function(ve,he){return de(ve=new Date(+ve),he==null?1:Math.floor(he)),ve},Se.range=function(ve,he,be){var Ae=[],Re;if(ve=Se.ceil(ve),be=be==null?1:Math.floor(be),!(ve<he)||!(be>0))return Ae;do Ae.push(Re=new Date(+ve)),de(ve,be),oe(ve);while(Re<ve&&ve<he);return Ae},Se.filter=function(ve){return n(function(he){if(he>=he)for(;oe(he),!ve(he);)he.setTime(he-1)},function(he,be){if(he>=he)if(be<0)for(;++be<=0;)for(;de(he,-1),!ve(he););else for(;--be>=0;)for(;de(he,1),!ve(he););})},pe&&(Se.count=function(ve,he){return r.setTime(+ve),t.setTime(+he),oe(r),oe(t),Math.floor(pe(r,t))},Se.every=function(ve){return ve=Math.floor(ve),!isFinite(ve)||!(ve>0)?null:ve>1?Se.filter(me?function(he){return me(he)%ve===0}:function(he){return Se.count(0,he)%ve===0}):Se}),Se}var a=n(function(){},function(oe,de){oe.setTime(+oe+de)},function(oe,de){return de-oe});a.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?n(function(de){de.setTime(Math.floor(de/oe)*oe)},function(de,pe){de.setTime(+de+pe*oe)},function(de,pe){return(pe-de)/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,de){oe.setTime(+oe+de*i)},function(oe,de){return(de-oe)/i},function(oe){return oe.getUTCSeconds()}),g=c.range,b=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*i)},function(oe,de){oe.setTime(+oe+de*l)},function(oe,de){return(de-oe)/l},function(oe){return oe.getMinutes()}),h=b.range,_=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*i-oe.getMinutes()*l)},function(oe,de){oe.setTime(+oe+de*u)},function(oe,de){return(de-oe)/u},function(oe){return oe.getHours()}),T=_.range,m=n(function(oe){oe.setHours(0,0,0,0)},function(oe,de){oe.setDate(oe.getDate()+de)},function(oe,de){return(de-oe-(de.getTimezoneOffset()-oe.getTimezoneOffset())*l)/s},function(oe){return oe.getDate()-1}),k=m.range;function S(oe){return n(function(de){de.setDate(de.getDate()-(de.getDay()+7-oe)%7),de.setHours(0,0,0,0)},function(de,pe){de.setDate(de.getDate()+pe*7)},function(de,pe){return(pe-de-(pe.getTimezoneOffset()-de.getTimezoneOffset())*l)/f})}var x=S(0),M=S(1),d=S(2),w=S(3),y=S(4),v=S(5),A=S(6),p=x.range,D=M.range,E=d.range,R=w.range,I=y.range,z=v.range,F=A.range,L=n(function(oe){oe.setDate(1),oe.setHours(0,0,0,0)},function(oe,de){oe.setMonth(oe.getMonth()+de)},function(oe,de){return de.getMonth()-oe.getMonth()+(de.getFullYear()-oe.getFullYear())*12},function(oe){return oe.getMonth()}),P=L.range,B=n(function(oe){oe.setMonth(0,1),oe.setHours(0,0,0,0)},function(oe,de){oe.setFullYear(oe.getFullYear()+de)},function(oe,de){return de.getFullYear()-oe.getFullYear()},function(oe){return oe.getFullYear()});B.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(de){de.setFullYear(Math.floor(de.getFullYear()/oe)*oe),de.setMonth(0,1),de.setHours(0,0,0,0)},function(de,pe){de.setFullYear(de.getFullYear()+pe*oe)})};var O=B.range,G=n(function(oe){oe.setUTCSeconds(0,0)},function(oe,de){oe.setTime(+oe+de*l)},function(oe,de){return(de-oe)/l},function(oe){return oe.getUTCMinutes()}),J=G.range,j=n(function(oe){oe.setUTCMinutes(0,0,0)},function(oe,de){oe.setTime(+oe+de*u)},function(oe,de){return(de-oe)/u},function(oe){return oe.getUTCHours()}),V=j.range,q=n(function(oe){oe.setUTCHours(0,0,0,0)},function(oe,de){oe.setUTCDate(oe.getUTCDate()+de)},function(oe,de){return(de-oe)/s},function(oe){return oe.getUTCDate()-1}),Z=q.range;function re(oe){return n(function(de){de.setUTCDate(de.getUTCDate()-(de.getUTCDay()+7-oe)%7),de.setUTCHours(0,0,0,0)},function(de,pe){de.setUTCDate(de.getUTCDate()+pe*7)},function(de,pe){return(pe-de)/f})}var $=re(0),ae=re(1),Q=re(2),te=re(3),ue=re(4),ee=re(5),ie=re(6),fe=$.range,we=ae.range,Te=Q.range,ke=te.range,ge=ue.range,Ee=ee.range,Le=ie.range,se=n(function(oe){oe.setUTCDate(1),oe.setUTCHours(0,0,0,0)},function(oe,de){oe.setUTCMonth(oe.getUTCMonth()+de)},function(oe,de){return de.getUTCMonth()-oe.getUTCMonth()+(de.getUTCFullYear()-oe.getUTCFullYear())*12},function(oe){return oe.getUTCMonth()}),X=se.range,K=n(function(oe){oe.setUTCMonth(0,1),oe.setUTCHours(0,0,0,0)},function(oe,de){oe.setUTCFullYear(oe.getUTCFullYear()+de)},function(oe,de){return de.getUTCFullYear()-oe.getUTCFullYear()},function(oe){return oe.getUTCFullYear()});K.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(de){de.setUTCFullYear(Math.floor(de.getUTCFullYear()/oe)*oe),de.setUTCMonth(0,1),de.setUTCHours(0,0,0,0)},function(de,pe){de.setUTCFullYear(de.getUTCFullYear()+pe*oe)})};var ye=K.range;e.timeDay=m,e.timeDays=k,e.timeFriday=v,e.timeFridays=z,e.timeHour=_,e.timeHours=T,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=b,e.timeMinutes=h,e.timeMonday=M,e.timeMondays=D,e.timeMonth=L,e.timeMonths=P,e.timeSaturday=A,e.timeSaturdays=F,e.timeSecond=c,e.timeSeconds=g,e.timeSunday=x,e.timeSundays=p,e.timeThursday=y,e.timeThursdays=I,e.timeTuesday=d,e.timeTuesdays=E,e.timeWednesday=w,e.timeWednesdays=R,e.timeWeek=x,e.timeWeeks=p,e.timeYear=B,e.timeYears=O,e.utcDay=q,e.utcDays=Z,e.utcFriday=ee,e.utcFridays=Ee,e.utcHour=j,e.utcHours=V,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=G,e.utcMinutes=J,e.utcMonday=ae,e.utcMondays=we,e.utcMonth=se,e.utcMonths=X,e.utcSaturday=ie,e.utcSaturdays=Le,e.utcSecond=c,e.utcSeconds=g,e.utcSunday=$,e.utcSundays=fe,e.utcThursday=ue,e.utcThursdays=ge,e.utcTuesday=Q,e.utcTuesdays=Te,e.utcWednesday=te,e.utcWednesdays=ke,e.utcWeek=$,e.utcWeeks=fe,e.utcYear=K,e.utcYears=ye,Object.defineProperty(e,"__esModule",{value:!0})})});var w0=xe((Wv,a7)=>{(function(e,r){typeof Wv=="object"&&typeof a7!="undefined"?r(Wv,ug()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Wv,function(e,r){"use strict";function t(Ce){if(0<=Ce.y&&Ce.y<100){var ze=new Date(-1,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L);return ze.setFullYear(Ce.y),ze}return new Date(Ce.y,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L)}function n(Ce){if(0<=Ce.y&&Ce.y<100){var ze=new Date(Date.UTC(-1,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L));return ze.setUTCFullYear(Ce.y),ze}return new Date(Date.UTC(Ce.y,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L))}function a(Ce,ze,Ke){return{y:Ce,m:ze,d:Ke,H:0,M:0,S:0,L:0}}function o(Ce){var ze=Ce.dateTime,Ke=Ce.date,je=Ce.time,wr=Ce.periods,Xr=Ce.days,Tr=Ce.shortDays,Pr=Ce.months,at=Ce.shortMonths,Ar=g(wr),Hr=b(wr),ot=g(Xr),Ir=b(Xr),Jr=g(Tr),Xt=b(Tr),tt=g(Pr),Kr=b(Pr),qt=g(at),lr=b(at),Dr={a:$a,A:_i,b:nn,B:el,c:null,d:L,e:L,f:J,g:ee,G:fe,H:P,I:B,j:O,L:G,m:j,M:V,p:$i,q:Ki,Q:Ve,s:Ue,S:q,u:Z,U:re,V:ae,w:Q,W:te,x:null,X:null,y:ue,Y:ie,Z:we,"%":Ye},Vr={a:rl,A:_v,b:wv,B:Mv,c:null,d:Te,e:Te,f:se,g:be,G:Re,H:ke,I:ge,j:Ee,L:Le,m:X,M:K,p:$u,q:Ku,Q:Ve,s:Ue,S:ye,u:oe,U:de,V:me,w:Se,W:ve,x:null,X:null,y:he,Y:Ae,Z:Pe,"%":Ye},st={a:Bt,A:Gn,b:Yn,B:_n,c:Ct,d:y,e:y,f:R,g:x,G:S,H:A,I:A,j:v,L:E,m:w,M:p,p:vt,q:d,Q:z,s:F,S:D,u:_,U:T,V:m,w:h,W:k,x:xi,X:tn,y:x,Y:S,Z:M,"%":I};Dr.x=mt(Ke,Dr),Dr.X=mt(je,Dr),Dr.c=mt(ze,Dr),Vr.x=mt(Ke,Vr),Vr.X=mt(je,Vr),Vr.c=mt(ze,Vr);function mt(Sr,kr){return function(yt){var dr=[],aa=-1,Dt=0,Nn=Sr.length,qn,Ka,ts;for(yt instanceof Date||(yt=new Date(+yt));++aa<Nn;)Sr.charCodeAt(aa)===37&&(dr.push(Sr.slice(Dt,aa)),(Ka=i[qn=Sr.charAt(++aa)])!=null?qn=Sr.charAt(++aa):Ka=qn==="e"?" ":"0",(ts=kr[qn])&&(qn=ts(yt,Ka)),dr.push(qn),Dt=aa+1);return dr.push(Sr.slice(Dt,aa)),dr.join("")}}function St(Sr,kr){return function(yt){var dr=a(1900,void 0,1),aa=it(dr,Sr,yt+="",0),Dt,Nn;if(aa!=yt.length)return null;if("Q"in dr)return new Date(dr.Q);if("s"in dr)return new Date(dr.s*1e3+("L"in dr?dr.L:0));if(kr&&!("Z"in dr)&&(dr.Z=0),"p"in dr&&(dr.H=dr.H%12+dr.p*12),dr.m===void 0&&(dr.m="q"in dr?dr.q:0),"V"in dr){if(dr.V<1||dr.V>53)return null;"w"in dr||(dr.w=1),"Z"in dr?(Dt=n(a(dr.y,0,1)),Nn=Dt.getUTCDay(),Dt=Nn>4||Nn===0?r.utcMonday.ceil(Dt):r.utcMonday(Dt),Dt=r.utcDay.offset(Dt,(dr.V-1)*7),dr.y=Dt.getUTCFullYear(),dr.m=Dt.getUTCMonth(),dr.d=Dt.getUTCDate()+(dr.w+6)%7):(Dt=t(a(dr.y,0,1)),Nn=Dt.getDay(),Dt=Nn>4||Nn===0?r.timeMonday.ceil(Dt):r.timeMonday(Dt),Dt=r.timeDay.offset(Dt,(dr.V-1)*7),dr.y=Dt.getFullYear(),dr.m=Dt.getMonth(),dr.d=Dt.getDate()+(dr.w+6)%7)}else("W"in dr||"U"in dr)&&("w"in dr||(dr.w="u"in dr?dr.u%7:"W"in dr?1:0),Nn="Z"in dr?n(a(dr.y,0,1)).getUTCDay():t(a(dr.y,0,1)).getDay(),dr.m=0,dr.d="W"in dr?(dr.w+6)%7+dr.W*7-(Nn+5)%7:dr.w+dr.U*7-(Nn+6)%7);return"Z"in dr?(dr.H+=dr.Z/100|0,dr.M+=dr.Z%100,n(dr)):t(dr)}}function it(Sr,kr,yt,dr){for(var aa=0,Dt=kr.length,Nn=yt.length,qn,Ka;aa<Dt;){if(dr>=Nn)return-1;if(qn=kr.charCodeAt(aa++),qn===37){if(qn=kr.charAt(aa++),Ka=st[qn in i?kr.charAt(aa++):qn],!Ka||(dr=Ka(Sr,yt,dr))<0)return-1}else if(qn!=yt.charCodeAt(dr++))return-1}return dr}function vt(Sr,kr,yt){var dr=Ar.exec(kr.slice(yt));return dr?(Sr.p=Hr[dr[0].toLowerCase()],yt+dr[0].length):-1}function Bt(Sr,kr,yt){var dr=Jr.exec(kr.slice(yt));return dr?(Sr.w=Xt[dr[0].toLowerCase()],yt+dr[0].length):-1}function Gn(Sr,kr,yt){var dr=ot.exec(kr.slice(yt));return dr?(Sr.w=Ir[dr[0].toLowerCase()],yt+dr[0].length):-1}function Yn(Sr,kr,yt){var dr=qt.exec(kr.slice(yt));return dr?(Sr.m=lr[dr[0].toLowerCase()],yt+dr[0].length):-1}function _n(Sr,kr,yt){var dr=tt.exec(kr.slice(yt));return dr?(Sr.m=Kr[dr[0].toLowerCase()],yt+dr[0].length):-1}function Ct(Sr,kr,yt){return it(Sr,ze,kr,yt)}function xi(Sr,kr,yt){return it(Sr,Ke,kr,yt)}function tn(Sr,kr,yt){return it(Sr,je,kr,yt)}function $a(Sr){return Tr[Sr.getDay()]}function _i(Sr){return Xr[Sr.getDay()]}function nn(Sr){return at[Sr.getMonth()]}function el(Sr){return Pr[Sr.getMonth()]}function $i(Sr){return wr[+(Sr.getHours()>=12)]}function Ki(Sr){return 1+~~(Sr.getMonth()/3)}function rl(Sr){return Tr[Sr.getUTCDay()]}function _v(Sr){return Xr[Sr.getUTCDay()]}function wv(Sr){return at[Sr.getUTCMonth()]}function Mv(Sr){return Pr[Sr.getUTCMonth()]}function $u(Sr){return wr[+(Sr.getUTCHours()>=12)]}function Ku(Sr){return 1+~~(Sr.getUTCMonth()/3)}return{format:function(Sr){var kr=mt(Sr+="",Dr);return kr.toString=function(){return Sr},kr},parse:function(Sr){var kr=St(Sr+="",!1);return kr.toString=function(){return Sr},kr},utcFormat:function(Sr){var kr=mt(Sr+="",Vr);return kr.toString=function(){return Sr},kr},utcParse:function(Sr){var kr=St(Sr+="",!0);return kr.toString=function(){return Sr},kr}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(Ce,ze,Ke){var je=Ce<0?"-":"",wr=(je?-Ce:Ce)+"",Xr=wr.length;return je+(Xr<Ke?new Array(Ke-Xr+1).join(ze)+wr:wr)}function c(Ce){return Ce.replace(s,"\\$&")}function g(Ce){return new RegExp("^(?:"+Ce.map(c).join("|")+")","i")}function b(Ce){for(var ze={},Ke=-1,je=Ce.length;++Ke<je;)ze[Ce[Ke].toLowerCase()]=Ke;return ze}function h(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+1));return je?(Ce.w=+je[0],Ke+je[0].length):-1}function _(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+1));return je?(Ce.u=+je[0],Ke+je[0].length):-1}function T(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.U=+je[0],Ke+je[0].length):-1}function m(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.V=+je[0],Ke+je[0].length):-1}function k(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.W=+je[0],Ke+je[0].length):-1}function S(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+4));return je?(Ce.y=+je[0],Ke+je[0].length):-1}function x(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.y=+je[0]+(+je[0]>68?1900:2e3),Ke+je[0].length):-1}function M(Ce,ze,Ke){var je=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ze.slice(Ke,Ke+6));return je?(Ce.Z=je[1]?0:-(je[2]+(je[3]||"00")),Ke+je[0].length):-1}function d(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+1));return je?(Ce.q=je[0]*3-3,Ke+je[0].length):-1}function w(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.m=je[0]-1,Ke+je[0].length):-1}function y(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.d=+je[0],Ke+je[0].length):-1}function v(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+3));return je?(Ce.m=0,Ce.d=+je[0],Ke+je[0].length):-1}function A(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.H=+je[0],Ke+je[0].length):-1}function p(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.M=+je[0],Ke+je[0].length):-1}function D(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.S=+je[0],Ke+je[0].length):-1}function E(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+3));return je?(Ce.L=+je[0],Ke+je[0].length):-1}function R(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+6));return je?(Ce.L=Math.floor(je[0]/1e3),Ke+je[0].length):-1}function I(Ce,ze,Ke){var je=u.exec(ze.slice(Ke,Ke+1));return je?Ke+je[0].length:-1}function z(Ce,ze,Ke){var je=l.exec(ze.slice(Ke));return je?(Ce.Q=+je[0],Ke+je[0].length):-1}function F(Ce,ze,Ke){var je=l.exec(ze.slice(Ke));return je?(Ce.s=+je[0],Ke+je[0].length):-1}function L(Ce,ze){return f(Ce.getDate(),ze,2)}function P(Ce,ze){return f(Ce.getHours(),ze,2)}function B(Ce,ze){return f(Ce.getHours()%12||12,ze,2)}function O(Ce,ze){return f(1+r.timeDay.count(r.timeYear(Ce),Ce),ze,3)}function G(Ce,ze){return f(Ce.getMilliseconds(),ze,3)}function J(Ce,ze){return G(Ce,ze)+"000"}function j(Ce,ze){return f(Ce.getMonth()+1,ze,2)}function V(Ce,ze){return f(Ce.getMinutes(),ze,2)}function q(Ce,ze){return f(Ce.getSeconds(),ze,2)}function Z(Ce){var ze=Ce.getDay();return ze===0?7:ze}function re(Ce,ze){return f(r.timeSunday.count(r.timeYear(Ce)-1,Ce),ze,2)}function $(Ce){var ze=Ce.getDay();return ze>=4||ze===0?r.timeThursday(Ce):r.timeThursday.ceil(Ce)}function ae(Ce,ze){return Ce=$(Ce),f(r.timeThursday.count(r.timeYear(Ce),Ce)+(r.timeYear(Ce).getDay()===4),ze,2)}function Q(Ce){return Ce.getDay()}function te(Ce,ze){return f(r.timeMonday.count(r.timeYear(Ce)-1,Ce),ze,2)}function ue(Ce,ze){return f(Ce.getFullYear()%100,ze,2)}function ee(Ce,ze){return Ce=$(Ce),f(Ce.getFullYear()%100,ze,2)}function ie(Ce,ze){return f(Ce.getFullYear()%1e4,ze,4)}function fe(Ce,ze){var Ke=Ce.getDay();return Ce=Ke>=4||Ke===0?r.timeThursday(Ce):r.timeThursday.ceil(Ce),f(Ce.getFullYear()%1e4,ze,4)}function we(Ce){var ze=Ce.getTimezoneOffset();return(ze>0?"-":(ze*=-1,"+"))+f(ze/60|0,"0",2)+f(ze%60,"0",2)}function Te(Ce,ze){return f(Ce.getUTCDate(),ze,2)}function ke(Ce,ze){return f(Ce.getUTCHours(),ze,2)}function ge(Ce,ze){return f(Ce.getUTCHours()%12||12,ze,2)}function Ee(Ce,ze){return f(1+r.utcDay.count(r.utcYear(Ce),Ce),ze,3)}function Le(Ce,ze){return f(Ce.getUTCMilliseconds(),ze,3)}function se(Ce,ze){return Le(Ce,ze)+"000"}function X(Ce,ze){return f(Ce.getUTCMonth()+1,ze,2)}function K(Ce,ze){return f(Ce.getUTCMinutes(),ze,2)}function ye(Ce,ze){return f(Ce.getUTCSeconds(),ze,2)}function oe(Ce){var ze=Ce.getUTCDay();return ze===0?7:ze}function de(Ce,ze){return f(r.utcSunday.count(r.utcYear(Ce)-1,Ce),ze,2)}function pe(Ce){var ze=Ce.getUTCDay();return ze>=4||ze===0?r.utcThursday(Ce):r.utcThursday.ceil(Ce)}function me(Ce,ze){return Ce=pe(Ce),f(r.utcThursday.count(r.utcYear(Ce),Ce)+(r.utcYear(Ce).getUTCDay()===4),ze,2)}function Se(Ce){return Ce.getUTCDay()}function ve(Ce,ze){return f(r.utcMonday.count(r.utcYear(Ce)-1,Ce),ze,2)}function he(Ce,ze){return f(Ce.getUTCFullYear()%100,ze,2)}function be(Ce,ze){return Ce=pe(Ce),f(Ce.getUTCFullYear()%100,ze,2)}function Ae(Ce,ze){return f(Ce.getUTCFullYear()%1e4,ze,4)}function Re(Ce,ze){var Ke=Ce.getUTCDay();return Ce=Ke>=4||Ke===0?r.utcThursday(Ce):r.utcThursday.ceil(Ce),f(Ce.getUTCFullYear()%1e4,ze,4)}function Pe(){return"+0000"}function Ye(){return"%"}function Ve(Ce){return+Ce}function Ue(Ce){return Math.floor(+Ce/1e3)}var qe;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(Ce){return qe=o(Ce),e.timeFormat=qe.format,e.timeParse=qe.parse,e.utcFormat=qe.utcFormat,e.utcParse=qe.utcParse,qe}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function er(Ce){return Ce.toISOString()}var nr=Date.prototype.toISOString?er:e.utcFormat(Xe);function rr(Ce){var ze=new Date(Ce);return isNaN(ze)?null:ze}var Qe=+new Date("2000-01-01T00:00:00.000Z")?rr:e.utcParse(Xe);e.isoFormat=nr,e.isoParse=Qe,e.timeFormatDefaultLocale=We,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var fg=xe((Zv,i7)=>{(function(e,r){typeof Zv=="object"&&typeof i7!="undefined"?r(Zv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Zv,(function(e){"use strict";function r(w){return Math.abs(w=Math.round(w))>=1e21?w.toLocaleString("en").replace(/,/g,""):w.toString(10)}function t(w,y){if((v=(w=y?w.toExponential(y-1):w.toExponential()).indexOf("e"))<0)return null;var v,A=w.slice(0,v);return[A.length>1?A[0]+A.slice(2):A,+w.slice(v+1)]}function n(w){return w=t(Math.abs(w)),w?w[1]:NaN}function a(w,y){return function(v,A){for(var p=v.length,D=[],E=0,R=w[0],I=0;p>0&&R>0&&(I+R+1>A&&(R=Math.max(1,A-I)),D.push(v.substring(p-=R,p+R)),!((I+=R+1)>A));)R=w[E=(E+1)%w.length];return D.reverse().join(y)}}function o(w){return function(y){return y.replace(/[0-9]/g,function(v){return w[+v]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(w){if(!(y=i.exec(w)))throw new Error("invalid format: "+w);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(w){this.fill=w.fill===void 0?" ":w.fill+"",this.align=w.align===void 0?">":w.align+"",this.sign=w.sign===void 0?"-":w.sign+"",this.symbol=w.symbol===void 0?"":w.symbol+"",this.zero=!!w.zero,this.width=w.width===void 0?void 0:+w.width,this.comma=!!w.comma,this.precision=w.precision===void 0?void 0:+w.precision,this.trim=!!w.trim,this.type=w.type===void 0?"":w.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(w){e:for(var y=w.length,v=1,A=-1,p;v<y;++v)switch(w[v]){case".":A=p=v;break;case"0":A===0&&(A=v),p=v;break;default:if(!+w[v])break e;A>0&&(A=0);break}return A>0?w.slice(0,A)+w.slice(p+1):w}var f;function c(w,y){var v=t(w,y);if(!v)return w+"";var A=v[0],p=v[1],D=p-(f=Math.max(-8,Math.min(8,Math.floor(p/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(w,Math.max(0,y+D-1))[0]}function g(w,y){var v=t(w,y);if(!v)return w+"";var A=v[0],p=v[1];return p<0?"0."+new Array(-p).join("0")+A:A.length>p+1?A.slice(0,p+1)+"."+A.slice(p+1):A+new Array(p-A.length+2).join("0")}var b={"%":function(w,y){return(w*100).toFixed(y)},b:function(w){return Math.round(w).toString(2)},c:function(w){return w+""},d:r,e:function(w,y){return w.toExponential(y)},f:function(w,y){return w.toFixed(y)},g:function(w,y){return w.toPrecision(y)},o:function(w){return Math.round(w).toString(8)},p:function(w,y){return g(w*100,y)},r:g,s:c,X:function(w){return Math.round(w).toString(16).toUpperCase()},x:function(w){return Math.round(w).toString(16)}};function h(w){return w}var _=Array.prototype.map,T=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function m(w){var y=w.grouping===void 0||w.thousands===void 0?h:a(_.call(w.grouping,Number),w.thousands+""),v=w.currency===void 0?"":w.currency[0]+"",A=w.currency===void 0?"":w.currency[1]+"",p=w.decimal===void 0?".":w.decimal+"",D=w.numerals===void 0?h:o(_.call(w.numerals,String)),E=w.percent===void 0?"%":w.percent+"",R=w.minus===void 0?"-":w.minus+"",I=w.nan===void 0?"NaN":w.nan+"";function z(L){L=l(L);var P=L.fill,B=L.align,O=L.sign,G=L.symbol,J=L.zero,j=L.width,V=L.comma,q=L.precision,Z=L.trim,re=L.type;re==="n"?(V=!0,re="g"):b[re]||(q===void 0&&(q=12),Z=!0,re="g"),(J||P==="0"&&B==="=")&&(J=!0,P="0",B="=");var $=G==="$"?v:G==="#"&&/[boxX]/.test(re)?"0"+re.toLowerCase():"",ae=G==="$"?A:/[%p]/.test(re)?E:"",Q=b[re],te=/[defgprs%]/.test(re);q=q===void 0?6:/[gprs]/.test(re)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function ue(ee){var ie=$,fe=ae,we,Te,ke;if(re==="c")fe=Q(ee)+fe,ee="";else{ee=+ee;var ge=ee<0||1/ee<0;if(ee=isNaN(ee)?I:Q(Math.abs(ee),q),Z&&(ee=s(ee)),ge&&+ee==0&&O!=="+"&&(ge=!1),ie=(ge?O==="("?O:R:O==="-"||O==="("?"":O)+ie,fe=(re==="s"?T[8+f/3]:"")+fe+(ge&&O==="("?")":""),te){for(we=-1,Te=ee.length;++we<Te;)if(ke=ee.charCodeAt(we),48>ke||ke>57){fe=(ke===46?p+ee.slice(we+1):ee.slice(we))+fe,ee=ee.slice(0,we);break}}}V&&!J&&(ee=y(ee,1/0));var Ee=ie.length+ee.length+fe.length,Le=Ee<j?new Array(j-Ee+1).join(P):"";switch(V&&J&&(ee=y(Le+ee,Le.length?j-fe.length:1/0),Le=""),B){case"<":ee=ie+ee+fe+Le;break;case"=":ee=ie+Le+ee+fe;break;case"^":ee=Le.slice(0,Ee=Le.length>>1)+ie+ee+fe+Le.slice(Ee);break;default:ee=Le+ie+ee+fe;break}return D(ee)}return ue.toString=function(){return L+""},ue}function F(L,P){var B=z((L=l(L),L.type="f",L)),O=Math.max(-8,Math.min(8,Math.floor(n(P)/3)))*3,G=Math.pow(10,-O),J=T[8+O/3];return function(j){return B(G*j)+J}}return{format:z,formatPrefix:F}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(w){return k=m(w),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function x(w){return Math.max(0,-n(Math.abs(w)))}function M(w,y){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(y)/3)))*3-n(Math.abs(w)))}function d(w,y){return w=Math.abs(w),y=Math.abs(y)-w,Math.max(0,n(y)-n(w))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=m,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=d,Object.defineProperty(e,"__esModule",{value:!0})}))});var l7=xe((qbe,o7)=>{"use strict";o7.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 ut=xe((Bbe,s7)=>{"use strict";var ZY=l7();s7.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 Rn={};Ht(Rn,{ALMOST_EQUAL:()=>hX,BADNUM:()=>cg,EPOCHJD:()=>vX,FP_SAFE:()=>JY,LOG_CLIP:()=>dX,MINUS_SIGN:()=>pX,ONEAVGMONTH:()=>nX,ONEAVGQUARTER:()=>eX,ONEAVGYEAR:()=>KY,ONEDAY:()=>oX,ONEHOUR:()=>lX,ONEMAXMONTH:()=>tX,ONEMAXQUARTER:()=>jY,ONEMAXYEAR:()=>$Y,ONEMICROSEC:()=>cX,ONEMILLI:()=>fX,ONEMIN:()=>sX,ONEMINMONTH:()=>aX,ONEMINQUARTER:()=>rX,ONEMINYEAR:()=>QY,ONESEC:()=>uX,ONEWEEK:()=>iX});var cg,JY,$Y,KY,QY,jY,eX,rX,tX,nX,aX,iX,oX,lX,sX,uX,fX,cX,vX,hX,dX,pX,wn=Ut(()=>{"use strict";cg=void 0,JY=Number.MAX_VALUE*1e-4,$Y=316224e5,KY=315576e5,QY=31536e6,jY=79488e5,eX=78894e5,rX=76896e5,tX=26784e5,nX=26298e5,aX=24192e5,iX=6048e5,oX=864e5,lX=36e5,sX=6e4,uX=1e3,fX=1,cX=.001,vX=24405875e-1,hX=1-1e-6,dX=10,pX="\u2212"});var vg=xe((Jv,u7)=>{(function(e,r){typeof Jv=="object"&&typeof u7!="undefined"?r(Jv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Jv,(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,g,b,h;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var _=new ArrayBuffer(l),T=new Uint8Array(_);for(s=0;s<u;s+=4)c=t[i.charCodeAt(s)],g=t[i.charCodeAt(s+1)],b=t[i.charCodeAt(s+2)],h=t[i.charCodeAt(s+3)],T[f++]=c<<2|g>>4,T[f++]=(g&15)<<4|b>>2,T[f++]=(b&3)<<6|h&63;return _};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})}))});var ss=xe((Obe,f7)=>{"use strict";f7.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 ba=xe(Ti=>{"use strict";var gX=vg().decode,yX=ss(),hg=Array.isArray,mX=ArrayBuffer,bX=DataView;function c7(e){return mX.isView(e)&&!(e instanceof bX)}Ti.isTypedArray=c7;function $v(e){return hg(e)||c7(e)}Ti.isArrayOrTypedArray=$v;function xX(e){return!$v(e[0])}Ti.isArray1D=xX;Ti.ensureArray=function(e,r){return hg(e)||(e=[]),e.length=r,e};var Fn={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};Fn.uint8c=Fn.u1c;Fn.uint8=Fn.u1;Fn.int8=Fn.i1;Fn.uint16=Fn.u2;Fn.int16=Fn.i2;Fn.uint32=Fn.u4;Fn.int32=Fn.i4;Fn.float32=Fn.f4;Fn.float64=Fn.f8;function dg(e){return e.constructor===ArrayBuffer}Ti.isArrayBuffer=dg;Ti.decodeTypedArraySpec=function(e){var r=[],t=_X(e),n=t.dtype,a=Fn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;dg(i)||(i=gX(i));var l=t.shape===void 0?[i.byteLength/o]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,c=+l[0],g=o*c,b=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,b,c),b+=g;else if(u===3){s=+l[1];for(var h=+l[2],_=0;_<h;_++)for(r[_]=[],f=0;f<s;f++)r[_][f]=new a(i,b,c),b+=g}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};Ti.isTypedArraySpec=function(e){return yX(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||dg(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function _X(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}Ti.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),hg(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};Ti.maxRowLength=function(e){return v7(e,Math.max,0)};Ti.minRowLength=function(e){return v7(e,Math.min,1/0)};function v7(e,r,t){if($v(e))if($v(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 Kv=xe((Hbe,y7)=>{"use strict";var h7=ut(),gg=ba().isArrayOrTypedArray;y7.exports=function(r,t){if(h7(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"?AX(r,t,n):{set:p7(r,n,t),get:d7(r,n),astr:t,parts:n,obj:r}};function d7(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]=d7(n[u],r.slice(l+1))(t),i[u]!==i[0]&&(o=!1);return o?i[0]:i}if(typeof a=="number"&&!gg(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 wX=/(^|\.)args\[/;function pg(e,r){return e===void 0||e===null&&!r.match(wX)}function p7(e,r,t){return function(n){var a=e,o="",i=[[e,o]],l=pg(n,t),u,s;for(s=0;s<r.length-1;s++){if(u=r[s],typeof u=="number"&&!gg(a))throw"array index but container is not an array";if(u===-1){if(l=!TX(a,r.slice(s+1),n,t),l)break;return}if(!g7(a,u,r[s+1],l))break;if(a=a[u],typeof a!="object"||a===null)throw"container is not an object";o=MX(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 MX(e,r){var t=r;return h7(r)?t="["+r+"]":e&&(t="."+r),e+t}function TX(e,r,t,n){var a=gg(t),o=!0,i=t,l=n.replace("-1",0),u=a?!1:pg(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=pg(i,l)),u&&(o=!1),g7(e,f,s,u)&&p7(e[f],r,n.replace("-1",f))(i);return o}function g7(e,r,t,n){if(e[r]===void 0){if(n)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function AX(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var _7=xe((Vbe,x7)=>{"use strict";var M0=Kv(),kX=/^\w*$/,SX=0,m7=1,Qv=2,b7=3,us=4;x7.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=M0(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=kX.test(a),c={set:function(g,b){var h=b===null?us:SX;if(!i){if(!l||h===us)return;i=[],l.set(i)}var _=s[g];if(_===void 0){if(h===us)return;h=h|b7,_=i.length,s[g]=_}else b!==(f?i[_][a]:M0(i[_],a).get())&&(h=h|Qv);var T=i[_]=i[_]||{};return T[n]=g,f?T[a]=b:M0(T,a).set(b),b!==null&&(h=h&~us),u[_]=u[_]|h,c},get:function(g){if(i){var b=s[g];if(b!==void 0)return f?i[b][a]:M0(i[b],a).get()}},rename:function(g,b){var h=s[g];return h===void 0||(u[h]=u[h]|m7,s[b]=h,delete s[g],i[h][n]=b),c},remove:function(g){var b=s[g];if(b===void 0)return c;var h=i[b];if(Object.keys(h).length>2)return u[b]=u[b]|Qv,c.set(g,null);if(f){for(o=b;o<i.length;o++)u[o]=u[o]|b7;for(o=b;o<i.length;o++)s[i[o][n]]--;i.splice(b,1),delete s[g]}else M0(h,a).set(null),u[b]=u[b]|Qv|us;return c},constructUpdate:function(){for(var g,b,h={},_=Object.keys(u),T=0;T<_.length;T++)b=_[T],g=t+"["+b+"]",i[b]?(u[b]&m7&&(h[g+"."+n]=i[b][n]),u[b]&Qv&&(f?h[g+"."+a]=u[b]&us?null:i[b][a]:h[g+"."+a]=u[b]&us?null:M0(i[b],a).get())):h[g]=null;return h}};return c}});var M7=xe((Gbe,w7)=>{"use strict";var CX=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,EX=/^[^\.\[\]]+$/;w7.exports=function(e,r){for(;r;){var t=e.match(CX);if(t)e=t[1];else if(e.match(EX))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 jv=xe((Ybe,T7)=>{"use strict";var LX=ut();T7.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 LX(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var S7=xe((Xbe,k7)=>{"use strict";var A7=ba().isArrayOrTypedArray,ff=ss();k7.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(A7(a)&&A7(o)&&ff(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]&&ff(a[l])&&ff(o[l])&&e(o[l],a[l])}else ff(a)&&ff(o)&&(e(o,a),Object.keys(o).length||delete r[n])}}});var T0={};Ht(T0,{mod:()=>DX,modHalf:()=>RX});function DX(e,r){let t=e%r;return t<0?t+r:t}function RX(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var A0=Ut(()=>{"use strict"});var Rt=xe(hf=>{"use strict";var C7=ss(),cf=Array.isArray;function FX(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}hf.extendFlat=function(...e){return vf(e,!1,!1,!1)};hf.extendDeep=function(...e){return vf(e,!0,!1,!1)};hf.extendDeepAll=function(...e){return vf(e,!0,!0,!1)};hf.extendDeepNoArrays=function(...e){return vf(e,!0,!1,!0)};function vf(e,r,t,n){var a=e[0],o=e.length,i,l,u,s,f,c,g;if(o===2&&cf(a)&&cf(e[1])&&a.length===0){if(g=FX(e[1],a),g)return a;a.splice(0,a.length)}for(var b=1;b<o;b++){i=e[b];for(l in i)u=Object.prototype.hasOwnProperty.call(a,l)?a[l]:void 0,s=i[l],n&&cf(s)?a[l]=s:r&&s&&(C7(s)||(f=cf(s)))?(f?(f=!1,c=u&&cf(u)?u:[]):c=u&&C7(u)?u:{},a[l]=vf([c,s],r,t,n)):(typeof s!="undefined"||t)&&(a[l]=s)}return a}});var Wn=xe((Zbe,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 df={};Ht(df,{HOVERARROWSIZE:()=>IX,HOVERFONT:()=>qX,HOVERFONTSIZE:()=>NX,HOVERID:()=>OX,HOVERMINTIME:()=>BX,HOVERTEXTPAD:()=>zX,YANGLE:()=>PX});var PX,IX,zX,NX,qX,BX,OX,pf=Ut(()=>{"use strict";PX=60,IX=6,zX=3,NX=13,qX="Arial, sans-serif",BX=50,OX="-hover"});var fs=xe((Jbe,R7)=>{"use strict";var L7=(pf(),or(df)),D7=Wn(),yg=D7({editType:"none"});yg.family.dflt=L7.HOVERFONT;yg.size.dflt=L7.HOVERFONTSIZE;R7.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:yg,grouptitlefont:D7({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 eh=xe(($be,F7)=>{"use strict";var UX=Wn(),gf=fs().hoverlabel,yf=Rt().extendFlat;F7.exports={hoverlabel:{bgcolor:yf({},gf.bgcolor,{arrayOk:!0}),bordercolor:yf({},gf.bordercolor,{arrayOk:!0}),font:UX({arrayOk:!0,editType:"none"}),align:yf({},gf.align,{arrayOk:!0}),namelength:yf({},gf.namelength,{arrayOk:!0}),showarrow:yf({},gf.showarrow),editType:"none"}}});var Zn=xe((Kbe,P7)=>{"use strict";var HX=Wn(),VX=eh();P7.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:HX({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:VX.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var k8=xe((axe,A8)=>{var u3=Object.defineProperty,GX=Object.getOwnPropertyDescriptor,YX=Object.getOwnPropertyNames,XX=Object.prototype.hasOwnProperty,WX=(e,r)=>{for(var t in r)u3(e,t,{get:r[t],enumerable:!0})},ZX=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of YX(r))!XX.call(e,a)&&a!==t&&u3(e,a,{get:()=>r[a],enumerable:!(n=GX(r,a))||n.enumerable});return e},JX=e=>ZX(u3({},"__esModule",{value:!0}),e),G7={};WX(G7,{a98:()=>O$,average:()=>YW,averageAngle:()=>to,averageNumber:()=>lw,blend:()=>GJ,blerp:()=>Vg,clampChroma:()=>f$,clampGamut:()=>z3,clampRgb:()=>u$,colorsNamed:()=>X7,convertA98ToXyz65:()=>Gg,convertCubehelixToRgb:()=>iw,convertDlchToLab65:()=>uh,convertHsiToRgb:()=>pw,convertHslToRgb:()=>mw,convertHsvToRgb:()=>p3,convertHwbToRgb:()=>ww,convertItpToXyz65:()=>Xg,convertJabToJch:()=>Zg,convertJabToRgb:()=>_3,convertJabToXyz65:()=>b3,convertJchToJab:()=>Jg,convertLab65ToDlch:()=>fh,convertLab65ToRgb:()=>Af,convertLab65ToXyz65:()=>v3,convertLabToLch:()=>Eo,convertLabToRgb:()=>M3,convertLabToXyz50:()=>xh,convertLchToLab:()=>Lo,convertLchuvToLuv:()=>k3,convertLrgbToOklab:()=>S3,convertLrgbToRgb:()=>ys,convertLuvToLchuv:()=>A3,convertLuvToXyz50:()=>vh,convertOkhslToOklab:()=>Qg,convertOkhsvToOklab:()=>e3,convertOklabToLrgb:()=>F0,convertOklabToOkhsl:()=>Kg,convertOklabToOkhsv:()=>jg,convertOklabToRgb:()=>Cf,convertP3ToXyz65:()=>r3,convertProphotoToXyz50:()=>a3,convertRec2020ToXyz65:()=>o3,convertRgbToCubehelix:()=>aw,convertRgbToHsi:()=>gw,convertRgbToHsl:()=>bw,convertRgbToHsv:()=>g3,convertRgbToHwb:()=>Mw,convertRgbToJab:()=>x3,convertRgbToLab:()=>T3,convertRgbToLab65:()=>kf,convertRgbToLrgb:()=>gs,convertRgbToOklab:()=>Sf,convertRgbToXyb:()=>Kw,convertRgbToXyz50:()=>R0,convertRgbToXyz65:()=>al,convertRgbToYiq:()=>a8,convertXybToRgb:()=>Qw,convertXyz50ToLab:()=>_h,convertXyz50ToLuv:()=>ch,convertXyz50ToProphoto:()=>n3,convertXyz50ToRgb:()=>D0,convertXyz50ToXyz65:()=>t8,convertXyz65ToA98:()=>Yg,convertXyz65ToItp:()=>Wg,convertXyz65ToJab:()=>m3,convertXyz65ToLab65:()=>h3,convertXyz65ToP3:()=>t3,convertXyz65ToRec2020:()=>i3,convertXyz65ToRgb:()=>il,convertXyz65ToXyz50:()=>r8,convertYiqToRgb:()=>i8,converter:()=>Ft,cubehelix:()=>U$,differenceCie76:()=>qW,differenceCie94:()=>BW,differenceCiede2000:()=>OW,differenceCmc:()=>UW,differenceEuclidean:()=>L0,differenceHueChroma:()=>Tf,differenceHueNaive:()=>ow,differenceHueSaturation:()=>Mf,differenceHyab:()=>HW,differenceItp:()=>GW,differenceKotsarenkoRamos:()=>VW,displayable:()=>I3,dlab:()=>H$,dlch:()=>V$,easingGamma:()=>x8,easingInOutSine:()=>q$,easingMidpoint:()=>h8,easingSmootherstep:()=>z$,easingSmoothstep:()=>F$,easingSmoothstepInverse:()=>P$,filterBrightness:()=>b$,filterContrast:()=>x$,filterDeficiencyDeuter:()=>D$,filterDeficiencyProt:()=>L$,filterDeficiencyTrit:()=>R$,filterGrayscale:()=>M$,filterHueRotate:()=>A$,filterInvert:()=>T$,filterSaturate:()=>w$,filterSepia:()=>_$,fixupAlpha:()=>Tn,fixupHueDecreasing:()=>FW,fixupHueIncreasing:()=>RW,fixupHueLonger:()=>DW,fixupHueShorter:()=>ro,formatCss:()=>NJ,formatHex:()=>qJ,formatHex8:()=>BJ,formatHsl:()=>UJ,formatRgb:()=>OJ,getMode:()=>la,hsi:()=>G$,hsl:()=>Y$,hsv:()=>X$,hwb:()=>W$,inGamut:()=>Th,interpolate:()=>jJ,interpolateWith:()=>p8,interpolateWithPremultipliedAlpha:()=>e$,interpolatorLinear:()=>_r,interpolatorPiecewise:()=>tw,interpolatorSplineBasis:()=>y8,interpolatorSplineBasisClosed:()=>m8,interpolatorSplineMonotone:()=>n$,interpolatorSplineMonotone2:()=>a$,interpolatorSplineMonotoneClosed:()=>i$,interpolatorSplineNatural:()=>r$,interpolatorSplineNaturalClosed:()=>t$,itp:()=>Z$,jab:()=>J$,jch:()=>$$,lab:()=>K$,lab65:()=>Q$,lch:()=>j$,lch65:()=>eK,lchuv:()=>rK,lerp:()=>vs,lrgb:()=>tK,luv:()=>nK,mapAlphaDivide:()=>v8,mapAlphaMultiply:()=>c8,mapTransferGamma:()=>JJ,mapTransferLinear:()=>R3,mapper:()=>Ef,modeA98:()=>nw,modeCubehelix:()=>sw,modeDlab:()=>hw,modeDlch:()=>dw,modeHsi:()=>yw,modeHsl:()=>d3,modeHsv:()=>y3,modeHwb:()=>Aw,modeItp:()=>Cw,modeJab:()=>Ew,modeJch:()=>Lw,modeLab:()=>wh,modeLab65:()=>Rw,modeLch:()=>Mh,modeLch65:()=>Pw,modeLchuv:()=>Nw,modeLrgb:()=>qw,modeLuv:()=>Bw,modeOkhsl:()=>Uw,modeOkhsv:()=>Hw,modeOklab:()=>Gw,modeOklch:()=>Xw,modeP3:()=>Ww,modeProphoto:()=>Zw,modeRec2020:()=>Jw,modeRgb:()=>ps,modeXyb:()=>jw,modeXyz50:()=>e8,modeXyz65:()=>n8,modeYiq:()=>o8,nearest:()=>h$,okhsl:()=>aK,okhsv:()=>iK,oklab:()=>oK,oklch:()=>lK,p3:()=>sK,parse:()=>j7,parseHex:()=>Z7,parseHsl:()=>_w,parseHslLegacy:()=>xw,parseHwb:()=>Tw,parseLab:()=>Dw,parseLch:()=>Fw,parseNamed:()=>W7,parseOklab:()=>Vw,parseOklch:()=>Yw,parseRgb:()=>ew,parseRgbLegacy:()=>J7,parseTransparent:()=>rw,prophoto:()=>uK,random:()=>ZJ,rec2020:()=>fK,removeParser:()=>uW,rgb:()=>cK,round:()=>l8,samples:()=>s$,serializeHex:()=>D3,serializeHex8:()=>s8,serializeHsl:()=>f8,serializeRgb:()=>u8,toGamut:()=>c$,trilerp:()=>xW,unlerp:()=>bW,useMode:()=>Mt,useParser:()=>K7,wcagContrast:()=>B$,wcagLuminance:()=>s3,xyb:()=>vK,xyz50:()=>hK,xyz65:()=>dK,yiq:()=>pK});A8.exports=JX(G7);var $X=(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=$X,KX={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},X7=KX,QX=e=>Y7(X7[e.toLowerCase()],6),W7=QX,jX=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,eW=e=>{let r;return(r=e.match(jX))?Y7(parseInt(r[1],16),r[1].length):void 0},Z7=eW,ka="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Qbe=`(?:${ka}|none)`,xf=`${ka}%`,jbe=`(?:${ka}%|none)`,f3=`(?:${ka}%|${ka})`,rW=`(?:${ka}%|${ka}|none)`,tW=`(?:${ka}(deg|grad|rad|turn)|${ka})`,exe=`(?:${ka}(deg|grad|rad|turn)|${ka}|none)`,C0="\\s*,\\s*",rxe=new RegExp("^"+rW+"$"),nW=new RegExp(`^rgba?\\(\\s*${ka}${C0}${ka}${C0}${ka}\\s*(?:,\\s*${f3}\\s*)?\\)$`),aW=new RegExp(`^rgba?\\(\\s*${xf}${C0}${xf}${C0}${xf}\\s*(?:,\\s*${f3}\\s*)?\\)$`),iW=e=>{let r={mode:"rgb"},t;if(t=e.match(nW))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(aW))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},J7=iW,oW=(e,r)=>e===void 0?void 0:typeof e!="object"?j7(e):e.mode!==void 0?e:r?Ot(wt({},e),{mode:r}):void 0,Ai=oW,lW=(e="rgb")=>r=>(r=Ai(r,e))!==void 0?r.mode===e?r:eo[r.mode][e]?eo[r.mode][e](r):e==="rgb"?eo[r.mode].rgb(r):eo.rgb[e](eo[r.mode].rgb(r)):void 0,Ft=lW,eo={},$7={},E0=[],c3={},sW=e=>e,Mt=e=>(eo[e.mode]=wt(wt({},eo[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{eo[r]||(eo[r]={}),eo[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=sW)}),$7[e.mode]=e,(e.parse||[]).forEach(r=>{K7(r,e.mode)}),Ft(e.mode)),la=e=>$7[e],K7=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");c3[e]=r}else typeof e=="function"&&E0.indexOf(e)<0&&E0.push(e)},uW=e=>{if(typeof e=="string")delete c3[e];else if(typeof e=="function"){let r=E0.indexOf(e);r>0&&E0.splice(r,1)}},Ug=/[^\x00-\x7F]|[a-zA-Z_]/,fW=/[^\x00-\x7F]|[-\w]/,yr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Wr=0;function rh(e){let r=e[Wr],t=e[Wr+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Wr+2]):r==="."?/\d/.test(t):/\d/.test(r)}function Hg(e){if(Wr>=e.length)return!1;let r=e[Wr];if(Ug.test(r))return!0;if(r==="-"){if(e.length-Wr<2)return!1;let t=e[Wr+1];return!!(t==="-"||Ug.test(t))}return!1}var cW={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function mf(e){let r="";if((e[Wr]==="-"||e[Wr]==="+")&&(r+=e[Wr++]),r+=th(e),e[Wr]==="."&&/\d/.test(e[Wr+1])&&(r+=e[Wr++]+th(e)),(e[Wr]==="e"||e[Wr]==="E")&&((e[Wr+1]==="-"||e[Wr+1]==="+")&&/\d/.test(e[Wr+2])?r+=e[Wr++]+e[Wr++]+th(e):/\d/.test(e[Wr+1])&&(r+=e[Wr++]+th(e))),Hg(e)){let t=ih(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:yr.Hue,value:r*cW[t]}:void 0}return e[Wr]==="%"?(Wr++,{type:yr.Percentage,value:+r}):{type:yr.Number,value:+r}}function th(e){let r="";for(;/\d/.test(e[Wr]);)r+=e[Wr++];return r}function ih(e){let r="";for(;Wr<e.length&&fW.test(e[Wr]);)r+=e[Wr++];return r}function vW(e){let r=ih(e);return e[Wr]==="("?(Wr++,{type:yr.Function,value:r}):r==="none"?{type:yr.None,value:void 0}:{type:yr.Ident,value:r}}function hW(e=""){let r=e.trim(),t=[],n;for(Wr=0;Wr<r.length;){if(n=r[Wr++],n===`
`||n==="	"||n===" "){for(;Wr<r.length&&(r[Wr]===`
`||r[Wr]==="	"||r[Wr]===" ");)Wr++;continue}if(n===",")return;if(n===")"){t.push({type:yr.ParenClose});continue}if(n==="+"){if(Wr--,rh(r)){t.push(mf(r));continue}return}if(n==="-"){if(Wr--,rh(r)){t.push(mf(r));continue}if(Hg(r)){t.push({type:yr.Ident,value:ih(r)});continue}return}if(n==="."){if(Wr--,rh(r)){t.push(mf(r));continue}return}if(n==="/"){for(;Wr<r.length&&(r[Wr]===`
`||r[Wr]==="	"||r[Wr]===" ");)Wr++;let a;if(rh(r)&&(a=mf(r),a.type!==yr.Hue)){t.push({type:yr.Alpha,value:a});continue}if(Hg(r)&&ih(r)==="none"){t.push({type:yr.Alpha,value:{type:yr.None,value:void 0}});continue}return}if(/\d/.test(n)){Wr--,t.push(mf(r));continue}if(Ug.test(n)){Wr--,t.push(vW(r));continue}return}return t}function dW(e){e._i=0;let r=e[e._i++];if(!r||r.type!==yr.Function||r.value!=="color"||(r=e[e._i++],r.type!==yr.Ident))return;let t=c3[r.value];if(!t)return;let n={mode:t},a=Q7(e,!1);if(!a)return;let o=la(t).channels;for(let i=0,l,u;i<o.length;i++)l=a[i],u=o[i],l.type!==yr.None&&(n[u]=l.type===yr.Number?l.value:l.value/100,u==="alpha"&&(n[u]=Math.max(0,Math.min(1,n[u]))));return n}function Q7(e,r){let t=[],n;for(;e._i<e.length;){if(n=e[e._i++],n.type===yr.None||n.type===yr.Number||n.type===yr.Alpha||n.type===yr.Percentage||r&&n.type===yr.Hue){t.push(n);continue}if(n.type===yr.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==yr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:yr.None,value:void 0}),t.every(a=>a.type!==yr.Alpha)?t:void 0}}function pW(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==yr.Function)return;let n=Q7(e,r);if(n)return n.unshift(t.value),n}var gW=e=>{if(typeof e!="string")return;let r=hW(e),t=r?pW(r,!0):void 0,n,a=0,o=E0.length;for(;a<o;)if((n=E0[a++](e,t))!==void 0)return n;return r?dW(r):void 0},j7=gW;function yW(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,n,a,o,i]=r;if(!(n.type===yr.Hue||a.type===yr.Hue||o.type===yr.Hue))return n.type!==yr.None&&(t.r=n.type===yr.Number?n.value/255:n.value/100),a.type!==yr.None&&(t.g=a.type===yr.Number?a.value/255:a.value/100),o.type!==yr.None&&(t.b=o.type===yr.Number?o.value/255:o.value/100),i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var ew=yW,mW=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,rw=mW,vs=(e,r,t)=>e+t*(r-e),bW=(e,r,t)=>(t-e)/(r-e),Vg=(e,r,t,n,a,o)=>vs(vs(e,r,a),vs(t,n,a),o),xW=(e,r,t,n,a,o,i,l,u,s,f)=>vs(Vg(e,r,t,n,u,s),Vg(a,o,i,l,u,s),f),_W=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},tw=e=>r=>{let t=_W(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)}},_r=tw(vs),Tn=e=>{let r=!1,t=e.map(n=>n!==void 0?(r=!0,n):1);return r?t:e},wW={mode:"rgb",channels:["r","g","b","alpha"],parse:[ew,Z7,J7,W7,rw,"srgb"],serialize:"srgb",interpolate:{r:_r,g:_r,b:_r,alpha:{use:_r,fixup:Tn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},ps=wW,mg=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),MW=e=>{let r=mg(e.r),t=mg(e.g),n=mg(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},Gg=MW,bg=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),TW=({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:bg(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:bg(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:bg(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return n!==void 0&&(a.alpha=n),a},Yg=TW,xg=(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)},AW=({r:e,g:r,b:t,alpha:n})=>{let a={mode:"lrgb",r:xg(e),g:xg(r),b:xg(t)};return n!==void 0&&(a.alpha=n),a},gs=AW,kW=e=>{let{r,g:t,b:n,alpha:a}=gs(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},al=kW,_g=(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},SW=({r:e,g:r,b:t,alpha:n},a="rgb")=>{let o={mode:a,r:_g(e),g:_g(r),b:_g(t)};return n!==void 0&&(o.alpha=n),o},ys=SW,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=ys({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},il=CW,EW=Ot(wt({},ps),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>Yg(al(e)),xyz65:Yg},toMode:{rgb:e=>il(Gg(e)),xyz65:Gg}}),nw=EW,LW=e=>(e=e%360)<0?e+360:e,Jn=LW,dh=(e,r)=>e.map((t,n,a)=>{if(t===void 0)return t;let o=Jn(t);return n===0||e[n-1]===void 0?o:r(o-Jn(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),[]),ro=e=>dh(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),DW=e=>dh(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),RW=e=>dh(e,r=>r>=0?r:r+360),FW=e=>dh(e,r=>r<=0?r:r-360),Un=[-.14861,1.78277,-.29227,-.90649,1.97294,0],PW=Math.PI/180,IW=180/Math.PI,I7=Un[3]*Un[4],z7=Un[1]*Un[4],N7=Un[1]*Un[2]-Un[0]*Un[3],zW=({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=(N7*t+e*I7-r*z7)/(N7+I7-z7),o=t-a,i=(Un[4]*(r-a)-Un[2]*o)/Un[3],l={mode:"cubehelix",l:a,s:a===0||a===1?void 0:Math.sqrt(o*o+i*i)/(Un[4]*a*(1-a))};return l.s&&(l.h=Math.atan2(i,o)*IW-120),n!==void 0&&(l.alpha=n),l},aw=zW,NW=({h:e,s:r,l:t,alpha:n})=>{let a={mode:"rgb"};e=(e===void 0?0:e+120)*PW,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*(Un[0]*i+Un[1]*l),a.g=t+o*(Un[2]*i+Un[3]*l),a.b=t+o*(Un[4]*i+Un[5]*l),n!==void 0&&(a.alpha=n),a},iw=NW,Mf=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=Jn(e.h),n=Jn(r.h),a=Math.sin((n-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*a},ow=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=Jn(e.h),n=Jn(r.h);return Math.abs(n-t)>180?t-(n-360*Math.sign(n-t)):n-t},Tf=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=Jn(e.h),n=Jn(r.h),a=Math.sin((n-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*a},L0=(e="rgb",r=[1,1,1,0])=>{let t=la(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,g)=>{let b=a[c]?a[c](u,s):u[c]-s[c];return f+(r[g]||0)*Math.pow(isNaN(b)?0:b,2)},0))}},qW=()=>L0("lab65"),BW=(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),g=l.l,b=l.a,h=l.b,_=Math.sqrt(b*b+h*h),T=Math.pow(u-g,2),m=Math.pow(c-_,2),k=Math.pow(s-b,2)+Math.pow(f-h,2)-m;return Math.sqrt(T/Math.pow(e,2)+m/Math.pow(1+r*c,2)+k/Math.pow(1+t*c,2))}},OW=(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),g=l.l,b=l.a,h=l.b,_=Math.sqrt(b*b+h*h),T=(c+_)/2,m=.5*(1-Math.sqrt(Math.pow(T,7)/(Math.pow(T,7)+Math.pow(25,7)))),k=s*(1+m),S=b*(1+m),x=Math.sqrt(k*k+f*f),M=Math.sqrt(S*S+h*h),d=Math.abs(k)+Math.abs(f)===0?0:Math.atan2(f,k);d+=(d<0)*2*Math.PI;let w=Math.abs(S)+Math.abs(h)===0?0:Math.atan2(h,S);w+=(w<0)*2*Math.PI;let y=g-u,v=M-x,A=x*M===0?0:w-d;A-=(A>Math.PI)*2*Math.PI,A+=(A<-Math.PI)*2*Math.PI;let p=2*Math.sqrt(x*M)*Math.sin(A/2),D=(u+g)/2,E=(x+M)/2,R;x*M===0?R=d+w:(R=(d+w)/2,R-=(Math.abs(d-w)>Math.PI)*Math.PI,R+=(R<0)*2*Math.PI);let I=Math.pow(D-50,2),z=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),F=1+.015*I/Math.sqrt(20+I),L=1+.045*E,P=1+.015*E*z,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))),G=-1*Math.sin(2*B)*O;return Math.sqrt(Math.pow(y/(e*F),2)+Math.pow(v/(r*L),2)+Math.pow(p/(t*P),2)+G*v/(r*L)*p/(t*P))}},UW=(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),g=c.l,b=c.a,h=c.b,_=Math.sqrt(b*b+h*h),T=Math.pow(i-g,2),m=Math.pow(s-_,2),k=Math.pow(l-b,2)+Math.pow(u-h,2)-m,S=Math.sqrt(Math.pow(s,4)/(Math.pow(s,4)+1900)),x=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),M=i<16?.511:.040975*i/(1+.01765*i),d=.0638*s/(1+.0131*s)+.638,w=d*(S*x+1-S);return Math.sqrt(T/Math.pow(e*M,2)+m/Math.pow(r*d,2)+k/Math.pow(w,2))}},HW=()=>{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)}},VW=()=>L0("yiq",[.5053,.299,.1957]),GW=()=>L0("itp",[518400,129600,518400]),to=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},lw=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,n)=>t+n,0)/r.length:void 0},wg=e=>typeof e=="function";function YW(e,r="rgb",t){let n=la(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;wg(t)?u=t:t&&wg(t[i])?u=t[i]:n.average&&wg(n.average[i])?u=n.average[i]:u=lw,o[i]=u(l,i)}return o},{mode:r})}var XW={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:aw},toMode:{rgb:iw},interpolate:{h:{use:_r,fixup:ro},s:_r,l:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Mf},average:{h:to}},sw=XW,WW=({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=Jn(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(i.alpha=n),i},Eo=WW,ZW=({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},Lo=ZW,uw=Math.pow(29,3)/Math.pow(3,3),fw=Math.pow(6,3)/Math.pow(29,3),Mn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},S0={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},txe=Math.pow(29,3)/Math.pow(3,3),nxe=Math.pow(6,3)/Math.pow(29,3),Mg=e=>Math.pow(e,3)>fw?Math.pow(e,3):(116*e-16)/uw,JW=({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:Mg(o)*S0.X,y:Mg(a)*S0.Y,z:Mg(i)*S0.Z};return n!==void 0&&(l.alpha=n),l},v3=JW,$W=e=>il(v3(e)),Af=$W,Tg=e=>e>fw?Math.cbrt(e):(uw*e+16)/116,KW=({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=Tg(e/S0.X),o=Tg(r/S0.Y),i=Tg(t/S0.Z),l={mode:"lab65",l:116*o-16,a:500*(a-o),b:200*(o-i)};return n!==void 0&&(l.alpha=n),l},h3=KW,QW=e=>{let r=h3(al(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},kf=QW,oh=1,cw=1,wf=26/180*Math.PI,lh=Math.cos(wf),sh=Math.sin(wf),vw=100/Math.log(139/100),jW=({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*oh/vw)-1)/.0039},o=(Math.exp(.0435*r*cw*oh)-1)/.075,i=o*Math.cos(t/180*Math.PI-wf),l=o*Math.sin(t/180*Math.PI-wf);return a.a=i*lh-l/.83*sh,a.b=i*sh+l/.83*lh,n!==void 0&&(a.alpha=n),a},uh=jW,eZ=({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*lh+t*sh,o=.83*(t*lh-r*sh),i=Math.sqrt(a*a+o*o),l={mode:"dlch",l:vw/oh*Math.log(1+.0039*e),c:Math.log(1+.075*i)/(.0435*cw*oh)};return l.c&&(l.h=Jn((Math.atan2(o,a)+wf)/Math.PI*180)),n!==void 0&&(l.alpha=n),l},fh=eZ,q7=e=>uh(Eo(e,"dlch")),B7=e=>Lo(fh(e),"dlab"),rZ={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:q7,rgb:e=>Af(q7(e))},fromMode:{lab65:B7,rgb:e=>B7(kf(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:_r,a:_r,b:_r,alpha:{use:_r,fixup:Tn}}},hw=rZ,tZ={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:uh,dlab:e=>Lo(e,"dlab"),rgb:e=>Af(uh(e))},fromMode:{lab65:fh,dlab:e=>Eo(e,"dlch"),rgb:e=>fh(kf(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:_r,c:_r,h:{use:_r,fixup:ro},alpha:{use:_r,fixup:Tn}},difference:{h:Tf},average:{h:to}},dw=tZ;function pw({h:e,s:r,i:t,alpha:n}){e=Jn(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 gw({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 nZ={mode:"hsi",toMode:{rgb:pw},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:gw},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:_r,fixup:ro},s:_r,i:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Mf},average:{h:to}},yw=nZ;function mw({h:e,s:r,l:t,alpha:n}){e=Jn(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 bw({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 aZ=(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}},iZ=aZ,oZ=new RegExp(`^hsla?\\(\\s*${tW}${C0}${xf}${C0}${xf}\\s*(?:,\\s*${f3}\\s*)?\\)$`),lZ=e=>{let r=e.match(oZ);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=iZ(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},xw=lZ;function sZ(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,n,a,o,i]=r;if(n.type!==yr.None){if(n.type===yr.Percentage)return;t.h=n.value}if(a.type!==yr.None){if(a.type===yr.Hue)return;t.s=a.value/100}if(o.type!==yr.None){if(o.type===yr.Hue)return;t.l=o.value/100}return i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var _w=sZ,uZ={mode:"hsl",toMode:{rgb:mw},fromMode:{rgb:bw},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[_w,xw],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:_r,fixup:ro},s:_r,l:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Mf},average:{h:to}},d3=uZ;function p3({h:e,s:r,v:t,alpha:n}){e=Jn(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 g3({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 fZ={mode:"hsv",toMode:{rgb:p3},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:g3},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:_r,fixup:ro},s:_r,v:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Mf},average:{h:to}},y3=fZ;function ww({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 p3({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:n})}function Mw(e){let r=g3(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 cZ(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,n,a,o,i]=r;if(n.type!==yr.None){if(n.type===yr.Percentage)return;t.h=n.value}if(a.type!==yr.None){if(a.type===yr.Hue)return;t.w=a.value/100}if(o.type!==yr.None){if(o.type===yr.Hue)return;t.b=o.value/100}return i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var Tw=cZ,vZ={mode:"hwb",toMode:{rgb:ww},fromMode:{rgb:Mw},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Tw],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:_r,fixup:ro},w:_r,b:_r,alpha:{use:_r,fixup:Tn}},difference:{h:ow},average:{h:to}},Aw=vZ,kw=203,ph=.1593017578125,Sw=78.84375,gh=.8359375,yh=18.8515625,mh=18.6875;function Ag(e){if(e<0)return 0;let r=Math.pow(e,1/Sw);return 1e4*Math.pow(Math.max(0,r-gh)/(yh-mh*r),1/ph)}function kg(e){if(e<0)return 0;let r=Math.pow(e/1e4,ph);return Math.pow((gh+yh*r)/(1+mh*r),Sw)}var Sg=e=>Math.max(e/kw,0),hZ=({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=Ag(e+.008609037037932761*r+.11102962500302593*t),o=Ag(e-.00860903703793275*r-.11102962500302599*t),i=Ag(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},Xg=hZ,Cg=(e=0)=>Math.max(e*kw,0),dZ=({x:e,y:r,z:t,alpha:n})=>{let a=Cg(e),o=Cg(r),i=Cg(t),l=kg(.3592832590121217*a+.6976051147779502*o-.0358915932320289*i),u=kg(-.1920808463704995*a+1.1004767970374323*o+.0753748658519118*i),s=kg(.0070797844607477*a+.0748396662186366*o+.8433265453898765*i),f=.5*l+.5*u,c=1.61376953125*l-3.323486328125*u+1.709716796875*s,g=4.378173828125*l-4.24560546875*u-.132568359375*s,b={mode:"itp",i:f,t:c,p:g};return n!==void 0&&(b.alpha=n),b},Wg=dZ,pZ={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Xg,rgb:e=>il(Xg(e))},fromMode:{xyz65:Wg,rgb:e=>Wg(al(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:_r,t:_r,p:_r,alpha:{use:_r,fixup:Tn}}},Cw=pZ,gZ=134.03437499999998,yZ=16295499532821565e-27,Eg=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,ph);return Math.pow((gh+yh*r)/(1+mh*r),gZ)},Lg=(e=0)=>Math.max(e*203,0),mZ=({x:e,y:r,z:t,alpha:n})=>{e=Lg(e),r=Lg(r),t=Lg(t);let a=1.15*e-.15*t,o=.66*r+.34*e,i=Eg(.41478972*a+.579999*o+.014648*t),l=Eg(-.20151*a+1.120649*o+.0531008*t),u=Eg(-.0166008*a+.2648*o+.6684799*t),s=(i+l)/2,f={mode:"jab",j:.44*s/(1-.56*s)-yZ,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},m3=mZ,bZ=134.03437499999998,O7=16295499532821565e-27,Dg=e=>{if(e<0)return 0;let r=Math.pow(e,1/bZ);return 1e4*Math.pow((gh-r)/(mh*r-yh),1/ph)},Rg=e=>e/203,xZ=({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+O7)/(.44+.56*(e+O7)),o=Dg(a+.13860504*r+.058047316*t),i=Dg(a-.13860504*r-.058047316*t),l=Dg(a-.096019242*r-.8118919*t),u={mode:"xyz65",x:Rg(1.661373024652174*o-.914523081304348*i+.23136208173913045*l),y:Rg(-.3250758611844533*o+1.571847026732543*i-.21825383453227928*l),z:Rg(-.090982811*o-.31272829*i+1.5227666*l)};return n!==void 0&&(u.alpha=n),u},b3=xZ,_Z=e=>{let r=m3(al(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},x3=_Z,wZ=e=>il(b3(e)),_3=wZ,MZ={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:x3,xyz65:m3},toMode:{rgb:_3,xyz65:b3},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:_r,a:_r,b:_r,alpha:{use:_r,fixup:Tn}}},Ew=MZ,TZ=({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=Jn(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(o.alpha=n),o},Zg=TZ,AZ=({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},Jg=AZ,kZ={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Jg,rgb:e=>_3(Jg(e))},fromMode:{rgb:e=>Zg(x3(e)),jab:Zg},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:_r,fixup:ro},c:_r,j:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Tf},average:{h:to}},Lw=kZ,bh=Math.pow(29,3)/Math.pow(3,3),w3=Math.pow(6,3)/Math.pow(29,3),Fg=e=>Math.pow(e,3)>w3?Math.pow(e,3):(116*e-16)/bh,SZ=({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:Fg(o)*Mn.X,y:Fg(a)*Mn.Y,z:Fg(i)*Mn.Z};return n!==void 0&&(l.alpha=n),l},xh=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=ys({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},D0=CZ,EZ=e=>D0(xh(e)),M3=EZ,LZ=e=>{let{r,g:t,b:n,alpha:a}=gs(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},R0=LZ,Pg=e=>e>w3?Math.cbrt(e):(bh*e+16)/116,DZ=({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/Mn.X),o=Pg(r/Mn.Y),i=Pg(t/Mn.Z),l={mode:"lab",l:116*o-16,a:500*(a-o),b:200*(o-i)};return n!==void 0&&(l.alpha=n),l},_h=DZ,RZ=e=>{let r=_h(R0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},T3=RZ;function FZ(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,n,a,o,i]=r;if(!(n.type===yr.Hue||a.type===yr.Hue||o.type===yr.Hue))return n.type!==yr.None&&(t.l=Math.min(Math.max(0,n.value),100)),a.type!==yr.None&&(t.a=a.type===yr.Number?a.value:a.value*125/100),o.type!==yr.None&&(t.b=o.type===yr.Number?o.value:o.value*125/100),i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var Dw=FZ,PZ={mode:"lab",toMode:{xyz50:xh,rgb:M3},fromMode:{xyz50:_h,rgb:T3},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Dw],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:_r,a:_r,b:_r,alpha:{use:_r,fixup:Tn}}},wh=PZ,IZ=Ot(wt({},wh),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:v3,rgb:Af},fromMode:{xyz65:h3,rgb:kf},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Rw=IZ;function zZ(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,n,a,o,i]=r;if(n.type!==yr.None){if(n.type===yr.Hue)return;t.l=Math.min(Math.max(0,n.value),100)}if(a.type!==yr.None&&(t.c=Math.max(0,a.type===yr.Number?a.value:a.value*150/100)),o.type!==yr.None){if(o.type===yr.Percentage)return;t.h=o.value}return i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var Fw=zZ,NZ={mode:"lch",toMode:{lab:Lo,rgb:e=>M3(Lo(e))},fromMode:{rgb:e=>Eo(T3(e)),lab:Eo},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Fw],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:_r,fixup:ro},c:_r,l:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Tf},average:{h:to}},Mh=NZ,qZ=Ot(wt({},Mh),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Lo(e,"lab65"),rgb:e=>Af(Lo(e,"lab65"))},fromMode:{rgb:e=>Eo(kf(e),"lch65"),lab65:e=>Eo(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Pw=qZ,BZ=({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=Jn(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(o.alpha=n),o},A3=BZ,OZ=({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},k3=OZ,Iw=(e,r,t)=>4*e/(e+15*r+3*t),zw=(e,r,t)=>9*r/(e+15*r+3*t),UZ=Iw(Mn.X,Mn.Y,Mn.Z),HZ=zw(Mn.X,Mn.Y,Mn.Z),VZ=e=>e<=w3?bh*e:116*Math.cbrt(e)-16,GZ=({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=VZ(r/Mn.Y),o=Iw(e,r,t),i=zw(e,r,t);!isFinite(o)||!isFinite(i)?a=o=i=0:(o=13*a*(o-UZ),i=13*a*(i-HZ));let l={mode:"luv",l:a,u:o,v:i};return n!==void 0&&(l.alpha=n),l},ch=GZ,YZ=(e,r,t)=>4*e/(e+15*r+3*t),XZ=(e,r,t)=>9*r/(e+15*r+3*t),WZ=YZ(Mn.X,Mn.Y,Mn.Z),ZZ=XZ(Mn.X,Mn.Y,Mn.Z),JZ=({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)+WZ,o=t/(13*e)+ZZ,i=Mn.Y*(e<=8?e/bh: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},vh=JZ,$Z=e=>A3(ch(R0(e))),KZ=e=>D0(vh(k3(e))),QZ={mode:"lchuv",toMode:{luv:k3,rgb:KZ},fromMode:{rgb:$Z,luv:A3},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:_r,fixup:ro},c:_r,l:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Tf},average:{h:to}},Nw=QZ,jZ=Ot(wt({},ps),{mode:"lrgb",toMode:{rgb:ys},fromMode:{rgb:gs},parse:["srgb-linear"],serialize:"srgb-linear"}),qw=jZ,eJ={mode:"luv",toMode:{xyz50:vh,rgb:e=>D0(vh(e))},fromMode:{xyz50:ch,rgb:e=>ch(R0(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:_r,u:_r,v:_r,alpha:{use:_r,fixup:Tn}}},Bw=eJ,rJ=({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=rJ,tJ=e=>{let r=S3(gs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Sf=tJ,nJ=({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},F0=nJ,aJ=e=>ys(F0(e)),Cf=aJ;function $g(e){let n=1.170873786407767;return .5*(n*e-.206+Math.sqrt((n*e-.206)*(n*e-.206)+4*.03*n*e))}function hh(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function iJ(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,g=-.1055613458*e-.0638541728*r,b=-.0894841775*e-1.291485548*r;{let h=1+f*c,_=1+f*g,T=1+f*b,m=h*h*h,k=_*_*_,S=T*T*T,x=3*c*h*h,M=3*g*_*_,d=3*b*T*T,w=6*c*c*h,y=6*g*g*_,v=6*b*b*T,A=l*m+u*k+s*S,p=l*x+u*M+s*d,D=l*w+u*y+s*v;f=f-A*p/(p*p-.5*A*D)}return f}function C3(e,r){let t=iJ(e,r),n=F0({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 oJ(e,r,t,n,a,o=null){o||(o=C3(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,g=l+u*s,b=l+u*f,h=l+u*c;{let _=a*(1-i)+i*t,T=i*n,m=_+T*s,k=_+T*f,S=_+T*c,x=m*m*m,M=k*k*k,d=S*S*S,w=3*g*m*m,y=3*b*k*k,v=3*h*S*S,A=6*g*g*m,p=6*b*b*k,D=6*h*h*S,E=4.0767416621*x-3.3077115913*M+.2309699292*d-1,R=4.0767416621*w-3.3077115913*y+.2309699292*v,I=4.0767416621*A-3.3077115913*p+.2309699292*D,z=R/(R*R-.5*E*I),F=-E*z,L=-1.2684380046*x+2.6097574011*M-.3413193965*d-1,P=-1.2684380046*w+2.6097574011*y-.3413193965*v,B=-1.2684380046*A+2.6097574011*p-.3413193965*D,O=P/(P*P-.5*L*B),G=-L*O,J=-.0041960863*x-.7034186147*M+1.707614701*d-1,j=-.0041960863*w-.7034186147*y+1.707614701*v,V=-.0041960863*A-.7034186147*p+1.707614701*D,q=j/(j*j-.5*J*V),Z=-J*q;F=z>=0?F:1e6,G=O>=0?G:1e6,Z=q>=0?Z:1e6,i+=Math.min(F,Math.min(G,Z))}}}return i}function E3(e,r,t=null){t||(t=C3(e,r));let n=t[0],a=t[1];return[a/n,a/(1-n)]}function Ow(e,r,t){let n=C3(r,t),a=oJ(r,t,e,1,e,n),o=E3(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 Kg(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:$g(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]=Ow(r,t/o,n/o),s;if(o<l){let f=0,c=.8*i,g=1-c/l;s=(o-f)/(c+g*(o-f))*.8}else{let f=l,c=.2*l*l*1.25*1.25/i,g=1-c/(u-l);s=.8+.2*((o-f)/(c+g*(o-f)))}return s&&(a.s=s,a.h=Jn(Math.atan2(n,t)*180/Math.PI)),a}function Qg(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:hh(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]=Ow(a.l,o,i),f,c,g,b;t<.8?(f=1.25*t,c=0,g=.8*l,b=1-g/u):(f=5*(t-.8),c=u,g=.2*u*u*1.25*1.25/l,b=1-g/(s-u));let h=c+f*g/(1-b*f);return a.a=h*o,a.b=h*i,a}var lJ=Ot(wt({},d3),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Kg,rgb:e=>Kg(Sf(e))},toMode:{oklab:Qg,rgb:e=>Cf(Qg(e))}}),Uw=lJ;function jg(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]=E3(o,i),s=.5,f=1-s/l,c=u/(a+r*u),g=c*r,b=c*a,h=hh(g),_=b*h/g,T=F0({l:h,a:o*_,b:i*_}),m=Math.cbrt(1/Math.max(T.r,T.g,T.b,0));r=r/m,a=a/m*$g(r)/r,r=$g(r);let k={mode:"okhsv",s:a?(s+u)*b/(u*s+u*f*b):0,v:r?r/g:0};return k.s&&(k.h=Jn(Math.atan2(n,t)*180/Math.PI)),e.alpha!==void 0&&(k.alpha=e.alpha),k}function e3(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]=E3(o,i),s=.5,f=1-s/l,c=1-n*s/(s+u-u*f*n),g=n*u*s/(s+u-u*f*n),b=hh(c),h=g*b/c,_=F0({l:b,a:o*h,b:i*h}),T=Math.cbrt(1/Math.max(_.r,_.g,_.b,0)),m=hh(a*c),k=g*m/c;return r.l=m*T,r.a=k*o*T,r.b=k*i*T,r}var sJ=Ot(wt({},y3),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:jg,rgb:e=>jg(Sf(e))},toMode:{oklab:e3,rgb:e=>Cf(e3(e))}}),Hw=sJ;function uJ(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,n,a,o,i]=r;if(!(n.type===yr.Hue||a.type===yr.Hue||o.type===yr.Hue))return n.type!==yr.None&&(t.l=Math.min(Math.max(0,n.type===yr.Number?n.value:n.value/100),1)),a.type!==yr.None&&(t.a=a.type===yr.Number?a.value:a.value*.4/100),o.type!==yr.None&&(t.b=o.type===yr.Number?o.value:o.value*.4/100),i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var Vw=uJ,fJ=Ot(wt({},wh),{mode:"oklab",toMode:{lrgb:F0,rgb:Cf},fromMode:{lrgb:S3,rgb:Sf},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Vw],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}`:""})`}),Gw=fJ;function cJ(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,n,a,o,i]=r;if(n.type!==yr.None){if(n.type===yr.Hue)return;t.l=Math.min(Math.max(0,n.type===yr.Number?n.value:n.value/100),1)}if(a.type!==yr.None&&(t.c=Math.max(0,a.type===yr.Number?a.value:a.value*.4/100)),o.type!==yr.None){if(o.type===yr.Percentage)return;t.h=o.value}return i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var Yw=cJ,vJ=Ot(wt({},Mh),{mode:"oklch",toMode:{oklab:e=>Lo(e,"oklab"),rgb:e=>Cf(Lo(e,"oklab"))},fromMode:{rgb:e=>Eo(Sf(e),"oklch"),oklab:e=>Eo(e,"oklch")},parse:[Yw],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]}}),Xw=vJ,hJ=e=>{let{r,g:t,b:n,alpha:a}=gs(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},r3=hJ,dJ=({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=ys({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},t3=dJ,pJ=Ot(wt({},ps),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>t3(al(e)),xyz65:t3},toMode:{rgb:e=>il(r3(e)),xyz65:r3}}),Ww=pJ,Ig=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},gJ=({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:Ig(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:Ig(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:Ig(e*0+r*0+1.2119675456389452*t)};return n!==void 0&&(a.alpha=n),a},n3=gJ,zg=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},yJ=e=>{let r=zg(e.r),t=zg(e.g),n=zg(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},a3=yJ,mJ=Ot(wt({},ps),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:n3,rgb:e=>n3(R0(e))},toMode:{xyz50:a3,rgb:e=>D0(a3(e))}}),Zw=mJ,U7=1.09929682680944,bJ=.018053968510807,Ng=e=>{let r=Math.abs(e);return r>bJ?(Math.sign(e)||1)*(U7*Math.pow(r,.45)-(U7-1)):4.5*e},xJ=({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:Ng(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:Ng(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:Ng(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return n!==void 0&&(a.alpha=n),a},i3=xJ,H7=1.09929682680944,_J=.018053968510807,qg=(e=0)=>{let r=Math.abs(e);return r<_J*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+H7-1)/H7,1/.45)},wJ=e=>{let r=qg(e.r),t=qg(e.g),n=qg(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},o3=wJ,MJ=Ot(wt({},ps),{mode:"rec2020",fromMode:{xyz65:i3,rgb:e=>i3(al(e))},toMode:{xyz65:o3,rgb:e=>il(o3(e))},parse:["rec2020"],serialize:"rec2020"}),Jw=MJ,hs=.0037930732552754493,$w=Math.cbrt(hs),Bg=e=>Math.cbrt(e)-$w,TJ=e=>{let{r,g:t,b:n,alpha:a}=gs(e),o=Bg(.3*r+.622*t+.078*n+hs),i=Bg(.23*r+.692*t+.078*n+hs),l=Bg(.2434226892454782*r+.2047674442449682*t+.5518098665095535*n+hs),u={mode:"xyb",x:(o-i)/2,y:(o+i)/2,b:l-(o+i)/2};return a!==void 0&&(u.alpha=a),u},Kw=TJ,Og=e=>Math.pow(e+$w,3),AJ=({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=Og(e+r)-hs,o=Og(r-e)-hs,i=Og(t+r)-hs,l=ys({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},Qw=AJ,kJ={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Qw},fromMode:{rgb:Kw},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:_r,y:_r,b:_r,alpha:{use:_r,fixup:Tn}}},jw=kJ,SJ={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:D0,lab:_h},fromMode:{rgb:R0,lab:xh},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:_r,y:_r,z:_r,alpha:{use:_r,fixup:Tn}}},e8=SJ,CJ=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},r8=CJ,EJ=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},t8=EJ,LJ={mode:"xyz65",toMode:{rgb:il,xyz50:r8},fromMode:{rgb:al,xyz50:t8},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:_r,y:_r,z:_r,alpha:{use:_r,fixup:Tn}}},n8=LJ,DJ=({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},a8=DJ,RJ=({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},i8=RJ,FJ={mode:"yiq",toMode:{rgb:i8},fromMode:{rgb:a8},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:_r,i:_r,q:_r,alpha:{use:_r,fixup:Tn}}},o8=FJ,PJ=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,IJ=(e=4)=>r=>typeof r=="number"?PJ(r,e):r,l8=IJ,bf=l8(2),_f=e=>Math.max(0,Math.min(1,e||0)),ds=e=>Math.round(_f(e)*255),L3=Ft("rgb"),zJ=Ft("hsl"),D3=e=>{if(e===void 0)return;let r=ds(e.r),t=ds(e.g),n=ds(e.b);return"#"+(1<<24|r<<16|t<<8|n).toString(16).slice(1)},s8=e=>{if(e===void 0)return;let r=ds(e.alpha!==void 0?e.alpha:1);return D3(e)+(256|r).toString(16).slice(1)},u8=e=>{if(e===void 0)return;let r=ds(e.r),t=ds(e.g),n=ds(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${n})`:`rgba(${r}, ${t}, ${n}, ${bf(_f(e.alpha))})`},f8=e=>{if(e===void 0)return;let r=bf(e.h||0),t=bf(_f(e.s)*100)+"%",n=bf(_f(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${n})`:`hsla(${r}, ${t}, ${n}, ${bf(_f(e.alpha))})`},NJ=e=>{let r=Ai(e);if(!r)return;let t=la(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)},qJ=e=>D3(L3(e)),BJ=e=>s8(L3(e)),OJ=e=>u8(L3(e)),UJ=e=>f8(zJ(e)),HJ={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},VJ=(e,r="normal",t="rgb")=>{let n=typeof r=="function"?r:HJ[r],a=Ft(t),o=la(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})})},GJ=VJ,YJ=([e,r])=>e+Math.random()*(r-e),XJ=e=>Object.keys(e).reduce((r,t)=>{let n=e[t];return r[t]=Array.isArray(n)?n:[n,n],r},{}),WJ=(e="rgb",r={})=>{let t=la(e),n=XJ(r);return t.channels.reduce((a,o)=>((n.alpha||o!=="alpha")&&(a[o]=YJ(n[o]||t.ranges[o])),a),{mode:e})},ZJ=WJ,Ef=(e,r="rgb",t=!1)=>{let n=r?la(r).channels:null,a=r?Ft(r):Ai;return o=>{let i=a(o);if(!i)return;let l=(n||la(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=Ai(o);return u&&u.mode!==l.mode?Ft(u.mode)(l):l}},c8=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,v8=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,R3=(e=1,r=0)=>(t,n)=>n!=="alpha"?t*e+r:t,JJ=(e=1,r=1,t=0)=>(n,a)=>a!=="alpha"?e*Math.pow(n,r)+t:n,$J=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},KJ=$J,QJ=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),h8=QJ,nh=e=>typeof e=="function",cs=e=>e&&typeof e=="object",V7=e=>typeof e=="number",d8=(e,r="rgb",t,n)=>{let a=la(r),o=Ft(r),i=[],l=[],u={};e.forEach(g=>{Array.isArray(g)?(i.push(o(g[0])),l.push(g[1])):V7(g)||nh(g)?u[l.length]=g:(i.push(o(g)),l.push(void 0))}),KJ(l);let s=a.channels.reduce((g,b)=>{let h;return cs(t)&&cs(t[b])&&t[b].fixup?h=t[b].fixup:cs(a.interpolate[b])&&a.interpolate[b].fixup?h=a.interpolate[b].fixup:h=_=>_,g[b]=h(i.map(_=>_[b])),g},{});if(n){let g=i.map((b,h)=>a.channels.reduce((_,T)=>(_[T]=s[T][h],_),{mode:r}));s=a.channels.reduce((b,h)=>(b[h]=g.map(_=>{let T=n(_[h],h,_,r);return isNaN(T)?void 0:T}),b),{})}let f=a.channels.reduce((g,b)=>{let h;return nh(t)?h=t:cs(t)&&nh(t[b])?h=t[b]:cs(t)&&cs(t[b])&&t[b].use?h=t[b].use:nh(a.interpolate[b])?h=a.interpolate[b]:cs(a.interpolate[b])&&(h=a.interpolate[b].use),g[b]=h(s[b]),g},{}),c=i.length-1;return g=>{if(g=Math.min(Math.max(0,g),1),g<=l[0])return i[0];if(g>l[c])return i[c];let b=0;for(;l[b]<g;)b++;let h=l[b-1],_=l[b]-h,T=(g-h)/_,m=u[b]||u[0];m!==void 0&&(V7(m)&&(m=h8((m-h)/_)),T=m(T));let k=(b-1+T)/c;return a.channels.reduce((S,x)=>{let M=f[x](k);return M!==void 0&&(S[x]=M),S},{mode:r})}},jJ=(e,r="rgb",t)=>d8(e,r,t),p8=(e,r)=>(t,n="rgb",a)=>{let o=r?Ef(r,n):void 0,i=d8(t,n,a,e);return o?l=>o(i(l)):i},e$=p8(c8,v8),ah=(e,r)=>(e+r)%r,g8=(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},y8=e=>r=>{let t=e.length-1,n=r>=1?t-1:Math.max(0,Math.floor(r*t));return g8(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)},m8=e=>r=>{let t=e.length-1,n=Math.floor(r*t);return g8(e[ah(n-1,e.length)],e[ah(n,e.length)],e[ah(n+1,e.length)],e[ah(n+2,e.length)],(r-n/t)*t)},b8=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},r$=e=>y8(b8(e)),t$=e=>m8(b8(e)),k0=Math.sign,l3=Math.min,za=Math.abs,F3=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?(k0(t[o-1])+k0(t[o]))*l3(za(t[o-1]),za(t[o]),.5*za(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]}},n$=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,,n]=F3(e);return n[0]=t[0],n[r]=t[r-1],P3(e,n,t)},a$=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,n,a]=F3(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:za(n[0])>2*za(t[0])?2*t[0]:n[0],a[r]=n[r]*t[r-1]<=0?0:za(n[r])>2*za(t[r-1])?2*t[r-1]:n[r],P3(e,a,t)},i$=e=>{let r=e.length-1,[t,n,a]=F3(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]=(k0(o)+k0(t[0]))*l3(za(o),za(t[0]),.5*za(n[0])),a[r]=(k0(t[r-1])+k0(i))*l3(za(t[r-1]),za(i),.5*za(n[r])),P3(e,a,t)},o$=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),x8=o$,l$=(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},s$=l$,_8=Ft("rgb"),w8=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},M8=e=>w8(_8(e)),T8=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 I3(e){return T8(_8(e))}function Th(e="rgb"){let{gamut:r}=la(e);if(!r)return n=>!0;let t=Ft(typeof r=="string"?r:e);return n=>T8(t(n))}function u$(e){return e=Ai(e),e===void 0||I3(e)?e:Ft(e.mode)(M8(e))}function z3(e="rgb"){let{gamut:r}=la(e);if(!r)return o=>Ai(o);let t=typeof r=="string"?r:e,n=Ft(t),a=Th(t);return o=>{let i=Ai(o);if(!i)return;let l=n(i);if(a(l))return i;let u=w8(l);return i.mode===u.mode?u:Ft(i.mode)(u)}}function f$(e,r="lch",t="rgb"){e=Ai(e);let n=t==="rgb"?I3:Th(t),a=t==="rgb"?M8:z3(t);if(e===void 0||n(e))return e;let o=Ft(e.mode);e=Ft(r)(e);let i=Ot(wt({},e),{c:0});if(!n(i))return o(a(i));let l=0,u=e.c!==void 0?e.c:0,s=la(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:Ot(wt({},i),{c}))}function c$(e="rgb",r="oklch",t=L0("oklch"),n=.02){let a=Ft(e),o=la(e);if(!o.gamut)return f=>a(f);let i=Th(e),l=z3(e),u=Ft(r),{ranges:s}=la(r);if(!s.l||!s.c)throw new Error("LCH-like space expected");return f=>{if(f=Ai(f),f===void 0)return;let c=wt({},u(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=s.l[1]){let T=Ot(wt({},o.white),{mode:e});return f.alpha!==void 0&&(T.alpha=f.alpha),T}if(c.l<=s.l[0]){let T=Ot(wt({},o.black),{mode:e});return f.alpha!==void 0&&(T.alpha=f.alpha),T}if(i(c))return a(c);let g=0,b=c.c,h=(s.c[1]-s.c[0])/4e3,_=l(c);for(;b-g>h;)c.c=(g+b)*.5,_=l(c),i(c)||t&&n>0&&t(c,_)<=n?g=c.c:b=c.c;return a(i(c)?c:_)}}var v$=(e,r=L0(),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]))},h$=v$,N3=e=>Math.max(e,0),q3=e=>Math.max(Math.min(e,1),0),d$=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),p$=e=>{let r=1-q3(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]},g$=e=>{let r=N3(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]},y$=e=>{let r=1-q3(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]},m$=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]},Ah=(e,r,t=!1)=>{let n=Ft(r),a=la(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=Ai(o);return f&&l.mode!==f.mode?Ft(f.mode)(l):l}},b$=(e=1,r="rgb")=>{let t=N3(e);return Ef(R3(t),r,!0)},x$=(e=1,r="rgb")=>{let t=N3(e);return Ef(R3(t,(1-t)/2),r,!0)},_$=(e=1,r="rgb")=>Ah(p$(e),r,!0),w$=(e=1,r="rgb")=>Ah(g$(e),r,!0),M$=(e=1,r="rgb")=>Ah(y$(e),r,!0),T$=(e=1,r="rgb")=>{let t=q3(e);return Ef((n,a)=>a==="alpha"?n:d$(t,1-t,n),r,!0)},A$=(e=0,r="rgb")=>Ah(m$(e),r,!0),k$=Ft("rgb"),S$=[[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]],C$=[[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]],E$=[[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]],B3=(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)=>vs(o[u],i[u],a))}return i=>{let l=Ai(i);if(l===void 0)return;let{r:u,g:s,b:f}=k$(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)}},L$=(e=1)=>B3(S$,e),D$=(e=1)=>B3(C$,e),R$=(e=1)=>B3(E$,e),F$=e=>e*e*(3-2*e),P$=e=>.5-Math.sin(Math.asin(1-2*e)/3),I$=e=>e*e*e*(e*(e*6-15)+10),z$=I$,N$=e=>(1-Math.cos(e*Math.PI))/2,q$=N$;function s3(e){let r=Ft("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function B$(e,r){let t=s3(e),n=s3(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}var O$=Mt(nw),U$=Mt(sw),H$=Mt(hw),V$=Mt(dw),G$=Mt(yw),Y$=Mt(d3),X$=Mt(y3),W$=Mt(Aw),Z$=Mt(Cw),J$=Mt(Ew),$$=Mt(Lw),K$=Mt(wh),Q$=Mt(Rw),j$=Mt(Mh),eK=Mt(Pw),rK=Mt(Nw),tK=Mt(qw),nK=Mt(Bw),aK=Mt(Uw),iK=Mt(Hw),oK=Mt(Gw),lK=Mt(Xw),sK=Mt(Ww),uK=Mt(Zw),fK=Mt(Jw),cK=Mt(ps),vK=Mt(jw),hK=Mt(e8),dK=Mt(n8),pK=Mt(o8)});var O3={};Ht(O3,{default:()=>yK});var gK,yK,U3=Ut(()=>{"use strict";gK={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},yK=gK});var ol=xe((lxe,D8)=>{"use strict";var{format:mK,width:bK,height:xK,scale:_K}=(U3(),or(O3)).default,S8=_K,{dflt:oxe}=S8,wK=$_(S8,["dflt"]),C8={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:{format:mK,filename:{valType:"string"},width:bK,height:xK,scale:wK},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:{}}},E8={};function L8(e,r){for(let t in e){let n=e[t];typeof n!="object"||n===null||(n.valType?"dflt"in n&&(r[t]=n.dflt):(r[t]||(r[t]={}),L8(n,r[t])))}}L8(C8,E8);D8.exports={configAttributes:C8,dfltConfig:E8}});var V3=xe((uxe,R8)=>{"use strict";var H3=lt(),MK=ut(),Lf=[];R8.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||Lf.indexOf(e)!==-1)return;Lf.push(e);var n=1e3;MK(r)?n=r:r==="long"&&(n=3e3);var a=H3.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var o=a.selectAll(".notifier-note").data(Lf);function i(u){u.duration(700).style("opacity",0).each("end",function(s){var f=Lf.indexOf(s);f!==-1&&Lf.splice(f,1),H3.select(this).remove()})}o.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(u){var s=H3.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),g=0;g<c.length;g++)g&&f.append("br"),f.append("span").text(c[g]);r==="stick"?s.transition().duration(350).style("opacity",1):s.transition().duration(700).style("opacity",1).transition().delay(n).call(i)})}});var ll=xe((fxe,F8)=>{"use strict";var P0=ol().dfltConfig,G3=V3(),Y3=F8.exports={};Y3.log=function(){var e;if(P0.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(P0.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);G3(t.join("<br>"),"long")}};Y3.warn=function(){var e;if(P0.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(P0.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);G3(t.join("<br>"),"stick")}};Y3.error=function(){var e;if(P0.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(P0.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);G3(t.join("<br>"),"stick")}}});var no=xe(ms=>{"use strict";ms.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];ms.defaultLine="#444";ms.lightLine="#eee";ms.background="#fff";ms.borderLine="#BEC8D9";ms.lightFraction=1e3/11});var Zr=xe((vxe,H8)=>{"use strict";var{converter:P8,formatHex:TK,formatRgb:AK,wcagContrast:kK,wcagLuminance:SK}=k8(),{isArrayOrTypedArray:I8}=ba(),{warn:CK}=ll(),{background:Rf,defaultLine:Z3,defaults:EK,lightLine:LK}=no(),z8=P8("rgb"),DK=P8("hsl"),N8=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return z8(r)}catch(t){return}},sa=e=>e>0?e>1?1:e:0,RK={mode:"rgb",r:0,g:0,b:0,alpha:1},X3=e=>Math.round(e*255e6)/255e6,q8=e=>Ot(wt({},e),{r:X3(e.r),g:X3(e.g),b:X3(e.b)}),Na=e=>AK(q8(e)),FK=e=>TK(q8(e)),PK=e=>{var r,t,n,a;return typeof e=="string"?`"${e}"`:I8(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}`},Kt=(e,r)=>{var n;let t=N8(e);return t?((n=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&CK(`Invalid color specifier: ${PK(e)}. Defaulting to "#000"`),RK)},Df=e=>Na(Ot(wt({},Kt(e)),{alpha:1})),IK=e=>e?Kt(e).alpha:0,B8=e=>I8(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),zK=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}},NK=(e,r)=>{let t=B8(e)?zK(e):Kt(e,!0),n=[sa(t.r),sa(t.g),sa(t.b),sa(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},qK=(e,r)=>Na(Ot(wt({},Kt(e)),{alpha:sa(r)})),O8=(e,r)=>{let t=Kt(e),n=t.alpha;if(n===1)return Na(t);let a=Kt(r||Rf),o=a.alpha,i=(l,u)=>(o===1?u:1-o+u*o)*(1-n)+l*n;return Na({mode:"rgb",r:i(t.r,a.r),g:i(t.g,a.g),b:i(t.b,a.b)})},BK=(e,r,t)=>{let n=Kt(e),a=Kt(r),o=(i,l)=>t*i+(1-t)*l;return Na({mode:"rgb",r:o(n.r,a.r),g:o(n.g,a.g),b:o(n.b,a.b)})},W3=(e,r)=>{let t=Kt(e),n=DK(t)||{mode:"hsl",h:0,s:0,l:0};return Na(z8(Ot(wt({},n),{l:sa((n.l*100+r)/100),alpha:t.alpha})))},kh=(e,r)=>kK(Kt(e),Kt(r)),U8=e=>kh(e,Rf)>kh(e,Z3),OK=Na(Kt(Rf)),UK=Na(Kt(Z3)),HK=(e,r,t)=>(Kt(e).alpha!==1&&(e=O8(e,Rf)),U8(e)?r?W3(e,r):OK:t?W3(e,-t):UK),VK=(e,r)=>{e.style({stroke:Df(r),"stroke-opacity":Kt(r).alpha})},GK=(e,r)=>{e.style({fill:Df(r),"fill-opacity":Kt(r).alpha})},YK=(e,r)=>!!(e&&r&&Df(e)===Df(r)),XK=e=>N8(e)!==void 0,WK=(e,r)=>{r=r===0?0:r||10;let t=Kt(e),n=r/100;return Na(Ot(wt({},t),{r:sa(t.r+n),g:sa(t.g+n),b:sa(t.b+n)}))},ZK=(e,r,t)=>{let n=Kt(e),a=Kt(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,g)=>s*c+u*g;return Na({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})},JK=(e,r=["#000","#fff"])=>{let t,n=-1/0;for(let a of r){let o=kh(e,a);o>n&&(n=o,t=Na(Kt(a)))}return t},$K=e=>Na(Kt(e)),KK=e=>FK(Kt(e)).toUpperCase(),QK=e=>{let r=Kt(e);return[sa(r.r)*255,sa(r.g)*255,sa(r.b)*255,sa(r.alpha)]},jK=([e,r,t,n])=>Na({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:n}),eQ=e=>{let r=Kt(e);return SK({mode:"rgb",r:sa(r.r),g:sa(r.g),b:sa(r.b)})};H8.exports={addOpacity:qK,adjustLightness:W3,background:Rf,brighten:WK,combine:O8,contrast:HK,defaultLine:Z3,defaults:EK,equals:YK,fill:GK,hexString:KK,interpolate:BK,isChannelArray:B8,isDark:U8,isValid:XK,lightLine:LK,luminosity:eQ,mix:ZK,mostReadable:JK,normalize:NK,opacity:IK,parse:Kt,rgb:Df,rgbaArray:QK,rgbaArrayToString:jK,rgbaString:$K,stroke:VK,wcagContrast:kh}});var bs=xe((dxe,Y8)=>{"use strict";var rQ=Zr(),Sh={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)"]]},V8=Sh.RdBu;function tQ(e,r){if(r||(r=V8),!e)return r;function t(){try{e=Sh[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),G8(e)?e:r}function G8(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t<e.length;t++){var n=e[t];if(n.length!==2||+n[0]<r||!rQ.isValid(n[1]))return!1;r=+n[0]}return!0}function nQ(e){return Sh[e]!==void 0?!0:G8(e)}Y8.exports={scales:Sh,defaultScale:V8,get:tQ,isValid:nQ}});var Ch={};Ht(Ch,{DESELECTDIM:()=>oQ,HIDE_PLACEHOLDER:()=>iQ,SHOW_PLACEHOLDER:()=>aQ});var aQ,iQ,oQ,Eh=Ut(()=>{"use strict";aQ=100,iQ=1e3,oQ=.2});var Ff={};Ht(Ff,{counter:()=>xs});function xs(e,r="",t,n){let a=r+(t?"":"$"),o=n===!1?"":"^";return e==="xy"?new RegExp(o+"x"+J3+"y"+J3+a):new RegExp(o+e+J3+a)}var J3,I0=Ut(()=>{"use strict";J3="([2-9]|[1-9][0-9]+)?"});var Z8=xe(Sa=>{"use strict";var $3=ut(),X8=Rt().extendFlat,lQ=Zn(),sQ=bs(),K3=Zr(),uQ=(Eh(),or(Ch)).DESELECTDIM,z0=Kv(),W8=(I0(),or(Ff)).counter,fQ=(A0(),or(T0)).modHalf,ki=ba().isArrayOrTypedArray,sl=ba().isTypedArraySpec,ul=ba().decodeTypedArraySpec;Sa.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(ki(e)?e:sl(e)?ul(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){sl(e)&&(e=ul(e)),!$3(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}sl(e)&&(e=ul(e)),e%1||!$3(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){sl(e)&&(e=ul(e)),K3.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=>K3.isValid(n))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(sQ.get(e,t))}},angle:{coerceFunction:function(e,r,t){sl(e)&&(e=ul(e)),e==="auto"?r.set("auto"):$3(e)?r.set(fQ(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||W8(t);let o=i=>typeof i=="string"&&a.test(i);o(e)||n.arrayOk&&ki(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:!!W8(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(sl(e)?ul(e):e)}},info_array:{coerceFunction:function(e,r,t,n){function a(k,S,x){var M,d={set:function(w){M=w}};return x===void 0&&(x=S.dflt),Sa.valObjectMeta[S.valType].coerceFunction(k,d,x,S),M}if(sl(e)&&(e=ul(e)),!ki(e)){r.set(t);return}var o=n.dimensions===2||n.dimensions==="1-2"&&Array.isArray(e)&&ki(e[0]),i=n.items,l=[],u=Array.isArray(i),s=u&&o&&ki(i[0]),f=o&&u&&!s,c=u&&!f?i.length:e.length,g,b,h,_,T,m;if(t=Array.isArray(t)?t:[],o)for(g=0;g<c;g++)for(l[g]=[],h=ki(e[g])?e[g]:[],f?T=i.length:u?T=i[g].length:T=h.length,b=0;b<T;b++)f?_=i[b]:u?_=i[g][b]:_=i,m=a(h[b],_,(t[g]||[])[b]),m!==void 0&&(l[g][b]=m);else for(g=0;g<c;g++)m=a(e[g],u?i[g]:i,t[g]),m!==void 0&&(l[g]=m);r.set(l)},validateFunction:function(e,r){if(!ki(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(!ki(e[o])||!r.freeLength&&e[o].length!==t[o].length)return!1;for(var i=0;i<e[o].length;i++)if(!Lh(e[o][i],n?t[o][i]:t))return!1}else if(!Lh(e[o],n?t[o]:t))return!1;return!0}}};Sa.coerce=function(e,r,t,n,a){var o=z0(t,n).get(),i=z0(e,n),l=z0(r,n),u=i.get(),s=r._template;if(u===void 0&&s&&(u=z0(s,n).get(),s=0),a===void 0&&(a=o.dflt),o.arrayOk){if(ki(u))return l.set(u),u;if(sl(u))return u=ul(u),l.set(u),u}var f=Sa.valObjectMeta[o.valType].coerceFunction;f(u,l,a,o);var c=l.get();return s&&c===a&&!Lh(u,o)&&(u=z0(s,n).get(),f(u,l,a,o),c=l.get()),c};Sa.coerce2=function(e,r,t,n,a){var o=z0(e,n),i=Sa.coerce(e,r,t,n,a),l=o.get();return l!=null?i:!1};Sa.coerceFont=function(e,r,t,n){n||(n={}),t=X8({},t),t=X8(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};Sa.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?K3.contrast(u):t)}e(r+".fgopacity",l?.5:1)}};Sa.coerceHoverinfo=function(e,r,t){var n=r._module.attributes,a=n.hoverinfo?n:lQ,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 Sa.coerce(e,r,a,"hoverinfo",i)};Sa.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var n,a;!ki(t)&&!e.selected&&!e.unselected&&(n=t,a=uQ*t),r("selected.marker.opacity",n),r("unselected.marker.opacity",a)}}};function Lh(e,r){var t=Sa.valObjectMeta[r.valType];if(r.arrayOk&&ki(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}Sa.validate=Lh});var Dh=xe((gxe,J8)=>{"use strict";J8.exports=function(){}});var Q3=xe((yxe,$8)=>{"use strict";$8.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 Q8=xe((mxe,K8)=>{K8.exports=cQ;function cQ(){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 e9=xe((bxe,j8)=>{j8.exports=vQ;function vQ(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 t9=xe((xxe,r9)=>{r9.exports=hQ;function hQ(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 j3=xe((_xe,n9)=>{n9.exports=dQ;function dQ(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 i9=xe((wxe,a9)=>{a9.exports=pQ;function pQ(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 l9=xe((Mxe,o9)=>{o9.exports=gQ;function gQ(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],g=r[10],b=r[11],h=r[12],_=r[13],T=r[14],m=r[15],k=t*l-n*i,S=t*u-a*i,x=t*s-o*i,M=n*u-a*l,d=n*s-o*l,w=a*s-o*u,y=f*_-c*h,v=f*T-g*h,A=f*m-b*h,p=c*T-g*_,D=c*m-b*_,E=g*m-b*T,R=k*E-S*D+x*p+M*A-d*v+w*y;return R?(R=1/R,e[0]=(l*E-u*D+s*p)*R,e[1]=(a*D-n*E-o*p)*R,e[2]=(_*w-T*d+m*M)*R,e[3]=(g*d-c*w-b*M)*R,e[4]=(u*A-i*E-s*v)*R,e[5]=(t*E-a*A+o*v)*R,e[6]=(T*x-h*w-m*S)*R,e[7]=(f*w-g*x+b*S)*R,e[8]=(i*D-l*A+s*y)*R,e[9]=(n*A-t*D-o*y)*R,e[10]=(h*d-_*x+m*k)*R,e[11]=(c*x-f*d-b*k)*R,e[12]=(l*v-i*p-u*y)*R,e[13]=(t*p-n*v+a*y)*R,e[14]=(_*S-h*M-T*k)*R,e[15]=(f*M-c*S+g*k)*R,e):null}});var u9=xe((Txe,s9)=>{s9.exports=yQ;function yQ(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],g=r[10],b=r[11],h=r[12],_=r[13],T=r[14],m=r[15];return e[0]=l*(g*m-b*T)-c*(u*m-s*T)+_*(u*b-s*g),e[1]=-(n*(g*m-b*T)-c*(a*m-o*T)+_*(a*b-o*g)),e[2]=n*(u*m-s*T)-l*(a*m-o*T)+_*(a*s-o*u),e[3]=-(n*(u*b-s*g)-l*(a*b-o*g)+c*(a*s-o*u)),e[4]=-(i*(g*m-b*T)-f*(u*m-s*T)+h*(u*b-s*g)),e[5]=t*(g*m-b*T)-f*(a*m-o*T)+h*(a*b-o*g),e[6]=-(t*(u*m-s*T)-i*(a*m-o*T)+h*(a*s-o*u)),e[7]=t*(u*b-s*g)-i*(a*b-o*g)+f*(a*s-o*u),e[8]=i*(c*m-b*_)-f*(l*m-s*_)+h*(l*b-s*c),e[9]=-(t*(c*m-b*_)-f*(n*m-o*_)+h*(n*b-o*c)),e[10]=t*(l*m-s*_)-i*(n*m-o*_)+h*(n*s-o*l),e[11]=-(t*(l*b-s*c)-i*(n*b-o*c)+f*(n*s-o*l)),e[12]=-(i*(c*T-g*_)-f*(l*T-u*_)+h*(l*g-u*c)),e[13]=t*(c*T-g*_)-f*(n*T-a*_)+h*(n*g-a*c),e[14]=-(t*(l*T-u*_)-i*(n*T-a*_)+h*(n*u-a*l)),e[15]=t*(l*g-u*c)-i*(n*g-a*c)+f*(n*u-a*l),e}});var c9=xe((Axe,f9)=>{f9.exports=mQ;function mQ(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],g=e[11],b=e[12],h=e[13],_=e[14],T=e[15],m=r*i-t*o,k=r*l-n*o,S=r*u-a*o,x=t*l-n*i,M=t*u-a*i,d=n*u-a*l,w=s*h-f*b,y=s*_-c*b,v=s*T-g*b,A=f*_-c*h,p=f*T-g*h,D=c*T-g*_;return m*D-k*p+S*A+x*v-M*y+d*w}});var h9=xe((kxe,v9)=>{v9.exports=bQ;function bQ(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],g=r[9],b=r[10],h=r[11],_=r[12],T=r[13],m=r[14],k=r[15],S=t[0],x=t[1],M=t[2],d=t[3];return e[0]=S*n+x*l+M*c+d*_,e[1]=S*a+x*u+M*g+d*T,e[2]=S*o+x*s+M*b+d*m,e[3]=S*i+x*f+M*h+d*k,S=t[4],x=t[5],M=t[6],d=t[7],e[4]=S*n+x*l+M*c+d*_,e[5]=S*a+x*u+M*g+d*T,e[6]=S*o+x*s+M*b+d*m,e[7]=S*i+x*f+M*h+d*k,S=t[8],x=t[9],M=t[10],d=t[11],e[8]=S*n+x*l+M*c+d*_,e[9]=S*a+x*u+M*g+d*T,e[10]=S*o+x*s+M*b+d*m,e[11]=S*i+x*f+M*h+d*k,S=t[12],x=t[13],M=t[14],d=t[15],e[12]=S*n+x*l+M*c+d*_,e[13]=S*a+x*u+M*g+d*T,e[14]=S*o+x*s+M*b+d*m,e[15]=S*i+x*f+M*h+d*k,e}});var p9=xe((Sxe,d9)=>{d9.exports=xQ;function xQ(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,c,g,b,h,_,T,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],g=r[6],b=r[7],h=r[8],_=r[9],T=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]=g,e[7]=b,e[8]=h,e[9]=_,e[10]=T,e[11]=m,e[12]=i*n+f*a+h*o+r[12],e[13]=l*n+c*a+_*o+r[13],e[14]=u*n+g*a+T*o+r[14],e[15]=s*n+b*a+m*o+r[15]),e}});var y9=xe((Cxe,g9)=>{g9.exports=_Q;function _Q(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 b9=xe((Exe,m9)=>{m9.exports=wQ;function wQ(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,g,b,h,_,T,m,k,S,x,M,d,w,y,v,A,p,D,E,R,I;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],g=r[1],b=r[2],h=r[3],_=r[4],T=r[5],m=r[6],k=r[7],S=r[8],x=r[9],M=r[10],d=r[11],w=a*a*f+s,y=o*a*f+i*u,v=i*a*f-o*u,A=a*o*f-i*u,p=o*o*f+s,D=i*o*f+a*u,E=a*i*f+o*u,R=o*i*f-a*u,I=i*i*f+s,e[0]=c*w+_*y+S*v,e[1]=g*w+T*y+x*v,e[2]=b*w+m*y+M*v,e[3]=h*w+k*y+d*v,e[4]=c*A+_*p+S*D,e[5]=g*A+T*p+x*D,e[6]=b*A+m*p+M*D,e[7]=h*A+k*p+d*D,e[8]=c*E+_*R+S*I,e[9]=g*E+T*R+x*I,e[10]=b*E+m*R+M*I,e[11]=h*E+k*R+d*I,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var _9=xe((Lxe,x9)=>{x9.exports=MQ;function MQ(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],g=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+g*n,e[8]=s*a-o*n,e[9]=f*a-i*n,e[10]=c*a-l*n,e[11]=g*a-u*n,e}});var M9=xe((Dxe,w9)=>{w9.exports=TQ;function TQ(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],g=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-g*n,e[8]=o*n+s*a,e[9]=i*n+f*a,e[10]=l*n+c*a,e[11]=u*n+g*a,e}});var A9=xe((Rxe,T9)=>{T9.exports=AQ;function AQ(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],g=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+g*n,e[4]=s*a-o*n,e[5]=f*a-i*n,e[6]=c*a-l*n,e[7]=g*a-u*n,e}});var S9=xe((Fxe,k9)=>{k9.exports=kQ;function kQ(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 E9=xe((Pxe,C9)=>{C9.exports=SQ;function SQ(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,g=n*s,b=a*u,h=a*s,_=o*s,T=i*l,m=i*u,k=i*s;return e[0]=1-(b+_),e[1]=c+k,e[2]=g-m,e[3]=0,e[4]=c-k,e[5]=1-(f+_),e[6]=h+T,e[7]=0,e[8]=g+m,e[9]=h-T,e[10]=1-(f+b),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var D9=xe((Ixe,L9)=>{L9.exports=CQ;function CQ(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 F9=xe((zxe,R9)=>{R9.exports=EQ;function EQ(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 I9=xe((Nxe,P9)=>{P9.exports=LQ;function LQ(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 N9=xe((qxe,z9)=>{z9.exports=DQ;function DQ(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 B9=xe((Bxe,q9)=>{q9.exports=RQ;function RQ(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 U9=xe((Oxe,O9)=>{O9.exports=FQ;function FQ(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,g=a*i,b=a*l,h=a*u,_=o*i,T=o*l,m=o*u;return e[0]=1-c-h,e[1]=f+m,e[2]=g-T,e[3]=0,e[4]=f-m,e[5]=1-s-h,e[6]=b+_,e[7]=0,e[8]=g+T,e[9]=b-_,e[10]=1-s-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var V9=xe((Uxe,H9)=>{H9.exports=PQ;function PQ(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((Hxe,G9)=>{G9.exports=IQ;function IQ(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 W9=xe((Vxe,X9)=>{X9.exports=zQ;function zQ(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 J9=xe((Gxe,Z9)=>{Z9.exports=NQ;function NQ(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 K9=xe((Yxe,$9)=>{var qQ=j3();$9.exports=BQ;function BQ(e,r,t,n){var a,o,i,l,u,s,f,c,g,b,h=r[0],_=r[1],T=r[2],m=n[0],k=n[1],S=n[2],x=t[0],M=t[1],d=t[2];return Math.abs(h-x)<1e-6&&Math.abs(_-M)<1e-6&&Math.abs(T-d)<1e-6?qQ(e):(f=h-x,c=_-M,g=T-d,b=1/Math.sqrt(f*f+c*c+g*g),f*=b,c*=b,g*=b,a=k*g-S*c,o=S*f-m*g,i=m*c-k*f,b=Math.sqrt(a*a+o*o+i*i),b?(b=1/b,a*=b,o*=b,i*=b):(a=0,o=0,i=0),l=c*i-g*o,u=g*a-f*i,s=f*o-c*a,b=Math.sqrt(l*l+u*u+s*s),b?(b=1/b,l*=b,u*=b,s*=b):(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]=g,e[11]=0,e[12]=-(a*h+o*_+i*T),e[13]=-(l*h+u*_+s*T),e[14]=-(f*h+c*_+g*T),e[15]=1,e)}});var j9=xe((Xxe,Q9)=>{Q9.exports=OQ;function OQ(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 ey=xe((Wxe,eM)=>{eM.exports={create:Q8(),clone:e9(),copy:t9(),identity:j3(),transpose:i9(),invert:l9(),adjoint:u9(),determinant:c9(),multiply:h9(),translate:p9(),scale:y9(),rotate:b9(),rotateX:_9(),rotateY:M9(),rotateZ:A9(),fromRotation:S9(),fromRotationTranslation:E9(),fromScaling:D9(),fromTranslation:F9(),fromXRotation:I9(),fromYRotation:N9(),fromZRotation:B9(),fromQuat:U9(),frustum:V9(),perspective:Y9(),perspectiveFromFieldOfView:W9(),ortho:J9(),lookAt:K9(),str:j9()}});var Rh=xe(on=>{"use strict";var UQ=ey();on.init2dArray=function(e,r){for(var t=new Array(e),n=0;n<e;n++)t[n]=new Array(r);return t};on.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};on.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]=on.dot(e[a],r);else if(r[0].length){var o=on.transposeRagged(r);for(n=new Array(o.length),a=0;a<o.length;a++)n[a]=on.dot(e,o[a])}else for(n=0,a=0;a<t;a++)n+=e[a]*r[a];return n};on.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};on.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]]};on.rotationXYMatrix=function(e,r,t){return on.dot(on.dot(on.translationMatrix(r,t),on.rotationMatrix(e)),on.translationMatrix(-r,-t))};on.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return on.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};on.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 on.dot(e,[t[0],t[1],1]).slice(0,2)}};on.apply2DTransform2=function(e){var r=on.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};on.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]};on.inverseTransformMatrix=function(e){var r=[];return UQ.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 Pf=xe((Jxe,oM)=>{"use strict";var HQ=lt(),rM=ll(),VQ=Rh(),GQ=ey();function YQ(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 XQ(e){var r=HQ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function tM(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function WQ(e,r){nM("global",e,r)}function nM(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):rM.warn("addStyleRule failed"):rM.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function ZQ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&tM(t)}function JQ(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._hoverStyle={activeStyleParts:i,inactiveStyleParts:l},s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),s.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),s.setAttribute(u,!0))})}function $Q(e){var r=iM(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=aM(n);if(a){var o=VQ.convertCssMatrix(a);t=GQ.multiply(t,t,o)}}),t}function aM(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 iM(e){for(var r=[];KQ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function KQ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function QQ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}oM.exports={getGraphDiv:YQ,isPlotDiv:XQ,removeElement:tM,addStyleRule:WQ,addRelatedStyleRule:nM,deleteRelatedStyleRule:ZQ,setStyleOnHover:JQ,getFullTransformMatrix:$Q,getElementTransformMatrix:aM,getElementAndAncestors:iM,equalDomRects:QQ}});var If=xe(($xe,lM)=>{"use strict";lM.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 ua=xe((Kxe,dM)=>{"use strict";var uM=Rt().extendFlat,jQ=ss(),fM={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},cM={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},ej=fM.flags.slice().concat(["fullReplot"]),rj=cM.flags.slice().concat("layoutReplot");dM.exports={traces:fM,layout:cM,traceFlags:function(){return sM(ej)},layoutFlags:function(){return sM(rj)},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:vM};function sM(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function vM(e,r,t){var n=uM({},e);for(var a in n){var o=n[a];jQ(o)&&(n[a]=hM(o,r,t,a))}return t==="from-root"&&(n.editType=r),n}function hM(e,r,t,n){if(e.valType){var a=uM({},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]=hM(e.items[o],r,"from-root")}return a}else return vM(e,r,n.charAt(0)==="_"?"nested":"from-root")}});var fl=xe(ry=>{"use strict";ry.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};ry.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 ty={};Ht(ty,{DATE_FORMAT_LINK:()=>nj,FORMAT_LINK:()=>tj});var tj,nj,ny=Ut(()=>{"use strict";tj="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",nj="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Si=xe(N0=>{"use strict";var{DATE_FORMAT_LINK:aj,FORMAT_LINK:ij}=(ny(),or(ty)),oj=["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 lj({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}".`,ij,"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}".`,aj,"for details on the date formatting syntax.",oj].join(" ")}N0.templateFormatStringDescription=lj;N0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>wt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});N0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>wt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});N0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});N0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Ih=xe((r4e,xM)=>{"use strict";function cl(e,r){return r?r.d2l(e):e}function pM(e,r){return r?r.l2d(e):e}function sj(e){return e.x0}function uj(e){return e.x1}function fj(e){return e.y0}function cj(e){return e.y1}function gM(e){return e.x0shift||0}function yM(e){return e.x1shift||0}function mM(e){return e.y0shift||0}function bM(e){return e.y1shift||0}function Fh(e,r){return cl(e.x1,r)+yM(e)-cl(e.x0,r)-gM(e)}function Ph(e,r,t){return cl(e.y1,t)+bM(e)-cl(e.y0,t)-mM(e)}function vj(e,r){return Math.abs(Fh(e,r))}function hj(e,r,t){return Math.abs(Ph(e,r,t))}function dj(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Fh(e,r),2)+Math.pow(Ph(e,r,t),2))}function pj(e,r){return pM((cl(e.x1,r)+yM(e)+cl(e.x0,r)+gM(e))/2,r)}function gj(e,r,t){return pM((cl(e.y1,t)+bM(e)+cl(e.y0,t)+mM(e))/2,t)}function yj(e,r,t){return e.type!=="line"?void 0:Ph(e,r,t)/Fh(e,r)}var mj=["x0","x1","y0","y1","dy","height","ycenter"],bj=["x0","x1","y0","y1","dx","width","xcenter"];xM.exports={x0:sj,x1:uj,y0:fj,y1:cj,slope:yj,dx:Fh,dy:Ph,width:vj,height:hj,length:dj,xcenter:pj,ycenter:gj,simpleXVariables:mj,simpleYVariables:bj}});var MM=xe((t4e,wM)=>{"use strict";var xj=ua().overrideAll,_s=Zn(),_M=Wn(),_j=fl().dash,vl=Rt().extendFlat,{shapeTexttemplateAttrs:wj,templatefallbackAttrs:Mj}=Si(),Tj=Ih();wM.exports=xj({newshape:{visible:vl({},_s.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:vl({},_s.legend,{}),legendgroup:vl({},_s.legendgroup,{}),legendgrouptitle:{text:vl({},_s.legendgrouptitle.text,{}),font:_M({})},legendrank:vl({},_s.legendrank,{}),legendwidth:vl({},_s.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:vl({},_j,{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:vl({},_s.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:wj({newshape:!0},{keys:Object.keys(Tj)}),texttemplatefallback:Mj({editType:"arraydraw"}),font:_M({}),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 AM=xe((n4e,TM)=>{"use strict";var Aj=fl().dash,kj=Rt().extendFlat;TM.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:kj({},Aj,{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 zh=xe((a4e,kM)=>{"use strict";kM.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 q0=xe((i4e,LM)=>{"use strict";var ay=Wn(),Sj=If(),Nh=no(),SM=MM(),CM=AM(),Cj=zh(),EM=Rt().extendFlat,qh=ay({editType:"calc"});qh.family.dflt='"Open Sans", verdana, arial, sans-serif';qh.size.dflt=12;qh.color.dflt=Nh.defaultLine;LM.exports={font:qh,title:{text:{valType:"string",editType:"layoutstyle"},font:ay({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:ay({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:EM(Cj({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:Nh.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Nh.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:Nh.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:SM.newshape,activeshape:SM.activeshape,newselection:CM.newselection,activeselection:CM.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:EM({},Sj.transition,{editType:"none"})}});var DM=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);-webkit-touch-callout:none}.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 button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.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(Qr=>{"use strict";var iy=ll(),RM=Dh(),FM=Q3(),s4e=Pf().addStyleRule,PM=Rt(),Ej=Zn(),Lj=q0(),Dj=PM.extendFlat,oy=PM.extendDeepAll;Qr.modules={};Qr.allCategories={};Qr.allTypes=[];Qr.subplotsRegistry={};Qr.componentsRegistry={};Qr.layoutArrayContainers=[];Qr.layoutArrayRegexes=[];Qr.traceLayoutAttributes={};Qr.localeRegistry={};Qr.apiMethodRegistry={};Qr.collectableSubplotTypes=null;Qr.register=function(r){if(Qr.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":Rj(n);break;case"component":Pj(n);break;case"locale":Ij(n);break;case"apiMethod":var a=n.name;Qr.apiMethodRegistry[a]=n.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};Qr.getModule=function(e){var r=Qr.modules[qM(e)];return r?r._module:!1};Qr.traceIs=function(e,r){if(e=qM(e),e==="various")return!1;var t=Qr.modules[e];return t||(e&&iy.log("Unrecognized trace type "+e+"."),t=Qr.modules[Ej.type.dflt]),!!t.categories[r]};Qr.getComponentMethod=function(e,r){var t=Qr.componentsRegistry[e];return t&&t[r]||RM};Qr.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return Qr.apiMethodRegistry[e].apply(null,r)};function Rj(e){var r=e.name,t=e.categories,n=e.meta;if(Qr.modules[r]){iy.log("Type "+r+" already registered");return}Qr.subplotsRegistry[e.basePlotModule.name]||Fj(e.basePlotModule);for(var a={},o=0;o<t.length;o++)a[t[o]]=!0,Qr.allCategories[t[o]]=!0;Qr.modules[r]={_module:e,categories:a},n&&Object.keys(n).length&&(Qr.modules[r].meta=n),Qr.allTypes.push(r);for(var i in Qr.componentsRegistry)zM(i,r);e.layoutAttributes&&Dj(Qr.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,u=l.name;u==="map"&&DM(),(u==="geo"||u==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function Fj(e){var r=e.name;if(Qr.subplotsRegistry[r]){iy.log("Plot type "+r+" already registered.");return}IM(e),Qr.subplotsRegistry[r]=e;for(var t in Qr.componentsRegistry)NM(t,e.name)}function Pj(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;Qr.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&FM(Qr.layoutArrayContainers,r),IM(e));for(var t in Qr.modules)zM(r,t);for(var n in Qr.subplotsRegistry)NM(r,n);e.schema&&e.schema.layout&&oy(Lj,e.schema.layout)}function Ij(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=Qr.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 IM(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)FM(Qr.layoutArrayRegexes,r[t])}}function zM(e,r){var t=Qr.componentsRegistry[e].schema;if(!(!t||!t.traces)){var n=t.traces[r];n&&oy(Qr.modules[r]._module.attributes,n)}}function NM(e,r){var t=Qr.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var n=Qr.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&&oy(a,i)}}function qM(e){return typeof e=="object"&&(e=e.type),e}});var WM=xe(ln=>{"use strict";var zj=w0().timeFormat,YM=ut(),ly=ll(),dl=(A0(),or(T0)).mod,U0=(wn(),or(Rn)),ri=U0.BADNUM,Ca=U0.ONEDAY,zf=U0.ONEHOUR,hl=U0.ONEMIN,O0=U0.ONESEC,Nf=U0.EPOCHJD,Do=Cr(),BM=w0().utcFormat,Nj=/^\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,qj=/^\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,OM=new Date().getFullYear()-70;function Ro(e){return e&&Do.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}ln.dateTick0=function(e,r){var t=Bj(e,!!r);if(r<2)return t;var n=ln.dateTime2ms(t,e);return n+=Ca*(r-1),ln.ms2DateTime(n,0,e)};function Bj(e,r){return Ro(e)?r?Do.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Do.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}ln.dfltRange=function(e){return Ro(e)?Do.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};ln.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Oh,Uh;ln.dateTime2ms=function(e,r){if(ln.isJSDate(e)){var t=e.getTimezoneOffset()*hl,n=(e.getUTCMinutes()-e.getMinutes())*hl+(e.getUTCSeconds()-e.getSeconds())*O0+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*hl;t=t-a/2+dl(n-t+a/2,a)}return e=Number(e)-t,e>=Oh&&e<=Uh?e:ri}if(typeof e!="string"&&typeof e!="number")return ri;e=String(e);var o=Ro(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?qj:Nj);if(!u)return ri;var s=u[1],f=u[3]||"1",c=Number(u[5]||1),g=Number(u[7]||0),b=Number(u[9]||0),h=Number(u[11]||0);if(o){if(s.length===2)return ri;s=Number(s);var _;try{var T=Do.getComponentMethod("calendars","getCal")(r);if(l){var m=f.charAt(f.length-1)==="i";f=parseInt(f,10),_=T.newDate(s,T.toMonthIndex(s,f,m),c)}else _=T.newDate(s,Number(f),c)}catch(S){return ri}return _?(_.toJD()-Nf)*Ca+g*zf+b*hl+h*O0:ri}s.length===2?s=(Number(s)+2e3-OM)%100+OM:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,c,g,b));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==c?ri:k.getTime()+h*O0};Oh=ln.MIN_MS=ln.dateTime2ms("-9999");Uh=ln.MAX_MS=ln.dateTime2ms("9999-12-31 23:59:59.9999");ln.isDateTime=function(e,r){return ln.dateTime2ms(e,r)!==ri};function B0(e,r){return String(e+Math.pow(10,r)).slice(1)}var Bh=90*Ca,UM=3*zf,HM=5*hl;ln.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Oh&&e<=Uh))return ri;r||(r=0);var n=Math.floor(dl(e+.05,1)*10),a=Math.round(e-n/10),o,i,l,u,s,f;if(Ro(t)){var c=Math.floor(a/Ca)+Nf,g=Math.floor(dl(e,Ca));try{o=Do.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(b){o=BM("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<Bh?Math.floor(g/zf):0,l=r<Bh?Math.floor(g%zf/hl):0,u=r<UM?Math.floor(g%hl/O0):0,s=r<HM?g%O0*10+n:0}else f=new Date(a),o=BM("%Y-%m-%d")(f),i=r<Bh?f.getUTCHours():0,l=r<Bh?f.getUTCMinutes():0,u=r<UM?f.getUTCSeconds():0,s=r<HM?f.getUTCMilliseconds()*10+n:0;return XM(o,i,l,u,s)};ln.ms2DateTimeLocal=function(e){if(!(e>=Oh+Ca&&e<=Uh-Ca))return ri;var r=Math.floor(dl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=zj("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return XM(n,a,o,i,l)};function XM(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+B0(r,2)+":"+B0(t,2),(n||a)&&(e+=":"+B0(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+B0(a,o)}return e}ln.cleanDate=function(e,r,t){if(e===ri)return r;if(ln.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ro(t))return ly.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=ln.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!ln.isDateTime(e,t))return ly.error("unrecognized date",e),r;return e};var Oj=/%\d?f/g,Uj=/%h/g,Hj={1:"1",2:"1",3:"2",4:"2"};function VM(e,r,t,n){e=e.replace(Oj,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(Uj,function(){return Hj[t("%q")(a)]}),Ro(n))try{e=Do.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var Vj=[59,59.9,59.99,59.999,59.9999];function Gj(e,r){var t=dl(e+.05,Ca),n=B0(Math.floor(t/zf),2)+":"+B0(dl(Math.floor(t/hl),60),2);if(r!=="M"){YM(r)||(r=0);var a=Math.min(dl(e/O0,60),Vj[r]),o=(100+a).toFixed(r).slice(1);r>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+o}return n}ln.formatDate=function(e,r,t,n,a,o){if(a=Ro(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 Gj(e,t)+`
`+VM(o.dayMonthYear,e,n,a);return VM(r,e,n,a)};var GM=3*Ca;ln.incrementMonth=function(e,r,t){t=Ro(t)&&t;var n=dl(e,Ca);if(e=Math.round(e-n),t)try{var a=Math.round(e/Ca)+Nf,o=Do.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-Nf)*Ca+n}catch(u){ly.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+GM);return l.setUTCMonth(l.getUTCMonth()+r)+n-GM};ln.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=Ro(r)&&Do.getComponentMethod("calendars","getCal")(r),s=0;s<e.length;s++){if(l=e[s],!YM(l)){o++;continue}if(!(l%Ca))if(u)try{i=u.fromJD(l/Ca+Nf),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 sy=xe((c4e,ZM)=>{"use strict";ZM.exports=function(r){return r}});var fy=xe(Fo=>{"use strict";var Yj=ut(),Xj=ll(),Wj=sy(),Zj=(wn(),or(Rn)).BADNUM,uy=1e-9;Fo.findBin=function(e,r,t){if(Yj(r.start))return t?Math.ceil((e-r.start)/r.size-uy)-1:Math.floor((e-r.start)/r.size+uy);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?Jj:$j:u=t?Qj:Kj,e+=i*uy*(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&&Xj.log("Long binary search..."),n-1};function Jj(e,r){return e<r}function $j(e,r){return e<=r}function Kj(e,r){return e>r}function Qj(e,r){return e>=r}Fo.sorterAsc=function(e,r){return e-r};Fo.sorterDes=function(e,r){return r-e};Fo.distinctVals=function(e){var r=e.slice();r.sort(Fo.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Zj;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}};Fo.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]};Fo.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()};Fo.findIndexOfMin=function(e,r){r=r||Wj;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 Hh={};Ht(Hh,{default:()=>eee});function jj(e){return Object.keys(e).sort()}var eee,Vh=Ut(()=>{"use strict";eee=jj});var JM=xe(sn=>{"use strict";var qf=ut(),ree=ba().isArrayOrTypedArray;sn.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),qf(r)||(r=!1),ree(t[0])){for(o=new Array(n),a=0;a<n;a++)o[a]=sn.aggNums(e,r,t[a]);t=o}for(a=0;a<n;a++)qf(r)?qf(t[a])&&(r=e(+r,+t[a])):r=t[a];return r};sn.len=function(e){return sn.aggNums(function(r){return r+1},0,e)};sn.mean=function(e,r){return r||(r=sn.len(e)),sn.aggNums(function(t,n){return t+n},0,e)/r};sn.geometricMean=function(e,r){return r||(r=sn.len(e)),Math.pow(sn.aggNums(function(t,n){return t*n},1,e),1/r)};sn.midRange=function(e){if(!(e===void 0||e.length===0))return(sn.aggNums(Math.max,null,e)+sn.aggNums(Math.min,null,e))/2};sn.variance=function(e,r,t){return r||(r=sn.len(e)),qf(t)||(t=sn.mean(e,r)),sn.aggNums(function(n,a){return n+Math.pow(a-t,2)},0,e)/r};sn.stdev=function(e,r,t){return Math.sqrt(sn.variance(e,r,t))};sn.median=function(e){var r=e.slice().sort();return sn.interp(r,.5)};sn.interp=function(e,r){if(!qf(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 eT=xe((d4e,jM)=>{"use strict";var $M=(A0(),or(T0)),cy=$M.mod,tee=$M.modHalf,Bf=Math.PI,pl=2*Bf;function nee(e){return e/180*Bf}function aee(e){return e/Bf*180}function vy(e){return Math.abs(e[1]-e[0])>pl-1e-14}function KM(e,r){return tee(r-e,pl)}function iee(e,r){return Math.abs(KM(e,r))}function QM(e,r){if(vy(r))return!0;var t,n;r[0]<r[1]?(t=r[0],n=r[1]):(t=r[1],n=r[0]),t=cy(t,pl),n=cy(n,pl),t>n&&(n+=pl);var a=cy(e,pl),o=a+pl;return a>=t&&a<=n||o>=t&&o<=n}function oee(e,r,t,n){if(!QM(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 hy(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=vy([t,n]),u,s,f,c,g;l?(u=0,s=Bf,f=pl):t<n?(u=t,f=n):(u=n,f=t),e<r?(c=e,g=r):(c=r,g=e);function b(m,k){return[m*Math.cos(k)+a,o-m*Math.sin(k)]}var h=Math.abs(f-u)<=Bf?0:1;function _(m,k,S){return"A"+[m,m]+" "+[0,h,S]+" "+b(m,k)}var T;return l?c===null?T="M"+b(g,u)+_(g,s,0)+_(g,f,0)+"Z":T="M"+b(c,u)+_(c,s,0)+_(c,f,0)+"ZM"+b(g,u)+_(g,s,1)+_(g,f,1)+"Z":c===null?(T="M"+b(g,u)+_(g,f,0),i&&(T+="L0,0Z")):T="M"+b(c,u)+"L"+b(g,u)+_(g,f,0)+"L"+b(c,f)+_(c,u,1)+"Z",T}function lee(e,r,t,n,a){return hy(null,e,r,t,n,a,0)}function see(e,r,t,n,a){return hy(null,e,r,t,n,a,1)}function uee(e,r,t,n,a,o){return hy(e,r,t,n,a,o,1)}jM.exports={deg2rad:nee,rad2deg:aee,angleDelta:KM,angleDist:iee,isFullCircle:vy,isAngleInsideSector:QM,isPtInsideSector:oee,pathArc:lee,pathSector:see,pathAnnulus:uee}});var rT=xe(ws=>{"use strict";ws.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ws.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ws.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ws.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ws.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ws.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var aT=xe(Ms=>{"use strict";var dy=(A0(),or(T0)).mod;Ms.segmentsIntersect=nT;function nT(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,c=n-r,g=o-r,b=l-o,h=u*b-f*c;if(h===0)return null;var _=(s*b-f*g)/h,T=(s*c-u*g)/h;return T<0||T>1||_<0||_>1?null:{x:e+u*_,y:r+c*_}}Ms.segmentDistance=function(r,t,n,a,o,i,l,u){if(nT(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,c=l-o,g=u-i,b=s*s+f*f,h=c*c+g*g,_=Math.min(Gh(s,f,b,o-r,i-t),Gh(s,f,b,l-r,u-t),Gh(c,g,h,r-o,t-i),Gh(c,g,h,n-o,a-i));return Math.sqrt(_)};function Gh(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 Yh,py,tT;Ms.getTextLocation=function(r,t,n,a){if((r!==py||a!==tT)&&(Yh={},py=r,tT=a),Yh[n])return Yh[n];var o=r.getPointAtLength(dy(n-a/2,t)),i=r.getPointAtLength(dy(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(dy(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 Yh[n]=c,c};Ms.clearLocationCache=function(){py=null};Ms.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,g;function b(_){var T=r.getPointAtLength(_);_===0?c=T:_===s&&(g=T);var m=T.x<a?a-T.x:T.x>o?T.x-o:0,k=T.y<i?i-T.y:T.y>l?T.y-l:0;return Math.sqrt(m*m+k*k)}for(var h=b(u);h;){if(u+=h+n,u>f)return;h=b(u)}for(h=b(f);h;){if(f-=h+n,u>f)return;h=b(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(c.x-g.x)<.1&&Math.abs(c.y-g.y)<.1}};Ms.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,g,b,h;s<l;){if(g=(f+c)/2,b=r.getPointAtLength(g),h=b[n]-t,Math.abs(h)<i)return b;u*h>0?c=g:f=g,s++}return b}});var Xh=xe(Of=>{"use strict";var Po={};Of.throttle=function(r,t,n){var a=Po[r],o=Date.now();if(!a){for(var i in Po)Po[i].ts<o-6e4&&delete Po[i];a=Po[r]={ts:0,timer:null}}iT(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)};Of.done=function(e){var r=Po[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};Of.clear=function(e){if(e)iT(Po[e]),delete Po[e];else for(var r in Po)Of.clear(r)};function iT(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var lT=xe((m4e,oT)=>{"use strict";oT.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var sT=xe((b4e,Wh)=>{"use strict";Wh.exports=gy;Wh.exports.isMobile=gy;Wh.exports.default=gy;var fee=/(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,cee=/CrOS/,vee=/android|ipad|playbook|silk/i;function gy(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=fee.test(r)&&!cee.test(r)||!!e.tablet&&vee.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var fT=xe((x4e,uT)=>{"use strict";var hee=ut(),dee=sT();uT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=pee(),typeof t!="string")return!0;var n=dee({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(hee(s)&&(s=+s),s>=13)return!0}}}return n};function pee(){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 vT=xe((_4e,cT)=>{"use strict";var gee=lt();cT.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]=gee.select(this)}),a}});var dT=xe((w4e,hT)=>{"use strict";var yee=Cr();hT.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=yee.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var gT=xe((M4e,pT)=>{"use strict";pT.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 mT=xe((T4e,yT)=>{"use strict";yT.exports=function(r){for(var t=xee(r)?bee:mee,n=[],a=0;a<r.length;a++){var o=r[a];t(o)&&n.push(o)}return n};function mee(e){return e.visible===!0}function bee(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function xee(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var xT=xe((A4e,bT)=>{"use strict";bT.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 wT={};Ht(wT,{default:()=>Mee});function wee(e){return typeof e=="string"&&(e=e.replace(_ee,"")),(0,_T.default)(e)?Number(e):void 0}var _T,_ee,Mee,MT=Ut(()=>{"use strict";_T=Q_(ut());wn();_ee=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Mee=wee});var kT=xe((S4e,AT)=>{"use strict";var Tee=/<[^>]*>/g,Aee=/[\p{S}\p{P}]/gu,kee=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,See=/�/g,Cee=/\s+/g,Zh="-",TT=Zh.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Eee=new RegExp(TT+"{3,}","g"),Lee=new RegExp(TT+"$","g"),Dee=60;function Ree(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}AT.exports=function(r,t=Dee){var n=Ree(r!=null?r:"").replace(See,"").replace(Tee," ").replace(Aee,a=>a===Zh?a:"").toLowerCase().trim().replace(Cee,Zh).replace(kee,"").replace(Eee,Zh);return n.length<=t?n:Array.from(n).slice(0,t).join("").replace(Lee,"")}});var tr=xe((C4e,qT)=>{"use strict";var Uf=lt(),Fee=w0().utcFormat,Pee=fg().format,RT=ut(),FT=(wn(),or(Rn)),PT=FT.FP_SAFE,Iee=-PT,ST=FT.BADNUM,Oe={};qT.exports=Oe;Oe.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],n=r.slice(t.length);return!/^[~,.0$#]/.test(n)&&/[&fps]/.test(n)?t+"~"+n:r};var CT={};Oe.warnBadFormat=function(e){var r=String(e);CT[r]||(CT[r]=1,Oe.warn('encountered bad format: "'+r+'"'))};Oe.noFormat=function(e){return String(e)};Oe.numberFormat=function(e){var r;try{r=Pee(Oe.adjustFormat(e))}catch(t){return Oe.warnBadFormat(e),Oe.noFormat}return r};Oe.nestedProperty=Kv();Oe.keyedContainer=_7();Oe.relativeAttr=M7();Oe.isPlainObject=ss();Oe.toLogRange=jv();Oe.relinkPrivateKeys=S7();var yl=ba();Oe.isArrayBuffer=yl.isArrayBuffer;Oe.isTypedArray=yl.isTypedArray;Oe.isArrayOrTypedArray=yl.isArrayOrTypedArray;Oe.isArray1D=yl.isArray1D;Oe.ensureArray=yl.ensureArray;Oe.concat=yl.concat;Oe.maxRowLength=yl.maxRowLength;Oe.minRowLength=yl.minRowLength;var IT=(A0(),or(T0));Oe.mod=IT.mod;Oe.modHalf=IT.modHalf;var ml=Z8();Oe.valObjectMeta=ml.valObjectMeta;Oe.coerce=ml.coerce;Oe.coerce2=ml.coerce2;Oe.coerceFont=ml.coerceFont;Oe.coercePattern=ml.coercePattern;Oe.coerceHoverinfo=ml.coerceHoverinfo;Oe.coerceSelectionMarkerOpacity=ml.coerceSelectionMarkerOpacity;Oe.validate=ml.validate;var qa=WM();Oe.dateTime2ms=qa.dateTime2ms;Oe.isDateTime=qa.isDateTime;Oe.ms2DateTime=qa.ms2DateTime;Oe.ms2DateTimeLocal=qa.ms2DateTimeLocal;Oe.cleanDate=qa.cleanDate;Oe.isJSDate=qa.isJSDate;Oe.formatDate=qa.formatDate;Oe.incrementMonth=qa.incrementMonth;Oe.dateTick0=qa.dateTick0;Oe.dfltRange=qa.dfltRange;Oe.findExactDates=qa.findExactDates;Oe.MIN_MS=qa.MIN_MS;Oe.MAX_MS=qa.MAX_MS;var Ts=fy();Oe.findBin=Ts.findBin;Oe.sorterAsc=Ts.sorterAsc;Oe.sorterDes=Ts.sorterDes;Oe.distinctVals=Ts.distinctVals;Oe.roundUp=Ts.roundUp;Oe.sort=Ts.sort;Oe.findIndexOfMin=Ts.findIndexOfMin;Oe.sortObjectKeys=(Vh(),or(Hh)).default;var Io=JM();Oe.aggNums=Io.aggNums;Oe.len=Io.len;Oe.mean=Io.mean;Oe.geometricMean=Io.geometricMean;Oe.median=Io.median;Oe.midRange=Io.midRange;Oe.variance=Io.variance;Oe.stdev=Io.stdev;Oe.interp=Io.interp;var Ci=Rh();Oe.init2dArray=Ci.init2dArray;Oe.transposeRagged=Ci.transposeRagged;Oe.dot=Ci.dot;Oe.translationMatrix=Ci.translationMatrix;Oe.rotationMatrix=Ci.rotationMatrix;Oe.rotationXYMatrix=Ci.rotationXYMatrix;Oe.apply3DTransform=Ci.apply3DTransform;Oe.apply2DTransform=Ci.apply2DTransform;Oe.apply2DTransform2=Ci.apply2DTransform2;Oe.convertCssMatrix=Ci.convertCssMatrix;Oe.inverseTransformMatrix=Ci.inverseTransformMatrix;var ao=eT();Oe.deg2rad=ao.deg2rad;Oe.rad2deg=ao.rad2deg;Oe.angleDelta=ao.angleDelta;Oe.angleDist=ao.angleDist;Oe.isFullCircle=ao.isFullCircle;Oe.isAngleInsideSector=ao.isAngleInsideSector;Oe.isPtInsideSector=ao.isPtInsideSector;Oe.pathArc=ao.pathArc;Oe.pathSector=ao.pathSector;Oe.pathAnnulus=ao.pathAnnulus;var V0=rT();Oe.isLeftAnchor=V0.isLeftAnchor;Oe.isCenterAnchor=V0.isCenterAnchor;Oe.isRightAnchor=V0.isRightAnchor;Oe.isTopAnchor=V0.isTopAnchor;Oe.isMiddleAnchor=V0.isMiddleAnchor;Oe.isBottomAnchor=V0.isBottomAnchor;var G0=aT();Oe.segmentsIntersect=G0.segmentsIntersect;Oe.segmentDistance=G0.segmentDistance;Oe.getTextLocation=G0.getTextLocation;Oe.clearLocationCache=G0.clearLocationCache;Oe.getVisibleSegment=G0.getVisibleSegment;Oe.findPointOnPath=G0.findPointOnPath;var Kh=Rt();Oe.extendFlat=Kh.extendFlat;Oe.extendDeep=Kh.extendDeep;Oe.extendDeepAll=Kh.extendDeepAll;Oe.extendDeepNoArrays=Kh.extendDeepNoArrays;var yy=ll();Oe.log=yy.log;Oe.warn=yy.warn;Oe.error=yy.error;var zee=(I0(),or(Ff));Oe.counterRegex=zee.counter;var my=Xh();Oe.throttle=my.throttle;Oe.throttleDone=my.done;Oe.clearThrottle=my.clear;var Ei=Pf();Oe.getGraphDiv=Ei.getGraphDiv;Oe.isPlotDiv=Ei.isPlotDiv;Oe.removeElement=Ei.removeElement;Oe.addStyleRule=Ei.addStyleRule;Oe.addRelatedStyleRule=Ei.addRelatedStyleRule;Oe.deleteRelatedStyleRule=Ei.deleteRelatedStyleRule;Oe.setStyleOnHover=Ei.setStyleOnHover;Oe.getFullTransformMatrix=Ei.getFullTransformMatrix;Oe.getElementTransformMatrix=Ei.getElementTransformMatrix;Oe.getElementAndAncestors=Ei.getElementAndAncestors;Oe.equalDomRects=Ei.equalDomRects;Oe.clearResponsive=lT();Oe.preserveDrawingBuffer=fT();Oe.makeTraceGroups=vT();Oe._=dT();Oe.notifier=V3();Oe.filterUnique=gT();Oe.filterVisible=mT();Oe.pushUnique=Q3();Oe.increment=xT();Oe.cleanNumber=(MT(),or(wT)).default;Oe.slugify=kT();Oe.ensureNumber=function(r){return RT(r)?(r=Number(r),r>PT||r<Iee?ST:r):ST};Oe.isIndex=function(e,r){return r!==void 0&&e>=r?!1:RT(e)&&e>=0&&e%1===0};Oe.noop=Dh();Oe.identity=sy();Oe.repeat=function(e,r){for(var t=new Array(r),n=0;n<r;n++)t[n]=e;return t};Oe.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=Oe.nestedProperty(e,o.replace("?",t)),l=Oe.nestedProperty(e,o.replace("?",n)),u=i.get();i.set(l.get()),l.set(u)}};Oe.raiseToTop=function(r){r.parentNode.appendChild(r)};Oe.cancelTransition=function(e){return e.transition().duration(0)};Oe.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Oe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Oe.simpleMap=function(e,r,t,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};Oe.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?(Oe.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};Oe.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};Oe.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};Oe.syncOrAsync=function(e,r,t){var n,a;function o(){return Oe.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)};Oe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Oe.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]]}};Oe.mergeArray=function(e,r,t,n){var a=typeof n=="function";if(Oe.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}};Oe.mergeArrayCastPositive=function(e,r,t){return Oe.mergeArray(e,r,t,function(n){var a=+n;return isFinite(a)&&a>0?a:0})};Oe.fillArray=function(e,r,t,n){if(n=n||Oe.identity,Oe.isArrayOrTypedArray(e))for(var a=0;a<r.length;a++)r[a][t]=n(e[a])};Oe.castOption=function(e,r,t,n){n=n||Oe.identity;var a=Oe.nestedProperty(e,t).get();return Oe.isArrayOrTypedArray(a)?Array.isArray(r)&&Oe.isArrayOrTypedArray(a[r[0]])?n(a[r[0]][r[1]]):n(a[r]):a};Oe.extractOption=function(e,r,t,n){if(t in e)return e[t];var a=Oe.nestedProperty(r,n).get();if(!Array.isArray(a))return a};Oe.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(Oe.isIndex(i)||Oe.isArrayOrTypedArray(i)&&Oe.isIndex(i[0])&&Oe.isIndex(i[1])){var l=i,u=t?t[l]:l;a(u)&&(e[u].selected=1)}}};Oe.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var n=Oe.nestedProperty(e,t).get();return Oe.isArrayOrTypedArray(n)?n:!1}else if(Oe.isArrayOrTypedArray(t))return t;return!1};function zT(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):Oe.isTypedArray(u)?a===-1?n[l]=u.subarray():n[l]=u.subarray(0,a):u&&typeof u=="object"?n[l]=zT(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}Oe.minExtend=zT;Oe.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};Oe.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var Nee=/Version\/[\d\.]+.*Safari/;Oe.isSafari=function(){return Nee.test(window.navigator.userAgent)};var qee=/iPad|iPhone|iPod/;Oe.isIOS=function(){return qee.test(window.navigator.userAgent)};var Bee=/Macintosh.+AppleWebKit.+Gecko\)$/;Oe.isMacWKWebView=()=>Bee.test(window.navigator.userAgent);var Oee=/Firefox\/(\d+)\.\d+/;Oe.getFirefoxVersion=function(){var e=Oee.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Oe.isD3Selection=function(e){return e instanceof Uf.selection};Oe.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};Oe.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};Oe.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 Uee=/^([^\[\.]+)\.(.+)?/,Hee=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Jh(e,r){return r in e&&!Object.prototype.hasOwnProperty.call(e,r)}Oe.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(Uee)){if(a=e[t],n=r[1],Jh(e,n))continue;delete e[t],e[n]=Oe.extendDeepNoArrays(e[n]||{},Oe.objectFromPath(t,Oe.expandObjectPaths(a))[n])}else if(r=t.match(Hee)){if(a=e[t],n=r[1],Jh(e,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]||{},Oe.extendDeepNoArrays(i,Oe.objectFromPath(l,Oe.expandObjectPaths(a)));else{if(Jh(e,n))continue;e[n][o]=Oe.expandObjectPaths(a)}}else{if(Jh(e,t))continue;e[t]=Oe.expandObjectPaths(e[t])}}return e};Oe.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};Oe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var NT=/^\w*$/;Oe.templateString=function(e,r){var t={};return e.replace(Oe.TEMPLATE_STRING_REGEX,function(n,a){var o;return NT.test(a)?o=r[a]:(t[a]=t[a]||Oe.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var Vee={max:10,count:0,name:"hovertemplate"};Oe.hovertemplateString=e=>by(Ot(wt({},e),{opts:Vee}));var Gee={max:10,count:0,name:"texttemplate"};Oe.texttemplateString=e=>by(Ot(wt({},e),{opts:Gee}));var Yee=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Xee(e){var r=e.match(Yee);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Wee={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Oe.texttemplateStringForShapes=e=>by(Ot(wt({},e),{opts:Wee}));var ET=/^[:|\|]/;function by({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:o}){return o.replace(Oe.TEMPLATE_STRING_REGEX,(i,l,u)=>{let s=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),g=["xother_","yother_"].includes(l),b=s||f||g||c;(f||c)&&(l=l.substring(1)),(g||c)&&(l=l.substring(0,l.length-1));let h=null,_=null;if(a.parseMultDiv){var T=Xee(l);l=T.key,h=T.op,_=T.number}let m;if(b){if(n[l]===void 0)return"";m=n[l]}else for(let M of e)if(M){if(M.hasOwnProperty(l)){m=M[l];break}if(NT.test(l)||(m=Oe.nestedProperty(M,l).get(!0)),m!==void 0)break}if(m===void 0){let{count:M,max:d,name:w}=a,y=t===!1?i:t;return M<d&&Oe.warn([`Variable '${l}' in ${w} could not be found!`,"Please verify that the template is correct.",`Using value: '${y}'.`].join(" ")),M===d&&Oe.warn(`Too many '${w}' warnings - additional warnings will be suppressed.`),a.count++,y}if(h==="*"&&(m*=_),h==="/"&&(m/=_),u){var k;if(u[0]===":"&&(k=r?r.numberFormat:Oe.numberFormat,m!==""&&(m=k(u.replace(ET,""))(m))),u[0]==="|"){k=r?r.timeFormat:Fee;var S=Oe.dateTime2ms(m);m=Oe.formatDate(S,u.replace(ET,""),!1,k)}}else{var x=l+"Label";n.hasOwnProperty(x)&&(m=n[x])}return b&&(m="("+m+")",(f||c)&&(m=" "+m),(g||c)&&(m=m+" ")),m})}var $h=48,LT=57;Oe.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>=$h&&i<=LT,s=l>=$h&&l<=LT;if(u&&(n=10*n+i-$h),s&&(a=10*a+l-$h),!u||!s){if(n!==a)return n-a;if(i!==l)return i-l}}return a-n};var H0=2e9;Oe.seedPseudoRandom=function(){H0=2e9};Oe.pseudoRandom=function(){var e=H0;return H0=(69069*H0+1)%4294967296,Math.abs(H0-e)<429496729?Oe.pseudoRandom():H0/4294967296};Oe.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=Oe.extractOption(e,r,"htx","hovertext");if(Oe.isValidTextValue(a))return n(a);var o=Oe.extractOption(e,r,"tx","text");if(Oe.isValidTextValue(o))return n(o)};Oe.isValidTextValue=function(e){return e||e===0};Oe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n<r;n++)t.indexOf(".")!==-1&&(t=t.replace("0%","%"),t=t.replace(".%","%"));return t};Oe.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};Oe.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};Oe.strRotate=function(e){return e?"rotate("+e+")":""};Oe.strScale=function(e){return e!==1?"scale("+e+")":""};Oe.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,Oe.strTranslate(a-s*(t+i),o-s*(n+l))+Oe.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};Oe.setTransormAndDisplay=function(e,r){e.attr("transform",Oe.getTextTransform(r)),e.style("display",r.scale?null:"none")};Oe.ensureUniformFontSize=function(e,r){var t=Oe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Oe.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Oe.bigFont=function(e){return Math.round(1.2*e)};var DT=Oe.getFirefoxVersion(),Zee=DT!==null&&DT<86;Oe.getPositionFromD3Event=function(){return Zee?[Uf.event.layerX,Uf.event.layerY]:[Uf.event.offsetX,Uf.event.offsetY]}});var UT=xe(()=>{"use strict";var Jee=tr(),BT={"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(xy in BT)OT=xy.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Jee.addStyleRule(OT,BT[xy]);var OT,xy});var _y=xe((R4e,HT)=>{HT.exports=!0});var My=xe((F4e,VT)=>{"use strict";var $ee=_y(),wy;typeof window.matchMedia=="function"?wy=!window.matchMedia("(hover: none)").matches:wy=$ee;VT.exports=wy});var e1=xe((P4e,Ty)=>{"use strict";var Y0=typeof Reflect=="object"?Reflect:null,GT=Y0&&typeof Y0.apply=="function"?Y0.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},Qh;Y0&&typeof Y0.ownKeys=="function"?Qh=Y0.ownKeys:Object.getOwnPropertySymbols?Qh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Qh=function(r){return Object.getOwnPropertyNames(r)};function Kee(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=rre;Pt.EventEmitter=Pt;Pt.prototype._events=void 0;Pt.prototype._eventsCount=0;Pt.prototype._maxListeners=void 0;var YT=10;function jh(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 YT},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+".");YT=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 WT(e){return e._maxListeners===void 0?Pt.defaultMaxListeners:e._maxListeners}Pt.prototype.getMaxListeners=function(){return WT(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")GT(u,this,t);else for(var s=u.length,f=QT(u,s),n=0;n<s;++n)GT(f[n],this,t);return!0};function ZT(e,r,t,n){var a,o,i;if(jh(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=WT(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,Kee(l)}return e}Pt.prototype.addListener=function(r,t){return ZT(this,r,t,!1)};Pt.prototype.on=Pt.prototype.addListener;Pt.prototype.prependListener=function(r,t){return ZT(this,r,t,!0)};function Qee(){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 JT(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=Qee.bind(n);return a.listener=t,n.wrapFn=a,a}Pt.prototype.once=function(r,t){return jh(t),this.on(r,JT(this,r,t)),this};Pt.prototype.prependOnceListener=function(r,t){return jh(t),this.prependListener(r,JT(this,r,t)),this};Pt.prototype.removeListener=function(r,t){var n,a,o,i,l;if(jh(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():jee(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 $T(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?ere(a):QT(a,a.length)}Pt.prototype.listeners=function(r){return $T(this,r,!0)};Pt.prototype.rawListeners=function(r){return $T(this,r,!1)};Pt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):KT.call(e,r)};Pt.prototype.listenerCount=KT;function KT(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?Qh(this._events):[]};function QT(e,r){for(var t=new Array(r),n=0;n<r;++n)t[n]=e[n];return t}function jee(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function ere(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function rre(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))}jT(e,r,o,{once:!0}),r!=="error"&&tre(e,a,{once:!0})})}function tre(e,r,t){typeof e.on=="function"&&jT(e,"error",r,t)}function jT(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 Hf=xe((I4e,eA)=>{"use strict";var Ay=e1().EventEmitter,nre={init:function(e){if(e._ev instanceof Ay)return e;var r=new Ay,t=new Ay;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}};eA.exports=nre});var nA=xe((z4e,tA)=>{"use strict";var rA=tr(),are=ol().dfltConfig;function ire(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)?rA.extendDeep([],n):rA.extendDeepAll({},n):t[a]=n;return t}var zo={};zo.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>are.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};zo.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};zo.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};zo.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++)zo.plotDo(r,t.undo.calls[n],t.undo.args[n]);r.undoQueue.inSequence=!1,r.autoplay=!1}};zo.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++)zo.plotDo(r,t.redo.calls[n],t.redo.args[n]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};zo.plotDo=function(e,r,t){e.autoplay=!0,t=ire(e,t),r.apply(null,t)};tA.exports=zo});var ky=xe((N4e,aA)=>{"use strict";aA.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Z0=xe(yn=>{"use strict";var ti=Cr(),Vf=tr(),t1=Zn(),Sy=q0(),ore=ky(),lre=If(),sre=ol().configAttributes,iA=ua(),Li=Vf.extendDeepAll,X0=Vf.isPlainObject,ure=Vf.isArrayOrTypedArray,n1=Vf.nestedProperty,fre=Vf.valObjectMeta,Cy="_isSubplotObj",a1="_isLinkedToArray",cre="_arrayAttrRegexps",lA="_deprecated",Ey=[Cy,a1,cre,lA];yn.IS_SUBPLOT_OBJ=Cy;yn.IS_LINKED_TO_ARRAY=a1;yn.DEPRECATED=lA;yn.UNDERSCORE_ATTRS=Ey;yn.get=function(){var e={};return ti.allTypes.forEach(function(r){e[r]=hre(r)}),{defs:{valObjects:fre,metaKeys:Ey.concat(["description","role","editType","impliedEdits"]),editType:{traces:iA.traces,layout:iA.layout},impliedEdits:{}},traces:e,layout:dre(),frames:pre(),animation:W0(lre),config:W0(sre)}};yn.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(Ey.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!yn.isValObject(i)&&X0(i)&&o!=="impliedEdits"&&yn.crawl(i,r,a+1,l)}})};yn.isValObject=function(e){return e&&e.valType!==void 0};yn.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 g=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));g&&l(a,0,"")}function l(u,s,f){var c=u[t[s]],g=f+t[s];if(s===t.length-1)ure(c)&&r.push(o+g);else if(n[s]){if(Array.isArray(c))for(var b=0;b<c.length;b++)X0(c[b])&&l(c[b],s+1,g+"["+b+"].")}else X0(c)&&l(c,s+1,g+".")}return a=e,o="",yn.crawl(t1,i),e._module&&e._module.attributes&&yn.crawl(e._module.attributes,i),r};yn.getTraceValObject=function(e,r){var t=r[0],n=1,a,o,i=e._module;if(i||(i=(ti.modules[e.type||t1.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=t1[t]),sA(o,r,n)};yn.getLayoutValObject=function(e,r){var t=vre(e,r[0]);return sA(t,r,1)};function vre(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 ti.componentsRegistry){if(a=ti.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 Sy?Sy[r]:!1}function sA(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(r1(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var n=e[r[t]];if(X0(n))e=n;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!r1(r[t]))return!1}else if(e.valType==="info_array"){t++;var a=r[t];if(!r1(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(!r1(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function r1(e){return e===Math.round(e)&&e>=0}function hre(e){var r,t;r=ti.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=Li({},t1),o=Li({},r.attributes);yn.crawl(o,function(u,s,f,c,g){n1(a,g).set(void 0),u===void 0&&n1(o,g).set(void 0)}),Li(n,a),ti.traceIs(e,"noOpacity")&&delete n.opacity,ti.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),ti.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,Li(n,o),t.attributes&&Li(n,t.attributes),n.type=e;var i={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:W0(n)};if(r.layoutAttributes){var l={};Li(l,r.layoutAttributes),i.layoutAttributes=W0(l)}return r.animatable||yn.crawl(i,function(u){yn.isValObject(u)&&"anim"in u&&delete u.anim}),i}function dre(){var e={},r,t;Li(e,Sy);for(r in ti.subplotsRegistry)if(t=ti.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n<t.attr.length;n++)oA(e,t,t.attr[n]);else{var a=t.attr==="subplot"?t.name:t.attr;oA(e,t,a)}for(r in ti.componentsRegistry){t=ti.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"?Li(e,t.layoutAttributes):t.layoutAttributes&&bre(e,t.layoutAttributes,t.name)}return{layoutAttributes:W0(e)}}function pre(){var e={frames:Li({},ore)};return W0(e),e.frames}function W0(e){return gre(e),yre(e),mre(e),e}function gre(e){function r(t,n,a){!yn.isValObject(t)&&X0(t)&&(t.role="object")}yn.crawl(e,r)}function yre(e){function r(t,n,a){if(t){var o=t[a1];o&&(delete t[a1],a[n]={items:{}},a[n].items[o]=t,a[n].role="object")}}yn.crawl(e,r)}function mre(e){function r(t){for(var n in t)if(X0(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 oA(e,r,t){var n=n1(e,t),a=Li({},r.layoutAttributes);a[Cy]=!0,n.set(a)}function bre(e,r,t){var n=n1(e,t);n.set(Li(n.get()||{},r))}});var Tt=xe(As=>{"use strict";var J0=tr(),xre=Zn(),bl="templateitemname",Ly={name:{valType:"string",editType:"none"}};Ly[bl]={valType:"string",editType:"calc"};As.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Ly.name,r[bl]=Ly[bl],r};As.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=J0.coerce(o,{},xre,"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}};As.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);J0.isPlainObject(a)||(a=null);var o=e[r]={_template:a};return o};As.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[fA(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[bl]=s[bl];if(!uA(c))return f._template=a,f;for(var g=0;g<o.length;g++){var b=o[g];if(b.name===c)return i[c]=1,f._template=b,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],g=c.name;if(uA(g)&&!i[g]){var b={_template:c,name:g,_input:{_templateitemname:g}};b[bl]=c[bl],s.push(b),i[g]=1}}return s}return{newItem:l,defaultItems:u}};function uA(e){return e&&typeof e=="string"}function fA(e){var r=e.length-1;return e.charAt(r)!=="s"&&J0.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}As.arrayDefaultKey=fA;As.arrayEditor=function(e,r,t){var n=(J0.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][bl]=o)}u();function s(b,h){l[b]=h}function f(b,h){o?J0.nestedProperty(l[i],b).set(h):l[i+"."+b]=h}function c(){var b=l;return u(),b}function g(b,h){b&&f(b,h);var _=c();for(var T in _)J0.nestedProperty(e,T).set(_[T])}return{modifyBase:s,modifyItem:f,getUpdateObj:c,applyUpdate:g}}});var An={};Ht(An,{AX_ID_PATTERN:()=>Are,AX_NAME_PATTERN:()=>kre,DFLTRANGEX:()=>Pre,DFLTRANGEY:()=>Ire,DRAGGERSIZE:()=>Rre,HOUR_PATTERN:()=>Cre,MINDRAG:()=>Lre,MINZOOM:()=>Dre,REDRAWDELAY:()=>Fre,SUBPLOT_PATTERN:()=>Sre,WEEKDAY_PATTERN:()=>Ere,attrRegex:()=>wre,clipOnAxisFalseQuery:()=>Nre,idRegex:()=>_re,layerValue2layerClass:()=>qre,traceLayerClasses:()=>zre,xAxisMatch:()=>Mre,yAxisMatch:()=>Tre,zindexSeparator:()=>Bre});var _re,wre,Mre,Tre,Are,kre,Sre,Cre,Ere,Lre,Dre,Rre,Fre,Pre,Ire,zre,Nre,qre,Bre,kn=Ut(()=>{"use strict";I0();_re={x:xs("x","( domain)?"),y:xs("y","( domain)?")},wre=xs("[xy]axis"),Mre=xs("xaxis"),Tre=xs("yaxis"),Are=/^[xyz][0-9]*( domain)?$/,kre=/^[xyz]axis[0-9]*$/,Sre=/^x([0-9]*)y([0-9]*)$/,Cre="hour",Ere="day of week",Lre=8,Dre=20,Rre=20,Fre=50,Pre=[-1,6],Ire=[-1,4],zre=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Nre=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],qre={"above traces":"above","below traces":"below"},Bre="z"});var mn=xe(Ea=>{"use strict";var Ore=Cr(),Dy=(kn(),or(An));Ea.id2name=function(r){if(!(typeof r!="string"||!r.match(Dy.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Ea.name2id=function(r){if(r.match(Dy.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Ea.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Dy.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":"")}};Ea.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=Ea.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};Ea.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)};Ea.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[Ea.id2name(r)]};Ea.getFromTrace=function(e,r,t){var n=e._fullLayout,a=null;if(Ore.traceIs(r,"gl3d")){var o=r.scene;o.slice(0,5)==="scene"&&(a=n[o][t+"axis"])}else a=Ea.getFromId(e,r[t+"axis"]||t);return a};Ea.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)};Ea.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function cA(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}Ea.isLinked=function(e,r){return cA(r,e._axisMatchGroups)||cA(r,e._axisConstraintGroups)}});var xl=xe((H4e,vA)=>{"use strict";function Ure(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Hre(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}vA.exports={clearOutlineControllers:Ure,clearOutline:Hre}});var i1=xe((V4e,hA)=>{"use strict";hA.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Gf=xe(l1=>{"use strict";var o1=Cr(),G4e=(kn(),or(An)).SUBPLOT_PATTERN;l1.getSubplotCalcData=function(e,r,t){var n=o1.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};l1.getModuleCalcData=function(e,r,t){var n=[],a=[],o;if(typeof r=="string"?o=o1.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]};l1.getSubplotData=function(r,t,n){if(!o1.subplotsRegistry[t])return[];for(var a=o1.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 yA=xe(ks=>{"use strict";var Vre=Cr(),$0=tr();ks.manageCommandObserver=function(e,r,t,n){var a={},o=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var i=ks.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){dA(e,i,a.cache),a.check=function(){if(o){var f=dA(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 $0.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};ks.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=ks.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 g=i.value;if(Array.isArray(g))if(g.length===1)g=g[0];else return!1;t&&(t[g]=n)}return o};function dA(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=$0.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}}ks.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var n=Vre.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 $0.warn("API call to Plotly."+r+" rejected.",i),Promise.reject(i)})};ks.computeAPICommandBindings=function(e,r,t){var n;switch(Array.isArray(t)||(t=[]),r){case"restyle":n=gA(e,t);break;case"relayout":n=pA(e,t);break;case"update":n=gA(e,[t[0],t[2]]).concat(pA(e,[t[1]]));break;case"animate":n=Gre(e,t);break;default:n=[]}return n};function Gre(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 pA(e,r){var t=[],n=r[0],a={};if(typeof n=="string")a[n]=r[1];else if($0.isPlainObject(n))a=n;else return t;return Ry(a,function(o,i,l){t.push({type:"layout",prop:o,value:l})},"",0),t}function gA(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($0.isPlainObject(n))o=n,t===void 0&&(t=a);else return i;return t===void 0&&(t=null),Ry(o,function(l,u,s){var f,c;if(Array.isArray(s)){c=s.slice();var g=Math.min(c.length,e.data.length);t&&(g=Math.min(g,t.length)),f=[];for(var b=0;b<g;b++)f[b]=t?t[b]:b}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 h=c;c=[];for(var _=0;_<f.length;_++)c[_]=h}c.length=Math.min(f.length,c.length)}i.push({type:"data",prop:l,traces:f,value:c})},"",0),i}function Ry(e,r,t,n){Object.keys(e).forEach(function(a){var o=e[a];if(a[0]!=="_"){var i=t+(n>0?".":"")+a;$0.isPlainObject(o)?Ry(o,r,i,n+1):r(i,a,o)}})}});var Sn=xe((Z4e,SA)=>{"use strict";var W4e=lt(),Yre=w0().timeFormatLocale,Xre=fg().formatLocale,Yf=ut(),Wre=vg(),Zre=uf().version,ft=Cr(),Jre=Z0(),$re=Tt(),mr=tr(),Kre=Zr(),mA=(wn(),or(Rn)).BADNUM,La=mn(),Qre=xl().clearOutline,jre=i1(),Fy=If(),ete=ky(),rte=Gf().getModuleCalcData,bA=mr.relinkPrivateKeys,Ss=mr._,fr=SA.exports={};mr.extendFlat(fr,ft);fr.attributes=Zn();fr.attributes.type.values=fr.allTypes;fr.fontAttrs=Wn();fr.layoutAttributes=q0();var u1=yA();fr.executeAPICommand=u1.executeAPICommand;fr.computeAPICommandBindings=u1.computeAPICommandBindings;fr.manageCommandObserver=u1.manageCommandObserver;fr.hasSimpleAPICommandBindings=u1.hasSimpleAPICommandBindings;fr.redrawText=function(e){return e=mr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ft.getComponentMethod("annotations","draw")(e),ft.getComponentMethod("legend","draw")(e),ft.getComponentMethod("colorbar","draw")(e),r(fr.previousPromises(e)))},300)})};fr.resize=function(e){e=mr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||mr.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||mr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,ft.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};fr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};fr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var n=fr.graphJson(e,!1,"object");n.version=Zre;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 tte=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],nte=["year","month","dayMonth","dayMonthYear"];fr.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||fr.createTransitionData(e),a._dfltTitle={plot:Ss(e,"Click to enter Plot title"),subtitle:Ss(e,"Click to enter Plot subtitle"),x:Ss(e,"Click to enter X axis title"),y:Ss(e,"Click to enter Y axis title"),colorbar:Ss(e,"Click to enter Colorscale title"),annotation:Ss(e,"new text")},a._traceWord=Ss(e,"trace");var g=xA(e,tte);if(n._initialAutoSizeIsDone){var b=n.width,h=n.height;fr.supplyLayoutGlobalDefaults(o,a,g),o.width||(a.width=b),o.height||(a.height=h),fr.sanitizeMargins(a)}else{fr.supplyLayoutGlobalDefaults(o,a,g);var _=!o.width||!o.height,T=a.autosize,m=f.autosizable,k=_&&(T||m);k?fr.plotAutoSize(e,o,a):_&&fr.sanitizeMargins(a),!T&&_&&(o.width=a.width,o.height=a.height)}a._d3locale=ote(g,a.separators),a._extraFormat=xA(e,nte),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=ite(),x=a._splomAxes={x:{},y:{}},M=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=ate(i,u),fr.supplyDataDefaults(u,l,o,a);var d=Object.keys(x.x),w=Object.keys(x.y);if(d.length>1&&w.length>1){for(ft.getComponentMethod("grid","sizeDefaults")(o,a),c=0;c<d.length;c++)mr.pushUnique(S.xaxis,d[c]);for(c=0;c<w.length;c++)mr.pushUnique(S.yaxis,w[c]);for(var y in M)mr.pushUnique(S.cartesian,y)}if(a._has=fr._hasPlotType.bind(a),i.length===l.length)for(c=0;c<l.length;c++)bA(l[c],i[c]);fr.supplyLayoutModuleDefaults(o,a,l,e._transitionData);var v=a._visibleModules,A=[];for(c=0;c<v.length;c++){var p=v[c].crossTraceDefaults;p&&mr.pushUnique(A,p)}for(c=0;c<A.length;c++)A[c](l,a);a._hasOnlyLargeSploms=a._basePlotModules.length===1&&a._basePlotModules[0].name==="splom"&&d.length>15&&w.length>15&&a.shapes.length===0&&a.images.length===0,fr.linkSubplots(l,a,i,n),fr.cleanPlot(l,a,i,n);var D=!!(n._has&&n._has("cartesian")),E=!!(a._has&&a._has("cartesian")),R=D,I=E;R&&!I?n._bgLayer.remove():I&&!R&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&Qre({_fullLayout:n}),lte(l,a),bA(a,n),ft.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var z=a._tracePreGUI,F={},L;for(L in z)F[L]="old";for(c=0;c<l.length;c++)L=l[c].uid,F[L]||(z[L]={}),F[L]="new";for(L in F)F[L]==="old"&&delete z[L];MA(a),ft.getComponentMethod("rangeslider","makeData")(a),!t&&s.length===l.length&&fr.supplyDefaultsUpdateCalc(s,l)};fr.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 ate(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(mr.randstr(i),n))}return o}function ite(){var e=ft.collectableSubplotTypes,r={},t,n;if(!e){e=[];var a=ft.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++)mr.pushUnique(e,l[n])}}for(t=0;t<e.length;t++)r[e[t]]=[];return r}function xA(e,r){var t=e._context.locale;t||(t="en-US");var n=!1,a={};function o(c){for(var g=!0,b=0;b<r.length;b++){var h=r[b];a[h]||(c[h]?a[h]=c[h]:g=!1)}g&&(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=ft.localeRegistry}var f=t.split("-")[0];if(n||f===t)break;t=f}return n||o(ft.localeRegistry.en.format),a}function ote(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=Xre(e).format(mr.adjustFormat(t))}catch(n){return mr.warnBadFormat(t),mr.noFormat}return t},timeFormat:Yre(e).utcFormat}}function lte(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)}fr.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=[])};fr._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=ft.modules[a];if(o&&o.categories[e])return!0}return!1};fr.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],g=c.uid;for(o=0;o<e.length;o++){var b=e[o];if(g===b.uid)continue e}f&&n._infolayer.select(".cb"+g).remove()}};fr.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],g=i[c],b=La.getFromId(s,c,"x"),h=La.getFromId(s,c,"y"),_;for(g?_=l[c]=g:(_=l[c]={},_.id=c),b._counterAxes.push(h._id),h._counterAxes.push(b._id),b._subplotsWith.push(c),h._subplotsWith.push(c),_.xaxis=b,_.yaxis=h,_._hasClipOnAxisFalse=!1,o=0;o<e.length;o++){var T=e[o];if(T.xaxis===_.xaxis._id&&T.yaxis===_.yaxis._id&&T.cliponaxis===!1){_._hasClipOnAxisFalse=!0;break}}}var m=La.list(s,null,!0),k;for(a=0;a<m.length;a++){k=m[a];var S=null;k.overlaying&&(S=La.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:La.getFromId(s,k.anchor)}for(a=0;a<m.length;a++)if(k=m[a],k._counterAxes.sort(La.idSort),k._subplotsWith.sort(mr.subplotSort),k._mainSubplot=ste(k,r),k._counterAxes.length&&(k.automargin&&k.mirror&&k.anchor!=="free"||ft.getComponentMethod("rangeslider","isVisible")(k))){var x=1,M=0;for(o=0;o<k._counterAxes.length;o++){var d=La.getFromId(s,k._counterAxes[o]);x=Math.min(x,d.domain[0]),M=Math.max(M,d.domain[1])}x<M&&(k._counterDomainMin=x,k._counterDomainMax=M)}};function ste(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 g=La.getFromId(t,f);if(l&&g.overlaying===l){o=c;break}}}return o||i}fr.supplyDataDefaults=function(e,r,t,n){var a=n._modules,o=n._visibleModules,i=n._basePlotModules,l=0,u=0,s,f,c;function g(k){r.push(k);var S=k._module;S&&(mr.pushUnique(a,S),k.visible===!0&&mr.pushUnique(o,S),mr.pushUnique(i,k._module.basePlotModule),l++,k._input.visible!==!1&&u++)}var b={},h=[],_=(t.template||{}).data||{},T=$re.traceTemplater(_);for(s=0;s<e.length;s++)c=e[s],f=T.newTrace(c),f.uid=n._traceUids[s],fr.supplyTraceDefaults(c,f,u,n,s),f.index=s,f._input=c,g(f),ft.traceIs(f,"carpetAxis")&&(b[f.carpet]=f),ft.traceIs(f,"carpetDependent")&&h.push(s);for(s=0;s<h.length;s++)if(f=r[h[s]],!!f.visible){var m=b[f.carpet];if(f._carpet=m,!m||!m.visible){f.visible=!1;continue}f.xaxis=m.xaxis,f.yaxis=m.yaxis}};fr.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function n(a,o){return mr.coerce(e||{},t,Fy,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]=fr.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=fr.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=fr.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=fr.supplyAnimationTransitionDefaults(e.transition||{});return t};fr.supplyAnimationFrameDefaults=function(e){var r={};function t(n,a){return mr.coerce(e||{},r,Fy.frame,n,a)}return t("duration"),t("redraw"),r};fr.supplyAnimationTransitionDefaults=function(e){var r={};function t(n,a){return mr.coerce(e||{},r,Fy.transition,n,a)}return t("duration"),t("easing"),r};fr.supplyFrameDefaults=function(e){var r={};function t(n,a){return mr.coerce(e,r,ete,n,a)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};fr.supplyTraceDefaults=function(e,r,t,n,a){var o=n.colorway||Kre.defaults,i=o[t%o.length],l;function u(S,x){return mr.coerce(e,r,fr.attributes,S,x)}var s=u("visible");u("type"),u("name",n._traceWord+" "+a),u("uirevision",n.uirevision);var f=fr.getModule(r);if(r._module=f,f){var c=f.basePlotModule,g=c.attr,b=c.attributes;if(g&&b){var h=n._subplots,_="";if(Array.isArray(g))for(l=0;l<g.length;l++){var T=g[l],m=mr.coerce(e,r,b,T);h[T]&&mr.pushUnique(h[T],m),_+=m}else _=mr.coerce(e,r,b,g);h[c.name]&&mr.pushUnique(h[c.name],_)}}if(s&&(u("customdata"),u("ids"),u("meta"),ft.traceIs(r,"showLegend")?(mr.coerce(e,r,f.attributes.showlegend?f.attributes:fr.attributes,"showlegend"),mr.coerce(e,r,f.attributes.legend?f.attributes:fr.attributes,"legend"),u("legendwidth"),u("legendgroup"),u("legendgrouptitle.text"),mr.coerce(e,r,f.attributes.legend?f.attributes:fr.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,i,n),ft.traceIs(r,"noOpacity")||u("opacity"),ft.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),ft.traceIs(r,"noHover")||(r.hovertemplate||mr.coerceHoverinfo(e,r,n),r.type!=="parcats"&&ft.getComponentMethod("fx","supplyDefaults")(e,r,i,n)),f&&f.selectPoints)){var k=u("selectedpoints");mr.isTypedArray(k)&&(r.selectedpoints=Array.from(k))}return r};fr.supplyLayoutGlobalDefaults=function(e,r,t){function n(c,g){return mr.coerce(e,r,fr.layoutAttributes,c,g)}var a=e.template;mr.isPlainObject(a)&&(r.template=a,r._template=a.layout,r._dataTemplate=a.data),n("autotypenumbers");var o=mr.coerceFont(n,"font"),i=o.size;mr.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),mr.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&&fr.sanitizeMargins(r),ft.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),ft.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),ft.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,n),ft.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,n),n("meta"),mr.isPlainObject(e.transition)&&(n("transition.duration"),n("transition.easing"),n("transition.ordering")),ft.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),ft.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,n),mr.coerce(e,r,jre,"scattermode")};function s1(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}fr.plotAutoSize=function(r,t,n){var a=r._context||{},o=a.frameMargins,i,l,u=mr.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=s1(s.width)||s1(s.maxWidth)||n.width,l=s1(s.height)||s1(s.maxHeight)||n.height,Yf(o)&&o>0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var c=fr.layoutAttributes.width.min,g=fr.layoutAttributes.height.min;i<c&&(i=c),l<g&&(l=g);var b=!t.width&&Math.abs(n.width-i)>1,h=!t.height&&Math.abs(n.height-l)>1;(h||b)&&(b&&(n.width=i),h&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),fr.sanitizeMargins(n)};fr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=ft.componentsRegistry,o=r._basePlotModules,i,l,u,s=ft.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(ft.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(mr.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)};fr.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)),mr.clearThrottle(),mr.clearResponsive(e),delete e._fontLoadToken,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()};fr.style=function(e){var r=e._fullLayout._visibleModules,t=[],n;for(n=0;n<r.length;n++){var a=r[n];a.style&&mr.pushUnique(t,a.style)}for(n=0;n<t.length;n++)t[n](e)};fr.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))}};fr.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};fr.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function MA(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 TA=2,AA=2;fr.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=mr.constrain(a-i.l-i.r,TA,l),f=mr.constrain(o-i.t-i.b,AA,u),c=Math.max(0,a-s),g=Math.max(0,o-f),b=n._pushmargin,h=n._pushmarginIds;if(i.autoexpand!==!1){if(!t)delete b[r],delete h[r];else{var _=t.pad;if(_===void 0&&(_=Math.min(12,i.l,i.r,i.t,i.b)),c){var T=(t.l+t.r)/c;T>1&&(t.l/=T,t.r/=T)}if(g){var m=(t.t+t.b)/g;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,x=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;b[r]={l:{val:k,size:t.l+_},r:{val:S,size:t.r+_},b:{val:M,size:t.b+_},t:{val:x,size:t.t+_}},h[r]=1}if(!n._replotting)return fr.doAutoMargin(e)}};function ute(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=La.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}fr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),MA(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=mr.extendFlat({},a),u=o.l,s=o.r,f=o.t,c=o.b,g=r._pushmargin,b=r._pushmarginIds,h=r.minreducedwidth,_=r.minreducedheight;if(o.autoexpand!==!1){for(var T in g)b[T]||delete g[T];var m=e._fullLayout._reservedMargin;for(var k in m)for(var S in m[k]){var x=m[k][S];i[S]=Math.max(i[S],x)}g.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:c}};for(var M in i){var d=0;for(var w in g)w!=="base"&&Yf(g[w][M].size)&&(d=g[w][M].size>d?g[w][M].size:d);var y=Math.max(0,o[M]-d);i[M]=Math.max(0,i[M]-y)}for(var v in g){var A=g[v].l||{},p=g[v].b||{},D=A.val,E=A.size,R=p.val,I=p.size,z=t-i.r-i.l,F=n-i.t-i.b;for(var L in g){if(Yf(E)&&g[L].r){var P=g[L].r.val,B=g[L].r.size;if(P>D){var O=(E*P+(B-z)*D)/(P-D),G=(B*(1-D)+(E-z)*(1-P))/(P-D);O+G>u+s&&(u=O,s=G)}}if(Yf(I)&&g[L].t){var J=g[L].t.val,j=g[L].t.size;if(J>R){var V=(I*J+(j-F)*R)/(J-R),q=(j*(1-R)+(I-F)*(1-J))/(J-R);V+q>c+f&&(c=V,f=q)}}}}}var Z=mr.constrain(t-o.l-o.r,TA,h),re=mr.constrain(n-o.t-o.b,AA,_),$=Math.max(0,t-Z),ae=Math.max(0,n-re);if($){var Q=(u+s)/$;Q>1&&(u/=Q,s/=Q)}if(ae){var te=(c+f)/ae;te>1&&(c/=te,f/=te)}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&&(fr.didMarginChange(l,a)||ute(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ue=3*(1+Object.keys(b).length);if(r._redrawFromAutoMarginCount<ue)return ft.call("_doPlot",e);r._size=l,mr.warn("Too many auto-margin redraws.")}fte(e)};function fte(e){var r=La.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var n=0;n<r.length;n++){var a=r[n][t];a&&a()}})}var _A=["l","r","t","b","p","w","h"];fr.didMarginChange=function(e,r){for(var t=0;t<_A.length;t++){var n=_A[t],a=e[n],o=r[n];if(!Yf(a)||Math.abs(o-a)>1)return!0}return!1};fr.graphJson=function(e,r=!1,t="json",n=!1,a=!1){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&fr.supplyDefaults(e);var o=n?e._fullData:e.data,i=n?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(c,g){if(typeof c=="function")return g?"_function_":null;if(mr.isPlainObject(c)){var b={};return Object.keys(c).sort().forEach(function(m){if(["_","["].indexOf(m.charAt(0))===-1){if(typeof c[m]=="function"){g&&(b[m]="_function");return}b[m]=u(c[m],g)}}),b}var h=Array.isArray(c),_=mr.isTypedArray(c);if((h||_)&&c.dtype&&c.shape){var T=c.bdata;return u({dtype:c.dtype,shape:c.shape,bdata:mr.isArrayBuffer(T)?Wre.encode(T):T},g)}return h?c.map(function(m){return u(m,g)}):_?mr.simpleMap(c,mr.identity):mr.isJSDate(c)?mr.ms2DateTimeLocal(+c):c}var s={data:(o||[]).map(function(c){var g=u(c);return r&&delete g.fit,g})};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)};fr.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()};fr.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=fr.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]=fr.extendTrace(f.data[i],l.data[n]))}return f};fr.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)}};fr.extendObjectWithContainers=function(e,r,t){var n,a,o,i,l,u,s,f,c=mr.extendDeepNoArrays({},r||{}),g=mr.expandObjectPaths(c),b={};if(t&&t.length)for(o=0;o<t.length;o++)n=mr.nestedProperty(g,t[o]),a=n.get(),a===void 0?mr.nestedProperty(b,t[o]).set(null):(n.set(null),mr.nestedProperty(b,t[o]).set(a));if(e=mr.extendDeepNoArrays(e||{},g),t&&t.length){for(o=0;o<t.length;o++)if(l=mr.nestedProperty(b,t[o]),s=l.get(),!!s){for(u=mr.nestedProperty(e,t[o]),f=u.get(),Array.isArray(f)||(f=[],u.set(f)),i=0;i<s.length;i++){var h=s[i];h===null?f[i]=null:f[i]=fr.extendObjectWithContainers(f[i],h)}u.set(f)}}return e};fr.dataArrayContainers=["dimensions"];fr.layoutArrayContainers=ft.layoutArrayContainers;fr.extendTrace=function(e,r){return fr.extendObjectWithContainers(e,r,fr.dataArrayContainers)};fr.extendLayout=function(e,r){return fr.extendObjectWithContainers(e,r,fr.layoutArrayContainers)};fr.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 g=f[c],b=e._fullData[g],h=b._module;if(h){if(h.animatable){var _=h.basePlotModule.name;l[_]||(l[_]=[]),l[_].push(g)}e.data[f[c]]=fr.extendTrace(e.data[f[c]],r[c])}}var T=mr.expandObjectPaths(mr.extendDeepNoArrays({},t)),m=/^[xy]axis[0-9]*$/;for(var k in T)m.test(k)&&delete T[k].range;fr.extendLayout(e.layout,T),delete e.calcdata,fr.supplyDefaults(e),fr.doCalcdata(e);var S=mr.expandObjectPaths(t);if(S){var x=e._fullLayout._plots;for(var M in x){var d=x[M],w=d.xaxis,y=d.yaxis,v=w.range.slice(),A=y.range.slice(),p=null,D=null,E=null,R=null;Array.isArray(S[w._name+".range"])?p=S[w._name+".range"].slice():Array.isArray((S[w._name]||{}).range)&&(p=S[w._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&&p&&(w.r2l(v[0])!==w.r2l(p[0])||w.r2l(v[1])!==w.r2l(p[1]))&&(E={xr0:v,xr1:p}),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(mr.extendFlat({plotinfo:d},E,R))}}return Promise.resolve()},i.runFn=function(s){var f,c=e._fullLayout._basePlotModules,g=u.length,b;if(t)for(b=0;b<c.length;b++)c[b].transitionAxes&&c[b].transitionAxes(e,u,o,s);g?(f=mr.extendFlat({},o),f.duration=0,delete l.cartesian):f=o;for(var h in l){var _=l[h],T=e._fullData[_[0]]._module;T.basePlotModule.plot(e,_,f,s)}},kA(e,o,i)};fr.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,g=f.yaxis,b=n[c._name].range.slice(),h=n[g._name].range.slice(),_=c.range.slice(),T=g.range.slice();c.setScale(),g.setScale();var m=null,k=null;(c.r2l(b[0])!==c.r2l(_[0])||c.r2l(b[1])!==c.r2l(_[1]))&&(m={xr0:b,xr1:_}),(g.r2l(h[0])!==g.r2l(T[0])||g.r2l(h[1])!==g.r2l(T[1]))&&(k={yr0:h,yr1:T}),(m||k)&&l.push(mr.extendFlat({plotinfo:f},m,k))}return Promise.resolve()},i.runFn=function(u){for(var s=e._fullData,f=e._fullLayout,c=f._basePlotModules,g,b,h,_=[],T=0;T<s.length;T++)_.push(T);function m(){if(e._fullLayout)for(var S=0;S<c.length;S++)c[S].transitionAxes&&c[S].transitionAxes(e,l,g,u)}function k(){if(e._fullLayout)for(var S=0;S<c.length;S++)c[S].plot(e,h,b,u)}l.length&&r.anim?o.ordering==="traces first"?(g=mr.extendFlat({},o,{duration:0}),h=_,b=o,setTimeout(m,o.duration),k()):(g=o,h=null,b=mr.extendFlat({},o,{duration:0}),setTimeout(k,g.duration),m()):l.length?(g=o,m()):r.anim&&(h=_,b=o,k())},kA(e,o,i)};function kA(e,r,t){var n=!1;function a(c){var g=Promise.resolve();if(!c)return g;for(;c.length;)g=g.then(c.shift());return g}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 ft.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var g=0,b=0;function h(){return g++,function(){b++,!n&&b===g&&l(c)}}t.runFn(h),setTimeout(h())})}function l(c){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return ft.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=[fr.previousPromises,u,t.prepareFn,fr.rehover,fr.reselect,i],f=mr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}fr.doCalcdata=function(e,r){var t=La.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=Jre.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 g=a[c];g.cauto!==!1&&(delete g.cmin,delete g.cmax)}function b(_,T){if(o=n[_],i=o._module,!!i.isContainer===T){var m=[];o.visible===!0&&o._length!==0&&i&&i.calc&&(m=i.calc(e,o)),(!Array.isArray(m)||!m[0])&&(m=[{x:mA,y:mA}]),m[0].t||(m[0].t={}),m[0].trace=o,u[_]=m}}for(hte(t,n,a),l=0;l<n.length;l++)b(l,!0);for(l=0;l<n.length;l++)b(l,!1);wA(e);var h=vte(t,e);if(h.length){for(a._numBoxes=0,a._numViolins=0,l=0;l<h.length;l++)b(h[l],!0);for(l=0;l<h.length;l++)b(h[l],!1);wA(e)}ft.getComponentMethod("fx","calc")(e),ft.getComponentMethod("errorbars","calc")(e)};var cte=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function vte(e,r){var t=[],n,a,o,i,l;function u(L,P,B){var O=P._id.charAt(0);if(L==="histogram2dcontour"){var G=P._counterAxes[0],J=La.getFromId(r,G),j=O==="x"||G==="x"&&J.type==="category",V=O==="y"||G==="y"&&J.type==="category";return function(q,Z){return q===0||Z===0||j&&q===B[Z].length-1||V&&Z===B.length-1?-1:(O==="y"?Z:q)-1}}else return function(q,Z){return O==="y"?Z:q}}var s={min:function(L){return mr.aggNums(Math.min,null,L)},max:function(L){return mr.aggNums(Math.max,null,L)},sum:function(L){return mr.aggNums(function(P,B){return P+B},null,L)},total:function(L){return mr.aggNums(function(P,B){return P+B},null,L)},mean:function(L){return mr.mean(L)},"geometric mean":function(L){return mr.geometricMean(L)},median:function(L){return mr.median(L)}};function f(L,P){return L[1]-P[1]}function c(L,P){return P[1]-L[1]}for(n=0;n<e.length;n++){var g=e[n];if(g.type==="category"){var b=g.categoryorder.match(cte);if(b){var h=b[1],_=b[2],T=g._id.charAt(0),m=T==="x",k=[];for(a=0;a<g._categories.length;a++)k.push([g._categories[a],[]]);for(a=0;a<g._traceIndices.length;a++){var S=g._traceIndices[a],x=r._fullData[S];if(x.visible===!0){var M=x.type;ft.traceIs(x,"histogram")&&(delete x._xautoBinFinished,delete x._yautoBinFinished);var d=M==="splom",w=M==="scattergl",y=r.calcdata[S];for(o=0;o<y.length;o++){var v=y[o],A,p;if(d){var D=x._axesDim[g._id];if(!m){var E=x._diag[D][0];E&&(g=r._fullLayout[La.id2name(E)])}var R=v.trace.dimensions[D].values;for(i=0;i<R.length;i++)for(A=g._categoriesMap[R[i]],l=0;l<v.trace.dimensions.length;l++)if(l!==D){var I=v.trace.dimensions[l];k[A][1].push(I.values[i])}}else if(w){for(i=0;i<v.t.x.length;i++)m?(A=v.t.x[i],p=v.t.y[i]):(A=v.t.y[i],p=v.t.x[i]),k[A][1].push(p);v.t&&v.t._scene&&delete v.t._scene.dirty}else if(v.hasOwnProperty("z")){p=v.z;var z=u(x.type,g,p);for(i=0;i<p.length;i++)for(l=0;l<p[i].length;l++)A=z(l,i),A+1&&k[A][1].push(p[i][l])}else{if(A=v.p,A===void 0&&(A=v[T]),isNaN(A)||A<0)continue;for(p=v.s,p===void 0&&(p=v.v),p===void 0&&(p=m?v.y:v.x),Array.isArray(p)||(p===void 0?p=[]:p=[p]),i=0;i<p.length;i++)k[A][1].push(p[i])}}}}g._categoriesValue=k;var F=[];for(a=0;a<k.length;a++)F.push([k[a][0],s[h](k[a][1])]);F.sort(_==="descending"?c:f),g._categoriesAggregatedValue=F,g._initialCategories=F.map(function(L){return L[0]}),t=t.concat(g.sortByInitialCategories())}}}return t}function hte(e,r,t){var n={};function a(u){u.clearCalc(),u.type==="multicategory"&&u.setupMultiCategory(r),n[u._id]=1}mr.simpleMap(e,a);for(var o=t._axisMatchGroups||[],i=0;i<o.length;i++)for(var l in o[i])n[l]||a(t[La.id2name(l)])}function wA(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]?mr.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 g=c[a],b=i==="cartesian"?r._plots[g]:r[g];for(o=0;o<f.length;o++)f[o](e,b,g)}else for(o=0;o<f.length;o++)f[o](e)}}fr.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};fr.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};fr.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);ft.getComponentMethod("selections","reselect")(e,a)};fr.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 g in o){var b=o[g],h=b[0][0].trace._module;h.plot(e,r,mr.filterVisible(b),n)}r.traceHash=o};fr.plotBasePlot=function(e,r,t,n,a){var o=ft.getModule(e),i=rte(r.calcdata,o)[0];o.plot(r,i,n,a)};fr.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 _l={};Ht(_l,{svg:()=>CA,svgAttrs:()=>pte,xlink:()=>EA,xmlns:()=>dte});var dte,CA,EA,pte,wl=Ut(()=>{"use strict";dte="http://www.w3.org/2000/xmlns/",CA="http://www.w3.org/2000/svg",EA="http://www.w3.org/1999/xlink",pte={xmlns:CA,"xmlns:xlink":EA}});var $n={};Ht($n,{CAP_SHIFT:()=>xte,FROM_BL:()=>gte,FROM_BR:()=>mte,FROM_TL:()=>yte,LINE_SPACING:()=>bte,MID_SHIFT:()=>_te,OPPOSITE_SIDE:()=>wte});var gte,yte,mte,bte,xte,_te,wte,Kn=Ut(()=>{"use strict";gte={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},yte={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},mte={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},bte=1.3,xte=.7,_te=.35,wte={left:"right",right:"left",top:"bottom",bottom:"top"}});var Qn=xe(fa=>{"use strict";var jt=lt(),ni=tr(),Mte=ni.strTranslate,Py=(wl(),or(_l)),Tte=(Kn(),or($n)).LINE_SPACING,Ate=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,Ny=e=>e?e.match(Ate):null;fa.matchTex=Ny;var kte=e=>{var r=Ny(e);return!!r&&!r[1]&&!r[3]};fa.isPureTex=kte;function IA(e,r,t,n,a,o,i,l){var u=n.select("g"),s=u.node().getBoundingClientRect(),f=s.width,c=s.height,g=i===void 0?f:i,b=l===void 0?c:l;(f>g||c>b)&&(n.style("overflow","hidden"),s=n.node().getBoundingClientRect(),f=s.width,c=s.height);var h=+e.attr("x"),_=+e.attr("y"),T=o||e.node().getBoundingClientRect().height,m=-T/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,h,_]+")"+Mte(-f/2,m-c/2)}):r[0]==="l"?_=m-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(h=0,_=m):(h=h-f*(a==="middle"?.5:a==="end"?1:0),_=_+m-c/2),n.attr({x:h,y:_})}function Ste(e){e.selectAll("a").each(function(){var r=jt.select(this);["href","xlink:href"].forEach(function(t){var n=r.attr(t);n&&r.attr(t,Oy(n)||null)})})}fa.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&Ny(n);a&&!Dte()&&(a=null);var o=jt.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=Ute(e.node(),n);u&&e.style("pointer-events","all"),fa.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");Rte(a[2],f,function(g,b,h){o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove();var _=g&&g.select("svg");if(!_||!_.node()){l(),u();return}e.style("display","none");var T=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});T.node().appendChild(_.node()),Ste(_),b&&b.node()&&_.node().insertBefore(b.node().cloneNode(!0),_.node().firstChild);var m=h.width,k=h.height;_.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",x=_.select("g");x.attr({fill:S,stroke:S}),IA(e,i,T,_,c,s,m,k),t&&t.call(e,T),u(T)})})):l(),e};fa.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=jt.select(e.node().parentNode),n=t.select("g."+r+"-group"),a=n.select("svg."+r);if(!(n.empty()||a.empty())){var o=e.attr("text-anchor"),i=parseInt(e.node().style.fontSize,10);IA(e,r,n,a,o,i)}}};fa.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",n=jt.select(r.parentNode).select("g."+t+"-group");return n.empty()?r:n.node()};var Cte=/(<|&lt;|&#60;)/g,Ete=/(>|&gt;|&#62;)/g;function Lte(e){return e.replace(Cte,"\\lt ").replace(Ete,"\\gt ")}var Iy=null,zA=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,LA=!1,DA=!1;function Dte(){let e=zA();return e===3||e===4?!0:(e===null?LA||(LA=!0,ni.warn("MathJax is not loaded. Math equations will not be rendered.")):DA||(DA=!0,ni.warn("Unsupported MathJax version:",MathJax.version)),!1)}function Rte(e,r,t){let n=zA();var a;let o=function(){if(!Iy){let s=MathJax._.output.svg_ts.SVG,f=ni.extendFlat({},MathJax.config.svg,{fontCache:"local"});n===4&&(f.linebreaks=ni.extendFlat({},f.linebreaks,{inline:!1})),Iy=MathJax._.mathjax.mathjax.document(document,ni.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new s(f)}))}let l="math-output-"+ni.randstr({},64);a=jt.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let u=Lte(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return Iy.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)ni.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=>{ni.log("MathJax typesetting failed.",e,l),a&&a.remove(),t()})}var NA={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"},Fte={sub:"0.3em",sup:"-0.6em"},Pte={sub:"-0.21em",sup:"0.42em"},RA="\u200B",FA=["http:","https:","mailto:","",void 0,":"],qA=fa.NEWLINES=/(\r\n?|\n)/g,qy=/(<[^<>]*>)/,By=/<(\/?)([^ >]*)(\s+(.*))?>/i,Ite=/<br(\s+.*)?>/i;fa.BR_TAG_ALL=/<br(\s+.*)?>/gi;var BA=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,OA=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,UA=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,zte=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Cs(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&f1(n)}var Nte=/(^|;)\s*color:/;fa.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(qy),l=[],u="",s=0,f=0;f<i.length;f++){var c=i[f],g=c.match(By),b=g&&g[2].toLowerCase();if(b)n.indexOf(b)!==-1&&(l.push(c),u=b);else{var h=c.length;if(s+h<t)l.push(c),s+=h;else if(s<t){var _=t-s;u&&(u!=="br"||_<=o||h<=o)&&l.pop(),t>o?l.push(c.slice(0,Math.max(0,_-o))+a):l.push(c.slice(0,_));break}u=""}}return l.join("")};var qte={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Bte=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function f1(e){return e.replace(Bte,function(r,t){var n;return t.charAt(0)==="#"?n=Ote(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=qte[t],n||r})}fa.convertEntities=f1;function Ote(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 Ute(e,r){r=r.replace(qA," ");var t=!1,n=[],a,o=-1;function i(){o++;var d=document.createElementNS(Py.svg,"tspan");jt.select(d).attr({class:"line",dy:o*Tte+"em"}),e.appendChild(d),a=d;var w=n;if(n=[{node:d}],w.length>1)for(var y=1;y<w.length;y++)l(w[y])}function l(d){var w=d.type,y={},v;if(w==="a"){v="a";var A=d.target,p=d.href,D=d.popup;p&&(y={"xlink:xlink:show":A==="_blank"||A.charAt(0)!=="_"?"new":"replace",target:A,"xlink:xlink:href":p},D&&(y.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+D+'");return false;'))}else v="tspan";d.style&&(y.style=d.style);var E=document.createElementNS(Py.svg,v);if(w==="sup"||w==="sub"){u(a,RA),a.appendChild(E);var R=document.createElementNS(Py.svg,"tspan");u(R,RA),jt.select(R).attr("dy",Pte[w]),y.dy=Fte[w],a.appendChild(E),a.appendChild(R)}else a.appendChild(E);jt.select(E).attr(y),a=d.node=E,n.push(d)}function u(d,w){d.appendChild(document.createTextNode(w))}function s(d){if(n.length===1){ni.log("Ignoring unexpected end tag </"+d+">.",r);return}var w=n.pop();d!==w.type&&ni.log("Start tag <"+w.type+"> doesnt match end tag <"+d+">. Pretending it did match.",r),a=n[n.length-1].node}var f=Ite.test(r);f?i():(a=e,n=[{node:e}]);for(var c=r.split(qy),g=0;g<c.length;g++){var b=c[g],h=b.match(By),_=h&&h[2].toLowerCase(),T=NA[_];if(_==="br")i();else if(T===void 0)u(a,f1(b));else if(h[1])s(_);else{var m=h[4],k={type:_},S=Cs(m,BA);if(S?(S=S.replace(Nte,"$1 fill:"),T&&(S+=";"+T)):T&&(S=T),S&&(k.style=S),_==="a"){t=!0;var x=Cs(m,OA);if(x){var M=Oy(x);M&&(k.href=M,k.target=Cs(m,UA)||"_blank",k.popup=Cs(m,zte))}}l(k)}}return t}function Oy(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 FA.indexOf(a)!==-1&&FA.indexOf(o)!==-1?r:""}fa.sanitizeHTML=function(r){r=r.replace(qA," ");for(var t=document.createElement("p"),n=t,a=[],o=r.split(qy),i=0;i<o.length;i++){var l=o[i],u=l.match(By),s=u&&u[2].toLowerCase();if(s in NA)if(u[1])a.length&&(n=a.pop());else{var f=u[4],c=Cs(f,BA),g=c?{style:c}:{};if(s==="a"){var b=Cs(f,OA);if(b){var h=Oy(b);if(h){g.href=h;var _=Cs(f,UA);_&&(g.target=_)}}}var T=document.createElement(s);n.appendChild(T),jt.select(T).attr(g),n=T,a.push(T)}else n.appendChild(document.createTextNode(f1(l)))}var m="innerHTML";return t[m]};fa.lineCount=function(r){return r.selectAll("tspan.line").size()||1};fa.positionText=function(r,t,n){return r.each(function(){var a=jt.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 PA(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,g=t.gd||{};if(t.gd){g._fullLayout._calcInverseTransform(g);var b=ni.apply3DTransform(g._fullLayout._invTransform)(f,c);f=b[0],c=b[1]}return this.style({top:c+"px",left:f+"px","z-index":1e3}),this}}var zy="1px ";fa.makeTextShadow=function(e){var r=zy,t=zy,n=zy;return r+t+n+e+", -"+r+"-"+t+n+e+", "+r+"-"+t+n+e+", -"+r+t+n+e};fa.makeEditable=function(e,r){var t=r.gd,n=r.delegate,a=jt.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&&jt.select(e.node().parentNode).select(f).style({opacity:0})}function l(s){var f=s.node(),c=document.createRange();c.selectNodeContents(f);var g=window.getSelection();g.removeAllRanges(),g.addRange(c),f.focus()}function u(){var s=jt.select(t),f=s.select(".svg-container"),c=f.append("div"),g=e.node().style,b=parseFloat(g.fontSize||12),h=r.text;h===void 0&&(h=e.attr("data-unformatted")),c.classed("plugin-editable editable",!0).style({position:"absolute","font-family":g.fontFamily||"Arial","font-size":b,color:r.fill||g.fill||"black",opacity:1,"background-color":r.background||"transparent",outline:"#ffffff33 1px solid",margin:[-b/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(h).call(PA(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var _=jt.select(this).attr("class"),T;_?T="."+_.split(" ")[0]+"-math-group":T="[class*=-math-group]",T&&jt.select(e.node().parentNode).select(T).style({opacity:0});var m=this.textContent;jt.select(this).transition().duration(0).remove(),jt.select(document).on("mouseup",null),a.edit.call(e,m)}).on("focus",function(){var _=this;t._editing=!0,jt.select(document).on("mouseup",function(){if(jt.event.target===_)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){jt.event.which===27?(t._editing=!1,e.style({opacity:1}),jt.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),a.cancel.call(e,this.textContent)):(a.input.call(e,this.textContent),jt.select(this).call(PA(e,f,r)))}).on("keydown",function(){jt.event.which===13&&this.blur()}).call(l)}return r.immediate?i():o.on("click",i),jt.rebind(e,a,"on")}});var io=xe(($4e,WA)=>{"use strict";var Hte=lt(),Wf=ut(),c1=tr(),Es=Zr(),Vte=bs().isValid;function Gte(e,r,t){var n=r?c1.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(c1.isArrayOrTypedArray(a)){for(var i=0;i<a.length;i++)if(Wf(a[i])){o=!0;break}}return c1.isPlainObject(n)&&(o||n.showscale===!0||Wf(n.cmin)&&Wf(n.cmax)||Vte(n.colorscale)||c1.isPlainObject(n.colorbar))}var HA=["showscale","autocolorscale","colorscale","reversescale","colorbar"],Xf=["min","max","mid","auto"];function VA(e){var r=e._colorAx,t=r||e,n={},a,o,i;for(o=0;o<HA.length;o++)i=HA[o],n[i]=t[i];if(r)for(a="c",o=0;o<Xf.length;o++)i=Xf[o],n[i]=t["c"+i];else{var l;for(o=0;o<Xf.length;o++){if(i=Xf[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=Xf.indexOf(u)!==-1?a+u:u;t[f]=t["_"+f]=s},n}function GA(e){for(var r=VA(e),t=r.min,n=r.max,a=r.reversescale?YA(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 YA(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 XA(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]=Es.rgbaArray(n[i]);var l=Hte.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 Es.rgbaArrayToString(l(c))}:s?f=function(c){return Wf(c)?l(c):Es.isValid(c)?c:Es.defaultLine}:f=function(c){return Wf(c)?Es.rgbaArrayToString(l(c)):Es.isValid(c)?c:Es.defaultLine},f.domain=l.domain,f.range=function(){return n},f}function Yte(e,r){return XA(GA(e),r)}WA.exports={hasColorscale:Gte,extractOpts:VA,extractScale:GA,flipScale:YA,makeColorScaleFunc:XA,makeColorScaleFuncFromTrace:Yte}});var No=xe((K4e,$A)=>{"use strict";var ZA=(ny(),or(ty)),Xte=ZA.FORMAT_LINK,Wte=ZA.DATE_FORMAT_LINK;function Zte(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Uy:JA)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Uy(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: "+Xte+"."].join(" ")}function JA(e,r){return Uy(e,r)+[" And for dates see: "+Wte+".","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(" ")}$A.exports={axisHoverFormat:Zte,descriptionOnlyNumbers:Uy,descriptionWithDates:JA}});var ai=xe((j4e,hk)=>{"use strict";var KA=Wn(),K0=no(),vk=fl().dash,Vy=Rt().extendFlat,QA=Tt().templatedArray,Q4e=Si().templateFormatStringDescription,jA=No().descriptionWithDates,Jte=(wn(),or(Rn)).ONEDAY,oo=(kn(),or(An)),$te=oo.HOUR_PATTERN,Kte=oo.WEEKDAY_PATTERN,Hy={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Qte=Vy({},Hy,{values:Hy.values.slice().concat(["sync"])});function ek(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var rk={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},tk={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},nk={valType:"data_array",editType:"ticks"},ak={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function ik(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function ok(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var lk={valType:"color",dflt:K0.defaultLine,editType:"ticks"},sk={valType:"color",dflt:K0.lightLine,editType:"ticks"};function uk(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var fk=Vy({},vk,{editType:"ticks"}),ck={valType:"boolean",editType:"ticks"};hk.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:K0.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:[oo.idRegex.x.toString(),oo.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:[oo.idRegex.x.toString(),oo.idRegex.y.toString()],editType:"calc"},rangebreaks:QA("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:[Kte,$te,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Jte},editType:"calc"}),tickmode:Qte,nticks:ek(),tick0:rk,dtick:tk,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:nk,ticktext:{valType:"data_array",editType:"ticks"},ticks:ak,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:ik(),tickwidth:ok(),tickcolor:lk,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:Vy({},vk,{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:jA("tick label")},tickformatstops:QA("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:jA("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:K0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:ck,gridcolor:sk,gridwidth:uk(),griddash:fk,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:K0.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:K0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",oo.idRegex.x.toString(),oo.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",oo.idRegex.x.toString(),oo.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Hy,nticks:ek("minor"),tick0:rk,dtick:tk,tickvals:nk,ticks:ak,ticklen:ik("minor"),tickwidth:ok("minor"),tickcolor:lk,gridcolor:sk,gridwidth:uk("minor"),griddash:fk,showgrid:ck,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"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},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 v1=xe((e6e,pk)=>{"use strict";var It=ai(),dk=Wn(),Gy=Rt().extendFlat,jte=ua().overrideAll;pk.exports=jte({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:Gy({},It.dtick,{}),tickvals:It.tickvals,ticktext:It.ticktext,ticks:Gy({},It.ticks,{dflt:""}),ticklabeloverflow:Gy({},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:dk({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:dk({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Di=xe((t6e,yk)=>{"use strict";var ene=v1(),rne=(I0(),or(Ff)).counter,tne=(Vh(),or(Hh)).default,gk=bs().scales,r6e=tne(gk);function h1(e){return"`"+e+"`"}yk.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"?gk[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 "+h1(s+f));var g=a?" Has an effect only if "+c+" is set to a numerical array.":"",b=n+"auto",h=n+"min",_=n+"max",T=n+"mid",m=h1(s+b),k=h1(s+h),S=h1(s+_),x=k+" and "+S,M={};M[h]=M[_]=void 0;var d={};d[b]=!1;var w={};return f==="color"&&(w.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(w.color.anim=!0)),w[b]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},w[h]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},w[_]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},w[T]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},w.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},w.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},w.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(w.showscale={valType:"boolean",dflt:i,editType:"calc"},w.colorbar=ene),t.noColorAxis||(w.coloraxis={valType:"subplotid",regex:rne("coloraxis"),dflt:null,editType:"calc"}),w}});var Xy=xe((n6e,mk)=>{"use strict";var nne=Rt().extendFlat,ane=Di(),Yy=bs().scales;mk.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Yy.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Yy.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Yy.RdBu,editType:"calc"}},coloraxis:nne({_isSubplotObj:!0,editType:"calc"},ane("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Wy=xe((a6e,bk)=>{"use strict";var ine=tr();bk.exports=function(r){return ine.isPlainObject(r.colorbar)}});var $y=xe(Jy=>{"use strict";var Zy=ut(),xk=tr(),_k=(wn(),or(Rn)),one=_k.ONEDAY,lne=_k.ONEWEEK;Jy.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?one:1;if(!e)return o;if(Zy(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=Zy(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};Jy.tick0=function(e,r,t,n){if(r==="date")return xk.cleanDate(e,xk.dateTick0(t,n%lne===0?1:0));if(!(n==="D1"||n==="D2"))return Zy(e)?Number(e):0}});var Ky=xe((o6e,Mk)=>{"use strict";var wk=$y(),sne=tr().isArrayOrTypedArray,une=ba().isTypedArraySpec,fne=ba().decodeTypedArraySpec;Mk.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(x){var M=l[x];return une(M)&&(M=fne(M)),M!==void 0?M:(u._template||{})[x]}var c=f("tick0"),g=f("dtick"),b=f("tickvals"),h=f("overlaying"),_=a==="category"||a==="multicategory",T;sne(b)?T="array":g?T="linear":h&&!_?T="sync":T="auto";var m=n(s+"tickmode",T);if(m==="auto"||m==="sync")n(s+"nticks");else if(m==="linear"){var k=u.dtick=wk.dtick(g,a);u.tick0=wk.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 jy=xe((l6e,Ak)=>{"use strict";var Qy=tr(),Tk=ai();Ak.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?Tk.minor:Tk,s=o?"minor.":"",f=Qy.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),c=Qy.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),g=Qy.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),b=n(s+"ticks",!o&&a.outerTicks||f||c||g?"outside":"");b||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var em=xe((s6e,kk)=>{"use strict";kk.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 Ri=xe((u6e,Sk)=>{"use strict";var d1=tr(),cne=Tt();Sk.exports=function(r,t,n){var a=n.name,o=n.inclusionAttr||"visible",i=t[a],l=d1.isArrayOrTypedArray(r[a])?r[a]:[],u=t[a]=[],s=cne.arrayTemplater(t,a,o),f,c;for(f=0;f<l.length;f++){var g=l[f];d1.isPlainObject(g)?c=s.newItem(g):(c=s.newItem({}),c[o]=!1),c._index=f,c[o]!==!1&&n.handleItemDefaults(g,c,t,n),u.push(c)}var b=s.defaultItems();for(f=0;f<b.length;f++)c=b[f],c._index=u.length,n.handleItemDefaults({},c,t,n,{}),u.push(c);if(d1.isArrayOrTypedArray(i)){var h=Math.min(i.length,u.length);for(f=0;f<h;f++)d1.relinkPrivateKeys(u[f],i[f])}return u}});var tm=xe((f6e,Ek)=>{"use strict";var rm=tr(),vne=Zr().contrast,Ck=ai(),hne=em(),dne=Ri();Ek.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");rm.isPlainObject(i)||delete t.labelalias;var l=hne(r),u=n("showticklabels");if(u){o.noTicklabelshift||n("ticklabelshift"),o.noTicklabelstandoff||n("ticklabelstandoff");var s=o.font||{},f=t.color,c=t.ticklabelposition||"",g=c.indexOf("inside")!==-1?vne(o.bgColor):f&&f!==Ck.color.dflt?f:s.color;if(rm.coerceFont(n,"tickfont",s,{overrideDflt:{color:g}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var b=n("tickangle");!o.noAutotickangles&&b==="auto"&&n("autotickangles")}if(a!=="category"){var h=n("tickformat");dne(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:pne}),t.tickformatstops.length||delete t.tickformatstops,!o.noExp&&!h&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!o.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function pne(e,r){function t(a,o){return rm.coerce(e,r,Ck.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var nm=xe((c6e,Lk)=>{"use strict";var gne=em();Lk.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=gne(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var am=xe((v6e,Dk)=>{"use strict";var Ml=tr(),yne=Tt(),mne=Ky(),bne=jy(),xne=tm(),_ne=nm(),wne=v1();Dk.exports=function(r,t,n){var a=yne.newContainer(t,"colorbar"),o=r.colorbar||{};function i(p,D){return Ml.coerce(o,a,wne,p,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",g=i("thicknessmode");i("thickness",g==="fraction"?30/(c?u:s):30);var b=i("lenmode");i("len",b==="fraction"?1:c?s:u);var h=i("yref"),_=i("xref"),T=h==="paper",m=_==="paper",k,S,x,M="left";c?(x="middle",M=m?"left":"right",k=m?1.02:1,S=.5):(x=T?"bottom":"top",M="center",k=.5,S=T?1.02:1),Ml.coerce(o,a,{x:{valType:"number",min:m?-2:0,max:m?3:1,dflt:k}},"x"),Ml.coerce(o,a,{y:{valType:"number",min:T?-2:0,max:T?3:1,dflt:S}},"y"),i("xanchor",M),i("xpad"),i("yanchor",x),i("ypad"),Ml.noneOrAll(o,a,["x","y"]),i("outlinecolor"),i("outlinewidth"),i("bordercolor"),i("borderwidth"),i("bgcolor");var d=Ml.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",d.indexOf("inside")!==-1?"hide past domain":"hide past div"),mne(o,a,i,"linear");var w=n.font,y={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:w};d.indexOf("inside")!==-1&&(y.bgColor="black"),_ne(o,a,i,"linear",y),xne(o,a,i,"linear",y),bne(o,a,i,"linear",y),i("title.text",n._dfltTitle.colorbar);var v=a.showticklabels?a.tickfont:w,A=Ml.extendFlat({},w,{family:v.family,size:Ml.bigFont(v.size)});Ml.coerceFont(i,"title.font",A),i("title.side",c?"top":"right")}});var lo=xe((h6e,Pk)=>{"use strict";var Rk=ut(),om=tr(),Mne=Wy(),Tne=am(),Fk=bs().isValid,Ane=Cr().traceIs;function im(e,r){var t=r.slice(0,r.length-1);return r?om.nestedProperty(e,t).get()||{}:e}Pk.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=im(r,i),f=im(t,i),c=im(t._template||{},i)||{},g=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var b=n._colorAxes||{},h=a(i+"coloraxis");if(h){var _=Ane(t,"contour")&&om.nestedProperty(t,"contours.coloring").get()||"heatmap",T=b[h];T?(T[2].push(g),T[0]!==_&&(T[0]=!1,om.warn(["Ignoring coloraxis:",h,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[h]=[_,t,[g]];return}}var m=s[l+"min"],k=s[l+"max"],S=Rk(m)&&Rk(k)&&m<k,x=a(i+l+"auto",!S);x?a(i+l+"mid"):(a(i+l+"min"),a(i+l+"max"));var M=s.colorscale,d=c.colorscale,w;if(M!==void 0&&(w=!Fk(M)),d!==void 0&&(w=!Fk(d)),a(i+"autocolorscale",w),a(i+"colorscale"),a(i+"reversescale"),i!=="marker.line."){var y;i&&u&&(y=Mne(s));var v=a(i+"showscale",y);v&&(i&&c&&(f._template=c),Tne(s,f,n))}}});var qk=xe((d6e,Nk)=>{"use strict";var Ik=tr(),kne=Tt(),zk=Xy(),Sne=lo();Nk.exports=function(r,t){function n(c,g){return Ik.coerce(r,t,zk,c,g)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(c,g){return Ik.coerce(o,i,zk.coloraxis,c,g)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=kne.newContainer(t,u,"coloraxis"),i._name=u,Sne(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 Ok=xe((p6e,Bk)=>{"use strict";var Cne=tr(),Ene=io().hasColorscale,Lne=io().extractOpts;Bk.exports=function(r,t){function n(f,c){var g=f["_"+c];g!==void 0&&(f[c]=g)}function a(f,c){var g=c.container?Cne.nestedProperty(f,c.container).get():f;if(g)if(g.coloraxis)g._colorAx=t[g.coloraxis];else{var b=Lne(g),h=b.auto;(h||b.min===void 0)&&n(g,c.min),(h||b.max===void 0)&&n(g,c.max),b.autocolorscale&&n(g,"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);Ene(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 Tl=xe((g6e,Hk)=>{"use strict";var Uk=ut(),lm=tr(),Dne=io().extractOpts;Hk.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?lm.nestedProperty(t,i).get():t,u=Dne(l),s=u.auto!==!1,f=u.min,c=u.max,g=u.mid,b=function(){return lm.aggNums(Math.min,null,o)},h=function(){return lm.aggNums(Math.max,null,o)};if(f===void 0?f=b():s&&(l._colorAx&&Uk(f)?f=Math.min(f,b()):f=b()),c===void 0?c=h():s&&(l._colorAx&&Uk(c)?c=Math.max(c,h()):c=h()),s&&g!==void 0&&(c-g>g-f?f=g-(c-g):c-g<g-f&&(c=g+(g-f))),f===c&&(f-=.5,c+=.5),u._sync("min",f),u._sync("max",c),u.autocolorscale){var _;f*c<0?_=a.colorscale.diverging:f>=0?_=a.colorscale.sequential:_=a.colorscale.sequentialminus,u._sync("colorscale",_)}}});var so=xe((y6e,Vk)=>{"use strict";var p1=bs(),Q0=io();Vk.exports={moduleType:"component",name:"colorscale",attributes:Di(),layoutAttributes:Xy(),supplyLayoutDefaults:qk(),handleDefaults:lo(),crossTraceDefaults:Ok(),calc:Tl(),scales:p1.scales,defaultScale:p1.defaultScale,getScale:p1.get,isValidScale:p1.isValid,hasColorscale:Q0.hasColorscale,extractOpts:Q0.extractOpts,extractScale:Q0.extractScale,flipScale:Q0.flipScale,makeColorScaleFunc:Q0.makeColorScaleFunc,makeColorScaleFuncFromTrace:Q0.makeColorScaleFuncFromTrace}});var Da=xe((m6e,Yk)=>{"use strict";var Gk=tr(),Rne=ba().isTypedArraySpec;Yk.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 Gk.isPlainObject(r)&&(Gk.isArrayOrTypedArray(r.size)||Rne(r.size))}}});var sm=xe((b6e,Xk)=>{"use strict";var Fne=ut();Xk.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 Fne(u)&&u>0?Math.max(u,o):0}}});var uo=xe(Hn=>{"use strict";var Zf=tr();Hn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Hn.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(Hn.getSubplot(e))!==-1};Hn.flat=function(e,r){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=r;return t};Hn.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};Hn.c2dApply=function(e,r){e.length!==r.length&&Zf.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};Hn.getDistanceFunction=function(e,r,t,n){return e==="closest"?n||Hn.quadrature(r,t):e.charAt(0)==="x"?r:t};Hn.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};Hn.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};Hn.quadrature=function(e,r){return function(t){var n=e(t),a=r(t);return Math.sqrt(n*n+a*a)}};Hn.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)),Hn.appendArrayPointValue(a,r,n),a};Hn.appendArrayPointValue=function(e,r,t){var n=r._arrayAttrs;if(n)for(var a=0;a<n.length;a++){var o=n[a],i=Wk(o);if(e[i]===void 0){var l=Zf.nestedProperty(r,o).get(),u=Zk(l,t);u!==void 0&&(e[i]=u)}}};Hn.appendArrayMultiPointValues=function(e,r,t){var n=r._arrayAttrs;if(n)for(var a=0;a<n.length;a++){var o=n[a],i=Wk(o);if(e[i]===void 0){for(var l=Zf.nestedProperty(r,o).get(),u=new Array(t.length),s=0;s<t.length;s++)u[s]=Zk(l,t[s]);e[i]=u}}};var Pne={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function Wk(e){return Pne[e]||e}function Zk(e,r){if(Array.isArray(r)){if(Zf.isArrayOrTypedArray(e)&&Zf.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var Ine={x:!0,y:!0},zne={"x unified":!0,"y unified":!0};Hn.isUnifiedHover=function(e){return typeof e!="string"?!1:!!zne[e]};Hn.isXYhover=function(e){return typeof e!="string"?!1:!!Ine[e]}});var fm=xe((_6e,Jk)=>{var um={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Nne=/([astvzqmhlc])([^astvzqmhlc]*)/gi,qne=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Bne(e){let r=[];return e.replace(Nne,(t,n,a)=>{let o=n.toLowerCase(),i=n,l=One(a);for(o==="m"&&l.length>2&&(r.push([i,...l.splice(0,2)]),o="l",i=i==="m"?"l":"L");;){if(l.length===um[o])return r.push([i,...l]),"";if(l.length<um[o])throw new Error("malformed path data");r.push([i,...l.splice(0,um[o])])}}),r}function One(e){let r=e.match(qne);return r?r.map(Number):[]}Jk.exports=Bne});var tS=xe((w6e,rS)=>{"use strict";var Une=fm(),sr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},zr="M0,0Z",$k=Math.sqrt(2),Al=Math.sqrt(3),cm=Math.PI,vm=Math.cos,hm=Math.sin;rS.exports={circle:{n:0,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?qr(r,t,a):a}},square:{n:1,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.3,2);return qr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.4,2),a=sr(e*1.2,2);return qr(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(Nr(r))return zr;var n=sr(e*.8/$k,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return qr(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(Nr(r))return zr;var n=sr(e*2/Al,2),a=sr(e/2,2),o=sr(e,2);return qr(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2/Al,2),a=sr(e/2,2),o=sr(e,2);return qr(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2/Al,2),a=sr(e/2,2),o=sr(e,2);return qr(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2/Al,2),a=sr(e/2,2),o=sr(e,2);return qr(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.6,2),a=sr(e*1.2,2);return qr(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.6,2),a=sr(e*1.2,2);return qr(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.6,2),a=sr(e*1.2,2);return qr(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.6,2),a=sr(e*1.2,2);return qr(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.951,2),a=sr(e*.588,2),o=sr(-e,2),i=sr(e*-.309,2),l=sr(e*.809,2);return qr(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(Nr(r))return zr;var n=sr(e,2),a=sr(e/2,2),o=sr(e*Al/2,2);return qr(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(Nr(r))return zr;var n=sr(e,2),a=sr(e/2,2),o=sr(e*Al/2,2);return qr(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(Nr(r))return zr;var n=sr(e*.924,2),a=sr(e*.383,2);return qr(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(Nr(r))return zr;var n=e*1.4,a=sr(n*.225,2),o=sr(n*.951,2),i=sr(n*.363,2),l=sr(n*.588,2),u=sr(-n,2),s=sr(n*-.309,2),f=sr(n*.118,2),c=sr(n*.809,2),g=sr(n*.382,2);return qr(r,t,"M"+a+","+s+"H"+o+"L"+i+","+f+"L"+l+","+c+"L0,"+g+"L-"+l+","+c+"L-"+i+","+f+"L-"+o+","+s+"H-"+a+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.66,2),a=sr(e*.38,2),o=sr(e*.76,2);return qr(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(Nr(r))return zr;var n=sr(e*Al*.8,2),a=sr(e*.8,2),o=sr(e*1.6,2),i=sr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return qr(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(Nr(r))return zr;var n=sr(e*Al*.8,2),a=sr(e*.8,2),o=sr(e*1.6,2),i=sr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return qr(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(Nr(r))return zr;var n=sr(e*1.1,2),a=sr(e*2,2),o="A "+a+","+a+" 0 0 1 ";return qr(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(Nr(r))return zr;var n=sr(e*1.4,2),a=sr(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return qr(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(Nr(r))return zr;var n=sr(e*.7,2),a=sr(e*1.4,2);return qr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.4,2),a=sr(e*.7,2);return qr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(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(Nr(r))return zr;var n=sr(e,2);return qr(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(Nr(r))return zr;var n=sr(e,2),a=sr(e/$k,2);return qr(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(Nr(r))return zr;var n=sr(e,2);return qr(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(Nr(r))return zr;var n=sr(e,2);return qr(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(Nr(r))return zr;var n=sr(e*1.3,2);return qr(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(Nr(r))return zr;var n=sr(e*1.3,2),a=sr(e*.65,2);return qr(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(Nr(r))return zr;var n=sr(e*1.4,2);return qr(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(Nr(r))return zr;var n=sr(e,2);return qr(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(Nr(r))return zr;var n=sr(e*1.2,2),a=sr(e*.85,2);return qr(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(Nr(r))return zr;var n=sr(e/2,2),a=sr(e,2);return qr(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(Nr(r))return zr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return qr(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(Nr(r))return zr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return qr(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(Nr(r))return zr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return qr(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(Nr(r))return zr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return qr(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(Nr(r))return zr;var n=sr(e*1.4,2);return qr(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.4,2);return qr(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2),a=sr(e*2,2);return qr(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2),a=sr(e*2,2);return qr(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2,2),a=sr(e,2);return qr(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2,2),a=sr(e,2);return qr(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2),a=sr(e*2,2);return qr(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(Nr(r))return zr;var n=sr(e,2),a=sr(e*2,2);return qr(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(Nr(r))return zr;var n=sr(e*2,2),a=sr(e,2);return qr(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(Nr(r))return zr;var n=sr(e*2,2),a=sr(e,2);return qr(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(Nr(r))return zr;var n=cm/2.5,a=2*e*vm(n),o=2*e*hm(n);return qr(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Nr(r))return zr;var n=cm/4,a=2*e*vm(n),o=2*e*hm(n);return qr(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function Nr(e){return e===null}var Kk,Qk,jk,eS;function qr(e,r,t){if((!e||e%360===0)&&!r)return t;if(jk===e&&eS===r&&Kk===t)return Qk;jk=e,eS=r,Kk=t;function n(T,m){var k=vm(T),S=hm(T),x=m[0],M=m[1]+(r||0);return[x*k-M*S,x*S+M*k]}for(var a=e/180*cm,o=0,i=0,l=Une(t),u="",s=0;s<l.length;s++){var f=l[s],c=f[0],g=o,b=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 h=n(a,[+f[6],+f[7]]);f[6]=h[0],f[7]=h[1],f[3]=+f[3]+e}(c==="H"||c==="V")&&(c="L"),(c==="h"||c==="v")&&(c="l"),(c==="m"||c==="l")&&(o-=g,i-=b);var _=n(a,[o,i]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=_[0],f[2]=_[1]),f[0]=c,u+=f[0]+f.slice(1).join(",")}return Qk=u,u}});var At=xe((M6e,wS)=>{"use strict";var Cn=lt(),xt=tr(),Hne=xt.numberFormat,kl=ut(),y1=Cr(),bn=Zr(),Vne=so(),$f=xt.strTranslate,m1=Qn(),Gne=(wl(),or(_l)),Yne=(Kn(),or($n)),Xne=Yne.LINE_SPACING,vS=(Eh(),or(Ch)).DESELECTDIM,Wne=Da(),Zne=sm(),Jne=uo().appendArrayPointValue,ur={};wS.exports=ur;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(bn.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",dm(Kne(f))),u&&e.style("text-shadow",u==="auto"?m1.makeTextShadow(bn.contrast(o)):dm(u)),s&&e.style("text-decoration-line",dm(Qne(s)))};function dm(e){return e==="none"?void 0:e}var $ne={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Kne(e){return $ne[e]}function Qne(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(kl(a)&&kl(o)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",o):r.attr("transform",$f(a,o));else return!1;return!0};ur.translatePoints=function(e,r,t){e.each(function(n){var a=Cn.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=y1.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){ur.hideOutsideRangePoint(s,Cn.select(this),t,n,i,l)})})}};ur.crispRound=function(e,r,t){return!r||!kl(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||"";bn.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||"";Cn.select(this).call(bn.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 hS(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),g=i(a.solidity,0,.3),b=r.uid;ur.pattern(e,"point",t,b,l,c,g,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var h=o.type,_="scatterfill-"+r.uid;if(n&&(_="legendfill-"+r.uid),!n&&(o.start!==void 0||o.stop!==void 0)){var T,m;h==="horizontal"?(T={x:o.start,y:0},m={x:o.stop,y:0}):h==="vertical"&&(T={x:0,y:o.start},m={x:0,y:o.stop}),T.x=r._xA.c2p(T.x===void 0?r._extremes.x.min[0].val:T.x,!0),T.y=r._yA.c2p(T.y===void 0?r._extremes.y.min[0].val:T.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(gS,t,_,"linear",o.colorscale,"fill",T,m,!0,!1)}else h==="horizontal"&&(h=h+"reversed"),e.call(ur.gradient,t,_,h,o.colorscale,"fill")}else r.fillcolor&&e.call(bn.fill,r.fillcolor)}ur.singleFillStyle=function(e,r){var t=Cn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};hS(e,a,r,!1)};ur.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=Cn.select(this);n[0].trace&&hS(a,n[0].trace,r,t)})};var nS=tS();ur.symbolNames=[];ur.symbolFuncs=[];ur.symbolBackOffs=[];ur.symbolNeedLines={};ur.symbolNoDot={};ur.symbolNoFill={};ur.symbolList=[];Object.keys(nS).forEach(function(e){var r=nS[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 jne=ur.symbolNames.length,eae="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";ur.symbolNumber=function(e){if(kl(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>=jne||e>=400?0:Math.floor(Math.max(e,0))};function dS(e,r,t,n){var a=e%100;return ur.symbolFuncs[a](r,t,n)+(e>=200?eae:"")}var aS=Hne("~f"),pS={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=pS[n];return gS(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function gS(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 g=new Array(f),b=0;b<f;b++)c.reversed?g[f-1-b]=[aS((1-a[b][0])*100),a[b][1]]:g[b]=[aS(a[b][0]*100),a[b][1]];var h=r._fullLayout,_="g"+h._uid+"-"+t,T=h._defs.select(".gradients").selectAll("#"+_).data([n+g.join(";")],xt.identity);T.exit().remove(),T.enter().append(c.node).each(function(){var m=Cn.select(this);c.attrs&&m.attr(c.attrs),m.attr("id",_);var k=m.selectAll("stop").data(g);k.exit().remove(),k.enter().append("stop"),k.each(function(S){Cn.select(this).attr({offset:S[0]+"%","stop-color":bn.rgb(S[1]),"stop-opacity":bn.parse(S[1]).alpha})})}),e.style(o,bm(_,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 g=r==="legend";l&&(u==="overlay"?(s=l,f=bn.contrast(s)):(s=void 0,f=l));var b=t._fullLayout,h="p"+b._uid+"-"+n,_,T,m=function(D,E,R,I,z){return I+(z-I)*(D-E)/(R-E)},k,S,x,M,d={},w=bn.rgb(f),y=bn.parse(f).alpha,v=c*y;switch(a){case"/":_=o*Math.sqrt(2),T=o*Math.sqrt(2),k="M-"+_/4+","+T/4+"l"+_/2+",-"+T/2+"M0,"+T+"L"+_+",0M"+_/4*3+","+T/4*5+"l"+_/2+",-"+T/2,S=i*o,M="path",d={d:k,opacity:v,stroke:w,"stroke-width":S+"px"};break;case"\\":_=o*Math.sqrt(2),T=o*Math.sqrt(2),k="M"+_/4*3+",-"+T/4+"l"+_/2+","+T/2+"M0,0L"+_+","+T+"M-"+_/4+","+T/4*3+"l"+_/2+","+T/2,S=i*o,M="path",d={d:k,opacity:v,stroke:w,"stroke-width":S+"px"};break;case"x":_=o*Math.sqrt(2),T=o*Math.sqrt(2),k="M-"+_/4+","+T/4+"l"+_/2+",-"+T/2+"M0,"+T+"L"+_+",0M"+_/4*3+","+T/4*5+"l"+_/2+",-"+T/2+"M"+_/4*3+",-"+T/4+"l"+_/2+","+T/2+"M0,0L"+_+","+T+"M-"+_/4+","+T/4*3+"l"+_/2+","+T/2,S=o-o*Math.sqrt(1-i),M="path",d={d:k,opacity:v,stroke:w,"stroke-width":S+"px"};break;case"|":_=o,T=o,M="path",k="M"+_/2+",0L"+_/2+","+T,S=i*o,M="path",d={d:k,opacity:v,stroke:w,"stroke-width":S+"px"};break;case"-":_=o,T=o,M="path",k="M0,"+T/2+"L"+_+","+T/2,S=i*o,M="path",d={d:k,opacity:v,stroke:w,"stroke-width":S+"px"};break;case"+":_=o,T=o,M="path",k="M"+_/2+",0L"+_/2+","+T+"M0,"+T/2+"L"+_+","+T/2,S=o-o*Math.sqrt(1-i),M="path",d={d:k,opacity:v,stroke:w,"stroke-width":S+"px"};break;case".":_=o,T=o,i<Math.PI/4?x=Math.sqrt(i*o*o/Math.PI):x=m(i,Math.PI/4,1,o/2,o/Math.sqrt(2)),M="circle",d={cx:_/2,cy:T/2,r:x,opacity:v,fill:w};break;default:_=o,T=o,M="path",d={d:a,opacity:v,fill:w};break}var A=[a||"noSh",s||"noBg",f||"noFg",o,i].join(";"),p=b._defs.select(".patterns").selectAll("#"+h).data([A],xt.identity);p.exit().remove(),p.enter().append("pattern").each(function(){var D=Cn.select(this);if(D.attr({id:h,width:_+"px",height:T+"px",patternUnits:"userSpaceOnUse",patternTransform:g?"scale(0.8)":""}),s){var E=bn.rgb(s),R=bn.parse(s).alpha,I=D.selectAll("rect").data([0]);I.exit().remove(),I.enter().append("rect").attr({width:_+"px",height:T+"px",fill:E,"fill-opacity":R})}var z=D.selectAll(M).data([0]);z.exit().remove(),z.enter().append(M).attr(d)}),e.style("fill",bm(h,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};ur.initGradients=function(e){var r=e._fullLayout,t=xt.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),Cn.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};ur.initPatterns=function(e){var r=e._fullLayout,t=xt.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),Cn.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};ur.getPatternAttr=function(e,r,t){return e&&xt.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,Cn.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=_m(e,t),c=xm(e,t);r.attr("d",dS(s,u,f,c))}var g=!1,b,h,_;if(e.so)_=l.outlierwidth,h=l.outliercolor,b=i.outliercolor;else{var T=(l||{}).width;_=(e.mlw+1||T+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?h=e.mlcc=n.lineScale(e.mlc):xt.isArrayOrTypedArray(l.color)?h=bn.defaultLine:h=l.color,xt.isArrayOrTypedArray(i.color)&&(b=bn.defaultLine,g=!0),"mc"in e?b=e.mcc=n.markerScale(e.mc):b=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(b=n.selectedColorFn(e))}let m=e.mld||(l||{}).dash;if(m&&ur.dashLine(r,m,_),e.om)r.call(bn.stroke,b).style({"stroke-width":(_||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:_)+"px");var k=i.gradient,S=e.mgt;S?g=!0:S=k&&k.type,xt.isArrayOrTypedArray(S)&&(S=S[0],pS[S]||(S=0));var x=i.pattern,M=ur.getPatternAttr,d=x&&(M(x.shape,e.i,"")||M(x.path,e.i,""));if(S&&S!=="none"){var w=e.mgc;w?g=!0:w=k.color;var y=t.uid;g&&(y+="-"+e.i),ur.gradient(r,a,y,S,[[0,w],[1,b]],"fill")}else if(d){var v=!1,A=x.fgcolor;!A&&o&&o.color&&(A=o.color,v=!0);var p=M(A,e.i,o&&o.color||null),D=M(x.bgcolor,e.i,null),E=x.fgopacity,R=M(x.size,e.i,8),I=M(x.solidity,e.i,.3);v=v||e.mcc||xt.isArrayOrTypedArray(x.shape)||xt.isArrayOrTypedArray(x.path)||xt.isArrayOrTypedArray(x.bgcolor)||xt.isArrayOrTypedArray(x.fgcolor)||xt.isArrayOrTypedArray(x.size)||xt.isArrayOrTypedArray(x.solidity);var z=t.uid;v&&(z+="-"+e.i),ur.pattern(r,"point",a,z,d,R,I,e.mcc,x.fillmode,D,p,E)}else xt.isArrayOrTypedArray(b)?bn.fill(r,b[e.i]):bn.fill(r,b);_&&bn.stroke(r,h)}};ur.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=ur.tryColorscale(t,""),r.lineScale=ur.tryColorscale(t,"line"),y1.traceIs(e,"symbols")&&(r.ms2mrc=Wne.isBubble(e)?Zne(e):function(){return(t.size||6)/2}),e.selectedpoints&&xt.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;(xt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(x){var M=x.mo===void 0?a.opacity:x.mo;return x.selected?f?u:M:c?s:vS*M});var g=a.color,b=o.color,h=i.color;(b||h)&&(r.selectedColorFn=function(x){var M=x.mcc||g;return x.selected?b||M:h||M});var _=a.size,T=o.size,m=i.size,k=T!==void 0,S=m!==void 0;return y1.traceIs(e,"symbols")&&(k||S)&&(r.selectedSizeFn=function(x){var M=x.mrc||_/2;return x.selected?k?T/2:M:S?m/2:M}),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:bn.addOpacity(c,vS))},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){bn.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",dS(ur.symbolNumber(l),u,_m(i,r),xm(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=Cn.select(this),l=0;l<a.length;l++)a[l](i,o)})}};ur.tryColorscale=function(e,r){var t=r?xt.nestedProperty(e,r).get():e;if(t){var n=t.color;if((t.colorscale||t._colorAx)&&xt.isArrayOrTypedArray(n))return Vne.makeColorScaleFuncFromTrace(t)}return xt.identity};var pm={start:1,end:-1,middle:0,bottom:1,top:-1};function yS(e,r,t,n,a){var o=Cn.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=(m1.lineCount(e)-1)*Xne+1,f=pm[l]*u,c=t*.75+pm[i]*u+(pm[i]-1)*s*t/2;e.attr("text-anchor",l),a||o.attr("transform",$f(f,c))}function mS(e,r){var t=e.ts||r.textfont.size;return kl(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=Cn.select(this),s=o?xt.extractOption(l,r,"txt","texttemplate"):xt.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):{},g={};Jne(g,r,l.i),s=xt.texttemplateString({data:[g,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:i._d3locale,template:s})}var b=l.tp||r.textposition,h=mS(l,r),_=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:h,color:_}).text(s).call(m1.convertToTspans,t).call(yS,b,h,l.mrc)})}};ur.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ur.makeSelectedTextStyleFns(r);e.each(function(n){var a=Cn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=mS(n,r);bn.fill(a,o);var u=y1.traceIs(r,"bar-like");yS(a,i,l,n.mrc2||n.mrc,u)})}};var iS=.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(g1(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=[g1(e[n],e[0],e[1],r)],o;for(o=1;o<n;o++)a.push(g1(e[o-1],e[o],e[o+1],r));for(a.push(g1(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 bS,xS;function j0(e,r,t){return t&&(e=_S(e)),r?Rs(e[1]):Ds(e[0])}function Ds(e){var r=Cn.round(e,2);return bS=r,r}function Rs(e){var r=Cn.round(e,2);return xS=r,r}function g1(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,iS/2),s=Math.pow(i*i+l*l,iS/2),f=(s*s*a-u*u*i)*n,c=(s*s*o-u*u*l)*n,g=3*s*(u+s),b=3*u*(u+s);return[[Ds(r[0]+(g&&f/g)),Rs(r[1]+(g&&c/g))],[Ds(r[0]-(b&&f/b)),Rs(r[1]-(b&&c/b))]]}var rae={hv:function(e,r,t){return"H"+Ds(r[0])+"V"+j0(r,1,t)},vh:function(e,r,t){return"V"+Rs(r[1])+"H"+j0(r,0,t)},hvh:function(e,r,t){return"H"+Ds((e[0]+r[0])/2)+"V"+Rs(r[1])+"H"+j0(r,0,t)},vhv:function(e,r,t){return"V"+Rs((e[1]+r[1])/2)+"H"+Ds(r[0])+"V"+j0(r,1,t)}},tae=function(e,r,t){return"L"+j0(r,0,t)+","+j0(r,1,t)};ur.steps=function(e){var r=rae[e]||tae;return function(t){for(var n="M"+Ds(t[0][0])+","+Rs(t[0][1]),a=t.length,o=1;o<a;o++)n+=r(t[o-1],t[o],o===a-1);return n}};function _S(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=xt.isArrayOrTypedArray(t),l=e,u=r?r[0]:bS||0,s=r?r[1]:xS||0,f=l[0],c=l[1],g=f-u,b=c-s,h=Math.atan2(b,g),_=i?t[o]:t;if(_==="auto"){var T=l.i;n.type==="scatter"&&T--;var m=l.marker,k=m.symbol;xt.isArrayOrTypedArray(k)&&(k=k[T]);var S=m.size;xt.isArrayOrTypedArray(S)&&(S=S[T]),_=m?ur.symbolBackOffs[ur.symbolNumber(k)]*S:0,_+=ur.getMarkerStandoff(a[T],n)||0}var x=f-_*Math.cos(h),M=c-_*Math.sin(h);(x<=f&&x>=u||x>=f&&x<=u)&&(M<=c&&M>=s||M>=c&&M<=s)&&(e=[x,M])}return e}ur.applyBackoff=_S;ur.makeTester=function(){var e=xt.ensureSingleById(Cn.select("body"),"svg","js-plotly-tester",function(t){t.attr(Gne.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=xt.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 gm=0,nae=1e4;ur.bBox=function(e,r,t){t||(t=oS(e));var n;if(t){if(n=ur.savedBBoxes[t],n)return xt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=oS(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 xt.extendFlat({},n)}}var s,f;r?s=e:(f=ur.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),Cn.select(s).attr("transform",null).call(m1.positionText,0,0);var c=s.getBoundingClientRect(),g=ur.testref.node().getBoundingClientRect();r||f.removeChild(s);var b={height:c.height,width:c.width,left:c.left-g.left,top:c.top-g.top,right:c.right-g.left,bottom:c.bottom-g.top};return gm>=nae&&(ur.savedBBoxes={},gm=0),t&&(ur.savedBBoxes[t]=b),gm++,xt.extendFlat({},b)};function oS(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",bm(r,t))};function bm(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+=$f(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 aae=/\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(aae,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var iae=/translate\([^)]*\)\s*$/;ur.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=Cn.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(iae);r===1&&t===1?n=[]:n=[$f(i,l),"scale("+r+","+t+")",$f(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function xm(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=xm;var Jf=Math.atan2,Ls=Math.cos,eu=Math.sin;function lS(e,r){var t=r[0],n=r[1];return[t*Ls(e)-n*eu(e),t*eu(e)+n*Ls(e)]}var sS,uS,fS,cS,ym,mm;function _m(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!kl(t)||xt.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]),g=r._geo.project([s+1e-5,f]),b=Jf(g[1]-a,g[0]-n),h=Jf(c[1]-a,c[0]-n),_;if(o==="north")_=t/180*Math.PI;else if(o==="previous"){var T=s/180*Math.PI,m=f/180*Math.PI,k=sS/180*Math.PI,S=uS/180*Math.PI,x=k-T,M=Ls(S)*eu(x),d=eu(S)*Ls(m)-Ls(S)*eu(m)*Ls(x);_=-Jf(M,d)-Math.PI,sS=s,uS=f}var w=lS(b,[Ls(_),0]),y=lS(h,[eu(_),0]);t=Jf(w[1]+y[1],w[0]+y[0])/Math.PI*180,o==="previous"&&!(mm===r.uid&&e.i===ym+1)&&(t=null)}if(o==="previous"&&!r._geo)if(mm===r.uid&&e.i===ym+1&&kl(n)&&kl(a)){var v=n-fS,A=a-cS,p=r.line&&r.line.shape||"",D=p.slice(p.length-1);D==="h"&&(A=0),D==="v"&&(v=0),t+=Jf(A,v)/Math.PI*180+90}else t=null}return fS=n,cS=a,ym=e.i,mm=r.uid,t}ur.getMarkerAngle=_m});var Kf=xe((T6e,kS)=>{"use strict";var ru=lt(),oae=ut(),lae=Sn(),wm=Cr(),Fs=tr(),MS=Fs.strTranslate,b1=At(),x1=Zr(),tu=Qn(),TS=(Eh(),or(Ch)),sae=(Kn(),or($n)).OPPOSITE_SIDE,AS=/ [XY][0-9]* /,Mm=1.6,Tm=1.6;function uae(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,g=1,b=a.title,h=(b&&b.text?b.text:"").trim(),_=!1,T=b&&b.font?b.font:{},m=T.family,k=T.size,S=T.color,x=T.weight,M=T.style,d=T.variant,w=T.textcase,y=T.lineposition,v=T.shadow,A=t.subtitlePropName,p=!!A,D=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},R=(E.text||"").trim(),I=!1,z=1,F=E.font,L=F.family,P=F.size,B=F.color,O=F.weight,G=F.style,J=F.variant,j=F.textcase,V=F.lineposition,q=F.shadow,Z;o==="title.text"?Z="titleText":o.indexOf("axis")!==-1?Z="axisTitleText":o.indexOf("colorbar")!==-1&&(Z="colorbarTitleText");var re=e._context.edits[Z];function $(Le,se){return Le===void 0||se===void 0?!1:Le.replace(AS," % ")===se.replace(AS," % ")}h===""?g=0:$(h,i)&&(re||(h=""),g=.2,_=!0),p&&(R===""?z=0:$(R,D)&&(re||(R=""),z=.2,I=!0)),t._meta?h=Fs.templateString(h,t._meta):n._meta&&(h=Fs.templateString(h,n._meta));var ae=h||R||re,Q;c||(c=Fs.ensureSingle(n._infolayer,"g","g-"+r),Q=n._hColorbarMoveTitle);var te=c.selectAll("text."+r).data(ae?[0]:[]);te.enter().append("text"),te.text(h).attr("class",r),te.exit().remove();var ue=null,ee=r+"-subtitle",ie=R||re;if(p&&(ue=c.selectAll("text."+ee).data(ie?[0]:[]),ue.enter().append("text"),ue.text(R).attr("class",ee),ue.exit().remove()),!ae)return c;function fe(Le,se){Fs.syncOrAsync([we,Te],{title:Le,subtitle:se})}function we(Le){var se=Le.title,X=Le.subtitle,K;!f&&Q&&(f={}),f?(K="",f.rotate&&(K+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||Q)&&(K+=MS(0,(f.offset||0)-(Q||0)))):K=null,se.attr("transform",K);function ye(ve){if(ve){var he=ru.select(ve.node().parentNode).select("."+ee);if(!he.empty()){var be=ve.node().getBBox();if(be.height){var Ae=be.y+be.height+Mm*P;he.attr("y",Ae)}}}}if(se.style("opacity",g*x1.opacity(S)).call(b1.font,{color:x1.rgb(S),size:ru.round(k,2),family:m,weight:x,style:M,variant:d,textcase:w,shadow:v,lineposition:y}).attr(s).call(tu.convertToTspans,e,ye),X&&!X.empty()){var oe=c.select("."+r+"-math-group"),de=se.node().getBBox(),pe=oe.node()?oe.node().getBBox():void 0,me=pe?pe.y+pe.height+Mm*P:de.y+de.height+Tm*P,Se=Fs.extendFlat({},s,{y:me});X.attr("transform",K),X.style("opacity",z*x1.opacity(B)).call(b1.font,{color:x1.rgb(B),size:ru.round(P,2),family:L,weight:O,style:G,variant:J,textcase:j,shadow:q,lineposition:V}).attr(Se).call(tu.convertToTspans,e)}return lae.previousPromises(e)}function Te(Le){var se=Le.title,X=ru.select(se.node().parentNode);if(u&&u.selection&&u.side&&h){X.attr("transform",null);var K=sae[u.side],ye=u.side==="left"||u.side==="top"?-1:1,oe=oae(u.pad)?u.pad:2,de=b1.bBox(X.node()),pe={t:0,b:0,l:0,r:0},me=e._fullLayout._reservedMargin;for(var Se in me)for(var ve in me[Se]){var he=me[Se][ve];pe[ve]=Math.max(pe[ve],he)}var be={left:pe.l,top:pe.t,right:n.width-pe.r,bottom:n.height-pe.b},Ae=u.maxShift||ye*(be[u.side]-de[u.side]),Re=0;if(Ae<0)Re=Ae;else{var Pe=u.offsetLeft||0,Ye=u.offsetTop||0;de.left-=Pe,de.right-=Pe,de.top-=Ye,de.bottom-=Ye,u.selection.each(function(){var Ue=b1.bBox(this);Fs.bBoxIntersect(de,Ue,oe)&&(Re=Math.max(Re,ye*(Ue[u.side]-de[K])+oe))}),Re=Math.min(Ae,Re),a._titleScoot=Math.abs(Re)}if(Re>0||Ae<0){var Ve={left:[-Re,0],right:[Re,0],top:[0,-Re],bottom:[0,Re]}[u.side];X.attr("transform",MS(Ve[0],Ve[1]))}}}te.call(fe,ue);function ke(Le,se){Le.text(se).on("mouseover.opacity",function(){ru.select(this).transition().duration(TS.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){ru.select(this).transition().duration(TS.HIDE_PLACEHOLDER).style("opacity",0)})}if(re&&(h?te.on(".opacity",null):(ke(te,i),_=!0),te.call(tu.makeEditable,{gd:e}).on("edit",function(Le){l!==void 0?wm.call("_guiRestyle",e,o,Le,l):wm.call("_guiRelayout",e,o,Le)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(fe)}).on("input",function(Le){this.text(Le||" ").call(tu.positionText,s.x,s.y)}),p)){if(p&&!h){var ge=te.node().getBBox(),Ee=ge.y+ge.height+Tm*P;ue.attr("y",Ee)}R?ue.on(".opacity",null):(ke(ue,D),I=!0),ue.call(tu.makeEditable,{gd:e}).on("edit",function(Le){wm.call("_guiRelayout",e,"title.subtitle.text",Le)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(fe)}).on("input",function(Le){this.text(Le||" ").call(tu.positionText,ue.attr("x"),ue.attr("y"))})}return te.classed("js-placeholder",_),ue&&!ue.empty()&&ue.classed("js-placeholder",I),c}kS.exports={draw:uae,SUBTITLE_PADDING_EM:Tm,SUBTITLE_PADDING_MATHJAX_EM:Mm}});var C1=xe((A6e,DS)=>{"use strict";var fae=lt(),cae=w0().utcFormat,kt=tr(),vae=kt.numberFormat,fo=ut(),Sl=kt.cleanNumber,hae=kt.ms2DateTime,SS=kt.dateTime2ms,co=kt.ensureNumber,CS=kt.isArrayOrTypedArray,Cl=(wn(),or(Rn)),_1=Cl.FP_SAFE,Fi=Cl.BADNUM,dae=Cl.LOG_CLIP,pae=Cl.ONEWEEK,w1=Cl.ONEDAY,M1=Cl.ONEHOUR,ES=Cl.ONEMIN,LS=Cl.ONESEC,T1=mn(),S1=(kn(),or(An)),A1=S1.HOUR_PATTERN,k1=S1.WEEKDAY_PATTERN;function Qf(e){return Math.pow(10,e)}function Am(e){return e!=null}var gae=2;function yae(e,r){if(e<=0)return 0;let t=Math.max(0,r-gae);return e>t?t/e:1}DS.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function o(x,M){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&M&&r.range&&r.range.length===2){var d=r.range[0],w=r.range[1];return .5*(d+w-2*dae*Math.abs(d-w))}else return Fi}function i(x,M,d,w){if((w||{}).msUTC&&fo(x))return+x;var y=SS(x,d||r.calendar);if(y===Fi)if(fo(x)){x=+x;var v=Math.floor(kt.mod(x+.05,1)*10),A=Math.round(x-v/10);y=SS(new Date(A))+v/10}else return Fi;return y}function l(x,M,d){return hae(x,M,d||r.calendar)}function u(x){return r._categories[Math.round(x)]}function s(x){if(Am(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var M=r._categories.length-1;return r._categoriesMap[x]=M,M}return Fi}function f(x,M){for(var d=new Array(M),w=0;w<M;w++){var y=(x[0]||[])[w],v=(x[1]||[])[w];d[w]=c([y,v])}return d}function c(x){if(r._categoriesMap)return r._categoriesMap[x]}function g(x){var M=c(x);if(M!==void 0)return M;if(fo(x))return+x}function b(x){return fo(x)?+x:c(x)}function h(x,M,d){return fae.round(d+M*x,2)}function _(x,M,d){return(x-d)/M}var T=function(M){return fo(M)?h(M,r._m,r._b):Fi},m=function(x){return _(x,r._m,r._b)};if(r.rangebreaks){var k=a==="y";T=function(x){if(!fo(x))return Fi;var M=r._rangebreaks.length;if(!M)return h(x,r._m,r._b);var d=k;r.range[0]>r.range[1]&&(d=!d);for(var w=d?-1:1,y=w*x,v=0,A=0;A<M;A++){var p=w*r._rangebreaks[A].min,D=w*r._rangebreaks[A].max;if(y<p)break;if(y>D)v=A+1;else{v=y<(p+D)/2?A:A+1;break}}var E=r._B[v]||0;return isFinite(E)?h(x,r._m2,E):0},m=function(x){var M=r._rangebreaks.length;if(!M)return _(x,r._m,r._b);for(var d=0,w=0;w<M&&!(x<r._rangebreaks[w].pmin);w++)x>r._rangebreaks[w].pmax&&(d=w+1);return _(x,r._m2,r._B[d])}}r.c2l=r.type==="log"?o:co,r.l2c=r.type==="log"?Qf:co,r.l2p=T,r.p2l=m,r.c2p=r.type==="log"?function(x,M){return T(o(x,M))}:T,r.p2c=r.type==="log"?function(x){return Qf(m(x))}:m,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Sl,r.c2d=r.c2r=r.l2d=r.l2r=co,r.d2p=r.r2p=function(x){return r.l2p(Sl(x))},r.p2d=r.p2r=m,r.cleanPos=co):r.type==="log"?(r.d2r=r.d2l=function(x,M){return o(Sl(x),M)},r.r2d=r.r2c=function(x){return Qf(Sl(x))},r.d2c=r.r2l=Sl,r.c2d=r.l2r=co,r.c2r=o,r.l2d=Qf,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return Qf(m(x))},r.r2p=function(x){return r.l2p(Sl(x))},r.p2r=m,r.cleanPos=co):r.type==="date"?(r.d2r=r.r2d=kt.identity,r.d2c=r.r2c=r.d2l=r.r2l=i,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,M,d){return r.l2p(i(x,0,d))},r.p2d=r.p2r=function(x,M,d){return l(m(x),M,d)},r.cleanPos=function(x){return kt.cleanDate(x,Fi,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=g,r.r2c=function(x){var M=b(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=co,r.r2l=b,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(m(x))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:co(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=g,r.r2c=function(x){var M=g(x);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=co,r.r2l=g,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(m(x))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:co(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,d,w,y=r._matchGroup;if(y&&r._categories.length===0){for(var v in y)if(v!==n){var A=t[T1.id2name(v)];M=M.concat(A._traceIndices)}}var p=[[0,{}],[0,{}]],D=[];for(d=0;d<M.length;d++){var E=x[M[d]];if(a in E){var R=E[a],I=E._length||kt.minRowLength(R);if(CS(R[0])&&CS(R[1]))for(w=0;w<I;w++){var z=R[0][w],F=R[1][w];Am(z)&&Am(F)&&(D.push([z,F]),z in p[0][1]||(p[0][1][z]=p[0][0]++),F in p[1][1]||(p[1][1][F]=p[1][0]++))}}}for(D.sort(function(L,P){var B=p[0][1],O=B[L[0]]-B[P[0]];if(O)return O;var G=p[1][1];return G[L[1]]-G[P[1]]}),d=0;d<D.length;d++)s(D[d])}),r.fraction2r=function(x){var M=r.r2l(r.range[0]),d=r.r2l(r.range[1]);return r.l2r(M+x*(d-M))},r.r2fraction=function(x){var M=r.r2l(r.range[0]),d=r.r2l(r.range[1]);return(r.r2l(x)-M)/(d-M)},r.limitRange=function(x){var M=r.minallowed,d=r.maxallowed;if(!(M===void 0&&d===void 0)){x||(x="range");var w=kt.nestedProperty(r,x).get(),y=kt.simpleMap(w,r.r2l),v=y[1]<y[0];v&&y.reverse();var A=kt.simpleMap([M,d],r.r2l);if(M!==void 0&&y[0]<A[0]&&(w[v?1:0]=M,y[0]=A[0]),d!==void 0&&y[1]>A[1]&&(w[v?0:1]=d,y[1]=A[1]),y[0]>=y[1])if(M!==void 0){var p=A[0]+1;d!==void 0&&(p=Math.min(p,A[1])),w[v?0:1]=r.l2r(p)}else d!==void 0&&(w[v?1:0]=r.l2r(A[1]-1))}},r.cleanRange=function(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var d=kt.nestedProperty(r,x).get(),w,y;if(r.type==="date"?y=kt.dfltRange(r.calendar):a==="y"?y=S1.DFLTRANGEY:r._name==="realaxis"?y=[0,1]:y=M.dfltRange||S1.DFLTRANGEX,y=y.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(y[0]=0),!d||d.length!==2){kt.nestedProperty(r,x).set(y);return}var v=d[0]===null,A=d[1]===null;for(r.type==="date"&&!r.autorange&&(d[0]=kt.cleanDate(d[0],Fi,r.calendar),d[1]=kt.cleanDate(d[1],Fi,r.calendar)),w=0;w<2;w++)if(r.type==="date"){if(!kt.isDateTime(d[w],r.calendar)){r[x]=y;break}if(r.r2l(d[0])===r.r2l(d[1])){var p=kt.constrain(r.r2l(d[0]),kt.MIN_MS+1e3,kt.MAX_MS-1e3);d[0]=r.l2r(p-1e3),d[1]=r.l2r(p+1e3);break}}else{if(!fo(d[w]))if(!(v||A)&&fo(d[1-w]))d[w]=d[1-w]*(w?10:.1);else{r[x]=y;break}if(d[w]<-_1?d[w]=-_1:d[w]>_1&&(d[w]=_1),d[0]===d[1]){var D=Math.max(1,Math.abs(d[0]*1e-6));d[0]-=D,d[1]+=D}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var d=T1.getFromId({_fullLayout:t},r.overlaying);r.domain=d.domain,r.domainpad=d.domainpad}var w=x&&r._r?"_r":"range",y=r.calendar;r.cleanRange(w);var v=r.r2l(r[w][0],y),A=r.r2l(r[w][1],y),p=a==="y";let D=(p?M.h:M.w)*(r.domain[1]-r.domain[0]),E=r.domainpad,R=0,I=0;if(E){R=(p?E.top:E.left)||0,I=(p?E.bottom:E.right)||0;let B=yae(R+I,D);R*=B,I*=B}if(r._length=D-R-I,r._padStart=R,r._padEnd=I,p?(r._offset=M.t+(1-r.domain[1])*M.h+R,r._m=r._length/(v-A),r._b=-r._m*A):(r._offset=M.l+r.domain[0]*M.w+R,r._m=r._length/(A-v),r._b=-r._m*v),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var z,F;if(r._rangebreaks=r.locateBreaks(Math.min(v,A),Math.max(v,A)),r._rangebreaks.length){for(z=0;z<r._rangebreaks.length;z++)F=r._rangebreaks[z],r._lBreaks+=Math.abs(F.max-F.min);var L=p;v>A&&(L=!L),L&&r._rangebreaks.reverse();var P=L?-1:1;for(r._m2=P*r._length/(Math.abs(A-v)-r._lBreaks),r._B.push(-r._m2*(p?A:v)),z=0;z<r._rangebreaks.length;z++)F=r._rangebreaks[z],r._B.push(r._B[r._B.length-1]-P*r._m2*(F.max-F.min));for(z=0;z<r._rangebreaks.length;z++)F=r._rangebreaks[z],F.pmin=T(F.min),F.pmax=T(F.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(x){var M=r.rangebreaks||[],d,w,y,v,A;M._cachedPatterns||(M._cachedPatterns=M.map(function(B){return B.enabled&&B.bounds?kt.simpleMap(B.bounds,B.pattern?Sl:r.d2c):null})),M._cachedValues||(M._cachedValues=M.map(function(B){return B.enabled&&B.values?kt.simpleMap(B.values,r.d2c).sort(kt.sorterAsc):null}));for(var p=0;p<M.length;p++){var D=M[p];if(D.enabled){if(D.bounds){var E=D.pattern;switch(d=M._cachedPatterns[p],w=d[0],y=d[1],E){case k1:A=new Date(x),v=A.getUTCDay(),w>y&&(y+=7,v<w&&(v+=7));break;case A1:A=new Date(x);var R=A.getUTCHours(),I=A.getUTCMinutes(),z=A.getUTCSeconds(),F=A.getUTCMilliseconds();v=R+(I/60+z/3600+F/36e5),w>y&&(y+=24,v<w&&(v+=24));break;case"":v=x;break}if(v>=w&&v<y)return Fi}else for(var L=M._cachedValues[p],P=0;P<L.length;P++)if(w=L[P],y=w+D.dvalue,x>=w&&x<y)return Fi}}return x},r.locateBreaks=function(x,M){var d,w,y,v,A=[];if(!r.rangebreaks)return A;var p=r.rangebreaks.slice().sort(function(G,J){return G.pattern===k1&&J.pattern===A1?-1:J.pattern===k1&&G.pattern===A1?1:0}),D=function(G,J){if(G=kt.constrain(G,x,M),J=kt.constrain(J,x,M),G!==J){for(var j=!0,V=0;V<A.length;V++){var q=A[V];G<q.max&&J>=q.min&&(G<q.min&&(q.min=G),J>q.max&&(q.max=J),j=!1)}j&&A.push({min:G,max:J})}};for(d=0;d<p.length;d++){var E=p[d];if(E.enabled)if(E.bounds){var R=x,I=M;E.pattern&&(R=Math.floor(R)),w=kt.simpleMap(E.bounds,E.pattern?Sl:r.r2l),y=w[0],v=w[1];var z=new Date(R),F,L;switch(E.pattern){case k1:L=pae,F=((v<y?7:0)+(v-y))*w1,R+=y*w1-(z.getUTCDay()*w1+z.getUTCHours()*M1+z.getUTCMinutes()*ES+z.getUTCSeconds()*LS+z.getUTCMilliseconds());break;case A1:L=w1,F=((v<y?24:0)+(v-y))*M1,R+=y*M1-(z.getUTCHours()*M1+z.getUTCMinutes()*ES+z.getUTCSeconds()*LS+z.getUTCMilliseconds());break;default:R=Math.min(w[0],w[1]),I=Math.max(w[0],w[1]),L=I-R,F=L}for(var P=R;P<I;P+=L)D(P,P+F)}else for(var B=kt.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(G,J){return G.min-J.min}),A},r.makeCalcdata=function(x,M,d){var w,y,v,A,p=r.type,D=p==="date"&&x[M+"calendar"];if(M in x){if(w=x[M],A=x._length||kt.minRowLength(w),kt.isTypedArray(w)&&(p==="linear"||p==="log")){if(A===w.length)return w;if(w.subarray)return w.subarray(0,A)}if(p==="multicategory")return f(w,A);for(y=new Array(A),v=0;v<A;v++)y[v]=r.d2c(w[v],0,D,d)}else{var E=M+"0"in x?r.d2c(x[M+"0"],0,D):0,R=x["d"+M]?Number(x["d"+M]):1;for(w=x[{x:"y",y:"x"}[M]],A=x._length||w.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(x,M){return Array.isArray(x)&&x.length===2&&(M&&x[0]===null||fo(r.r2l(x[0])))&&(M&&x[1]===null||fo(r.r2l(x[1])))},r.getAutorangeDflt=function(x,M){var d=!r.isValidRange(x,"nullOk");return d&&M&&M.reverseDflt?d="reversed":x&&(x[0]===null&&x[1]===null?d=!0:x[0]===null&&x[1]!==null?d="min":x[0]!==null&&x[1]===null&&(d="max")),d},r.isReversed=function(){var x=r.autorange;return x==="reversed"||x==="min reversed"||x==="max reversed"},r.isPtWithinRange=function(x,M){var d=r.c2l(x[a],null,M),w=r.r2l(r.range[0]),y=r.r2l(r.range[1]);return w<y?w<=d&&d<=y:y<=d&&d<=w},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var x=r._matchGroup;if(x){var M=null,d=null;for(var w in x){var y=t[T1.id2name(w)];if(y._categories){M=y._categories,d=y._categoriesMap;break}}M&&d?(r._categories=M,r._categoriesMap=d):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 x=[];if(r._emptyCategories(),r._initialCategories)for(var M=0;M<r._initialCategories.length;M++)s(r._initialCategories[M]);x=x.concat(r._traceIndices);var d=r._matchGroup;for(var w in d)if(n!==w){var y=t[T1.id2name(w)];y._categories=r._categories,y._categoriesMap=r._categoriesMap,x=x.concat(y._traceIndices)}return x};var S=t._d3locale;r.type==="date"&&(r._dateFormat=S?S.timeFormat:cae,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=S?S.numberFormat:vae,delete r._minDtick,delete r._forceTick0}});var Sm=xe((k6e,IS)=>{"use strict";var RS=ut(),km=tr(),mae=(wn(),or(Rn)).BADNUM,E1=km.isArrayOrTypedArray,bae=km.isDateTime,xae=km.cleanNumber,FS=Math.round;IS.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(E1(a)&&!a.length)return"-";if(!o&&Aae(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;l<a.length;l++)if(E1(a[l]))for(var u=0;u<a[l].length;u++)i.push(a[l][u]);a=i}if(Mae(a,t))return"date";var s=n.autotypenumbers!=="strict";return Tae(a,s)?"category":wae(a,s)?"linear":"-"};function _ae(e,r){return r?RS(e):typeof e=="number"}function wae(e,r){for(var t=e.length,n=0;n<t;n++)if(_ae(e[n],r))return!0;return!1}function Mae(e,r){for(var t=e.length,n=PS(t),a=0,o=0,i={},l=0;l<t;l+=n){var u=FS(l),s=e[u],f=String(s);i[f]||(i[f]=1,bae(s,r)&&a++,RS(s)&&o++)}return a>o*2}function PS(e){return Math.max(1,(e-1)/1e3)}function Tae(e,r){for(var t=e.length,n=PS(t),a=0,o=0,i={},l=0;l<t;l+=n){var u=FS(l),s=e[u],f=String(s);if(!i[f]){i[f]=1;var c=typeof s;c==="boolean"?o++:(r?xae(s)!==mae:c==="number")?a++:c==="string"&&o++}}return o>a*2}function Aae(e){return E1(e[0])&&E1(e[1])}});var nu=xe((S6e,VS)=>{"use strict";var kae=lt(),BS=ut(),El=tr(),L1=(wn(),or(Rn)).FP_SAFE,Sae=Cr(),Cae=At(),OS=mn(),Eae=OS.getFromId,Lae=OS.isLinked;VS.exports={applyAutorangeOptions:HS,getAutoRange:Cm,makePadFn:Em,doAutoRange:Rae,findExtremes:Fae,concatExtremes:Rm};function Cm(e,r){var t,n,a=[],o=e._fullLayout,i=Em(o,r,0),l=Em(o,r,1),u=Rm(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return El.simpleMap(r.range,r.r2l);var c=s[0].val,g=f[0].val;for(t=1;t<s.length&&c===g;t++)c=Math.min(c,s[t].val);for(t=1;t<f.length&&c===g;t++)g=Math.max(g,f[t].val);var b=r.autorange,h=b==="reversed"||b==="min reversed"||b==="max reversed";if(!h&&r.range){var _=El.simpleMap(r.range,r.r2l);h=_[1]<_[0]}r.autorange==="reversed"&&(r.autorange=!0);var T=r.rangemode,m=T==="tozero",k=T==="nonnegative",S=r._length,x=S/10,M=0,d,w,y,v,A,p;for(t=0;t<s.length;t++)for(d=s[t],n=0;n<f.length;n++)w=f[n],p=w.val-d.val-zS(r,d.val,w.val),p>0&&(A=S-i(d)-l(w),A>x?p/A>M&&(y=d,v=w,M=p/A):p/S>M&&(y={val:d.val,nopad:1},v={val:w.val,nopad:1},M=p/S));function D(F,L){return Math.max(F,l(L))}if(c===g){var E=c-1,R=c+1;if(m)if(c===0)a=[0,1];else{var I=(c>0?f:s).reduce(D,0),z=c/(1-Math.min(.5,I/S));a=c>0?[0,z]:[z,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-M*i(y)<0&&(y={val:0,nopad:1}),v.val<=0&&(v={val:1,nopad:1})),M=(v.val-y.val-zS(r,d.val,w.val))/(S-i(y)-l(v)),a=[y.val-M*i(y),v.val+M*l(v)];return a=HS(a,r),r.limitRange&&r.limitRange(),h&&a.reverse(),El.simpleMap(a,r.l2r||Number)}function zS(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 Em(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=El.simpleMap(r.range,r.r2l);o=i[1]<i[0]}o&&(t=!t)}var l=0;return Lae(e,r._id)||(l=Dae(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 NS=3;function Dae(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=El.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",g=l._selections[c];g.each(function(k){var S=kae.select(this),x=S.select(".text-math-group");x.empty()&&(k.bb=Cae.bBox(S.node()))})}for(var b=0;b<l._vals.length;b++){var h=l._vals[b],_=h.bb;if(_){var T=2*NS+_.width,m=2*NS+_.height;n=Math.max(n,a?Math.max(T*s,m*f):Math.max(m*s,T*f))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(n+=l.ticklen||0)}}}return n}function Rm(e,r,t){var n=r._id,a=e._fullData,o=e._fullLayout,i=[],l=[],u,s,f;function c(T,m){for(u=0;u<m.length;u++){var k=T[m[u]],S=(k._extremes||{})[n];if(k.visible===!0&&S){for(s=0;s<S.min.length;s++)f=S.min[s],Lm(i,f.val,f.pad,{extrapad:f.extrapad});for(s=0;s<S.max.length;s++)f=S.max[s],Dm(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 g in r._matchGroup)if(g!==r._id){var b=Eae(e,g),h=Rm(e,b,!0),_=r._length/b._length;for(s=0;s<h.min.length;s++)f=h.min[s],Lm(i,f.val,f.pad*_,{extrapad:f.extrapad});for(s=0;s<h.max.length;s++)f=h.max[s],Dm(l,f.val,f.pad*_,{extrapad:f.extrapad})}}return{min:i,max:l}}function Rae(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():Cm(e,r),r._r=r.range.slice(),r._rl=El.simpleMap(r._r,r.r2l);var n=r._input,a={};a[r._attr+".range"]=r.range,a[r._attr+".autorange"]=r.autorange,Sae.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=Cm(e,r)),o._input.rangeslider[r._name]=El.extendFlat({},i)}}function Fae(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,g,b,h,_,T,m,k,S;function x(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 M=x((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),d=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),w=x(t.vpadplus||t.vpad),y=x(t.vpadminus||t.vpad);if(!s){if(k=1/0,S=-1/0,u)for(c=0;c<o;c++)g=r[c],g<k&&g>0&&(k=g),g>S&&g<L1&&(S=g);else for(c=0;c<o;c++)g=r[c],g<k&&g>-L1&&(k=g),g>S&&g<L1&&(S=g);r=[k,S],o=2}var v={tozero:l,extrapad:i};function A(D){b=r[D],BS(b)&&(T=M(D),m=d(D),f?(h=e.c2l(b)-y(D),_=e.c2l(b)+w(D)):(k=b-y(D),S=b+w(D),u&&k<S/10&&(k=S/10),h=e.c2l(k),_=e.c2l(S)),l&&(h=Math.min(0,h),_=Math.max(0,_)),qS(h)&&Lm(n,h,m,v),qS(_)&&Dm(a,_,T,v))}var p=Math.min(6,o);for(c=0;c<p;c++)A(c);for(c=o-1;c>=p;c--)A(c);return{min:n,max:a,opts:t}}function Lm(e,r,t,n){US(e,r,t,n,Pae)}function Dm(e,r,t,n){US(e,r,t,n,Iae)}function US(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 qS(e){return BS(e)&&Math.abs(e)<L1}function Pae(e,r){return e<=r}function Iae(e,r){return e>=r}function zae(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&D1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&D1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Nae(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&D1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&D1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function D1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function HS(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);El.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=zae(t,r),n=Nae(n,r),[t,n]}});var Vt=xe((E6e,cC)=>{"use strict";var ii=lt(),un=ut(),au=Sn(),ec=Cr(),Er=tr(),iu=Er.strTranslate,Ps=Qn(),qae=Kf(),rc=Zr(),Ba=At(),Bae=ai(),GS=$y(),C6e=(kn(),or(An)),Vn=(wn(),or(Rn)),Oae=Vn.ONEMAXYEAR,P1=Vn.ONEAVGYEAR,I1=Vn.ONEMINYEAR,Uae=Vn.ONEMAXQUARTER,zm=Vn.ONEAVGQUARTER,z1=Vn.ONEMINQUARTER,Hae=Vn.ONEMAXMONTH,ou=Vn.ONEAVGMONTH,N1=Vn.ONEMINMONTH,Oa=Vn.ONEWEEK,ca=Vn.ONEDAY,Ll=ca/2,ho=Vn.ONEHOUR,tc=Vn.ONEMIN,q1=Vn.ONESEC,Vae=Vn.ONEMILLI,Gae=Vn.ONEMICROSEC,Is=Vn.MINUS_SIGN,O1=Vn.BADNUM,Nm={K:"zeroline"},qm={K:"gridline",L:"path"},Bm={K:"minor-gridline",L:"path"},rC={K:"tick",L:"path"},YS={K:"tick",L:"text"},XS={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},U1=(Kn(),or($n)),jf=U1.MID_SHIFT,zs=U1.CAP_SHIFT,nc=U1.LINE_SPACING,Yae=U1.OPPOSITE_SIDE,B1=3,ar=cC.exports={};ar.setConvert=C1();var Xae=Sm(),po=mn(),Wae=po.idSort,Zae=po.isLinked;ar.id2name=po.id2name;ar.name2id=po.name2id;ar.cleanId=po.cleanId;ar.list=po.list;ar.listIds=po.listIds;ar.getFromId=po.getFromId;ar.getFromTrace=po.getFromTrace;var tC=nu();ar.getAutoRange=tC.getAutoRange;ar.findExtremes=tC.findExtremes;var Jae=1e-4;function Vm(e){var r=(e[1]-e[0])*Jae;return[e[0]-r,e[1]+r]}function $ae(e,r,t){if(![t,e,r].every(un)||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}ar.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},Er.coerce(e,r,s,u)};ar.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(g=>g+" domain")),u=u.concat(o||[]),f.length>i?(Er.warn("Array attribute "+s+" has more entries than expected, truncating to "+i),f=f.slice(0,i)):f.length<i&&(Er.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]=po.cleanId(f[c],l,!0)||f[c],u.includes(f[c])||(f[c]=a);return r[s]=f,f};ar.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};ar.coercePosition=function(e,r,t,n,a,o){var i,l,u=ar.getRefType(n);if(u!=="range")i=Er.ensureNumber,l=t(a,o);else{var s=ar.getFromId(r,n);o=s.fraction2r(o),l=t(a,o),i=s.cleanPos}e[a]=i(l)};ar.cleanPosition=function(e,r,t){var n=t==="paper"||t==="pixel"?Er.ensureNumber:ar.getFromId(r,t).cleanPos;return n(e)};ar.redrawComponents=function(e,r){r=r||ar.listIds(e);var t=e._fullLayout;function n(a,o,i,l){for(var u=ec.getComponentMethod(a,o),s={},f=0;f<r.length;f++)for(var c=t[ar.id2name(r[f])],g=c[i],b=0;b<g.length;b++){var h=g[b];if(!s[h]&&(u(e,h),s[h]=1,l))return}}n("annotations","drawOne","_annIndices"),n("shapes","drawOne","_shapeIndices"),n("images","draw","_imgIndices",!0),n("selections","drawOne","_selectionIndices")};var Kae=ar.getDataConversions=function(e,r,t,n){var a,o=t==="x"||t==="y"||t==="z"?t:n;if(Er.isArrayOrTypedArray(o)){if(a={type:Xae(n,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},ar.setConvert(a),a.type==="category")for(var i=0;i<n.length;i++)a.d2c(n[i])}else a=ar.getFromTrace(e,r,o);return a?{d2c:a.d2c,c2d:a.c2d}:o==="ids"?{d2c:ZS,c2d:ZS}:{d2c:WS,c2d:WS}};function WS(e){return+e}function ZS(e){return String(e)}ar.getDataToCoordFunc=function(e,r,t,n){return Kae(e,r,t,n).d2c};ar.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};ar.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))};ar.saveRangeInitial=function(e,r){for(var t=ar.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};ar.saveShowSpikeInitial=function(e,r){for(var t=ar.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};ar.autoBin=function(e,r,t,n,a,o){var i=Er.aggNums(Math.min,null,e),l=Er.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:Er.simpleMap([i,l],r.c2r,0,a),calendar:a},ar.setConvert(u),o=o&&GS.dtick(o,u.type),o)u.dtick=o,u.tick0=GS.tick0(void 0,u.type,a);else{var s;if(t)s=(l-i)/t;else{var f=Er.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),g=c*Er.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);s=Math.max(g,2*Er.stdev(e)/Math.pow(e.length,n?.25:.4)),un(s)||(s=1)}ar.autoTicks(u,s)}var b=u.dtick,h=ar.tickIncrement(ar.tickFirst(u),b,"reverse",a),_,T;if(typeof b=="number")h=Qae(h,e,u,i,l),T=1+Math.floor((l-h)/b),_=h+T*b;else for(u.dtick.charAt(0)==="M"&&(h=jae(h,e,b,i,a)),_=h,T=0;_<=l;)_=ar.tickIncrement(_,b,!1,a),T++;return{start:r.c2r(h,0,a),end:r.c2r(_,0,a),size:b,_dataSpan:l-i}};function Qae(e,r,t,n,a){var o=0,i=0,l=0,u=0;function s(b){return(1+(b-e)*100/t.dtick)%100<2}for(var f=0;f<r.length;f++)r[f]%1===0?l++:un(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 g=t.dtick/2;e+=e+g<n?g:-g}return e}function jae(e,r,t,n,a){var o=Er.findExactDates(r,a),i=.8;if(o.exactDays>i){var l=Number(t.slice(1));o.exactYears>i&&l%12===0?e=ar.tickIncrement(e,"M6","reverse")+ca*1.5:o.exactMonths>i?e=ar.tickIncrement(e,"M1","reverse")+ca*15.5:e-=Ll;var u=ar.tickIncrement(e,t);if(u<=n)return u}return e}ar.prepMinorTicks=function(e,r,t){var c,g;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var n=r.dtick&&un(r._tmin),a;if(n){var o=ar.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=Er.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=Er.simpleMap(a,r.l2r),e._isMinor=!0,ar.prepTicks(e,t),n){var l=un(r.dtick),u=un(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?Fm(s,f)?s===2*Oa&&f===2*ca&&(e.dtick=Oa):s===2*Oa&&f===3*ca?e.dtick=Oa:s===Oa&&!(r._input.minor||{}).nticks?e.dtick=ca:JS(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":Fm(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"?Fm(s,f)||(e.dtick=JS(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}((g=r.minor)==null?void 0:g._tick0Init)===void 0&&(e.tick0=r.tick0),r._useTicklabelIndex&&(Gm(e),r.minor._tickround=e._tickround)};function Fm(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function JS(e,r){return Math.abs(e/r-1)<.001}ar.prepTicks=function(e,r){var t=Er.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?Er.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=Er.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,ar.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"&&eie(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),Gm(e)};function Pm(e){return+e.substring(1)}function eie(e){var r;function t(){return!(un(e.dtick)||e.dtick.charAt(0)!=="M")}var n=t(),a=ar.getTickFormat(e);if(a){var o=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(r=ho,o&&!n&&e.dtick<ho&&(e.dtick=ho)):/%p/.test(a)?(r=Ll,o&&!n&&e.dtick<Ll&&(e.dtick=Ll)):/%[Aadejuwx]/.test(a)?(r=ca,o&&!n&&e.dtick<ca&&(e.dtick=ca)):/%[UVW]/.test(a)?(r=Oa,o&&!n&&e.dtick<Oa&&(e.dtick=Oa)):/%[Bbm]/.test(a)?(r=ou,o&&(n?Pm(e.dtick)<1:e.dtick<N1)&&(e.dtick="M1")):/%[q]/.test(a)?(r=zm,o&&(n?Pm(e.dtick)<3:e.dtick<z1)&&(e.dtick="M3")):/%[Yy]/.test(a)&&(r=P1,o&&(n?Pm(e.dtick)<12:e.dtick<I1)&&(e.dtick="M12")))}n=t(),n&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function rie(e,r,t){for(var n=0;n<e.length;n++){var a=e[n].value,o,i;if(e[n].periodEndTick!=null)o=e[n].value,i=e[n].periodEndTick.value;else{var l=n,u=n+1;n<e.length-1?(l=n,u=n+1):n>0?(l=n-1,u=n):(l=n,u=n),o=e[l].value,i=e[u].value}var s=Math.abs(i-o),f=t||s,c=0;e[n].periodEndTick!=null?c=s:f>=I1?s>=I1&&s<=Oae?c=s:c=P1:t===zm&&f>=z1?s>=z1&&s<=Uae?c=s:c=zm:f>=N1?s>=N1&&s<=Hae?c=s:c=ou:t===Oa&&f>=Oa?c=Oa:f>=ca?c=ca:t===Ll&&f>=Ll?c=Ll:t===ho&&f>=ho&&(c=ho);var g;c>=s&&(c=s,g=!0);var b=a+c;if(r.rangebreaks&&c>0){for(var h=84,_=0,T=0;T<h;T++){var m=(T+.5)/h;r.maskBreaks(a*(1-m)+m*b)!==O1&&_++}c*=_/h,c||(e[n].drop=!0),g&&s>Oa&&(c=s)}(c>0||n===0)&&(e[n].periodX=a+c/2)}}ar.calcTicks=function(r,t){var n=r.type,a=r.calendar,o=r.ticklabelstep,i=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||Er.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=u!=null&&u!==0;for(var s=Er.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]<s[0],c=Math.min(s[0],s[1]),g=Math.max(s[0],s[1]),b=Math.max(1e3,r._length||0),h=[],_=[],T=[],m=[],k=[],S=r.minor&&(r.minor.ticks||r.minor.showgrid),x=S||r._useTicklabelIndex,M=1;M>=(x?0:1);M--){var d=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var w=M?r:Er.extendFlat({},r,x?r.minor:{minor:{}});if(d?ar.prepMinorTicks(w,r,t):ar.prepTicks(w,t),w.tickmode==="array"){M?(T=[],h=$S(r,!d)):(m=[],_=$S(r,!d));continue}if(w.tickmode==="sync"){T=[],h=tie(r);continue}var y=Vm(s),v=y[0],A=y[1],p=un(w.dtick),D=n==="log"&&!(p||w.dtick.charAt(0)==="L"),E=ar.tickFirst(w,t);if(M){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,I=E,z;if(M){var F;p?F=r.dtick:n==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(F=ou*r.dtick.substring(1)):F=r._roughDTick,z=Math.round((r.r2l(I)-r.r2l(r.tick0))/F)-1}var L=w.dtick,P=n==="linear"?w.r2l(w.tick0):void 0;for(w.rangebreaks&&w._tick0Init!==w.tick0&&(I=Im(I,r),f||(I=ar.tickIncrement(I,L,!f,a))),(M||r._useTicklabelIndex)&&i&&(I=ar.tickIncrement(I,L,!f,a),M&&z--);f?I>=A:I<=A;I=ar.tickIncrement(I,L,f,a)){if(M&&z++,w.rangebreaks&&!f){if(I<v)continue;if(w.maskBreaks(I)===O1&&Im(I,w)>=g)break}if(T.length>b||I===R)break;R=I;var B={value:$ae(I,P,L)};M?(I===E&&(B.first=!0),D&&I!==(I|0)&&(B.simpleLabel=!0),o>1&&z%o&&(B.skipLabel=!0),T.push(B)):(B.minor=!0,m.push(B))}}function O(fe,we){let Te=we.find(ge=>ge.value===fe.value);if(Te!=null)return Te;let ke=1e7;for(let ge=0;ge<we.length;ge++)if(ke+we[ge].value===ke+fe.value)return we[ge];return null}if(!m||m.length<3)r._useTicklabelIndex=!1;else{let fe=(m[2].value-m[1].value)*(l?-1:1);Sie(fe,r.tickformat)||(r._useTicklabelIndex=!1,m=m.slice(1))}if(!r._useTicklabelIndex)k=T;else{let fe=m.filter(Te=>O(Te,T)==null),we=T.concat(fe).sort((Te,ke)=>Te.value-ke.value);i&&T.length&&(T[0].skipLabel=!0),T.forEach(function(Te){Te.skipLabel||(u.forEach(ke=>{if(ke<0){let ge=we.filter(se=>se.value<=Te.value),Ee=Math.abs(ke),Le=ge.length-Ee-1;if(Ee<ge.length){let se=ge[Le];k.push(se),i&&(se.periodEndTick=ge[Le+1])}}else{let ge=we.filter(Ee=>Ee.value>=Te.value);if(ke<ge.length){let Ee=ge[ke];k.push(Ee),i&&ge[ke+1]&&(Ee.periodEndTick=ge[ke+1])}}}),Te.skipLabel=!0)}),k.forEach(Te=>Te.skipLabel=!1)}if(S){var G=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!G){for(var J=[],j=0;j<m.length;j++)O(m[j],T)==null&&J.push(m[j]);m=J}}i&&rie(k,r,r._definedDelta);var V;if(r.rangebreaks){var q=r._id.charAt(0)==="y",Z=1;r.tickmode==="auto"&&(Z=r.tickfont?r.tickfont.size:12);var re=NaN;for(V=T.length-1;V>-1;V--){if(T[V].drop){T.splice(V,1);continue}T[V].value=Im(T[V].value,r);var $=r.c2p(T[V].value);(q?re>$-Z:re<$+Z)?T.splice(f?V+1:V,1):re=$}}Zm(r)&&Math.abs(s[1]-s[0])===360&&T.pop(),r._tmax=(T[T.length-1]||{}).value,T.length&&(T[T.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var ae,Q=function(fe){fe.text="",r._prevDateHead=ae};T=T.concat(m);function te(fe,we){var Te=ar.tickText(fe,we.value,!1,we.simpleLabel,{first:we.first,last:we.last}),ke=we.periodX;return ke!==void 0&&(Te.periodX=ke,(ke>g||ke<c)&&(ke>g&&(Te.periodX=g),ke<c&&(Te.periodX=c),Q(Te))),Te}var ue;for(V=0;V<T.length;V++){var ee=T[V].minor,ie=T[V].value;ee?(r._useTicklabelIndex&&k.indexOf(T[V])!==-1?ue=te(r,T[V]):ue={x:ie},ue.minor=!0,_.push(ue)):(ae=r._prevDateHead,ue=te(r,T[V]),T[V].skipLabel&&Q(ue),h.push(ue))}return i&&r._useTicklabelIndex&&_.length&&(_[0].noTick=!0),h=h.concat(_),r._inCalcTicks=!1,i&&h.length&&(h[0].noTick=!0),h};function nC(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==O1})),r}function tie(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=ar.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=nC(e,t),t}function $S(e,r){var t=Er.simpleMap(e.range,e.r2l),n=Vm(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){Er.isArrayOrTypedArray(f)||(f=[]);var c=-1,g=-1;if(!u)for(var b=0;b<s.length;b++){var h=i(s[b]);h>a&&h<o&&(c===-1&&(c=b),g=b)}for(var _=0;_<s.length;_++){var T=i(s[_]);if(T>a&&T<o){let m=ar.tickText(e,T,!1,f[_]!==void 0,{first:_===c,last:_===g});u&&(m.minor=!0,m.text=""),l.push(m)}}}}return l=nC(e,l),l}var R1=[2,5,10],KS=[1,2,3,6,12],QS=[1,2,5,10,15,30],nie=[1,2,3,7,14],aC=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],iC=[-.301,0,.301,.699,1],aie=[15,30,45,90,180];function vo(e,r,t){return r*Er.roundUp(e/r,t)}ar.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=Er.dateTick0(e.calendar,0);var o=2*r;if(o>P1)r/=P1,n=a(10),e.dtick="M"+12*vo(r,n,R1);else if(o>ou)r/=ou,e.dtick="M"+vo(r,1,KS);else if(o>ca){if(e.dtick=vo(r,ca,e._hasDayOfWeekBreaks?[1,2,7,14]:nie),!t){var i=ar.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=Er.dateTick0(e.calendar,2):e.tick0=Er.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>ho?e.dtick=vo(r,ho,KS):o>tc?e.dtick=vo(r,tc,QS):o>q1?e.dtick=vo(r,q1,QS):(n=a(10),e.dtick=vo(r,n,R1))}else if(e.type==="log"){e.tick0=0;var u=Er.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"+vo(r,n,R1)}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))):Zm(e)?(e.tick0=0,n=1,e.dtick=vo(r,n,aie)):(e.tick0=0,n=a(10),e.dtick=vo(r,n,R1));if(e.dtick===0&&(e.dtick=1),!un(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function Gm(e){var r=e.dtick;if(e._tickexponent=0,!un(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>=ca&&a<=10||r>=ca*15)e._tickround="d";else if(r>=tc&&a<=16||r>=ho)e._tickround="M";else if(r>=q1&&a<=19||r>=tc)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(un(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);un(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&&(lu(e.exponentformat)&&e.exponentformat!=="SI extended"&&!Ym(u)||lu(e.exponentformat)&&e.exponentformat==="SI extended"&&!Xm(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}ar.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(un(r))return Er.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.slice(1));if(o==="M")return Er.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?iC:aC,u=e+a*.01,s=Er.roundUp(Er.mod(u,1),l,t);return Math.floor(u)+Math.log(ii.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};ar.tickFirst=function(e,r){var t=e.r2l||Number,n=Er.simpleMap(e.range,t,void 0,void 0,r),a=n[1]<n[0],o=a?Math.floor:Math.ceil,i=Vm(n)[0],l=e.dtick,u=t(e.tick0);if(un(l)){var s=o((i-u)/l)*l+u;return(e.type==="category"||e.type==="multicategory")&&(s=Er.constrain(s,0,e._categories.length-1)),s}var f=l.charAt(0),c=Number(l.slice(1));if(f==="M"){for(var g=0,b=u,h,_,T;g<10;){if(h=ar.tickIncrement(b,l,a,e.calendar),(h-i)*(b-i)<=0)return a?Math.min(b,h):Math.max(b,h);_=(i-(b+h)/2)/(h-b),T=f+(Math.abs(Math.round(_))||1)*c,b=ar.tickIncrement(b,T,_<0?!a:a,e.calendar),g++}return Er.error("tickFirst did not converge",e),b}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"?iC:aC,k=Er.roundUp(Er.mod(i,1),m,a);return Math.floor(i)+Math.log(ii.round(Math.pow(10,k),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}};ar.tickText=function(e,r,t,n,a){var o=!!(a!=null&&a.first),i=!!(a!=null&&a.last),l=oC(e,r),u=e.tickmode==="array",s=t||u,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,g,b=function(S){var x=e.l2p(S);return x>=0&&x<=e._length?S:null};if(u&&Er.isArrayOrTypedArray(e.ticktext)){var h=Er.simpleMap(e.range,e.r2l),_=(Math.abs(h[1]-h[0])-(e._lBreaks||0))/1e4;for(g=0;g<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[g]))<_);g++);if(g<e.ticktext.length)return l.text=String(e.ticktext[g]),l.xbnd=[b(l.x-.5),b(l.x+e.dtick-.5)],l}function T(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"&&T(e.showexponent)?"hide":"";if(f==="date"?iie(e,l,t,s):f==="log"?oie(e,l,t,s,m):f==="category"?lie(e,l):f==="multicategory"?sie(e,l,t):Zm(e)?fie(e,l,t,s,m):uie(e,l,t,s,m),n||(e.tickprefix&&!T(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!T(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=[b(l.x-.5),b(l.x+e.dtick-.5)]),l};ar.hoverLabelText=function(e,r,t){t&&(e=Er.extendFlat({},e,{hoverformat:t}));var n=Er.isArrayOrTypedArray(r)?r[0]:r,a=Er.isArrayOrTypedArray(r)?r[1]:void 0;if(a!==void 0&&a!==n)return ar.hoverLabelText(e,n,t)+" - "+ar.hoverLabelText(e,a,t);var o=e.type==="log"&&n<=0,i=ar.tickText(e,e.c2l(o?-n:n),"hover").text;return o?n===0?"0":Is+i:i};function oC(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 iie(e,r,t,n){var a=e._useTicklabelIndex?e.minor._tickround:e._tickround,o=t&&e.hoverformat||ar.getTickFormat(e);n=!o&&n,n&&(un(a)?a=4:a={y:"m",m:"d",d:"M",M:"S",S:4}[a]);var i=Er.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=ic(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="<br> ")}r.text=i}function oie(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=ac(Math.pow(10,i),e,a,n);else if(un(o)||u==="D"&&(e.minorloglabels==="complete"||Er.mod(i+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(Er.mod(i+.01,1)<.1)&&(s=!0,r.fontSize*=.75);var f=Math.pow(10,i).toExponential(0),c=f.split("e"),g=+c[1],b=Math.abs(g),h=e.exponentformat;h==="power"||lu(h)&&h!=="SI extended"&&Ym(g)||lu(h)&&h==="SI extended"&&Xm(g)?(r.text=c[0],b>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),g!==0&&g!==1&&(r.text+="<sup>"+(g>0?"":Is)+b+"</sup>"),r.fontSize*=1.25):(h==="e"||h==="E")&&b>2?r.text=c[0]+h+(g>0?"+":Is)+b:(r.text=ac(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,Er.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var _=String(r.text).charAt(0);(_==="0"||_==="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 lie(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function sie(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 uie(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=ac(r.x,e,a,n)}function fie(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=cie(o);if(i[1]>=100)r.text=ac(Er.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=Is+r.text)}}}else r.text=ac(r.x,e,a,n)}function cie(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 lC=["f","p","n","\u03BC","m","","k","M","G","T"],vie=["q","r","y","z","a",...lC,"P","E","Z","Y","R","Q"],lu=e=>["SI","SI extended","B"].includes(e);function Ym(e){return e>14||e<-15}function Xm(e){return e>32||e<-30}function hie(e,r){return lu(r)?!!(r==="SI extended"&&Xm(e)||r!=="SI extended"&&Ym(e)):!1}function ac(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=ar.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:un(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};Gm(f),o=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,Is);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 b=Math.pow(10,-o);e=String(Math.round(e/b)*b)}else e=e.toFixed(Math.min(20,o)).replace(/\.?0+$/,"");e=Er.numSeparate(e,r._separators,s)}if(l&&i!=="hide"){hie(l,i)&&(i="power");var g;l<0?g=Is+-l:i!=="power"?g="+"+l:g=String(l),i==="e"||i==="E"?e+=i+g:i==="power"?e+="\xD710<sup>"+g+"</sup>":i==="B"&&l===9?e+="B":lu(i)&&(e+=i==="SI extended"?vie[l/3+10]:lC[l/3+5])}return a?Is+e:e}ar.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*ou}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)),g=f.indexOf(s.charAt(0));return c===g?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):c-g}else return typeof u=="number"?1:-1}function a(u,s,f){var c=f||function(h){return h},g=s[0],b=s[1];return(!g&&typeof g!="number"||c(g)<=c(u))&&(!b&&typeof b!="number"||c(b)>=c(u))}function o(u,s){var f=s[0]===null,c=s[1]===null,g=n(u,s[0])>=0,b=n(u,s[1])<=0;return(f||g)&&(c||b)}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};ar.getSubplots=function(e,r){var t=e._fullLayout._subplots,n=t.cartesian.concat(t.gl2d||[]),a=r?ar.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};ar.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};ar.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=ar.list(e,"x",!0),o=ar.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){ii.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})})}};ar.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,g=f.yaxis;f.xaxislayer.selectAll("."+c._id+"tick").remove(),f.yaxislayer.selectAll("."+g._id+"tick").remove(),f.xaxislayer.selectAll("."+c._id+"tick2").remove(),f.yaxislayer.selectAll("."+g._id+"tick2").remove(),f.xaxislayer.selectAll("."+c._id+"divider").remove(),f.yaxislayer.selectAll("."+g._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-"+g._id+"title").remove()}});var a=!r||r==="redraw"?ar.listIds(e):r,o=ar.list(e),i=o.filter(function(u){return u.autoshift}).map(function(u){return u.overlaying});a.map(function(u){var s=ar.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 Er.syncOrAsync(a.map(function(u){return function(){if(u){var s=ar.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=ar.drawOne(e,s,t);return s._shiftPusher&&Hm(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=Er.simpleMap(s._r,s.r2l),f}}}))};ar.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=ar.counterLetter(s),g=u._plots[r._mainSubplot],b=r.zerolinelayer==="above traces";if(!g)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var h=r.linewidth/2||0;r.ticks==="inside"&&(h+=r.ticklen),Hm(r,h,n,!0),Hm(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=kie(r,n));var _=g[f+"axislayer"],T=r._mainLinePosition,m=T+=r._shift,k=r._mainMirrorPosition,S=r._vals=ar.calcTicks(r),x=[r.mirror,m,k].join("_");for(o=0;o<S.length;o++)S[o].axInfo=x;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var M={};function d(ge){var Ee=s+(ge||"tick");return M[Ee]||(M[Ee]=yie(r,Ee,m)),M[Ee]}if(r.visible){var w=ar.makeTransTickFn(r),y=ar.makeTransTickLabelFn(r),v,A,p=r.ticks==="inside",D=r.ticks==="outside";if(r.tickson==="boundaries"){var E=die(r,S);A=ar.clipEnds(r,E),v=p?A:E}else A=ar.clipEnds(r,S),v=p&&r.ticklabelmode!=="period"?A:S;var R=r._gridVals=A,I=gie(r,S);if(!u._hasOnlyLargeSploms){var z=r._subplotsWith,F={};for(o=0;o<z.length;o++){i=z[o],l=u._plots[i];var L=l[c+"axis"],P=L._mainAxis._id;if(!F[P]){F[P]=1;var B=f==="x"?"M0,"+L._offset+"v"+L._length:"M"+L._offset+",0h"+L._length;ar.drawGrid(e,r,{vals:R,counterAxis:L,layer:l.gridlayer.select("."+s),minorLayer:l.minorGridlayer.select("."+s),path:B,transFn:w}),ar.drawZeroLine(e,r,{counterAxis:L,layer:b?l.zerolinelayerAbove:l.zerolinelayer,path:B,transFn:w})}}}var O,G=ar.getTickSigns(r),J=ar.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var j=ar.makeTickPath(r,m,G[2]),V=ar.makeTickPath(r,m,J[2],{minor:!0}),q,Z,re,$;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?(q=ar.makeTickPath(r,k,G[3]),Z=ar.makeTickPath(r,k,J[3],{minor:!0}),re=j+q,$=V+Z):(q="",Z="",re=j,$=V),r.showdividers&&D&&r.tickson==="boundaries"){var ae={};for(o=0;o<I.length;o++)ae[I[o].x]=1;O=function(ge){return ae[ge.x]?q:re}}else O=function(ge){return ge.minor?$:re}}if(ar.drawTicks(e,r,{vals:v,layer:_,path:O,transFn:w}),r.mirror==="allticks"){var Q=Object.keys(r._linepositions||{});for(o=0;o<Q.length;o++){i=Q[o],l=u._plots[i];var te=r._linepositions[i]||[],ue=te[0],ee=te[1],ie=te[2],fe=ar.makeTickPath(r,ue,ie?G[0]:J[0],{minor:ie})+ar.makeTickPath(r,ee,ie?G[1]:J[1],{minor:ie});ar.drawTicks(e,r,{vals:v,layer:l[f+"axislayer"],path:fe,transFn:w})}}var we=[];if(we.push(function(){return ar.drawLabels(e,r,{vals:S,layer:_,plotinfo:l,transFn:y,labelFns:ar.makeLabelFns(r,m)})}),r.type==="multicategory"){var Te={x:2,y:10}[f];we.push(function(){var ge={x:"height",y:"width"}[f],Ee=d()[ge]+Te+(r._tickAngles[s+"tick"]?r.tickfont.size*nc:0);return ar.drawLabels(e,r,{vals:pie(r,S),layer:_,cls:s+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:w,labelFns:ar.makeLabelFns(r,m+Ee*G[4])})}),we.push(function(){return r._depth=G[4]*(d("tick2")[r.side]-m),bie(e,r,{vals:I,layer:_,path:ar.makeTickPath(r,m,G[4],{len:r._depth}),transFn:w})})}else r.title.hasOwnProperty("standoff")&&we.push(function(){r._depth=G[4]*(d()[r.side]-m)});var ke=ec.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(ke&&r.side==="bottom")&&we.push(function(){return xie(e,r)}),we.push(function(){var ge=r.side.charAt(0),Ee=Yae[r.side].charAt(0),Le=ar.getPxPosition(e,r),se=D?r.ticklen:0,X,K,ye,oe;(r.automargin||ke||r._shiftPusher)&&(r.type==="multicategory"?X=d("tick2"):(X=d(),f==="x"&&ge==="b"&&(r._depth=Math.max(X.width>0?X.bottom-Le:0,se))));var de=0,pe=0;if(r._shiftPusher&&(de=Math.max(se,X.height>0?ge==="l"?Le-X.left:X.right-Le:0),r.title.text!==u._dfltTitle[f]&&(pe=(r._titleStandoff||0)+(r._titleScoot||0),ge==="l"&&(pe+=eC(r))),r._fullDepth=Math.max(de,pe)),r.automargin){K={x:0,y:0,r:0,l:0,t:0,b:0};var me=[0,1],Se=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ge==="b"?K[ge]=r._depth:(K[ge]=r._depth=Math.max(X.width>0?Le-X.top:0,se),me.reverse()),X.width>0){var ve=X.right-(r._offset+r._length);ve>0&&(K.xr=1,K.r=ve);var he=r._offset-X.left;he>0&&(K.xl=0,K.l=he)}}else if(ge==="l"?(r._depth=Math.max(X.height>0?Le-X.left:0,se),K[ge]=r._depth-Se):(r._depth=Math.max(X.height>0?X.right-Le:0,se),K[ge]=r._depth+Se,me.reverse()),X.height>0){var be=X.bottom-(r._offset+r._length);be>0&&(K.yb=0,K.b=be);var Ae=r._offset-X.top;Ae>0&&(K.yt=1,K.t=Ae)}K[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[me[0]],r.title.text!==u._dfltTitle[f]&&(K[ge]+=eC(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(ye={x:0,y:0,r:0,l:0,t:0,b:0},ye[Ee]=r.linewidth,r.mirror&&r.mirror!==!0&&(ye[Ee]+=se),r.mirror===!0||r.mirror==="ticks"?ye[c]=r._anchorAxis.domain[me[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(ye[c]=[r._counterDomainMin,r._counterDomainMax][me[1]]))}ke&&(oe=ec.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(jS(K,r.automargin),jS(ye,r.automargin)),au.autoMargin(e,Wm(r),K),au.autoMargin(e,uC(r),ye),au.autoMargin(e,fC(r),oe)}),Er.syncOrAsync(we)}};function jS(e,r){if(e){var t=Object.keys(XS).reduce(function(n,a){return r.indexOf(a)!==-1&&XS[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 die(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(Er.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 pie(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(oC(e,Er.interp(n[i],.5),i));return t}function gie(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(Er.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 yie(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=Um(this);if(u.node().style.display!=="none"){var s=Ba.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=ar.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}}ar.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};ar.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return iu(e._offset+e.l2p(r.x),0)}:function(r){return iu(0,e._offset+e.l2p(r.x))}};ar.makeTransTickLabelFn=function(e){var r=mie(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(g){return iu(a+e._offset+e.l2p(Om(g))+t,o+n)}:function(g){return iu(o+n,a+e._offset+e.l2p(Om(g))+t)}};function Om(e){return e.periodX!==void 0?e.periodX:e.x}function mie(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(h){return r.indexOf(h)!==-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,g=B1,b=e.tickfont?e.tickfont.size:12;return(l||a)&&(c+=b*zs,g+=(e.linewidth||0)/2),(o||i)&&(c+=(e.linewidth||0)/2,g+=B1),u&&f==="top"&&(g-=b*(1-zs)),(o||a)&&(c=-c),(f==="bottom"||f==="right")&&(g=-g),[s?c:0,u?g:0]}ar.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};ar.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"),g=n==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&a!=="boundaries",b=0,h=0,_=g?e.ticklen:0;if(c?_*=-1:f&&(_=0),g&&(b+=_,t)){var T=Er.deg2rad(t);b=_*Math.cos(T)+1,h=_*Math.sin(T)}e.showticklabels&&(g||e.showline)&&(b+=.2*e.tickfont.size),b+=(e.linewidth||1)/2*(c?-1:1);var m={labelStandoff:b,labelShift:h},k,S,x,M,d=0,w=e.side,y=e._id.charAt(0),v=e.tickangle,A;if(y==="x")A=!c&&w==="bottom"||c&&w==="top",M=A?1:-1,c&&(M*=-1),k=h*M,S=r+b*M,x=A?1:-.2,Math.abs(v)===90&&(c?x+=jf:v===-90&&w==="bottom"?x=zs:v===90&&w==="top"?x=jf:x=.5,d=jf/2*(v/90)),m.xFn=function(E){return E.dx+k+d*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*x},m.anchorFn=function(E,R){if(f){if(l)return"end";if(u)return"start"}return!un(R)||R===0||R===180?"middle":R*M<0!==c?"end":"start"},m.heightFn=function(E,R,I){return R<-60||R>60?-.5*I:e.side==="top"!==c?-I:0};else if(y==="y"){if(A=!c&&w==="left"||c&&w==="right",M=A?1:-1,c&&(M*=-1),k=b,S=h*M,x=0,!c&&Math.abs(v)===90&&(v===-90&&w==="left"||v===90&&w==="right"?x=zs:x=.5),c){var p=un(v)?+v:0;if(p!==0){var D=Er.deg2rad(p);d=Math.abs(Math.sin(D))*zs*M,x=0}}m.xFn=function(E){return E.dx+r-(k+E.fontSize*x)*M+d*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*jf},m.anchorFn=function(E,R){return un(R)&&Math.abs(R)===90?"middle":A?"end":"start"},m.heightFn=function(E,R,I){return e.side==="right"&&(R*=-1),R<-30?-I:R<30?-.5*I:0}}return m};function H1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}ar.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,H1);o.exit().remove(),o.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(i){return rc.stroke(ii.select(this),i.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(i){return Ba.crispRound(e,i.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),V1(r,[rC]),o.attr("transform",t.transFn)};ar.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&&ar.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=Ba.crispRound(e,r.gridwidth,1);for(var c=a?Ba.crispRound(e,r.minor.gridwidth,1):0,g=t.layer,b=t.minorLayer,h=1;h>=0;h--){var _=h?g:b;if(_){var T=_.selectAll("path."+n).data(h?i:o,H1);T.exit().remove(),T.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),T.attr("transform",t.transFn).attr("d",t.path).each(function(m){return rc.stroke(ii.select(this),m.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(m){return Ba.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"&&T.attr("d",t.path)}}V1(r,[qm,Bm])}};ar.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=ar.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 Wae(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(rc.stroke,r.zerolinecolor||rc.defaultLine).style("stroke-width",Ba.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),V1(r,[Nm])};ar.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(P){return P.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[i],c=t.layer.selectAll("g."+i).data(r.showticklabels?l:[],H1),g=[];c.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(P){var B=ii.select(this),O=e._promises.length;B.call(Ps.positionText,u.xFn(P),u.yFn(P)).call(Ba.font,{family:P.font,size:P.fontSize,color:P.fontColor,weight:P.fontWeight,style:P.fontStyle,variant:P.fontVariant,textcase:P.fontTextcase,lineposition:P.fontLineposition,shadow:P.fontShadow}).text(P.text).call(Ps.convertToTspans,e),e._promises[O]?g.push(e._promises.pop().then(function(){b(B,s)})):b(B,s)}),V1(r,[YS]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(P){ii.select(this).select("text").call(Ps.positionText,u.xFn(P),u.yFn(P))});function b(P,B){P.each(function(O){var G=ii.select(this),J=G.select(".text-math-group"),j=u.anchorFn(O,B),V=t.transFn.call(G.node(),O)+(un(B)&&+B!=0?" rotate("+B+","+u.xFn(O)+","+(u.yFn(O)-O.fontSize/2)+")":""),q=Ps.lineCount(G),Z=nc*O.fontSize,re=u.heightFn(O,un(B)?+B:0,(q-1)*Z);if(re&&(V+=iu(0,re)),J.empty()){var $=G.select("text");$.attr({transform:V,"text-anchor":j}),$.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ae=Ba.bBox(J.node()).width,Q=ae*{end:-.5,start:.5}[j];J.attr("transform",V+iu(Q,0))}})}r._adjustTickLabelsOverflow=function(){var P=r.ticklabeloverflow;if(!(!P||P==="allow")){var B=P.indexOf("hide")!==-1,O=r._id.charAt(0)==="x",G=0,J=O?e._fullLayout.width:e._fullLayout.height;if(P.indexOf("domain")!==-1){var j=Er.simpleMap(r.range,r.r2l);G=r.l2p(j[0])+r._offset,J=r.l2p(j[1])+r._offset}var V=Math.min(G,J),q=Math.max(G,J),Z=r.side,re=1/0,$=-1/0;c.each(function(ue){var ee=ii.select(this),ie=ee.select(".text-math-group");if(ie.empty()){var fe=Ba.bBox(ee.node()),we=0;O?(fe.right>q||fe.left<V)&&(we=1):(fe.bottom>q||fe.top+(r.tickangle?0:ue.fontSize/4)<V)&&(we=1);var Te=ee.select("text");we?B&&Te.style("display","none"):Te.node().style.display!=="none"&&(Te.style("display",null),Z==="bottom"||Z==="right"?re=Math.min(re,O?fe.top:fe.left):re=-1/0,Z==="top"||Z==="left"?$=Math.max($,O?fe.bottom:fe.right):$=1/0)}});for(var ae in n._plots){var Q=n._plots[ae];if(!(r._id!==Q.xaxis._id&&r._id!==Q.yaxis._id)){var te=O?Q.yaxis:Q.xaxis;te&&(te["_visibleLabelMin_"+r._id]=re,te["_visibleLabelMax_"+r._id]=$)}}}},r._hideCounterAxisInsideTickLabels=function(P){var B=r._id.charAt(0)==="x",O=[];for(var G in n._plots){var J=n._plots[G];r._id!==J.xaxis._id&&r._id!==J.yaxis._id||O.push(B?J.yaxis:J.xaxis)}O.forEach(function(j,V){j&&ic(j)&&(P||[Nm,Bm,qm,rC,YS]).forEach(function(q){var Z=q.K==="tick"&&q.L==="text"&&r.ticklabelmode==="period",re=n._plots[r._mainSubplot],$;if(q.K===Nm.K){var ae=o?re.zerolinelayerAbove:re.zerolinelayer;$=ae.selectAll("."+r._id+"zl")}else q.K===Bm.K?$=re.minorGridlayer.selectAll("."+r._id):q.K===qm.K?$=re.gridlayer.selectAll("."+r._id):$=re[r._id.charAt(0)+"axislayer"];$.each(function(){var Q=ii.select(this);q.L&&(Q=Q.selectAll(q.L)),Q.each(function(te){var ue=r.l2p(Z?Om(te):te.x)+r._offset,ee=ii.select(this);ue<r["_visibleLabelMax_"+j._id]&&ue>r["_visibleLabelMin_"+j._id]?ee.style("display","none"):q.K==="tick"&&!V&&ee.node().style.display!=="none"&&ee.style("display",null)})})})})},b(c,f+1?f:s);function h(){return g.length&&Promise.all(g)}var _=null;function T(){if(b(c,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){_=r.autotickangles[0];var P=0,B=[],O,G=1;c.each(function(K){P=Math.max(P,K.fontSize);var ye=r.l2p(K.x),oe=Um(this),de=Ba.bBox(oe.node());G=Math.max(G,Ps.lineCount(oe)),B.push({top:0,bottom:10,height:10,left:ye-de.width/2,right:ye+de.width/2+2,width:de.width+2})});var J=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,j=l.length,V=Math.abs((l[j-1].x-l[0].x)*r._m)/(j-1),q=J?V/2:V,Z=J?r.ticklen:P*1.25*G,re=Math.sqrt(Math.pow(q,2)+Math.pow(Z,2)),$=q/re,ae=r.autotickangles.map(function(K){return K*Math.PI/180}),Q=ae.find(function(K){return Math.abs(Math.cos(K))<=$});Q===void 0&&(Q=ae.reduce(function(K,ye){return Math.abs(Math.cos(K))<Math.abs(Math.cos(ye))?K:ye},ae[0]));var te=Q*(180/Math.PI);if(J){var ue=2;for(r.ticks&&(ue+=r.tickwidth/2),O=0;O<B.length;O++){var ee=l[O].xbnd,ie=B[O];if(ee[0]!==null&&ie.left-r.l2p(ee[0])<ue||ee[1]!==null&&r.l2p(ee[1])-ie.right<ue){_=te;break}}}else{var fe=r.ticklabelposition||"",we=r.tickson||"",Te=function(K){return fe.indexOf(K)!==-1},ke=Te("top"),ge=Te("left"),Ee=Te("right"),Le=Te("bottom"),se=we!=="boundaries"&&(Le||ge||ke||Ee),X=se?(r.tickwidth||0)+2*B1:0;for(O=0;O<B.length-1;O++)if(Er.bBoxIntersect(B[O],B[O+1],X)){_=te;break}}_&&b(c,_)}}r._selections&&(r._selections[i]=c);var m=[h];r.automargin&&n._redrawFromAutoMarginCount&&f===90?(_=f,m.push(function(){b(c,f)})):m.push(T),r._tickAngles&&m.push(function(){r._tickAngles[i]=_===null?un(s)?s:0:_});var k=function(){var P=0,B=0;return c.each(function(O,G){var J=Um(this),j=J.select(".text-math-group");if(j.empty()){var V;r._vals[G]&&(V=r._vals[G].bb||Ba.bBox(J.node()),r._vals[G].bb=V),P=Math.max(P,V.width),B=Math.max(B,V.height)}}),{labelsMaxW:P,labelsMaxH:B}},S=r._anchorAxis;if(S&&(S.autorange||S.insiderange)&&ic(r)&&!Zae(n,r._id)&&(n._insideTickLabelsUpdaterange||(n._insideTickLabelsUpdaterange={}),S.autorange&&(n._insideTickLabelsUpdaterange[S._name+".autorange"]=S.autorange,m.push(k)),S.insiderange)){var x=k(),M=r._id.charAt(0)==="y"?x.labelsMaxW:x.labelsMaxH;M+=2*B1,r.ticklabelposition==="inside"&&(M+=r.ticklen||0);var d=r.side==="right"||r.side==="top"?1:-1,w=d===1?1:0,y=d===1?0:1,v=[];v[y]=S.range[y];var A=S.range,p=S.r2p(A[w]),D=S.r2p(A[y]),E=n._insideTickLabelsUpdaterange[S._name+".range"];if(E){var R=S.r2p(E[w]),I=S.r2p(E[y]),z=d*(r._id.charAt(0)==="y"?1:-1);z*p<z*R&&(p=R,v[w]=A[w]=E[w]),z*D>z*I&&(D=I,v[y]=A[y]=E[y])}var F=Math.abs(D-p);F-M>0?(F-=M,M*=1+M/F):M=0,r._id.charAt(0)!=="y"&&(M=-M),v[w]=S.p2r(S.r2p(A[w])+d*M),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=Er.syncOrAsync(m);return L&&L.then&&e._promises.push(L),L};function bie(e,r,t){var n=r._id+"divider",a=t.vals,o=t.layer.selectAll("path."+n).data(a,H1);o.exit().remove(),o.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(rc.stroke,r.dividercolor).style("stroke-width",Ba.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}ar.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 eC(e){var r=e.title.font.size,t=(e.title.text.match(Ps.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(zs+t*nc):t?r*(t+1)*nc:r}function xie(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),o=r.title.font.size,i,l=(r.title.text.match(Ps.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?i=r._depth+r.title.standoff+o*zs:(r.side==="top"||r.side==="left")&&(i=r._depth+r.title.standoff+o*(jf+l*nc));else{var u=ic(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=ar.getPxPosition(e,r),c,g,b;a==="x"?(g=r._offset+r._length/2,b=r.side==="top"?f-i:f+i):(b=r._offset+r._length/2,g=r.side==="right"?f+i:f-i,c={rotate:"-90",offset:0});var h;if(r.type!=="multicategory"){var _=r._selections[r._id+"tick"];if(h={selection:_,side:r.side},_&&_.node()&&_.node().parentNode){var T=Ba.getTranslate(_.node().parentNode);h.offsetLeft=T.x,h.offsetTop=T.y}r.title.hasOwnProperty("standoff")&&(h.pad=0)}return r._titleStandoff=i,qae.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:h,transform:c,attributes:{x:g,y:b,"text-anchor":"middle"}})}ar.shouldShowZeroLine=function(e,r,t){var n=Er.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===O1)&&(sC(r,0)||!_ie(e,r,t,n)||wie(e,r))};ar.clipEnds=function(e,r){return r.filter(function(t){return sC(e,t.x)})};function sC(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function _ie(e,r,t,n){var a=t._mainAxis;if(!a)return;var o=e._fullLayout,i=r._id.charAt(0),l=ar.counterLetter(r._id),u=r._offset+(Math.abs(n[0])<Math.abs(n[1])==(i==="x")?0:r._length);function s(h){if(!h.showline||!h.linewidth)return!1;var _=Math.max((h.linewidth+r.zerolinewidth)/2,1);function T(S){return typeof S=="number"&&Math.abs(S-u)<_}if(T(h._mainLinePosition)||T(h._mainMirrorPosition))return!0;var m=h._linepositions||{};for(var k in m)if(T(m[k][0])||T(m[k][1]))return!0}var f=o._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return s(t,u);for(var c=ar.list(e,l),g=0;g<c.length;g++){var b=c[g];if(b._mainAxis===a&&s(b,u))return!0}}function wie(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&&(ec.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 Um(e){var r=ii.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}ar.allowAutoMargin=function(e){for(var r=ar.list(e,"",!0),t=0;t<r.length;t++){var n=r[t];n.automargin&&(au.allowAutoMargin(e,Wm(n)),n.mirror&&au.allowAutoMargin(e,uC(n))),ec.getComponentMethod("rangeslider","isVisible")(n)&&au.allowAutoMargin(e,fC(n))}};function Wm(e){return e._id+".automargin"}function uC(e){return Wm(e)+".mirror"}function fC(e){return e._id+".rangeslider"}ar.swap=function(e,r){for(var t=Mie(e,r),n=0;n<t.length;n++)Tie(e,t[n].x,t[n].y)};function Mie(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]],F1(u.x,s.x),F1(u.y,s.y);F1(u.x,[i]),F1(u.y,[l])}}return t}function F1(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function Tie(e,r,t){var n=[],a=[],o=e.layout,i,l;for(i=0;i<r.length;i++)n.push(ar.getFromId(e,r[i]));for(i=0;i<t.length;i++)a.push(ar.getFromId(e,t[i]));var u=Object.keys(Bae),s=["anchor","domain","domainpad","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(i=0;i<u.length;i++){var c=u[i],g=n[0][c],b=a[0][c],h=!0,_=!1,T=!1;if(!(c.charAt(0)==="_"||typeof g=="function"||s.indexOf(c)!==-1)){for(l=1;l<n.length&&h;l++){var m=n[l][c];c==="type"&&f.indexOf(g)!==-1&&f.indexOf(m)!==-1&&g!==m?_=!0:m!==g&&(h=!1)}for(l=1;l<a.length&&h;l++){var k=a[l][c];c==="type"&&f.indexOf(b)!==-1&&f.indexOf(k)!==-1&&b!==k?T=!0:a[l][c]!==b&&(h=!1)}h&&(_&&(o[n[0]._name].type="linear"),T&&(o[a[0]._name].type="linear"),Aie(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&&Er.swapAttrs(o.annotations[i],["?"])}}function Aie(e,r,t,n,a){var o=Er.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 Zm(e){return e._id==="angularaxis"}function Im(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 ic(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function V1(e,r){ic(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function Hm(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 kie(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function Sie(e,r){return/%f/.test(r)?e>=Gae:/%L/.test(r)?e>=Vae:/%[SX]/.test(r)?e>=q1:/%M/.test(r)?e>=tc:/%[HI]/.test(r)?e>=ho:/%p/.test(r)?e>=Ll:/%[Aadejuwx]/.test(r)?e>=ca:/%[UVW]/.test(r)?e>=Oa:/%[Bbm]/.test(r)?e>=N1:/%[q]/.test(r)?e>=z1:/%[Yy]/.test(r)?e>=I1:!0}});var hC=xe((L6e,vC)=>{"use strict";vC.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 Jm=xe((D6e,dC)=>{"use strict";var Cie=hC();dC.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&&(Cie(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var gC=xe((R6e,pC)=>{var Eie={left:0,top:0};pC.exports=Lie;function Lie(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=Die(r);return t[0]=n-o.left,t[1]=a-o.top,t}function Die(e){return e===window||e===document||e===document.body?Eie:e.getBoundingClientRect()}});var G1=xe((F6e,yC)=>{"use strict";var Rie=_y();function Fie(){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}yC.exports=Rie&&Fie()});var bC=xe((P6e,mC)=>{"use strict";mC.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 wC=xe((I6e,_C)=>{"use strict";var xC=tr(),Pie=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];_C.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=xC.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=xC.constrain(Math.floor(t*3),0,2),Pie[t][r]}});var TC=xe((z6e,MC)=>{"use strict";var Iie=Hf(),zie=Xh(),Nie=Pf().getGraphDiv,qie=(pf(),or(df)),$m=MC.exports={};$m.wrapped=function(e,r,t){var o;e=Nie(e),e._fullLayout&&zie.clear(e._fullLayout._uid+qie.HOVERID);let n=e._hoverdata;$m.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:[]}))};$m.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&Iie.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 Pi=xe((N6e,CC)=>{"use strict";var Bie=gC(),Km=My(),Oie=G1(),Uie=tr().removeElement,Hie=(kn(),or(An)),Ns=CC.exports={};Ns.align=bC();Ns.getCursor=wC();var kC=TC();Ns.unhover=kC.wrapped;Ns.unhoverRaw=kC.raw;Ns.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,o=r.element,i,l,u,s,f,c,g,b;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=T,Oie?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=T,o.addEventListener("touchstart",T,{passive:!1})):o.ontouchstart=T;function h(S,x,M){return Math.abs(S)<M&&(S=0),Math.abs(x)<M&&(x=0),[S,x]}var _=r.clampFn||h;function T(S){t._dragged=!1,t._dragging=!0;var x=AC(S);i=x[0],l=x[1],g=S.target,c=S,b=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),Km&&!b?(f=SC(),f.style.cursor=window.getComputedStyle(o).cursor):Km||(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 x=AC(S),M=r.minDrag||Hie.MINDRAG,d=_(x[0]-i,x[1]-l,M),w=d[0],y=d[1];(w||y)&&(t._dragged=!0,Ns.unhover(t,S)),t._dragged&&r.moveFn&&!b&&(t._dragdata={element:o,dx:w,dy:y},r.moveFn(w,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),Km?Uie(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 x;c.target===g?x=c:(x={target:g,srcElement:g,toElement:g},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var d=c[M];!x[M]&&typeof d!="function"&&(x[M]=d)})),r.clickFn&&r.clickFn(n,x),b||g.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function SC(){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}Ns.coverSlip=SC;function AC(e){return Bie(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Dl=xe((q6e,EC)=>{"use strict";EC.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 RC=xe((B6e,DC)=>{"use strict";var Qm=Dl(),oc="data-savedcursor",LC="!!";DC.exports=function(r,t){var n=r.attr(oc);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(oc,i.slice(7)).classed(i,!1)}r.attr(oc)||r.attr(oc,LC)}Qm(r,t)}else n&&(r.attr(oc,null),n===LC?Qm(r):Qm(r,n))}});var Y1={};Ht(Y1,{dfltFillHeight:()=>$ie,itemGap:()=>Jie,itemHeightPad:()=>Qie,itemMinHeight:()=>Kie,scrollBarColor:()=>Yie,scrollBarEnterAttrs:()=>Wie,scrollBarMargin:()=>Xie,scrollBarMinHeight:()=>Gie,scrollBarWidth:()=>Vie,titlePad:()=>Zie});var Vie,Gie,Yie,Xie,Wie,Zie,Jie,$ie,Kie,Qie,X1=Ut(()=>{"use strict";Vie=6,Gie=20,Yie="#808BA4",Xie=4,Wie={rx:20,ry:3,width:0,height:0},Zie=2,Jie=5,$ie=6,Kie=16,Qie=3});var e5=xe((O6e,PC)=>{"use strict";var jm=Wn(),jie=no(),{dfltFillHeight:FC}=(X1(),or(Y1));PC.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:jie.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:jm({editType:"legend"}),grouptitlefont:jm({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"},itemheight:{valType:"number",min:FC,dflt:FC,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:jm({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var sc=xe(lc=>{"use strict";lc.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};lc.isVertical=function(r){return r.orientation!=="h"};lc.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};lc.getId=function(r){return r._id||"legend"}});var t5=xe((H6e,IC)=>{"use strict";var W1=Cr(),Ua=tr(),eoe=Tt(),roe=Zn(),toe=e5(),noe=q0(),r5=sc();function aoe(e,r,t,n,a){var o=r[e]||{},i=eoe.newContainer(t,e);function l(B,O){return Ua.coerce(o,i,toe,B,O)}var u=Ua.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 G=f._input,J=f;return Ua.coerce(G,J,roe,B,O)},g=t.font||{},b=Ua.coerceFont(l,"grouptitlefont",g,{overrideDflt:{size:Math.round(g.size*1.1)}}),h=0,_=!1,T="normal",m=(t.shapes||[]).filter(function(B){return B.showlegend});function k(B){return W1.traceIs(B,"pie-like")&&B._length!=null&&(Array.isArray(B.legend)||Array.isArray(B.showlegend))}n.filter(k).forEach(function(B){B.visible&&h++;for(var O=0;O<B._length;O++){var G=(Array.isArray(B.legend)?B.legend[O]:B.legend)||"legend";G===e&&((Array.isArray(B.showlegend)?B.showlegend[O]:B.showlegend)||B._dfltShowLegend)&&(_=!0,h++)}if(e==="legend"&&B._length>B.legend.length)for(var J=B.legend.length;J<B._length;J++)_=!0,h++});for(var S=n.concat(m).filter(function(B){return!k(f)&&e===(B.legend||"legend")}),x=0;x<S.length;x++)if(f=S[x],!!f.visible){var M=f._isShape;(f.showlegend||f._dfltShowLegend&&!(f._module&&f._module.attributes&&f._module.attributes.showlegend&&f._module.attributes.showlegend.dflt===!1))&&(h++,f.showlegend&&(_=!0,(!M&&W1.traceIs(f,"pie-like")||f._input.showlegend===!0)&&h++),Ua.coerceFont(c,"legendgrouptitle.font",b)),(!M&&W1.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(T=r5.isGrouped({traceorder:T})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(T=r5.isReversed({traceorder:T})?"reversed+grouped":"grouped")}var d=Ua.coerce(r,t,noe,"showlegend",t.showlegend||_&&h>(e==="legend"?1:0));if(d===!1&&(t[e]=void 0),d===!1&&!o.uirevision||(l("uirevision",t.uirevision),d===!1))return;l("borderwidth");var w=l("orientation"),y=l("yref"),v=l("xref"),A=w==="h",p=y==="paper",D=v==="paper",E,R,I,z="left";A?(E=0,W1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?p?(R=1.1,I="bottom"):(R=1,I="top"):p?(R=-.1,I="top"):(R=0,I="bottom")):(R=1,I="auto",D?E=1.02:(E=1,z="right")),Ua.coerce(o,i,{x:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:E}},"x"),Ua.coerce(o,i,{y:{valType:"number",editType:"legend",min:p?-2:0,max:p?3:1,dflt:R}},"y"),l("traceorder",T),r5.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemheight"),l("itemclick"),l("itemdoubleclick");let F=l("groupclick");l("groupdoubleclick",F),l("xanchor",z),l("yanchor",I),l("maxheight"),l("valign"),Ua.noneOrAll(o,i,["x","y"]);var L=l("title.text");if(L){l("title.side",A?"left":"top");var P=Ua.extendFlat({},u,{size:Ua.bigFont(u.size)});Ua.coerceFont(l,"title.font",P);let B=a>1;l("titleclick",B?"toggle":!1),l("titledoubleclick",B?"toggleothers":!1)}}IC.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):Ua.pushUnique(s,o[a].legend);for(t._legends=[],a=0;a<s.length;a++){var f=s[a];aoe(f,r,t,o,s.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var i5=xe(a5=>{"use strict";var Rl=Cr(),n5=tr(),ioe=n5.pushUnique,ooe=sc(),zC=!0;a5.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"&&zC&&t.data&&t._context.showTips&&(n5.notifier(n5._(t,"Double-click on legend to isolate one trace"),"long",t),zC=!1);var s=u==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],c=t._fullData;let g=(i.shapes||[]).filter(Te=>Te.showlegend||Te.legendgroup);var b=c.concat(g),h=l.trace;h._isShape&&(h=i.shapes[h.index]);var _=h.legendgroup,T,m,k,S,x,M,d={},w=[],y=[],v=[];function A(Te,ke){var ge=w.indexOf(Te),Ee=d.visible;return Ee||(Ee=d.visible=[]),w.indexOf(Te)===-1&&(w.push(Te),ge=w.length-1),Ee[ge]=ke,ge}var p=(i.shapes||[]).map(function(Te){return Te._input}),D=!1;function E(Te,ke){p[Te].visible=ke,D=!0}function R(Te,ke){if(!(l.groupTitle&&!s)){var ge=Te._isShape,Ee=Te.index;Ee===void 0&&(Ee=Te._index);var Le=Te.visible===!1?!1:ke;ge?E(Ee,Le):A(Ee,Le)}}var I=h.legend;if(!h._isShape&&Rl.traceIs(h,"pie-like")){var z=l.label,F=f.indexOf(z);if(a==="toggle")F===-1?f.push(z):f.splice(F,1);else if(a==="toggleothers"){var L=F!==-1,P=[];for(T=0;T<t.calcdata.length;T++){var B=t.calcdata[T];for(m=0;m<B.length;m++){var O=B[m],G=O.label;I===B[0].trace.legend&&z!==G&&(f.indexOf(G)===-1&&(L=!0),ioe(f,G),P.push(G))}}if(!L)for(var J=0;J<P.length;J++){var j=f.indexOf(P[J]);j!==-1&&f.splice(j,1)}}Rl.call("_guiRelayout",t,"hiddenlabels",f)}else{var V=_&&_.length,q=[],Z;if(V)for(T=0;T<b.length;T++)Z=b[T],Z.visible&&Z.legendgroup===_&&q.push(T);if(a==="toggle"){var re;switch(h.visible){case!0:re="legendonly";break;case!1:re=!1;break;case"legendonly":re=!0;break}if(V)if(s)for(T=0;T<b.length;T++){var $=b[T];$.visible!==!1&&$.legendgroup===_&&R($,re)}else R(h,re);else R(h,re)}else if(a==="toggleothers"){var ae,Q,te,ue,ee,ie=!0;let Te=V&&s;for(T=0;T<b.length;T++)if(ee=b[T],ae=ee===h,te=ee.showlegend!==!0,!(ae||te)&&(Q=Te&&ee.legendgroup===_,!Q&&ee.legend===I&&ee.visible===!0&&!Rl.traceIs(ee,"notLegendIsolatable"))){ie=!1;break}for(T=0;T<b.length;T++)if(ee=b[T],!(ee.visible===!1||ee.legend!==I)&&!Rl.traceIs(ee,"notLegendIsolatable"))switch(h.visible){case"legendonly":R(ee,!0);break;case!0:ue=ie?!0:"legendonly",ae=ee===h,te=ee.showlegend!==!0&&!ee.legendgroup,Q=ae||Te&&ee.legendgroup===_,R(ee,Q||te?!0:ue);break}}for(T=0;T<y.length;T++)if(k=y[T],!!k){var fe=k.constructUpdate(),we=Object.keys(fe);for(m=0;m<we.length;m++)S=we[m],M=d[S]=d[S]||[],M[v[T]]=fe[S]}for(x=Object.keys(d),T=0;T<x.length;T++)for(S=x[T],m=0;m<w.length;m++)d[S].hasOwnProperty(m)||(d[S][m]=void 0);D?Rl.call("_guiUpdate",t,d,{shapes:p},w):Rl.call("_guiRestyle",t,d,w)}};a5.handleTitleClick=function(r,t,n){let a=r._fullLayout,o=r._fullData,i=ooe.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 g={visible:[]},b=[],h=(a.shapes||[]).map(function(m){return m._input});for(var _=!1,T=0;T<u.length;T++){let m=u[T],k=s(m);if(!k){let M=m.showlegend!==!0&&!m.legendgroup;if(n==="toggle"||M)continue}let x=(k?f:c)?!0:"legendonly";m.visible!==!1&&m.visible!==x&&(m._isShape?(h[m._index].visible=x,_=!0):(b.push(m.index),g.visible.push(x)))}_?Rl.call("_guiUpdate",r,g,{shapes:h},b):b.length&&Rl.call("_guiRestyle",r,g,b)}});var BC=xe((G6e,qC)=>{"use strict";var{isArrayOrTypedArray:o5}=ba(),NC=Cr(),l5=sc();qC.exports=function(r,t,n){var a=t._inHover,o=l5.isGrouped(t),i=l5.isReversed(t),l={},u=[],s=!1,f={},c=0,g=0,b,h;function _(B,O,G){if(t.visible!==!1&&!(n&&B!==t._id))if(O===""||!l5.isGrouped(t)){var J="~~i"+c;u.push(J),l[J]=[G],c++}else u.indexOf(O)===-1?(u.push(O),s=!0,l[O]=[G]):l[O].push(G)}for(b=0;b<r.length;b++){var T=r[b],m=T[0],k=m.trace,S=k.legend,x=k.legendgroup;if(!(!a&&(!k.visible||!k.showlegend)))if(NC.traceIs(k,"pie-like")){var M=Array.isArray(k.legend),d=Array.isArray(k.showlegend);for(f[x]||(f[x]={}),h=0;h<T.length;h++)if(!(d&&k.showlegend[T[h].i]===!1)){M&&(S=k.legend[T[h].i]||"legend");var w=T[h].label;f[x][w]||(_(S,x,{label:w,color:T[h].color,i:T[h].i,trace:k,pts:T[h].pts}),f[x][w]=!0,g=Math.max(g,(w||"").length))}}else _(S,x,m),g=Math.max(g,(k.name||"").length)}if(!u.length)return[];var y=!s||!o,v=[];for(b=0;b<u.length;b++){var A=l[u[b]];y?v.push(A[0]):v.push(A)}for(y&&(v=[v]),b=0;b<v.length;b++){var p=1/0;for(h=0;h<v[b].length;h++){var D=v[b][h].trace.legendrank,E=o5(D)?Math.min(D):D;p>E&&(p=E)}v[b][0]._groupMinRank=p,v[b][0]._preGroupSort=b}var R=function(B,O){return B[0]._groupMinRank-O[0]._groupMinRank||B[0]._preGroupSort-O[0]._preGroupSort},I=function(B,O){var G=o5(B.trace.legendrank)?B.trace.legendrank[B.i]:B.trace.legendrank,J=o5(O.trace.legendrank)?O.trace.legendrank[O.i]:O.trace.legendrank;return G-J||B._preSort-O._preSort};for(v.forEach(function(B,O){B[0]._preGroupSort=O}),v.sort(R),b=0;b<v.length;b++){v[b].forEach(function(B,O){B._preSort=O}),v[b].sort(I);var z=v[b][0].trace,F=null;for(h=0;h<v[b].length;h++){var L=v[b][h].trace.legendgrouptitle;if(L&&L.text){F=L,a&&(L.font=t._groupTitleFont);break}}if(i&&v[b].reverse(),F){var P=!1;for(h=0;h<v[b].length;h++)if(NC.traceIs(v[b][h].trace,"pie-like")){P=!0;break}v[b].unshift({i:-1,groupTitle:F,noClick:P,trace:{showlegend:z.showlegend,legendgroup:z.legendgroup,legend:z.legend,visible:t.groupclick==="toggleitem"?!0:z.visible}})}for(h=0;h<v[b].length;h++)v[b][h]=[v[b][h]]}return t._lgroupsLength=v.length,t._maxNameLength=g,v}});var s5=xe(qs=>{"use strict";var Z1=tr();function OC(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}qs.formatPiePercent=function(r,t){var n=OC((r*100).toPrecision(3));return Z1.numSeparate(n,t)+"%"};qs.formatPieValue=function(r,t){var n=OC(r.toPrecision(10));return Z1.numSeparate(n,t)};qs.getFirstFilled=function(r,t){if(Z1.isArrayOrTypedArray(r))for(var n=0;n<t.length;n++){var a=r[t[n]];if(a||a===0||a==="")return a}};qs.castOption=function(r,t){if(Z1.isArrayOrTypedArray(r))return qs.getFirstFilled(r,t);if(r)return r};qs.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var HC=xe((X6e,UC)=>{"use strict";var loe=At(),soe=Zr();UC.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?loe.pointStyle(r,n,a,t):soe.fill(r,t.color)}});var XC=xe((W6e,YC)=>{"use strict";var VC=Zr(),GC=s5().castOption,uoe=HC();YC.exports=function(r,t,n,a){var o=n.marker.line,i=GC(o.color,t.pts)||VC.defaultLine,l=GC(o.width,t.pts)||0;r.call(uoe,t,n,a).style("stroke-width",l).call(VC.stroke,i)}});var h5=xe((Z6e,KC)=>{"use strict";var va=lt(),u5=Cr(),jn=tr(),f5=jn.strTranslate,Ha=At(),oi=Zr(),c5=io().extractOpts,$1=Da(),foe=XC(),coe=s5().castOption,WC=(X1(),or(Y1)),ZC=12,JC=5,Bs=2,voe=10,su=5;KC.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=n.itemheight,u=(i+WC.itemGap*2)/2,s=f5(u,0),f=function(y,v,A,p){var D;if(y+1)D=y;else if(v&&v.width>0)D=v.width;else return 0;return o?p:Math.min(D,A)};r.each(function(y){var v=va.select(this),A=jn.ensureSingle(v,"g","layers");A.style("opacity",y[0].trace.opacity);var p=n.indentation,D=n.valign,E=y[0].lineHeight,R=y[0].height;if(D==="middle"&&p===0||!E||!R)A.attr("transform",null);else{var I={top:1,bottom:-1}[D],z=I*(.5*(E-R+3))||0,F=n.indentation;A.attr("transform",f5(F,z))}var L=A.selectAll("g.legendfill").data([y]);L.enter().append("g").classed("legendfill",!0);var P=A.selectAll("g.legendlines").data([y]);P.enter().append("g").classed("legendlines",!0);var B=A.selectAll("g.legendsymbols").data([y]);B.enter().append("g").classed("legendsymbols",!0),B.selectAll("g.legendpoints").data([y]).enter().append("g").classed("legendpoints",!0)}).each(w).each(b).each(_).each(h).each(m).each(M).each(x).each(c).each(g).each(k).each(S);function c(y){var v=$C(y),A=v.showFill,p=v.showLine,D=v.showGradientLine,E=v.showGradientFill,R=v.anyFill,I=v.anyLine,z=y[0],F=z.trace,L,P,B=c5(F),O=B.colorscale,G=B.reversescale,J=function(Q){if(Q.size())if(A)Ha.fillGroupStyle(Q,t,!0);else{var te="legendfill-"+F.uid;Ha.gradient(Q,t,te,v5(G),O,"fill")}},j=function(Q){if(Q.size()){var te="legendline-"+F.uid;Ha.lineGroupStyle(Q),Ha.gradient(Q,t,te,v5(G),O,"stroke")}},V=$1.hasMarkers(F)||!R?"M5,0":I?"M5,-2":"M5,-3",q=va.select(this),Z=q.select(".legendfill").selectAll("path").data(A||E?[y]:[]);Z.enter().append("path").classed("js-fill",!0),Z.exit().remove(),Z.attr("d",V+"h"+i+"v"+l+"h-"+i+"z").call(J);let re=A||E?(WC.dfltFillHeight-l)/2:0;if(q.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",re?f5(0,re):null),p||D){var $=f(void 0,F.line,voe,JC);P=jn.minExtend(F,{line:{width:$}}),L=[jn.minExtend(z,{trace:P})]}var ae=q.select(".legendlines").selectAll("path").data(p||D?[L]:[]);ae.enter().append("path").classed("js-line",!0),ae.exit().remove(),ae.attr("d",V+(D?"l"+i+",0.0001":"h"+i)).call(p?Ha.lineGroupStyle:j)}function g(y){var v=$C(y),A=v.anyFill,p=v.anyLine,D=v.showLine,E=v.showMarker,R=y[0],I=R.trace,z=!E&&!p&&!A&&$1.hasText(I),F,L;function P(re,$,ae,Q){var te=jn.nestedProperty(I,re).get(),ue=jn.isArrayOrTypedArray(te)&&$?$(te):te;if(o&&ue&&Q!==void 0&&(ue=Q),ae){if(ue<ae[0])return ae[0];if(ue>ae[1])return ae[1]}return ue}function B(re){return R._distinct&&R.index&&re[R.index]?re[R.index]:re[0]}if(E||z||D){var O={},G={};if(E){O.mc=P("marker.color",B);var J=I.type==="scattermap";O.mx=J?"circle":P("marker.symbol",B),O.mo=P("marker.opacity",jn.mean,[.2,1]),O.mlc=P("marker.line.color",B),O.mlw=P("marker.line.width",jn.mean,[0,5],Bs),O.mld=P("marker.line.dash",B),G.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var j=P("marker.size",jn.mean,[2,16],ZC);O.ms=j,G.marker.size=j}D&&(G.line={width:P("line.width",B,[0,10],JC)}),z&&(O.tx="Aa",O.tp=P("textposition",B),O.ts=10,O.tc=P("textfont.color",B),O.tf=P("textfont.family",B),O.tw=P("textfont.weight",B),O.ty=P("textfont.style",B),O.tv=P("textfont.variant",B),O.tC=P("textfont.textcase",B),O.tE=P("textfont.lineposition",B),O.tS=P("textfont.shadow",B)),F=[jn.minExtend(R,O)],L=jn.minExtend(I,G),L.selectedpoints=null,L.texttemplate=null}var V=va.select(this).select("g.legendpoints"),q=V.selectAll("path.scatterpts").data(E?F:[]);q.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),q.exit().remove(),q.call(Ha.pointStyle,L,t),E&&(F[0].mrc=3);var Z=V.selectAll("g.pointtext").data(z?F:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Z.exit().remove(),Z.selectAll("text").call(Ha.textPointStyle,L,t)}function b(y){var v=y[0].trace,A=v.type==="waterfall";if(y[0]._distinct&&A){var p=y[0].trace[y[0].dir].marker;return y[0].mc=p.color,y[0].mlw=p.line.width,y[0].mlc=p.line.color,T(y,this,"waterfall")}var D=[];v.visible&&A&&(D=y[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 E=va.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(D);E.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(R){var I=va.select(this),z=v[R[0]].marker,F=f(void 0,z.line,su,Bs);I.attr("d",R[1]).style("stroke-width",F+"px").call(oi.fill,z.color),F&&I.call(oi.stroke,z.line.color)})}function h(y){T(y,this)}function _(y){T(y,this,"funnel")}function T(y,v,A){var p=y[0].trace,D=p.marker||{},E=D.line||{},R=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",I=A?p.visible&&p.type===A:u5.traceIs(p,"bar"),z=va.select(v).select("g.legendpoints").selectAll("path.legend"+A).data(I?[y]:[]);z.enter().append("path").classed("legend"+A,!0).attr("d",R).attr("transform",s),z.exit().remove(),z.each(function(F){var L=va.select(this),P=F[0],B=f(P.mlw,D.line,su,Bs);L.style("stroke-width",B+"px");var O=P.mcc;if(!n._inHover&&"mc"in P){var G=c5(D),J=G.mid;J===void 0&&(J=(G.max+G.min)/2),O=Ha.tryColorscale(D,"")(J)}var j=O||P.mc||D.color,V=D.pattern,q=Ha.getPatternAttr;let Z=0;n._inHover&&P._distinct&&P.index!=null&&(Z=P.index);let re=V&&(q(V.shape,Z,"")||q(V.path,Z,""));if(re){let ae=q(V.bgcolor,Z,null),Q=q(V.fgcolor,Z,null);var $=V.fgopacity;let te=n._inHover?J1(q(V.size,Z,8),8,10):J1(V.size,8,10),ue=n._inHover?J1(q(V.solidity,Z,.5),.5,1):J1(V.solidity,.5,1),ee=n._inHover?`hover-${p.uid}-${Z}`:`legend-${p.uid}`;L.call(Ha.pattern,"legend",t,ee,re,te,ue,O,V.fillmode,ae,Q,$)}else L.call(oi.fill,j);B&&oi.stroke(L,P.mlc||E.color)})}function m(y){var v=y[0].trace,A=va.select(this).select("g.legendpoints").selectAll("path.legendbox").data(v.visible&&u5.traceIs(v,"box-violin")?[y]:[]);A.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),A.exit().remove(),A.each(function(){var p=va.select(this);if((v.boxpoints==="all"||v.points==="all")&&oi.opacity(v.fillcolor)===0&&oi.opacity((v.line||{}).color)===0){var D=jn.minExtend(v,{marker:{size:o?ZC:jn.constrain(v.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});A.call(Ha.pointStyle,D,t)}else{var E=f(void 0,v.line,su,Bs);p.style("stroke-width",E+"px").call(oi.fill,v.fillcolor),E&&oi.stroke(p,v.line.color)}})}function k(y){var v=y[0].trace,A=va.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(v.visible&&v.type==="candlestick"?[y,y]:[]);A.enter().append("path").classed("legendcandle",!0).attr("d",function(p,D){return D?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(p,D){var E=va.select(this),R=v[D?"increasing":"decreasing"],I=f(void 0,R.line,su,Bs);E.style("stroke-width",I+"px").call(oi.fill,R.fillcolor),I&&oi.stroke(E,R.line.color)})}function S(y){var v=y[0].trace,A=va.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(v.visible&&v.type==="ohlc"?[y,y]:[]);A.enter().append("path").classed("legendohlc",!0).attr("d",function(p,D){return D?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(p,D){var E=va.select(this),R=v[D?"increasing":"decreasing"],I=f(void 0,R.line,su,Bs);E.style("fill","none").call(Ha.dashLine,R.line.dash,I),I&&oi.stroke(E,R.line.color)})}function x(y){d(y,this,"pie")}function M(y){d(y,this,"funnelarea")}function d(y,v,A){var p=y[0],D=p.trace,E=A?D.visible&&D.type===A:u5.traceIs(D,A),R=va.select(v).select("g.legendpoints").selectAll("path.legend"+A).data(E?[y]:[]);if(R.enter().append("path").classed("legend"+A,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),R.exit().remove(),R.size()){var I=D.marker||{},z=f(coe(I.line.width,p.pts),I.line,su,Bs),F="pieLike",L=jn.minExtend(D,{marker:{line:{width:z}}},F),P=jn.minExtend(p,{trace:L},F);foe(R,P,L,t)}}function w(y){var v=y[0].trace,A,p=[];if(v.visible)switch(v.type){case"histogram2d":case"heatmap":p=[["M-15,-2V4H15V-2Z"]],A=!0;break;case"choropleth":case"choroplethmap":p=[["M-6,-6V6H6V-6Z"]],A=!0;break;case"densitymap":p=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],A="radial";break;case"cone":p=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],A=!1;break;case"streamtube":p=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],A=!1;break;case"surface":p=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],A=!0;break;case"mesh3d":p=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],A=!1;break;case"volume":p=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],A=!0;break;case"isosurface":p=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],A=!1;break}var D=va.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(p);D.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var I=va.select(this),z=c5(v),F=z.colorscale,L=z.reversescale,P=function(J){if(J.size()){var j="legendfill-"+v.uid;Ha.gradient(J,t,j,v5(L,A==="radial"),F,"fill")}},B;if(F){if(!A){var G=F.length;B=R===0?F[L?G-1:0][1]:R===1?F[L?0:G-1][1]:F[Math.floor((G-1)/2)][1]}}else{var O=v.vertexcolor||v.facecolor||v.color;B=jn.isArrayOrTypedArray(O)?O[R]||O[0]:O}I.attr("d",E[0]),B?I.call(oi.fill,B):I.call(P)})}};function v5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function $C(e){var r=e[0].trace,t=r.contours,n=$1.hasLines(r)||r.visible&&r.type==="quiver",a=$1.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 J1(e,r,t){return e&&jn.isArrayOrTypedArray(e)?r:e>t?t:e}});var y5=xe((J6e,oE)=>{"use strict";var ha=lt(),fn=tr(),p5=Sn(),Os=Cr(),j1=Hf(),d5=Pi(),cn=At(),uc=Zr(),qo=Qn(),QC=i5().handleItemClick,jC=i5().handleTitleClick,Wt=(X1(),or(Y1)),g5=(Kn(),or($n)),aE=g5.LINE_SPACING,fu=g5.FROM_TL,eE=g5.FROM_BR,rE=BC(),hoe=h5(),cu=sc(),uu=1,doe=/^legend[0-9]*$/;oE.exports=function(r,t){if(t)tE(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=ha.select(this),f=s.attr("class"),c=f.split(" ")[0];c.match(doe)&&a.indexOf(c)===-1&&s.remove()});for(var i=0;i<a.length;i++){var l=a[i],u=r._fullLayout[l];tE(r,u)}}};function poe(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var n=r.title.font,a=n.size*aE,o=0,i=e.node(),l=cn.bBox(i).width;r.title.side==="top center"?o=.5*(r._width-2*t-2*Wt.titlePad-l):r.title.side==="top right"&&(o=r._width-2*t-2*Wt.titlePad-l),qo.positionText(e,t+Wt.titlePad+o,t+a)}}function tE(e,r){var t=r||{},n=e._fullLayout,a=cu.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=rE(t.entries,t)}else{for(var s=(e.calcdata||[]).slice(),f=n.shapes,c=0;c<f.length;c++){var g=f[c];if(g.showlegend){var b={_isShape:!0,index:g._index,name:g.name||g.label.text||"shape "+g._index,legend:g.legend,legendgroup:g.legendgroup,legendgrouptitle:g.legendgrouptitle,legendrank:g.legendrank,legendwidth:g.legendwidth,showlegend:g.showlegend,visible:g.visible,opacity:g.opacity,mode:g.type==="line"?"lines":"markers",line:g.line,marker:{line:g.line,color:g.fillcolor,size:12,symbol:g.type==="rect"?"square":g.type==="circle"?"circle":"hexagon2"}};s.push([{trace:b}])}}u=n.showlegend&&rE(s,t,n._legends.length>1)}var h=n.hiddenlabels||[];if(!l&&(!n.showlegend||!u.length))return i.selectAll("."+a).remove(),n._topdefs.select("#"+o).remove(),p5.autoMargin(e,a);var _=fn.ensureSingle(i,"g",a,function(y){l||y.attr("pointer-events","all")}),T=fn.ensureSingleById(n._topdefs,"clipPath",o,function(y){y.append("rect")}),m=fn.ensureSingle(_,"rect","bg",function(y){y.attr("shape-rendering","crispEdges")});m.call(uc.stroke,t.bordercolor).call(uc.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=fn.ensureSingle(_,"g","scrollbox"),S=t.title;t._titleWidth=0,t._titleHeight=0;var x;S.text?(x=fn.ensureSingle(k,"text",a+"titletext"),x.attr("text-anchor","start").call(cn.font,S.font).text(S.text),Q1(x,k,e,t,uu),!l&&(t.titleclick||t.titledoubleclick)&&moe(k,e,t,a)):(k.selectAll("."+a+"titletext").remove(),k.selectAll("."+a+"titletoggle").remove());var M=fn.ensureSingle(_,"rect","scrollbar",function(y){y.attr(Wt.scrollBarEnterAttrs).call(uc.fill,Wt.scrollBarColor)}),d=k.selectAll("g.groups").data(u);d.enter().append("g").attr("class","groups"),d.exit().remove();var w=d.selectAll("g.traces").data(fn.identity);w.enter().append("g").attr("class","traces"),w.exit().remove(),w.style("opacity",function(y){let v=y[0],A=v.trace;if(v.groupTitle){let p=A.legendgroup,D=(n.shapes||[]).filter(function(R){return R.showlegend});return e._fullData.concat(D).some(function(R){return R.legendgroup===p&&(R.legend||"legend")===a&&R.visible===!0})?1:.5}return Os.traceIs(A,"pie-like")?h.indexOf(y[0].label)!==-1?.5:1:A.visible==="legendonly"?.5:1}).each(function(){ha.select(this).call(goe,e,t)}).call(hoe,e,t).each(function(y){l||y[0].groupTitle&&t.groupclick==="toggleitem"||ha.select(this).call(yoe,e,a)}),fn.syncOrAsync([p5.previousPromises,function(){return _oe(e,d,w,t,k)},function(){var y=n._size,v=t.borderwidth,A=t.xref==="paper",p=t.yref==="paper";if(S.text){let ie=(n.shapes||[]).filter(function(we){return we.showlegend}),fe=e._fullData.concat(ie).some(function(we){let Te=we.legend||"legend";var ke=Array.isArray(Te)?Te.includes(a):Te===a;return ke&&we.visible===!0});x.style("opacity",fe?1:.5)}if(!l){var D,E;A?D=y.l+y.w*t.x-fu[e2(t)]*t._width:D=n.width*t.x-fu[e2(t)]*t._width,p?E=y.t+y.h*(1-t.y)-fu[r2(t)]*t._effHeight:E=n.height*(1-t.y)-fu[r2(t)]*t._effHeight;var R=woe(e,a,D,E);if(R)return;if(n.margin.autoexpand){var I=D,z=E;D=A?fn.constrain(D,0,n.width-t._width):I,E=p?fn.constrain(E,0,n.height-t._effHeight):z,D!==I&&fn.log("Constrain "+a+".x to make legend fit inside graph"),E!==z&&fn.log("Constrain "+a+".y to make legend fit inside graph")}cn.setTranslate(_,D,E)}if(M.on(".drag",null),_.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var F=t._effHeight;l&&(F=t._height),m.attr({width:t._width-v,height:F-v,x:v/2,y:v/2}),cn.setTranslate(k,0,0),T.select("rect").attr({width:t._width-2*v,height:F-2*v,x:v,y:v}),cn.setClipUrl(k,o,e),cn.setRect(M,0,0,0,0),delete t._scrollY}else{var L=Math.max(Wt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),P=t._effHeight-L-2*Wt.scrollBarMargin,B=t._height-t._effHeight,O=P/B,G=Math.min(t._scrollY||0,B);m.attr({width:t._width-2*v+Wt.scrollBarWidth+Wt.scrollBarMargin,height:t._effHeight-v,x:v/2,y:v/2}),T.select("rect").attr({width:t._width-2*v+Wt.scrollBarWidth+Wt.scrollBarMargin,height:t._effHeight-2*v,x:v,y:v+G}),cn.setClipUrl(k,o,e),ae(G,L,O),_.on("wheel",function(){G=fn.constrain(t._scrollY+ha.event.deltaY/B*P,0,B),ae(G,L,O),G!==0&&G!==B&&ha.event.preventDefault()});var J,j,V,q=function(ie,fe,we){var Te=(we-fe)/O+ie;return fn.constrain(Te,0,B)},Z=function(ie,fe,we){var Te=(fe-we)/O+ie;return fn.constrain(Te,0,B)},re=ha.behavior.drag().on("dragstart",function(){var ie=ha.event.sourceEvent;ie.type==="touchstart"?J=ie.changedTouches[0].clientY:J=ie.clientY,V=G}).on("drag",function(){var ie=ha.event.sourceEvent;ie.buttons===2||ie.ctrlKey||(ie.type==="touchmove"?j=ie.changedTouches[0].clientY:j=ie.clientY,G=q(V,J,j),ae(G,L,O))});M.call(re);var $=ha.behavior.drag().on("dragstart",function(){var ie=ha.event.sourceEvent;ie.type==="touchstart"&&(J=ie.changedTouches[0].clientY,V=G)}).on("drag",function(){var ie=ha.event.sourceEvent;ie.type==="touchmove"&&(j=ie.changedTouches[0].clientY,G=Z(V,J,j),ae(G,L,O))});k.call($)}function ae(ie,fe,we){t._scrollY=e._fullLayout[a]._scrollY=ie,cn.setTranslate(k,0,-ie),cn.setRect(M,t._width,Wt.scrollBarMargin+ie*we,Wt.scrollBarWidth,fe),T.select("rect").attr("y",v+ie)}if(e._context.edits.legendPosition){var Q,te,ue,ee;_.classed("cursor-move",!0),d5.init({element:_.node(),gd:e,prepFn:function(ie){if(ie.target!==M.node()){var fe=cn.getTranslate(_);ue=fe.x,ee=fe.y}},moveFn:function(ie,fe){if(ue!==void 0&&ee!==void 0){var we=ue+ie,Te=ee+fe;cn.setTranslate(_,we,Te),Q=d5.align(we,t._width,y.l,y.l+y.w,t.xanchor),te=d5.align(Te+t._height,-t._height,y.t+y.h,y.t,t.yanchor)}},doneFn:function(){if(Q!==void 0&&te!==void 0){var ie={};ie[a+".x"]=Q,ie[a+".y"]=te,Os.call("_guiRelayout",e,ie)}},clickFn:function(ie,fe){var we=i.selectAll("g.traces").filter(function(){var Te=this.getBoundingClientRect();return fe.clientX>=Te.left&&fe.clientX<=Te.right&&fe.clientY>=Te.top&&fe.clientY<=Te.bottom});we.size()>0&&iE(e,t,we,ie,fe)}})}}],e)}}function K1(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 iE(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),Os.traceIs(i,"pie-like")&&(s.label=t.datum()[0].label);var f=j1.triggerHandler(e,"plotly_legendclick",s);if(n===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&QC(t,e,r,l,n)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=j1.triggerHandler(e,"plotly_legenddoubleclick",s);c!==!1&&f!==!1&&u&&QC(t,e,r,u,n)}}function goe(e,r,t){var n=cu.getId(t),a=e.data()[0][0],o=a.trace,i=Os.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=fn.templateString(s,o._meta))));var c=fn.ensureSingle(e,"text",n+"text");c.attr("text-anchor","start").call(cn.font,f).text(l?nE(s,u):s);var g=t.indentation+t.itemwidth+Wt.itemGap*2;qo.positionText(c,g,0),l?c.call(qo.makeEditable,{gd:r,text:s}).call(Q1,e,r,t).on("edit",function(b){this.text(nE(b,u)).call(Q1,e,r,t);var h={};return h.name=b,a.trace._isShape?Os.call("_guiRelayout",r,"shapes["+o.index+"].name",h.name):Os.call("_guiRestyle",r,h,o.index)}):Q1(c,e,r,t)}function nE(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 yoe(e,r,t){var n=r._context.doubleClickDelay,a,o=1,i=fn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(uc.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)),iE(r,l,e,o,ha.event)}}))}function moe(e,r,t,n){if(r._fullData.some(function(s){let f=s.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&Os.traceIs(s,"pie-like")}))return;let o=r._context.doubleClickDelay;var i,l=1;let u=fn.ensureSingle(e,"rect",n+"titletoggle",function(s){r._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(uc.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:ha.event,legendId:n,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(j1.triggerHandler(r,"plotly_legendtitleclick",s)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&jC(r,t,t.titleclick)},o)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,j1.triggerHandler(r,"plotly_legendtitledoubleclick",s)!==!1&&t.titledoubleclick&&jC(r,t,t.titledoubleclick))}))}function Q1(e,r,t,n,a){n._inHover&&e.attr("data-notex",qo.isPureTex(e.text())?null:!0),qo.convertToTspans(e,t,function(){boe(r,t,n,a)})}function boe(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=cu.getId(t);t||(t=r._fullLayout[u]);var s=t.borderwidth,f;n===uu?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var c=f.size*aE,g,b;if(l){var h=cn.bBox(l);g=h.height,b=h.width,n===uu?cn.setTranslate(i,s,s+g*.75):cn.setTranslate(i,0,g*.25)}else{var _="."+u+(n===uu?"title":"")+"text",T=e.select(_),m=qo.lineCount(T),k=T.node();if(g=c*m,b=k?cn.bBox(k).width:0,n===uu)t.title.side==="left"&&(b+=Wt.itemGap*2),qo.positionText(T,s+Wt.titlePad,s+c);else{var S=Wt.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(S=Wt.itemGap,b-=t.indentation+t.itemwidth),qo.positionText(T,S,-c*((m-1)/2-.3))}}if(n===uu)t._titleWidth=b,t._titleHeight=g;else{a.lineHeight=c;let x=Wt.itemMinHeight+t.itemheight-Wt.dfltFillHeight;a.height=Math.max(g,Wt.itemMinHeight,x)+Wt.itemHeightPad,a.width=b}}function xoe(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 _oe(e,r,t,n,a){var o=e._fullLayout,i=cu.getId(n);n||(n=o[i]);var l=o._size,u=cu.isVertical(n),s=cu.isGrouped(n),f=n.entrywidthmode==="fraction",c=n.borderwidth,g=2*c,b=Wt.itemGap,h=n.indentation+n.itemwidth+b*2,_=2*(c+b),T=r2(n),m=n.y<0||n.y===0&&T==="top",k=n.y>1||n.y===1&&T==="bottom",S=n.tracegroupgap,x={};let{orientation:M,yref:d}=n,{maxheight:w}=n,y=m||k||M!=="v"||d!=="paper";w||(w=y?.5:1);let v=y?o.height:l.h;n._maxHeight=Math.max(w>1?w:w*v,30);var A=0;n._width=0,n._height=0;var p=xoe(n);if(u)t.each(function(ie){var fe=ie[0].height;cn.setTranslate(this,c+p[0],c+p[1]+n._height+fe/2+b),n._height+=fe,n._width=Math.max(n._width,ie[0].width)}),A=h+n._width,n._width+=b+h+g,n._height+=_,s&&(r.each(function(ie,fe){cn.setTranslate(this,0,fe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var D=e2(n),E=n.x<0||n.x===0&&D==="right",R=n.x>1||n.x===1&&D==="left",I=k||m,z=o.width/2;n._maxWidth=Math.max(E?I&&D==="left"?l.l+l.w:z:R?I&&D==="right"?l.r+l.w:z:l.w,2*h);var F=0,L=0;t.each(function(ie){var fe=K1(ie,n,h);F=Math.max(F,fe),L+=fe}),A=null;var P=0;if(s){var B=0,O=0,G=0;r.each(function(){var ie=0,fe=0;ha.select(this).selectAll("g.traces").each(function(Te){var ke=K1(Te,n,h),ge=Te[0].height;cn.setTranslate(this,p[0],p[1]+c+b+ge/2+fe),fe+=ge,ie=Math.max(ie,ke),x[Te[0].trace.legendgroup]=ie});var we=ie+b;O>0&&we+c+O>n._maxWidth?(P=Math.max(P,O),O=0,G+=B+S,B=fe):B=Math.max(B,fe),cn.setTranslate(this,O,G),O+=we}),n._width=Math.max(P,O)+c,n._height=G+B+_}else{var J=t.size(),j=L+g+(J-1)*b<n._maxWidth,V=0,q=0,Z=0,re=0;t.each(function(ie){var fe=ie[0].height,we=K1(ie,n,h,s),Te=j?we:F;f||(Te+=b),Te+c+q-b>=n._maxWidth&&(P=Math.max(P,re),q=0,Z+=V,n._height+=V,V=0),cn.setTranslate(this,p[0]+c+q,p[1]+c+Z+fe/2+b),re=q+we+b,q+=Te,V=Math.max(V,fe)}),j?(n._width=q+g,n._height=V+_):(n._width=Math.max(P,re)+g,n._height+=V+_)}}n._width=Math.ceil(Math.max(n._width+p[0],n._titleWidth+2*(c+Wt.titlePad))),n._height=Math.ceil(Math.max(n._height+p[1],n._titleHeight+2*(c+Wt.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var $=e._context.edits,ae=$.legendText||$.legendPosition;if(t.each(function(ie){var fe=ha.select(this).select("."+i+"toggle"),we=ie[0].height,Te=ie[0].trace.legendgroup,ke=K1(ie,n,h);s&&Te!==""&&(ke=x[Te]);var ge=ae?h:A||ke;!u&&!f&&(ge+=b/2),cn.setRect(fe,0,-we/2,ge,we)}),n._inHover){let ie=n._width-g-b-p[0];t.each(function(fe){fe[0].textAlign==="right"&&ha.select(this).select("."+i+"text").attr("text-anchor","end").call(qo.positionText,ie)})}var Q=a.select("."+i+"titletext");Q.node()&&poe(Q,n,c);var te=a.select("."+i+"titletoggle");if(te.size()&&Q.node()){var ue=Q.attr("x")||0,ee=Wt.titlePad;cn.setRect(te,ue-ee,c,n._titleWidth+2*ee,n._titleHeight+2*ee)}}function woe(e,r,t,n){var a=e._fullLayout,o=a[r],i=e2(o),l=r2(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",g={r:a.width-t,l:t+o._width,b:a.height-n,t:n+o._effHeight};if(u&&s)return p5.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*fu[i],r:o._width*eE[i],b:o._effHeight*eE[l],t:o._effHeight*fu[l]});u?e._fullLayout._reservedMargin[r][f]=g[f]:s||o.orientation==="v"?e._fullLayout._reservedMargin[r][c]=g[c]:e._fullLayout._reservedMargin[r][f]=g[f]}function e2(e){return fn.isRightAnchor(e)?"right":fn.isCenterAnchor(e)?"center":"left"}function r2(e){return fn.isBottomAnchor(e)?"bottom":fn.isMiddleAnchor(e)?"middle":"top"}});var w5=xe(_5=>{"use strict";var Oo=lt(),Bo=ut(),Zt=tr(),Moe=Zt.pushUnique,m5=Zt.strTranslate,Toe=Zt.strRotate,Aoe=Hf(),Gt=Qn(),koe=RC(),go=At(),dn=Zr(),t2=Pi(),Ii=Vt(),Soe=(kn(),or(An)).zindexSeparator,Us=Cr(),Va=uo(),Hs=(pf(),or(df)),Coe=t5(),Eoe=y5(),gE=Hs.YANGLE,x5=Math.PI*gE/180,Loe=1/Math.sin(x5),Doe=Math.cos(x5),Roe=Math.sin(x5),zt=Hs.HOVERARROWSIZE,et=Hs.HOVERTEXTPAD,lE={box:!0,ohlc:!0,violin:!0,candlestick:!0},Foe={scatter:!0,scattergl:!0,splom:!0};function sE(e,r){return e.distance-r.distance}_5.hover=function(r,t,n,a){r=Zt.getGraphDiv(r);var o=t.target;Zt.throttle(r._fullLayout._uid+Hs.HOVERID,Hs.HOVERMINTIME,function(){Ioe(r,t,n,a,o)})};_5.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=xE(a),i=_E(a),l=r.map(function(h){var _=h._x0||h.x0||h.x||0,T=h._x1||h.x1||h.x||0,m=h._y0||h.y0||h.y||0,k=h._y1||h.y1||h.y||0,S=h.eventData;if(S){var x=Math.min(_,T),M=Math.max(_,T),d=Math.min(m,k),w=Math.max(m,k),y=h.trace;if(Us.traceIs(y,"gl3d")){var v=a._fullLayout[y.scene]._scene.container,A=v.offsetLeft,p=v.offsetTop;x+=A,M+=A,d+=p,w+=p}S.bbox={x0:x+i,x1:M+i,y0:d+o,y1:w+o},S.xPixel=(_+T)/2,S.yPixel=(m+k)/2,t.inOut_bbox&&t.inOut_bbox.push(S.bbox)}else S=!1;return{color:h.color||dn.defaultLine,x0:h.x0||h.x||0,x1:h.x1||h.x||0,y0:h.y0||h.y||0,y1:h.y1||h.y||0,xLabel:h.xLabel,yLabel:h.yLabel,zLabel:h.zLabel,text:h.text,name:h.name,idealAlign:h.idealAlign,borderColor:h.borderColor,fontFamily:h.fontFamily,fontSize:h.fontSize,fontColor:h.fontColor,fontWeight:h.fontWeight,fontStyle:h.fontStyle,fontVariant:h.fontVariant,nameLength:h.nameLength,textAlign:h.textAlign,trace:h.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:h.hovertemplate||!1,hovertemplateLabels:h.hovertemplateLabels||!1,eventData:S}}),u=!1,s=mE(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||dn.background,container:Oo.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels;function c(){var h=5,_=0,T=0;f.sort(function(m,k){return m.y0-k.y0}).each(function(m,k){var S=m.y0-m.by/2;S-h<_?m.offset=_-S+h:m.offset=0,_=S+m.by+m.offset,k===t.anchorIndex&&(T=m.offset)}).each(function(m){m.offset-=T})}var g=a._fullLayout._invScaleX,b=a._fullLayout._invScaleY;return c(),a2(f,u,g,b),s.mathjaxPromise&&s.mathjaxPromise.then(function(){c(),a2(f,u,g,b),f.each(function(){var h=Oo.select(this);Gt.repositionMathGroup(h.select("text.nums")),Gt.repositionMathGroup(h.select("text.name"))})}),n?f:f.node()};function Poe(e,r){return!!(e!=null&&e.showspikes&&e.spikesnap!=="hovered data"||r!=null&&r.showspikes&&r.spikesnap!=="hovered data")}function Ioe(e,r,t,n,a){t||(t="xy"),typeof t=="string"&&(t=t.split(Soe)[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"),g=l._has("ternary"),b=r.hovermode||l.hovermode,h=(b||"").charAt(0)==="x",_=(b||"").charAt(0)==="y",T,m;if(c&&(h||_)&&u==="axis"){for(var k=o.length,S=0;S<k;S++)if(i=o[S],s[i]){T=Ii.getFromId(e,i,"x"),m=Ii.getFromId(e,i,"y");var x=(h?T:m)._subplotsWith;if(x&&x.length)for(var M=0;M<x.length;M++)Moe(o,x[M])}}if(f&&u!=="single"){var d=f.overlays.map(function(lr){return lr.id});o=o.concat(d)}for(var w=o.length,y=new Array(w),v=new Array(w),A=!1,p=0;p<w;p++)if(i=o[p],s[i])A=!0,y[p]=s[i].xaxis,v[p]=s[i].yaxis;else if(l[i]&&l[i]._subplot){var D=l[i]._subplot;y[p]=D.xaxis,v[p]=D.yaxis}else{Zt.warn("Unrecognized subplot: "+i);return}if(b&&!A&&(b="closest"),["x","y","closest","x unified","y unified"].indexOf(b)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return t2.unhoverRaw(e,r);var E=l.hoverdistance;E===-1&&(E=1/0);var R=l.spikedistance;R===-1&&(R=1/0);var I=[],z=[],F,L,P,B,O,G,J,j,V,q,Z,re,$,ae={hLinePoint:null,vLinePoint:null};let Q={};var te=!1;if(Array.isArray(r))for(b="array",P=0;P<r.length;P++)O=e.calcdata[r[P].curveNumber||0],O&&(G=O[0].trace,O[0].trace.hoverinfo!=="skip"&&(z.push(O),G.orientation==="h"&&(te=!0)));else{var ue=e.calcdata.slice();for(ue.sort(function(lr,Dr){var Vr=lr[0].trace.zorder||0,st=Dr[0].trace.zorder||0;return Vr-st}),B=0;B<ue.length;B++)O=ue[B],G=O[0].trace,G.hoverinfo!=="skip"&&Va.isTraceInSubplots(G,o)&&(z.push(O),G.orientation==="h"&&(te=!0));var ee=!a,ie,fe;if(ee)"xpx"in r?ie=r.xpx:ie=y[0]._length/2,"ypx"in r?fe=r.ypx:fe=v[0]._length/2;else{if(Aoe.triggerHandler(e,"plotly_beforehover",r)===!1)return;var we=a.getBoundingClientRect();ie=r.clientX-we.left,fe=r.clientY-we.top,l._calcInverseTransform(e);var Te=Zt.apply3DTransform(l._invTransform)(ie,fe);if(ie=Te[0],fe=Te[1],ie<0||ie>y[0]._length||fe<0||fe>v[0]._length)return t2.unhoverRaw(e,r)}if(r.pointerX=ie+y[0]._offset,r.pointerY=fe+v[0]._offset,"xval"in r?F=Va.flat(o,r.xval):F=Va.p2c(y,ie),"yval"in r?L=Va.flat(o,r.yval):L=Va.p2c(v,fe),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Bo(F[0])||!Bo(L[0]))return Zt.warn("Fx.hover failed",r,e),t2.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=F,e._hoverYVals=L,e._hoverXAxes=y,e._hoverYAxes=v);var ke=1/0;function ge(lr,Dr){for(B=0;B<z.length;B++)if(O=z[B],!(!O||!O[0]||!O[0].trace)&&(G=O[0].trace,!(G.visible!==!0||G._length===0)&&["carpet","contourcarpet"].indexOf(G._module.name)===-1)){if(V=b,Va.isUnifiedHover(V)&&(V=V.charAt(0)),G.type==="splom"?(j=0,J=o[j]):(J=Va.getSubplot(G),j=o.indexOf(J)),re={cd:O,trace:G,xa:y[j],ya:v[j],maxHoverDistance:E,maxSpikeDistance:R,index:!1,distance:Math.min(ke,E),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:dn.defaultLine,name:G.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[J]&&(re.subplot=l[J]._subplot),l._splomScenes&&l._splomScenes[G.uid]&&(re.scene=l._splomScenes[G.uid]),V==="array"){var Vr=r[B];if("pointNumber"in Vr){let Ct=O[Vr.pointNumber];Ct&&(re.index=Vr.pointNumber,Ct.lonlat?(q=Ct.lonlat[0],Z=Ct.lonlat[1]):(q=Ct.x,Z=Ct.y)),V="closest"}else V="","xval"in Vr&&(q=Vr.xval,V="x"),"yval"in Vr&&(Z=Vr.yval,V=V?"closest":"y")}else lr!==void 0&&Dr!==void 0?(q=lr,Z=Dr):(q=F[j],Z=L[j]);if($=I.length,E!==0)if(G._module&&G._module.hoverPoints){var st=G._module.hoverPoints(re,q,Z,V,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:u,gd:e});if(st)for(var mt,St=0;St<st.length;St++)mt=st[St],Bo(mt.x0)&&Bo(mt.y0)&&I.push(qoe(mt,b))}else Zt.log("Unrecognized trace type in hover:",G);if(b==="closest"&&I.length>$&&(I.splice(0,$),ke=I[0].distance),Us.traceIs(G,"ternary")&&R!==0){let Ct=re.subplot;if(["aaxis","baxis","caxis"].some(tn=>Ct[tn].showspikes&&Ct[tn].spikesnap!=="hovered data")){let tn=st==null?void 0:st[0];if(!Number.isFinite(tn==null?void 0:tn.spikeDistance)){let _i=Zt.extendFlat({},re,{distance:R,index:!1}),nn=G._module.hoverPoints(_i,q,Z,"closest");tn=nn&&nn[0]}let $a=Q[J];tn&&tn.index!==void 0&&tn.index!==!1&&tn.spikeDistance<=R&&(!$a||tn.spikeDistance<$a.spikeDistance)&&(Q[J]=tn)}}if(c&&I.length===0&&R!==0&&Poe(re.xa,re.ya)){re.distance=R,re.index=!1;var it=G._module.hoverPoints(re,q,Z,"closest",{hoverLayer:l._hoverlayer});if(it&&(it=it.filter(function(Ct){return Ct.spikeDistance<=R})),it!=null&&it.length){var vt,Bt=it.filter(function(Ct){return Ct.xa.showspikes&&Ct.xa.spikesnap!=="hovered data"});if(Bt.length){var Gn=Bt[0];Bo(Gn.x0)&&Bo(Gn.y0)&&(vt=se(Gn),(!ae.vLinePoint||ae.vLinePoint.spikeDistance>vt.spikeDistance)&&(ae.vLinePoint=vt))}var Yn=it.filter(function(Ct){return Ct.ya.showspikes&&Ct.ya.spikesnap!=="hovered data"});if(Yn.length){var _n=Yn[0];Bo(_n.x0)&&Bo(_n.y0)&&(vt=se(_n),(!ae.hLinePoint||ae.hLinePoint.spikeDistance>vt.spikeDistance)&&(ae.hLinePoint=vt))}}}}}ge();function Ee(){if(l._hoverlayer.selectAll(".ternary-spikes").remove(),R!==0)for(let lr=0;lr<o.length;lr++){let Dr=o[lr],Vr=l[Dr]&&l[Dr]._subplot;if(Vr&&Vr.drawSpikelines){let st=I.find(mt=>mt.trace.subplot===Dr&&mt.index!==void 0&&mt.index!==!1&&mt.spikeDistance<=R);Vr.drawSpikelines(st,Q[Dr],F&&F[lr],L&&L[lr])}}}function Le(lr,Dr,Vr){for(var st=null,mt=1/0,St,it=0;it<lr.length;it++)T&&T._id!==lr[it].xa._id||m&&m._id!==lr[it].ya._id||(St=lr[it].spikeDistance,Vr&&it===0&&(St=-1/0),St<=mt&&St<=Dr&&(st=lr[it],mt=St));return st}function se(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 X={fullLayout:l,container:l._hoverlayer,event:r},K=e._spikepoints,ye={vLinePoint:ae.vLinePoint,hLinePoint:ae.hLinePoint};e._spikepoints=ye;var oe=function(){var lr=I.filter(function(Vr){return T&&T._id===Vr.xa._id&&m&&m._id===Vr.ya._id}),Dr=I.filter(function(Vr){return!(T&&T._id===Vr.xa._id&&m&&m._id===Vr.ya._id)});lr.sort(sE),Dr.sort(sE),I=lr.concat(Dr),I=Ooe(I,b)};oe();var de=b.charAt(0),pe=(de==="x"||de==="y")&&I[0]&&Foe[I[0].trace.type];if(c&&R!==0&&I.length!==0){var me=I.filter(function(lr){return lr.ya.showspikes}),Se=Le(me,R,pe);ae.hLinePoint=se(Se);var ve=I.filter(function(lr){return lr.xa.showspikes}),he=Le(ve,R,pe);ae.vLinePoint=se(he)}if(I.length===0){var be=t2.unhoverRaw(e,r);if(c&&(ae.hLinePoint!==null||ae.vLinePoint!==null)&&hE(K)&&vE(e,ae,X),l.hoveranywhere&&!n&&a){var Ae=e._hoverdata;Ae&&Ae.length&&(e.emit("plotly_unhover",{event:r,points:Ae}),e._hoverdata=[]),qt([]),e._hoverAnywhereActive=!0}return g&&Ee(),be}if(c&&hE(K)&&vE(e,ae,X),g&&Ee(),Va.isXYhover(V)&&I[0].length!==0&&I[0].trace.type!=="splom"){var Re=I[0];lE[Re.trace.type]?I=I.filter(lr=>lr.trace.index===Re.trace.index):I=[Re];var Pe=I.length,Ye=pE("x",Re,l),Ve=pE("y",Re,l);ge(Ye,Ve);var Ue=[],qe={},We=0,Xe=function(lr){var Dr=lE[lr.trace.type]?yE(lr):lr.trace.index;if(!qe[Dr])We++,qe[Dr]=We,Ue.push(lr);else{var Vr=qe[Dr]-1,st=Ue[Vr];Vr>0&&Math.abs(lr.distance)<Math.abs(st.distance)&&(Ue[Vr]=lr)}},er;for(er=0;er<Pe;er++)Xe(I[er]);for(er=I.length-1;er>Pe-1;er--)Xe(I[er]);I=Ue,oe()}var nr=e._hoverdata,rr=[],Qe=xE(e),Ce=_E(e);for(let lr of I){var ze=Va.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 je=lr.x0+lr.xa._offset,wr=lr.x1+lr.xa._offset,Xr=lr.y0+lr.ya._offset,Tr=lr.y1+lr.ya._offset,Pr=Math.min(je,wr),at=Math.max(je,wr),Ar=Math.min(Xr,Tr),Hr=Math.max(Xr,Tr);ze.bbox={x0:Pr+Ce,x1:at+Ce,y0:Ar+Qe,y1:Hr+Qe},ze.xPixel=(je+wr)/2,ze.yPixel=(Xr+Tr)/2}lr.eventData=[ze],rr.push(ze)}e._hoverdata=rr;var ot=b==="y"&&(z.length>1||I.length>1)||b==="closest"&&te&&I.length>1,Ir=dn.combine(l.plot_bgcolor||dn.background,l.paper_bgcolor),Jr=mE(I,{gd:e,hovermode:b,rotateLabels:ot,bgColor:Ir,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Xt=Jr.hoverLabels;if(Va.isUnifiedHover(b)||(fE(Xt,ot,l,Jr.commonLabelBoundingBox),a2(Xt,ot,l._invScaleX,l._invScaleY),Jr.mathjaxPromise&&Jr.mathjaxPromise.then(function(){e._hoverdata===rr&&(fE(Xt,ot,l,Jr.commonLabelBoundingBox),a2(Xt,ot,l._invScaleX,l._invScaleY),Xt.each(function(){var lr=Oo.select(this);Gt.repositionMathGroup(lr.select("text.nums")),Gt.repositionMathGroup(lr.select("text.name"))}))})),a&&a.tagName){var tt=Us.getComponentMethod("annotations","hasClickToShow")(e,rr);koe(Oo.select(a),tt?"pointer":"")}var Kr=Boe(e,r,nr);if(!a||n||!Kr&&!l.hoveranywhere)return;nr&&Kr&&e.emit("plotly_unhover",{event:r,points:nr}),qt(e._hoverdata);function qt(lr){e.emit("plotly_hover",{event:r,points:lr,xaxes:y,yaxes:v,xvals:Va.c2dApply(y,F),yvals:Va.c2dApply(v,L),xPixel:r.pointerX,yPixel:r.pointerY})}}function yE(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 zoe=/<extra>([\s\S]*)<\/extra>/;function b5(e,r){return n2(e,Gt.getMathOrTextNode(r))}function mE(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=[],c=r.fontFamily||Hs.HOVERFONT,g=r.fontSize||Hs.HOVERFONTSIZE,b=r.fontWeight||n.font.weight,h=r.fontStyle||n.font.style,_=r.fontVariant||n.font.variant,T=r.fontTextcase||n.font.textcase,m=r.fontLineposition||n.font.lineposition,k=r.fontShadow||n.font.shadow,S=e[0],x=S.xa,M=S.ya,d=a.charAt(0),w=d+"Label",y=S[w];if(y===void 0&&x.type==="multicategory")for(var v=0;v<e.length&&(y=e[v][w],y===void 0);v++);var A=n2(t,u),p=A.top,D=A.width,E=A.height,R=y!==void 0&&S.distance<=r.hoverdistance&&(a==="x"||a==="y");if(R){var I=!0,z,F;for(z=0;z<e.length;z++)if(I&&e[z].zLabel===void 0&&(I=!1),F=e[z].hoverinfo||e[z].trace.hoverinfo,F){var L=Array.isArray(F)?F:F.split("+");if(L.indexOf("all")===-1&&L.indexOf(a)===-1){R=!1;break}}I&&(R=!1)}var P=l.selectAll("g.axistext").data(R?[0]:[]);P.enter().append("g").classed("axistext",!0),P.exit().remove();var B={minX:0,maxX:0,minY:0,maxY:0};if(P.each(function(){var ve=Oo.select(this),he=Zt.ensureSingle(ve,"path","",function(Xe){Xe.style({"stroke-width":"1px"})}),be=Zt.ensureSingle(ve,"text",""),Ae=s.bgcolor||dn.defaultLine,Re=s.bordercolor||dn.contrast(Ae),Pe=dn.contrast(Ae),Ye=s.font,Ve={weight:Ye.weight||b,style:Ye.style||h,variant:Ye.variant||_,textcase:Ye.textcase||T,lineposition:Ye.lineposition||m,shadow:Ye.shadow||k,family:Ye.family||c,size:Ye.size||g,color:Ye.color||Pe};he.style({fill:Ae,stroke:Re});var Ue=Gt.isPureTex(String(y)),qe;Ue&&f.push(new Promise(function(Xe){qe=function(){if(!be.node().parentNode){Xe();return}We(),Gt.repositionMathGroup(be),Xe()}})),be.text(y).call(go.font,Ve).attr("data-notex",Ue?null:1).call(Gt.positionText,0,0).call(Gt.convertToTspans,t,qe),We();function We(){ve.attr("transform",""),Gt.positionText(be,0,0),Gt.repositionMathGroup(be);var Xe=b5(t,be),er,nr;if(a==="x"){var rr=x.side==="top"?"-":"";be.attr("text-anchor","middle").call(Gt.positionText,0,x.side==="top"?p-Xe.bottom-zt-et:p-Xe.top+zt+et),er=x._offset+(S.x0+S.x1)/2,nr=M._offset+(x.side==="top"?0:M._length);var Qe=Xe.width/2+et,Ce=er;er<Qe?Ce=Qe:er>n.width-Qe&&(Ce=n.width-Qe),he.attr("d","M"+(er-Ce)+",0L"+(er-Ce+zt)+","+rr+zt+"H"+Qe+"v"+rr+(et*2+Xe.height)+"H"+-Qe+"V"+rr+zt+"H"+(er-Ce-zt)+"Z"),er=Ce,B.minX=er-Qe,B.maxX=er+Qe,x.side==="top"?(B.minY=nr-(et*2+Xe.height),B.maxY=nr-et):(B.minY=nr+et,B.maxY=nr+(et*2+Xe.height))}else{var ze,Ke,je;M.side==="right"?(ze="start",Ke=1,je="",er=x._offset+x._length):(ze="end",Ke=-1,je="-",er=x._offset),nr=M._offset+(S.y0+S.y1)/2,be.attr("text-anchor",ze),he.attr("d","M0,0L"+je+zt+","+zt+"V"+(et+Xe.height/2)+"h"+je+(et*2+Xe.width)+"V-"+(et+Xe.height/2)+"H"+je+zt+"V-"+zt+"Z"),B.minY=nr-(et+Xe.height/2),B.maxY=nr+(et+Xe.height/2),M.side==="right"?(B.minX=er+zt,B.maxX=er+zt+(et*2+Xe.width)):(B.minX=er-zt-(et*2+Xe.width),B.maxX=er-zt);var wr=Xe.height/2,Xr=p-Xe.top-wr,Tr="clip"+n._uid+"commonlabel"+M._id,Pr;if(er<Xe.width+2*et+zt){Pr="M-"+(zt+et)+"-"+wr+"h-"+(Xe.width-et)+"V"+wr+"h"+(Xe.width-et)+"Z";var at=Xe.width-er+et;Gt.positionText(be,at,Xr),ze==="end"&&be.selectAll("tspan").each(function(){var Hr=Oo.select(this),ot=go.tester.append("text").text(Hr.text()).call(go.font,Ve),Ir=n2(t,ot.node());Math.round(Ir.width)<Math.round(Xe.width)&&Hr.attr("x",at-Ir.width),ot.remove()})}else Gt.positionText(be,Ke*(et+zt),Xr),Pr=null;var Ar=n._topclips.selectAll("#"+Tr).data(Pr?[0]:[]);Ar.enter().append("clipPath").attr("id",Tr).append("path"),Ar.exit().remove(),Ar.select("path").attr("d",Pr),go.setClipUrl(be,Pr?Tr:null,t)}ve.attr("transform",m5(er,nr))}}),Va.isUnifiedHover(a)){l.selectAll("g.hovertext").remove();let ve=e.filter(he=>he.hoverinfo!=="none");if(ve.length===0)return[];var O=n.hoverlabel,G=O.font,J=ve[0],j=((a==="x unified"?J.xa:J.ya).unifiedhovertitle||{}).text,V=j?Zt.hovertemplateString({data:a==="x unified"?[{xa:J.xa,x:J.xVal}]:[{ya:J.ya,y:J.yVal}],fallback:J.trace.hovertemplatefallback,locale:n._d3locale,template:j}):y,q={showlegend:!0,legend:{title:{text:V,font:G},font:G,bgcolor:O.bgcolor,bordercolor:O.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},Z={font:G};Coe(q,Z,t._fullData);var re=Z.legend;re.entries=[];for(var $=0;$<ve.length;$++){var ae=ve[$];if(ae.hoverinfo!=="none"){var Q=uE(ae,!0,a,n,y),te=Q[0],ue=Q[1];ae.name=ue,ue!==""?ae.text=ue+" : "+te:ae.text=te;var ee=ae.cd[ae.index];ee&&(ee.mc&&(ae.mc=ee.mc),ee.mcc&&(ae.mc=ee.mcc),ee.mlc&&(ae.mlc=ee.mlc),ee.mlcc&&(ae.mlc=ee.mlcc),ee.mlw&&(ae.mlw=ee.mlw),ee.mrc&&(ae.mrc=ee.mrc),ee.dir&&(ae.dir=ee.dir)),ae._distinct=!0,re.entries.push([ae])}}re.entries.sort(function(he,be){var Ae=n.hoversort;if(Ae==="value descending"||Ae==="value ascending"){var Re=a.charAt(0)==="x"?"y":"x",Pe=he[0][Re+"LabelVal"],Ye=be[0][Re+"LabelVal"];if(Pe!==Ye)return Ae==="value descending"?Ye-Pe:Pe-Ye}return he[0].trace.index-be[0].trace.index}),re.layer=l,re._inHover=!0,re._groupTitleFont=O.grouptitlefont,Eoe(t,re);var ie=l.select("g.legend"),fe=n2(t,ie.node()),we=fe.width+2*et,Te=fe.height+2*et,ke=ve[0],ge=(ke.x0+ke.x1)/2,Ee=(ke.y0+ke.y1)/2,Le=!(Us.traceIs(ke.trace,"bar-like")||Us.traceIs(ke.trace,"box-violin")),se,X;d==="y"?Le?(X=Ee-et,se=Ee+et):(X=Math.min.apply(null,ve.map(function(he){return Math.min(he.y0,he.y1)})),se=Math.max.apply(null,ve.map(function(he){return Math.max(he.y0,he.y1)}))):X=se=Zt.mean(ve.map(function(he){return(he.y0+he.y1)/2}))-Te/2;var K,ye;d==="x"?Le?(K=ge+et,ye=ge-et):(K=Math.max.apply(null,ve.map(function(he){return Math.max(he.x0,he.x1)})),ye=Math.min.apply(null,ve.map(function(he){return Math.min(he.x0,he.x1)}))):K=ye=Zt.mean(ve.map(function(he){return(he.x0+he.x1)/2}))-we/2;var oe=x._offset,de=M._offset;se+=de,K+=oe,ye+=oe-we,X+=de-Te;var pe,me;return K+we<D&&K>=0?pe=K:ye+we<D&&ye>=0?pe=ye:oe+we<D?pe=oe:K-ge<ge-ye+we?pe=D-we:pe=0,pe+=et,se+Te<E&&se>=0?me=se:X+Te<E&&X>=0?me=X:de+Te<E?me=de:se-Ee<Ee-X+Te?me=E-Te:me=0,me+=et,ie.attr("transform",m5(pe-1,me-1)),ie}var Se=l.selectAll("g.hovertext").data(e,function(ve){return yE(ve)});return Se.enter().append("g").classed("hovertext",!0).each(function(){var ve=Oo.select(this);ve.append("rect").call(dn.fill,dn.addOpacity(i,.8)),ve.append("text").classed("name",!0),ve.append("path").style("stroke-width","1px"),ve.append("text").classed("nums",!0).call(go.font,{weight:b,style:h,variant:_,textcase:T,lineposition:m,shadow:k,family:c,size:g})}),Se.exit().remove(),Se.each(function(ve){var he=Oo.select(this).attr("transform",""),be=ve.color;Array.isArray(be)&&(be=be[ve.eventData[0].pointNumber]);var Ae=ve.bgcolor||be,Re=dn.combine(dn.opacity(Ae)?Ae:dn.defaultLine,i),Pe=dn.combine(dn.opacity(be)?be:dn.defaultLine,i),Ye=ve.borderColor||dn.contrast(Re),Ve=uE(ve,R,a,n,y,he),Ue=Ve[0],qe=Ve[1],We=!!(qe&&qe!==Ue),Xe=Gt.isPureTex(Ue),er=We&&Gt.isPureTex(qe),nr=(Xe?1:0)+(er?1:0),rr;nr&&f.push(new Promise(function(Ke){rr=function(){--nr===0&&(he.node().parentNode&&ze(),Ke())}}));var Qe=he.select("text.nums").call(go.font,{family:ve.fontFamily||c,size:ve.fontSize||g,color:ve.fontColor||Ye,weight:ve.fontWeight||b,style:ve.fontStyle||h,variant:ve.fontVariant||_,textcase:ve.fontTextcase||T,lineposition:ve.fontLineposition||m,shadow:ve.fontShadow||k}).text(Ue).attr("data-notex",Xe?null:1).call(Gt.positionText,0,0).call(Gt.convertToTspans,t,Xe?rr:void 0),Ce=he.select("text.name");We?Ce.call(go.font,{family:ve.fontFamily||c,size:ve.fontSize||g,color:Pe,weight:ve.fontWeight||b,style:ve.fontStyle||h,variant:ve.fontVariant||_,textcase:ve.fontTextcase||T,lineposition:ve.fontLineposition||m,shadow:ve.fontShadow||k}).text(qe).attr("data-notex",er?null:1).call(Gt.positionText,0,0).call(Gt.convertToTspans,t,er?rr:void 0):(Ce.remove(),he.select("rect").remove()),ze();function ze(){he.attr("transform",""),Qe.call(Gt.positionText,0,0),Gt.repositionMathGroup(Qe),We&&(Ce.call(Gt.positionText,0,0),Gt.repositionMathGroup(Ce)),he.select("path").style({fill:Re,stroke:Ye});var Ke=ve.xa._offset+(ve.x0+ve.x1)/2,je=ve.ya._offset+(ve.y0+ve.y1)/2,wr=Math.abs(ve.x1-ve.x0),Xr=Math.abs(ve.y1-ve.y0),Tr=0,Pr=0;if(We){var at=b5(t,Ce);Tr=at.width+2*et,Pr=at.height+2*et}var Ar=b5(t,Qe),Hr=Ar.width/n._invScaleX,ot=Ar.height/n._invScaleY;ve.ty0=(p-Ar.top)/n._invScaleY,ve.bx=Hr+2*et,ve.by=Math.max(ot+2*et,Pr),ve.anchor="start",ve.txwidth=Hr,ve.tx2width=Tr,ve.offset=0;var Ir=(Hr+zt+et+Tr)*n._invScaleX,Jr,Xt;if(o)ve.pos=Ke,Jr=je+Xr/2+Ir<=E,Xt=je-Xr/2-Ir>=0,(ve.idealAlign==="top"||!Jr)&&Xt?(je-=Xr/2,ve.anchor="end"):Jr?(je+=Xr/2,ve.anchor="start"):ve.anchor="middle",ve.crossPos=je;else{if(ve.pos=je,Jr=Ke+wr/2+Ir<=D,Xt=Ke-wr/2-Ir>=0,(ve.idealAlign==="left"||!Jr)&&Xt)Ke-=wr/2,ve.anchor="end";else if(Jr)Ke+=wr/2,ve.anchor="start";else{ve.anchor="middle";var tt=Ir/2,Kr=Ke+tt-D,qt=Ke-tt;Kr>0&&(Ke-=Kr),qt<0&&(Ke+=-qt)}ve.crossPos=Ke}Qe.attr("text-anchor",ve.anchor),Tr&&Ce.attr("text-anchor",ve.anchor),he.attr("transform",m5(Ke,je)+(o?Toe(gE):""))}}),{hoverLabels:Se,commonLabelBoundingBox:B,mathjaxPromise:f.length?Promise.all(f):null}}function uE(e,r,t,n,a,o){var c,g;var i="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Zt.templateString(e.name,e.trace._meta)),i=dE(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),(g=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&g.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let b=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(b[u+"other"]=b[u+"Val"],b[u+"otherLabel"]=b[u+"Label"]),l=Zt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:b,locale:n._d3locale,template:f}),l=l.replace(zoe,(h,_)=>(i=dE(_,e.nameLength),""))}return[l,i]}function fE(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,g=n.maxX,b=n.minY,h=n.maxY,_=function(z){return z*t._invScaleX},T=function(z){return z*t._invScaleY};e.each(function(z){var F=z[a],L=z[o],P=F._id.charAt(0)==="x",B=F.range;f===0&&B&&B[0]>B[1]!==P&&(l=-1);var O=0,G=P?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var J=bE(z,r),j=z.anchor,V=j==="end"?-1:1,q,Z;if(j==="middle")q=z.crossPos+(P?T(J.y-z.by/2):_(z.bx/2+z.tx2width/2)),Z=q+(P?T(z.by):_(z.bx));else if(P)q=z.crossPos+T(zt+J.y)-T(z.by/2-zt),Z=q+T(z.by);else{var re=_(V*zt+J.x),$=re+_(V*z.bx);q=z.crossPos+Math.min(re,$),Z=z.crossPos+Math.max(re,$)}P?b!==void 0&&h!==void 0&&Math.min(Z,h)-Math.max(q,b)>1&&(L.side==="left"?(O=L._mainLinePosition,G=t.width):G=L._mainLinePosition):c!==void 0&&g!==void 0&&Math.min(Z,g)-Math.max(q,c)>1&&(L.side==="top"?(O=L._mainLinePosition,G=t.height):G=L._mainLinePosition)}s[f++]=[{datum:z,traceIndex:z.trace.index,dp:0,pos:z.pos,posref:z.posref,size:z.by*(P?Loe:1)/2,pmin:O,pmax:G}]}),s.sort(function(z,F){return z[0].posref-F[0].posref||l*(F[0].traceIndex-z[0].traceIndex)});var m,k,S,x,M,d,w;function y(z){var F=z[0],L=z[z.length-1];if(k=F.pmin-F.pos-F.dp+F.size,S=L.pos+L.dp+L.size-F.pmax,k>.01){for(M=z.length-1;M>=0;M--)z[M].dp+=k;m=!1}if(!(S<.01)){if(k<-.01){for(M=z.length-1;M>=0;M--)z[M].dp-=S;m=!1}if(m){var P=0;for(x=0;x<z.length;x++)d=z[x],d.pos+d.dp+d.size>F.pmax&&P++;for(x=z.length-1;x>=0&&!(P<=0);x--)d=z[x],d.pos>F.pmax-1&&(d.del=!0,P--);for(x=0;x<z.length&&!(P<=0);x++)if(d=z[x],d.pos<F.pmin+1)for(d.del=!0,P--,S=d.size*2,M=z.length-1;M>=0;M--)z[M].dp-=S;for(x=z.length-1;x>=0&&!(P<=0);x--)d=z[x],d.pos+d.dp+d.size>F.pmax&&(d.del=!0,P--)}}}for(;!m&&i<=u;){for(i++,m=!0,x=0;x<s.length-1;){var v=s[x],A=s[x+1],p=v[v.length-1],D=A[0];if(k=p.pos+p.dp+p.size-D.pos-D.dp+D.size,k>.01){for(M=A.length-1;M>=0;M--)A[M].dp+=k;for(v.push.apply(v,A),s.splice(x+1,1),w=0,M=v.length-1;M>=0;M--)w+=v[M].dp;for(S=w/v.length,M=v.length-1;M>=0;M--)v[M].dp-=S;m=!1}else x++}s.forEach(y)}for(x=s.length-1;x>=0;x--){var E=s[x];for(M=E.length-1;M>=0;M--){var R=E[M],I=R.datum;I.offset=R.dp,I.del=R.del}}}function bE(e,r){var t=0,n=e.offset;return r&&(n*=-Roe,t=e.offset*Doe),{x:t,y:n}}function Noe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(zt+et),n=t+r*(e.txwidth+et),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+et),{alignShift:r,textShiftX:t,text2ShiftX:n}}function a2(e,r,t,n){var a=function(i){return i*t},o=function(i){return i*n};e.each(function(i){var l=Oo.select(this);if(i.del)return l.remove();var u=l.select("text.nums"),s=i.anchor,f=s==="end"?-1:1,c=Noe(i),g=bE(i,r),b=g.x,h=g.y,_=s==="middle",T="hoverlabel"in i.trace?i.trace.hoverlabel.showarrow:!0,m;_?m="M-"+a(i.bx/2+i.tx2width/2)+","+o(h-i.by/2)+"h"+a(i.bx)+"v"+o(i.by)+"h-"+a(i.bx)+"Z":T?m="M0,0L"+a(f*zt+b)+","+o(zt+h)+"v"+o(i.by/2-zt)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*zt+b)+"V"+o(h-zt)+"Z":m="M"+a(f*zt+b)+","+o(h-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=b+c.textShiftX,S=h+i.ty0-i.by/2+et,x=i.textAlign||"auto";x!=="auto"&&(x==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=_?-i.bx/2-i.tx2width/2+et:-i.bx-et):x==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=_?i.bx/2-i.tx2width/2-et:i.bx+et)),u.call(Gt.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(Gt.positionText,a(c.text2ShiftX+c.alignShift*et+b),o(h+i.ty0-i.by/2+et)),l.select("rect").call(go.setRect,a(c.text2ShiftX+(c.alignShift-1)*i.tx2width/2+b),o(h-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function qoe(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(g){return g||Bo(g)&&g===0}var l=Array.isArray(t)?function(g,b){var h=Zt.castOption(a,t,g);return i(h)?h:Zt.extractOption({},n,"",b)}:function(g,b){return Zt.extractOption(o,n,g,b)};function u(g,b,h){var _=l(b,h);i(_)&&(e[g]=_)}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=Zt.constrain(e.x0,0,e.xa._length),e.x1=Zt.constrain(e.x1,0,e.xa._length),e.y0=Zt.constrain(e.y0,0,e.ya._length),e.y1=Zt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ii.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:Ii.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=Ii.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+Ii.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=Ii.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ii.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 cE(e,r,t){let n=r._id.charAt(0)==="y",a=1/0,o=-1/0;for(let i of r._counterAxes||[]){let l=Ii.getFromId(e,i);if(!l)continue;let u=l._padStart||0,s=l._padEnd||0;n?(a=Math.min(a,t.l+l.domain[0]*t.w+u),o=Math.max(o,t.l+l.domain[1]*t.w-s)):(a=Math.min(a,t.t+(1-l.domain[1])*t.h+u),o=Math.max(o,t.t+(1-l.domain[0])*t.h-s))}if(r.anchor==="free"){let i=n?t.l+r.position*t.w:t.t+(1-r.position)*t.h;a=Math.min(a,i),o=Math.max(o,i)}return[a,o]}function vE(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=dn.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var g=r.hLinePoint,b,h;s=g&&g.xa,f=g&&g.ya;var _=f.spikesnap;_==="cursor"?(b=i.pointerX,h=i.pointerY):(b=s._offset+g.x,h=f._offset+g.y);var T=dn.wcagContrast(g.color,c)<1.5?dn.contrast(c):g.color,m=f.spikemode,k=f.spikethickness,S=f.spikecolor||T,x=Ii.getPxPosition(e,f),M,d;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(M=x,d=b),m.indexOf("across")!==-1){let L=cE(e,f,o);M=L[0],d=L[1]}n.insert("line",":first-child").attr({x1:M,x2:d,y1:h,y2:h,"stroke-width":k,stroke:S,"stroke-dasharray":go.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:M,x2:d,y1:h,y2:h,"stroke-width":k+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}m.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?k:-k),cy:h,r:k,fill:S}).classed("spikeline",!0)}if(u){var w=r.vLinePoint,y,v;s=w&&w.xa,f=w&&w.ya;var A=s.spikesnap;A==="cursor"?(y=i.pointerX,v=i.pointerY):(y=s._offset+w.x,v=f._offset+w.y);var p=dn.wcagContrast(w.color,c)<1.5?dn.contrast(c):w.color,D=s.spikemode,E=s.spikethickness,R=s.spikecolor||p,I=Ii.getPxPosition(e,s),z,F;if(D.indexOf("toaxis")!==-1||D.indexOf("across")!==-1){if(D.indexOf("toaxis")!==-1&&(z=I,F=v),D.indexOf("across")!==-1){let L=cE(e,s,o);z=L[0],F=L[1]}n.insert("line",":first-child").attr({x1:y,x2:y,y1:z,y2:F,"stroke-width":E,stroke:R,"stroke-dasharray":go.dashStyle(s.spikedash,E)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:y,x2:y,y1:z,y2:F,"stroke-width":E+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}D.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:y,cy:I-(s.side!=="top"?E:-E),r:E,fill:R}).classed("spikeline",!0)}}}function Boe(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 hE(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function dE(e,r){return Gt.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Ooe(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;i<e.length;i++){var l=e[i];Us.traceIs(l.trace,"bar-like")||Us.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 pE(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 xE=e=>e.offsetTop+e.clientTop,_E=e=>e.offsetLeft+e.clientLeft;function n2(e,r){var t=e._fullLayout,n=r.getBoundingClientRect(),a=n.left,o=n.top,i=a+n.width,l=o+n.height,u=Zt.apply3DTransform(t._invTransform)(a,o),s=Zt.apply3DTransform(t._invTransform)(i,l),f=u[0],c=u[1],g=s[0],b=s[1];return{x:f,y:c,width:g-f,height:b-c,top:Math.min(c,b),left:Math.min(f,g),right:Math.max(f,g),bottom:Math.max(c,b)}}});var i2=xe((K6e,wE)=>{"use strict";var Uoe=tr(),Hoe=Zr(),Voe=uo().isUnifiedHover;wE.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&&Voe(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=Hoe.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),Uoe.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var TE=xe((Q6e,ME)=>{"use strict";var Goe=tr(),Yoe=i2(),Xoe=fs();ME.exports=function(r,t){function n(a,o){return Goe.coerce(r,t,Xoe,a,o)}Yoe(r,t,n)}});var SE=xe((j6e,kE)=>{"use strict";var AE=tr(),Woe=eh(),Zoe=i2();kE.exports=function(r,t,n,a){function o(l,u){return AE.coerce(r,t,Woe,l,u)}var i=AE.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),Zoe(r,t,o,i)}});var M5=xe((e_e,CE)=>{"use strict";var Joe=tr(),$oe=fs();CE.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:Joe.coerce(r,t,$oe,a,o)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var DE=xe((r_e,LE)=>{"use strict";var EE=tr(),Koe=fs(),Qoe=M5(),joe=i2();LE.exports=function(r,t){function n(s,f){return EE.coerce(r,t,Koe,s,f)}var a=Qoe(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"),joe(r,t,n),EE.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var PE=xe((t_e,FE)=>{"use strict";var T5=tr(),RE=Cr();FE.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return T5.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o<t.length;o++){var i=t[o],l=i[0].trace;if(!RE.traceIs(l,"pie-like")){var u=RE.traceIs(l,"2dMap")?ele:T5.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 ele(e,r,t,n){n=n||T5.identity,Array.isArray(e)&&(r[0][t]=n(e))}});var NE=xe((n_e,zE)=>{"use strict";var rle=Cr(),IE=uo(),tle=w5().hover;zE.exports=function(r,t,n){var a=rle.getComponentMethod("annotations","onClick")(r,r._hoverdata),o=r._fullLayout;n!==void 0&&tle(r,t,n,!0);function i(){var u,s,f,c,g,b;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&&IE.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&IE.c2dApply(r._hoverYAxes,r._hoverYVals)),(g=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(b=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 yo=xe((a_e,OE)=>{"use strict";var nle=lt(),o2=tr(),ale=Pi(),fc=uo(),qE=fs(),BE=w5();OE.exports={moduleType:"component",name:"fx",constants:(pf(),or(df)),schema:{layout:qE},attributes:eh(),layoutAttributes:qE,supplyLayoutGlobalDefaults:TE(),supplyDefaults:SE(),supplyLayoutDefaults:DE(),calc:PE(),getDistanceFunction:fc.getDistanceFunction,getClosest:fc.getClosest,inbox:fc.inbox,quadrature:fc.quadrature,appendArrayPointValue:fc.appendArrayPointValue,castHoverOption:ole,castHoverinfo:lle,hover:BE.hover,unhover:ale.unhover,loneHover:BE.loneHover,loneUnhover:ile,click:NE()};function ile(e){var r=o2.isD3Selection(e)?e:nle.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function ole(e,r,t){return o2.castOption(e,r,"hoverlabel."+t)}function lle(e,r,t){function n(a){return o2.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return o2.castOption(e,t,"hoverinfo",n)}});var vu=xe(Uo=>{"use strict";Uo.selectMode=function(e){return e==="lasso"||e==="select"};Uo.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Uo.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Uo.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Uo.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Uo.selectingOrDrawing=function(e){return Uo.freeMode(e)||Uo.rectMode(e)}});var l2=xe((o_e,UE)=>{"use strict";UE.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 s2=xe((l_e,HE)=>{"use strict";HE.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 u2={};Ht(u2,{CIRCLE_SIDES:()=>sle,SQRT2:()=>ple,cos45:()=>hle,i000:()=>ule,i090:()=>fle,i180:()=>cle,i270:()=>vle,sin45:()=>dle});var sle,ule,fle,cle,vle,hle,dle,ple,f2=Ut(()=>{"use strict";sle=32,ule=0,fle=8,cle=16,vle=24,hle=Math.cos(Math.PI/4),dle=Math.sin(Math.PI/4),ple=Math.sqrt(2)});var c2=xe((s_e,GE)=>{"use strict";var gle=tr().strTranslate;function VE(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 yle(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 mle(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return VE(e,t[r])}}function ble(e){return gle(e.xaxis._offset,e.yaxis._offset)}GE.exports={p2r:VE,r2p:yle,axValue:mle,getTransform:ble}});var Fl=xe(Ho=>{"use strict";var xle=fm(),WE=(f2(),or(u2)),hu=WE.CIRCLE_SIDES,A5=WE.SQRT2,ZE=c2(),YE=ZE.p2r,XE=ZE.r2p,_le=[0,3,4,5,6,1,2],wle=[0,3,4,1,2];Ho.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=wle[u]:i==="C"&&(s=_le[u]),t+=e[n][o][s],u>0&&u<l-1&&(t+=",")}}return t};Ho.readPaths=function(e,r,t,n){var a=xle(e),o=[],i=-1,l=function(){i++,o[i]=[]},u,s=0,f=0,c,g,b=function(){c=s,g=f};b();for(var h=0;h<a.length;h++){var _=[],T,m,k,S,x=a[h][0],M=x;switch(x){case"M":l(),s=+a[h][1],f=+a[h][2],_.push([M,s,f]),b();break;case"Q":case"S":T=+a[h][1],k=+a[h][2],s=+a[h][3],f=+a[h][4],_.push([M,s,f,T,k]);break;case"C":T=+a[h][1],k=+a[h][2],m=+a[h][3],S=+a[h][4],s=+a[h][5],f=+a[h][6],_.push([M,s,f,T,k,m,S]);break;case"T":case"L":s=+a[h][1],f=+a[h][2],_.push([M,s,f]);break;case"H":M="L",s=+a[h][1],_.push([M,s,f]);break;case"V":M="L",f=+a[h][1],_.push([M,s,f]);break;case"A":M="L";var d=+a[h][1],w=+a[h][2];+a[h][4]||(d=-d,w=-w);var y=s-d,v=f;for(u=1;u<=hu/2;u++){var A=2*Math.PI*u/hu;_.push([M,y+d*Math.cos(A),v+w*Math.sin(A)])}break;case"Z":(s!==c||f!==g)&&(s=c,f=g,_.push([M,s,f]));break}for(var p=(t||{}).domain,D=r._fullLayout._size,E=t&&t.xsizemode==="pixel",R=t&&t.ysizemode==="pixel",I=n===!1,z=0;z<_.length;z++){for(u=0;u+2<7;u+=2){var F=_[z][u+1],L=_[z][u+2];F===void 0||L===void 0||(s=F,f=L,t&&(t.xaxis&&t.xaxis.p2r?(I&&(F-=t.xaxis._offset),E?F=XE(t.xaxis,t.xanchor)+F:F=YE(t.xaxis,F)):(I&&(F-=D.l),p?F=p.x[0]+F/D.w:F=F/D.w),t.yaxis&&t.yaxis.p2r?(I&&(L-=t.yaxis._offset),R?L=XE(t.yaxis,t.yanchor)-L:L=YE(t.yaxis,L)):(I&&(L-=D.t),p?L=p.y[1]-L/D.h:L=1-L/D.h)),_[z][u+1]=F,_[z][u+2]=L)}o[i].push(_[z].slice())}}return o};function cc(e,r){return Math.abs(e-r)<=1e-6}function v2(e,r){var t=r[1]-e[1],n=r[2]-e[2];return Math.sqrt(t*t+n*n)}Ho.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(!cc(n,a))return!1;var o=e[0][t]-e[3][t],i=e[1][t]-e[2][t];if(!cc(o,i))return!1}return!cc(e[0][1],e[1][1])&&!cc(e[0][1],e[3][1])?!1:!!(v2(e[0],e[1])*v2(e[0],e[3]))};Ho.pointsOnEllipse=function(e){var r=e.length;if(r!==hu+1)return!1;r=hu;for(var t=0;t<r;t++){var n=(r*2-t)%r,a=(r/2+n)%r,o=(r/2+t)%r;if(!cc(v2(e[t],e[o]),v2(e[n],e[a])))return!1}return!0};Ho.handleEllipse=function(e,r,t){if(!e)return[r,t];var n=Ho.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/A5),l||(l=i=i/A5);for(var u=[],s=0;s<hu;s++){var f=s*2*Math.PI/hu;u.push([a+i*Math.cos(f),o+l*Math.sin(f)])}return u};Ho.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=A5;return o*=s,i*=s,{x0:l-o,y0:u-i,x1:l+o,y1:u+i}};Ho.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 p2=xe((f_e,nL)=>{"use strict";var JE=mn(),eL=vu(),Mle=eL.drawMode,Tle=eL.openMode,du=(f2(),or(u2)),$E=du.i000,KE=du.i090,QE=du.i180,jE=du.i270,Ale=du.cos45,kle=du.sin45,rL=c2(),h2=rL.p2r,Pl=rL.r2p,Sle=xl(),Cle=Sle.clearOutline,d2=Fl(),Ele=d2.readPaths,Lle=d2.writePaths,Dle=d2.ellipseOver,Rle=d2.fixDatesForPaths;function Fle(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(!Mle(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=tL(e,r,o);Cle(n);for(var f=r.editHelpers,c=(f||{}).modifyItem,g=[],b=0;b<i.length;b++){var h=n._fullLayout.shapes[b];if(g[b]=h._input,a!==void 0&&b===n._fullLayout._activeShapeIndex){var _=s;switch(h.type){case"line":case"rect":case"circle":var T=JE.getFromId(n,h.xref);h.xref.charAt(0)==="x"&&T.type.includes("category")?(c("x0",_.x0-(h.x0shift||0)),c("x1",_.x1-(h.x1shift||0))):(c("x0",_.x0),c("x1",_.x1));var m=JE.getFromId(n,h.yref);h.yref.charAt(0)==="y"&&m.type.includes("category")?(c("y0",_.y0-(h.y0shift||0)),c("y1",_.y1-(h.y1shift||0))):(c("y0",_.y0),c("y1",_.y1));break;case"path":c("path",_.path);break}}}return a===void 0?(g.push(s),g):f?f.getUpdateObj():{}}}}function tL(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,g=!!l.domain||!l.yaxis,b=Tle(t),h=Ele(o,a,l,u),_={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:g?"paper":f._id,layer:i.layer,opacity:i.opacity,line:{color:i.line.color,width:i.line.width,dash:i.line.dash}};b||(_.fillcolor=i.fillcolor,_.fillrule=i.fillrule);var T;if(h.length===1&&(T=h[0]),T&&T.length===5&&t==="drawrect")_.type="rect",_.x0=T[0][1],_.y0=T[0][2],_.x1=T[2][1],_.y1=T[2][2];else if(T&&t==="drawline")_.type="line",_.x0=T[0][1],_.y0=T[0][2],_.x1=T[1][1],_.y1=T[1][2];else if(T&&t==="drawcircle"){_.type="circle";var m=T[$E][1],k=T[KE][1],S=T[QE][1],x=T[jE][1],M=T[$E][2],d=T[KE][2],w=T[QE][2],y=T[jE][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=Pl(l.xaxis,m),k=Pl(l.xaxis,k),S=Pl(l.xaxis,S),x=Pl(l.xaxis,x)),A&&(M=Pl(l.yaxis,M),d=Pl(l.yaxis,d),w=Pl(l.yaxis,w),y=Pl(l.yaxis,y));var p=(k+x)/2,D=(M+w)/2,E=(x-k+S-m)/2,R=(y-d+w-M)/2,I=Dle({x0:p,y0:D,x1:p+E*Ale,y1:D+R*kle});v&&(I.x0=h2(l.xaxis,I.x0),I.x1=h2(l.xaxis,I.x1)),A&&(I.y0=h2(l.yaxis,I.y0),I.y1=h2(l.yaxis,I.y1)),_.x0=I.x0,_.y0=I.y0,_.x1=I.x1,_.y1=I.y1}else _.type="path",s&&f&&Rle(h,s,f),_.path=Lle(h),T=null;return _}nL.exports={newShapes:Fle,createShapeObj:tL}});var S5=xe((c_e,aL)=>{"use strict";var Ple=vu(),Ile=Ple.selectMode,zle=xl(),Nle=zle.clearOutline,k5=Fl(),qle=k5.readPaths,Ble=k5.writePaths,Ole=k5.fixDatesForPaths;aL.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,g=(o.layout||{}).selections||[];if(!Ile(c)&&f!==void 0){var b=o._fullLayout._activeSelectionIndex;if(b<g.length)switch(o._fullLayout.selections[b].type){case"rect":c="select";break;case"path":c="lasso";break}}var h=qle(a,o,l,f),_={xref:u._id,yref:s._id,opacity:i.opacity,line:{color:i.line.color,width:i.line.width,dash:i.line.dash}},T;h.length===1&&(T=h[0]),T&&T.length===5&&c==="select"?(_.type="rect",_.x0=T[0][1],_.y0=T[0][2],_.x1=T[2][1],_.y1=T[2][2]):(_.type="path",u&&s&&Ole(h,u,s),_.path=Ble(h),T=null),Nle(o);for(var m=t.editHelpers,k=(m||{}).modifyItem,S=[],x=0;x<g.length;x++){var M=o._fullLayout.selections[x];if(!M){S[x]=M;continue}if(S[x]=M._input,f!==void 0&&x===o._fullLayout._activeSelectionIndex){var d=_;switch(M.type){case"rect":k("x0",d.x0),k("x1",d.x1),k("y0",d.y0),k("y1",d.y1);break;case"path":k("path",d.path);break}}}return f===void 0?(S.push(_),S):m?m.getUpdateObj():{}}}}});var vc={};Ht(vc,{numParams:()=>Yle,paramIsX:()=>Vle,paramIsY:()=>Gle,paramRE:()=>Hle,segmentRE:()=>Ule});var Ule,Hle,Vle,Gle,Yle,hc=Ut(()=>{"use strict";Ule=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Hle=/[^\s,]+/g,Vle={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:{}},Gle={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:{}},Yle={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var zl=xe(Pn=>{"use strict";var bo=(hc(),or(vc)),iL=tr(),Il=Vt();Pn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Pn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Pn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Pn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Pn.extractPathCoords=function(e,r,t){var n=[],a=e.match(bo.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.slice(1).match(bo.paramRE);if(!(!l||l.length<i)){var u=l[i],s=t?u:iL.cleanNumber(u);n.push(s)}}}),n};Pn.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let n=r.match(bo.segmentRE);if(!n)return 0;let a=t==="x"?bo.paramIsX:bo.paramIsY;return n.reduce((o,i)=>{let l=i.charAt(0),u=a[l].drawn!==void 0;return o+(u?1:0)},0)};Pn.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=Pn.shapePositionToRange(r);i=function(u){var s=mo(r,t);return r._offset+r.r2p(l(u,!0))+s},r.type==="date"&&(i=Pn.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};Pn.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=Pn.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};Pn.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};Pn.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}};Pn.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}};Pn.getPathString=function(e,r){let t=r.type,n=Il.getRefType(r.xref),a=Il.getRefType(r.yref),o=e._fullLayout._size;var i,l,u,s,f,c,g,b,h,_,T,m;function k(A,p,D,E){var R;if(A)if(p==="domain")E?R=function(I){return A._offset+A._length*(1-I)}:R=function(I){return A._offset+A._length*I};else{let I=Pn.shapePositionToRange(A);R=function(z){return A._offset+A.r2p(I(z,!0))},D==="path"&&A.type==="date"&&(R=Pn.decodeDate(R))}else E?R=function(I){return o.t+o.h*(1-I)}:R=function(I){return o.l+o.w*I};return R}if(n==="array"?(g=[],i=r.xref.map(function(A){return Il.getFromId(e,A)}),g=r.xref.map(function(A,p){return k(i[p],Il.getRefType(A),t,!1)})):(i=Il.getFromId(e,r.xref),g=k(i,n,t,!1)),a==="array"?(b=[],l=r.yref.map(function(A){return Il.getFromId(e,A)}),b=r.yref.map(function(A,p){return k(l[p],Il.getRefType(A),t,!0)})):(l=Il.getFromId(e,r.yref),b=k(l,a,t,!0)),t==="path")return Xle(r,g,b);if(n==="array")u=mo(i[0],r.x0shift),s=mo(i[1],r.x1shift),h=g[0](r.x0)+u,_=g[1](r.x1)+s;else if(u=mo(i,r.x0shift),s=mo(i,r.x1shift),r.xsizemode==="pixel"){let A=g(r.xanchor);h=A+r.x0+u,_=A+r.x1+s}else h=g(r.x0)+u,_=g(r.x1)+s;if(a==="array")f=mo(l[0],r.y0shift),c=mo(l[1],r.y1shift),T=b[0](r.y0)+f,m=b[1](r.y1)+c;else if(f=mo(l,r.y0shift),c=mo(l,r.y1shift),r.ysizemode==="pixel"){let A=b(r.yanchor);T=A-r.y0+f,m=A-r.y1+c}else T=b(r.y0)+f,m=b(r.y1)+c;if(t==="line")return"M"+h+","+T+"L"+_+","+m;if(t==="rect")return"M"+h+","+T+"H"+_+"V"+m+"H"+h+"Z";var S=(h+_)/2,x=(T+m)/2,M=Math.abs(S-h),d=Math.abs(x-T),w="A"+M+","+d,y=S+M+","+x,v=S+","+(x-d);return"M"+y+w+" 0 1,1 "+v+w+" 0 0,1 "+y+"Z"};function Xle(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(bo.segmentRE,function(g){var b=0,h=g.charAt(0),_=bo.paramIsX[h],T=bo.paramIsY[h],m=bo.numParams[h];let k=_.drawn!==void 0,S=T.drawn!==void 0,x=u?r[f]:r,M=s?t[c]:t;var d=g.slice(1).replace(bo.paramRE,function(w){return _[b]?a==="pixel"?w=x(i)+Number(w):w=x(w):T[b]&&(o==="pixel"?w=M(l)-Number(w):w=M(w)),b++,b>m&&(w="X"),w});return b>m&&(d=d.replace(/[\s,]*X.*/,""),iL.log("Ignoring extra params in segment "+g)),k&&f++,S&&c++,h+d})}Pn.getPixelShift=mo;function mo(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 C5=xe((h_e,sL)=>{"use strict";var Wle=tr(),xo=Vt(),oL=Qn(),lL=At(),Zle=Fl().readPaths,Vs=zl(),Jle=Vs.getPathString,dc=Ih(),$le=(Kn(),or($n)).FROM_TL;sL.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=xo.getFromId(r,n.xref),u=xo.getFromId(r,n.yref);let O=Array.isArray(n.xref),G=Array.isArray(n.yref);for(var s in dc){var f=typeof dc[s]=="function",c=!O||dc.simpleXVariables.includes(s),g=!G||dc.simpleYVariables.includes(s);if(f&&c&&g){var b=dc[s](n,l,u);b!==void 0&&(i[s]=b)}}}o=Wle.texttemplateStringForShapes({data:[i],fallback:n.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:n.label.texttemplate})}else o=n.label.text;var h={"data-index":t},_=n.label.font,T={"data-notex":1},m=a.append("g").attr(h).classed("shape-label",!0),k=m.append("text").attr(T).classed("shape-label-text",!0).text(o),S,x,M,d;if(n.path){var w=Jle(r,n),y=Zle(w,r);S=1/0,M=1/0,x=-1/0,d=-1/0;for(var v=0;v<y.length;v++)for(var A=0;A<y[v].length;A++)for(var p=y[v][A],D=1;D<p.length;D+=2){var E=p[D],R=p[D+1];S=Math.min(S,E),x=Math.max(x,E),M=Math.min(M,R),d=Math.max(d,R)}}else{let O=Array.isArray(n.xref),G=Array.isArray(n.yref),J=xo.getFromId(r,O?n.xref[0]:n.xref),j=xo.getFromId(r,O?n.xref[1]:n.xref),V=xo.getFromId(r,G?n.yref[0]:n.yref),q=xo.getFromId(r,G?n.yref[1]:n.yref),Z=xo.getRefType(O?n.xref[0]:n.xref),re=xo.getRefType(O?n.xref[1]:n.xref),$=xo.getRefType(G?n.yref[0]:n.yref),ae=xo.getRefType(G?n.yref[1]:n.yref),Q=(ue,ee,ie,fe)=>Vs.getDataToPixel(r,ie,ee,!1,fe)(ue),te=(ue,ee,ie,fe)=>Vs.getDataToPixel(r,ie,ee,!0,fe)(ue);if(n.xsizemode==="pixel"){let ue=Q(n.xanchor,void 0,J,Z),ee=Vs.getPixelShift(J,n.x0shift),ie=Vs.getPixelShift(J,n.x1shift);S=ue+n.x0+ee,x=ue+n.x1+ie}else S=Q(n.x0,n.x0shift,J,Z),x=Q(n.x1,n.x1shift,j,re);if(n.ysizemode==="pixel"){let ue=te(n.yanchor,void 0,V,$),ee=Vs.getPixelShift(V,n.y0shift),ie=Vs.getPixelShift(V,n.y1shift);M=ue-n.y0+ee,d=ue-n.y1+ie}else M=te(n.y0,n.y0shift,V,$),d=te(n.y1,n.y1shift,q,ae)}var I=n.label.textangle;I==="auto"&&(n.type==="line"?I=Kle(S,M,x,d):I=0),k.call(function(O){return O.call(lL.font,_).attr({}),oL.convertToTspans(O,r),O});var z=lL.bBox(k.node()),F=Qle(S,M,x,d,n,I,z),L=F.textx,P=F.texty,B=F.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[B],y:P,x:L,transform:"rotate("+I+","+L+","+P+")"}).call(oL.positionText,L,P)}};function Kle(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 Qle(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,g=Math.sin(c),b=Math.cos(c),h=a.label.xanchor,_=a.label.yanchor,T,m,k,S;if(f==="line"){l==="start"?(T=e,m=r):l==="end"?(T=t,m=n):(T=(e+t)/2,m=(r+n)/2),h==="auto"&&(l==="start"?u==="auto"?t>e?h="left":t<e?h="right":h="center":t>e?h="right":t<e?h="left":h="center":l==="end"?u==="auto"?t>e?h="right":t<e?h="left":h="center":t>e?h="left":t<e?h="right":h="center":h="center");var x={left:1,center:0,right:-1},M={bottom:-1,middle:0,top:1};if(u==="auto"){var d=M[_];k=-s*g*d,S=s*b*d}else{var w=x[h],y=M[_];k=s*w,S=s*y}T=T+k,m=m+S}else k=s+3,l.indexOf("right")!==-1?(T=Math.max(e,t)-k,h==="auto"&&(h="right")):l.indexOf("left")!==-1?(T=Math.min(e,t)+k,h==="auto"&&(h="left")):(T=(e+t)/2,h==="auto"&&(h="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,_==="bottom"?m=m-S:_==="top"&&(m=m+S);var v=$le[_],A=a.label.font.size,p=i.height,D=(p*v-A)*g,E=-(p*v-A)*b;return{textx:T+D,texty:m+E,xanchor:h}}});var m2=xe((d_e,gL)=>{"use strict";var jle=tr(),ese=jle.strTranslate,uL=Pi(),vL=vu(),rse=vL.drawMode,hL=vL.selectMode,dL=Cr(),fL=Zr(),y2=(f2(),or(u2)),tse=y2.i000,nse=y2.i090,ase=y2.i180,ise=y2.i270,ose=xl(),pL=ose.clearOutlineControllers,L5=Fl(),g2=L5.pointsOnRectangle,E5=L5.pointsOnEllipse,lse=L5.writePaths,sse=p2().newShapes,use=p2().createShapeObj,fse=S5(),cse=C5();gL.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),(E5(r[0])||n.hasText)&&l({redrawing:!0})}function l(F){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=sse(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=fse(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&dL.call((F||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,c=rse(f),g=hL(f);(c||g)&&(o._fullLayout._outlining=!0),pL(o),t.attr("d",lse(r));var b,h,_,T,m;if(!a&&(n.isActiveShape||n.isActiveSelection)){m=vse([],r);var k=s.append("g").attr("class","outline-controllers");A(k),z()}if(c&&n.hasText){var S=s.select(".label-temp"),x=use(t,n,n.dragmode);cse(o,"label-temp",x,S)}function M(F){_=+F.srcElement.getAttribute("data-i"),T=+F.srcElement.getAttribute("data-j"),b[_][T].moveFn=d}function d(F,L){if(r.length){var P=m[_][T][1],B=m[_][T][2],O=r[_],G=O.length;if(g2(O)){var J=F,j=L;if(n.isActiveSelection){var V=cL(O,T);V[1]===O[T][1]?j=0:J=0}for(var q=0;q<G;q++)if(q!==T){var Z=O[q];Z[1]===O[T][1]&&(Z[1]=P+J),Z[2]===O[T][2]&&(Z[2]=B+j)}if(O[T][1]=P+J,O[T][2]=B+j,!g2(O))for(var re=0;re<G;re++)for(var $=0;$<O[re].length;$++)O[re][$]=m[_][re][$]}else O[T][1]=P+F,O[T][2]=B+L;i()}}function w(){l()}function y(){if(r.length&&r[_]&&r[_].length){for(var F=[],L=0;L<r[_].length;L++)L!==T&&F.push(r[_][L]);F.length>1&&!(F.length===2&&F[1][0]==="Z")&&(T===0&&(F[0][0]="M"),r[_]=F,i(),l())}}function v(F,L){if(F===2){_=+L.srcElement.getAttribute("data-i"),T=+L.srcElement.getAttribute("data-j");var P=r[_];!g2(P)&&!E5(P)&&y()}}function A(F){b=[];for(var L=0;L<r.length;L++){var P=r[L],B=g2(P),O=!B&&E5(P);b[L]=[];for(var G=P.length,J=0;J<G;J++)if(P[J][0]!=="Z"&&!(O&&J!==tse&&J!==nse&&J!==ase&&J!==ise)){var j=B&&n.isActiveSelection,V;j&&(V=cL(P,J));var q=P[J][1],Z=P[J][2],re=F.append(j?"rect":"circle").attr("data-i",L).attr("data-j",J).style({fill:fL.background,stroke:fL.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(j){var $=V[1]-q,ae=V[2]-Z,Q=ae?5:Math.max(Math.min(25,Math.abs($)-5),5),te=$?5:Math.max(Math.min(25,Math.abs(ae)-5),5);re.classed(ae?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",Q).attr("height",te).attr("x",q-Q/2).attr("y",Z-te/2).attr("transform",ese($/2,ae/2))}else re.classed("cursor-grab",!0).attr("r",5).attr("cx",q).attr("cy",Z);b[L][J]={element:re.node(),gd:o,prepFn:M,doneFn:w,clickFn:v},uL.init(b[L][J])}}}function p(F,L){if(r.length)for(var P=0;P<r.length;P++)for(var B=0;B<r[P].length;B++)for(var O=0;O+2<r[P][B].length;O+=2)r[P][B][O+1]=m[P][B][O+1]+F,r[P][B][O+2]=m[P][B][O+2]+L}function D(F,L){p(F,L),i()}function E(F){_=+F.srcElement.getAttribute("data-i"),_||(_=0),h[_].moveFn=D}function R(){l()}function I(F){F===2&&hse(o)}function z(){if(h=[],!!r.length){var F=0;h[F]={element:t[0][0],gd:o,prepFn:E,doneFn:R,clickFn:I},uL.init(h[F])}}};function vse(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 cL(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 hse(e){if(hL(e._fullLayout.dragmode)){pL(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},dL.call("_guiRelayout",e,{selections:n})}}}});var M2=xe((p_e,kL)=>{"use strict";var dse=lt(),wL=Cr(),R5=tr(),Gs=Vt(),pse=Fl().readPaths,gse=m2(),x2=C5(),ML=xl().clearOutlineControllers,D5=Zr(),_2=At(),yse=Tt().arrayEditor,yL=Pi(),mL=yo(),bL=Dl(),Ys=(hc(),or(vc)),Ra=zl(),F5=Ra.getPathString;kL.exports={draw:P5,drawOne:TL,eraseActiveShape:wse,drawLabel:x2};function P5(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&&TL(e,a)}function b2(e){return!!e._fullLayout._outlining}function w2(e){return!e._context.edits.shapePosition}function TL(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=Ra.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=F5(e,n),f={"data-index":r,"fill-rule":n.fillrule,d:s},c=n.opacity,g=n.fillcolor,b=n.line.width?n.line.color:"rgba(0,0,0,0)",h=n.line.width,_=n.line.dash;!h&&n.editable===!0&&(h=5,_="solid");var T=s[s.length-1]!=="Z",m=w2(e)&&n.editable&&e._fullLayout._activeShapeIndex===r;m&&(g=T?"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(D5.stroke,b).call(D5.fill,g).call(_2.dashLine,_,h);AL(k,e,n),x2(e,r,n,k);var x;if((m||e._context.edits.shapePosition)&&(x=yse(e.layout,"shapes",n)),m){S.style({cursor:"move"});var M={element:S.node(),plotinfo:a,gd:e,editHelpers:x,hasText:n.label.text||n.label.texttemplate,isActiveShape:!0},d=pse(s,e);gse(d,S,M)}else e._context.edits.shapePosition?xse(e,S,n,r,u,x):n.editable===!0&&S.style("pointer-events",T||D5.opacity(g)*c<=.5?"stroke":"all");S.node().addEventListener("click",function(){return _se(e,S)}),mse(e,S,a)}}function mse(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&&mL.hover(e,i,t.id)}}),n.addEventListener("click",o=>{if(!e._dragged&&e._fullLayout.clickanywhere){let i=a(o);i&&mL.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=bse(r,n,a);R5.ensureSingleById(r._fullLayout._clips,"clipPath",o,function(l){l.append("rect")}).select("rect").attr(i),_2.setClipUrl(e,o,r)}else{let o=(n+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");_2.setClipUrl(e,o?"clip"+r._fullLayout._uid+o:null,r)}}function bse(e,r,t){let n=e._fullLayout._size;function a(l,u){let s=(Array.isArray(l)?l:[l]).map(g=>Gs.getFromId(e,g)).filter(Boolean);if(!s.length)return u?[n.t,n.t+n.h]:[n.l,n.l+n.w];let f=s.map(function(g){return g._offset}),c=s.map(function(g){return g._offset+g._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 xse(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",g=o.modifyItem,b,h,_,T,m,k,S,x,M,d,w,y,v,A,p,D=dse.select(r.node().parentNode),E=Gs.getFromId(e,t.xref),R=Gs.getRefType(t.xref),I=Gs.getFromId(e,t.yref),z=Gs.getRefType(t.yref),F=t.x0shift,L=t.x1shift,P=t.y0shift,B=t.y1shift,O=function(ke,ge){var Ee=Ra.getDataToPixel(e,E,ge,!1,R);return Ee(ke)},G=function(ke,ge){var Ee=Ra.getDataToPixel(e,I,ge,!0,z);return Ee(ke)},J=Ra.getPixelToData(e,E,!1,R),j=Ra.getPixelToData(e,I,!0,z),V=re(),q={element:V.node(),gd:e,prepFn:Q,doneFn:te,clickFn:ue},Z;yL.init(q),V.node().onmousemove=ae;function re(){return f?$():r}function $(){var ke=10,ge=Math.max(t.line.width,ke),Ee=a.append("g").attr("data-index",n).attr("drag-helper",!0);Ee.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ge,"stroke-opacity":"0"});var Le={"fill-opacity":"0"},se=Math.max(ge/2,ke);return Ee.append("circle").attr({"data-line-point":"start-point",cx:u?O(t.xanchor)+t.x0:O(t.x0,F),cy:s?G(t.yanchor)-t.y0:G(t.y0,P),r:se}).style(Le).classed("cursor-grab",!0),Ee.append("circle").attr({"data-line-point":"end-point",cx:u?O(t.xanchor)+t.x1:O(t.x1,L),cy:s?G(t.yanchor)-t.y1:G(t.y1,B),r:se}).style(Le).classed("cursor-grab",!0),Ee}function ae(ke){if(b2(e)){Z=null;return}if(f)ke.target.tagName==="path"?Z="move":Z=ke.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ge=q.element.getBoundingClientRect(),Ee=ge.right-ge.left,Le=ge.bottom-ge.top,se=ke.clientX-ge.left,X=ke.clientY-ge.top,K=!c&&Ee>i&&Le>l&&!ke.shiftKey?yL.getCursor(se/Ee,1-X/Le):"move";bL(r,K),Z=K.split("-")[0]}}function Q(ke){b2(e)||(u&&(m=O(t.xanchor)),s&&(k=G(t.yanchor)),t.type==="path"?p=t.path:(b=u?t.x0:O(t.x0),h=s?t.y0:G(t.y0),_=u?t.x1:O(t.x1),T=s?t.y1:G(t.y1)),b<_?(M=b,v="x0",d=_,A="x1"):(M=_,v="x1",d=b,A="x0"),!s&&h<T||s&&h>T?(S=h,w="y0",x=T,y="y1"):(S=T,w="y1",x=h,y="y0"),ae(ke),fe(a,t),Te(r,t,e),q.moveFn=Z==="move"?ee:ie,q.altKey=ke.altKey)}function te(){b2(e)||(bL(r),we(a),AL(r,e,t),wL.call("_guiRelayout",e,o.getUpdateObj()))}function ue(){b2(e)||we(a)}function ee(ke,ge){if(t.type==="path"){var Ee=function(X){return X},Le=Ee,se=Ee;u?g("xanchor",t.xanchor=J(m+ke)):(Le=function(K){return J(O(K)+ke)},E&&E.type==="date"&&(Le=Ra.encodeDate(Le))),s?g("yanchor",t.yanchor=j(k+ge)):(se=function(K){return j(G(K)+ge)},I&&I.type==="date"&&(se=Ra.encodeDate(se))),g("path",t.path=xL(p,Le,se))}else u?g("xanchor",t.xanchor=J(m+ke)):(g("x0",t.x0=J(b+ke)),g("x1",t.x1=J(_+ke))),s?g("yanchor",t.yanchor=j(k+ge)):(g("y0",t.y0=j(h+ge)),g("y1",t.y1=j(T+ge)));r.attr("d",F5(e,t)),fe(a,t),x2(e,n,t,D)}function ie(ke,ge){if(c){var Ee=function(Pe){return Pe},Le=Ee,se=Ee;u?g("xanchor",t.xanchor=J(m+ke)):(Le=function(Ye){return J(O(Ye)+ke)},E&&E.type==="date"&&(Le=Ra.encodeDate(Le))),s?g("yanchor",t.yanchor=j(k+ge)):(se=function(Ye){return j(G(Ye)+ge)},I&&I.type==="date"&&(se=Ra.encodeDate(se))),g("path",t.path=xL(p,Le,se))}else if(f){if(Z==="resize-over-start-point"){var X=b+ke,K=s?h-ge:h+ge;g("x0",t.x0=u?X:J(X)),g("y0",t.y0=s?K:j(K))}else if(Z==="resize-over-end-point"){var ye=_+ke,oe=s?T-ge:T+ge;g("x1",t.x1=u?ye:J(ye)),g("y1",t.y1=s?oe:j(oe))}}else{var de=function(Pe){return Z.indexOf(Pe)!==-1},pe=de("n"),me=de("s"),Se=de("w"),ve=de("e"),he=pe?S+ge:S,be=me?x+ge:x,Ae=Se?M+ke:M,Re=ve?d+ke:d;s&&(pe&&(he=S-ge),me&&(be=x-ge)),(!s&&be-he>l||s&&he-be>l)&&(g(w,t[w]=s?he:j(he)),g(y,t[y]=s?be:j(be))),Re-Ae>i&&(g(v,t[v]=u?Ae:J(Ae)),g(A,t[A]=u?Re:J(Re)))}r.attr("d",F5(e,t)),fe(a,t),x2(e,n,t,D)}function fe(ke,ge){(u||s)&&Ee();function Ee(){var Le=ge.type!=="path",se=ke.selectAll(".visual-cue").data([0]),X=1;se.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":X}).classed("visual-cue",!0);var K=O(u?ge.xanchor:R5.midRange(Le?[ge.x0,ge.x1]:Ra.extractPathCoords(ge.path,Ys.paramIsX))),ye=G(s?ge.yanchor:R5.midRange(Le?[ge.y0,ge.y1]:Ra.extractPathCoords(ge.path,Ys.paramIsY)));if(K=Ra.roundPositionForSharpStrokeRendering(K,X),ye=Ra.roundPositionForSharpStrokeRendering(ye,X),u&&s){var oe="M"+(K-1-X)+","+(ye-1-X)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";se.attr("d",oe)}else if(u){var de="M"+(K-1-X)+","+(ye-9-X)+"v18 h2 v-18 Z";se.attr("d",de)}else{var pe="M"+(K-9-X)+","+(ye-1-X)+"h18 v2 h-18 Z";se.attr("d",pe)}}}function we(ke){ke.selectAll(".visual-cue").remove()}function Te(ke,ge,Ee){var Le=ge.xref,se=ge.yref,X=Gs.getFromId(Ee,Le),K=Gs.getFromId(Ee,se),ye="";Le!=="paper"&&!X.autorange&&(ye+=Le),se!=="paper"&&!K.autorange&&(ye+=se),_2.setClipUrl(ke,ye?"clip"+Ee._fullLayout._uid+ye:null,Ee)}}function xL(e,r,t){return e.replace(Ys.segmentRE,function(n){var a=0,o=n.charAt(0),i=Ys.paramIsX[o],l=Ys.paramIsY[o],u=Ys.numParams[o],s=n.slice(1).replace(Ys.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function _se(e,r){if(w2(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){_L(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=_L,P5(e)}}}function _L(e){if(w2(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(ML(e),delete e._fullLayout._activeShapeIndex,P5(e))}}function wse(e){if(w2(e)){ML(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,wL.call("_guiRelayout",e,{shapes:n})}}}});var CL=xe((g_e,SL)=>{"use strict";var pu=tr()._,Mse=function(e){return{DIALOG_TITLE:pu(e,"Share chart"),DIALOG_MESSAGE_CLOUD:pu(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:pu(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:pu(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:pu(e,"Cancel"),DIALOG_CONFIRM:pu(e,"Share")}};SL.exports=Mse});var DL=xe((y_e,LL)=>{"use strict";var EL=lt(),{dfltConfig:Tse}=ol(),Ase=CL(),kse=(e,r,t,n,a)=>{let o=Ase(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===Tse.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],g=f[2],b=f[4];u.append("span").text(c),u.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",s).attr("target","_blank").text(g),u.append("span").text(b),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(/(\{|\})/),g=c[0],b=c[4],h=i.append("div").classed("plotly-cloud-dialog-message",!0);h.append("span").text(g),h.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(s),h.append("span").text(b)}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)},Sse=(e,r,t)=>{let n=EL.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",()=>{EL.event.target===a.node()&&o()}),kse(e,a,r,()=>{o(),t()},o)};LL.exports=Sse});var N5=xe((m_e,qL)=>{"use strict";var Ga=Cr(),Cse=Sn(),FL=mn(),ht=s2(),Ese=M2().eraseActiveShape,Lse=DL(),gu=tr(),rt=gu._,ct={};qL.exports=ct;ct.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?rt(e,"Download plot as a PNG"):rt(e,"Download plot")},icon:ht.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};gu.notifier(rt(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])}),Ga.call("downloadImage",e,t).then(function(n){gu.notifier(rt(e,"Image download succeeded")+" - "+n,"long",e)}).catch(function(){gu.notifier(rt(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ct.downloadJson={name:"downloadJson",title:function(e){return rt(e,"Download plot as JSON")},icon:ht.curlybraces,click:function(e){Ga.call("downloadImage",e,{format:"full-json"}).then(function(r){gu.notifier(rt(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){gu.notifier(rt(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ct.sendChartToCloud={name:"sendChartToCloud",title:function(e){return rt(e,"Share chart...")},icon:ht.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}Lse(e,r,function(){Cse.sendDataToCloud(e,r)})}};ct.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return rt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ht.zoombox,click:da};ct.pan2d={name:"pan2d",_cat:"pan",title:function(e){return rt(e,"Pan")},attr:"dragmode",val:"pan",icon:ht.pan,click:da};ct.select2d={name:"select2d",_cat:"select",title:function(e){return rt(e,"Box Select")},attr:"dragmode",val:"select",icon:ht.selectbox,click:da};ct.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return rt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ht.lasso,click:da};ct.drawclosedpath={name:"drawclosedpath",title:function(e){return rt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ht.drawclosedpath,click:da};ct.drawopenpath={name:"drawopenpath",title:function(e){return rt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ht.drawopenpath,click:da};ct.drawline={name:"drawline",title:function(e){return rt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ht.drawline,click:da};ct.drawrect={name:"drawrect",title:function(e){return rt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ht.drawrect,click:da};ct.drawcircle={name:"drawcircle",title:function(e){return rt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ht.drawcircle,click:da};ct.eraseshape={name:"eraseshape",title:function(e){return rt(e,"Erase active shape")},icon:ht.eraseshape,click:Ese};ct.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return rt(e,"Zoom in")},attr:"zoom",val:"in",icon:ht.zoom_plus,click:da};ct.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return rt(e,"Zoom out")},attr:"zoom",val:"out",icon:ht.zoom_minus,click:da};ct.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return rt(e,"Autoscale")},attr:"zoom",val:"auto",icon:ht.autoscale,click:da};ct.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return rt(e,"Reset axes")},attr:"zoom",val:"reset",icon:ht.home,click:da};ct.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return rt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ht.tooltip_basic,gravity:"ne",click:da};ct.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return rt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ht.tooltip_compare,gravity:"ne",click:da};function da(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=FL.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var c=a==="in"?.5:2,g=(1+c)/2,b=(1-c)/2,h,_;for(f=0;f<l.length;f++)if(s=l[f],_=s.modebardisable==="none"||s.modebardisable.indexOf(a==="auto"||a==="reset"?"autoscale":"zoominout")===-1,_&&!s.fixedrange)if(h=s._name,a==="auto")i[h+".autorange"]=!0;else if(a==="reset")s._rangeInitial0===void 0&&s._rangeInitial1===void 0?i[h+".autorange"]=!0:s._rangeInitial0===void 0?(i[h+".autorange"]=s._autorangeInitial,i[h+".range"]=[null,s._rangeInitial1]):s._rangeInitial1===void 0?(i[h+".range"]=[s._rangeInitial0,null],i[h+".autorange"]=s._autorangeInitial):i[h+".range"]=[s._rangeInitial0,s._rangeInitial1],s._showSpikeInitial!==void 0&&(i[h+".showspikes"]=s._showSpikeInitial,u==="on"&&!s._showSpikeInitial&&(u="off"));else{var T=[s.r2l(s.range[0]),s.r2l(s.range[1])],m=[g*T[0]+b*T[1],g*T[1]+b*T[0]];i[h+".range[0]"]=s.l2r(m[0]),i[h+".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,Ga.call("_guiRelayout",e,i)}ct.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return rt(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:ht.zoombox,click:A2};ct.pan3d={name:"pan3d",_cat:"pan",title:function(e){return rt(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:ht.pan,click:A2};ct.orbitRotation={name:"orbitRotation",title:function(e){return rt(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:ht["3d_rotate"],click:A2};ct.tableRotation={name:"tableRotation",title:function(e){return rt(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:ht["z-axis"],click:A2};function A2(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,Ga.call("_guiRelayout",e,i)}ct.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return rt(e,"Reset camera to default")},attr:"resetDefault",icon:ht.home,click:I5};ct.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return rt(e,"Reset camera to last save")},attr:"resetLastSave",icon:ht.movie,click:I5};function I5(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",g=f+".aspectratio",b=f+".aspectmode",h=i[f]._scene,_;a?(u[c+".up"]=h.viewInitial.up,u[c+".eye"]=h.viewInitial.eye,u[c+".center"]=h.viewInitial.center,_=!0):o&&(u[c+".up"]=null,u[c+".eye"]=null,u[c+".center"]=null,_=!0),_&&(u[g+".x"]=h.viewInitial.aspectratio.x,u[g+".y"]=h.viewInitial.aspectratio.y,u[g+".z"]=h.viewInitial.aspectratio.z,u[b]=h.viewInitial.aspectmode)}Ga.call("_guiRelayout",e,u)}ct.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return rt(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:ht.tooltip_basic,gravity:"ne",click:Dse};function PL(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],g=f+".hovermode";l[g]=c.hovermode,u[g]=!1;for(var b=0;b<3;b++){var h=i[b],_=f+"."+h+".showspikes";u[_]=!1,l[_]=c[h].showspikes}}t._previousVal=l}return u}function Dse(e,r){var t=PL(e,r);Ga.call("_guiRelayout",e,t)}ct.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return rt(e,"Zoom in")},attr:"zoom",val:"in",icon:ht.zoom_plus,click:z5};ct.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return rt(e,"Zoom out")},attr:"zoom",val:"out",icon:ht.zoom_minus,click:z5};ct.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return rt(e,"Reset")},attr:"reset",val:null,icon:ht.autoscale,click:z5};ct.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return rt(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:ht.tooltip_basic,gravity:"ne",click:zL};var RL=2;function z5(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,g=c.scale()/f.fitScale,[b,h]=c.rotate().map(d=>-d),[_,T]=c.invert(f.midPt),{minscale:m}=s.projection,k=(l=s.projection.maxscale)!=null?l:1/0,S=Math.min(m,k),x=Math.max(m,k),M=a==="in"?RL*g:1/RL*g;M>x?M=x:M<S&&(M=S),M!==g&&Ga.call("_guiRelayout",e,{[u+".projection.scale"]:M,[u+".projection.rotation.lon"]:b,[u+".projection.rotation.lat"]:h,[u+".center.lon"]:_,[u+".center.lat"]:T,[u+".fitbounds"]:!1})}}n==="reset"&&T2(e,"geo")}ct.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return rt(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:ht.tooltip_basic,gravity:"ne",click:zL};function IL(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function zL(e){var r=IL(e);Ga.call("_guiRelayout",e,"hovermode",r)}ct.resetViewSankey={name:"resetSankeyGroup",title:function(e){return rt(e,"Reset view")},icon:ht.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())}Ga.call("restyle",e,r)}};ct.toggleHover={name:"toggleHover",title:function(e){return rt(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:ht.tooltip_basic,gravity:"ne",click:function(e,r){var t=PL(e,r);t.hovermode=IL(e),Ga.call("_guiRelayout",e,t)}};ct.resetViews={name:"resetViews",title:function(e){return rt(e,"Reset views")},icon:ht.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),da(e,r),t.setAttribute("data-attr","resetLastSave"),I5(e,r),T2(e,"geo"),T2(e,"map")}};ct.toggleSpikelines={name:"toggleSpikelines",title:function(e){return rt(e,"Toggle Spike Lines")},icon:ht.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",Ga.call("_guiRelayout",e,Rse(e))}};function Rse(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",n=FL.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}ct.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return rt(e,"Reset view")},attr:"reset",icon:ht.home,click:function(e){T2(e,"map")}};ct.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return rt(e,"Zoom in")},attr:"zoom",val:"in",icon:ht.zoom_plus,click:NL};ct.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return rt(e,"Zoom out")},attr:"zoom",val:"out",icon:ht.zoom_minus,click:NL};function NL(e,r){Fse(e,r,"map")}function Fse(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,g=a==="in"?l*c:c/l;u[f+".zoom"]=g}Ga.call("_guiRelayout",e,u)}function T2(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]}Ga.call("_guiRelayout",e,a)}});var q5=xe((b_e,HL)=>{"use strict";var BL=N5(),Pse=Object.keys(BL),OL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],UL=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(OL,["downloadJson"]),yu=[],Ise=function(e){if(UL.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();yu.indexOf(r)===-1&&yu.push(r),yu.indexOf(t)===-1&&yu.push(t)}};Pse.forEach(function(e){Ise(BL[e])});yu.sort();HL.exports={DRAW_MODES:OL,backButtons:UL,foreButtons:yu}});var O5={};Ht(O5,{default:()=>Nse});var B5,zse,Nse,U5=Ut(()=>{"use strict";B5=Q_(q5()),zse={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 *${B5.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 *${B5.default.foreButtons.join("*, *")}*.`].join(" ")}},Nse=zse});var GL=xe((x_e,VL)=>{"use strict";var qse=tr(),pc=Zr(),Bse=Tt(),Ose=(U5(),or(O5)).default;VL.exports=function(r,t){var n=r.modebar||{},a=Bse.newContainer(t,"modebar");function o(l,u){return qse.coerce(n,a,Ose,l,u)}o("orientation"),o("bgcolor",pc.addOpacity(t.paper_bgcolor,.5));var i=pc.contrast(pc.rgb(t.modebar.bgcolor));o("color",pc.addOpacity(i,.3)),o("activecolor",pc.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var ZL=xe((__e,WL)=>{"use strict";var H5=lt(),Use=ut(),k2=tr(),YL=s2(),Hse=uf().version,Vse=new DOMParser;function XL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var _o=XL.prototype;_o.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(),k2.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};_o.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)})};_o.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};_o.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&&H5.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||YL.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};_o.createIcon=function(e){var r=Use(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=Vse.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};_o.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=H5.select(n),u=function(c,g){var b=r.modebar,h=c.querySelector(".icon path");h&&(g||c.matches(":hover")?h.style.fill=b.activecolor:h.style.fill=b.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:k2.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};_o.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 Gse(e){return e+" (v"+Hse+")"}_o.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Gse(k2._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(YL.newplotlylogo)),e.appendChild(r),e};_o.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};_o.destroy=function(){k2.removeElement(this.container.querySelector(".modebar"))};function Yse(e,r){var t=e._fullLayout,n=new XL({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&H5.select(n.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),n}WL.exports=Yse});var KL=xe((w_e,$L)=>{"use strict";var Xse=mn(),JL=Da(),V5=Cr(),Wse=uo().isUnifiedHover,Zse=ZL(),S2=N5(),Jse=q5().DRAW_MODES,$se=tr().extendDeep;$L.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=t0e(o):!n.displayModeBar&&n.watermark?i=[]:i=Kse(r),a?a.update(r,i):t._modeBar=Zse(r,i)};function Kse(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(L,P){if(typeof P=="string"){if(P.toLowerCase()===L.toLowerCase())return!0}else{var B=P.name,O=P._cat||P.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 P=0;P<n.modeBarButtonsToRemove.length;P++)if(a(L,n.modeBarButtonsToRemove[P]))return!1;return!0})),u=n.modeBarButtonsToRemove.concat(i.filter(function(L){for(var P=0;P<n.modeBarButtonsToAdd.length;P++)if(a(L,n.modeBarButtonsToAdd[P]))return!1;return!0})),s=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),g=r._has("pie"),b=r._has("funnelarea"),h=r._has("ternary"),_=r._has("map"),T=r._has("polar"),m=r._has("smith"),k=r._has("sankey"),S=Qse(r),x=Wse(r.hovermode),M=[];function d(L){if(L.length){for(var P=[],B=0;B<L.length;B++){for(var O=L[B],G=S2[O],J=G.name.toLowerCase(),j=(G._cat||G.name).toLowerCase(),V=!1,q=0;q<u.length;q++){var Z=u[q].toLowerCase();if(Z===J||Z===j){V=!0;break}}V||P.push(S2[O])}M.push(P)}}var w=!1,y=[],v=[],A=[],p=[];(s||g||b||h)+c+f+_+T+m>1?(v=["toggleHover"],A=["resetViews"]):c?(y=["zoomInGeo","zoomOutGeo"],v=["hoverClosestGeo"],A=["resetGeo"]):f?(v=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):_?(y=["zoomInMap","zoomOutMap"],v=["toggleHover"],A=["resetViewMap"]):g?v=["hoverClosestPie"]:k?(v=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):v=["toggleHover"],s&&v.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(e0e(t)||x)&&(v=[]),s&&!S&&(y=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),f?p=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!S||h?p=["zoom2d","pan2d"]:_||c?p=["pan2d"]:T&&(p=["zoom2d"]),jse(t)&&p.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=[],I=0;I<l.length;I++){var z=l[I];typeof z=="string"?(z=z.toLowerCase(),Jse.indexOf(z)!==-1?(r._has("map")||r._has("cartesian"))&&p.push(z):z==="togglespikelines"?E("toggleSpikelines"):z==="togglehover"?E("toggleHover"):z==="hovercompare"?E("hoverCompareCartesian"):z==="hoverclosest"?(E("hoverClosestCartesian"),E("hoverClosestGeo"),E("hoverClosest3d"),E("hoverClosestPie")):z==="v1hovermode"?(E("hoverClosestCartesian"),E("hoverCompareCartesian"),E("hoverClosestGeo"),E("hoverClosest3d"),E("hoverClosestPie")):z==="downloadjson"&&(w=!0)):R.push(z)}l=R}var F=["toImage"];return w&&F.push("downloadJson"),n.showSendToCloud&&F.push("sendChartToCloud"),d(F),d(p),d(y.concat(A)),d(D),r0e(M,l)}function Qse(e){for(var r=Xse.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 jse(e){for(var r=!1,t=0;t<e.length&&!r;t++){var n=e[t];!n._module||!n._module.selectPoints||(V5.traceIs(n,"scatter-like")&&n.type!=="quiver"?(JL.hasMarkers(n)||JL.hasText(n))&&(r=!0):V5.traceIs(n,"box-violin")?(n.boxpoints==="all"||n.points==="all")&&(r=!0):r=!0)}return r}function e0e(e){for(var r=0;r<e.length;r++)if(!V5.traceIs(e[r],"noHover"))return!1;return!0}function r0e(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 t0e(e){for(var r=$se([],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(S2[o]!==void 0)r[t][a]=S2[o];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var G5=xe((M_e,QL)=>{"use strict";QL.exports={moduleType:"component",name:"modebar",layoutAttributes:(U5(),or(O5)).default,supplyLayoutDefaults:GL(),manage:KL()}});var Y5=xe((T_e,jL)=>{"use strict";var n0e=(Kn(),or($n)).FROM_BL;jL.exports=function(r,t,n){n===void 0&&(n=n0e[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 yc=xe(gc=>{"use strict";var Xs=tr(),X5=nu(),zi=mn().id2name,a0e=ai(),eD=Y5(),i0e=C1(),o0e=(wn(),or(Rn)).ALMOST_EQUAL,l0e=(Kn(),or($n)).FROM_BL;gc.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,c,g,b,h;for(l=0;l<n.length;l++)f=zi(n[l]),c=e[f],g=r[f],s0e(c,g,{axIds:n,layoutOut:r,hasImage:a[f]});function _(y,v){for(l=0;l<y.length;l++){u=y[l];for(s in u)r[zi(s)][v]=u}}for(_(i,"_matchGroup"),l=0;l<o.length;l++){u=o[l];for(s in u)if(g=r[zi(s)],g.fixedrange){for(var T in u){var m=zi(T);(e[m]||{}).fixedrange===!1&&Xs.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){g=r[zi(s)],g._matchGroup&&Object.keys(g._matchGroup).length===Object.keys(u).length&&(o.splice(l,1),l--);break}l++}_(o,"_constraintGroup");var k=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],S=!1,x=!1;function M(){h=g[b],b==="rangebreaks"&&(x=g._hasDayOfWeekBreaks)}for(l=0;l<i.length;l++){u=i[l];for(var d=0;d<k.length;d++){b=k[d],h=null;var w;for(s in u)if(f=zi(s),c=e[f],g=r[f],b in g){if(!g.matches&&(w=g,b in c)){M();break}h===null&&b in c&&M()}if(b==="range"&&h&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null&&(S=!0),b==="autorange"&&h===null&&S&&(h=!1),h===null&&b in w&&(h=w[b]),h!==null)for(s in u)g=r[zi(s)],g[b]=b==="range"?h.slice():h,b==="rangebreaks"&&(g._hasDayOfWeekBreaks=x,i0e(g,r))}}};function s0e(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,g=c.charAt(0)==="x";r._matchGroup=null,r._constraintGroup=null;function b(D,E){return Xs.coerce(e,r,a0e,D,E)}b("constrain",o?"domain":"range"),Xs.coerce(e,r,{constraintoward:{valType:"enumerated",values:g?["left","center","right"]:["bottom","middle","top"],dflt:g?"center":"middle"}},"constraintoward");var h=r.type,_,T,m=[];for(_=0;_<n.length;_++)if(T=n[_],T!==c){var k=a[zi(T)];k.type===h&&m.push(T)}var S=nD(i,c);if(S){var x=[];for(_=0;_<m.length;_++)T=m[_],S[T]||x.push(T);m=x}var M=m.length,d,w;M&&(e.matches||f.matches)&&(d=Xs.coerce(e,r,{matches:{valType:"enumerated",values:m,dflt:m.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var y=o&&!g?r.anchor:void 0;if(M&&!d&&(e.scaleanchor||y)&&(w=Xs.coerce(e,r,{scaleanchor:{valType:"enumerated",values:m.concat([!1])}},"scaleanchor",y)),d){r._matchGroup=W5(l,c,d,1);var v=a[zi(d)],A=rD(a,r)/rD(a,v);g!==(d.charAt(0)==="x")&&(A=(g?"x":"y")+A),W5(i,c,d,A)}else e.matches&&n.indexOf(e.matches)!==-1&&Xs.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(w){var p=b("scaleratio");p||(p=r.scaleratio=1),W5(i,c,w,p)}else e.scaleanchor&&n.indexOf(e.scaleanchor)!==-1&&Xs.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 rD(e,r){var t=r.domain;return t||(t=e[zi(r.overlaying)].domain),t[1]-t[0]}function nD(e,r){for(var t=0;t<e.length;t++)if(e[t][r])return e[t];return null}function W5(e,r,t,n){var a,o,i,l,u,s=nD(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]=Z5(c,Z5(n,s[l]));e.splice(u,1);return}if(n!==1)for(o=0;o<f.length;o++){var g=f[o];s[g]=Z5(n,s[g])}s[t]=1}function Z5(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 u0e(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,g=0;g<f;g++)u*=c}a[l]=u}return a}gc.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=u0e(n[a],t);var g=Object.keys(i),b=1/0,h=0,_=1/0,T={},m={},k=!1;for(o=0;o<g.length;o++)l=g[o],m[l]=u=t[zi(l)],u._inputDomain?u.domain=u._inputDomain.slice():u._inputDomain=u.domain.slice(),u._inputRange||(u._inputRange=u.range.slice()),u.setScale(),T[l]=s=Math.abs(u._m)/i[l],b=Math.min(b,s),(u.constrain==="domain"||!u._constraintShrinkable)&&(_=Math.min(_,s)),delete u._constraintShrinkable,h=Math.max(h,s),u.constrain==="domain"&&(k=!0);if(!(b>o0e*h&&!k)){for(o=0;o<g.length;o++)if(l=g[o],s=T[l],u=m[l],f=u.constrain,s!==_||f==="domain")if(c=s/_,f==="range")eD(u,c);else{var S=u._inputDomain,x=(u.domain[1]-u.domain[0])/(S[1]-S[0]),M=(u.r2l(u.range[1])-u.r2l(u.range[0]))/(u.r2l(u._inputRange[1])-u.r2l(u._inputRange[0]));if(c/=x,c*M<1){u.domain=u._input.domain=S.slice(),eD(u,c);continue}if(M<1&&(u.range=u._input.range=u._inputRange.slice(),c*=M),u.autorange){var d=u.r2l(u.range[0]),w=u.r2l(u.range[1]),y=(d+w)/2,v=y,A=y,p=Math.abs(w-y),D=y-p*c*1.0001,E=y+p*c*1.0001,R=X5.makePadFn(t,u,0),I=X5.makePadFn(t,u,1);tD(u,c,t);var z=Math.abs(u._m),F=X5.concatExtremes(r,u),L=F.min,P=F.max,B,O;for(O=0;O<L.length;O++)B=L[O].val-R(L[O])/z,B>D&&B<v&&(v=B);for(O=0;O<P.length;O++)B=P[O].val+I(P[O])/z,B<E&&B>A&&(A=B);var G=(A-v)/(2*p);c/=G,v=u.l2r(v),A=u.l2r(A),u.range=u._input.range=d<w?[v,A]:[A,v]}tD(u,c,t)}}}};gc.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};gc.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 f0e(e,r){let t=e.domainpad;if(!t)return 0;let n=r._size;return e._id.charAt(0)==="y"?((t.top||0)+(t.bottom||0))/n.h:((t.left||0)+(t.right||0))/n.w}function tD(e,r,t){var n=e._inputDomain,a=l0e[e.constraintoward],o=n[0]+(n[1]-n[0])*a;let i=r,l=f0e(e,t);if(l>0){let u=n[1]-n[0],s=u-l;s>0&&(i=u/(s/r+l))}e.domain=e._input.domain=[o+(n[0]-o)/i,o+(n[1]-o)/i],e.setScale()}});var L2=xe(En=>{"use strict";var E2=lt(),pa=Cr(),Ya=Sn(),li=tr(),J5=Qn(),$5=l2(),mc=Zr(),mu=At(),aD=Kf(),uD=G5(),bc=Vt(),Vo=(Kn(),or($n)),fD=yc(),c0e=fD.enforce,v0e=fD.clean,iD=nu().doAutoRange,cD="start",h0e="middle",vD="end",d0e=(kn(),or(An)).zindexSeparator;En.layoutStyles=function(e){return li.syncOrAsync([Ya.doAutoMargin,g0e],e)};function p0e(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 g0e(e){var r=e._fullLayout,t=r._size,n=t.p,a=bc.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(mu.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),En.drawMainTitle(e),uD.manage(e),!r._has("cartesian"))return Ya.previousPromises(e);function c(Q,te,ue){var ee=Q._lw/2;if(Q._id.charAt(0)==="x"){if(te){if(ue==="top")return te._offset-n-ee}else return t.t+t.h*(1-(Q.position||0))+ee%1;return te._offset+te._length+n+ee}if(te){if(ue==="right")return te._offset+te._length+n+ee}else return t.l+t.w*(Q.position||0)+ee%1;return te._offset-n-ee}for(o=0;o<a.length;o++){u=a[o];var g=u._anchorAxis;u._linepositions={},u._lw=mu.crispRound(e,u.linewidth,1),u._mainLinePosition=c(u,g,u.side),u._mainMirrorPosition=u.mirror&&g?c(u,g,Vo.OPPOSITE_SIDE[u.side]):null}var b=[],h=[],_=[],T=mc.opacity(r.paper_bgcolor)===1&&mc.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(p0e(m,k,_)&&i.indexOf(d0e)===-1){var x=S.node(),M=l.bg=li.ensureSingle(S,"rect","bg");x.insertBefore(M.node(),x.childNodes[0]),h.push(i)}else S.select("rect.bg").remove(),_.push([m,k]),T||(b.push(i),h.push(i))}var d=r._bgLayer.selectAll(".bg").data(b);for(d.enter().append("rect").classed("bg",!0),d.exit().remove(),d.each(function(Q){r._plots[Q].bg=E2.select(this)}),o=0;o<h.length;o++)l=r._plots[h[o]],s=l.xaxis,f=l.yaxis,l.bg&&s._offset!==void 0&&f._offset!==void 0&&l.bg.call(mu.setRect,s._offset-n,f._offset-n,s._length+2*n,f._length+2*n).call(mc.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 w=l.clipId="clip"+r._uid+i+"plot",y=li.ensureSingleById(r._clips,"clipPath",w,function(Q){Q.classed("plotclip",!0).append("rect")});l.clipRect=y.select("rect").attr({width:s._length,height:f._length}),mu.setTranslate(l.plot,s._offset,f._offset);var v,A;l._hasClipOnAxisFalse?(v=null,A=w):(v=w,A=null),mu.setClipUrl(l.plot,v,e),l.layerClipId=A}var p,D,E,R,I,z,F,L,P,B,O,G,J;function j(Q){return"M"+p+","+Q+"H"+D}function V(Q){return"M"+s._offset+","+Q+"h"+s._length}function q(Q){return"M"+Q+","+L+"V"+F}function Z(Q){return f._shift!==void 0&&(Q+=f._shift),"M"+Q+","+f._offset+"v"+f._length}function re(Q,te,ue){if(!Q.showline||i!==Q._mainSubplot)return"";if(!Q._anchorAxis)return ue(Q._mainLinePosition);var ee=te(Q._mainLinePosition);return Q.mirror&&(ee+=te(Q._mainMirrorPosition)),ee}for(i in r._plots){l=r._plots[i],s=l.xaxis,f=l.yaxis;var $="M0,0";oD(s,i)&&(I=C2(s,"left",f,a),p=s._offset-(I?n+I:0),z=C2(s,"right",f,a),D=s._offset+s._length+(z?n+z:0),E=c(s,f,"bottom"),R=c(s,f,"top"),J=!s._anchorAxis||i!==s._mainSubplot,J&&(s.mirror==="allticks"||s.mirror==="all")&&(s._linepositions[i]=[E,R]),$=re(s,j,V),J&&s.showline&&(s.mirror==="all"||s.mirror==="allticks")&&($+=j(E)+j(R)),l.xlines.style("stroke-width",s._lw+"px").call(mc.stroke,s.showline?s.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",$);var ae="M0,0";oD(f,i)&&(O=C2(f,"bottom",s,a),F=f._offset+f._length+(O?n:0),G=C2(f,"top",s,a),L=f._offset-(G?n:0),P=c(f,s,"left"),B=c(f,s,"right"),J=!f._anchorAxis||i!==f._mainSubplot,J&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[i]=[P,B]),ae=re(f,q,Z),J&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(ae+=q(P)+q(B)),l.ylines.style("stroke-width",f._lw+"px").call(mc.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ae)}return bc.makeClipPaths(e),Ya.previousPromises(e)}function oD(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function lD(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=Vo.FROM_BL[r];return t.side===r?n.domain[a]===e.domain[a]:t.mirror&&n.domain[1-a]===e.domain[1-a]}function C2(e,r,t,n){if(lD(e,r,t))return t._lw;for(var a=0;a<n.length;a++){var o=n[a];if(o._mainAxis===t._mainAxis&&lD(e,r,o))return o._lw}return 0}En.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,n=M0e(t),a=T0e(t),o=w0e(t,a),i=_0e(t,n);if(aD.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=E2.select(e).selectAll(".gtitle"),u=mu.bBox(E2.select(e).selectAll(".g-gtitle").node()).height,s=b0e(e,r,u);if(s>0){x0e(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:sD(r.yanchor)}).call(J5.positionText,i,o);var f=(r.text.match(J5.BR_TAG_ALL)||[]).length;if(f){var c=Vo.LINE_SPACING*f+Vo.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var T=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",T)})}var g=E2.select(e).selectAll(".gtitle-subtitle");if(g.node()){var b=l.node().getBBox(),h=b.y+b.height,_=h+aD.SUBTITLE_PADDING_EM*r.subtitle.font.size;g.attr({x:i,y:_,"text-anchor":n,dy:sD(r.yanchor)}).call(J5.positionText,i,_)}}}};function y0e(e,r,t,n,a){var o=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,i=li.isTopAnchor(r)?n:n-a,l=t==="b"?o-i:i;return li.isTopAnchor(r)&&t==="t"||li.isBottomAnchor(r)&&t==="b"?!1:l<a}function m0e(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 b0e(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=m0e(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function x0e(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"&&y0e(e,o,i,r,n)?l[i]=t:o.yref==="container"&&(u[i]=t,e._fullLayout._reservedMargin[a]=u),Ya.allowAutoMargin(e,a),Ya.autoMargin(e,a,l)}function _0e(e,r){var t=e.title,n=e._size,a=0;return r===cD?a=t.pad.l:r===vD&&(a=-t.pad.r),t.xref==="paper"?n.l+n.w*t.x+a:e.width*t.x+a}function w0e(e,r){var t=e.title,n=e._size,a=0;return r==="0em"||!r?a=-t.pad.b:r===Vo.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 sD(e){return e==="top"?Vo.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Vo.MID_SHIFT+"em"}function M0e(e){var r=e.title,t=h0e;return li.isRightAnchor(r)?t=vD:li.isLeftAnchor(r)&&(t=cD),t}function T0e(e){var r=e.title,t="0em";return li.isTopAnchor(r)?t=Vo.CAP_SHIFT+"em":li.isMiddleAnchor(r)&&(t=Vo.MID_SHIFT+"em"),t}En.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)}$5(e),En.redrawReglTraces(e)}return Ya.style(e),pa.getComponentMethod("legend","draw")(e),Ya.previousPromises(e)};En.doColorBars=function(e){return pa.getComponentMethod("colorbar","draw")(e),Ya.previousPromises(e)};En.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,pa.call("_doPlot",e,"",r)};En.doLegend=function(e){return pa.getComponentMethod("legend","draw")(e),Ya.previousPromises(e)};En.doTicksRelayout=function(e){var r=bc.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(pa.subplotsRegistry.splom.updateGrid(e),$5(e),En.redrawReglTraces(e)),En.drawMainTitle(e),Promise.resolve(r).then(function(){return Ya.previousPromises(e)})};En.doModeBar=function(e){var r=e._fullLayout;uD.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var n=r._basePlotModules[t].updateFx;n&&n(e)}return Ya.previousPromises(e)};En.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)}};En.drawData=function(e){var r=e._fullLayout;$5(e);for(var t=r._basePlotModules,n=0;n<t.length;n++)t[n].plot(e);return En.redrawReglTraces(e),Ya.style(e),pa.getComponentMethod("selections","draw")(e),pa.getComponentMethod("shapes","draw")(e),pa.getComponentMethod("annotations","draw")(e),pa.getComponentMethod("images","draw")(e),r._replotting=!1,Ya.previousPromises(e)};En.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"?li.pushUnique(n,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&li.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()}};En.doAutoRangeAndConstraints=function(e){for(var r=bc.list(e,"",!0),t,n={},a=0;a<r.length;a++)if(t=r[a],!n[t._id]){n[t._id]=1,v0e(e,t),iD(e,t);var o=t._matchGroup;if(o)for(var i in o){var l=bc.getFromId(e,i);iD(e,l,t.range),n[i]=1}}c0e(e)};En.finalDraw=function(e){pa.getComponentMethod("rangeslider","draw")(e),pa.getComponentMethod("rangeselector","draw")(e)};En.drawMarginPushers=function(e){pa.getComponentMethod("legend","draw")(e),pa.getComponentMethod("rangeselector","draw")(e),pa.getComponentMethod("sliders","draw")(e),pa.getComponentMethod("updatemenus","draw")(e),pa.getComponentMethod("colorbar","draw")(e)}});var j5=xe((S_e,yD)=>{"use strict";var A0e=Fl().readPaths,k0e=m2(),hD=xl().clearOutlineControllers,K5=Zr(),dD=At(),S0e=Tt().arrayEditor,pD=zl(),C0e=pD.getPathString;yD.exports={draw:D2,drawOne:gD,activateLastSelection:D0e};function D2(e){var r=e._fullLayout;hD(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++)gD(e,a)}function R2(e){return e._context.editSelection}function gD(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=pD.makeSelectionsOptionsAndPlotinfo(e,r),n=t.options,a=t.plotinfo;if(!n._input)return;o(e._fullLayout._selectionLayer);function o(i){var l=C0e(e,n),u={"data-index":r,"fill-rule":"evenodd",d:l},s=n.opacity,f="rgba(0,0,0,0)",c=n.line.color||K5.contrast(e._fullLayout.plot_bgcolor),g=n.line.width,b=n.line.dash;g||(g=5,b="solid");var h=R2(e)&&e._fullLayout._activeSelectionIndex===r;h&&(f=e._fullLayout.activeselection.fillcolor,s=e._fullLayout.activeselection.opacity);for(var _=[],T=1;T>=0;T--){var m=i.append("path").attr(u).style("opacity",T?.1:s).call(K5.stroke,c).call(K5.fill,f).call(dD.dashLine,T?"solid":b,T?4+g:g);if(E0e(m,e,n),h){var k=S0e(e.layout,"selections",n);m.style({cursor:"move"});var S={element:m.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},x=A0e(l,e);k0e(x,m,S)}else m.style("pointer-events",T?"all":"none");_[T]=m}var M=_[0],d=_[1];d.node().addEventListener("click",function(){return L0e(e,M)})}}function E0e(e,r,t){var n=t.xref+t.yref;dD.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function L0e(e,r){if(R2(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){Q5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=Q5,D2(e)}}}function D0e(e){if(R2(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Q5,D2(e)}}function Q5(e){if(R2(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(hD(e),delete e._fullLayout._activeSelectionIndex,D2(e))}}});var bD=xe((C_e,mD)=>{function R0e(){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}mD.exports=R0e});var _D=xe((E_e,xD)=>{function F0e(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],g=t[1]-a[1],b=(u*g-s*c)/f,h=(i*g-l*c)/f,_={alongA:0,alongB:0,pt:[t[0]+b*i,t[1]+b*l]};return b<=-e?_.alongA=-2:b<e?_.alongA=-1:b-1<=-e?_.alongA=0:b-1<e?_.alongA=1:_.alongA=2,h<=-e?_.alongB=-2:h<e?_.alongB=-1:h-1<=-e?_.alongB=0:h-1<e?_.alongB=1:_.alongB=2,_},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}xD.exports=F0e});var MD=xe((L_e,wD)=>{var P0e={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}};wD.exports=P0e});var AD=xe((D_e,TD)=>{var xc=MD();function I0e(e,r,t){function n(h,_){return{id:t?t.segmentId():-1,start:h,end:_,myFill:{above:null,below:null},otherFill:null}}function a(h,_,T){return{id:t?t.segmentId():-1,start:h,end:_,myFill:{above:T.myFill.above,below:T.myFill.below},otherFill:null}}var o=xc.create();function i(h,_,T,m,k,S){var x=r.pointsCompare(_,k);return x!==0?x:r.pointsSame(T,S)?0:h!==m?h?1:-1:r.pointAboveOrOnLine(T,m?k:S,m?S:k)?1:-1}function l(h,_){o.insertBefore(h,function(T){var m=i(h.isStart,h.pt,_,T.isStart,T.pt,T.other.pt);return m<0})}function u(h,_){var T=xc.node({isStart:!0,pt:h.start,seg:h,primary:_,other:null,status:null});return l(T,h.end),T}function s(h,_,T){var m=xc.node({isStart:!1,pt:_.end,seg:_,primary:T,other:h,status:null});h.other=m,l(m,h.pt)}function f(h,_){var T=u(h,_);return s(T,h,_),T}function c(h,_){t&&t.segmentChop(h.seg,_),h.other.remove(),h.seg.end=_,h.other.pt=_,l(h.other,h.pt)}function g(h,_){var T=a(_,h.seg.end,h.seg);return c(h,_),f(T,h.primary)}function b(h,_){var T=xc.create();function m(I,z){var F=I.seg.start,L=I.seg.end,P=z.seg.start,B=z.seg.end;return r.pointsCollinear(F,P,B)?r.pointsCollinear(L,P,B)||r.pointAboveOrOnLine(L,P,B)?1:-1:r.pointAboveOrOnLine(F,P,B)?1:-1}function k(I){return T.findTransition(function(z){var F=m(I,z.ev);return F>0})}function S(I,z){var F=I.seg,L=z.seg,P=F.start,B=F.end,O=L.start,G=L.end;t&&t.checkIntersection(F,L);var J=r.linesIntersect(P,B,O,G);if(J===!1){if(!r.pointsCollinear(P,B,O)||r.pointsSame(P,G)||r.pointsSame(B,O))return!1;var j=r.pointsSame(P,O),V=r.pointsSame(B,G);if(j&&V)return z;var q=!j&&r.pointBetween(P,O,G),Z=!V&&r.pointBetween(B,O,G);if(j)return Z?g(z,B):g(I,G),z;q&&(V||(Z?g(z,B):g(I,G)),g(z,P))}else J.alongA===0&&(J.alongB===-1?g(I,O):J.alongB===0?g(I,J.pt):J.alongB===1&&g(I,G)),J.alongB===0&&(J.alongA===-1?g(z,P):J.alongA===0?g(z,J.pt):J.alongA===1&&g(z,B));return!1}for(var x=[];!o.isEmpty();){var M=o.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let I=function(){if(w){var z=S(M,w);if(z)return z}return y?S(M,y):!1};var R=I;t&&t.segmentNew(M.seg,M.primary);var d=k(M),w=d.before?d.before.ev:null,y=d.after?d.after.ev:null;t&&t.tempStatus(M.seg,w?w.seg:!1,y?y.seg:!1);var v=I();if(v){if(e){var A;M.seg.myFill.below===null?A=!0:A=M.seg.myFill.above!==M.seg.myFill.below,A&&(v.seg.myFill.above=!v.seg.myFill.above)}else v.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(v.seg),M.other.remove(),M.remove()}if(o.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var A;M.seg.myFill.below===null?A=!0:A=M.seg.myFill.above!==M.seg.myFill.below,y?M.seg.myFill.below=y.seg.myFill.above:M.seg.myFill.below=h,A?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var p;y?M.primary===y.primary?p=y.seg.otherFill.above:p=y.seg.myFill.above:p=M.primary?_:h,M.seg.otherFill={above:p,below:p}}t&&t.status(M.seg,w?w.seg:!1,y?y.seg:!1),M.other.status=d.insert(xc.node({ev:M}))}else{var D=M.status;if(D===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(T.exists(D.prev)&&T.exists(D.next)&&S(D.prev.ev,D.next.ev),t&&t.statusRemove(D.ev.seg),D.remove(),!M.primary){var E=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=E}x.push(M.seg)}o.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(h){for(var _,T=h[h.length-1],m=0;m<h.length;m++){_=T,T=h[m];var k=r.pointsCompare(_,T);k!==0&&f(n(k<0?_:T,k<0?T:_),!0)}},calculate:function(h){return b(h,!1)}}:{calculate:function(h,_,T,m){return h.forEach(function(k){f(a(k.start,k.end,k),!0)}),T.forEach(function(k){f(a(k.start,k.end,k),!1)}),b(_,m)}}}TD.exports=I0e});var SD=xe((R_e,kD)=>{function z0e(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,I,z){return f.index=R,f.matches_head=I,f.matches_pt1=z,f===u?(f=s,!1):(f=null,!0)}for(var g=0;g<n.length;g++){var b=n[g],h=b[0],_=b[1],T=b[b.length-1],m=b[b.length-2];if(r.pointsSame(h,i)){if(c(g,!0,!0))break}else if(r.pointsSame(h,l)){if(c(g,!0,!1))break}else if(r.pointsSame(T,i)){if(c(g,!1,!0))break}else if(r.pointsSame(T,l)&&c(g,!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,x=u.matches_head,b=n[k],M=x?b[0]:b[b.length-1],d=x?b[1]:b[b.length-2],w=x?b[b.length-1]:b[0],y=x?b[b.length-2]:b[1];if(r.pointsCollinear(d,M,S)&&(x?(t&&t.chainRemoveHead(u.index,S),b.shift()):(t&&t.chainRemoveTail(u.index,S),b.pop()),M=d),r.pointsSame(w,S)){n.splice(k,1),r.pointsCollinear(y,w,M)&&(x?(t&&t.chainRemoveTail(u.index,M),b.pop()):(t&&t.chainRemoveHead(u.index,M),b.shift())),t&&t.chainClose(u.index),a.push(b);return}x?(t&&t.chainAddHead(u.index,S),b.unshift(S)):(t&&t.chainAddTail(u.index,S),b.push(S));return}function v(R){t&&t.chainReverse(R),n[R].reverse()}function A(R,I){var z=n[R],F=n[I],L=z[z.length-1],P=z[z.length-2],B=F[0],O=F[1];r.pointsCollinear(P,L,B)&&(t&&t.chainRemoveTail(R,L),z.pop(),L=P),r.pointsCollinear(L,B,O)&&(t&&t.chainRemoveHead(I,B),F.shift()),t&&t.chainJoin(R,I),n[R]=z.concat(F),n.splice(I,1)}var p=u.index,D=s.index;t&&t.chainConnect(p,D);var E=n[p].length<n[D].length;u.matches_head?s.matches_head?E?(v(p),A(p,D)):(v(D),A(D,p)):A(D,p):s.matches_head?A(p,D):E?(v(p),A(D,p)):(v(D),A(p,D))}),a}kD.exports=z0e});var ED=xe((F_e,CD)=>{function _c(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 N0e={union:function(e,r){return _c(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return _c(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return _c(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return _c(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return _c(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};CD.exports=N0e});var DD=xe((P_e,LD)=>{var q0e={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(b,h){return r.pointInsideRegion([(b[0][0]+b[1][0])*.5,(b[0][1]+b[1][1])*.5],h)}function a(b){return{region:b,children:[]}}var o=a(null);function i(b,h){for(var _=0;_<b.children.length;_++){var T=b.children[_];if(n(h,T.region)){i(T,h);return}}for(var m=a(h),_=0;_<b.children.length;_++){var T=b.children[_];n(T.region,h)&&(m.children.push(T),b.children.splice(_,1),_--)}b.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(b,h){for(var _=0,T=b[b.length-1][0],m=b[b.length-1][1],k=[],S=0;S<b.length;S++){var x=b[S][0],M=b[S][1];k.push([x,M]),_+=M*T-x*m,T=x,m=M}var d=_<0;return d!==h&&k.reverse(),k.push([k[0][0],k[0][1]]),k}var f=[];function c(b){var h=[s(b.region,!1)];f.push(h);for(var _=0;_<b.children.length;_++)h.push(g(b.children[_]))}function g(b){for(var h=0;h<b.children.length;h++)c(b.children[h]);return s(b.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}}};LD.exports=q0e});var ID=xe((I_e,PD)=>{var B0e=bD(),O0e=_D(),RD=AD(),U0e=SD(),wc=ED(),FD=DD(),si=!1,Mc=O0e(),Fa;Fa={buildLog:function(e){return e===!0?si=B0e():e===!1&&(si=!1),si===!1?!1:si.list},epsilon:function(e){return Mc.epsilon(e)},segments:function(e){var r=RD(!0,Mc,si);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=RD(!1,Mc,si);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:wc.union(e.combined,si),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:wc.intersect(e.combined,si),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:wc.difference(e.combined,si),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:wc.differenceRev(e.combined,si),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:wc.xor(e.combined,si),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:U0e(e.segments,Mc,si),inverted:e.inverted}},polygonFromGeoJSON:function(e){return FD.toPolygon(Fa,e)},polygonToGeoJSON:function(e){return FD.fromPolygon(Fa,Mc,e)},union:function(e,r){return Tc(e,r,Fa.selectUnion)},intersect:function(e,r){return Tc(e,r,Fa.selectIntersect)},difference:function(e,r){return Tc(e,r,Fa.selectDifference)},differenceRev:function(e,r){return Tc(e,r,Fa.selectDifferenceRev)},xor:function(e,r){return Tc(e,r,Fa.selectXor)}};function Tc(e,r,t){var n=Fa.segments(e),a=Fa.segments(r),o=Fa.combine(n,a),i=t(o);return Fa.polygon(i)}typeof window=="object"&&(window.PolyBool=Fa);PD.exports=Fa});var ND=xe((z_e,zD)=>{zD.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],g=t[s+n][1],b=t[f+n][0],h=t[f+n][1],_=g>i!=h>i&&o<(b-c)*(i-g)/(h-g)+c;_&&(l=!l)}return l}});var rb=xe((N_e,qD)=>{"use strict";var eb=Rh().dot,F2=(wn(),or(Rn)).BADNUM,P2=qD.exports={};P2.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(h){return h[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(h){return h[1]===t[0][1]}));function f(h,_){var T=h[0],m=h[1];return!(T===F2||T<n||T>a||m===F2||m<o||m>i||_&&s(h))}function c(h,_){var T=h[0],m=h[1];if(T===F2||T<n||T>a||m===F2||m<o||m>i)return!1;var k=t.length,S=t[0][0],x=t[0][1],M=0,d,w,y,v,A;for(d=1;d<k;d++)if(w=S,y=x,S=t[d][0],x=t[d][1],v=Math.min(w,S),!(T<v||T>Math.max(w,S)||m>Math.max(y,x)))if(m<Math.min(y,x))T!==v&&M++;else{if(S===w?A=m:A=y+(T-w)*(x-y)/(S-w),m===A)return!(d===1&&_);m<=A&&T!==v&&M++}return M%2===1}var g=!0,b=t[0];for(l=1;l<t.length;l++)if(b[0]!==t[l][0]||b[1]!==t[l][1]){g=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:i,pts:t,contains:u?f:c,isRect:u,degenerate:g}};P2.isSegmentBent=function(r,t,n,a){var o=r[t],i=[r[n][0]-o[0],r[n][1]-o[1]],l=eb(i,i),u=Math.sqrt(l),s=[-i[1]/u,i[0]/u],f,c,g;for(f=t+1;f<n;f++)if(c=[r[f][0]-o[0],r[f][1]-o[1]],g=eb(c,i),g<0||g>l||Math.abs(eb(c,s))>a)return!0;return!1};P2.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||P2.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={};Ht(BD,{BENDPX:()=>H0e,MINSELECT:()=>V0e,SELECTDELAY:()=>G0e,SELECTID:()=>Y0e});var H0e,V0e,G0e,Y0e,OD=Ut(()=>{"use strict";H0e=1.5,V0e=12,G0e=100,Y0e="-select"});var sR=xe((q_e,lR)=>{"use strict";var UD=ID(),X0e=ND(),Sc=Cr(),W0e=At().dashStyle,Ac=Zr(),Z0e=yo(),J0e=uo().makeEventData,Rc=vu(),$0e=Rc.freeMode,K0e=Rc.rectMode,Cc=Rc.drawMode,ib=Rc.openMode,ob=Rc.selectMode,HD=zl(),VD=(hc(),or(vc)),ZD=m2(),JD=xl().clearOutline,$D=Fl(),tb=$D.handleEllipse,Q0e=$D.readPaths,j0e=p2().newShapes,eue=S5(),rue=j5().activateLastSelection,z2=tr(),tue=z2.sorterAsc,KD=rb(),kc=Xh(),ui=mn().getFromId,nue=l2(),aue=L2().redrawReglTraces,N2=(OD(),or(BD)),wo=N2.MINSELECT,iue=KD.filter,lb=KD.tester,sb=c2(),GD=sb.p2r,oue=sb.axValue,lue=sb.getTransform;function ub(e){return e.subplot!==void 0}function sue(e,r,t,n,a){var o=!ub(n),i=$0e(a),l=K0e(a),u=ib(a),s=Cc(a),f=ob(a),c=a==="drawline",g=a==="drawcircle",b=c||g,h=n.gd,_=h._fullLayout,T=f&&_.newselection.mode==="immediate"&&o,m=_._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,x=lue(S),M=r-k.left,d=t-k.top;_._calcInverseTransform(h);var w=z2.apply3DTransform(_._invTransform)(M,d);M=w[0],d=w[1];var y=_._invScaleX,v=_._invScaleY,A=M,p=d,D="M"+M+","+d,E=n.xaxes[0],R=n.yaxes[0],I=E._length,z=R._length,F=e.altKey&&!(Cc(a)&&u),L,P,B,O,G,J,j;jD(e,h,n),i&&(L=iue([[M,d]],N2.BENDPX));var V=m.selectAll("path.select-outline-"+S.id).data([1]),q=s?_.newshape:_.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var Z=s&&!u?q.fillcolor:"rgba(0,0,0,0)",re=q.line.color||(o?Ac.contrast(h._fullLayout.plot_bgcolor):"#7f7f7f");V.enter().append("path").attr("class","select-outline select-outline-"+S.id).style({opacity:s?q.opacity/2:1,"stroke-dasharray":W0e(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(Ac.stroke,re).call(Ac.fill,Z).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",x).attr("d",D+"Z");var $=m.append("path").attr("class","zoombox-corners").style({fill:Ac.background,stroke:Ac.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(s&&n.hasText){var ae=m.select(".label-temp");ae.empty()&&(ae=m.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Q=_._uid+N2.SELECTID,te=[],ue=q2(h,n.xaxes,n.yaxes,n.subplot);T&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var ie=E._id,fe=R._id;aR(h,ie,fe,ue);for(var we=(h.layout||{}).selections||[],Te=[],ke=!1,ge=0;ge<we.length;ge++){var Ee=_.selections[ge];!Ee||Ee.xref!==ie||Ee.yref!==fe?Te.push(we[ge]):ke=!0}ke&&(h._fullLayout._noEmitSelectedAtStart=!0,Sc.call("_guiRelayout",h,{selections:Te}))}});var ee=wue(n);n.moveFn=function(ie,fe){n._clearSubplotSelections&&(n._clearSubplotSelections(),n._clearSubplotSelections=void 0),A=Math.max(0,Math.min(I,y*ie+M)),p=Math.max(0,Math.min(z,v*fe+d));var we=Math.abs(A-M),Te=Math.abs(p-d);if(l){var ke,ge,Ee;if(f){var Le=_.selectdirection;switch(Le==="any"?Te<Math.min(we*.6,wo)?ke="h":we<Math.min(Te*.6,wo)?ke="v":ke="d":ke=Le,ke){case"h":ge=g?z/2:0,Ee=z;break;case"v":ge=g?I/2:0,Ee=I;break}}if(s)switch(_.newshape.drawdirection){case"vertical":ke="h",ge=g?z/2:0,Ee=z;break;case"horizontal":ke="v",ge=g?I/2:0,Ee=I;break;case"ortho":we<Te?(ke="h",ge=d,Ee=p):(ke="v",ge=M,Ee=A);break;default:ke="d"}ke==="h"?(O=b?tb(g,[A,ge],[A,Ee]):[[M,ge],[M,Ee],[A,Ee],[A,ge]],O.xmin=b?A:Math.min(M,A),O.xmax=b?A:Math.max(M,A),O.ymin=Math.min(ge,Ee),O.ymax=Math.max(ge,Ee),$.attr("d","M"+O.xmin+","+(d-wo)+"h-4v"+2*wo+"h4ZM"+(O.xmax-1)+","+(d-wo)+"h4v"+2*wo+"h-4Z")):ke==="v"?(O=b?tb(g,[ge,p],[Ee,p]):[[ge,d],[ge,p],[Ee,p],[Ee,d]],O.xmin=Math.min(ge,Ee),O.xmax=Math.max(ge,Ee),O.ymin=b?p:Math.min(d,p),O.ymax=b?p:Math.max(d,p),$.attr("d","M"+(M-wo)+","+O.ymin+"v-4h"+2*wo+"v4ZM"+(M-wo)+","+(O.ymax-1)+"v4h"+2*wo+"v-4Z")):ke==="d"&&(O=b?tb(g,[M,d],[A,p]):[[M,d],[M,p],[A,p],[A,d]],O.xmin=Math.min(M,A),O.xmax=Math.max(M,A),O.ymin=Math.min(d,p),O.ymax=Math.max(d,p),$.attr("d","M0,0Z"))}else i&&(L.addPt([A,p]),O=L.filtered);if(n.selectionDefs&&n.selectionDefs.length?(B=eR(n.mergedPolygons,O,F),O.subtract=F,P=fb(n.selectionDefs.concat([O]))):(B=[O],P=lb(O)),ZD(tR(B,u),V,n),f){var se=ab(h,!1),X=se.eventData?se.eventData.points.slice():[];se=ab(h,!1,P,ue,n),P=se.selectionTesters,j=se.eventData;var K;L?K=L.filtered:K=iR(B),kc.throttle(Q,N2.SELECTDELAY,function(){te=nR(P,ue);for(var ye=te.slice(),oe=0;oe<X.length;oe++){for(var de=X[oe],pe=!1,me=0;me<ye.length;me++)if(ye[me].curveNumber===de.curveNumber&&ye[me].pointNumber===de.pointNumber){pe=!0;break}pe||ye.push(de)}ye.length&&(j||(j={}),j.points=ye),ee(j,K),Mue(h,j)})}},n.clickFn=function(ie,fe){if($.remove(),h._fullLayout._activeShapeIndex>=0){h._fullLayout._deactivateShape(h);return}if(!s){var we=_.clickmode;kc.done(Q).then(function(){if(kc.clear(Q),ie===2){for(V.remove(),G=0;G<ue.length;G++)J=ue[G],J._module.selectPoints(J,!1);if(Lc(h,ue),Ec(n),vb(h),ue.length){var Te=ue[0].xaxis,ke=ue[0].yaxis;if(Te&&ke){for(var ge=[],Ee=h._fullLayout.selections,Le=0;Le<Ee.length;Le++){var se=Ee[Le];se&&(se.xref!==Te._id||se.yref!==ke._id)&&ge.push(se)}ge.length<Ee.length&&(h._fullLayout._noEmitSelectedAtStart=!0,Sc.call("_guiRelayout",h,{selections:ge}))}}}else we.indexOf("select")>-1&&QD(fe,h,n.xaxes,n.yaxes,n.subplot,n,V),we==="event"&&Dc(h,void 0);Z0e.click(h,fe,S.id)}).catch(z2.error)}},n.doneFn=function(){$.remove(),kc.done(Q).then(function(){kc.clear(Q),!T&&O&&n.selectionDefs&&(O.subtract=F,n.selectionDefs.push(O),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,B)),(T||s)&&Ec(n,T),n.doneFnCompleted&&n.doneFnCompleted(te),f&&Dc(h,j)}).catch(z2.error)}}function QD(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,c=[],g,b,h,_,T,m,k,S,x,M;if(hue(l)){jD(e,r,o),g=q2(r,t,n,a);var d=due(l,g),w=d.pointNumbers.length>0;if(w?pue(g,d):gue(g)&&(k=XD(d))){for(i&&i.remove(),M=0;M<g.length;M++)b=g[M],b._module.selectPoints(b,!1);Lc(r,g),Ec(o),f&&vb(r)}else{S=e.shiftKey&&(k!==void 0?k:XD(d)),h=uue(d.pointNumber,d.searchInfo,S);var y=o.selectionDefs.concat([h]);for(_=fb(y,_),M=0;M<g.length;M++)if(T=g[M]._module.selectPoints(g[M],_),m=rR(T,g[M]),c.length)for(var v=0;v<m.length;v++)c.push(m[v]);else c=m;if(x={points:c},Lc(r,g,x),h&&o&&o.selectionDefs.push(h),i){var A=o.mergedPolygons,p=ib(o.dragmode);ZD(tR(A,p),i,o)}f&&Dc(r,x)}}}function uue(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function nb(e){return"pointNumber"in e&&"searchInfo"in e}function fue(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 fb(e){if(!e.length)return;for(var r=[],t=nb(e[0])?0:e[0][0][0],n=t,a=nb(e[0])?0:e[0][0][1],o=a,i=0;i<e.length;i++)if(nb(e[i]))r.push(fue(e[i]));else{var l=lb(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,g){for(var b=!1,h=0;h<r.length;h++)r[h].contains(s,f,c,g)&&(b=!r[h].subtract);return b}return{xmin:t,xmax:n,ymin:a,ymax:o,pts:[],contains:u,isRect:!1,degenerate:!1}}function jD(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)&&!(Cc(o)&&ib(o));i&&l&&a.selection&&a.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=a.selection.selectionDefs,t.mergedPolygons=a.selection.mergedPolygons):(!l||!a.selection)&&Ec(t),i||(JD(r),n._lastSelectedSubplot=a.id)}function cue(e){return e._fullLayout._activeShapeIndex>=0}function vue(e){return e._fullLayout._activeSelectionIndex>=0}function Ec(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;cue(a)&&a._fullLayout._deactivateShape(a),vue(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=Cc(t),u=ob(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=j0e(s,e)),f&&Sc.call("_guiRelayout",a,{shapes:f});var c;u&&!ub(e)&&(c=eue(s,e)),c&&(a._fullLayout._noEmitSelectedAtStart=!0,Sc.call("_guiRelayout",a,{selections:c}).then(function(){r&&rue(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function YD(e){return e._id}function q2(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(YD),i=t.map(YD),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(ub({subplot:n})&&(u.subplot===n||u.geo===n))a.push(I2(u._module,l,r[0],t[0]));else if(u.type==="splom"){if(u._xaxes[o[0]]&&u._yaxes[i[0]]){var f=I2(u._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[u.uid],a.push(f)}}else if(u.type==="sankey"){var c=I2(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(I2(u._module,l,ui(e,u.xaxis),ui(e,u.yaxis)))}return a}function I2(e,r,t,n){return{_module:e,cd:r,xaxis:t,yaxis:n}}function hue(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function due(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 XD(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 pue(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 gue(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 Lc(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;yue(e,r)}function yue(e,r){for(var t=!1,n=0;n<r.length;n++){var a=r[n],o=a.cd;Sc.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&&(nue(e),aue(e))}function eR(e,r,t){for(var n=t?UD.difference:UD.union,a=n({regions:e},{regions:[r]}),o=a.regions.reverse(),i=0;i<o.length;i++){var l=o[i];l.subtract=cb(l,o.slice(0,i))}return o}function rR(e,r){if(Array.isArray(e))for(var t=r.cd,n=r.cd[0].trace,a=0;a<e.length;a++)e[a]=J0e(e[a],n,t);return e}function tR(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 nR(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=rR(o,l),t=t.concat(n)}return t}function ab(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=WD(e),g=e._fullLayout;if(i){var b=g._zoomlayer,h=g.dragmode,_=Cc(h),T=ob(h);if(_||T){var m=ui(e,l,"x"),k=ui(e,u,"y");if(m&&k){var S=b.selectAll(".select-outline-"+i.id);if(S&&e._fullLayout._outlining&&S.length){for(var x=S[0][0],M=x.getAttribute("d"),d=Q0e(M,e,i),w=[],y=0;y<d.length;y++){for(var v=d[y],A=[],p=0;p<v.length;p++)A.push([Nl(m,v[p][1]),Nl(k,v[p][2])]);A.xref=l,A.yref=u,A.subtract=cb(A,w),w.push(A)}c=c.concat(w)}}}}var D=l&&u?[l+u]:g._subplots.cartesian;mue(e);for(var E={},R=0;R<D.length;R++){var I=D[R],z=I.indexOf("y"),F=I.slice(0,z),L=I.slice(z),P=l&&u?t:void 0;if(P=xue(c,F,L,P),P){var B=n;if(!o){var O=ui(e,F,"x"),G=ui(e,L,"y");B=q2(e,[O],[G],I);for(var J=0;J<B.length;J++){var j=B[J],V=j.cd[0],q=V.trace;if(j._module.name==="scattergl"&&!V.t.xpx){var Z=q.x,re=q.y,$=q._length;V.t.xpx=[],V.t.ypx=[];for(var ae=0;ae<$;ae++)V.t.xpx[ae]=O.c2p(Z[ae]),V.t.ypx[ae]=G.c2p(re[ae])}j._module.name==="splom"&&(E[q.uid]||(E[q.uid]=!0))}}var Q=nR(P,B);s=s.concat(Q),f=f.concat(B)}}var te={points:s};Lc(e,f,te);var ue=g.clickmode,ee=ue.indexOf("event")>-1&&r;if(!i&&r){var ie=WD(e,!0);if(ie.length){var fe=ie[0].xref,we=ie[0].yref;if(fe&&we){var Te=iR(ie),ke=oR([ui(e,fe,"x"),ui(e,we,"y")]);ke(te,Te)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ee&&Dc(e,te),g._reselect=!1}if(!i&&g._deselect){var ge=g._deselect;l=ge.xref,u=ge.yref,bue(l,u,f)||aR(e,l,u,n),ee&&(te.points.length?Dc(e,te):vb(e)),g._deselect=!1}return{eventData:te,selectionTesters:t}}function mue(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 bue(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 aR(e,r,t,n){n=q2(e,[ui(e,r,"x")],[ui(e,t,"y")],r+t);for(var a=0;a<n.length;a++){var o=n[a];o._module.selectPoints(o,!1)}Lc(e,n)}function xue(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=eR(a,i,l),n=fb(a)}else a=[i],n=lb(i)}return n}function WD(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=ui(e,u,"x"),c=ui(e,s,"y"),g,b,h,_,T;if(l.type==="rect"){T=[];var m=Nl(f,l.x0),k=Nl(f,l.x1),S=Nl(c,l.y0),x=Nl(c,l.y1);T=[[m,S],[m,x],[k,x],[k,S]],g=Math.min(m,k),b=Math.max(m,k),h=Math.min(S,x),_=Math.max(S,x),T.xmin=g,T.xmax=b,T.ymin=h,T.ymax=_,T.xref=u,T.yref=s,T.subtract=!1,T.isRect=!0,t.push(T)}else if(l.type==="path")for(var M=l.path.split("Z"),d=[],w=0;w<M.length;w++){var y=M[w];if(y){y+="Z";var v=HD.extractPathCoords(y,VD.paramIsX,"raw"),A=HD.extractPathCoords(y,VD.paramIsY,"raw");g=1/0,b=-1/0,h=1/0,_=-1/0,T=[];for(var p=0;p<v.length;p++){var D=Nl(f,v[p]),E=Nl(c,A[p]);T.push([D,E]),g=Math.min(D,g),b=Math.max(D,b),h=Math.min(E,h),_=Math.max(E,_)}T.xmin=g,T.xmax=b,T.ymin=h,T.ymax=_,T.xref=u,T.yref=s,T.subtract=cb(T,d),d.push(T),t.push(T)}}}}return t}function cb(e,r){for(var t=!1,n=0;n<r.length;n++)for(var a=r[n],o=0;o<e.length;o++)if(X0e(e[o],a)){t=!t;break}return t}function Nl(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function iR(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 _ue(t)}function _ue(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 oR(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]=[GD(i,s),GD(i,f)].sort(tue))}else a||(a={}),a[l]=t.map(oue(i))}n&&(r.range=n),a&&(r.lassoPoints=a)}}function wue(e){var r=e.plotinfo;return r.fillRangeItems||oR(e.xaxes.concat(e.yaxes))}function Mue(e,r){e.emit("plotly_selecting",r)}function Dc(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function vb(e){e.emit("plotly_deselect",null)}lR.exports={reselect:ab,prepSelect:sue,clearOutline:JD,clearSelectionsCache:Ec,selectOnClick:QD}});var hb=xe((B_e,uR)=>{"use strict";uR.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 Fc={};Ht(Fc,{axisRefDescription:()=>Tue});function Tue(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 Pc=Ut(()=>{"use strict"});var bu=xe((U_e,vR)=>{"use strict";var fR=hb(),cR=Wn(),B2=(kn(),or(An)),Aue=Tt().templatedArray,O_e=(Pc(),or(Fc));vR.exports=Aue("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:cR({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:fR.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:fR.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",B2.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",B2.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",B2.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",B2.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:cR({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var O2={};Ht(O2,{PTS_LINESONLY:()=>kue,eventDataKeys:()=>Lue,maxScreensAway:()=>Eue,minTolerance:()=>Sue,toleranceGrowth:()=>Cue});var kue,Sue,Cue,Eue,Lue,U2=Ut(()=>{"use strict";kue=20,Sue=.2,Cue=10,Eue=20,Lue=[]});var dR=xe((H_e,hR)=>{"use strict";hR.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ws=xe((V_e,wR)=>{"use strict";var pR=No().axisHoverFormat,{hovertemplateAttrs:Due,texttemplateAttrs:Rue,templatefallbackAttrs:gR}=Si(),yR=Di(),Fue=Wn(),mR=fl().dash,Pue=fl().pattern,Iue=At(),zue=(U2(),or(O2)),Ic=Rt().extendFlat,Nue=dR();function bR(e){return{valType:"any",dflt:0,editType:"calc"}}function xR(e){return{valType:"any",editType:"calc"}}function _R(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}wR.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:bR("x"),yperiod:bR("y"),xperiod0:xR("x0"),yperiod0:xR("y0"),xperiodalignment:_R("x"),yperiodalignment:_R("y"),xhoverformat:pR("x"),yhoverformat:pR("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:Rue(),texttemplatefallback:gR({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:Due({},{keys:zue.eventDataKeys}),hovertemplatefallback:gR(),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:Ic({},mR,{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:Nue(!0),fillgradient:Ic({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:Pue,marker:Ic({symbol:{valType:"enumerated",values:Iue.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:Ic({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Ic({},mR,{arrayOk:!0}),editType:"calc"},yR("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"},yR("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:Fue({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var db=xe((Y_e,AR)=>{"use strict";var MR=bu(),TR=Ws().line,que=fl().dash,H2=Rt().extendFlat,Bue=ua().overrideAll,Oue=Tt().templatedArray,G_e=(Pc(),or(Fc));AR.exports=Bue(Oue("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:H2({},MR.xref,{}),yref:H2({},MR.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:TR.color,width:H2({},TR.width,{min:1,dflt:1}),dash:H2({},que,{dflt:"dot"})}}),"arraydraw","from-root")});var ER=xe((X_e,CR)=>{"use strict";var kR=tr(),V2=Vt(),Uue=Ri(),Hue=db(),SR=zl();CR.exports=function(r,t){Uue(r,t,{name:"selections",handleItemDefaults:Vue});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 Vue(e,r,t){function n(d,w){return kR.coerce(e,r,Hue,d,w)}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},g,b,h,_=V2.coerceRef(e,r,c,f);if(g=V2.getFromId(c,_),g._selectionIndices.push(r._index),h=SR.rangeToShapePosition(g),b=SR.shapePositionToRange(g),l){var T=f+"0",m=f+"1",k=e[T],S=e[m];e[T]=b(e[T],!0),e[m]=b(e[m],!0),V2.coercePosition(r,c,n,_,T),V2.coercePosition(r,c,n,_,m);var x=r[T],M=r[m];x!==void 0&&M!==void 0&&(r[T]=h(x),r[m]=h(M),e[T]=k,e[m]=S)}}l&&kR.noneOrAll(e,r,["x0","x1","y0","y1"])}});var DR=xe((W_e,LR)=>{"use strict";LR.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 zc=xe((Z_e,PR)=>{"use strict";var Gue=Cr(),RR=tr(),FR=mn();PR.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=Gue.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,c=u.cartesian,g=a._has("cartesian"),b=0;b<o.length;b++){var h=o[b];if(RR.isPlainObject(h)){var _=FR.cleanId(h.xref,"x",!1),T=FR.cleanId(h.yref,"y",!1),m=l.x.test(_),k=l.y.test(T);if(m||k){g||RR.pushUnique(a._basePlotModules,i);var S=!1;m&&s.indexOf(_)===-1&&(s.push(_),S=!0),k&&f.indexOf(T)===-1&&(f.push(T),S=!0),S&&m&&k&&c.push(_+T)}}}}}});var xu=xe((J_e,zR)=>{"use strict";var IR=j5(),Nc=sR();zR.exports={moduleType:"component",name:"selections",layoutAttributes:db(),supplyLayoutDefaults:ER(),supplyDrawNewSelectionDefaults:DR(),includeBasePlot:zc()("selections"),draw:IR.draw,drawOne:IR.drawOne,reselect:Nc.reselect,prepSelect:Nc.prepSelect,clearOutline:Nc.clearOutline,clearSelectionsCache:Nc.clearSelectionsCache,selectOnClick:Nc.selectOnClick}});var tF=xe(($_e,rF)=>{"use strict";var xb=lt(),fi=tr(),NR=fi.numberFormat,Yue=G1(),G2=Cr(),YR=fi.strTranslate,Xue=Qn(),gb=Zr(),ql=At(),Wue=yo(),qR=Vt(),Zue=Dl(),Jue=Pi(),XR=vu(),Y2=XR.selectingOrDrawing,$ue=XR.freeMode,Kue=(Kn(),or($n)).FROM_TL,Que=l2(),jue=L2().redrawReglTraces,efe=Sn(),yb=mn().getFromId,rfe=xu().prepSelect,tfe=xu().clearOutline,nfe=xu().selectOnClick,pb=Y5(),_b=(kn(),or(An)),BR=_b.MINDRAG,xa=_b.MINZOOM,OR=!0;function afe(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,c,g,b,h,_,T,m,k,S,x,M,d,w,y,v,A,p,D,E,R,I,z,F;t+=r.yaxis._shift;function L(){if(c=r.xaxis,g=r.yaxis,S=c._length,x=g._length,m=c._offset,k=g._offset,b={},b[c._id]=c,h={},h[g._id]=g,i&&l)for(var ve=r.overlays,he=0;he<ve.length;he++){var be=ve[he].xaxis;b[be._id]=be;var Ae=ve[he].yaxis;h[Ae._id]=Ae}_=GR(b),T=GR(h),w=UR(_,l),y=UR(T,i),v=!y&&!w,d=VR(e,e._fullLayout._axisMatchGroups,b,h),M=VR(e,e._fullLayout._axisConstraintGroups,b,h,d);var Re=M.isSubplotConstrained||d.isSubplotConstrained;A=l||Re,p=i||Re;var Pe=e._fullLayout;D=Pe._has("scattergl"),E=Pe._has("splom"),R=Pe._has("svg")}L();var P=lfe(y+w,e._fullLayout.dragmode,s),B=ZR(r,i+l+"drag",P,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(ve,he,be){var Ae=O.dragmode,Re=e._fullLayout.dragmode;Re!==Ae&&(O.dragmode=Re),L(),z=e._fullLayout._invScaleX,F=e._fullLayout._invScaleY,v||(s?ve.shiftKey?Re==="pan"?Re="zoom":Y2(Re)||(Re="pan"):ve.ctrlKey&&(Re="pan"):Re="pan"),$ue(Re)?O.minDrag=1:O.minDrag=void 0,Y2(Re)?(O.xaxes=_,O.yaxes=T,rfe(ve,he,be,O,Re)):(O.clickFn=J,Y2(Ae)&&G(),v||(Re==="zoom"?(O.moveFn=ie,O.doneFn=we,O.minDrag=1,ee(ve,he,be)):Re==="pan"&&(O.moveFn=se,O.doneFn=oe))),e._fullLayout._redrag=function(){var Pe=e._dragdata;if(Pe&&Pe.element===B){var Ye=e._fullLayout.dragmode;Y2(Ye)||(L(),de([0,0,S,x]),O.moveFn(Pe.dx,Pe.dy))}}};function G(){O.plotinfo.selection=!1,tfe(e)}function J(ve,he){var be=O.gd;if(be._fullLayout._activeShapeIndex>=0){be._fullLayout._deactivateShape(be);return}var Ae=be._fullLayout.clickmode;if(bb(be),ve===2&&!f&&ye(),s)Ae.indexOf("select")>-1&&nfe(he,be,_,T,r.id,O),Ae.indexOf("event")>-1&&Wue.click(be,he,r.id);else if(ve===1&&f){var Re=i?g:c,Pe=i==="s"||l==="w"?0:1,Ye=Re._name+".range["+Pe+"]",Ve=ife(Re,Pe),Ue="left",qe="middle";if(Re.fixedrange)return;i?(qe=i==="n"?"top":"bottom",Re.side==="right"&&(Ue="right")):l==="e"&&(Ue="right"),be._context.showAxisRangeEntryBoxes&&xb.select(B).call(Xue.makeEditable,{gd:be,immediate:!0,background:be._fullLayout.paper_bgcolor,text:String(Ve),fill:Re.tickfont?Re.tickfont.color:"#444",horizontalAlign:Ue,verticalAlign:qe}).on("edit",function(We){var Xe=Re.d2r(We);Xe!==void 0&&G2.call("_guiRelayout",be,Ye,Xe)})}}Jue.init(O);var j,V,q,Z,re,$,ae,Q,te,ue;function ee(ve,he,be){var Ae=B.getBoundingClientRect();j=he-Ae.left,V=be-Ae.top,e._fullLayout._calcInverseTransform(e);var Re=fi.apply3DTransform(e._fullLayout._invTransform)(j,V);j=Re[0],V=Re[1],q={l:j,r:j,w:0,t:V,b:V,h:0},Z=e._hmpixcount?e._hmlumcount/e._hmpixcount:gb.luminosity(e._fullLayout.plot_bgcolor),re="M0,0H"+S+"V"+x+"H0V0",$=!1,ae="xy",ue=!1,Q=JR(u,Z,m,k,re),te=$R(u,m,k)}function ie(ve,he){if(e._transitioningWithDuration)return!1;var be=Math.max(0,Math.min(S,z*ve+j)),Ae=Math.max(0,Math.min(x,F*he+V)),Re=Math.abs(be-j),Pe=Math.abs(Ae-V);q.l=Math.min(j,be),q.r=Math.max(j,be),q.t=Math.min(V,Ae),q.b=Math.max(V,Ae);function Ye(){ae="",q.r=q.l,q.t=q.b,te.attr("d","M0,0Z")}if(M.isSubplotConstrained)Re>xa||Pe>xa?(ae="xy",Re/S>Pe/x?(Pe=Re*x/S,V>Ae?q.t=V-Pe:q.b=V+Pe):(Re=Pe*S/x,j>be?q.l=j-Re:q.r=j+Re),te.attr("d",X2(q))):Ye();else if(d.isSubplotConstrained)if(Re>xa||Pe>xa){ae="xy";var Ve=Math.min(q.l/S,(x-q.b)/x),Ue=Math.max(q.r/S,(x-q.t)/x);q.l=Ve*S,q.r=Ue*S,q.b=(1-Ve)*x,q.t=(1-Ue)*x,te.attr("d",X2(q))}else Ye();else!y||Pe<Math.min(Math.max(Re*.6,BR),xa)?Re<BR||!w?Ye():(q.t=0,q.b=x,ae="x",te.attr("d",sfe(q,V))):!w||Re<Math.min(Pe*.6,xa)?(q.l=0,q.r=S,ae="y",te.attr("d",ufe(q,j))):(ae="xy",te.attr("d",X2(q)));q.w=q.r-q.l,q.h=q.b-q.t,ae&&(ue=!0),e._dragged=ue,KR(Q,te,q,re,$,Z),fe(),e.emit("plotly_relayouting",I),$=!0}function fe(){I={},(ae==="xy"||ae==="x")&&(mb(_,q.l/S,q.r/S,I,M.xaxes),X("x",I)),(ae==="xy"||ae==="y")&&(mb(T,(x-q.b)/x,(x-q.t)/x,I,M.yaxes),X("y",I))}function we(){fe(),bb(e),oe(),jR(e)}var Te=[0,0,S,x],ke=null,ge=_b.REDRAWDELAY,Ee=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function Le(ve){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(G(),e._transitioningWithDuration){ve.preventDefault(),ve.stopPropagation();return}L(),clearTimeout(ke);var he=-ve.deltaY;if(isFinite(he)||(he=ve.wheelDelta/10),!isFinite(he)){fi.log("Did not find wheel motion attributes: ",ve);return}e._fullLayout._replotting=!0;var be=Math.exp(-Math.min(Math.max(he,-20),20)/200),Ae=Ee.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Re=(ve.clientX-Ae.left)/Ae.width,Pe=(Ae.bottom-ve.clientY)/Ae.height,Ye;function Ve(Ue,qe,We){if(Ue.fixedrange)return;var Xe=fi.simpleMap(Ue.range,Ue.r2l),er=Xe[0]+(Xe[1]-Xe[0])*qe;function nr(rr){return Ue.l2r(er+(rr-er)*We)}Ue.range=Xe.map(nr)}if(A){for(l||(Re=.5),Ye=0;Ye<_.length;Ye++)Ve(_[Ye],Re,be);X("x"),Te[2]*=be,Te[0]+=Te[2]*Re*(1/be-1)}if(p){for(i||(Pe=.5),Ye=0;Ye<T.length;Ye++)Ve(T[Ye],Pe,be);X("y"),Te[3]*=be,Te[1]+=Te[3]*(1-Pe)*(1/be-1)}de(Te),K(),e.emit("plotly_relayouting",I),ke=setTimeout(function(){e._fullLayout&&(Te=[0,0,S,x],oe())},ge),ve.preventDefault()}i.length*l.length!==1&&eF(B,Le);function se(ve,he){if(ve=ve*z,he=he*F,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,w==="ew"||y==="ns"){var be=w?-ve:0,Ae=y?-he:0;if(d.isSubplotConstrained){if(w&&y){var Re=(ve/S-he/x)/2;ve=Re*S,he=-Re*x,be=-ve,Ae=-he}y?be=-Ae*S/x:Ae=-be*x/S}w&&(HR(_,ve),X("x")),y&&(HR(T,he),X("y")),de([be,Ae,S,x]),K(),e.emit("plotly_relayouting",I);return}function Pe(nr,rr,Qe){for(var Ce=1-rr,ze,Ke,je=0;je<nr.length;je++){var wr=nr[je];if(!wr.fixedrange){ze=wr,Ke=wr._rl[Ce]+(wr._rl[rr]-wr._rl[Ce])/ofe(Qe/wr._length);var Xr=wr.l2r(Ke);Xr!==!1&&Xr!==void 0&&(wr.range[rr]=Xr)}}return ze._length*(ze._rl[rr]-Ke)/(ze._rl[rr]-ze._rl[Ce])}var Ye=w==="w"==(y==="n")?1:-1;if(w&&y&&(M.isSubplotConstrained||d.isSubplotConstrained)){var Ve=(ve/S+Ye*he/x)/2;ve=Ve*S,he=Ye*Ve*x}var Ue,qe;if(w==="w"?ve=Pe(_,0,ve):w==="e"?ve=Pe(_,1,-ve):w||(ve=0),y==="n"?he=Pe(T,1,he):y==="s"?he=Pe(T,0,-he):y||(he=0),Ue=w==="w"?ve:0,qe=y==="n"?he:0,M.isSubplotConstrained&&!d.isSubplotConstrained||d.isSubplotConstrained&&w&&y&&Ye>0){var We;if(d.isSubplotConstrained||!w&&y.length===1){for(We=0;We<_.length;We++)_[We].range=_[We]._r.slice(),pb(_[We],1-he/x);ve=he*S/x,Ue=ve/2}if(d.isSubplotConstrained||!y&&w.length===1){for(We=0;We<T.length;We++)T[We].range=T[We]._r.slice(),pb(T[We],1-ve/S);he=ve*x/S,qe=he/2}}(!d.isSubplotConstrained||!y)&&X("x"),(!d.isSubplotConstrained||!w)&&X("y");var Xe=S-ve,er=x-he;d.isSubplotConstrained&&!(w&&y)&&(w?(qe=Ue?0:ve*x/S,er=Xe*x/S):(Ue=qe?0:he*S/x,Xe=er*S/x)),de([Ue,qe,Xe,er]),K(),e.emit("plotly_relayouting",I)}function X(ve,he){for(var be=d.isSubplotConstrained?{x:T,y:_}[ve]:d[ve+"axes"],Ae=d.isSubplotConstrained?{x:_,y:T}[ve]:[],Re=0;Re<be.length;Re++){var Pe=be[Re],Ye=Pe._id,Ve=d.xLinks[Ye]||d.yLinks[Ye],Ue=Ae[0]||b[Ve]||h[Ve];Ue&&(he?(he[Pe._name+".range[0]"]=he[Ue._name+".range[0]"],he[Pe._name+".range[1]"]=he[Ue._name+".range[1]"]):Pe.range=Ue.range.slice())}}function K(){var ve=[],he;function be(Ye){for(he=0;he<Ye.length;he++)Ye[he].fixedrange||ve.push(Ye[he]._id)}function Ae(Ye,Ve){for(he=0;he<Ye.length;he++){var Ue=Ye[he],qe=Ue[Ve],We=qe._id;!Ue.fixedrange&&qe.tickmode==="sync"&&!ve.includes(We)&&ve.push(We)}}for(A&&(be(_),be(M.xaxes),be(d.xaxes),Ae(r.overlays,"xaxis")),p&&(be(T),be(M.yaxes),be(d.yaxes),Ae(r.overlays,"yaxis")),I={},he=0;he<ve.length;he++){var Re=ve[he],Pe=yb(e,Re);qR.drawOne(e,Pe,{skipTitle:!0}),I[Pe._name+".range[0]"]=Pe.range[0],I[Pe._name+".range[1]"]=Pe.range[1]}qR.redrawComponents(e,ve)}function ye(){if(!e._transitioningWithDuration){var ve=e._context.doubleClick,he=[];w&&(he=he.concat(_)),y&&(he=he.concat(T)),d.xaxes&&(he=he.concat(d.xaxes)),d.yaxes&&(he=he.concat(d.yaxes));var be={},Ae,Re;if(ve==="reset+autosize")for(ve="autosize",Re=0;Re<he.length;Re++){Ae=he[Re];var Pe=Ae._rangeInitial0,Ye=Ae._rangeInitial1,Ve=Pe!==void 0||Ye!==void 0;if(Ve&&(Pe!==void 0&&Pe!==Ae.range[0]||Ye!==void 0&&Ye!==Ae.range[1])||!Ve&&Ae.autorange!==!0){ve="reset";break}}if(ve==="autosize")for(Re=0;Re<he.length;Re++)Ae=he[Re],Ae.fixedrange||(be[Ae._name+".autorange"]=!0);else if(ve==="reset"){for((w||M.isSubplotConstrained)&&(he=he.concat(M.xaxes)),y&&!M.isSubplotConstrained&&(he=he.concat(M.yaxes)),M.isSubplotConstrained&&(w?y||(he=he.concat(T)):he=he.concat(_)),Re=0;Re<he.length;Re++)if(Ae=he[Re],!Ae.fixedrange){var Ue=Ae._name,qe=Ae._autorangeInitial;Ae._rangeInitial0===void 0&&Ae._rangeInitial1===void 0?be[Ue+".autorange"]=!0:Ae._rangeInitial0===void 0?(be[Ue+".autorange"]=qe,be[Ue+".range"]=[null,Ae._rangeInitial1]):Ae._rangeInitial1===void 0?(be[Ue+".range"]=[Ae._rangeInitial0,null],be[Ue+".autorange"]=qe):be[Ue+".range"]=[Ae._rangeInitial0,Ae._rangeInitial1]}}e.emit("plotly_doubleclick",null),G2.call("_guiRelayout",e,be)}}function oe(){de([0,0,S,x]),fi.syncOrAsync([efe.previousPromises,function(){e._fullLayout._replotting=!1,G2.call("_guiRelayout",e,I)}],e)}function de(ve){var he=e._fullLayout,be=he._plots,Ae=he._subplots.cartesian,Re,Pe,Ye,Ve;if(E&&G2.subplotsRegistry.splom.drag(e),D){for(Re=0;Re<Ae.length;Re++)if(Pe=be[Ae[Re]],Ye=Pe.xaxis,Ve=Pe.yaxis,Pe._scene){Ye.limitRange&&Ye.limitRange(),Ve.limitRange&&Ve.limitRange();var Ue=fi.simpleMap(Ye.range,Ye.r2l),qe=fi.simpleMap(Ve.range,Ve.r2l);Pe._scene.update({range:[Ue[0],qe[0],Ue[1],qe[1]]})}}if((E||D)&&(Que(e),jue(e)),R){var We=ve[2]/c._length,Xe=ve[3]/g._length;for(Re=0;Re<Ae.length;Re++){Pe=be[Ae[Re]],Ye=Pe.xaxis,Ve=Pe.yaxis;var er=(A||d.isSubplotConstrained)&&!Ye.fixedrange&&b[Ye._id],nr=(p||d.isSubplotConstrained)&&!Ve.fixedrange&&h[Ve._id],rr,Qe,Ce,ze;if(er?(rr=We,Ce=l||d.isSubplotConstrained?ve[0]:Se(Ye,rr)):d.xaHash[Ye._id]?(rr=We,Ce=ve[0]*Ye._length/c._length):d.yaHash[Ye._id]?(rr=Xe,Ce=y==="ns"?-ve[1]*Ye._length/g._length:Se(Ye,rr,{n:"top",s:"bottom"}[y])):(rr=pe(Ye,We,Xe),Ce=me(Ye,rr)),rr>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"))&&(rr=1,Ce=0),nr?(Qe=Xe,ze=i||d.isSubplotConstrained?ve[1]:Se(Ve,Qe)):d.yaHash[Ve._id]?(Qe=Xe,ze=ve[1]*Ve._length/g._length):d.xaHash[Ve._id]?(Qe=We,ze=w==="ew"?-ve[0]*Ve._length/c._length:Se(Ve,Qe,{e:"right",w:"left"}[w])):(Qe=pe(Ve,We,Xe),ze=me(Ve,Qe)),Qe>1&&(Ve.maxallowed!==void 0&&p===(Ve.range[0]<Ve.range[1]?"n":"s")||Ve.minallowed!==void 0&&p===(Ve.range[0]<Ve.range[1]?"s":"n"))&&(Qe=1,ze=0),!(!rr&&!Qe)){rr||(rr=1),Qe||(Qe=1);var Ke=Ye._offset-Ce/rr,je=Ve._offset-ze/Qe;Pe.clipRect.call(ql.setTranslate,Ce,ze).call(ql.setScale,rr,Qe),Pe.plot.call(ql.setTranslate,Ke,je).call(ql.setScale,1/rr,1/Qe),(rr!==Pe.xScaleFactor||Qe!==Pe.yScaleFactor)&&(ql.setPointGroupScale(Pe.zoomScalePts,rr,Qe),ql.setTextPointsScale(Pe.zoomScaleTxt,rr,Qe)),ql.hideOutsideRangePoints(Pe.clipOnAxisFalseTraces,Pe),Pe.xScaleFactor=rr,Pe.yScaleFactor=Qe}}}}function pe(ve,he,be){return ve.fixedrange?0:A&&M.xaHash[ve._id]?he:p&&(M.isSubplotConstrained?M.xaHash:M.yaHash)[ve._id]?be:0}function me(ve,he){return he?(ve.range=ve._r.slice(),pb(ve,he),Se(ve,he)):0}function Se(ve,he,be){return ve._length*(1-he)*Kue[be||ve.constraintoward||"middle"]}return B}function WR(e,r,t,n){var a=fi.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(Zue,n),a.node()}function ZR(e,r,t,n,a,o,i){var l=WR(e,"rect",r,t);return xb.select(l).call(ql.setRect,n,a,o,i),l}function UR(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function ife(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,NR("."+a+"g")(Math.pow(10,t))):(a=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(n)/Math.LN10)+4,NR("."+String(a)+"g")(t))}function mb(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 g=(r+(1-t))/2;mb(a,g,1-g,n,[])}}function HR(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 ofe(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function lfe(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function JR(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",YR(t,n)).attr("d",a+"Z")}function $R(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:gb.background,stroke:gb.defaultLine,"stroke-width":1,opacity:0}).attr("transform",YR(r,t)).attr("d","M0,0Z")}function KR(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"),QR(e,r,a,o)}function QR(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 bb(e){xb.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function jR(e){OR&&e.data&&e._context.showTips&&(fi.notifier(fi._(e,"Double-click to zoom back out"),"long",e),OR=!1)}function sfe(e,r){return"M"+(e.l-.5)+","+(r-xa-.5)+"h-3v"+(2*xa+1)+"h3ZM"+(e.r+.5)+","+(r-xa-.5)+"h3v"+(2*xa+1)+"h-3Z"}function ufe(e,r){return"M"+(r-xa-.5)+","+(e.t-.5)+"v-3h"+(2*xa+1)+"v3ZM"+(r-xa-.5)+","+(e.b+.5)+"v3h"+(2*xa+1)+"v-3Z"}function X2(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,xa)/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 VR(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,c,g=(a||{}).xaHash,b=(a||{}).yaHash,h=0;h<r.length;h++){var _=r[h];for(u in t)if(_[u]){for(f in _)!(a&&(g[f]||b[f]))&&!(f.charAt(0)==="x"?t:n)[f]&&(i[f]=u);for(s in n)!(a&&(g[s]||b[s]))&&_[s]&&(o=!0)}for(s in n)if(_[s])for(c in _)!(a&&(g[c]||b[c]))&&!(c.charAt(0)==="x"?t:n)[c]&&(l[c]=s)}o&&(fi.extendFlat(i,l),l={});var T={},m=[];for(f in i){var k=yb(e,f);m.push(k),T[k._id]=k}var S={},x=[];for(c in l){var M=yb(e,c);x.push(M),S[M._id]=M}return{xaHash:T,yaHash:S,xaxes:m,yaxes:x,xLinks:i,yLinks:l,isSubplotConstrained:o}}function eF(e,r){if(!Yue)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 GR(e){var r=[];for(var t in e)r.push(e[t]);return r}rF.exports={makeDragBox:afe,makeDragger:WR,makeRectDragger:ZR,makeZoombox:JR,makeCorners:$R,updateZoombox:KR,xyCorners:X2,transitionZoombox:QR,removeZoombox:bb,showDoubleClickNotifier:jR,attachWheelEventHandler:eF}});var wb=xe(Z2=>{"use strict";var ffe=lt(),W2=yo(),cfe=Pi(),vfe=Dl(),Ni=tF().makeDragBox,Ln=(kn(),or(An)).DRAGGERSIZE;Z2.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){ffe.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=Ni(r,i,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(g){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===o&&r._fullLayout._plots[o]&&W2.hover(r,g,o)},W2.hover(r,g,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(g){r._dragging||(r._fullLayout._hoversubplot=null,cfe.unhover(r,g))},r._context.showAxisDragHandles&&(Ni(r,i,l._offset-Ln,u._offset-Ln,Ln,Ln,"n","w"),Ni(r,i,l._offset+l._length,u._offset-Ln,Ln,Ln,"n","e"),Ni(r,i,l._offset-Ln,u._offset+u._length,Ln,Ln,"s","w"),Ni(r,i,l._offset+l._length,u._offset+u._length,Ln,Ln,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Ln),Ni(r,i,l._offset+l._length*.1,f,l._length*.8,Ln,"","ew"),Ni(r,i,l._offset,f,l._length*.1,Ln,"","w"),Ni(r,i,l._offset+l._length*.9,f,l._length*.1,Ln,"","e")}if(o===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=Ln),Ni(r,i,c,u._offset+u._length*.1,Ln,u._length*.8,"ns",""),Ni(r,i,c,u._offset+u._length*.9,Ln,u._length*.1,"s",""),Ni(r,i,c,u._offset,Ln,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,W2.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,W2.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},Z2.updateFx(r)}};Z2.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";vfe(r._draggers,t)}});var iF=xe((Q_e,aF)=>{"use strict";var nF=Cr();aF.exports=function(r){for(var t=nF.layoutArrayContainers,n=nF.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 lF=xe(Bc=>{"use strict";var hfe=ss(),Mb=Dh(),qc=ll(),dfe=fy().sorterAsc,Tb=Cr();Bc.containerArrayMatch=iF();var pfe=Bc.isAddVal=function(r){return r==="add"||hfe(r)},oF=Bc.isRemoveVal=function(r){return r===null||r==="remove"};Bc.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=Tb.getComponentMethod(i,"supplyLayoutDefaults"),u=Tb.getComponentMethod(i,"draw"),s=Tb.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===Mb||u===Mb,c=r.layout,g=r._fullLayout;if(n[""]){Object.keys(n).length>1&&qc.warn("Full array edits are incompatible with other edits",i);var b=n[""][""];if(oF(b))t.set(null);else if(Array.isArray(b))t.set(b);else return qc.warn("Unrecognized full array edit value",i,b),!0;return f?!1:(l(c,g),u(r),!0)}var h=Object.keys(n).map(Number).sort(dfe),_=t.get(),T=_||[],m=o(g,i).get(),k=[],S=-1,x=T.length,M,d,w,y,v,A,p,D;for(M=0;M<h.length;M++){if(w=h[M],y=n[w],v=Object.keys(y),A=y[""],p=pfe(A),w<0||w>T.length-(p?0:1)){qc.warn("index out of range",i,w);continue}if(A!==void 0)v.length>1&&qc.warn("Insertion & removal are incompatible with edits to the same index.",i,w),oF(A)?k.push(w):p?(A==="add"&&(A={}),T.splice(w,0,A),m&&m.splice(w,0,{})):qc.warn("Unrecognized full object edit value",i,w,A),S===-1&&(S=w);else for(d=0;d<v.length;d++)D=i+"["+w+"].",o(T[w],v[d],D).set(y[v[d]])}for(M=k.length-1;M>=0;M--)T.splice(k[M],1),m&&m.splice(k[M],1);if(T.length?_||t.set(T):t.set(null),f)return!1;if(l(c,g),s!==Mb){var E;if(S===-1)E=h;else{for(x=Math.max(T.length,x),E=[],M=0;M<h.length&&(w=h[M],!(w>=S));M++)E.push(w);for(M=S;M<x;M++)E.push(M)}for(M=0;M<E.length;M++)s(r,E[M])}else u(r);return!0}});var dF=xe(ci=>{"use strict";var cF=ut(),vF=Cr(),ga=tr(),Oc=Sn(),hF=mn(),Uc=hF.cleanId,gfe=hF.getFromTrace,Ab=vF.traceIs,yfe=["x","y","z"];ci.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ga.log("Clearing previous rejected promises from queue."),e._promises=[]};ci.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=(Oc.subplotsRegistry.cartesian||{}).attrRegex,a=(Oc.subplotsRegistry.polar||{}).attrRegex,o=(Oc.subplotsRegistry.ternary||{}).attrRegex,i=(Oc.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=Uc(s.anchor)),s.overlaying&&(s.overlaying=Uc(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,J2(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];ga.isPlainObject(c)&&(_u(c,"xref"),_u(c,"yref"))}var g=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<g;r++){var b=e.shapes[r];ga.isPlainObject(b)&&(_u(b,"xref",!0),_u(b,"yref",!0))}var h=Array.isArray(e.images)?e.images.length:0;for(r=0;r<h;r++){var _=e.images[r];ga.isPlainObject(_)&&(_u(_,"xref"),_u(_,"yref"))}var T=e.legend;return T&&(T.x>3?(T.x=1.02,T.xanchor="left"):T.x<-2&&(T.x=-.02,T.xanchor="right"),T.y>3?(T.y=1.02,T.yanchor="bottom"):T.y<-2&&(T.y=-.02,T.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&ci.cleanLayout(e.template.layout),e};function _u(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=Uc(n,a,!0))}ci.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"&&ci.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=Uc(t.xaxis,"x")),t.yaxis&&(t.yaxis=Uc(t.yaxis,"y")),Ab(t,"gl3d")&&t.scene&&(t.scene=Oc.subplotsRegistry.gl3d.cleanId(t.scene)),!Ab(t,"pie-like")&&!Ab(t,"bar-like"))if(Array.isArray(t.textposition))for(n=0;n<t.textposition.length;n++)t.textposition[n]=uF(t.textposition[n]);else t.textposition&&(t.textposition=uF(t.textposition));var a=vF.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"&&ga.isPlainObject(t.contours)){var l=["x","y","z"];for(n=0;n<l.length;n++){var u=t.contours[l[n]];ga.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=sF(t.increasing),g=sF(t.decreasing);if(c!==!1&&g!==!1){var b=mfe(c,g,s,f);b&&(t.name=b)}else(c||g)&&!t.name&&(t.name=c||g)}J2(t,"line")&&delete t.line,"marker"in t&&(J2(t.marker,"line")&&delete t.marker.line,J2(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function sF(e){if(!ga.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function mfe(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 uF(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 J2(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}ci.swapXYData=function(e){var r;if(ga.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);ga.swapAttrs(e,["error_?.copy_ystyle"]),n&&ga.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("+")}};ci.coerceTraceIndices=function(e,r){if(cF(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++)ga.isIndex(r[n],e.data.length)?t.push(r[n]):ga.warn("trace index (",r[n],") is not a number or is out of bounds");return t}return r};ci.manageArrayContainers=function(e,r,t){var n=e.obj,a=e.parts,o=a.length,i=a[o-1],l=cF(i);if(l&&r===null){var u=a.slice(0,o-1).join("."),s=ga.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 bfe=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function fF(e){var r=e.search(bfe);if(r>0)return e.slice(0,r)}ci.hasParent=function(e,r){for(var t=fF(r);t;){if(t in e)return!0;t=fF(t)}return!1};ci.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=gfe(e,a,yfe[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&&ga.nestedProperty(e.layout,s).set(null)}}};var kb=(e,r)=>{let t=(...n)=>n.every(a=>ga.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)?kb(a,o):!1))return!1}return!0}else if([e,r].every(n=>ga.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)?kb(a,o):!1))return!1}return!0}return!1};ci.collectionsAreEqual=kb});var Db=xe(nt=>{"use strict";var j2=lt(),xfe=ut(),_fe=My(),vr=tr(),Et=vr.nestedProperty,Cb=Hf(),_a=nA(),vi=Cr(),od=Z0(),Rr=Sn(),ya=Vt(),wfe=Jm(),Mfe=ai(),K2=At(),Tfe=Zr(),Afe=wb().initInteractions,kfe=(wl(),or(_l)),Sfe=xu().clearOutline,bF=ol().dfltConfig,$2=lF(),vn=dF(),_t=L2(),Bl=ua(),Cfe=(kn(),or(An)).AX_NAME_PATTERN,Sb=0,pF=5;function Efe(e,r,t,n){var a;if(e=vr.getGraphDiv(e),Cb.init(e),vr.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=Cb.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!vr.isPlotDiv(e)&&vr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return nt.addFrames(e,a)}_F(e,n),t||(t={}),j2.select(e).classed("js-plotly-plot",!0),K2.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(vn.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=vn.cleanLayout(t)),Rr.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(jfe(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),K2.initGradients(e),K2.initPatterns(e),u&&ya.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Rr.doCalcdata(e);for(var g=0;g<e.calcdata.length;g++)e.calcdata[g][0].trace=e._fullData[g];if(e._context.responsive){if(!e._clearResponsive){let y=()=>{vr.isHidden(e)||Rr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",y),e._clearResponsive=()=>window.removeEventListener("resize",y);else{let v=e.offsetWidth,A=e.offsetHeight,p=new ResizeObserver(()=>{let D=e.offsetWidth,E=e.offsetHeight,R=Math.abs(D-v)>1||Math.abs(E-A)>1;v=D,A=E,R&&D&&E&&y()});p.observe(e),e._clearResponsive=()=>p.disconnect()}}}else vr.clearResponsive(e);let b=document.fonts?[...document.fonts].filter(y=>y.status!=="loaded"):[];var h=vr.extendFlat({},s._size),_=0;function T(){for(var y=s._basePlotModules,v=0;v<y.length;v++)y[v].drawFramework&&y[v].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(E){return E.key}),s._glcanvas.enter().append("canvas").attr("class",function(E){return"gl-canvas gl-canvas-"+E.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var A=e._context.plotGlPixelRatio;if(s._glcanvas){s._glcanvas.attr("width",s.width*A).attr("height",s.height*A).style("width",s.width+"px").style("height",s.height+"px");var p=s._glcanvas.data()[0].regl;if(p&&(Math.floor(s.width*A)!==p._gl.drawingBufferWidth||Math.floor(s.height*A)!==p._gl.drawingBufferHeight)){var D="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(_)vr.error(D);else return vr.log(D+" Clearing graph and plotting again."),Rr.cleanPlot([],{},e._fullData,s),Rr.supplyDefaults(e),s=e._fullLayout,Rr.doCalcdata(e),_++,T()}}return s.modebar.orientation==="h"?s._modebardiv.style("height",null).style("width","100%"):s._modebardiv.style("width",null).style("height",s.height+"px"),Rr.previousPromises(e)}function m(){if(Rr.clearAutoMarginIds(e),_t.drawMarginPushers(e),ya.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&Rr.allowAutoMargin(e,"title.automargin"),s._has("pie"))for(var y=e._fullData,v=0;v<y.length;v++){var A=y[v];A.type==="pie"&&A.automargin&&Rr.allowAutoMargin(e,"pie."+A.uid+".automargin")}return Rr.doAutoMargin(e),Rr.previousPromises(e)}function k(){if(Rr.didMarginChange(h,s._size))return m()}function S(){if(!c){x();return}return vr.syncOrAsync([vi.getComponentMethod("shapes","calcAutorange"),vi.getComponentMethod("annotations","calcAutorange"),x],e)}function x(){e._transitioning||(_t.doAutoRangeAndConstraints(e),u&&ya.saveRangeInitial(e),vi.getComponentMethod("rangeslider","calcAutorange")(e))}function M(){return ya.draw(e,u?"":"redraw")}var d=[Rr.previousPromises,l,T,m,k];f&&d.push(S),d.push(_t.layoutStyles),f&&d.push(M,function(v){var A=v._fullLayout._insideTickLabelsUpdaterange;if(A)return v._fullLayout._insideTickLabelsUpdaterange=void 0,Hc(v,A).then(function(){ya.saveRangeInitial(v,!0)})}),d.push(_t.drawData,_t.finalDraw,Afe,Rr.rehover,Rr.redrag,Rr.reselect,Rr.doAutoMargin,Rr.previousPromises);var w=vr.syncOrAsync(d,e);return(!w||!w.then)&&(w=Promise.resolve()),w.then(function(){return Lfe(e,b),Vc(e),e})}function Lfe(e,r){return j_(this,null,function*(){let t=r.filter(a=>["loaded","loading"].includes(a.status));if(!t.length)return;let n={};e._fontLoadToken=n,yield Promise.all(t.map(a=>a.loaded.catch(()=>{}))),e._fontLoadToken===n&&(delete e._fontLoadToken,K2.savedBBoxes={},nt._doPlot(e))})}function Vc(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function Dfe(e){return vr.extendFlat(bF,e)}function xF(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){vr.error(t)}}function Rfe(e,r){var t=Tfe.combine(r,"white");xF(e,t)}function _F(e,r){if(!e._context){e._context=vr.extendDeep({},bF);var t=j2.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]=Rfe: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"&&!_fe&&(n.displayModeBar=!0),(n.setBackground==="transparent"||typeof n.setBackground!="function")&&(n.setBackground=xF),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 Ffe(e){if(e=vr.getGraphDiv(e),!vr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return vn.cleanData(e.data),vn.cleanLayout(e.layout),e.calcdata=void 0,nt._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function Pfe(e,r,t,n){return e=vr.getGraphDiv(e),Rr.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),Rr.purge(e),nt._doPlot(e,r,t,n)}function ed(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 rd(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 wF(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]),rd(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&rd(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Ife(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 zfe(e,r,t,n){var a=vr.isPlainObject(n);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!vr.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");rd(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 Nfe(e,r,t,n){var a=vr.isPlainObject(n),o=[],i,l,u,s,f;Array.isArray(t)||(t=[t]),t=ed(t,e.data.length-1);for(var c in r)for(var g=0;g<t.length;g++){if(i=e.data[t[g]],u=Et(i,c),l=u.get(),s=r[c][g],!vr.isArrayOrTypedArray(s))throw new Error("attribute: "+c+" index: "+g+" must be an array");if(!vr.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][g]:n,xfe(f)||(f=-1),o.push({prop:u,target:l,insert:s,maxp:Math.floor(f)})}return o}function MF(e,r,t,n,a){zfe(e,r,t,n);for(var o=Nfe(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 TF(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function AF(e,r,t,n){e=vr.getGraphDiv(e);function a(u,s,f){var c,g;if(vr.isTypedArray(u))if(f<0){var b=new u.constructor(0),h=TF(u,s);f<0?(c=h,g=b):(c=b,g=h)}else if(c=new u.constructor(f),g=new u.constructor(u.length+s.length-f),f===s.length)c.set(s),g.set(u);else if(f<s.length){var _=s.length-f;c.set(s.subarray(_)),g.set(u),g.set(s.subarray(0,_),u.length)}else{var T=f-s.length,m=u.length-T;c.set(u.subarray(m)),c.set(s,T),g.set(u.subarray(0,m))}else c=u.concat(s),g=f>=0&&f<c.length?c.splice(0,c.length-f):[];return[c,g]}var o=MF(e,r,t,n,a),i=nt.redraw(e),l=[e,o.update,t,o.maxPoints];return _a.add(e,nt.prependTraces,l,AF,arguments),i}function kF(e,r,t,n){e=vr.getGraphDiv(e);function a(u,s,f){var c,g;if(vr.isTypedArray(u))if(f<=0){var b=new u.constructor(0),h=TF(s,u);f<0?(c=h,g=b):(c=b,g=h)}else if(c=new u.constructor(f),g=new u.constructor(u.length+s.length-f),f===s.length)c.set(s),g.set(u);else if(f<s.length){var _=s.length-f;c.set(s.subarray(0,_)),g.set(s.subarray(_)),g.set(u,_)}else{var T=f-s.length;c.set(s),c.set(u.subarray(0,T),s.length),g.set(u.subarray(T))}else c=s.concat(u),g=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,g]}var o=MF(e,r,t,n,a),i=nt.redraw(e),l=[e,o.update,t,o.maxPoints];return _a.add(e,nt.extendTraces,l,kF,arguments),i}function SF(e,r,t){e=vr.getGraphDiv(e);var n=[],a=nt.deleteTraces,o=SF,i=[e,n],l=[e,r],u,s;for(Ife(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return vr.extendFlat({},f)}),vn.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=nt.redraw(e),_a.add(e,a,i,o,l),s;Array.isArray(t)||(t=[t]);try{wF(e,n,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return _a.startSequence(e),_a.add(e,a,i,o,l),s=nt.moveTraces(e,n,t),_a.stopSequence(e),s}function CF(e,r){e=vr.getGraphDiv(e);var t=[],n=nt.addTraces,a=CF,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]),rd(e,r,"indices"),r=ed(r,e.data.length-1),r.sort(vr.sorterDes),l=0;l<r.length;l+=1)u=e.data.splice(r[l],1)[0],t.push(u);var s=nt.redraw(e);return _a.add(e,n,o,a,i),s}function Eb(e,r,t){e=vr.getGraphDiv(e);var n=[],a=[],o=Eb,i=Eb,l=[e,t,r],u=[e,r,t],s;if(wF(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=ed(r,e.data.length-1),t=ed(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,g){return c.newIndex-g.newIndex}),s=0;s<a.length;s+=1)n.splice(a[s].newIndex,0,a[s].trace);e.data=n;var f=nt.redraw(e);return _a.add(e,o,l,i,u),f}function td(e,r,t,n){e=vr.getGraphDiv(e),vn.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(vr.isPlainObject(r))a=vr.extendFlat({},r),n===void 0&&(n=t);else return vr.warn("Restyle fail.",r,t,n),Promise.reject();Object.keys(a).length&&(e.changed=!0);var o=vn.coerceTraceIndices(e,n),i=EF(e,a,o),l=i.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&vn.clearAxisTypes(e,o,{});var u=[];l.fullReplot?u.push(nt._doPlot):(u.push(Rr.previousPromises),Rr.supplyDefaults(e),l.markerSize&&(Rr.doCalcdata(e),ld(u)),l.style&&u.push(_t.doTraceStyle),l.colorbars&&u.push(_t.doColorBars),u.push(Vc)),u.push(Rr.rehover,Rr.redrag,Rr.reselect),_a.add(e,td,[e,i.undoit,i.traces],td,[e,i.redoit,i.traces]);var s=vr.syncOrAsync(u,e);return(!s||!s.then)&&(s=Promise.resolve()),s.then(function(){return e.emit("plotly_restyle",i.eventData),e})}function Go(e){return e===void 0?null:e}function Q2(e,r){return r?function(t,n,a){var o=Et(t,n),i=o.set;return o.set=function(l){var u=(a||"")+n;nd(u,o.get(),l,e),i(l)},o}:Et}function nd(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++)nd(e+"["+l+"]",a[l],o[l],n);else if(vr.isPlainObject(r)||vr.isPlainObject(t)){var u=vr.isPlainObject(r)?r:{},s=vr.isPlainObject(t)?t:{},f=vr.extendFlat({},u,s);for(var c in f)nd(e+"."+c,u[c],s[c],n)}else n[e]===void 0&&(n[e]=Go(r))}function qfe(e,r,t){for(var n in t){var a=Et(e,n);nd(n,a.get(),t[n],r)}}function EF(e,r,t){var n=e._fullLayout,a=e._fullData,o=e.data,i=n._guiEditing,l=Q2(n._preGUI,i),u=vr.extendDeepAll({},r),s,f=Bl.traceFlags(),c={},g={},b;function h(){return t.map(function(){})}function _(Q){var te=ya.id2name(Q);b.indexOf(te)===-1&&b.push(te)}function T(Q){return"LAYOUT"+Q+".autorange"}function m(Q){return"LAYOUT"+Q+".range"}function k(Q,te,ue){if(Array.isArray(Q)){Q.forEach(function(we){k(we,te,ue)});return}if(!(Q in r||vn.hasParent(r,Q))){var ee;if(Q.slice(0,6)==="LAYOUT")ee=l(e.layout,Q.replace("LAYOUT",""));else{var ie=t[ue],fe=n._tracePreGUI[a[ie].uid];ee=Q2(fe,i)(o[ie],Q)}Q in g||(g[Q]=h()),g[Q][ue]===void 0&&(g[Q][ue]=Go(ee.get())),te!==void 0&&ee.set(te)}}function S(Q){return function(te){return a[te][Q]}}function x(Q){return function(te,ue){return te===!1?a[t[ue]][Q]:null}}for(var M in r){if(vn.hasParent(r,M))throw new Error("cannot set "+M+" and a parent attribute simultaneously");var d=r[M],w,y,v,A,p,D;if((M==="autobinx"||M==="autobiny")&&(M=M.charAt(M.length-1)+"bins",Array.isArray(d)?d=d.map(x(M)):d===!1?d=t.map(S(M)):d=null),c[M]=d,M.slice(0,6)==="LAYOUT"){v=l(e.layout,M.replace("LAYOUT","")),g[M]=[Go(v.get())],v.set(Array.isArray(d)?d[0]:d),f.calc=!0;continue}for(g[M]=h(),s=0;s<t.length;s++){w=o[t[s]],y=a[t[s]];var E=n._tracePreGUI[y.uid];if(v=Q2(E,i)(w,M),A=v.get(),p=Array.isArray(d)?d[s%d.length]:d,p!==void 0){var R=v.parts[v.parts.length-1],I=M.slice(0,M.length-R.length-1),z=I?I+".":"",F=I?Et(y,I).get():y;if(D=od.getTraceValObject(y,v.parts),D&&D.impliedEdits&&p!==null)for(var L in D.impliedEdits)k(vr.relativeAttr(M,L),D.impliedEdits[L],s);else if((R==="thicknessmode"||R==="lenmode")&&A!==p&&(p==="fraction"||p==="pixels")&&F){var P=n._size,B=F.orient,O=B==="top"||B==="bottom";if(R==="thicknessmode"){var G=O?P.h:P.w;k(z+"thickness",F.thickness*(p==="fraction"?1/G:G),s)}else{var J=O?P.w:P.h;k(z+"len",F.len*(p==="fraction"?1/J:J),s)}}else if(M==="type"&&(p==="pie"!=(A==="pie")||p==="funnelarea"!=(A==="funnelarea"))){var j="x",V="y";(p==="bar"||A==="bar")&&w.orientation==="h"&&(j="y",V="x"),vr.swapAttrs(w,["?"],"labels",j),vr.swapAttrs(w,["d?","?0"],"label",j),vr.swapAttrs(w,["?"],"values",V),A==="pie"||A==="funnelarea"?(Et(w,"marker.color").set(Et(w,"marker.colors").get()),n._pielayer.selectAll("g.trace").remove()):vi.traceIs(w,"cartesian")&&Et(w,"marker.colors").set(Et(w,"marker.color").get())}g[M][s]=Go(A);var q=["swapxy","swapxyaxes","orientation","orientationaxes"];if(q.indexOf(M)!==-1){if(M==="orientation"){v.set(p);var Z=w.x&&!w.y?"h":"v";if((v.get()||Z)===y.orientation)continue}else M==="orientationaxes"&&(w.orientation={v:"h",h:"v"}[y.orientation]);vn.swapXYData(w),f.calc=f.clearAxisTypes=!0}else Rr.dataArrayContainers.indexOf(v.parts[0])!==-1?(vn.manageArrayContainers(v,p,g),f.calc=!0):(D?D.arrayOk&&!vi.traceIs(y,"regl")&&(vr.isArrayOrTypedArray(p)||vr.isArrayOrTypedArray(A))?f.calc=!0:Bl.update(f,D):f.calc=!0,v.set(p))}}if(["swapxyaxes","orientationaxes"].indexOf(M)!==-1&&ya.swap(e,t),M==="orientationaxes"){var re=Et(e.layout,"hovermode"),$=re.get();$==="x"?re.set("y"):$==="y"?re.set("x"):$==="x unified"?re.set("y unified"):$==="y unified"&&re.set("x unified")}if(["orientation","type"].indexOf(M)!==-1){for(b=[],s=0;s<t.length;s++){var ae=o[t[s]];vi.traceIs(ae,"cartesian")&&(_(ae.xaxis||"x"),_(ae.yaxis||"y"))}k(b.map(T),!0,0),k(b.map(m),[0,1],0)}}return(f.calc||f.plot)&&(f.fullReplot=!0),{flags:f,undoit:g,redoit:c,traces:t,eventData:vr.extendDeepNoArrays([],[u,t])}}function Hc(e,r,t){e=vr.getGraphDiv(e),vn.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(vr.isPlainObject(r))n=vr.extendFlat({},r);else return vr.warn("Relayout fail.",r,t),Promise.reject();Object.keys(n).length&&(e.changed=!0);var a=FF(e,n),o=a.flags;o.calc&&(e.calcdata=void 0);var i=[Rr.previousPromises];o.layoutReplot?i.push(_t.layoutReplot):Object.keys(n).length&&(LF(e,o,a)||Rr.supplyDefaults(e),o.legend&&i.push(_t.doLegend),o.layoutstyle&&i.push(_t.layoutStyles),o.axrange&&ld(i,a.rangesAltered),o.ticks&&i.push(_t.doTicksRelayout),o.modebar&&i.push(_t.doModeBar),o.camera&&i.push(_t.doCamera),o.colorbars&&i.push(_t.doColorBars),i.push(Vc)),i.push(Rr.rehover,Rr.redrag,Rr.reselect),_a.add(e,Hc,[e,a.undoit],Hc,[e,a.redoit]);var l=vr.syncOrAsync(i,e);return(!l||!l.then)&&(l=Promise.resolve(e)),l.then(function(){return e.emit("plotly_relayout",a.eventData),e})}function LF(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(b,h){return vr.coerce(o,i,Mfe,b,h)},u={};for(var s in t.rangesAltered){var f=ya.id2name(s);if(o=e.layout[f],i=n[f],wfe(o,i,l,u),i._matchGroup){for(var c in i._matchGroup)if(c!==s){var g=n[ya.id2name(c)];g.autorange=i.autorange,g.range=i.range.slice(),g._input.range=i.range.slice()}}}return!0}function ld(e,r){var t=r?function(n){var a=[],o=!0;for(var i in r){var l=ya.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 ya.draw(n,a,{skipTitle:o})}:function(n){return ya.draw(n,"redraw")};e.push(Sfe,_t.doAutoRangeAndConstraints,t,_t.drawData,_t.finalDraw)}var DF=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,RF=/^[xyz]axis[0-9]*\.autorange$/,Bfe=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function FF(e,r){var t=e.layout,n=e._fullLayout,a=n._guiEditing,o=Q2(n._preGUI,a),i=Object.keys(r),l=ya.list(e),u=vr.extendDeepAll({},r),s={},f,c,g;for(i=Object.keys(r),c=0;c<i.length;c++)if(i[c].indexOf("allaxes")===0){for(g=0;g<l.length;g++){var b=l[g]._id.slice(1),h=b.indexOf("scene")!==-1?b+".":"",_=i[c].replace("allaxes",h+l[g]._name);r[_]||(r[_]=r[i[c]])}delete r[i[c]]}var T=Bl.layoutFlags(),m={},k={};function S(we,Te){if(Array.isArray(we)){we.forEach(function(ge){S(ge,Te)});return}if(!(we in r||vn.hasParent(r,we))){var ke=o(t,we);we in k||(k[we]=Go(ke.get())),Te!==void 0&&ke.set(Te)}}var x={},M;function d(we){var Te=ya.name2id(we.split(".")[0]);return x[Te]=1,Te}for(var w in r){if(vn.hasParent(r,w))throw new Error("cannot set "+w+" and a parent attribute simultaneously");for(var y=o(t,w),v=r[w],A=y.parts.length,p=A-1;p>0&&typeof y.parts[p]!="string";)p--;var D=y.parts[p],E=y.parts[p-1]+"."+D,R=y.parts.slice(0,p).join("."),I=Et(e.layout,R).get(),z=Et(n,R).get(),F=y.get();if(v!==void 0){m[w]=v,k[w]=D==="reverse"?v:Go(F);var L=od.getLayoutValObject(n,y.parts);if(L&&L.impliedEdits&&v!==null)for(var P in L.impliedEdits)S(vr.relativeAttr(w,P),L.impliedEdits[P]);if(["width","height"].indexOf(w)!==-1)if(v){S("autosize",null);var B=w==="height"?"width":"height";S(B,n[B])}else n[w]=e._initialAutoSize[w];else if(w==="autosize")S("width",v?null:n.width),S("height",v?null:n.height);else if(E.match(DF))d(E),Et(n,R+"._inputRange").set(null);else if(E.match(RF)){d(E),Et(n,R+"._inputRange").set(null);var O=Et(n,R).get();O._inputDomain&&(O._input.domain=O._inputDomain.slice())}else E.match(Bfe)&&Et(n,R+"._inputDomain").set(null);if(D==="type"){M=I;var G=z.type==="linear"&&v==="log",J=z.type==="log"&&v==="linear";if(G||J){if(!M||!M.range)S(R+".autorange",!0);else if(z.autorange)G&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var j=M.range[0],V=M.range[1];G?(j<=0&&V<=0&&S(R+".autorange",!0),j<=0?j=V/1e6:V<=0&&(V=j/1e6),S(R+".range[0]",Math.log(j)/Math.LN10),S(R+".range[1]",Math.log(V)/Math.LN10)):(S(R+".range[0]",Math.pow(10,j)),S(R+".range[1]",Math.pow(10,V)))}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"],vi.getComponentMethod("annotations","convertCoords")(e,z,v,S),vi.getComponentMethod("images","convertCoords")(e,z,v,S)}else S(R+".autorange",!0),S(R+".range",null);Et(n,R+"._inputRange").set(null)}else if(D.match(Cfe)){var q=Et(n,w).get(),Z=(v||{}).type;(!Z||Z==="-")&&(Z="linear"),vi.getComponentMethod("annotations","convertCoords")(e,q,Z,S),vi.getComponentMethod("images","convertCoords")(e,q,Z,S),!R&&q&&v&&(v.range!==void 0||v.autorange!==void 0)&&(d(`${D}.range`),q._inputRange=null)}var re=$2.containerArrayMatch(w);if(re){f=re.array,c=re.index;var $=re.property,ae=L||{editType:"calc"};c!==""&&$===""&&($2.isAddVal(v)?k[w]=null:$2.isRemoveVal(v)?k[w]=(Et(t,f).get()||[])[c]:vr.warn("unrecognized full object value",r)),Bl.update(T,ae),s[f]||(s[f]={});var Q=s[f][c];Q||(Q=s[f][c]={}),Q[$]=v,delete r[w]}else D==="reverse"?(I.range?I.range.reverse():(S(R+".autorange",!0),I.range=[1,0]),z.autorange?T.calc=!0:T.plot=!0):(w==="dragmode"&&(v===!1&&F!==!1||v!==!1&&F===!1)||n._has("scatter-like")&&n._has("regl")&&w==="dragmode"&&(v==="lasso"||v==="select")&&!(F==="lasso"||F==="select")?T.plot=!0:L?Bl.update(T,L):T.calc=!0,y.set(v))}}for(f in s){var te=$2.applyContainerArrayChanges(e,o(t,f),s[f],T,o);te||(T.plot=!0)}for(var ue in x){M=ya.getFromId(e,ue);var ee=M&&M._constraintGroup;if(ee){T.calc=!0;for(var ie in ee)x[ie]||(ya.getFromId(e,ie)._constraintShrinkable=!0)}}(PF(e)||r.height||r.width)&&(T.plot=!0);var fe=n.shapes;for(c=0;c<fe.length;c++)if(fe[c].showlegend){T.calc=!0;break}return(T.plot||T.calc)&&(T.layoutReplot=!0),{flags:T,rangesAltered:x,undoit:k,redoit:m,eventData:u}}function PF(e){var r=e._fullLayout,t=r.width,n=r.height;return e.layout.autosize&&Rr.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==n}function ad(e,r,t,n){e=vr.getGraphDiv(e),vn.clearPromiseQueue(e),vr.isPlainObject(r)||(r={}),vr.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var a=vn.coerceTraceIndices(e,n),o=EF(e,vr.extendFlat({},r),a),i=o.flags,l=FF(e,vr.extendFlat({},t)),u=l.flags;(i.calc||u.calc)&&(e.calcdata=void 0),i.clearAxisTypes&&vn.clearAxisTypes(e,a,t);var s=[];u.layoutReplot?s.push(_t.layoutReplot):i.fullReplot?s.push(nt._doPlot):(s.push(Rr.previousPromises),LF(e,u,l)||Rr.supplyDefaults(e),i.style&&s.push(_t.doTraceStyle),(i.colorbars||u.colorbars)&&s.push(_t.doColorBars),u.legend&&s.push(_t.doLegend),u.layoutstyle&&s.push(_t.layoutStyles),u.axrange&&ld(s,l.rangesAltered),u.ticks&&s.push(_t.doTicksRelayout),u.modebar&&s.push(_t.doModeBar),u.camera&&s.push(_t.doCamera),s.push(Vc)),s.push(Rr.rehover,Rr.redrag,Rr.reselect),_a.add(e,ad,[e,o.undoit,l.undoit,o.traces],ad,[e,o.redoit,l.redoit,o.traces]);var f=vr.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 Lb(e){return function(t){t._fullLayout._guiEditing=!0;var n=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,n}}var Ofe=[{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"}],Ufe=[{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 gF(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 yF(e,r){var t=Et(r,e).get();if(t!==void 0)return t;var n=e.split(".");for(n.pop();n.length>1;)if(n.pop(),t=Et(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Hfe(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function Vfe(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 mF(e,r){var t=vr.isPlainObject(e),n=Array.isArray(e);return t||n?(t&&vr.isPlainObject(r)||n&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function Gfe(e,r,t,n){var a=n._preGUI,o,i,l,u,s,f,c,g,b,h,_=[],T={},m={};for(o in a){if(s=gF(o,Ofe),s){if(b=s.head,h=s.tail,i=s.attr||b+".uirevision",l=Et(n,i).get(),u=l&&yF(i,r),u&&u===l){if(f=a[o],f===null&&(f=void 0),c=Et(r,o),g=c.get(),mF(g,f)){g===void 0&&h==="autorange"&&_.push(b),c.set(Go(Et(n,o).get()));continue}else if(h==="autorange"||h.slice(0,6)==="range["){var k=a[b+".range[0]"],S=a[b+".range[1]"],x=a[b+".autorange"];if(x||x===null&&k===null&&S===null){if(!(b in T)){var M=Et(r,b).get();T[b]=M&&(M.autorange||M.autorange!==!1&&(!M.range||M.range.length!==2))}if(T[b]){c.set(Go(Et(n,o).get()));continue}}}}}else vr.warn("unrecognized GUI edit: "+o);delete a[o],s&&s.tail.slice(0,6)==="range["&&(m[s.head]=1)}for(var d=0;d<_.length;d++){var w=_[d];if(m[w]){var y=Et(r,w).get();y&&delete y.autorange}}var v=n._tracePreGUI;for(var A in v){var p=v[A],D=null,E;for(o in p){if(!D){var R=Hfe(A,t);if(R<0){delete v[A];break}E=t[R];var I=Vfe(A,e,E.index);if(I<0){delete v[A];break}D=e[I]}if(s=gF(o,Ufe),s){if(s.attr?(l=Et(n,s.attr).get(),u=l&&yF(s.attr,r)):(l=E.uirevision,u=D.uirevision,u===void 0&&(u=r.uirevision)),u&&u===l&&(f=p[o],f===null&&(f=void 0),c=Et(D,o),g=c.get(),mF(g,f))){c.set(Go(Et(E,o).get()));continue}}else vr.warn("unrecognized GUI edit: "+o+" in trace uid "+A);delete p[o]}}}function Yfe(e,r,t,n){var a,o;function i(){return nt.addFrames(e,a)}e=vr.getGraphDiv(e),vn.clearPromiseQueue(e);var l=e._fullData,u=e._fullLayout;if(!vr.isPlotDiv(e)||!l||!u)o=nt.newPlot(e,r,t,n);else{if(vr.isPlainObject(r)){var s=r;r=s.data,t=s.layout,n=s.config,a=s.frames}var f=!1;if(n){let E=vr.extendDeepAll({},e._context);e._context=void 0,_F(e,n),f=!vn.collectionsAreEqual(E,e._context)}if(f){let E=e._ev.eventNames().map(R=>[R,e._ev.listeners(R)]);o=nt.newPlot(e,r,t,n).then(()=>{for(let[R,I]of E)I.forEach(z=>e.on(R,z));return nt.react(e,r,t,n)})}else{e.data=r||[],vn.cleanData(e.data),e.layout=t||{},vn.cleanLayout(e.layout),Gfe(e.data,e.layout,l,u),Rr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,g=e._fullLayout,b=g.datarevision===void 0,h=g.transition,_=Wfe(e,u,g,b,h),T=_.newDataRevision,m=Xfe(e,l,c,b,h,T);if(PF(e)&&(_.layoutReplot=!0),m.calc||_.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(g),S=0;S<k.length;S++){var x=k[S],M=x.substring(0,5);if(M==="xaxis"||M==="yaxis"){var d=g[x]._emptyCategories;d&&d()}}}else Rr.supplyDefaultsUpdateCalc(e.calcdata,c);var w=[];if(a&&(e._transitionData={},Rr.createTransitionData(e),w.push(i)),g.transition&&(m.anim||_.anim))_.ticks&&w.push(_t.doTicksRelayout),Rr.doCalcdata(e),_t.doAutoRangeAndConstraints(e),w.push(function(){return Rr.transitionFromReact(e,m,_,u)});else if(m.fullReplot||_.layoutReplot)e._fullLayout._skipDefaults=!0,w.push(nt._doPlot);else{for(var y in _.arrays){var v=_.arrays[y];if(v.length){var A=vi.getComponentMethod(y,"drawOne");if(A!==vr.noop)for(var p=0;p<v.length;p++)A(e,v[p]);else{var D=vi.getComponentMethod(y,"draw");if(D===vr.noop)throw new Error("cannot draw components: "+y);D(e)}}}w.push(Rr.previousPromises),m.style&&w.push(_t.doTraceStyle),(m.colorbars||_.colorbars)&&w.push(_t.doColorBars),_.legend&&w.push(_t.doLegend),_.layoutstyle&&w.push(_t.layoutStyles),_.axrange&&ld(w),_.ticks&&w.push(_t.doTicksRelayout),_.modebar&&w.push(_t.doModeBar),_.camera&&w.push(_t.doCamera),w.push(Vc)}w.push(Rr.rehover,Rr.redrag,Rr.reselect),o=vr.syncOrAsync(w,e),(!o||!o.then)&&(o=Promise.resolve(e))}}return o.then(()=>(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function Xfe(e,r,t,n,a,o){var i=r.length===t.length;if(!a&&!i)return{fullReplot:!0,calc:!0};var l=Bl.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var u,s;function f(b){var h=od.getTraceValObject(s,b);return!s._module.animatable&&h.anim&&(h.anim=!1),h}var c={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:o,gd:e},g={};for(u=0;u<r.length;u++)if(t[u]){if(s=t[u],g[s.uid])continue;g[s.uid]=1,id(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 Wfe(e,r,t,n,a){var o=Bl.layoutFlags();o.arrays={},o.rangesAltered={},o.nChanges=0,o.nChangesAnim=0;function i(g){return od.getLayoutValObject(t,g)}for(var l in t){if(!l.startsWith("xaxis")&&!l.startsWith("yaxis")||!r[l])continue;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));let g=t[l].range,b=r[l].range,h=r[l]._inputRange;if(h&&g&&b){let _=g[0]===h[0]&&g[1]===h[1],T=g[0]===b[0]&&g[1]===b[1];!_&&!T&&(t[l]._inputRange=null)}}var c={getValObject:i,flags:o,immutable:n,transition:a,gd:e};return id(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 id(e,r,t,n){var a,o,i,l=n.getValObject,u=n.flags,s=n.immutable,f=n.inArray,c=n.arrayIndex;function g(){var R=a.editType;if(f&&R.indexOf("arraydraw")!==-1){vr.pushUnique(u.arrays[f],c);return}Bl.update(u,a),R!=="none"&&u.nChanges++,n.transition&&a.anim&&u.nChangesAnim++,(DF.test(i)||RF.test(i))&&(u.rangesAltered[t[0]]=1),o==="datarevision"&&(u.newDataRevision=1)}function b(R){return R.valType==="data_array"||R.arrayOk}for(o in e){if(u.calc&&!n.transition)return;var h=e[o],_=r[o],T=t.concat(o);if(i=T.join("."),!(o.charAt(0)==="_"||typeof h=="function"||h===_)){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(T),!!a&&!(a._compareAsJSON&&JSON.stringify(h)===JSON.stringify(_)))){var k=a.valType,S,x=b(a),M=Array.isArray(h),d=Array.isArray(_);if(M&&d){var w="_input_"+o,y=e[w],v=r[w];if(Array.isArray(y)&&y===v)continue}if(_===void 0)x&&M?u.calc=!0:g();else if(a._isLinkedToArray){var A=[],p=!1;f||(u.arrays[o]=A);var D=Math.min(h.length,_.length),E=Math.max(h.length,_.length);if(D!==E)if(a.editType==="arraydraw")p=!0;else{g();continue}for(S=0;S<D;S++)id(h[S],_[S],T.concat(S),vr.extendFlat({inArray:o,arrayIndex:S},n));if(p)for(S=D;S<E;S++)A.push(S)}else!k&&vr.isPlainObject(h)?id(h,_,T,n):x?M&&d?(s&&(u.calc=!0),(s||n.newDataRevision)&&g()):M!==d?u.calc=!0:g():M&&d?(h.length!==_.length||String(h)!==String(_))&&g():g()}}}for(o in r)if(!(o in e||o.charAt(0)==="_"||typeof r[o]=="function"))if(a=l(t.concat(o)),b(a)&&Array.isArray(r[o])){u.calc=!0;return}else g()}function Zfe(e,r,t){if(e=vr.getGraphDiv(e),!vr.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=Rr.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 g(D){if(D.length!==0){for(var E=0;E<D.length;E++){var R;D[E].type==="byname"?R=Rr.computeFrame(e,D[E].name):R=D[E].data;var I=l(E),z=i(E);z.duration=Math.min(z.duration,I.duration);var F={frame:R,name:D[E].name,frameOpts:I,transitionOpts:z};E===D.length-1&&(F.onComplete=u(s,2),F.onInterrupt=f),n._frameQueue.push(F)}t.mode==="immediate"&&(n._lastFrameAt=-1/0),n._animationRaf||_()}}function b(){e.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function h(){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,Rr.transition(e,D.frame.data,D.frame.layout,vn.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 b()}function _(){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&&h()};D()}var T=0;function m(D){return Array.isArray(a)?T>=a.length?D.transitionOpts=a[T]:D.transitionOpts=a[0]:D.transitionOpts=a,T++,D}var k,S,x=[],M=r==null,d=Array.isArray(r),w=!M&&!d&&vr.isPlainObject(r);if(w)x.push({type:"object",data:m(vr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(k=0;k<n._frames.length;k++)S=n._frames[k],S&&(M||String(S.group)===String(r))&&x.push({type:"byname",name:String(S.name),data:m({name:S.name})});else if(d)for(k=0;k<r.length;k++){var y=r[k];["number","string"].indexOf(typeof y)!==-1?(y=String(y),x.push({type:"byname",name:y,data:m({name:y})})):vr.isPlainObject(y)&&x.push({type:"object",data:m(vr.extendFlat({},y))})}for(k=0;k<x.length;k++)if(S=x[k],S.type==="byname"&&!n._frameHash[S.data.name]){vr.warn('animate failure: frame not found: "'+S.data.name+'"'),f();return}["next","immediate"].indexOf(t.mode)!==-1&&c(),t.direction==="reverse"&&x.reverse();var v=e._fullLayout._currentFrame;if(v&&t.fromcurrent){var A=-1;for(k=0;k<x.length;k++)if(S=x[k],S.type==="byname"&&S.name===v){A=k;break}if(A>0&&A<x.length-1){var p=[];for(k=0;k<x.length;k++)S=x[k],(x[k].type!=="byname"||k>A)&&p.push(S);x=p}}x.length>0?g(x):(e.emit("plotly_animated"),s())})}function Jfe(e,r,t){if(e=vr.getGraphDiv(e),r==null)return Promise.resolve();if(!vr.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(vr.isPlainObject(r[n])){var g=r[n].name,b=(u[g]||c[g]||{}).name,h=r[n].name,_=u[b]||c[b];b&&h&&typeof h=="number"&&_&&Sb<pF&&(Sb++,vr.warn('addFrames: overwriting frame "'+(u[b]||c[b]).name+'" with a frame whose name of type "number" also equates to "'+b+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),Sb===pF&&vr.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[g]={name:g},f.push({frame:Rr.supplyFrameDefaults(r[n]),index:t&&t[n]!==void 0&&t[n]!==null?t[n]:s+n})}f.sort(function(w,y){return w.index>y.index?-1:w.index<y.index?1:0});var T=[],m=[],k=l.length;for(n=f.length-1;n>=0;n--){if(a=f[n].frame,typeof a.name=="number"&&vr.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++);T.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)),T.push({type:"insert",index:i,value:a}),m.unshift({type:"delete",index:i}),k++}var S=Rr.modifyFrames,x=Rr.modifyFrames,M=[e,m],d=[e,T];return _a&&_a.add(e,S,M,x,d),Rr.modifyFrames(e,T)}function $fe(e,r){if(e=vr.getGraphDiv(e),!vr.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=Rr.modifyFrames,u=Rr.modifyFrames,s=[e,i],f=[e,o];return _a&&_a.add(e,l,s,u,f),Rr.modifyFrames(e,o)}function Kfe(e){e=vr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Rr.cleanPlot([],{},t,r),Rr.purge(e),Cb.purge(e),r._container&&r._container.remove(),delete e._context,e}function Qfe(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!vr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=vr.inverseTransformMatrix(vr.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 jfe(e){var r=j2.select(e),t=e._fullLayout;if(t._calcInverseTransform=Qfe,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={};j2.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=vr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(kfe.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")}nt.animate=Zfe;nt.addFrames=Jfe;nt.deleteFrames=$fe;nt.addTraces=SF;nt.deleteTraces=CF;nt.extendTraces=AF;nt.moveTraces=Eb;nt.prependTraces=kF;nt.newPlot=Pfe;nt._doPlot=Efe;nt.purge=Kfe;nt.react=Yfe;nt.redraw=Ffe;nt.relayout=Hc;nt.restyle=td;nt.setPlotConfig=Dfe;nt.update=ad;nt._guiRelayout=Lb(Hc);nt._guiRestyle=Lb(td);nt._guiUpdate=Lb(ad);nt._storeDirectGUIEdit=qfe});var Zs=xe(hi=>{"use strict";var ece=Cr();hi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};hi.getRedrawFunc=function(e){return function(){ece.getComponentMethod("colorbar","draw")(e)}};hi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};hi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var IF=window.URL||window.webkitURL;hi.createObjectURL=function(e){return IF.createObjectURL(e)};hi.revokeObjectURL=function(e){return IF.revokeObjectURL(e)};hi.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=rce(window.atob(e));return new window.Blob([t],{type:"image/"+r})};hi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};hi.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};hi.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 rce(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}hi.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var sd=xe((o7e,zF)=>{"use strict";var Fb=lt(),a7e=tr(),tce=At(),nce=Zr(),i7e=(wl(),or(_l)),Rb=/"/g,Js="TOBESTRIPPED",ace=new RegExp(`("${Js})|(${Js}")|(&quot;${Js})|(${Js}&quot;)`,"g"),ice=["&amp;","&#38;","&#x26;","&quot;","&#34;","&#x22;","&apos;","&#39;","&#x27;"],oce=["&lt;","&#60;","&#x3c;"],lce=["&gt;","&#62;","&#x3e;"];function sce(e){let r=Fb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,n=>{let a=n.toLowerCase();return ice.includes(a)?n:oce.includes(a)?"&#60;":lce.includes(a)?"&#62;":n.includes("<")||n.includes(">")?"":r.html(n).text()});return r.remove(),t}function uce(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")}zF.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(tce.setRect,0,0,l,u).call(nce.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 g=i.node().childNodes,b=Array.prototype.slice.call(g);for(s=0;s<b.length;s++){var h=b[s];h.childNodes.length&&o.node().appendChild(h)}}a._draggers&&a._draggers.remove(),o.node().style.background="",o.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var T=Fb.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){T.remove();return}else T.style({visibility:null,display:null});var m=this.style.fontFamily;m&&m.indexOf('"')!==-1&&T.style("font-family",m.replace(Rb,Js));var k=this.style.fontWeight;k&&(k==="normal"||k==="400")&&T.style("font-weight",void 0);var S=this.style.fontStyle;S&&S==="normal"&&T.style("font-style",void 0);var x=this.style.fontVariant;x&&x==="normal"&&T.style("font-variant",void 0)}),o.selectAll(".gradient_filled,.pattern_filled").each(function(){var T=Fb.select(this),m=this.style.fill;m&&m.indexOf("url(")!==-1&&T.style("fill",m.replace(Rb,Js));var k=this.style.stroke;k&&k.indexOf("url(")!==-1&&T.style("stroke",k.replace(Rb,Js))}),(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 _=new window.XMLSerializer().serializeToString(o.node());return _=sce(_),_=uce(_),_=_.replace(ace,"'"),_}});var ud=xe((l7e,NF)=>{"use strict";var fce=tr(),cce=e1().EventEmitter,Gc=Zs();function vce(e){var r=e.emitter||new cce,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,g=s*f,b=s*c,h=u.getContext("2d",{willReadFrequently:!0}),_=new o,T,m;l==="svg"||fce.isSafari()?m=Gc.encodeSVG(i):(T=Gc.createBlob(i,"svg"),m=Gc.createObjectURL(T)),u.width=g,u.height=b,_.onload=function(){var k;switch(T=null,Gc.revokeObjectURL(m),l!=="svg"&&h.drawImage(_,0,0,g,b),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)},_.onerror=function(k){if(T=null,Gc.revokeObjectURL(m),a(k),!e.promise)return r.emit("error",k)},_.src=m});return e.promise?t:r}NF.exports=vce});var Ib=xe((s7e,OF)=>{"use strict";var qF=ut(),BF=Db(),hce=Sn(),Mo=tr(),Yc=Zs(),dce=sd(),pce=ud(),gce=uf().version,Pb=(U3(),or(O3)).default;function yce(e,r){r=r||{};var t,n,a,o;Mo.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=Mo.getGraphDiv(e),t=Mo.extendDeep([],e.data),n=Mo.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(d){return!(d in r)||Mo.validate(r[d],Pb[d])}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 "+Mo.join2(Pb.format.values,", "," or ")+".");var l={};function u(d,w){return Mo.coerce(r,l,Pb,d,w)}var s=u("format"),f=u("width"),c=u("height"),g=u("scale"),b=u("setBackground"),h=u("imageDataOnly"),_=document.createElement("div");_.style.position="absolute",_.style.left="-5000px",document.body.appendChild(_);var T=Mo.extendFlat({},n);f?T.width=f:r.width===null&&qF(o.width)&&(T.width=o.width),c?T.height=c:r.height===null&&qF(o.height)&&(T.height=o.height);var m=Mo.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:b}),k=Yc.getRedrawFunc(_);function S(){return new Promise(function(d){setTimeout(d,Yc.getDelay(_._fullLayout))})}function x(){return new Promise(function(d,w){var y=dce(_,s,g),v=_._fullLayout.width,A=_._fullLayout.height;function p(){BF.purge(_),document.body.removeChild(_)}if(s==="full-json"){var D=hce.graphJson(_,!1,"object",!0,!0);return D.version=gce,D=JSON.stringify(D),p(),d(h?D:Yc.encodeJSON(D))}if(p(),s==="svg")return d(h?y:Yc.encodeSVG(y));var E=document.createElement("canvas");E.id=Mo.randstr(),pce({format:s,width:v,height:A,scale:g,canvas:E,svg:y,promise:!0}).then(d).catch(w)})}function M(d){return h?d.replace(Yc.IMAGE_URL_PREFIX,""):d}return new Promise(function(d,w){BF.newPlot(_,t,T,m).then(k).then(S).then(x).then(function(y){d(M(y))}).catch(function(y){w(y)})})}OF.exports=yce});var VF=xe((u7e,HF)=>{"use strict";var di=tr(),mce=Sn(),bce=Z0(),xce=ol().dfltConfig,qi=di.isPlainObject,Ks=Array.isArray,zb=di.isArrayOrTypedArray;HF.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=bce.get(),a=[],o={_context:di.extendFlat({},xce)},i,l;Ks(r)?(o.data=di.extendDeep([],r),i=r):(o.data=[],i=[],a.push(Dn("array","data"))),qi(t)?(o.layout=di.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(Dn("object","layout"))),mce.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;f<s;f++){var c=i[f],g=["data",f];if(!qi(c)){a.push(Dn("object",g));continue}var b=u[f],h=b.type,_=n.traces[h].attributes;_.type={valType:"enumerated",values:[h]},b.visible===!1&&c.visible!==!1&&a.push(Dn("invisible",g)),fd(c,b,_,a,g)}var T=o._fullLayout,m=_ce(n,u);return fd(l,T,m,a,"layout"),a.length===0?void 0:a};function fd(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],g=Tce(t,u),b=(g||{}).valType,h=b==="info_array",_=b==="colorscale",T=(g||{}).items;if(!Mce(t,u))n.push(Dn("schema",a,s));else if(qi(f)&&qi(c)&&b!=="any")fd(f,c,g,n,a,s);else if(h&&Ks(f)){f.length>c.length&&n.push(Dn("unused",a,s.concat(c.length)));var m=c.length,k=Array.isArray(T);k&&(m=Math.min(m,T.length));var S,x,M,d,w;if(g.dimensions===2)for(x=0;x<m;x++)if(Ks(f[x])){f[x].length>c[x].length&&n.push(Dn("unused",a,s.concat(x,c[x].length)));var y=c[x].length;for(S=0;S<(k?Math.min(y,T[x].length):y);S++)M=k?T[x][S]:T,d=f[x][S],w=c[x][S],di.validate(d,M)?w!==d&&w!==+d&&n.push(Dn("dynamic",a,s.concat(x,S),d,w)):n.push(Dn("value",a,s.concat(x,S),d))}else n.push(Dn("array",a,s.concat(x),f[x]));else for(x=0;x<m;x++)M=k?T[x]:T,d=f[x],w=c[x],di.validate(d,M)?w!==d&&w!==+d&&n.push(Dn("dynamic",a,s.concat(x),d,w)):n.push(Dn("value",a,s.concat(x),d))}else if(g.items&&!h&&Ks(f)){var v=T[Object.keys(T)[0]],A=[],p,D;for(p=0;p<c.length;p++){var E=c[p]._index||p;if(D=s.slice(),D.push(E),qi(f[E])&&qi(c[p])){A.push(E);var R=f[E],I=c[p];qi(R)&&R.visible!==!1&&I.visible===!1?n.push(Dn("invisible",a,D)):fd(R,I,v,n,a,D)}}for(p=0;p<f.length;p++)D=s.slice(),D.push(p),qi(f[p])?A.indexOf(p)===-1&&n.push(Dn("unused",a,D)):n.push(Dn("object",a,D,f[p]))}else!qi(f)&&qi(c)?n.push(Dn("object",a,s,f)):!zb(f)&&zb(c)&&!h&&!_?n.push(Dn("array",a,s,f)):u in r?di.validate(f,g)?g.valType==="enumerated"&&(g.coerceNumber&&f!==+c||!zb(f)&&f!==c||String(f)!==String(c))&&n.push(Dn("dynamic",a,s,f,c)):n.push(Dn("value",a,s,f)):n.push(Dn("unused",a,s,f))}return n}function _ce(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?di.extendFlat(t[o.attributes.subplot.dflt],i):di.extendFlat(t,i))}return t}var wce={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=$s(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=$s(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return $s(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var n=qi(t)?"container":"key";return $s(e)+n+" "+r+" did not get coerced"},dynamic:function(e,r,t,n){return[$s(e)+"key",r,"(set to '"+t+"')","got reset to","'"+n+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?$s(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[$s(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function $s(e){return Ks(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Dn(e,r,t,n,a){t=t||"";var o,i;Ks(r)?(o=r[0],i=r[1]):(o=r,i=null);var l=kce(t),u=wce[e](r,l,n,a);return di.log(u),{code:e,container:o,trace:i,path:t,astr:l,msg:u}}function Mce(e,r){var t=UF(r),n=t.keyMinusId,a=t.id;return n in e&&e[n]._isSubplotObj&&a?!0:r in e}function Tce(e,r){if(r in e)return e[r];var t=UF(r);return e[t.keyMinusId]}var Ace=di.counterRegex("([a-z]+)");function UF(e){var r=e.match(Ace);return{keyMinusId:r&&r[1],id:r&&r[2]}}function kce(e){if(!Ks(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 YF=xe((f7e,GF)=>{"use strict";var Sce=tr(),cd=Zs();function Cce(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=cd.createBlob(e,t),s=cd.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),cd.revokeObjectURL(s),u=null,i(r);if(Sce.isSafari()){var f=t==="svg"?",":";base64,";return cd.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}GF.exports=Cce});var Nb=xe((c7e,JF)=>{"use strict";var vd=tr(),XF=Qn(),Ece=Ib(),Lce=YF(),WF=Zs(),ZF=40;function Dce(e,r){var t;return vd.isPlainObject(e)||(t=vd.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=Ece(e,r),i=r.filename||e.fn;if(!i){let u=WF.getPlotTitle(e);if(u&&!XF.matchTex(u))i=vd.slugify(u,ZF);else{let s=WF.getPlotSubtitle(e);s&&!XF.matchTex(s)&&(i=vd.slugify(s,ZF))}}var l=i||"plot-image";l+="."+r.format.replace("-","."),o.then(function(u){return t&&(t._snapshotInProgress=!1),Lce(u,l,r.format)}).then(function(u){n(u)}).catch(function(u){t&&(t._snapshotInProgress=!1),a(u)})})}JF.exports=Dce});var eP=xe(qb=>{"use strict";var Pa=tr(),Ia=Pa.isPlainObject,$F=Z0(),KF=Sn(),Rce=Zn(),QF=Tt(),jF=ol().dfltConfig;qb.makeTemplate=function(e){e=Pa.isPlainObject(e)?e:Pa.getGraphDiv(e),e=Pa.extendDeep({_context:jF},{data:e.data,layout:e.layout}),KF.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(b){var h={};Xc(b,h,Pce.bind(null,b));var _=Pa.coerce(b,{},Rce,"type"),T=n.data[_];T||(T=n.data[_]=[]),T.push(h)}),Xc(t,n.layout,Fce.bind(null,t)),delete n.layout.template;var a=t.template;if(Ia(a)){var o=a.layout,i,l,u,s,f,c;Ia(o)&&hd(o,n.layout);var g=a.data;if(Ia(g)){for(l in n.data)if(u=g[l],Array.isArray(u)){for(f=n.data[l],c=f.length,s=u.length,i=0;i<c;i++)hd(u[i%s],f[i]);for(i=c;i<s;i++)f.push(Pa.extendDeep({},u[i]))}for(l in g)l in n.data||(n.data[l]=Pa.extendDeep([],g[l]))}}return n};function hd(e,r){e=Pa.extendDeep({},e);var t=Object.keys(e).sort(),n,a;function o(f,c,g){if(Ia(c)&&Ia(f))hd(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var b=QF.arrayTemplater({_template:e},g);for(a=0;a<c.length;a++){var h=c[a],_=b.newItem(h)._template;_&&hd(_,h)}var T=b.defaultItems();for(a=0;a<T.length;a++)c.push(T[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,dd(i)===i)for(var u in r){var s=dd(u);u!==s&&s===i&&!(u in e)&&o(l,r[u],i)}}}function dd(e){return e.replace(/[0-9]+$/,"")}function Xc(e,r,t,n,a){var o=a&&t(a);for(var i in e){var l=e[i],u=pi(e,i,n),s=pi(e,i,a),f=t(s);if(!f){var c=dd(i);c!==i&&(s=pi(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&&Ia(l))Xc(l,r,t,u,s);else if(f._isLinkedToArray&&Array.isArray(l))for(var g=!1,b=0,h={},_=0;_<l.length;_++){var T=l[_];if(Ia(T)){var m=T.name;if(m)h[m]||(Xc(T,r,t,pi(l,b,u),pi(l,b,s)),b++,h[m]=1);else if(!g){var k=QF.arrayDefaultKey(i),S=pi(e,k,n),x=pi(l,b,u);Xc(T,r,t,x,pi(l,b,s));var M=Pa.nestedProperty(r,x),d=Pa.nestedProperty(r,S);d.set(M.get()),M.set(null),g=!0}}}else{var w=Pa.nestedProperty(r,u);w.set(l)}}}function Fce(e,r){return $F.getLayoutValObject(e,Pa.nestedProperty({},r).parts)}function Pce(e,r){return $F.getTraceValObject(e,Pa.nestedProperty({},r).parts)}function pi(e,r,t){var n;return t?Array.isArray(e)?n=t+"["+r+"]":n=t+"."+r:n=r,n}qb.validateTemplate=function(e,r){var t=Pa.extendDeep({},{_context:jF,data:e.data,layout:e.layout}),n=t.layout||{};Ia(r)||(r=n.template||{});var a=r.layout,o=r.data,i=[];t.layout=n,t.layout.template=r,KF.supplyDefaults(t);var l=t._fullLayout,u=t._fullData,s={};function f(S,x){for(var M in S)if(M.charAt(0)!=="_"&&Ia(S[M])){var d=dd(M),w=[],y;for(y=0;y<x.length;y++)w.push(pi(S,M,x[y])),d!==M&&w.push(pi(S,d,x[y]));for(y=0;y<w.length;y++)s[w[y]]=1;f(S[M],w)}}function c(S,x){for(var M in S)if(M.indexOf("defaults")===-1&&Ia(S[M])){var d=pi(S,M,x);s[d]?c(S[M],d):i.push({code:"unused",path:d})}}if(Ia(a)?(f(l,["layout"]),c(a,"layout")):i.push({code:"layout"}),!Ia(o))i.push({code:"data"});else{for(var g={},b,h=0;h<u.length;h++){var _=u[h];b=_.type,g[b]=(g[b]||0)+1,_._template||i.push({code:"missing",index:_.index,traceType:b})}for(b in o){var T=o[b].length,m=g[b]||0;T>m?i.push({code:"unused",traceType:b,templateCount:T,dataCount:m}):m>T&&i.push({code:"reused",traceType:b,templateCount:T,dataCount:m})}}function k(S,x){for(var M in S)if(M.charAt(0)!=="_"){var d=S[M],w=pi(S,M,x);Ia(d)?(Array.isArray(S)&&d._template===!1&&d.templateitemname&&i.push({code:"missing",path:w,templateitemname:d.templateitemname}),k(d,w)):Array.isArray(d)&&Ice(d)&&k(d,w)}}if(k({data:u,layout:l},""),i.length)return i.map(zce)};function Ice(e){for(var r=0;r<e.length;r++)if(Ia(e[r]))return!0}function zce(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 tP=xe(Nt=>{"use strict";var xn=Db();Nt._doPlot=xn._doPlot;Nt.newPlot=xn.newPlot;Nt.restyle=xn.restyle;Nt.relayout=xn.relayout;Nt.redraw=xn.redraw;Nt.update=xn.update;Nt._guiRestyle=xn._guiRestyle;Nt._guiRelayout=xn._guiRelayout;Nt._guiUpdate=xn._guiUpdate;Nt._storeDirectGUIEdit=xn._storeDirectGUIEdit;Nt.react=xn.react;Nt.extendTraces=xn.extendTraces;Nt.prependTraces=xn.prependTraces;Nt.addTraces=xn.addTraces;Nt.deleteTraces=xn.deleteTraces;Nt.moveTraces=xn.moveTraces;Nt.purge=xn.purge;Nt.addFrames=xn.addFrames;Nt.deleteFrames=xn.deleteFrames;Nt.animate=xn.animate;Nt.setPlotConfig=xn.setPlotConfig;var Nce=Pf().getGraphDiv,qce=M2().eraseActiveShape;Nt.deleteActiveShape=function(e){return qce(Nce(e))};Nt.toImage=Ib();Nt.validate=VF();Nt.downloadImage=Nb();var rP=eP();Nt.makeTemplate=rP.makeTemplate;Nt.validateTemplate=rP.validateTemplate});var aP=xe((d7e,nP)=>{"use strict";var Bb=tr(),Bce=Cr();nP.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=Bce.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=Bb.minRowLength(o);i?l=Math.min(s,Bb.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=Bb.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var sP=xe((p7e,lP)=>{"use strict";var iP=tr().dateTick0,Oce=(wn(),or(Rn)),Uce=Oce.ONEWEEK;function oP(e,r){return e%Uce===0?iP(r,1):iP(r,0)}lP.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",oP(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",oP(l,t.ycalendar)),a("yperiodalignment"))}}});var cP=xe((g7e,fP)=>{"use strict";var uP=["orientation","groupnorm","stackgaps"];fP.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"},g=0;g<uP.length;g++){var b=uP[g],h=b+"Found";if(!s[h]){var _=r[b]!==void 0,T=b==="orientation";if((_||f)&&(s[b]=a(b,c[b]),T&&(s.fillDflt=s[b]==="h"?"tonextx":"tonexty"),_&&(s[h]=!0,!f&&(delete s.traces[0][b],T))))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 Ob=xe((y7e,pP)=>{"use strict";var vP=Zr(),hP=io().hasColorscale,dP=lo(),Hce=Da();pP.exports=function(r,t,n,a,o,i={}){var l=Hce.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),hP(r,"marker")&&dP(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=vP.background:s=vP.defaultLine,o("marker.line.color",s),hP(r,"marker.line")&&dP(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 Ub=xe((m7e,gP)=>{"use strict";var Vce=tr().isArrayOrTypedArray,Gce=io().hasColorscale,Yce=lo();gP.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),Gce(r,"line"))Yce(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(Vce(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var mP=xe((b7e,yP)=>{"use strict";yP.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var Hb=xe((x7e,bP)=>{"use strict";var Xce=tr();bP.exports=function(e,r,t,n,a){a=a||{},n("textposition"),Xce.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var wP=xe((_7e,_P)=>{"use strict";var pd=Zr(),xP=tr().isArrayOrTypedArray;function Wce(e){for(var r=pd.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var n=pd.interpolate(e[t-1][1],e[t][1],.5);r=pd.interpolate(r,n,e[t-1][0]/e[t][0])}return r}_P.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&&!xP(l)?i=l:u&&!xP(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=Wce(c))}}a("fillcolor",pd.addOpacity((t.line||{}).color||i||s||n,.5))}});var kP=xe((w7e,AP)=>{"use strict";var MP=tr(),Zce=Cr(),Jce=Ws(),$ce=(U2(),or(O2)),wu=Da(),Kce=aP(),Qce=sP(),jce=cP(),eve=Ob(),rve=Ub(),TP=mP(),tve=Hb(),nve=wP(),ave=tr().coercePattern;AP.exports=function(r,t,n,a){function o(b,h){return MP.coerce(r,t,Jce,b,h)}var i=Kce(r,t,a,o);if(i||(t.visible=!1),!!t.visible){Qce(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=jce(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i<$ce.PTS_LINESONLY?"lines+markers":"lines";o("text"),o("hovertext"),o("mode",u),wu.hasMarkers(t)&&eve(r,t,n,a,o,{gradient:!0}),wu.hasLines(t)&&(rve(r,t,n,a,o,{backoff:!0}),TP(r,t,o),o("connectgaps"),o("line.simplify")),wu.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),tve(r,t,a,o));var s=[];(wu.hasMarkers(t)||wu.hasText(t))&&(o("cliponaxis"),o("marker.maxdisplayed"),s.push("points")),o("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(nve(r,t,n,o,{moduleHasFillgradient:!0}),wu.hasLines(t)||TP(r,t,o),ave(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 g=Zce.getComponentMethod("errorbars","supplyDefaults");g(r,t,f||c||n,{axis:"y"}),g(r,t,f||c||n,{axis:"x",inherit:"y"}),MP.coerceSelectionMarkerOpacity(t,o)}}});var CP=xe((M7e,SP)=>{"use strict";var ive=yc().getAxisGroup;SP.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=ive(n,l)+i,s=n._alignmentOpts||{},f=a("alignmentgroup"),c=s[u];c||(c=s[u]={});var g=c[f];g?g.traces.push(t):g=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var b=a("offsetgroup")||"",h=g.offsetGroups,_=h[b];t._offsetIndex=0,(o!=="group"||b)&&(_||(_=h[b]={offsetIndex:Object.keys(h).length}),t._offsetIndex=_.offsetIndex)}});var LP=xe((T7e,EP)=>{"use strict";var ove=tr(),lve=CP(),sve=Ws();EP.exports=function(r,t){var n,a,o,i=t.scattermode;function l(g){return ove.coerce(a._input,a,sve,g)}if(t.scattermode==="group")for(o=0;o<r.length;o++)a=r[o],a.type==="scatter"&&(n=a._input,lve(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 RP=xe((A7e,DP)=>{"use strict";var uve=tr(),fve=i1();DP.exports=function(e,r){function t(a,o){return uve.coerce(e,r,fve,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var IP=xe((k7e,PP)=>{"use strict";var cve=ut(),FP=tr(),vve=FP.dateTime2ms,gd=FP.incrementMonth,hve=(wn(),or(Rn)),dve=hve.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(cve(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",g=r[n+"period0"],b=vve(g,s)||0,h=[],_=[],T=[],m=a.length,k=0;k<m;k++){var S=a[k],x,M,d;if(l){for(x=Math.round((S-b)/(l*dve)),d=gd(b,l*x,s);d>S;)d=gd(d,-l,s);for(;d<=S;)d=gd(d,l,s);M=gd(d,-l,s)}else{for(x=Math.round((S-b)/i),d=b+x*i;d>S;)d-=i;for(;d<=S;)d+=i;M=d-i}h[k]=f?M:c?d:(M+d)/2,_[k]=M,T[k]=d}return{vals:h,starts:_,ends:T}}});var Yb=xe((S7e,NP)=>{"use strict";var Vb=io().hasColorscale,Gb=Tl(),zP=Da();NP.exports=function(r,t){zP.hasLines(t)&&Vb(t,"line")&&Gb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),zP.hasMarkers(t)&&(Vb(t,"marker")&&Gb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Vb(t,"marker.line")&&Gb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var yd=xe((C7e,qP)=>{"use strict";var Qt=tr();qP.exports=function(r,t){for(var n=0;n<r.length;n++)r[n].i=n;Qt.mergeArray(t.text,r,"tx"),Qt.mergeArray(t.texttemplate,r,"txt"),Qt.mergeArray(t.hovertext,r,"htx"),Qt.mergeArray(t.customdata,r,"data"),Qt.mergeArray(t.textposition,r,"tp"),t.textfont&&(Qt.mergeArrayCastPositive(t.textfont.size,r,"ts"),Qt.mergeArray(t.textfont.color,r,"tc"),Qt.mergeArray(t.textfont.family,r,"tf"),Qt.mergeArray(t.textfont.weight,r,"tw"),Qt.mergeArray(t.textfont.style,r,"ty"),Qt.mergeArray(t.textfont.variant,r,"tv"),Qt.mergeArray(t.textfont.textcase,r,"tC"),Qt.mergeArray(t.textfont.lineposition,r,"tE"),Qt.mergeArray(t.textfont.shadow,r,"tS"));var a=t.marker;if(a){Qt.mergeArrayCastPositive(a.size,r,"ms"),Qt.mergeArrayCastPositive(a.opacity,r,"mo"),Qt.mergeArray(a.symbol,r,"mx"),Qt.mergeArray(a.angle,r,"ma"),Qt.mergeArray(a.standoff,r,"mf"),Qt.mergeArray(a.color,r,"mc");var o=a.line;a.line&&(Qt.mergeArray(o.color,r,"mlc"),Qt.mergeArrayCastPositive(o.width,r,"mlw"),Qt.mergeArray(o.dash,r,"mld"));var i=a.gradient;i&&i.type!=="none"&&(Qt.mergeArray(i.type,r,"mgt"),Qt.mergeArray(i.color,r,"mgc"))}}});var UP=xe((E7e,OP)=>{"use strict";var BP=tr();OP.exports=function(r,t){BP.isArrayOrTypedArray(t.selectedpoints)&&BP.tagSelected(r,t)}});var $b=xe((L7e,ZP)=>{"use strict";var HP=ut(),Wb=tr(),Wc=Vt(),VP=IP(),Xb=(wn(),or(Rn)).BADNUM,Zb=Da(),pve=Yb(),gve=yd(),yve=UP();function mve(e,r){var t=e._fullLayout,n=r._xA=Wc.getFromId(e,r.xaxis||"x","x"),a=r._yA=Wc.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=VP(r,n,"x",o),u=VP(r,a,"y",i),s=l.vals,f=u.vals,c=r._length,g=new Array(c),b=r.ids,h=Jb(r,t,n,a),_=!1,T,m,k,S,x,M;XP(t,r);var d="x",w="y",y;if(h)Wb.pushUnique(h.traceIndices,r.index),T=h.orientation==="v",T?(w="s",y="x"):(d="s",y="y"),x=h.stackgaps==="interpolate";else{var v=YP(r,c);GP(e,r,n,a,s,f,v)}var A=!!r.xperiodalignment,p=!!r.yperiodalignment;for(m=0;m<c;m++){var D=g[m]={},E=HP(s[m]),R=HP(f[m]);E&&R?(D[d]=s[m],D[w]=f[m],A&&(D.orig_x=o[m],D.xEnd=l.ends[m],D.xStart=l.starts[m]),p&&(D.orig_y=i[m],D.yEnd=u.ends[m],D.yStart=u.starts[m])):h&&(T?E:R)?(D[y]=T?s[m]:f[m],D.gap=!0,x?(D.s=Xb,_=!0):D.s=0):D[d]=D[w]=Xb,b&&(D.id=String(b[m]))}if(gve(g,r),pve(e,r),yve(g,r),h){for(m=0;m<g.length;)g[m][y]===Xb?g.splice(m,1):m++;if(Wb.sort(g,function(L,P){return L[y]-P[y]||L.i-P.i}),_){for(m=0;m<g.length-1&&g[m].gap;)m++;for(M=g[m].s,M||(M=g[m].s=0),k=0;k<m;k++)g[k].s=M;for(S=g.length-1;S>m&&g[S].gap;)S--;for(M=g[S].s,k=g.length-1;k>S;k--)g[k].s=M;for(;m<S;)if(m++,g[m].gap){for(k=m+1;g[k].gap;)k++;for(var I=g[m-1][y],z=g[m-1].s,F=(g[k].s-z)/(g[k][y]-I);m<k;)g[m].s=z+(g[m][y]-I)*F,m++}}}return g}function GP(e,r,t,n,a,o,i){var l=r._length,u=e._fullLayout,s=t._id,f=n._id,c=u._firstScatter[WP(r)]===r.uid,g=(Jb(r,u,t,n)||{}).orientation,b=r.fill;t._minDtick=0,n._minDtick=0;var h={padded:!0},_={padded:!0};i&&(h.ppad=_.ppad=i);var T=l<2||a[0]!==a[l-1]||o[0]!==o[l-1];T&&(b==="tozerox"||b==="tonextx"&&(c||g==="h"))?h.tozero=!0:!(r.error_y||{}).visible&&(b==="tonexty"||b==="tozeroy"||!Zb.hasMarkers(r)&&!Zb.hasText(r))&&(h.padded=!1,h.ppad=0),T&&(b==="tozeroy"||b==="tonexty"&&(c||g==="v"))?_.tozero=!0:(b==="tonextx"||b==="tozerox")&&(_.padded=!1),s&&(r._extremes[s]=Wc.findExtremes(t,a,h)),f&&(r._extremes[f]=Wc.findExtremes(n,o,_))}function YP(e,r){if(Zb.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)},Wb.isArrayOrTypedArray(t.size)){var o={type:"linear"};Wc.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 XP(e,r){var t=WP(r),n=e._firstScatter;n[t]||(n[t]=r.uid)}function WP(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function Jb(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}}ZP.exports={calc:mve,calcMarkerSize:YP,calcAxisExpansion:GP,setFirstScatter:XP,getStackOpts:Jb}});var $P=xe((D7e,JP)=>{"use strict";JP.exports=md;var bve=tr().distinctVals;function md(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=bve(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={}}md.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};md.prototype.get=function(r,t,n){var a=this.getLabel(r,t,n);return this.bins[a]||0};md.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 KP={};Ht(KP,{TEXTPAD:()=>xve,eventDataKeys:()=>_ve});var xve,_ve,QP=Ut(()=>{"use strict";xve=3,_ve=["value","label"]});var nI=xe((R7e,tI)=>{"use strict";var gi=ut(),{isArrayOrTypedArray:Yo}=tr(),{BADNUM:Mu}=(wn(),or(Rn)),wve=Cr(),Zc=Vt(),{getAxisGroup:Mve}=yc(),bd=$P(),{TEXTPAD:Tve}=(QP(),or(KP)),{LINE_SPACING:Ave}=(Kn(),or($n)),{BR_TAG_ALL:kve}=Qn();function Sve(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&&wve.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],g=0;g<c.length;g++)typeof c[g].ph0=="function"&&(c[g].ph0=c[g].ph0()),typeof c[g].ph1=="function"&&(c[g].ph1=c[g].ph1())}var b={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};Qb(e,t,n,u,b),Qb(e,n,t,l,b)}function Qb(e,r,t,n,a){if(n.length){var o,i,l,u,s;switch(Lve(t,n),a.mode){case"overlay":Kb(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&&Dve(e,r,t,i,a),o.length&&Kb(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);Eve(i),i.length&&Rve(e,r,t,i,a),o.length&&Kb(e,r,t,o,a);break}Cve(n),qve(n,r)}}function Cve(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=gi(o)?+o:+o.slice(0,-1),l=gi(o)?"px":"%",a.cornerradiusvalue=i,a.cornerradiusform=l))}function Eve(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=gi(o)?+o:+o.slice(0,-1),l=gi(o)?"px":"%",r=0;r<e.length;r++)t=e[r],a=t[0].t,a.cornerradiusvalue=i,a.cornerradiusform=l}}function Lve(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(Yo(i)){for(n=0;n<Math.min(i.length,a.length);n++)l=s(i[n],0,u),gi(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=gi(l);for(l=f?l:0,n=0;n<a.length;n++)a[n].b=l,f&&(a[n].hasB=1)}}}function Kb(e,r,t,n,a){for(var o=0;o<n.length;o++){var i=n[o],l=new bd([i],{posAxis:r,sepNegVal:!1,overlapNoMerge:!a.norm});jb(e,r,l,a),a.norm?(rI(l),ex(t,l,a)):eI(t,l)}}function Dve(e,r,t,n,a){var o=new bd(n,{posAxis:r,sepNegVal:!1,overlapNoMerge:!a.norm});jb(e,r,o,a),zve(o,r),a.norm?(rI(o),ex(t,o,a)):eI(t,o)}function Rve(e,r,t,n,a){var o=new bd(n,{posAxis:r,sepNegVal:a.mode==="relative",overlapNoMerge:!(a.norm||a.mode==="stack"||a.mode==="relative")});jb(e,r,o,a),Ive(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!==Mu){var c=f.b+f.s===o.get(f.p,u,f.s);c&&(f._outmost=!0)}}a.norm&&ex(t,o,a)}function jb(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),g,b,h,_;if(r._id==="angularaxis")g=c,b=g*(1-(n.groupgap||0)),h=-b/2;else{var T=Mve(a,r._id)+u[0][0].trace.orientation;_=a._alignmentOpts[T]||{}}for(var m=0;m<s;m++){var k=u[m],S=k[0].trace;if(r._id!=="angularaxis"){var x=_[S.alignmentgroup]||{},M=Object.keys(x.offsetGroups||{}).length;M?g=c/M:g=f?c/s:c,b=g*(1-(n.groupgap||0)),M?h=((2*S._offsetIndex+1-M)*g-b)/2:h=f?((2*m+1-s)*g-b)/2:-b/2}var d=k[0].t;d.barwidth=b,d.offsetindex=S._offsetIndex||0,d.poffset=h,d.bargroupwidth=c,d.bardelta=l}t.binWidth=u[0][0].t.barwidth/100,Fve(t),Pve(r,t),r._id==="angularaxis"?jP(r,t):jP(r,t,f)}function Fve(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(Yo(u)){for(f=Array.prototype.slice.call(u,0,a.length),n=0;n<f.length;n++)gi(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,g=l.barwidth;if(Yo(c)){var b=Array.prototype.slice.call(c,0,a.length);for(n=0;n<b.length;n++)gi(b[n])||(b[n]=g);for(n=b.length;n<a.length;n++)b.push(g);if(l.barwidth=b,u===void 0){for(f=[],n=0;n<a.length;n++)f.push(s+(g-b[n])/2);l.poffset=f}}else c!==void 0&&(l.barwidth=c,u===void 0&&(l.poffset=s+(g-c)/2))}}function Pve(e,r){for(var t=r.traces,n=Tu(e),a=0;a<t.length;a++)for(var o=t[a],i=o[0].t,l=i.poffset,u=Yo(l),s=i.barwidth,f=Yo(s),c=0;c<o.length;c++){var g=o[c],b=g.w=f?s[c]:s;g.p===void 0&&(g.p=g[n],g["orig_"+n]=g[n]);var h=(u?l[c]:l)+b/2;g[n]=g.p+h}}function jP(e,r,t){var n=r.traces,a=r.minDiff,o=a/2;Zc.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,g,b,h;for(h=0;h<l.length;h++)c=l[h],g=c.p-o,b=c.p+o,f.push(g,b);if(s.width||s.offset){var _=u.t,T=_.poffset,m=_.barwidth,k=Yo(T),S=Yo(m);for(h=0;h<l.length;h++){c=l[h];var x=k?T[h]:T,M=S?m[h]:m;g=c.p+x,b=g+M,f.push(g,b)}}s._extremes[e._id]=Zc.findExtremes(e,f,{padded:!1})}}function eI(e,r){for(var t=r.traces,n=Tu(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 g=o[c],b=l?0:g.b,h=l?u?g.y:g.x:b+g.s;g[n]=h,s.push(h),g.hasB&&s.push(b),(!g.hasB||!g.b)&&(f=!0)}let{ppadminus:_,ppadplus:T}=rx(i,o);i._extremes[e._id]=Zc.findExtremes(e,s,{tozero:f,padded:!0,ppadplus:T,ppadminus:_})}}function Ive(e,r,t){var n=Tu(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!==Mu&&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 g=[];for(s=0;s<o.length;s++)if(f=o[s],f.s!==Mu){var b;l?b=f.s:b=f.s+f.b;var h=r.put(f.p,c,b),_=h+b;f.b=h,f[n]=_,t.norm||(g.push(_),f.hasB&&g.push(h))}if(!t.norm){let{ppadminus:T,ppadplus:m}=rx(i,o);i._extremes[e._id]=Zc.findExtremes(e,g,{tozero:!0,padded:!0,ppadplus:m,ppadminus:T})}}}function rI(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!==Mu&&e.put(i.p,a,i.b+i.s)}}function zve(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 bd([a],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),u=0;u<a.length;u++){var s=a[u];if(s.p!==Mu){var f=l.put(s.p,i,s.b+s.s);f&&(s.b=f)}}}}function ex(e,r,t){var n=r.traces,a=Tu(e),o=t.norm==="fraction"?1:100,i=o/1e9,l=e.l2c(e.c2l(0)),u=t.mode==="stack"?o:l;function s(d){return gi(e.c2l(d))&&(d<l-i||d>u+i||!gi(l))}for(var f=0;f<n.length;f++){for(var c=n[f],g=c[0].t.offsetindex,b=c[0].trace,h=[],_=!1,T=!1,m=0;m<c.length;m++){var k=c[m];if(k.s!==Mu){var S=Math.abs(o/r.get(k.p,g,k.s));k.b*=S,k.s*=S;var x=k.b,M=x+k.s;k[a]=M,h.push(M),T=T||s(M),k.hasB&&(h.push(x),T=T||s(x)),(!k.hasB||!k.b)&&(_=!0)}}let{ppadminus:d,ppadplus:w}=rx(b,c);b._extremes[e._id]=Zc.findExtremes(e,h,{tozero:_,padded:T,ppadplus:w,ppadminus:d})}}function rx(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(kve)||[]).length+1};var t;e.texttemplate?t=n(e.texttemplate):t=Yo(e.text)?Math.max(...e.text.map(o=>n(o))):n(e.text);let a=e.outsidetextfont.size*Ave*t+Tve;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 Nve(e,r,t,n){for(var a=Tu(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 qve(e,r){var t=Tu(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;gi(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)))},g={},b={},h=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 _=i[0].t.poffset,T=Yo(_);for(o=0;o<i.length;o++){var m=i[o],k=m[t]-m.w/2;if(gi(k)){var S=m[t]+m.w/2,x=c(m.p);n[x]?n[x]=[Math.min(k,n[x][0]),Math.max(S,n[x][1])]:n[x]=[k,S]}if(m.p0=m.p+(T?_[o]:_),m.p1=m.p0+m.w,m.s0=m.b,m.s1=m.s0+m.s,h){var M=Math.min(m.s0,m.s1)||0,d=Math.max(m.s0,m.s1)||0,w=m[t];g[w]=w in g?Math.min(g[w],M):M,b[w]=w in b?Math.max(b[w],d):d}}}h&&Nve(e,g,b,r)}function Tu(e){return e._id.charAt(0)}tI.exports={crossTraceCalc:Sve,setGroupPositions:Qb}});var lI=xe((F7e,oI)=>{"use strict";var aI=$b(),iI=nI().setGroupPositions;function Bve(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};iI(e,t,n,u,c),iI(e,n,t,l,c)}oI.exports=function(r,t){r._fullLayout.scattermode==="group"&&Bve(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,g,b,h,_,T,m,k,S,x,M,d;for(var w in i){m=i[w];var y=m.traceIndices;if(y.length){for(k=m.stackgaps==="interpolate",S=m.groupnorm,m.orientation==="v"?(x="x",M="y"):(x="y",M="x"),d=new Array(y.length),u=0;u<d.length;u++)d[u]=!1;b=l[y[0]];var v=new Array(b.length);for(u=0;u<b.length;u++)v[u]=b[u][x];for(u=1;u<y.length;u++){for(g=l[y[u]],s=f=0;s<g.length;s++){for(h=g[s][x];h>v[f]&&f<v.length;f++)tx(g,s,v[f],u,d,k,x),s++;if(h!==v[f]){for(c=0;c<u;c++)tx(l[y[c]],f,h,c,d,k,x);v.splice(f,0,h)}f++}for(;f<v.length;f++)tx(g,s,v[f],u,d,k,x),s++}var A=v.length;for(s=0;s<b.length;s++){for(_=b[s][M]=b[s].s,u=1;u<y.length;u++)g=l[y[u]],g[0].trace._rawLength=g[0].trace._length,g[0].trace._length=A,_+=g[s].s,g[s][M]=_;if(S)for(T=(S==="fraction"?_:_/100)||1,u=0;u<y.length;u++){var p=l[y[u]][s];p[M]/=T,p.sNorm=p.s/T}}for(u=0;u<y.length;u++){g=l[y[u]];var D=g[0].trace,E=aI.calcMarkerSize(D,D._rawLength),R=Array.isArray(E);if(E&&d[u]||R){var I=E;for(E=new Array(A),s=0;s<A;s++)E[s]=g[s].gap?0:R?I[g[s].i]:I}var z=new Array(A),F=new Array(A);for(s=0;s<A;s++)z[s]=g[s].x,F[s]=g[s].y;aI.calcAxisExpansion(r,D,n,a,z,F,E),g[0].t.orientation=m.orientation}}}}};function tx(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=Ove(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 Ove(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 dI=xe((P7e,hI)=>{"use strict";var Uve=At(),cI=(wn(),or(Rn)),Jc=cI.BADNUM,vI=cI.LOG_CLIP,sI=vI+.5,uI=vI-.5,xd=tr(),Hve=xd.segmentsIntersect,fI=xd.constrain,nx=(U2(),or(O2));hI.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,g=t.connectGaps,b=t.baseTolerance,h=t.shape,_=h==="linear",T=n.fill&&n.fill!=="none",m=[],k=nx.minTolerance,S=r.length,x=new Array(S),M=0,d,w,y,v,A,p,D,E,R,I,z,F,L,P,B,O;function G(qe){var We=r[qe];if(!We)return!1;var Xe=t.linearized?a.l2p(We.x):a.c2p(We.x),er=t.linearized?o.l2p(We.y):o.c2p(We.y);if(Xe===Jc){if(i&&(Xe=a.c2p(We.x,!0)),Xe===Jc)return!1;l&&er===Jc&&(Xe*=Math.abs(a._m*s*(a._m>0?sI:uI)/(o._m*u*(o._m>0?sI:uI)))),Xe*=1e3}if(er===Jc){if(l&&(er=o.c2p(We.y,!0)),er===Jc)return!1;er*=1e3}return[Xe,er]}function J(qe,We,Xe,er){var nr=Xe-qe,rr=er-We,Qe=.5-qe,Ce=.5-We,ze=nr*nr+rr*rr,Ke=nr*Qe+rr*Ce;if(Ke>0&&Ke<ze){var je=Qe*rr-Ce*nr;if(je*je<ze)return!0}}var j,V;function q(qe,We){var Xe=qe[0]/u,er=qe[1]/s,nr=Math.max(0,-Xe,Xe-1,-er,er-1);return nr&&j!==void 0&&J(Xe,er,j,V)&&(nr=0),nr&&We&&J(Xe,er,We[0]/u,We[1]/s)&&(nr=0),(1+nx.toleranceGrowth*nr)*b}function Z(qe,We){var Xe=qe[0]-We[0],er=qe[1]-We[1];return Math.sqrt(Xe*Xe+er*er)}var re=nx.maxScreensAway,$=-u*re,ae=u*(1+re),Q=-s*re,te=s*(1+re),ue=[[$,Q,ae,Q],[ae,Q,ae,te],[ae,te,$,te],[$,te,$,Q]],ee,ie,fe,we,Te,ke;function ge(qe,We){for(var Xe=[],er=0,nr=0;nr<4;nr++){var rr=ue[nr],Qe=Hve(qe[0],qe[1],We[0],We[1],rr[0],rr[1],rr[2],rr[3]);Qe&&(!er||Math.abs(Qe.x-Xe[0][0])>1||Math.abs(Qe.y-Xe[0][1])>1)&&(Qe=[Qe.x,Qe.y],er&&Z(Qe,qe)<Z(Xe[0],qe)?Xe.unshift(Qe):Xe.push(Qe),er++)}return Xe}function Ee(qe){if(qe[0]<$||qe[0]>ae||qe[1]<Q||qe[1]>te)return[fI(qe[0],$,ae),fI(qe[1],Q,te)]}function Le(qe,We){if(qe[0]===We[0]&&(qe[0]===$||qe[0]===ae)||qe[1]===We[1]&&(qe[1]===Q||qe[1]===te))return!0}function se(qe,We){var Xe=[],er=Ee(qe),nr=Ee(We);return er&&nr&&Le(er,nr)||(er&&Xe.push(er),nr&&Xe.push(nr)),Xe}function X(qe,We,Xe){return function(er,nr){var rr=Ee(er),Qe=Ee(nr),Ce=[];if(rr&&Qe&&Le(rr,Qe))return Ce;rr&&Ce.push(rr),Qe&&Ce.push(Qe);var ze=2*xd.constrain((er[qe]+nr[qe])/2,We,Xe)-((rr||er)[qe]+(Qe||nr)[qe]);if(ze){var Ke;rr&&Qe?Ke=ze>0==rr[qe]>Qe[qe]?rr:Qe:Ke=rr||Qe,Ke[qe]+=ze}return Ce}}var K;h==="linear"||h==="spline"?K=ge:h==="hv"||h==="vh"?K=se:h==="hvh"?K=X(0,$,ae):h==="vhv"&&(K=X(1,Q,te));function ye(qe,We){var Xe=We[0]-qe[0],er=(We[1]-qe[1])/Xe,nr=(qe[1]*We[0]-We[1]*qe[0])/Xe;return nr>0?[er>0?$:ae,te]:[er>0?ae:$,Q]}function oe(qe){var We=qe[0],Xe=qe[1],er=We===x[M-1][0],nr=Xe===x[M-1][1];if(!(er&&nr))if(M>1){var rr=We===x[M-2][0],Qe=Xe===x[M-2][1];er&&(We===$||We===ae)&&rr?Qe?M--:x[M-1]=qe:nr&&(Xe===Q||Xe===te)&&Qe?rr?M--:x[M-1]=qe:x[M++]=qe}else x[M++]=qe}function de(qe){x[M-1][0]!==qe[0]&&x[M-1][1]!==qe[1]&&oe([fe,we]),oe(qe),Te=null,fe=we=0}var pe=xd.isArrayOrTypedArray(c);function me(qe){if(qe&&f&&(qe.i=d,qe.d=r,qe.trace=n,qe.marker=pe?c[qe.i]:c,qe.backoff=f),j=qe[0]/u,V=qe[1]/s,ee=qe[0]<$?$:qe[0]>ae?ae:0,ie=qe[1]<Q?Q:qe[1]>te?te:0,ee||ie){if(!M)x[M++]=[ee||qe[0],ie||qe[1]];else if(Te){var We=K(Te,qe);We.length>1&&(de(We[0]),x[M++]=We[1])}else ke=K(x[M-1],qe)[0],x[M++]=ke;var Xe=x[M-1];ee&&ie&&(Xe[0]!==ee||Xe[1]!==ie)?(Te&&(fe!==ee&&we!==ie?oe(fe&&we?ye(Te,qe):[fe||ee,we||ie]):fe&&we&&oe([fe,we])),oe([ee,ie])):fe-ee&&we-ie&&oe([ee||fe,ie||we]),Te=qe,fe=ee,we=ie}else Te&&de(K(Te,qe)[0]),x[M++]=qe}for(d=0;d<S;d++)if(w=G(d),!!w){for(M=0,Te=null,me(w),d++;d<S;d++){if(v=G(d),!v){if(g)continue;break}if(!_||!t.simplify){me(v);continue}var Se=G(d+1);if(I=Z(v,w),!(!(T&&(M===0||M===S-1))&&I<q(v,Se)*k)){for(E=[(v[0]-w[0])/I,(v[1]-w[1])/I],A=w,z=I,F=P=B=0,D=!1,y=v,d++;d<r.length;d++){if(p=Se,Se=G(d+1),!p){if(g)continue;break}if(R=[p[0]-w[0],p[1]-w[1]],O=R[0]*E[1]-R[1]*E[0],P=Math.min(P,O),B=Math.max(B,O),B-P>q(p,Se))break;y=p,L=R[0]*E[0]+R[1]*E[1],L>z?(z=L,v=p,D=!1):L<F&&(F=L,A=p,D=!0)}if(D?(me(v),y!==A&&me(A)):(A!==w&&me(A),y!==v&&me(v)),me(y),d>=r.length||!p)break;me(p),w=p}}Te&&oe([fe||Te[0],we||Te[1]]),m.push(x.slice(0,M))}var ve=h.slice(h.length-1);if(f&&ve!=="h"&&ve!=="v"){for(var he=!1,be=-1,Ae=[],Re=0;Re<m.length;Re++)for(var Pe=0;Pe<m[Re].length-1;Pe++){var Ye=m[Re][Pe],Ve=m[Re][Pe+1],Ue=Uve.applyBackoff(Ve,Ye);(Ue[0]!==Ve[0]||Ue[1]!==Ve[1])&&(he=!0),Ae[be+1]||(be++,Ae[be]=[Ye,[Ue[0],Ue[1]]])}return he?Ae:m}return m}});var yI=xe((I7e,gI)=>{"use strict";var pI={tonextx:1,tonexty:1,tonext:1};gI.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,c=-1,g=0,b=-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]=g,g++):a.fill in pI&&b>=0?u=b:(u=b=g,g++),u<c&&(f=!0),a._groupIndex=c=u;var h=n.slice();f&&h.sort(function(T,m){var k=T[0].trace,S=m[0].trace;return k._groupIndex-S._groupIndex||k.index-S.index});var _={};for(o=0;o<h.length;o++)a=h[o][0].trace,i=a.stackgroup||"",a.visible===!0?(a._nexttrace=null,a.fill in pI&&(l=_[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),_[i]=a):a._prevtrace=a._nexttrace=a._ownfill=null;return h}});var _I=xe((z7e,xI)=>{"use strict";var Bi=lt(),Vve=Cr(),$c=tr(),Au=$c.ensureSingle,bI=$c.identity,en=At(),ku=Da(),Gve=dI(),Yve=yI(),_d=rb().tester;xI.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,c=Yve(r,t,n);if(l=a.selectAll("g.trace").data(c,function(b){return b[0].trace.uid}),l.enter().append("g").attr("class",function(b){return"trace scatter trace"+b[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Xve(r,l,t),f){i&&(u=i());var g=Bi.transition().duration(o.duration).ease(o.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});g.each(function(){a.selectAll("g.trace").each(function(b,h){mI(r,h,t,b,c,this,o)})})}else l.each(function(b,h){mI(r,h,t,b,c,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function Xve(e,r,t){r.each(function(n){var a=Au(Bi.select(this),"g","fills");en.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,bI);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){o[u]=Au(Bi.select(this),"path","js-fill")})})}function mI(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;Wve(e,r,t,n,a);var s=!!i&&i.duration>0;function f(X){return s?X.transition():X}var c=t.xaxis,g=t.yaxis,b=n[0].trace,h=b.line,_=Bi.select(o),T=Au(_,"g","errorbars"),m=Au(_,"g","lines"),k=Au(_,"g","points"),S=Au(_,"g","text");if(Vve.getComponentMethod("errorbars","plot")(e,T,t,i),b.visible!==!0)return;f(_).style("opacity",b.opacity);var x,M,d=b.fill.charAt(b.fill.length-1);d!=="x"&&d!=="y"&&(d="");var w,y;d==="y"?(w=1,y=g.c2p(0,!0)):d==="x"&&(w=0,y=c.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=_;var v="",A=[],p=b._prevtrace,D=null,E=null;p&&(v=p._prevRevpath||"",M=p._nextFill,A=p._ownPolygons,D=p._fillsegments,E=p._fillElement);var R,I,z="",F="",L,P,B,O,G,J,j=[];b._polygons=[];var V=[],q=[],Z=$c.noop;if(x=b._ownFill,ku.hasLines(b)||b.fill!=="none"){M&&M.datum(n),["hv","vh","hvh","vhv"].indexOf(h.shape)!==-1?(L=en.steps(h.shape),P=en.steps(h.shape.split("").reverse().join(""))):h.shape==="spline"?L=P=function(X){var K=X[X.length-1];return X.length>1&&X[0][0]===K[0]&&X[0][1]===K[1]?en.smoothclosed(X.slice(1),h.smoothing):en.smoothopen(X,h.smoothing)}:L=P=function(X){return"M"+X.join("L")},B=function(X){return P(X.reverse())},q=Gve(n,{xaxis:c,yaxis:g,trace:b,connectGaps:b.connectgaps,baseTolerance:Math.max(h.width||1,3)/4,shape:h.shape,backoff:h.backoff,simplify:h.simplify,fill:b.fill}),V=new Array(q.length);var re=0;for(u=0;u<q.length;u++){var $,ae=q[u];!$||!d?($=ae.slice(),V[re]=$,re++):$.push.apply($,ae)}b._fillElement=null,b._fillExclusionElement=E,b._fillsegments=V.slice(0,re),V=b._fillsegments,q.length&&(O=q[0][0].slice(),G=q[q.length-1],J=G[G.length-1].slice()),Z=function(X){return function(K){if(R=L(K),I=B(K),z?d?(z+="L"+R.slice(1),F=I+("L"+F.slice(1))):(z+="Z"+R,F=I+"Z"+F):(z=R,F=I),ku.hasLines(b)){var ye=Bi.select(this);if(ye.datum(n),X)f(ye.style("opacity",0).attr("d",R).call(en.lineGroupStyle)).style("opacity",1);else{var oe=f(ye);oe.attr("d",R),en.singleLineStyle(n,oe)}}}}}var Q=m.selectAll(".js-line").data(q);f(Q.exit()).style("opacity",0).remove(),Q.each(Z(!1)),Q.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(en.lineGroupStyle).each(Z(!0)),en.setClipUrl(Q,t.layerClipId,e);function te(X){f(X).attr("d","M0,0Z")}var ue=function(){var X=new Array(V.length);for(u=0;u<V.length;u++)X[u]=_d(V[u]);return X},ee=function(X){var K,ye;if(!X||X.length===0)for(K=new Array(V.length),ye=0;ye<V.length;ye++){var oe=V[ye][0].slice(),de=V[ye][V[ye].length-1].slice();oe[w]=de[w]=y;var pe=[de,oe],me=pe.concat(V[ye]);K[ye]=_d(me)}else{for(K=new Array(X.length-1+V.length),ye=0;ye<X.length-1;ye++)K[ye]=_d(X[ye]);var Se=X[X.length-1].slice();for(Se.reverse(),ye=0;ye<V.length;ye++)K[X.length-1+ye]=_d(V[ye].concat(Se))}return K};q.length?(x?(x.datum(n),O&&J&&(d?(O[w]=J[w]=y,f(x).attr("d","M"+J+"L"+O+"L"+z.slice(1)).call(en.singleFillStyle,e),j=ee(null)):(f(x).attr("d",z+"Z").call(en.singleFillStyle,e),j=ue())),b._polygons=j,b._fillElement=x):M&&(b.fill.slice(0,6)==="tonext"&&z&&v?(b.fill==="tonext"?(f(M).attr("d",z+"Z"+v+"Z").call(en.singleFillStyle,e),j=ue(),b._polygons=j.concat(A)):(f(M).attr("d",z+"L"+v.slice(1)+"Z").call(en.singleFillStyle,e),j=ee(D),b._polygons=j),b._fillElement=M):te(M)),b._prevRevpath=F):(x?te(x):M&&te(M),b._prevRevpath=null),b._ownPolygons=j;function ie(X){return X.filter(function(K){return!K.gap&&K.vis})}function fe(X){return X.filter(function(K){return K.vis})}function we(X){return X.filter(function(K){return!K.gap})}function Te(X){return X.id}function ke(X){if(X.ids)return Te}function ge(){return!1}function Ee(X,K,ye){var oe,de,pe,me=ye[0].trace,Se=ku.hasMarkers(me),ve=ku.hasText(me),he=ke(me),be=ge,Ae=ge;if(Se||ve){var Re=bI,Pe=me.stackgroup,Ye=Pe&&e._fullLayout._scatterStackOpts[c._id+g._id][Pe].stackgaps==="infer zero";me.marker.maxdisplayed||me._needsCull?Re=Ye?fe:ie:Pe&&!Ye&&(Re=we),Se&&(be=Re),ve&&(Ae=Re)}de=X.selectAll("path.point"),oe=de.data(be,he);var Ve=oe.enter().append("path").classed("point",!0);s&&Ve.call(en.pointStyle,me,e).call(en.translatePoints,c,g).style("opacity",0).transition().style("opacity",1),oe.order();var Ue;Se&&(Ue=en.makePointStyleFns(me)),oe.each(function(qe){var We=Bi.select(this),Xe=f(We);pe=en.translatePoint(qe,Xe,c,g),pe?(en.singlePointStyle(qe,Xe,me,Ue,e),t.layerClipId&&en.hideOutsideRangePoint(qe,Xe,c,g,me.xcalendar,me.ycalendar),me.customdata&&We.classed("plotly-customdata",qe.data!==null&&qe.data!==void 0)):Xe.remove()}),s?oe.exit().transition().style("opacity",0).remove():oe.exit().remove(),de=K.selectAll("g"),oe=de.data(Ae,he),oe.enter().append("g").classed("textpoint",!0).append("text"),oe.order(),oe.each(function(qe){var We=Bi.select(this),Xe=f(We.select("text"));pe=en.translatePoint(qe,Xe,c,g),pe?t.layerClipId&&en.hideOutsideRangePoint(qe,We,c,g,me.xcalendar,me.ycalendar):We.remove()}),oe.selectAll("text").call(en.textPointStyle,me,e).each(function(qe){var We=c.c2p(qe.x),Xe=g.c2p(qe.y);Bi.select(this).selectAll("tspan.line").each(function(){f(Bi.select(this)).attr({x:We,y:Xe})})}),oe.exit().remove()}k.datum(n),S.datum(n),Ee(k,S,n);var Le=b.cliponaxis===!1,se=Le?null:t.layerClipId;en.setClipUrl(k,se,e),en.setClipUrl(S,se,e)}function Wve(e,r,t,n,a){var o=t.xaxis,i=t.yaxis,l=Bi.extent($c.simpleMap(o.range,o.r2c)),u=Bi.extent($c.simpleMap(i.range,i.r2c)),s=n[0].trace;if(ku.hasMarkers(s)){var f=s.marker.maxdisplayed;if(f!==0){var c=n.filter(function(_){return _.x>=l[0]&&_.x<=l[1]&&_.y>=u[0]&&_.y<=u[1]}),g=Math.ceil(c.length/f),b=0;a.forEach(function(_,T){var m=_[0].trace;ku.hasMarkers(m)&&m.marker.maxdisplayed>0&&T<r&&b++});var h=Math.round(b*g/3+Math.floor(b/3)*g/7.1);n.forEach(function(_){delete _.vis}),c.forEach(function(_,T){Math.round((T+h)%g)===0&&(_.vis=!0)})}}}});var MI=xe((N7e,wI)=>{"use strict";wI.exports={container:"marker",min:"cmin",max:"cmax"}});var AI=xe((q7e,TI)=>{"use strict";var wd=Vt();TI.exports=function(r,t,n){var a={},o={_fullLayout:n},i=wd.getFromTrace(o,t,"x"),l=wd.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=wd.tickText(i,i.c2l(u),!0).text,a.yLabel=wd.tickText(l,l.c2l(s),!0).text,a}});var lx=xe((B7e,kI)=>{"use strict";var ax=lt(),Su=At(),Zve=Cr();function Jve(e){var r=ax.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=ax.select(this),a=t.trace||t[0].trace;ix(n,a,e)}),r.selectAll("g.text").each(function(t){var n=ax.select(this),a=t.trace||t[0].trace;ox(n,a,e)}),r.selectAll("g.trace path.js-line").call(Su.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Su.fillGroupStyle,e,!1),Zve.getComponentMethod("errorbars","style")(r)}function ix(e,r,t){Su.pointStyle(e.selectAll("path.point"),r,t)}function ox(e,r,t){Su.textPointStyle(e.selectAll("text"),r,t)}function $ve(e,r,t){var n=r[0].trace;n.selectedpoints?(Su.selectedPointStyle(t.selectAll("path.point"),n),Su.selectedTextStyle(t.selectAll("text"),n)):(ix(t,n,e),ox(t,n,e))}kI.exports={style:Jve,stylePoints:ix,styleText:ox,styleOnSelect:$ve}});var CI=xe((O7e,SI)=>{"use strict";var Cu=Zr(),Kve=Da();SI.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Cu.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&&Cu.opacity(o)?o:i&&Cu.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?Cu.opacity(a)<.3?Cu.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Cu.opacity(n)&&Kve.hasLines(r)&&r.line.width?n:r.fillcolor)}});var DI=xe((U7e,LI)=>{"use strict";var Md=tr(),EI=yo(),Qve=Cr(),jve=CI(),sx=Zr(),ehe=Md.fillText;LI.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],g=i.hoveron||"",b=i.mode.indexOf("markers")!==-1?3:.5,h=!!i.xperiodalignment,_=!!i.yperiodalignment;if(g.indexOf("points")!==-1){var T=function(F){if(h){var L=l.c2p(F.xStart),P=l.c2p(F.xEnd);return s>=Math.min(L,P)&&s<=Math.max(L,P)?0:1/0}var B=Math.max(3,F.mrc||0),O=1-1/B,G=Math.abs(l.c2p(F.x)-s);return G<B?O*G/B:G-B+O},m=function(F){if(_){var L=u.c2p(F.yStart),P=u.c2p(F.yEnd);return f>=Math.min(L,P)&&f<=Math.max(L,P)?0:1/0}var B=Math.max(3,F.mrc||0),O=1-1/B,G=Math.abs(u.c2p(F.y)-f);return G<B?O*G/B:G-B+O},k=function(F){var L=Math.max(b,F.mrc||0),P=l.c2p(F.x)-s,B=u.c2p(F.y)-f;return Math.max(Math.sqrt(P*P+B*B)-L,1-b/L)},S=EI.getDistanceFunction(a,T,m,k);if(EI.getClosest(o,S,r),r.index!==!1){var x=o[r.index],M=l.c2p(x.x,!0),d=u.c2p(x.y,!0),w=x.mrc||1;r.index=x.i;var y=o[0].t.orientation,v=y&&(x.sNorm||x.s),A=y==="h"?v:x.orig_x!==void 0?x.orig_x:x.x,p=y==="v"?v:x.orig_y!==void 0?x.orig_y:x.y;return Md.extendFlat(r,{color:jve(i,x),x0:M-w,x1:M+w,xLabelVal:A,y0:d-w,y1:d+w,yLabelVal:p,spikeDistance:k(x),hovertemplate:i.hovertemplate}),ehe(x,i,r),Qve.getComponentMethod("errorbars","hoverInfo")(x,i,r),[r]}}function D(F){if(!F)return!1;var L=F.node();try{var P=new DOMPoint(c[0],c[1]);return L.isPointInFill(P)}catch(O){var B=L.ownerSVGElement.createSVGPoint();return B.x=c[0],B.y=c[1],L.isPointInFill(B)}}function E(F){var L,P=[],B=1/0,O=-1/0,G=1/0,J=-1/0,j;for(L=0;L<F.length;L++){var V=F[L];V.contains(c)&&(P.push(V),G=Math.min(G,V.ymin),J=Math.max(J,V.ymax))}if(P.length===0)return null;G=Math.max(G,0),J=Math.min(J,u._length),j=(G+J)/2;var q,Z,re,$,ae,Q,te;for(L=0;L<P.length;L++)for(Z=P[L].pts,q=1;q<Z.length;q++)Q=Z[q-1][1],te=Z[q][1],Q>j!=te>=j&&($=Z[q-1][0],ae=Z[q][0],te-Q&&(re=$+(ae-$)*(j-Q)/(te-Q),B=Math.min(B,re),O=Math.max(O,re)));return B=Math.max(B,0),O=Math.min(O,l._length),{x0:B,x1:O,y0:j,y1:j}}if(g.indexOf("fills")!==-1&&i._fillElement){var R=D(i._fillElement)&&!D(i._fillExclusionElement);if(R){var I=E(i._polygons);I===null&&(I={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var z=sx.defaultLine;return sx.opacity(i.fillcolor)?z=i.fillcolor:sx.opacity((i.line||{}).color)&&(z=i.line.color),Md.extendFlat(r,{distance:r.maxHoverDistance,x0:I.x0,x1:I.x1,y0:I.y0,y1:I.y1,color:z,hovertemplate:!1}),delete r.index,i.text&&!Md.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var PI=xe((H7e,FI)=>{"use strict";var RI=Da();FI.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,c,g=l.mode&&!RI.hasMarkers(l)&&!RI.hasText(l);if(g)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 zI=xe((V7e,II)=>{"use strict";II.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var fx=xe((G7e,BI)=>{"use strict";var Td=Cr().traceIs,ux=Sm();BI.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(rhe(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function rhe(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=the(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:!Td(o,"cartesian")||Td(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,qI(o,n)){var s=NI(o),f=[];for(a=0;a<r.length;a++){var c=r[a];!Td(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=ux(f,l,u)}else if(o.type==="splom"){var g=o.dimensions,b=g[o._axesDim[t]];b.visible&&(e.type=ux(b.values,l,u))}else e.type=ux(o[n]||[o[n+"0"]],l,u)}}}function the(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(qI(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function NI(e){return{v:"x",h:"y"}[e.orientation||"v"]}function qI(e,r){var t=NI(e),n=Td(e,"box-violin");return n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var UI=xe((Y7e,OI)=>{"use strict";var nhe=ba().isTypedArraySpec;function ahe(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)}OI.exports=function(r,t,n,a){if(t.type==="category"){var o=r.categoryarray,i=Array.isArray(o)&&o.length>0||nhe(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=ahe(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var GI=xe((X7e,VI)=>{"use strict";var HI=Zr(),ihe=no(),ohe=tr();VI.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(y,v){return ohe.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=HI.mix(o,a.bgColor,a.blend||ihe.lightFraction),c=i("gridcolor",f),g=i("gridwidth"),b=i("griddash"),h=n("showgrid",a.showGrid||!!c||!!g||!!b);if(h||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var _=HI.mix(t.gridcolor,a.bgColor,67),T=i("minor.gridcolor",_),m=i("minor.gridwidth",t.gridwidth||1),k=i("minor.griddash",t.griddash||"solid"),S=n("minor.showgrid",!!T||!!m||!!k);S||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var x=i("zerolinelayer"),M=i("zerolinecolor",o),d=i("zerolinewidth"),w=n("zeroline",a.showGrid||!!M||!!d);w||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var kd=xe((W7e,$I)=>{"use strict";var YI=ut(),lhe=Cr(),Kc=tr(),she=Tt(),uhe=Ri(),cx=ai(),XI=Ky(),WI=jy(),fhe=tm(),che=nm(),vhe=UI(),hhe=GI(),dhe=Jm(),ZI=C1(),Ad=(kn(),or(An)).WEEKDAY_PATTERN,phe=(kn(),or(An)).HOUR_PATTERN;$I.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||"-",g;if(c==="date"){var b=lhe.getComponentMethod("calendars","handleDefaults");b(r,t,"calendar",a.calendar),a.noTicklabelmode||(g=n("ticklabelmode"))}!a.noTicklabelindex&&(c==="date"||c==="linear")&&n("ticklabelindex");var h="";(!a.noTicklabelposition||c==="multicategory")&&(h=Kc.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:g==="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",h.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),ZI(t,o),dhe(r,t,n,a),vhe(r,t,n,a),a.noHover||(c!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var _=n("color"),T=_!==cx.color.dflt?_:l.color,m=u.label||o._dfltTitle[i];if(che(r,t,n,c,a),!s)return t;n("title.text",m),Kc.coerceFont(n,"title.font",l,{overrideDflt:{size:Kc.bigFont(l.size),color:T}}),XI(r,t,n,c);var k=a.hasMinor;if(k&&(she.newContainer(t,"minor"),XI(r,t,n,c,{isMinor:!0})),fhe(r,t,n,c,a),WI(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,WI(r,t,n,a),a.isMinor=S}hhe(r,t,n,{dfltColor:_,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:cx}),k&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var x=c==="multicategory";if(!a.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),x){var M=n("showdividers");M&&(n("dividercolor"),n("dividerwidth"))}if(c==="date")if(uhe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:ghe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var d=0;d<t.rangebreaks.length;d++)if(t.rangebreaks[d].pattern===Ad){t._hasDayOfWeekBreaks=!0;break}if(ZI(t,o),o._has("scattergl")||o._has("splom"))for(var w=0;w<a.data.length;w++){var y=a.data[w];(y.type==="scattergl"||y.type==="splom")&&(y.visible=!1,Kc.warn(y.type+" traces do not work on axes with rangebreaks. Setting trace "+y.index+" to `visible: false`."))}}return t};function ghe(e,r,t){function n(g,b){return Kc.coerce(e,r,cx.rangebreaks,g,b)}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=JI(o[l]),u){i=Ad;break}}var s=n("pattern",i);if(s===Ad)for(l=0;l<2;l++)u=JI(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case Ad:if(!YI(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 phe:if(!YI(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 yhe={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function JI(e){if(typeof e=="string")return yhe[e.slice(0,3).toLowerCase()]}});var vx=xe((Z7e,KI)=>{"use strict";var mhe=ut(),Sd=tr();KI.exports=function(r,t,n,a){var o=a.counterAxes||[],i=a.overlayableAxes||[],l=a.letter,u=a.grid,s=a.overlayingDomain,f,c,g,b,h,_;u&&(c=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],c&&(g=u[l+"side"].split(" ")[0],b=u.domain[l][g==="right"||g==="top"?1:0])),c=c||[0,1],f=f||(mhe(r.position)?"free":o[0]||"free"),g=g||(l==="x"?"bottom":"left"),b=b||0,h=0,_=!1;var T=Sd.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),m=Sd.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:g}},"side");if(T==="free"){if(l==="y"){var k=n("autoshift");k&&(b=m==="left"?s[0]:s[1],_=t.automargin?t.automargin:!0,h=m==="left"?-3:3),n("shift",h)}n("position",b)}n("automargin",_);var S=!1;if(i.length&&(S=Sd.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(i),dflt:!1}},"overlaying")),!S){var x=n("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),Sd.noneOrAll(r.domain,t.domain,c),l==="x"?(n("domainpad.left"),n("domainpad.right")):(n("domainpad.top"),n("domainpad.bottom")),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var oz=xe((J7e,iz)=>{"use strict";var Qs=tr(),QI=Zr(),bhe=uo().isUnifiedHover,xhe=M5(),jI=Tt(),_he=q0(),ez=ai(),whe=fx(),rz=kd(),Mhe=yc(),tz=vx(),dx=mn(),To=dx.id2name,nz=dx.name2id,The=(kn(),or(An)).AX_ID_PATTERN,az=Cr(),Cd=az.traceIs,hx=az.getComponentMethod;function Ed(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}iz.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},c={},g={},b={},h={},_,T;for(_=0;_<n.length;_++){var m=n[_];if(Cd(m,"cartesian")){var k;if(m.xaxis)k=To(m.xaxis),Ed(o,k,m);else if(m.xaxes)for(T=0;T<m.xaxes.length;T++)Ed(o,To(m.xaxes[T]),m);var S;if(m.yaxis)S=To(m.yaxis),Ed(o,S,m);else if(m.yaxes)for(T=0;T<m.yaxes.length;T++)Ed(o,To(m.yaxes[T]),m);if(m.type==="funnel"?m.orientation==="h"?(k&&(i[k]=!0),S&&(c[S]=!0)):S&&(l[S]=!0):m.type==="image"?(S&&(g[S]=!0),k&&(g[k]=!0)):(S&&(s[S]=!0,f[S]=!0),(!Cd(m,"carpet")||m.type==="carpet"&&!m._cheater)&&k&&(u[k]=!0)),m.type==="carpet"&&m._cheater&&k&&(i[k]=!0),Cd(m,"2dMap")&&(b[k]=!0,b[S]=!0),Cd(m,"oriented")){var x=m.orientation==="h"?S:k;h[x]=!0}}}var M=t._subplots,d=M.xaxis,w=M.yaxis,y=Qs.simpleMap(d,To),v=Qs.simpleMap(w,To),A=y.concat(v),p=QI.background;d.length&&w.length&&(p=Qs.coerce(r,t,_he,"plot_bgcolor"));var D=QI.combine(p,t.paper_bgcolor),E,R,I,z,F;function L(){var de=o[E]||[];F._traceIndices=de.map(function(pe){return pe.index}),F._annIndices=[],F._shapeIndices=[],F._selectionIndices=[],F._imgIndices=[],F._subplotsWith=[],F._counterAxes=[],F._name=F._attr=E,F._id=R}function P(de,pe){return Qs.coerce(z,F,ez,de,pe)}function B(de,pe){return Qs.coerce2(z,F,ez,de,pe)}function O(de){return de==="x"?w:d}function G(de,pe){for(var me=de==="x"?y:v,Se=[],ve=0;ve<me.length;ve++){var he=me[ve];he!==pe&&!(r[he]||{}).overlaying&&Se.push(nz(he))}return Se}var J={x:O("x"),y:O("y")},j=J.x.concat(J.y),V={},q=[];function Z(){var de=z.matches;The.test(de)&&j.indexOf(de)===-1&&(V[de]=z.type,q=Object.keys(V))}var re=xhe(r,t),$=bhe(re);for(_=0;_<A.length;_++){E=A[_],R=nz(E),I=E.charAt(0),Qs.isPlainObject(r[E])||(r[E]={}),z=r[E],F=jI.newContainer(t,E,I+"axis"),L();var ae=I==="x"&&!u[E]&&i[E]||I==="y"&&!s[E]&&l[E],Q=I==="y"&&(!f[E]&&c[E]||g[E]),te={hasMinor:!0,letter:I,font:t.font,outerTicks:b[E],showGrid:!h[E],data:o[E]||[],bgColor:D,calendar:t.calendar,automargin:!0,visibleDflt:ae,reverseDflt:Q,autotypenumbersDflt:a,splomStash:((t._splomAxes||{})[I]||{})[R],noAutotickangles:I==="y"};P("uirevision",t.uirevision),whe(z,F,P,te),rz(z,F,P,te,t);var ue=$&&I===re.charAt(0),ee=B("spikecolor",$?F.color:void 0),ie=B("spikethickness",$?1.5:void 0),fe=B("spikedash",$?"dot":void 0),we=B("spikemode",$?"across":void 0),Te=B("spikesnap"),ke=P("showspikes",!!ue||!!ee||!!ie||!!fe||!!we||!!Te);ke||(delete F.spikecolor,delete F.spikethickness,delete F.spikedash,delete F.spikemode,delete F.spikesnap);var ge=To(z.overlaying),Ee=[0,1];if(t[ge]!==void 0){var Le=To(t[ge].anchor);t[Le]!==void 0&&(Ee=t[Le].domain)}tz(z,F,P,{letter:I,counterAxes:J[I],overlayableAxes:G(I,E),grid:t.grid,overlayingDomain:Ee}),P("title.standoff"),Z(),F._input=z}for(_=0;_<q.length;){R=q[_++],E=To(R),I=E.charAt(0),Qs.isPlainObject(r[E])||(r[E]={}),z=r[E],F=jI.newContainer(t,E,I+"axis"),L();var se={letter:I,font:t.font,outerTicks:b[E],showGrid:!h[E],data:[],bgColor:D,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:a,splomStash:((t._splomAxes||{})[I]||{})[R]};P("uirevision",t.uirevision),F.type=V[R]||"linear",rz(z,F,P,se,t),tz(z,F,P,{letter:I,counterAxes:J[I],overlayableAxes:G(I,E),grid:t.grid}),P("fixedrange"),P("modebardisable"),Z(),F._input=z}var X=hx("rangeslider","handleDefaults"),K=hx("rangeselector","handleDefaults");for(_=0;_<y.length;_++)E=y[_],z=r[E],F=t[E],X(r,t,E),F.type==="date"&&K(z,F,t,v,F.calendar),P("fixedrange"),P("modebardisable");for(_=0;_<v.length;_++){E=v[_],z=r[E],F=t[E];var ye=t[To(F.anchor)],oe=hx("rangeslider","isVisible")(ye);P("fixedrange",oe),P("modebardisable")}Mhe.handleDefaults(r,t,{axIds:j.concat(q).sort(dx.idSort),axHasImage:g})}});var uz=xe(($7e,sz)=>{"use strict";var Ahe=lt(),lz=Cr(),Ld=tr(),Xa=At(),Dd=Vt();sz.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){Dd.redrawComponents(r);return}function i(T){var m=T.xaxis,k=T.yaxis;o._defs.select("#"+T.clipId+"> rect").call(Xa.setTranslate,0,0).call(Xa.setScale,1,1),T.plot.call(Xa.setTranslate,m._offset,k._offset).call(Xa.setScale,1,1);var S=T.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call(Xa.setPointGroupScale,1,1),S.selectAll(".textpoint").call(Xa.setTextPointsScale,1,1),S.call(Xa.hideOutsideRangePoints,T)}function l(T,m){var k=T.plotinfo,S=k.xaxis,x=k.yaxis,M=S._length,d=x._length,w=!!T.xr1,y=!!T.yr1,v=[];if(w){var A=Ld.simpleMap(T.xr0,S.r2l),p=Ld.simpleMap(T.xr1,S.r2l),D=A[1]-A[0],E=p[1]-p[0];v[0]=(A[0]*(1-m)+m*p[0]-A[0])/(A[1]-A[0])*M,v[2]=M*(1-m+m*E/D),S.range[0]=S.l2r(A[0]*(1-m)+m*p[0]),S.range[1]=S.l2r(A[1]*(1-m)+m*p[1])}else v[0]=0,v[2]=M;if(y){var R=Ld.simpleMap(T.yr0,x.r2l),I=Ld.simpleMap(T.yr1,x.r2l),z=R[1]-R[0],F=I[1]-I[0];v[1]=(R[1]*(1-m)+m*I[1]-R[1])/(R[0]-R[1])*d,v[3]=d*(1-m+m*F/z),x.range[0]=S.l2r(R[0]*(1-m)+m*I[0]),x.range[1]=x.l2r(R[1]*(1-m)+m*I[1])}else v[1]=0,v[3]=d;Dd.drawOne(r,S,{skipTitle:!0}),Dd.drawOne(r,x,{skipTitle:!0}),Dd.redrawComponents(r,[S._id,x._id]);var L=w?M/v[2]:1,P=y?d/v[3]:1,B=w?v[0]:0,O=y?v[1]:0,G=w?v[0]/v[2]*M:0,J=y?v[1]/v[3]*d:0,j=S._offset-G,V=x._offset-J;k.clipRect.call(Xa.setTranslate,B,O).call(Xa.setScale,1/L,1/P),k.plot.call(Xa.setTranslate,j,V).call(Xa.setScale,L,P),Xa.setPointGroupScale(k.zoomScalePts,1/L,1/P),Xa.setTextPointsScale(k.zoomScaleTxt,1/L,1/P)}var u;a&&(u=a());function s(){for(var T={},m=0;m<t.length;m++){var k=t[m],S=k.plotinfo.xaxis,x=k.plotinfo.yaxis;k.xr1&&(T[S._name+".range"]=k.xr1.slice()),k.yr1&&(T[x._name+".range"]=k.yr1.slice())}return u&&u(),lz.call("relayout",r,T).then(function(){for(var M=0;M<t.length;M++)i(t[M].plotinfo)})}function f(){for(var T={},m=0;m<t.length;m++){var k=t[m],S=k.plotinfo.xaxis,x=k.plotinfo.yaxis;k.xr0&&(T[S._name+".range"]=k.xr0.slice()),k.yr0&&(T[x._name+".range"]=k.yr0.slice())}return lz.call("relayout",r,T).then(function(){for(var M=0;M<t.length;M++)i(t[M].plotinfo)})}var c,g,b,h=Ahe.ease(n.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(b),b=null,f()});function _(){g=Date.now();for(var T=Math.min(1,(g-c)/n.duration),m=h(T),k=0;k<t.length;k++)l(t[k],m);g-c>n.duration?(s(),b=window.cancelAnimationFrame(_)):b=window.requestAnimationFrame(_)}return c=Date.now(),b=window.requestAnimationFrame(_),Promise.resolve()}});var px=xe(ea=>{"use strict";var Fd=lt(),fz=Cr(),js=tr(),khe=Sn(),She=At(),cz=Gf().getModuleCalcData,Ol=mn(),Oi=(kn(),or(An)),Che=(wl(),or(_l)),dt=js.ensureSingle;function Rd(e,r,t){return js.ensureSingle(e,r,t,function(n){n.datum(t)})}var e0=Oi.zindexSeparator;ea.name="cartesian";ea.attr=["xaxis","yaxis"];ea.idRoot=["x","y"];ea.idRegex=Oi.idRegex;ea.attrRegex=Oi.attrRegex;ea.attributes=zI();ea.layoutAttributes=ai();ea.supplyLayoutDefaults=oz();ea.transitionAxes=uz();ea.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 g=i[s].split("y");l[g[0]]=1,u["y"+g[1]]=1}for(s=0;s<n.length;s++)f=n[s],l[f]||(c=(e[Ol.id2name(f)]||{}).anchor,Oi.idRegex.y.test(c)||(c="y"),o.push(f+c),i.push(f+c),u[c]||(u[c]=1,js.pushUnique(a,c)));for(s=0;s<a.length;s++)c=a[s],u[c]||(f=(e[Ol.id2name(c)]||{}).anchor,Oi.idRegex.x.test(f)||(f="x"),o.push(f+c),i.push(f+c),l[f]||(l[f]=1,js.pushUnique(n,f)));if(!i.length){f="",c="";for(var b in e)if(Oi.attrRegex.test(b)){var h=b.charAt(0);h==="x"?(!f||+b.slice(5)<+f.slice(5))&&(f=b):(!c||+b.slice(5)<+c.slice(5))&&(c=b)}f=f?Ol.name2id(f):"x",c=c?Ol.name2id(c):"y",n.push(f),a.push(c),o.push(f+c)}};ea.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],g=a._plots[c];if(s>0){var b=g.id;if(b.indexOf(e0)!==-1)continue;b+=e0+(s+1),g=js.extendFlat({},g,{id:b,plot:a._cartesianlayer.selectAll(".subplot").select("."+b)})}for(var h=[],_,T=0;T<i.length;T++){var m=i[T],k=m[0].trace;f===(k.zorder||0)&&k.xaxis+k.yaxis===c&&((r.indexOf(k.index)!==-1||k.carpet)&&(_&&_[0].trace.xaxis+_[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(k.fill)!==-1&&h.indexOf(_)===-1&&h.push(_),h.push(m)),_=m)}vz(e,g,h,t,n)}}};function vz(e,r,t,n,a){for(var o=Oi.traceLayerClasses,i=e._fullLayout,l=i._zindices,u=i._modules,s,f,c,g=[],b=[],h=0;h<l.length;h++)for(var _=l[h],T=0;T<u.length;T++){s=u[T];var m=s.name,k=fz.modules[m].categories;if(k.svg){var S=s.layerName||m+"layer",x=S+(h?Number(h)+1:""),M=s.plot;f=cz(t,M,_),c=f[0],t=f[1],c.length&&g.push({i:o.indexOf(S),zindex:h,className:x,plotMethod:M,cdModule:c}),k.zoomScale&&b.push("."+x)}}g.sort(function(y,v){return(y.zindex||0)-(v.zindex||0)||y.i-v.i});var d=r.plot.selectAll("g.mlayer").data(g,function(y){return y.className});if(d.enter().append("g").attr("class",function(y){return y.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),d.exit().remove(),d.order(),d.each(function(y){var v=Fd.select(this),A=y.className;y.plotMethod(e,r,y.cdModule,v,n,a),Oi.clipOnAxisFalseQuery.indexOf("."+A)===-1&&She.setClipUrl(v,r.layerClipId,e)}),i._has("scattergl")&&(s=fz.getModule("scattergl"),c=cz(t,s)[0],s.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(Oi.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),b.length)){var w=r.plot.selectAll(b.join(",")).selectAll(".trace");r.zoomScalePts=w.selectAll("path.point"),r.zoomScaleTxt=w.selectAll(".textpoint")}}ea.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 g=Ol.listIds({_fullLayout:n});for(u=0;u<g.length;u++){var b=g[u];r[Ol.id2name(b)]||n._infolayer.selectAll(".g-"+b+"title").remove()}}var h=n._has&&n._has("cartesian"),_=r._has&&r._has("cartesian");if(h&&!_)dz(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 T=i.cartesian[u];if(T.indexOf(e0)===-1&&!o[T]){var m="."+T+",."+T+"-x,."+T+"-y";n._cartesianlayer.selectAll(m).remove(),pz(T,n)}}};ea.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(js.sorterAsc);u.length||(u=[0]),r._zindices=u;var s=Ehe(e),f=s.length,c=[];for(n=0;n<f;n++)c[n]=s[n].slice();for(var g=1;g<u.length;g++){var b=[];for(n=0;n<f;n++)b[n]=s[n].slice(),b[n][0]+=e0+(g+1);c=c.concat(b)}var h=r._cartesianlayer.selectAll(".subplot").data(c,String);h.enter().append("g").attr("class",function(_){return"subplot "+_[0]}),h.order(),h.exit().call(dz,r),h.each(function(_){var T=_[0],m=T.indexOf(e0),k=m!==-1,S=k?T.slice(0,m):T,x=r._plots[T];x||(x=js.extendFlat({},r._plots[S]),x&&(x.id=T,r._plots[T]=x,r._subplots.cartesian.push(T))),x&&(x.plotgroup=Fd.select(this),hz(e,x),k||(x.draglayer=dt(r._draggers,"g",T)))})};ea.rangePlot=function(e,r,t){hz(e,r),vz(e,r,t),khe.style(e)};function Ehe(e){var r=e._fullLayout,t=r._zindices.length,n=r._subplots.cartesian,a=n.length,o,i,l,u,s,f,c=[],g=[];for(o=0;o<a;o++){l=n[o],u=r._plots[l],s=u.xaxis,f=u.yaxis;var b=s._mainAxis,h=f._mainAxis,_=b._id+h._id,T=r._plots[_];u.overlays=[],_!==l&&T?(u.mainplot=_,u.mainplotinfo=T,g.push(l)):(u.mainplot=void 0,u.mainplotinfo=void 0,c.push(l))}for(o=0;o<g.length;o++)l=g[o],u=r._plots[l],u.mainplotinfo.overlays.push(u);var m=c.concat(g),k=[];for(o=0;o<a;o++){l=m[o],u=r._plots[l],s=u.xaxis,f=u.yaxis;for(var S=[],x=1;x<=t;x++){var M="";for(x>1&&(M+=e0+x),S.push(l+M),i=0;i<u.overlays.length;i++)S.push(u.overlays[i].id+M)}S=S.concat([s.layer,f.layer,s.overlaying||"",f.overlaying||""]),k.push(S)}return k}function hz(e,r){var t=e._fullLayout,n=r.plotgroup,a=r.id,o=a.indexOf(e0),i=o!==-1,l=Oi.layerValue2layerClass[r.xaxis.layer],u=Oi.layerValue2layerClass[r.yaxis.layer],s=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=dt(n,"path","xlines-above"),r.ylines=dt(n,"path","ylines-above"),r.xaxislayer=dt(n,"g","xaxislayer-above"),r.yaxislayer=dt(n,"g","yaxislayer-above");else{if(!i){var g=dt(n,"g","layer-subplot");r.shapelayer=dt(g,"g","shapelayer"),r.imagelayer=dt(g,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=dt(n,"g","minor-gridlayer"),r.gridlayer=dt(n,"g","gridlayer"),r.zerolinelayer=dt(n,"g","zerolinelayer"));var b=dt(n,"g","layer-between");r.shapelayerBetween=dt(b,"g","shapelayer"),r.imagelayerBetween=dt(b,"g","imagelayer"),dt(n,"path","xlines-below"),dt(n,"path","ylines-below"),r.overlinesBelow=dt(n,"g","overlines-below"),dt(n,"g","xaxislayer-below"),dt(n,"g","yaxislayer-below"),r.overaxesBelow=dt(n,"g","overaxes-below")}r.overplot=dt(n,"g","overplot"),r.plot=dt(r.overplot,"g",a),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=dt(n,"g","zerolinelayer-above"),i||(r.xlines=dt(n,"path","xlines-above"),r.ylines=dt(n,"path","ylines-above"),r.overlinesAbove=dt(n,"g","overlines-above"),dt(n,"g","xaxislayer-above"),dt(n,"g","yaxislayer-above"),r.overaxesAbove=dt(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 h=c.plotgroup,_=a+"-x",T=a+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,dt(c.overlinesBelow,"path",_),dt(c.overlinesBelow,"path",T),dt(c.overaxesBelow,"g",_),dt(c.overaxesBelow,"g",T),r.plot=dt(c.overplot,"g",a),dt(c.overlinesAbove,"path",_),dt(c.overlinesAbove,"path",T),dt(c.overaxesAbove,"g",_),dt(c.overaxesAbove,"g",T),r.xlines=h.select(".overlines-"+l).select("."+_),r.ylines=h.select(".overlines-"+u).select("."+T),r.xaxislayer=h.select(".overaxes-"+l).select("."+_),r.yaxislayer=h.select(".overaxes-"+u).select("."+T)}i||(s||(Rd(r.minorGridlayer,"g",r.xaxis._id),Rd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(m){return m[0]}).sort(Ol.idSort),Rd(r.gridlayer,"g",r.xaxis._id),Rd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(m){return m[0]}).sort(Ol.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function dz(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=Fd.select(this);f.remove(),pz(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 pz(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}ea.toSVG=function(e){var r=e._fullLayout._glimages,t=Fd.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:Che.svg,"xlink:href":i,preserveAspectRatio:"none",x:0,y:0,width:o.style.width,height:o.style.height})}n.each(a)};ea.updateFx=wb().updateFx});var yz=xe((Q7e,gz)=>{"use strict";var Pd=Da();gz.exports={hasLines:Pd.hasLines,hasMarkers:Pd.hasMarkers,hasText:Pd.hasText,isBubble:Pd.isBubble,attributes:Ws(),layoutAttributes:i1(),supplyDefaults:kP(),crossTraceDefaults:LP(),supplyLayoutDefaults:RP(),calc:$b().calc,crossTraceCalc:lI(),arraysToCalcdata:yd(),plot:_I(),colorbar:MI(),formatLabels:AI(),style:lx().style,styleOnSelect:lx().styleOnSelect,hoverPoints:DI(),selectPoints:PI(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:px(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var xz=xe((j7e,bz)=>{"use strict";var Lhe=lt(),Dhe=Zr(),mz=hb(),gx=tr(),Rhe=gx.strScale,Fhe=gx.strRotate,Phe=gx.strTranslate;bz.exports=function(r,t,n){var a=r.node(),o=mz[n.arrowhead||0],i=mz[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,g=i.backoff*u+n.startstandoff,b,h,_,T;if(a.nodeName==="line"){b={x:+r.attr("x1"),y:+r.attr("y1")},h={x:+r.attr("x2"),y:+r.attr("y2")};var m=b.x-h.x,k=b.y-h.y;if(_=Math.atan2(k,m),T=_+Math.PI,c&&g&&c+g>Math.sqrt(m*m+k*k)){R();return}if(c){if(c*c>m*m+k*k){R();return}var S=c*Math.cos(_),x=c*Math.sin(_);h.x+=S,h.y+=x,r.attr({x2:h.x,y2:h.y})}if(g){if(g*g>m*m+k*k){R();return}var M=g*Math.cos(_),d=g*Math.sin(_);b.x-=M,b.y-=d,r.attr({x1:b.x,y1:b.y})}}else if(a.nodeName==="path"){var w=a.getTotalLength(),y="";if(w<c+g){R();return}var v=a.getPointAtLength(0),A=a.getPointAtLength(.1);_=Math.atan2(v.y-A.y,v.x-A.x),b=a.getPointAtLength(Math.min(g,w)),y="0px,"+g+"px,";var p=a.getPointAtLength(w),D=a.getPointAtLength(w-.1);T=Math.atan2(p.y-D.y,p.x-D.x),h=a.getPointAtLength(Math.max(0,w-c));var E=y?g+c:c;y+=w-E+"px,"+w+"px",r.style("stroke-dasharray",y)}function R(){r.style("stroke-dasharray","0px,100px")}function I(z,F,L,P){z.path&&(z.noRotate&&(L=0),Lhe.select(a.parentNode).append("path").attr({class:r.attr("class"),d:z.path,transform:Phe(F.x,F.y)+Fhe(L*180/Math.PI)+Rhe(P)}).style({fill:Dhe.rgb(n.arrowcolor),"stroke-width":0}))}s&&I(i,b,_,u),f&&I(o,h,T,l)}});var Id=xe((ewe,Az)=>{"use strict";var _z=lt(),yx=Cr(),Ihe=Sn(),Hl=tr(),mx=Hl.strTranslate,jc=Vt(),r0=Zr(),Xo=At(),wz=yo(),bx=Qn(),xx=Dl(),Qc=Pi(),zhe=Tt().arrayEditor,Nhe=xz();Az.exports={draw:qhe,drawOne:Mz,drawRaw:Tz};function qhe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&Mz(e,t);return Ihe.previousPromises(e)}function Mz(e,r){var t=e._fullLayout,n=t.annotations[r]||{},a=jc.getFromId(e,n.xref),o=jc.getFromId(e,n.yref);a&&a.setScale(),o&&o.setScale(),Tz(e,n,r,!1,a,o)}function Ul(e,r,t,n,a){var o=a[t],i=a[t+"ref"],l=t.indexOf("y")!==-1,u=jc.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 Tz(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=zhe(e.layout,f,r),g=c.modifyBase,b=c.modifyItem,h=c.getUpdateObj;i._infolayer.selectAll("."+s+'[data-index="'+t+'"]').remove();var _="clip"+i._uid+"_ann"+t;if(!r._input||r.visible===!1){_z.selectAll("#"+_).remove();return}var T={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),x=u[r.showarrow?"annotationTail":"annotationPosition"],M=r.captureevents||u.annotationText||x;function d(P){var B={index:t,annotation:r._input,fullAnnotation:r,event:P};return n&&(B.subplotId=n),B}var w=S.append("g").style("pointer-events",M?"all":null).call(xx,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",d(_z.event))});r.hovertext&&w.on("mouseover",function(){var P=r.hoverlabel,B=P.font,O=this.getBoundingClientRect(),G=e.getBoundingClientRect();wz.loneHover({x0:O.left-G.left,x1:O.right-G.left,y:(O.top+O.bottom)/2-G.top,text:r.hovertext,color:P.bgcolor,borderColor:P.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(){wz.loneUnhover(i._hoverlayer.node())});var y=r.borderwidth,v=r.borderpad,A=y+v,p=w.append("rect").attr("class","bg").style("stroke-width",y+"px").call(r0.stroke,r.bordercolor).call(r0.fill,r.bgcolor),D=r.width||r.height,E=i._topclips.selectAll("#"+_).data(D?[0]:[]);E.enter().append("clipPath").classed("annclip",!0).attr("id",_).append("rect"),E.exit().remove();var R=r.font,I=i._meta?Hl.templateString(r.text,i._meta):r.text,z=w.append("text").classed("annotation-text",!0).text(I);function F(P){return P.call(Xo.font,R).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),bx.convertToTspans(P,e,L),P}function L(){var P=z.selectAll("a");if(P.size()===1&&P.text()===z.text()){var B=w.insert("a",":first-child").attr({"xlink:xlink:href":P.attr("xlink:href"),"xlink:xlink:show":P.attr("xlink:show")}).style({cursor:"pointer"});B.node().appendChild(p.node())}var O=w.select(".annotation-text-math-group"),G=!O.empty(),J=Xo.bBox((G?O:z).node()),j=J.width,V=J.height,q=r.width||j,Z=r.height||V,re=Math.round(q+2*A),$=Math.round(Z+2*A);function ae(er,nr){return nr==="auto"&&(er<1/3?nr="left":er>2/3?nr="right":nr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nr]}for(var Q=!1,te=["x","y"],ue=0;ue<te.length;ue++){var ee=te[ue],ie=r[ee+"ref"]||ee,fe=r["a"+ee+"ref"],we={x:a,y:o}[ee],Te=(m+(ee==="x"?0:-90))*Math.PI/180,ke=re*Math.cos(Te),ge=$*Math.sin(Te),Ee=Math.abs(ke)+Math.abs(ge),Le=r[ee+"anchor"],se=r[ee+"shift"]*(ee==="x"?1:-1),X=T[ee],K,ye,oe,de,pe,me=jc.getRefType(ie);if(we&&me!=="domain"){var Se=we.r2fraction(r[ee]);(Se<0||Se>1)&&(fe===ie?(Se=we.r2fraction(r["a"+ee]),(Se<0||Se>1)&&(Q=!0)):Q=!0),K=we._offset+we.r2p(r[ee]),de=.5}else{var ve=me==="domain";ee==="x"?(oe=r[ee],K=ve?we._offset+we._length*oe:K=l.l+l.w*oe):(oe=1-r[ee],K=ve?we._offset+we._length*oe:K=l.t+l.h*oe),de=r.showarrow?.5:oe}if(r.showarrow){X.head=K;var he=r["a"+ee];if(pe=ke*ae(.5,r.xanchor)-ge*ae(.5,r.yanchor),fe===ie){var be=jc.getRefType(fe);be==="domain"?(ee==="y"&&(he=1-he),X.tail=we._offset+we._length*he):be==="paper"?ee==="y"?(he=1-he,X.tail=l.t+l.h*he):X.tail=l.l+l.w*he:X.tail=we._offset+we.r2p(he),ye=pe}else X.tail=K+he,ye=pe+he;X.text=X.tail+pe;var Ae=i[ee==="x"?"width":"height"];if(ie==="paper"&&(X.head=Hl.constrain(X.head,1,Ae-1)),fe==="pixel"){var Re=-Math.max(X.tail-3,X.text),Pe=Math.min(X.tail+3,X.text)-Ae;Re>0?(X.tail+=Re,X.text+=Re):Pe>0&&(X.tail-=Pe,X.text-=Pe)}X.tail+=se,X.head+=se}else pe=Ee*ae(de,Le),ye=pe,X.text=K+pe;X.text+=se,pe+=se,ye+=se,r["_"+ee+"padplus"]=Ee/2+ye,r["_"+ee+"padminus"]=Ee/2-ye,r["_"+ee+"size"]=Ee,r["_"+ee+"shift"]=pe}if(Q){w.remove();return}var Ye=0,Ve=0;if(r.align!=="left"&&(Ye=(q-j)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Ve=(Z-V)*(r.valign==="middle"?.5:1)),G)O.select("svg").attr({x:A+Ye-1,y:A+Ve}).call(Xo.setClipUrl,D?_:null,e);else{var Ue=A+Ve-J.top,qe=A+Ye-J.left;z.call(bx.positionText,qe,Ue).call(Xo.setClipUrl,D?_:null,e)}E.select("rect").call(Xo.setRect,A,A,q,Z),p.call(Xo.setRect,y/2,y/2,re-y,$-y),w.call(Xo.setTranslate,Math.round(T.x.text-re/2),Math.round(T.y.text-$/2)),S.attr({transform:"rotate("+m+","+T.x.text+","+T.y.text+")"});var We=function(er,nr){k.selectAll(".annotation-arrow-g").remove();var rr=T.x.head,Qe=T.y.head,Ce=T.x.tail+er,ze=T.y.tail+nr,Ke=T.x.text+er,je=T.y.text+nr,wr=Hl.rotationXYMatrix(m,Ke,je),Xr=Hl.apply2DTransform(wr),Tr=Hl.apply2DTransform2(wr),Pr=+p.attr("width"),at=+p.attr("height"),Ar=Ke-.5*Pr,Hr=Ar+Pr,ot=je-.5*at,Ir=ot+at,Jr=[[Ar,ot,Ar,Ir],[Ar,Ir,Hr,Ir],[Hr,Ir,Hr,ot],[Hr,ot,Ar,ot]].map(Tr);if(!Jr.reduce(function(vt,Bt){return vt^!!Hl.segmentsIntersect(rr,Qe,rr+1e6,Qe+1e6,Bt[0],Bt[1],Bt[2],Bt[3])},!1)){Jr.forEach(function(vt){var Bt=Hl.segmentsIntersect(Ce,ze,rr,Qe,vt[0],vt[1],vt[2],vt[3]);Bt&&(Ce=Bt.x,ze=Bt.y)});var Xt=r.arrowwidth,tt=r.arrowcolor,Kr=r.arrowside,qt=k.append("g").style({opacity:r0.opacity(tt)}).classed("annotation-arrow-g",!0),lr=qt.append("path").attr("d","M"+Ce+","+ze+"L"+rr+","+Qe).style("stroke-width",Xt+"px").call(r0.stroke,r0.rgb(tt));if(Nhe(lr,Kr,r),u.annotationPosition&&lr.node().parentNode&&!n){var Dr=rr,Vr=Qe;if(r.standoff){var st=Math.sqrt(Math.pow(rr-Ce,2)+Math.pow(Qe-ze,2));Dr+=r.standoff*(Ce-rr)/st,Vr+=r.standoff*(ze-Qe)/st}var mt=qt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ce-Dr)+","+(ze-Vr),transform:mx(Dr,Vr)}).style("stroke-width",Xt+6+"px").call(r0.stroke,"rgba(0,0,0,0)").call(r0.fill,"rgba(0,0,0,0)"),St,it;Qc.init({element:mt.node(),gd:e,prepFn:function(){var vt=Xo.getTranslate(w);St=vt.x,it=vt.y,a&&a.autorange&&g(a._name+".autorange",!0),o&&o.autorange&&g(o._name+".autorange",!0)},moveFn:function(vt,Bt){var Gn=Xr(St,it),Yn=Gn[0]+vt,_n=Gn[1]+Bt;w.call(Xo.setTranslate,Yn,_n),b("x",Ul(a,vt,"x",l,r)),b("y",Ul(o,Bt,"y",l,r)),r.axref===r.xref&&b("ax",Ul(a,vt,"ax",l,r)),r.ayref===r.yref&&b("ay",Ul(o,Bt,"ay",l,r)),qt.attr("transform",mx(vt,Bt)),S.attr({transform:"rotate("+m+","+Yn+","+_n+")"})},doneFn:function(){yx.call("_guiRelayout",e,h());var vt=document.querySelector(".js-notes-box-panel");vt&&vt.redraw(vt.selectedObj)}})}}};if(r.showarrow&&We(0,0),x){var Xe;Qc.init({element:w.node(),gd:e,prepFn:function(){Xe=S.attr("transform")},moveFn:function(er,nr){var rr="pointer";if(r.showarrow)r.axref===r.xref?b("ax",Ul(a,er,"ax",l,r)):b("ax",r.ax+er),r.ayref===r.yref?b("ay",Ul(o,nr,"ay",l.w,r)):b("ay",r.ay+nr),We(er,nr);else{if(n)return;var Qe,Ce;if(a)Qe=Ul(a,er,"x",l,r);else{var ze=r._xsize/l.w,Ke=r.x+(r._xshift-r.xshift)/l.w-ze/2;Qe=Qc.align(Ke+er/l.w,ze,0,1,r.xanchor)}if(o)Ce=Ul(o,nr,"y",l,r);else{var je=r._ysize/l.h,wr=r.y-(r._yshift+r.yshift)/l.h-je/2;Ce=Qc.align(wr-nr/l.h,je,0,1,r.yanchor)}b("x",Qe),b("y",Ce),(!a||!o)&&(rr=Qc.getCursor(a?.5:Qe,o?.5:Ce,r.xanchor,r.yanchor))}S.attr({transform:mx(er,nr)+Xe}),xx(w,rr)},clickFn:function(er,nr){r.captureevents&&e.emit("plotly_clickannotation",d(nr))},doneFn:function(){xx(w),yx.call("_guiRelayout",e,h());var er=document.querySelector(".js-notes-box-panel");er&&er.redraw(er.selectedObj)}})}}u.annotationText?z.call(bx.makeEditable,{delegate:w,gd:e}).call(F).on("edit",function(P){r.text=P,this.call(F),b("text",P),a&&a.autorange&&g(a._name+".autorange",!0),o&&o.autorange&&g(o._name+".autorange",!0),yx.call("_guiRelayout",e,h())}):z.call(F)}});var Dz=xe((rwe,Lz)=>{"use strict";var kz=tr(),Bhe=Cr(),Sz=Tt().arrayEditor;Lz.exports={hasClickToShow:Ohe,onClick:Uhe};function Ohe(e,r){var t=Ez(e,r);return t.on.length>0||t.explicitOff.length>0}function Uhe(e,r){var t=Ez(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),kz.extendFlat(o,u.getUpdateObj());for(l=0;l<a.length;l++)u=Sz(e.layout,"annotations",i[a[l]]),u.modifyItem("visible",!1),kz.extendFlat(o,u.getUpdateObj());return Bhe.call("update",e,{},o)}}function Ez(e,r){var t=e._fullLayout.annotations,n=[],a=[],o=[],i=(r||[]).length,l,u,s,f,c,g,b,h;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],g=c.xaxis,b=c.yaxis,g._id===s.xref&&b._id===s.yref&&g.d2r(c.x)===Cz(s._xclick,g)&&b.d2r(c.y)===Cz(s._yclick,b)){s.visible?f==="onout"?h=a:h=o:h=n,h.push(l);break}u===i&&s.visible&&f==="onout"&&a.push(l)}return{on:n,off:a,explicitOff:o}}function Cz(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var wx=xe((twe,Rz)=>{"use strict";var _x=tr(),Eu=Zr();Rz.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=Eu.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),_x.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var c=a("arrowside"),g,b;c.indexOf("end")!==-1&&(g=a("arrowhead"),b=a("arrowsize")),c.indexOf("start")!==-1&&(a("startarrowhead",g),a("startarrowsize",b)),a("arrowcolor",l?t.bordercolor:Eu.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var h=a("hovertext"),_=n.hoverlabel||{};if(h){var T=a("hoverlabel.bgcolor",_.bgcolor||(Eu.opacity(o)?Eu.rgb(o):Eu.defaultLine)),m=a("hoverlabel.bordercolor",_.bordercolor||Eu.contrast(T)),k=_x.extendFlat({},_.font);k.color||(k.color=m),_x.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!h)}});var Pz=xe((nwe,Fz)=>{"use strict";var Mx=tr(),t0=Vt(),Hhe=Ri(),Vhe=wx(),Ghe=bu();Fz.exports=function(r,t){Hhe(r,t,{name:"annotations",handleItemDefaults:Yhe})};function Yhe(e,r,t){function n(S,x){return Mx.coerce(e,r,Ghe,S,x)}var a=n("visible"),o=n("clicktoshow");if(a||o){Vhe(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],g=t0.coerceRef(e,r,s,c,"","paper");if(g!=="paper"){var b=t0.getFromId(s,g);b._annIndices.push(r._index)}if(t0.coercePosition(r,s,n,g,c,.5),i){var h="a"+c,_=t0.coerceRef(e,r,s,h,"pixel",["pixel","paper"]);_!=="pixel"&&_!==g&&(_=r[h]="pixel");var T=_==="pixel"?u[f]:.4;t0.coercePosition(r,s,n,_,h,T)}n(c+"anchor"),n(c+"shift")}if(Mx.noneOrAll(e,r,["x","y"]),i&&Mx.noneOrAll(e,r,["ax","ay"]),o){var m=n("xclick"),k=n("yclick");r._xclick=m===void 0?r.x:t0.cleanPosition(m,s,r.xref),r._yclick=k===void 0?r.y:t0.cleanPosition(k,s,r.yref)}}}});var Nz=xe((awe,zz)=>{"use strict";var Tx=tr(),n0=Vt(),Xhe=Id().draw;zz.exports=function(r){var t=r._fullLayout,n=Tx.filterVisible(t.annotations);if(n.length&&r._fullData.length)return Tx.syncOrAsync([Xhe,Whe],r)};function Whe(e){var r=e._fullLayout;Tx.filterVisible(r.annotations).forEach(function(t){var n=n0.getFromId(e,t.xref),a=n0.getFromId(e,t.yref),o=n0.getRefType(t.xref),i=n0.getRefType(t.yref);t._extremes={},o==="range"&&Iz(t,n),i==="range"&&Iz(t,a)})}function Iz(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,g=c+f,b=c-f,h=3*e.startarrowsize*e.arrowwidth||0,_=h+f,T=h-f,m;if(l===i){var k=n0.findExtremes(r,[r.r2c(a)],{ppadplus:g,ppadminus:b}),S=n0.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,_),ppadminus:Math.max(s,T)});m={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else _=o?_+o:_,T=o?T-o:T,m=n0.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,g,_),ppadminus:Math.max(s,b,T)});e._extremes[t]=m}});var Bz=xe((iwe,qz)=>{"use strict";var Zhe=ut(),Jhe=jv();qz.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(b){var h=s[b],_=null;o?_=Jhe(h,t.range):_=Math.pow(10,h),Zhe(_)||(_=null),a(f+b,_)}for(var g=0;g<l.length;g++)s=l[g],f="annotations["+g+"].",s[u+"ref"]===t._id&&c(u),s["a"+u+"ref"]===t._id&&c("a"+u)}});var Hz=xe((owe,Uz)=>{"use strict";var Ax=Id(),Oz=Dz();Uz.exports={moduleType:"component",name:"annotations",layoutAttributes:bu(),supplyLayoutDefaults:Pz(),includeBasePlot:zc()("annotations"),calcAutorange:Nz(),draw:Ax.draw,drawOne:Ax.drawOne,drawRaw:Ax.drawRaw,hasClickToShow:Oz.hasClickToShow,onClick:Oz.onClick,convertCoords:Bz()}});var zd=xe((lwe,Vz)=>{"use strict";var Lt=bu(),$he=ua().overrideAll,Khe=Tt().templatedArray;Vz.exports=$he(Khe("annotation",{visible:Lt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Lt.xanchor,xshift:Lt.xshift,yanchor:Lt.yanchor,yshift:Lt.yshift,text:Lt.text,textangle:Lt.textangle,font:Lt.font,width:Lt.width,height:Lt.height,opacity:Lt.opacity,align:Lt.align,valign:Lt.valign,bgcolor:Lt.bgcolor,bordercolor:Lt.bordercolor,borderpad:Lt.borderpad,borderwidth:Lt.borderwidth,showarrow:Lt.showarrow,arrowcolor:Lt.arrowcolor,arrowhead:Lt.arrowhead,startarrowhead:Lt.startarrowhead,arrowside:Lt.arrowside,arrowsize:Lt.arrowsize,startarrowsize:Lt.startarrowsize,arrowwidth:Lt.arrowwidth,standoff:Lt.standoff,startstandoff:Lt.startstandoff,hovertext:Lt.hovertext,hoverlabel:Lt.hoverlabel,captureevents:Lt.captureevents}),"calc","from-root")});var Yz=xe((swe,Gz)=>{"use strict";var kx=tr(),Qhe=Vt(),jhe=Ri(),e1e=wx(),r1e=zd();Gz.exports=function(r,t,n){jhe(r,t,{name:"annotations",handleItemDefaults:t1e,fullLayout:n.fullLayout})};function t1e(e,r,t,n){function a(l,u){return kx.coerce(e,r,r1e,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],Qhe.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(e1e(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),kx.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),kx.noneOrAll(e,r,["ax","ay"])))}});var Jz=xe((uwe,Zz)=>{"use strict";var Xz=tr(),Wz=Vt();Zz.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a<n.length;a++)n1e(n[a],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function n1e(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={},Xz.extendFlat(e._xa,o),Wz.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={},Xz.extendFlat(e._ya,o),Wz.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 Cx=xe((fwe,$z)=>{"use strict";function Sx(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 a1e(e,r){var t=Sx(e.projection,Sx(e.view,Sx(e.model,[r[0],r[1],r[2],1])));return t}$z.exports=a1e});var Qz=xe((cwe,Kz)=>{"use strict";var i1e=Id().drawRaw,o1e=Cx(),l1e=["x","y","z"];Kz.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=l1e[u],f=i[s],c=t[s+"axis"],g=c.r2fraction(f);if(g<0||g>1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+o+'"]').remove():(i._pdata=o1e(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),i1e(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var rN=xe((vwe,eN)=>{"use strict";var s1e=Cr(),jz=tr();eN.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:zd()}}},layoutAttributes:zd(),handleDefaults:Yz(),includeBasePlot:u1e,convert:Jz(),draw:Qz()};function u1e(e,r){var t=s1e.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&&(jz.pushUnique(r._basePlotModules,t),jz.pushUnique(r._subplots.gl3d,i))}}});var Ex=xe((pwe,iN)=>{"use strict";var hwe=(kn(),or(An)),tN=Wn(),nN=Ws().line,f1e=fl().dash,Ui=Rt().extendFlat,c1e=Tt().templatedArray,dwe=(Pc(),or(Fc)),Lu=Zn(),aN=bu(),{shapeTexttemplateAttrs:v1e,templatefallbackAttrs:h1e}=Si(),d1e=Ih();iN.exports=c1e("shape",{visible:Ui({},Lu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ui({},Lu.legend,{editType:"calc+arraydraw"}),legendgroup:Ui({},Lu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ui({},Lu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:tN({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ui({},Lu.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ui({},Lu.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:Ui({},aN.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:Ui({},aN.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:Ui({},nN.color,{editType:"arraydraw"}),width:Ui({},nN.width,{editType:"calc+arraydraw"}),dash:Ui({},f1e,{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:v1e({},{keys:Object.keys(d1e)}),texttemplatefallback:h1e({editType:"arraydraw"}),font:tN({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 lN=xe((gwe,oN)=>{"use strict";var Du=tr(),Wa=Vt(),p1e=Ri(),g1e=Ex(),ev=zl();oN.exports=function(r,t){p1e(r,t,{name:"shapes",handleItemDefaults:m1e})};function y1e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function m1e(e,r,t){function n(S,x){return Du.coerce(e,r,g1e,S,x)}r._isShape=!0;var a=n("visible");if(!a)return;var o=n("showlegend");n("legend"),n("legendgroup"),o&&(n("legendwidth"),n("legendgrouptitle.text"),Du.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"),g=n("ysizemode");let b=[.25,.75],h=[0,10];["x","y"].forEach(S=>{var x=S+"anchor",M=S==="x"?c:g,d={_fullLayout:t},w,y,v,A;let p=S+"ref",D=e[p];if(Array.isArray(D)&&D.length>0){let E=ev.countDefiningCoords(u,i,S);A=Wa.coerceRefArray(e,r,d,S,void 0,"paper",E),r["_"+S+"refArray"]=!0}else A=Wa.coerceRef(e,r,d,S,void 0,"paper");if(Array.isArray(A))A.forEach(function(E){Wa.getRefType(E)==="range"&&(w=Wa.getFromId(d,E),w&&w._shapeIndices.indexOf(r._index)===-1&&w._shapeIndices.push(r._index))}),s&&[0,1].forEach(function(E){let R=A[E];Wa.getRefType(R)==="range"?(w=Wa.getFromId(d,R),y=ev.shapePositionToRange(w),v=ev.rangeToShapePosition(w),(w.type==="category"||w.type==="multicategory")&&n(S+E+"shift")):y=v=Du.identity;let z=S+E,F=e[z];if(e[z]=y(e[z],!0),M==="pixel"?n(z,h[E]):Wa.coercePosition(r,d,n,R,z,b[E]),r[z]=v(r[z]),e[z]=F,E===0&&M==="pixel"){let L=e[x];e[x]=y(e[x],!0),Wa.coercePosition(r,d,n,R,x,.25),r[x]=v(r[x]),e[x]=L}});else{if(Wa.getRefType(A)==="range"?(w=Wa.getFromId(d,A),w._shapeIndices.push(r._index),v=ev.rangeToShapePosition(w),y=ev.shapePositionToRange(w),s&&(w.type==="category"||w.type==="multicategory")&&(n(S+"0shift"),n(S+"1shift"))):y=v=Du.identity,s){let R=S+"0",I=S+"1",z=e[R],F=e[I];e[R]=y(e[R],!0),e[I]=y(e[I],!0),M==="pixel"?(n(R,h[0]),n(I,h[1])):(Wa.coercePosition(r,d,n,A,R,b[0]),Wa.coercePosition(r,d,n,A,I,b[1])),r[R]=v(r[R]),r[I]=v(r[I]),e[R]=z,e[I]=F}if(M==="pixel"){let R=e[x];e[x]=y(e[x],!0),Wa.coercePosition(r,d,n,A,x,.25),r[x]=v(r[x]),e[x]=R}}}),s&&Du.noneOrAll(e,r,["x0","x1","y0","y1"]);var _=u==="line",T,m;if(s&&(T=n("label.texttemplate"),n("label.texttemplatefallback")),T||(m=n("label.text")),m||T){n("label.textangle");var k=n("label.textposition",_?"middle":"middle center");n("label.xanchor"),n("label.yanchor",y1e(_,k)),n("label.padding"),Du.coerceFont(n,"label.font",t.font)}}});var fN=xe((ywe,uN)=>{"use strict";var b1e=Zr(),sN=tr();function x1e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}uN.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"),sN.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",b1e.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",x1e(i,s)),n("newshape.label.padding"),sN.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var yN=xe((mwe,gN)=>{"use strict";var Lx=tr(),yi=Vt(),Ao=(hc(),or(vc)),Dx=zl();gN.exports=function(r){var t=r._fullLayout,n=Lx.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=yi.getRefType(o.xref),s=yi.getRefType(o.yref);if(u==="array"){let f=cN(r,o,"x");Object.entries(f).forEach(([c,g])=>{i=yi.getFromId(r,c),o._extremes[i._id]=yi.findExtremes(i,g,vN(o))})}else o.xref!=="paper"&&u!=="domain"&&(i=yi.getFromId(r,o.xref),l=dN(i,o,Ao.paramIsX),l&&(o._extremes[i._id]=yi.findExtremes(i,l,vN(o))));if(s==="array"){let f=cN(r,o,"y");Object.entries(f).forEach(([c,g])=>{i=yi.getFromId(r,c),o._extremes[i._id]=yi.findExtremes(i,g,hN(o))})}else o.yref!=="paper"&&s!=="domain"&&(i=yi.getFromId(r,o.yref),l=dN(i,o,Ao.paramIsY),l&&(o._extremes[i._id]=yi.findExtremes(i,l,hN(o))))}};function cN(e,r,t){let n=r[t+"ref"],a=t==="x"?Ao.paramIsX:Ao.paramIsY;function o(c,g){c==="paper"||yi.getRefType(c)==="domain"||(i[c]||(i[c]=[]),i[c].push(g))}let i={};if(r.type==="path"&&r.path){let c=r.path.match(Ao.segmentRE)||[];for(var l=0,u=0;u<c.length;u++){let g=c[u],b=g.charAt(0),h=a[b].drawn;if(h===void 0)continue;let _=g.slice(1).match(Ao.paramRE);_&&_.length>h&&(o(n[l],_[h]),l++)}}else o(n[0],r[t+"0"]),o(n[1],r[t+"1"]);let s={};for(let c in i){let g=yi.getFromId(e,c);if(g){var f=g.type==="category"||g.type==="multicategory"?g.r2c:g.d2c;g.type==="date"&&(f=Dx.decodeDate(f)),s[g._id]=i[c].map(f)}}return s}function vN(e){return pN(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function hN(e){return pN(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function pN(e,r,t,n,a,o){var i=e/2,l=o;if(r==="pixel"){var u=a?Dx.extractPathCoords(a,o?Ao.paramIsY:Ao.paramIsX):[t,n],s=Lx.aggNums(Math.max,null,u),f=Lx.aggNums(Math.min,null,u),c=f<0?Math.abs(f)+i:i,g=s>0?s+i:i;return{ppad:i,ppadplus:l?c:g,ppadminus:l?g:c}}else return{ppad:i}}function dN(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,g=-1/0,b=r.path.match(Ao.segmentRE),h,_,T,m,k;for(e.type==="date"&&(s=Dx.decodeDate(s)),h=0;h<b.length;h++)_=b[h],T=t[_.charAt(0)].drawn,T!==void 0&&(m=b[h].slice(1).match(Ao.paramRE),!(!m||m.length<T)&&(k=s(m[T]),k<c&&(c=k),k>g&&(g=k)));if(g>=c)return[c,g]}}});var xN=xe((bwe,bN)=>{"use strict";var mN=M2();bN.exports={moduleType:"component",name:"shapes",layoutAttributes:Ex(),supplyLayoutDefaults:lN(),supplyDrawNewShapeDefaults:fN(),includeBasePlot:zc()("shapes"),calcAutorange:yN(),draw:mN.draw,drawOne:mN.drawOne}});var Rx=xe((_we,wN)=>{"use strict";var _N=(kn(),or(An)),_1e=Tt().templatedArray,xwe=(Pc(),or(Fc));wN.exports=_1e("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",_N.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",_N.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var TN=xe((wwe,MN)=>{"use strict";var w1e=tr(),Fx=Vt(),M1e=Ri(),T1e=Rx(),A1e="images";MN.exports=function(r,t){var n={name:A1e,handleItemDefaults:k1e};M1e(r,t,n)};function k1e(e,r,t){function n(g,b){return w1e.coerce(e,r,T1e,g,b)}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=Fx.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var c=Fx.getFromId(i,f);c._imgIndices.push(r._index)}Fx.coercePosition(r,i,n,f,s,0)}return r}});var CN=xe((Mwe,SN)=>{"use strict";var AN=lt(),S1e=At(),Ru=Vt(),kN=mn(),C1e=(wl(),or(_l));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=kN.ref2id(u.xref)+kN.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(x){var M=AN.select(this);if(this._imgSrc!==x.source)if(M.attr("xmlns",C1e.svg),!r._context.staticPlot||x.source&&x.source.slice(0,5)==="data:")M.attr("xlink:href",x.source),this._imgSrc=x.source;else{var d=new Promise(function(w){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 p=A.getContext("2d",{willReadFrequently:!0});p.drawImage(this,0,0);var D=A.toDataURL("image/png");M.attr("xlink:href",D),w()},M.on("error",v),y.src=x.source,this._imgSrc=x.source;function v(){M.remove(),w()}}.bind(this));r._promises.push(d)}}function g(x){var M=AN.select(this),d=Ru.getFromId(r,x.xref),w=Ru.getFromId(r,x.yref),y=Ru.getRefType(x.xref)==="domain",v=Ru.getRefType(x.yref)==="domain",A=t._size,p,D;d!==void 0?p=typeof x.xref=="string"&&y?d._length*x.sizex:Math.abs(d.l2p(x.sizex)-d.l2p(0)):p=x.sizex*A.w,w!==void 0?D=typeof x.yref=="string"&&v?w._length*x.sizey:Math.abs(w.l2p(x.sizey)-w.l2p(0)):D=x.sizey*A.h;var E=p*f.x[x.xanchor].offset,R=D*f.y[x.yanchor].offset,I=f.x[x.xanchor].sizing+f.y[x.yanchor].sizing,z,F;switch(d!==void 0?z=typeof x.xref=="string"&&y?d._length*x.x+d._offset:d.r2p(x.x)+d._offset:z=x.x*A.w+A.l,z+=E,w!==void 0?F=typeof x.yref=="string"&&v?w._length*(1-x.y)+w._offset:w.r2p(x.y)+w._offset:F=A.h-x.y*A.h+A.t,F+=R,x.sizing){case"fill":I+=" slice";break;case"stretch":I="none";break}M.attr({x:z,y:F,width:p,height:D,preserveAspectRatio:I,opacity:x.opacity});var L=d&&Ru.getRefType(x.xref)!=="domain"?d._id:"",P=w&&Ru.getRefType(x.yref)!=="domain"?w._id:"",B=L+P;S1e.setClipUrl(M,B?"clip"+t._uid+B:null,r)}function b(x){return[x.xref,x.x,x.sizex,x.yref,x.y,x.sizey].join("_")}function h(x,M){return x._index-M._index}var _=t._imageLowerLayer.selectAll("image").data(o,b),T=t._imageUpperLayer.selectAll("image").data(n,b);_.enter().append("image"),T.enter().append("image"),_.exit().remove(),T.exit().remove(),_.each(function(x){c.bind(this)(x),g.bind(this)(x)}),T.each(function(x){c.bind(this)(x),g.bind(this)(x)}),_.sort(h),T.sort(h);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]||[],b);S.enter().append("image"),S.exit().remove(),S.each(function(x){c.bind(this)(x),g.bind(this)(x)}),S.sort(h)}}}});var DN=xe((Twe,LN)=>{"use strict";var EN=ut(),E1e=jv();LN.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 g=s[u],b=s["size"+u],h=null,_=null;if(o){h=E1e(g,t.range);var T=b/Math.pow(10,h)/2;_=2*Math.log(T+Math.sqrt(1+T*T))/Math.LN10}else h=Math.pow(10,g),_=h*(Math.pow(10,b/2)-Math.pow(10,-b/2));EN(h)?EN(_)||(_=null):(h=null,_=null),a(f+u,h),a(f+"size"+u,_)}}}});var FN=xe((Awe,RN)=>{"use strict";RN.exports={moduleType:"component",name:"images",layoutAttributes:Rx(),supplyLayoutDefaults:TN(),includeBasePlot:zc()("images"),draw:CN(),convertCoords:DN()}});var Nd={};Ht(Nd,{activeColor:()=>e2e,arrowOffsetX:()=>K1e,arrowPadX:()=>X1e,arrowSymbol:()=>t2e,autoMarginIdRoot:()=>U1e,blankHeaderOpts:()=>H1e,buttonClassName:()=>N1e,containerClassName:()=>D1e,dropdownButtonClassName:()=>z1e,dropdownButtonGroupClassName:()=>I1e,gapButton:()=>j1e,gapButtonHeader:()=>Q1e,headerArrowClassName:()=>P1e,headerClassName:()=>F1e,headerGroupClassName:()=>R1e,hoverColor:()=>r2e,itemRectClassName:()=>q1e,itemTextClassName:()=>B1e,menuIndexAttrName:()=>O1e,minHeight:()=>G1e,minWidth:()=>V1e,name:()=>L1e,rx:()=>W1e,ry:()=>Z1e,textOffsetX:()=>J1e,textOffsetY:()=>$1e,textPadX:()=>Y1e});var L1e,D1e,R1e,F1e,P1e,I1e,z1e,N1e,q1e,B1e,O1e,U1e,H1e,V1e,G1e,Y1e,X1e,W1e,Z1e,J1e,$1e,K1e,Q1e,j1e,e2e,r2e,t2e,qd=Ut(()=>{"use strict";L1e="updatemenus",D1e="updatemenu-container",R1e="updatemenu-header-group",F1e="updatemenu-header",P1e="updatemenu-header-arrow",I1e="updatemenu-dropdown-button-group",z1e="updatemenu-dropdown-button",N1e="updatemenu-button",q1e="updatemenu-item-rect",B1e="updatemenu-item-text",O1e="updatemenu-active-index",U1e="updatemenu-",H1e={label:"  "},V1e=30,G1e=30,Y1e=24,X1e=16,W1e=2,Z1e=2,J1e=12,$1e=3,K1e=4,Q1e=5,j1e=2,e2e="#F4FAFF",r2e="#F4FAFF",t2e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var Px=xe((kwe,IN)=>{"use strict";var n2e=Wn(),a2e=no(),i2e=Rt().extendFlat,o2e=ua().overrideAll,l2e=zh(),PN=Tt().templatedArray,s2e=PN("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}});IN.exports=o2e(PN("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:s2e,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:i2e(l2e({editType:"arraydraw"}),{}),font:n2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:a2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var BN=xe((Swe,qN)=>{"use strict";var Bd=tr(),zN=Ri(),NN=Px(),u2e=(qd(),or(Nd)),f2e=u2e.name,c2e=NN.buttons;qN.exports=function(r,t){var n={name:f2e,handleItemDefaults:v2e};zN(r,t,n)};function v2e(e,r,t){function n(i,l){return Bd.coerce(e,r,NN,i,l)}var a=zN(e,r,{name:"buttons",handleItemDefaults:h2e}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),Bd.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Bd.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function h2e(e,r){function t(a,o){return Bd.coerce(e,r,c2e,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 HN=xe((Cwe,UN)=>{"use strict";UN.exports=Jt;var Hi=lt(),ON=Zr(),Fu=At(),Od=tr();function Jt(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})}Jt.barWidth=2;Jt.barLength=20;Jt.barRadius=2;Jt.barPad=1;Jt.barColor="#808BA4";Jt.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,g=c==="down",b=c==="left",h=c==="right",_=c==="up",T=u,m=f,k,S,x,M;!g&&!b&&!h&&!_&&(this.position.direction="down",g=!0);var d=g||_;d?(k=l,S=k+T,g?(x=s,M=Math.min(x+m,i),m=M-x):(M=s+m,x=Math.max(M-m,0),m=M-x)):(x=s,M=x+m,b?(S=l+T,k=Math.max(S-T,0),T=S-k):(k=l,S=Math.min(k+T,o),T=S-k)),this._box={l:k,t:x,w:T,h:m};var w=u>T,y=Jt.barLength+2*Jt.barPad,v=Jt.barWidth+2*Jt.barPad,A=l,p=s+f;p+v>i&&(p=i-v);var D=this.container.selectAll("rect.scrollbar-horizontal").data(w?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-horizontal",!0).call(ON.fill,Jt.barColor),w?(this.hbar=D.attr({rx:Jt.barRadius,ry:Jt.barRadius,x:A,y:p,width:y,height:v}),this._hbarXMin=A+y/2,this._hbarTranslateMax=T-y):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=f>m,R=Jt.barWidth+2*Jt.barPad,I=Jt.barLength+2*Jt.barPad,z=l+u,F=s;z+R>o&&(z=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(ON.fill,Jt.barColor),E?(this.vbar=L.attr({rx:Jt.barRadius,ry:Jt.barRadius,x:z,y:F,width:R,height:I}),this._vbarYMin=F+I/2,this._vbarTranslateMax=m-I):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,B=k-.5,O=E?S+R+.5:S+.5,G=x-.5,J=w?M+v+.5:M+.5,j=a._topdefs.selectAll("#"+P).data(w||E?[0]:[]);if(j.exit().remove(),j.enter().append("clipPath").attr("id",P).append("rect"),w||E?(this._clipRect=j.select("rect").attr({x:Math.floor(B),y:Math.floor(G),width:Math.ceil(O)-Math.floor(B),height:Math.ceil(J)-Math.floor(G)}),this.container.call(Fu.setClipUrl,P,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(Fu.setClipUrl,null),delete this._clipRect),w||E){var V=Hi.behavior.drag().on("dragstart",function(){Hi.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(V);var q=Hi.behavior.drag().on("dragstart",function(){Hi.event.sourceEvent.preventDefault(),Hi.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));w&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Jt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Fu.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)};Jt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Hi.event.dx),this.vbar&&(t-=Hi.event.dy),this.setTranslate(r,t)};Jt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Hi.event.deltaY),this.vbar&&(t+=Hi.event.deltaY),this.setTranslate(r,t)};Jt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=Od.constrain(Hi.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=Od.constrain(Hi.event.y,u,s),c=(f-u)/(s-u),g=this.position.h-this._box.h;t=c*g}this.setTranslate(r,t)};Jt.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=Od.constrain(r||0,0,n),t=Od.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Fu.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(Fu.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Fu.setTranslate,r,t+i*this._vbarTranslateMax)}}});var QN=xe((Ewe,KN)=>{"use strict";var Pu=lt(),rv=Sn(),tv=Zr(),Iu=At(),Za=tr(),Ud=Qn(),d2e=Tt().arrayEditor,GN=(Kn(),or($n)).LINE_SPACING,Lr=(qd(),or(Nd)),p2e=HN();KN.exports=function(r){var t=r._fullLayout,n=Za.filterVisible(t[Lr.name]);function a(g){rv.autoMargin(r,JN(g))}var o=t._menulayer.selectAll("g."+Lr.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(Lr.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Pu.select(this).selectAll("g."+Lr.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+Lr.headerGroupClassName).data(n,g2e);i.enter().append("g").classed(Lr.headerGroupClassName,!0);for(var l=Za.ensureSingle(o,"g",Lr.dropdownButtonGroupClassName,function(g){g.style("pointer-events","all")}),u=0;u<n.length;u++){var s=n[u];w2e(r,s)}var f="updatemenus"+t._uid,c=new p2e(r,l,f);i.enter().size()&&(l.node().parentNode.appendChild(l.node()),l.call(zx)),i.exit().each(function(g){l.call(zx),a(g)}).remove(),i.each(function(g){var b=Pu.select(this),h=g.type==="dropdown"?l:null;rv.manageCommandObserver(r,g,g.buttons,function(_){Ix(r,g,g.buttons[_.index],b,h,c,_.index,!0)}),g.type==="dropdown"?(XN(r,b,l,c,g),YN(l,g)&&nv(r,b,l,c,g)):nv(r,b,null,null,g)})}};function g2e(e){return e._index}function y2e(e){return+e.attr(Lr.menuIndexAttrName)==-1}function YN(e,r){return+e.attr(Lr.menuIndexAttrName)===r._index}function Ix(e,r,t,n,a,o,i,l){r.active=i,d2e(e.layout,Lr.name,r).applyUpdate("active",i),r.type==="buttons"?nv(e,n,null,null,r):r.type==="dropdown"&&(a.attr(Lr.menuIndexAttrName,"-1"),XN(e,n,a,o,r),l||nv(e,n,a,o,r))}function XN(e,r,t,n,a){var o=Za.ensureSingle(r,"g",Lr.headerClassName,function(g){g.style("pointer-events","all")}),i=a._dims,l=a.active,u=a.buttons[l]||Lr.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(Nx,a,u,e).call($N,a,s,f);var c=Za.ensureSingle(r,"text",Lr.headerArrowClassName,function(g){g.attr("text-anchor","end").call(Iu.font,a.font).text(Lr.arrowSymbol[a.direction])});c.attr({x:i.headerWidth-Lr.arrowOffsetX+a.pad.l,y:i.headerHeight/2+Lr.textOffsetY+a.pad.t}),o.on("click",function(){t.call(zx,String(YN(t,a)?-1:a._index)),nv(e,r,t,n,a)}),o.on("mouseover",function(){o.call(WN)}),o.on("mouseout",function(){o.call(ZN,a)}),Iu.setTranslate(r,i.lx,i.ly)}function nv(e,r,t,n,a){t||(t=r,t.attr("pointer-events","all"));var o=!y2e(t)||a.type==="buttons"?a.buttons:[],i=a.type==="dropdown"?Lr.dropdownButtonClassName:Lr.buttonClassName,l=t.selectAll("g."+i).data(Za.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,g=a._dims,b=["up","down"].indexOf(a.direction)!==-1;a.type==="dropdown"&&(b?c=g.headerHeight+Lr.gapButtonHeader:f=g.headerWidth+Lr.gapButtonHeader),a.type==="dropdown"&&a.direction==="up"&&(c=-Lr.gapButtonHeader+Lr.gapButton-g.openHeight),a.type==="dropdown"&&a.direction==="left"&&(f=-Lr.gapButtonHeader+Lr.gapButton-g.openWidth);var h={x:g.lx+f+a.pad.l,y:g.ly+c+a.pad.t,yPad:Lr.gapButton,xPad:Lr.gapButton,index:0},_={l:h.x+a.borderwidth,t:h.y+a.borderwidth};l.each(function(T,m){var k=Pu.select(this);k.call(Nx,a,T,e).call($N,a,h),k.on("click",function(){Pu.event.defaultPrevented||(T.execute&&(T.args2&&a.active===m?(Ix(e,a,T,r,t,n,-1),rv.executeAPICommand(e,T.method,T.args2)):(Ix(e,a,T,r,t,n,m),rv.executeAPICommand(e,T.method,T.args))),e.emit("plotly_buttonclicked",{menu:a,button:T,active:a.active}))}),k.on("mouseover",function(){k.call(WN)}),k.on("mouseout",function(){k.call(ZN,a),l.call(VN,a)})}),l.call(VN,a),b?(_.w=Math.max(g.openWidth,g.headerWidth),_.h=h.y-_.t):(_.w=h.x-_.l,_.h=Math.max(g.openHeight,g.headerHeight)),_.direction=a.direction,n&&(l.size()?m2e(e,r,t,n,a,_):b2e(n))}function m2e(e,r,t,n,a,o){var i=a.direction,l=i==="up"||i==="down",u=a._dims,s=a.active,f,c,g;if(l)for(c=0,g=0;g<s;g++)c+=u.heights[g]+Lr.gapButton;else for(f=0,g=0;g<s;g++)f+=u.widths[g]+Lr.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 b2e(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 Nx(e,r,t,n){e.call(x2e,r).call(_2e,r,t,n)}function x2e(e,r){var t=Za.ensureSingle(e,"rect",Lr.itemRectClassName,function(n){n.attr({rx:Lr.rx,ry:Lr.ry,"shape-rendering":"crispEdges"})});t.call(tv.stroke,r.bordercolor).call(tv.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function _2e(e,r,t,n){var a=Za.ensureSingle(e,"text",Lr.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),o=t.label,i=n._fullLayout._meta;i&&(o=Za.templateString(o,i)),a.call(Iu.font,r.font).text(o).call(Ud.convertToTspans,n)}function VN(e,r){var t=r.active;e.each(function(n,a){var o=Pu.select(this);a===t&&r.showactive&&o.select("rect."+Lr.itemRectClassName).call(tv.fill,Lr.activeColor)})}function WN(e){e.select("rect."+Lr.itemRectClassName).call(tv.fill,Lr.hoverColor)}function ZN(e,r){e.select("rect."+Lr.itemRectClassName).call(tv.fill,r.bgcolor)}function w2e(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=Iu.tester.selectAll("g."+Lr.dropdownButtonClassName).data(Za.filterVisible(r.buttons));n.enter().append("g").classed(Lr.dropdownButtonClassName,!0);var a=["up","down"].indexOf(r.direction)!==-1;n.each(function(f,c){var g=Pu.select(this);g.call(Nx,r,f,e);var b=g.select("."+Lr.itemTextClassName),h=b.node()&&Iu.bBox(b.node()).width,_=Math.max(h+Lr.textPadX,Lr.minWidth),T=r.font.size*GN,m=Ud.lineCount(b),k=Math.max(T*m,Lr.minHeight)+Lr.textOffsetY;k=Math.ceil(k),_=Math.ceil(_),t.widths[c]=_,t.heights[c]=k,t.height1=Math.max(t.height1,k),t.width1=Math.max(t.width1,_),a?(t.totalWidth=Math.max(t.totalWidth,_),t.openWidth=t.totalWidth,t.totalHeight+=k+Lr.gapButton,t.openHeight+=k+Lr.gapButton):(t.totalWidth+=_+Lr.gapButton,t.openWidth+=_+Lr.gapButton,t.totalHeight=Math.max(t.totalHeight,k),t.openHeight=t.totalHeight)}),a?t.totalHeight-=Lr.gapButton:t.totalWidth-=Lr.gapButton,t.headerWidth=t.width1+Lr.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(a?(t.width1+=Lr.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=Lr.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";Za.isRightAnchor(r)&&(t.lx-=o,u="right"),Za.isCenterAnchor(r)&&(t.lx-=o/2,u="center");var s="top";Za.isBottomAnchor(r)&&(t.ly-=i,s="bottom"),Za.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),rv.autoMargin(e,JN(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 JN(e){return Lr.autoMarginIdRoot+e._index}function $N(e,r,t,n){n=n||{};var a=e.select("."+Lr.itemRectClassName),o=e.select("."+Lr.itemTextClassName),i=r.borderwidth,l=t.index,u=r._dims;Iu.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*GN,g=Ud.lineCount(o),b=(g-1)*c/2;Ud.positionText(o,Lr.textOffsetX,f/2-b+Lr.textOffsetY),s?t.y+=u.heights[l]+t.yPad:t.x+=u.widths[l]+t.xPad,t.index++}function zx(e,r){e.attr(Lr.menuIndexAttrName,r||"-1").selectAll("g."+Lr.dropdownButtonClassName).remove()}});var eq=xe((Lwe,jN)=>{"use strict";var M2e=(qd(),or(Nd));jN.exports={moduleType:"component",name:M2e.name,layoutAttributes:Px(),supplyLayoutDefaults:BN(),draw:QN()}});var av={};Ht(av,{arrowOffsetX:()=>V2e,autoMarginIdRoot:()=>B2e,containerClassName:()=>A2e,currentValueClass:()=>z2e,currentValueInset:()=>gde,currentValuePadding:()=>pde,gripBgActiveColor:()=>ide,gripBgColor:()=>ade,gripBorder:()=>rde,gripBorderColor:()=>nde,gripBorderWidth:()=>tde,gripHeight:()=>ede,gripRadius:()=>Q2e,gripRectClass:()=>L2e,gripWidth:()=>j2e,groupClassName:()=>k2e,inputAreaClass:()=>S2e,inputProxyClass:()=>R2e,labelClass:()=>I2e,labelGroupClass:()=>P2e,labelOffset:()=>lde,labelPadding:()=>ode,labelsClass:()=>F2e,menuIndexAttrName:()=>q2e,minHeight:()=>U2e,minWidth:()=>O2e,minorTickColor:()=>hde,minorTickLength:()=>dde,minorTickOffset:()=>vde,name:()=>T2e,railBgColor:()=>J2e,railBorder:()=>X2e,railBorderColor:()=>Z2e,railBorderWidth:()=>W2e,railHeight:()=>N2e,railInset:()=>$2e,railRadius:()=>G2e,railRectClass:()=>C2e,railTouchRectClass:()=>E2e,railWidth:()=>Y2e,stepInset:()=>K2e,textPadX:()=>H2e,tickColor:()=>ude,tickLength:()=>cde,tickOffset:()=>fde,tickRectClass:()=>D2e,tickWidth:()=>sde});var T2e,A2e,k2e,S2e,C2e,E2e,L2e,D2e,R2e,F2e,P2e,I2e,z2e,N2e,q2e,B2e,O2e,U2e,H2e,V2e,G2e,Y2e,X2e,W2e,Z2e,J2e,$2e,K2e,Q2e,j2e,ede,rde,tde,nde,ade,ide,ode,lde,sde,ude,fde,cde,vde,hde,dde,pde,gde,iv=Ut(()=>{"use strict";T2e="sliders",A2e="slider-container",k2e="slider-group",S2e="slider-input-area",C2e="slider-rail-rect",E2e="slider-rail-touch-rect",L2e="slider-grip-rect",D2e="slider-tick-rect",R2e="slider-input-proxy",F2e="slider-labels",P2e="slider-label-group",I2e="slider-label",z2e="slider-current-value",N2e=5,q2e="slider-active-index",B2e="slider-",O2e=30,U2e=30,H2e=40,V2e=4,G2e=2,Y2e=5,X2e=4,W2e=1,Z2e="#bec8d9",J2e="#f8fafc",$2e=8,K2e=10,Q2e=10,j2e=20,ede=20,rde=20,tde=1,nde="#bec8d9",ade="#f6f8fa",ide="#dbdde0",ode=8,lde=0,sde=1,ude="#333",fde=25,cde=7,vde=25,hde="#333",dde=4,pde=8,gde=0});var qx=xe((Dwe,nq)=>{"use strict";var rq=Wn(),yde=zh(),mde=Rt().extendDeepAll,bde=ua().overrideAll,xde=If(),tq=Tt().templatedArray,a0=(iv(),or(av)),_de=tq("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}});nq.exports=bde(tq("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:_de,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:mde(yde({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:xde.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:rq({})},font:rq({}),activebgcolor:{valType:"color",dflt:a0.gripBgActiveColor},bgcolor:{valType:"color",dflt:a0.railBgColor},bordercolor:{valType:"color",dflt:a0.railBorderColor},borderwidth:{valType:"number",min:0,dflt:a0.railBorderWidth},ticklen:{valType:"number",min:0,dflt:a0.tickLength},tickcolor:{valType:"color",dflt:a0.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:a0.minorTickLength}}),"arraydraw","from-root")});var lq=xe((Rwe,oq)=>{"use strict";var zu=tr(),aq=Ri(),iq=qx(),wde=(iv(),or(av)),Mde=wde.name,Tde=iq.steps;oq.exports=function(r,t){aq(r,t,{name:Mde,handleItemDefaults:Ade})};function Ade(e,r,t){function n(c,g){return zu.coerce(e,r,iq,c,g)}for(var a=aq(e,r,{name:"steps",handleItemDefaults:kde}),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=zu.filterVisible(a),s=n("active");(a[s]||{}).visible||(r.active=u[0]._index),n("x"),n("y"),zu.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"),zu.coerceFont(n,"font",t.font);var f=n("currentvalue.visible");f&&(n("currentvalue.xanchor"),n("currentvalue.prefix"),n("currentvalue.suffix"),n("currentvalue.offset"),zu.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 kde(e,r){function t(o,i){return zu.coerce(e,r,Tde,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 yq=xe((Fwe,gq)=>{"use strict";var Vi=lt(),Hd=Sn(),Vl=Zr(),Gi=At(),Ja=tr(),Sde=Ja.strTranslate,ov=Qn(),Cde=Tt().arrayEditor,Yr=(iv(),or(av)),Ux=(Kn(),or($n)),fq=Ux.LINE_SPACING,Bx=Ux.FROM_TL,Ox=Ux.FROM_BR;gq.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Ede(n,r),o=n._infolayer.selectAll("g."+Yr.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Yr.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Hd.autoMargin(r,cq(f))}if(o.exit().each(function(){Vi.select(this).selectAll("g."+Yr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Yr.groupClassName).data(a,Lde);l.enter().append("g").classed(Yr.groupClassName,!0),l.exit().each(i).remove();for(var u=0;u<a.length;u++){var s=a[u];Dde(r,s)}l.each(function(f){var c=Vi.select(this);zde(f),Hd.manageCommandObserver(r,f,f._visibleSteps,function(g){var b=c.data()[0];b.active!==g.index&&(b._dragging||hq(r,c,b,g.index,!1,!0))}),Rde(r,Vi.select(this),f)})}};function cq(e){return Yr.autoMarginIdRoot+e._index}function Ede(e,r){for(var t=e[Yr.name],n=[],a=0;a<t.length;a++){var o=t[a];o.visible&&(o._gd=r,n.push(o))}return n}function Lde(e){return e._index}function Dde(e,r){var t=Gi.tester.selectAll("g."+Yr.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Yr.labelGroupClass,!0);var n=0,a=0;t.each(function(h){var _=Vi.select(this),T=vq(_,{step:h},r),m=T.node();if(m){var k=Gi.bBox(m);a=Math.max(a,k.height),n=Math.max(n,k.width)}}),t.remove();var o=r._dims={};o.inputAreaWidth=Math.max(Yr.railWidth,Yr.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*Yr.stepInset,u=l/(r._stepCount-1),s=n+Yr.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=Gi.tester.append("g");t.each(function(h){var _=Vd(f,r,h.label),T=_.node()&&Gi.bBox(_.node())||{width:0,height:0},m=ov.lineCount(_);o.currentValueMaxWidth=Math.max(o.currentValueMaxWidth,Math.ceil(T.width)),o.currentValueHeight=Math.max(o.currentValueHeight,Math.ceil(T.height)),o.currentValueMaxLines=Math.max(o.currentValueMaxLines,m)}),o.currentValueTotalHeight=o.currentValueHeight+r.currentvalue.offset,f.remove()}o.height=o.currentValueTotalHeight+Yr.tickOffset+r.ticklen+Yr.labelOffset+o.labelHeight+r.pad.t+r.pad.b;var c="left";Ja.isRightAnchor(r)&&(o.lx-=o.outerLength,c="right"),Ja.isCenterAnchor(r)&&(o.lx-=o.outerLength/2,c="center");var g="top";Ja.isBottomAnchor(r)&&(o.ly-=o.height,g="bottom"),Ja.isMiddleAnchor(r)&&(o.ly-=o.height/2,g="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 b={y:r.y,b:o.height*Ox[g],t:o.height*Bx[g]};r.lenmode==="fraction"?(b.l=0,b.xl=r.x-r.len*Bx[c],b.r=0,b.xr=r.x+r.len*Ox[c]):(b.x=r.x,b.l=o.outerLength*Bx[c],b.r=o.outerLength*Ox[c]),Hd.autoMargin(e,cq(r),b)}function Rde(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(Vd,t).call(qde,t).call(Pde,t).call(Ide,t).call(Nde,e,t).call(Fde,e,t);var n=t._dims;Gi.setTranslate(r,n.lx+t.pad.l,n.ly+t.pad.t),r.call(pq,t,!1),r.call(Vd,t)}function Vd(e,r,t){if(r.currentvalue.visible){var n=r._dims,a,o;switch(r.currentvalue.xanchor){case"right":a=n.inputAreaLength-Yr.currentValueInset-n.currentValueMaxWidth,o="left";break;case"center":a=n.inputAreaLength*.5,o="middle";break;default:a=Yr.currentValueInset,o="left"}var i=Ja.ensureSingle(e,"text",Yr.labelClass,function(g){g.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=Ja.templateString(u,s)),l+=u}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),i.call(Gi.font,r.currentvalue.font).text(l).call(ov.convertToTspans,r._gd);var f=ov.lineCount(i),c=(n.currentValueMaxLines+1-f)*r.currentvalue.font.size*fq;return ov.positionText(i,a,c),i}}function Fde(e,r,t){var n=Ja.ensureSingle(e,"rect",Yr.gripRectClass,function(a){a.call(dq,r,e,t).style("pointer-events","all")});n.attr({width:Yr.gripWidth,height:Yr.gripHeight,rx:Yr.gripRadius,ry:Yr.gripRadius}).call(Vl.stroke,t.bordercolor).call(Vl.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function vq(e,r,t){var n=Ja.ensureSingle(e,"text",Yr.labelClass,function(i){i.attr({"text-anchor":"middle","data-notex":1})}),a=r.step.label,o=t._gd._fullLayout._meta;return o&&(a=Ja.templateString(a,o)),n.call(Gi.font,t.font).text(a).call(ov.convertToTspans,t._gd),n}function Pde(e,r){var t=Ja.ensureSingle(e,"g",Yr.labelsClass),n=r._dims,a=t.selectAll("g."+Yr.labelGroupClass).data(n.labelSteps);a.enter().append("g").classed(Yr.labelGroupClass,!0),a.exit().remove(),a.each(function(o){var i=Vi.select(this);i.call(vq,o,r),Gi.setTranslate(i,Hx(r,o.fraction),Yr.tickOffset+r.ticklen+r.font.size*fq+Yr.labelOffset+n.currentValueTotalHeight)})}function sq(e,r,t,n,a){var o=Math.round(n*(t._stepCount-1)),i=t._visibleSteps[o]._index;i!==t.active&&hq(e,r,t,i,!0,a)}function hq(e,r,t,n,a,o){var i=t.active;t.active=n,Cde(e.layout,Yr.name,t).applyUpdate("active",n);var l=t.steps[t.active];r.call(pq,t,o),r.call(Vd,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&&Hd.executeAPICommand(e,u.method,u.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function dq(e,r,t){if(r._context.staticPlot)return;var n=t.node(),a=Vi.select(r);function o(){return t.data()[0]}function i(){var l=o();r.emit("plotly_sliderstart",{slider:l});var u=t.select("."+Yr.gripRectClass);Vi.event.stopPropagation(),Vi.event.preventDefault(),u.call(Vl.fill,l.activebgcolor);var s=uq(l,Vi.mouse(n)[0]);sq(r,t,l,s,!0),l._dragging=!0;function f(){var g=o(),b=uq(g,Vi.mouse(n)[0]);sq(r,t,g,b,!1)}a.on("mousemove",f),a.on("touchmove",f);function c(){var g=o();g._dragging=!1,u.call(Vl.fill,g.bgcolor),a.on("mouseup",null),a.on("mousemove",null),a.on("touchend",null),a.on("touchmove",null),r.emit("plotly_sliderend",{slider:g,step:g.steps[g.active]})}a.on("mouseup",c),a.on("touchend",c)}e.on("mousedown",i),e.on("touchstart",i)}function Ide(e,r){var t=e.selectAll("rect."+Yr.tickRectClass).data(r._visibleSteps),n=r._dims;t.enter().append("rect").classed(Yr.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=Vi.select(this);l.attr({height:i?r.ticklen:r.minorticklen}).call(Vl.fill,r.tickcolor),Gi.setTranslate(l,Hx(r,o/(r._stepCount-1))-.5*r.tickwidth,(i?Yr.tickOffset:Yr.minorTickOffset)+n.currentValueTotalHeight)})}function zde(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 pq(e,r,t){for(var n=e.select("rect."+Yr.gripRectClass),a=0,o=0;o<r._stepCount;o++)if(r._visibleSteps[o]._index===r.active){a=o;break}var i=Hx(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",Sde(i-Yr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function Hx(e,r){var t=e._dims;return t.inputAreaStart+Yr.stepInset+(t.inputAreaLength-2*Yr.stepInset)*Math.min(1,Math.max(0,r))}function uq(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Yr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Yr.stepInset-2*t.inputAreaStart)))}function Nde(e,r,t){var n=t._dims,a=Ja.ensureSingle(e,"rect",Yr.railTouchRectClass,function(o){o.call(dq,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Yr.tickOffset+t.ticklen+n.labelHeight)}).call(Vl.fill,t.bgcolor).attr("opacity",0),Gi.setTranslate(a,0,n.currentValueTotalHeight)}function qde(e,r){var t=r._dims,n=t.inputAreaLength-Yr.railInset*2,a=Ja.ensureSingle(e,"rect",Yr.railRectClass);a.attr({width:n,height:Yr.railWidth,rx:Yr.railRadius,ry:Yr.railRadius,"shape-rendering":"crispEdges"}).call(Vl.stroke,r.bordercolor).call(Vl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Gi.setTranslate(a,Yr.railInset,(t.inputAreaWidth-Yr.railWidth)*.5+t.currentValueTotalHeight)}});var bq=xe((Pwe,mq)=>{"use strict";var Bde=(iv(),or(av));mq.exports={moduleType:"component",name:Bde.name,layoutAttributes:qx(),supplyLayoutDefaults:lq(),draw:yq()}});var Gd=xe((Iwe,_q)=>{"use strict";var xq=no();_q.exports={bgcolor:{valType:"color",dflt:xq.background,editType:"plot"},bordercolor:{valType:"color",dflt:xq.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 Vx=xe((zwe,wq)=>{"use strict";wq.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 Yd={};Ht(Yd,{bgClassName:()=>Hde,containerClassName:()=>Ude,extraPad:()=>cpe,grabAreaCursor:()=>ope,grabAreaFill:()=>ipe,grabAreaMaxClassName:()=>Kde,grabAreaMinClassName:()=>Zde,grabAreaWidth:()=>lpe,grabberMaxClassName:()=>$de,grabberMinClassName:()=>Wde,handleMaxClassName:()=>Qde,handleMinClassName:()=>Jde,handleRadius:()=>upe,handleStrokeWidth:()=>fpe,handleWidth:()=>spe,maskColor:()=>rpe,maskMaxClassName:()=>Yde,maskMaxOppAxisClassName:()=>epe,maskMinClassName:()=>Gde,maskMinOppAxisClassName:()=>jde,maskOppAxisColor:()=>tpe,name:()=>Ode,rangePlotClassName:()=>Vde,slideBoxClassName:()=>Xde,slideBoxCursor:()=>ape,slideBoxFill:()=>npe});var Ode,Ude,Hde,Vde,Gde,Yde,Xde,Wde,Zde,Jde,$de,Kde,Qde,jde,epe,rpe,tpe,npe,ape,ipe,ope,lpe,spe,upe,fpe,cpe,Xd=Ut(()=>{"use strict";Ode="rangeslider",Ude="rangeslider-container",Hde="rangeslider-bg",Vde="rangeslider-rangeplot",Gde="rangeslider-mask-min",Yde="rangeslider-mask-max",Xde="rangeslider-slidebox",Wde="rangeslider-grabber-min",Zde="rangeslider-grabarea-min",Jde="rangeslider-handle-min",$de="rangeslider-grabber-max",Kde="rangeslider-grabarea-max",Qde="rangeslider-handle-max",jde="rangeslider-mask-min-opp-axis",epe="rangeslider-mask-max-opp-axis",rpe="rgba(0,0,0,0.4)",tpe="rgba(0,0,0,0.2)",npe="transparent",ape="ew-resize",ipe="transparent",ope="col-resize",lpe=10,spe=4,upe=1,fpe=1,cpe=15});var Aq=xe(Zd=>{"use strict";var vpe=mn(),hpe=Qn(),Mq=(Xd(),or(Yd)),dpe=(Kn(),or($n)).LINE_SPACING,Wd=Mq.name;function Tq(e){var r=e&&e[Wd];return r&&r.visible}Zd.isVisible=Tq;Zd.makeData=function(e){for(var r=vpe.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a<r.length;a++){var o=r[a];if(Tq(o)){n.push(o);var i=o[Wd];i._id=Wd+o._id,i._height=(e.height-t.b-t.t)*i.thickness,i._offsetShift=Math.floor(i.borderwidth/2)}}e._rangeSliderData=n};Zd.autoMarginOpts=function(e,r){var t=e._fullLayout,n=r[Wd],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(hpe.BR_TAG_ALL)||[]).length;i+=l*r.title.font.size*dpe}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:n._height+o+Math.max(t.margin.b,i),pad:Mq.extraPad+n._offsetShift*2}}});var Eq=xe((qwe,Cq)=>{"use strict";var Jd=tr(),kq=Tt(),Sq=mn(),ppe=Gd(),gpe=Vx();Cq.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;Jd.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=kq.newContainer(o,"rangeslider");function u(M,d){return Jd.coerce(i,l,ppe,M,d)}var s,f;function c(M,d){return Jd.coerce(s,f,gpe,M,d)}var g=u("visible");if(g){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!o.isValidRange(i.range)),u("range");var b=t._subplots;if(b)for(var h=b.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===Sq.name2id(n)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),_=Jd.simpleMap(h,Sq.id2name),T=0;T<_.length;T++){var m=_[T];s=i[m]||{},f=kq.newContainer(l,m,"yaxis");var k=t[m],S;s.range&&k.isValidRange(s.range)&&(S="fixed");var x=c("rangemode",S);x!=="match"&&c("range",k.range.slice())}l._input=i}}});var Dq=xe((Bwe,Lq)=>{"use strict";var ype=mn().list,mpe=nu().getAutoRange,bpe=(Xd(),or(Yd));Lq.exports=function(r){for(var t=ype(r,"x",!0),n=0;n<t.length;n++){var a=t[n],o=a[bpe.name];o&&o.visible&&o.autorange&&(o._input.autorange=!0,o._input.range=o.range=mpe(r,a))}}});var Iq=xe((Owe,Pq)=>{"use strict";var $d=lt(),xpe=Cr(),_pe=Sn(),rn=tr(),Kd=rn.strTranslate,Fq=At(),Gl=Zr(),wpe=Kf(),Mpe=px(),Gx=mn(),Tpe=Pi(),Ape=Dl(),jr=(Xd(),or(Yd));Pq.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n<t.length;n++){var a=t[n][jr.name];a._clipId=a._id+"-"+r._uid}function o(l){return l._name}var i=r._infolayer.selectAll("g."+jr.containerClassName).data(t,o);i.exit().each(function(l){var u=l[jr.name];r._topdefs.select("#"+u._clipId).remove()}).remove(),t.length!==0&&(i.enter().append("g").classed(jr.containerClassName,!0).attr("pointer-events","all"),i.each(function(l){var u=$d.select(this),s=l[jr.name],f=r[Gx.id2name(l.anchor)],c=s[Gx.id2name(l.anchor)];if(s.range){var g=rn.simpleMap(s.range,l.r2l),b=rn.simpleMap(l.range,l.r2l),h;b[0]<b[1]?h=[Math.min(g[0],b[0]),Math.max(g[1],b[1])]:h=[Math.max(g[0],b[0]),Math.min(g[1],b[1])],s.range=s._input.range=rn.simpleMap(h,l.l2r)}l.cleanRange("rangeslider.range");var _=r._size;s._width=l._length;let T=Math.round(l._offset);var m=Math.round(_.t+_.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+s._offsetShift+jr.extraPad);u.attr("transform",Kd(T,m)),s._rl=rn.simpleMap(s.range,l.r2l);var k=s._rl[0],S=s._rl[1],x=S-k;if(s.p2d=function(R){return R/s._width*x+k},s.d2p=function(R){return(R-k)/x*s._width},l.rangebreaks){var M=l.locateBreaks(k,S);if(M.length){var d,w,y=0;for(d=0;d<M.length;d++)w=M[d],y+=w.max-w.min;var v=s._width/(S-k-y),A=[-v*k];for(d=0;d<M.length;d++)w=M[d],A.push(A[A.length-1]-v*(w.max-w.min));for(s.d2p=function(R){for(var I=A[0],z=0;z<M.length;z++){var F=M[z];if(R>=F.max)I=A[z+1];else if(R<F.min)break}return I+v*R},d=0;d<M.length;d++)w=M[d],w.pmin=s.d2p(w.min),w.pmax=s.d2p(w.max);s.p2d=function(R){for(var I=A[0],z=0;z<M.length;z++){var F=M[z];if(R>=F.pmax)I=A[z+1];else if(R<F.pmin)break}return(R-I)/v}}}if(c.rangemode!=="match"){var p=f.r2l(c.range[0]),D=f.r2l(c.range[1]),E=D-p;s.d2pOppAxis=function(R){return(R-p)/E*s._height}}u.call(Epe,e,l,s).call(Lpe,e,l,s).call(Dpe,e,l,s).call(Fpe,e,l,s,c).call(Ppe,e,l,s).call(Ipe,e,l,s),kpe(u,e,l,s),Cpe(u,e,l,s,f,c),l.side==="bottom"&&wpe.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:m+s._height+s._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function Rq(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function kpe(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+jr.slideBoxClassName).node(),o=e.select("rect."+jr.grabAreaMinClassName).node(),i=e.select("rect."+jr.grabAreaMaxClassName).node();function l(){var u=$d.event,s=u.target,f=Rq(u),c=f-e.node().getBoundingClientRect().left,g=n.d2p(t._rl[0]),b=n.d2p(t._rl[1]),h=Tpe.coverSlip();this.addEventListener("touchmove",_),this.addEventListener("touchend",T),h.addEventListener("mousemove",_),h.addEventListener("mouseup",T);function _(m){var k=Rq(m),S=+k-f,x,M,d;switch(s){case a:if(d="ew-resize",g+S>t._length||b+S<0)return;x=g+S,M=b+S;break;case o:if(d="col-resize",g+S>t._length)return;x=g+S,M=b;break;case i:if(d="col-resize",b+S<0)return;x=g,M=b+S;break;default:d="ew-resize",x=c,M=c+S;break}if(M<x){var w=M;M=x,x=w}n._pixelMin=x,n._pixelMax=M,Ape($d.select(h),d),Spe(e,r,t,n)}function T(){h.removeEventListener("mousemove",_),h.removeEventListener("mouseup",T),this.removeEventListener("touchmove",_),this.removeEventListener("touchend",T),rn.removeElement(h)}}e.on("mousedown",l),e.on("touchstart",l)}function Spe(e,r,t,n){function a(l){return t.l2r(rn.constrain(l,n._rl[0],n._rl[1]))}var o=a(n.p2d(n._pixelMin)),i=a(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){xpe.call("_guiRelayout",r,t._name+".range",[o,i])})}function Cpe(e,r,t,n,a,o){var i=jr.handleWidth/2;function l(m){return rn.constrain(m,0,n._width)}function u(m){return rn.constrain(m,0,n._height)}function s(m){return rn.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."+jr.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+jr.maskMinClassName).attr("width",f),e.select("rect."+jr.maskMaxClassName).attr("x",c).attr("width",n._width-c),o.rangemode!=="match"){var g=n._height-u(n.d2pOppAxis(a._rl[1])),b=n._height-u(n.d2pOppAxis(a._rl[0]));e.select("rect."+jr.maskMinOppAxisClassName).attr("x",f).attr("height",g).attr("width",c-f),e.select("rect."+jr.maskMaxOppAxisClassName).attr("x",f).attr("y",b).attr("height",n._height-b).attr("width",c-f),e.select("rect."+jr.slideBoxClassName).attr("y",g).attr("height",b-g)}var h=.5,_=Math.round(s(f-i))-h,T=Math.round(s(c-i))+h;e.select("g."+jr.grabberMinClassName).attr("transform",Kd(_,h)),e.select("g."+jr.grabberMaxClassName).attr("transform",Kd(T,h))}function Epe(e,r,t,n){var a=rn.ensureSingle(e,"rect",jr.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=Fq.crispRound(r,n.borderwidth);a.attr({width:n._width+o,height:n._height+o,transform:Kd(i,i),"stroke-width":l}).call(Gl.stroke,n.bordercolor).call(Gl.fill,n.bgcolor)}function Lpe(e,r,t,n){var a=r._fullLayout,o=rn.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 Dpe(e,r,t,n){var a=r.calcdata,o=e.selectAll("g."+jr.rangePlotClassName).data(t._subplotsWith,rn.identity);o.enter().append("g").attr("class",function(l){return jr.rangePlotClassName+" "+l}).call(Fq.setClipUrl,n._clipId,r),o.order(),o.exit().remove();var i;o.each(function(l,u){var s=$d.select(this),f=u===0,c=Gx.getFromId(r,l,"y"),g=c._name,b=n[g],h={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&&(h.layout.xaxis.rangebreaks=t.rangebreaks),h.layout[g]={type:c.type,domain:[0,1],range:b.rangemode!=="match"?b.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(h.layout[g].rangebreaks=c.rangebreaks),_pe.supplyDefaults(h);var _=h._fullLayout.xaxis,T=h._fullLayout[g];_.clearCalc(),_.setScale(),T.clearCalc(),T.setScale();var m={id:l,plotgroup:s,xaxis:_,yaxis:T,isRangePlot:!0};f?i=m:(m.mainplot="xy",m.mainplotinfo=i),Mpe.rangePlot(r,m,Rpe(a,l))})}function Rpe(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 Fpe(e,r,t,n,a){var o=rn.ensureSingle(e,"rect",jr.maskMinClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})});o.attr("height",n._height).call(Gl.fill,jr.maskColor);var i=rn.ensureSingle(e,"rect",jr.maskMaxClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});if(i.attr("height",n._height).call(Gl.fill,jr.maskColor),a.rangemode!=="match"){var l=rn.ensureSingle(e,"rect",jr.maskMinOppAxisClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",n._width).call(Gl.fill,jr.maskOppAxisColor);var u=rn.ensureSingle(e,"rect",jr.maskMaxOppAxisClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});u.attr("width",n._width).style("border-top",jr.maskOppBorder).call(Gl.fill,jr.maskOppAxisColor)}}function Ppe(e,r,t,n){if(!r._context.staticPlot){var a=rn.ensureSingle(e,"rect",jr.slideBoxClassName,function(o){o.attr({y:0,cursor:jr.slideBoxCursor,"shape-rendering":"crispEdges"})});a.attr({height:n._height,fill:jr.slideBoxFill})}}function Ipe(e,r,t,n){var a=rn.ensureSingle(e,"g",jr.grabberMinClassName),o=rn.ensureSingle(e,"g",jr.grabberMaxClassName),i={x:0,width:jr.handleWidth,rx:jr.handleRadius,fill:Gl.background,stroke:Gl.defaultLine,"stroke-width":jr.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(n._height/4),height:Math.round(n._height/2)},u=rn.ensureSingle(a,"rect",jr.handleMinClassName,function(b){b.attr(i)});u.attr(l);var s=rn.ensureSingle(o,"rect",jr.handleMaxClassName,function(b){b.attr(i)});s.attr(l);var f={width:jr.grabAreaWidth,x:0,y:0,fill:jr.grabAreaFill,cursor:r._context.staticPlot?void 0:jr.grabAreaCursor},c=rn.ensureSingle(a,"rect",jr.grabAreaMinClassName,function(b){b.attr(f)});c.attr("height",n._height);var g=rn.ensureSingle(o,"rect",jr.grabAreaMaxClassName,function(b){b.attr(f)});g.attr("height",n._height)}});var Nq=xe((Uwe,zq)=>{"use strict";var zpe=tr(),Npe=Gd(),qpe=Vx(),Yx=Aq();zq.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:zpe.extendFlat({},Npe,{yaxis:qpe})}}},layoutAttributes:Gd(),handleDefaults:Eq(),calcAutorange:Dq(),draw:Iq(),isVisible:Yx.isVisible,makeData:Yx.makeData,autoMarginOpts:Yx.autoMarginOpts}});var Qd=xe((Hwe,Bq)=>{"use strict";var Bpe=Wn(),qq=no(),Ope=Tt().templatedArray,Upe=Ope("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"});Bq.exports={visible:{valType:"boolean",editType:"plot"},buttons:Upe,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:Bpe({editType:"plot"}),bgcolor:{valType:"color",dflt:qq.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:qq.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var Xx={};Ht(Xx,{darkAmount:()=>Wpe,lightAmount:()=>Xpe,minButtonWidth:()=>Vpe,rx:()=>Gpe,ry:()=>Ype,yPad:()=>Hpe});var Hpe,Vpe,Gpe,Ype,Xpe,Wpe,Wx=Ut(()=>{"use strict";Hpe=.02,Vpe=30,Gpe=3,Ype=3,Xpe=25,Wpe=10});var Hq=xe((Vwe,Uq)=>{"use strict";var jd=tr(),Zpe=Zr(),Jpe=Tt(),$pe=Ri(),Oq=Qd(),Zx=(Wx(),or(Xx));Uq.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=Jpe.newContainer(t,"rangeselector");function u(b,h){return jd.coerce(i,l,Oq,b,h)}var s=$pe(i,l,{name:"buttons",handleItemDefaults:Kpe,calendar:o}),f=u("visible",s.length>0);if(f){var c=Qpe(t,n,a);u("x",c[0]),u("y",c[1]),jd.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),jd.coerceFont(u,"font",n.font);var g=u("bgcolor");u("activecolor",Zpe.contrast(g,Zx.lightAmount,Zx.darkAmount)),u("bordercolor"),u("borderwidth")}};function Kpe(e,r,t,n){var a=n.calendar;function o(u,s){return jd.coerce(e,r,Oq.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 Qpe(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+Zx.yPad]}});var Gq=xe((Gwe,Vq)=>{"use strict";var jpe=ug(),ege=tr().titleCase;Vq.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=rge(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function rge(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=jpe["utc"+ege(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 Qq=xe((Ywe,Kq)=>{"use strict";var rp=lt(),tge=Cr(),nge=Sn(),Yq=Zr(),$q=At(),Wo=tr(),Xq=Wo.strTranslate,ep=Qn(),age=mn(),Kx=(Kn(),or($n)),Wq=Kx.LINE_SPACING,Zq=Kx.FROM_TL,Jq=Kx.FROM_BR,$x=(Wx(),or(Xx)),ige=Gq();Kq.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(oge(r),lge);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=rp.select(this),i=a,l=i.rangeselector,u=o.selectAll("g.button").data(Wo.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=rp.select(this),c=ige(i,s);s._isActive=sge(i,s,c),f.call(Jx,l,s),f.call(fge,l,s,r),f.on("click",function(){r._dragged||tge.call("_guiRelayout",r,c)}),f.on("mouseover",function(){s._isHovered=!0,f.call(Jx,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(Jx,l,s)})}),vge(r,u,l,i._name,o)})};function oge(e){for(var r=age.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 lge(e){return e._id}function sge(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 Jx(e,r,t){var n=Wo.ensureSingle(e,"rect","selector-rect",function(a){a.attr("shape-rendering","crispEdges")});n.attr({rx:$x.rx,ry:$x.ry}),n.call(Yq.stroke,r.bordercolor).call(Yq.fill,uge(r,t)).style("stroke-width",r.borderwidth+"px")}function uge(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function fge(e,r,t,n){function a(i){ep.convertToTspans(i,n)}var o=Wo.ensureSingle(e,"text","selector-text",function(i){i.attr("text-anchor","middle")});o.call($q.font,r.font).text(cge(t,n._fullLayout._meta)).call(a)}function cge(e,r){return e.label?r?Wo.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function vge(e,r,t,n,a){var o=0,i=0,l=t.borderwidth;r.each(function(){var b=rp.select(this),h=b.select(".selector-text"),_=t.font.size*Wq,T=Math.max(_*ep.lineCount(h),16)+3;i=Math.max(i,T)}),r.each(function(){var b=rp.select(this),h=b.select(".selector-rect"),_=b.select(".selector-text"),T=_.node()&&$q.bBox(_.node()).width,m=t.font.size*Wq,k=ep.lineCount(_),S=Math.max(T+10,$x.minButtonWidth);b.attr("transform",Xq(l+o,l)),h.attr({x:0,y:0,width:S,height:i}),ep.positionText(_,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";Wo.isRightAnchor(t)&&(s-=o,c="right"),Wo.isCenterAnchor(t)&&(s-=o/2,c="center");var g="top";Wo.isBottomAnchor(t)&&(f-=i,g="bottom"),Wo.isMiddleAnchor(t)&&(f-=i/2,g="middle"),o=Math.ceil(o),i=Math.ceil(i),s=Math.round(s),f=Math.round(f),nge.autoMargin(e,n+"-range-selector",{x:t.x,y:t.y,l:o*Zq[c],r:o*Jq[c],b:i*Jq[g],t:i*Zq[g]}),a.attr("transform",Xq(s,f))}});var eB=xe((Xwe,jq)=>{"use strict";jq.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Qd()}}},layoutAttributes:Qd(),handleDefaults:Hq(),draw:Qq()}});var tp=xe(Qx=>{"use strict";var rB=Rt().extendFlat;Qx.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:rB({},t,{}),y:rB({},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};Qx.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 oB=xe((Zwe,iB)=>{"use strict";var hge=tr(),dge=(I0(),or(Ff)).counter,pge=tp().attributes,tB=(kn(),or(An)).idRegex,gge=Tt(),jx={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:[dge("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[tB.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[tB.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:pge({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 np(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 yge(e,r){var t=e.grid||{},n=np(r,t,"x"),a=np(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=gge.newContainer(r,"grid");function g(d,w){return hge.coerce(t,c,jx,d,w)}var b=g("rows",s),h=g("columns",f);if(!(b*h>1)){delete r.grid;return}if(!o&&!i&&!l){var _=g("pattern")==="independent";_&&(o=!0)}c._hasSubplotGrid=o;var T=g("roworder"),m=T==="top to bottom",k=o?.2:.1,S=o?.3:.1,x,M;u&&r._splomGridDflt&&(x=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:nB("x",g,k,x,h),y:nB("y",g,S,M,b,m)}}function nB(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),g=0;g<a;g++){var b=s+f*g;u[o?a-1-g:g]=[b,b+c]}return u}function mge(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,g,b,h,_,T=t._axisMap={};if(o){var m=n.subplots||[];h=t.subplots=new Array(i);var k=1;for(s=0;s<i;s++){var S=h[s]=new Array(l),x=m[s]||[];for(f=0;f<l;f++)if(u?(b=k===1?"xy":"x"+k+"y"+k,k++):b=x[f],S[f]="",a.cartesian.indexOf(b)!==-1){if(_=b.indexOf("y"),c=b.slice(0,_),g=b.slice(_),T[c]!==void 0&&T[c]!==f||T[g]!==void 0&&T[g]!==s)continue;S[f]=b,T[c]=f,T[g]=s}}}else{var M=np(r,n,"x"),d=np(r,n,"y");t.xaxes=aB(M,a.xaxis,l,T,"x"),t.yaxes=aB(d,a.yaxis,i,T,"y")}var w=t._anchors={},y=t.roworder==="top to bottom";for(var v in T){var A=v.charAt(0),p=t[A+"side"],D,E,R;if(p.length<8)w[v]="free";else if(A==="x"){if(p.charAt(0)==="t"===y?(D=0,E=1,R=i):(D=i-1,E=-1,R=-1),o){var I=T[v];for(s=D;s!==R;s+=E)if(b=h[s][I],!!b&&(_=b.indexOf("y"),b.slice(0,_)===v)){w[v]=b.slice(_);break}}else for(s=D;s!==R;s+=E)if(g=t.yaxes[s],a.cartesian.indexOf(v+g)!==-1){w[v]=g;break}}else if(p.charAt(0)==="l"?(D=0,E=1,R=l):(D=l-1,E=-1,R=-1),o){var z=T[v];for(s=D;s!==R;s+=E)if(b=h[z][s],!!b&&(_=b.indexOf("y"),b.slice(_)===v)){w[v]=b.slice(0,_);break}}else for(s=D;s!==R;s+=E)if(c=t.xaxes[s],a.cartesian.indexOf(c+v)!==-1){w[v]=c;break}}}}function aB(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}iB.exports={moduleType:"component",name:"grid",schema:{layout:{grid:jx}},layoutAttributes:jx,sizeDefaults:yge,contentDefaults:mge}});var e4=xe((Jwe,lB)=>{"use strict";lB.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 fB=xe(($we,uB)=>{"use strict";var sB=ut(),bge=Cr(),xge=tr(),_ge=Tt(),wge=e4();uB.exports=function(e,r,t,n){var a="error_"+n.axis,o=_ge.newContainer(r,a),i=e[a]||{};function l(h,_){return xge.coerce(i,o,wge,h,_)}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 g="copy_"+n.inherit+"style";if(n.inherit){var b=r["error_"+n.inherit];(b||{}).visible&&l(g,!(i.color||sB(i.thickness)||sB(i.width)))}(!n.inherit||!o[g])&&(l("color",t),l("thickness"),l("width",bge.traceIs(r,"gl3d")?0:4))}}});var r4=xe((Kwe,vB)=>{"use strict";vB.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],g=+o[f];return!isNaN(c)||!isNaN(g)?[g||0,c||0]:[NaN,NaN]}}else{var i=cB(t,r.value),l=cB(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 cB(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 pB=xe((Qwe,dB)=>{"use strict";var t4=ut(),Mge=Cr(),n4=Vt(),Tge=tr(),Age=r4();dB.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&&Mge.traceIs(o,"errorBarsOK")){var i=n4.getFromId(r,o.xaxis),l=n4.getFromId(r,o.yaxis);hB(a,o,i,"x"),hB(a,o,l,"y")}}};function hB(e,r,t,n){var a=r["error_"+n]||{},o=a.visible&&["linear","log"].indexOf(t.type)!==-1,i=[];if(o){for(var l=Age(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(t4(t.c2l(c))){var g=l(c,f);if(t4(g[0])&&t4(g[1])){var b=s[n+"s"]=c-g[0],h=s[n+"h"]=c+g[1];i.push(b,h)}}}var _=t._id,T=r._extremes[_],m=n4.findExtremes(t,i,Tge.extendFlat({tozero:T.opts.tozero},{padded:!0}));T.min=T.min.concat(m.min),T.max=T.max.concat(m.max)}}});var mB=xe((jwe,yB)=>{"use strict";var gB=lt(),Yl=ut(),kge=At(),Sge=Da();yB.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,g=c.error_x||{},b=c.error_y||{},h;c.ids&&(h=function(k){return k.id});var _=Sge.hasMarkers(c)&&c.marker.maxdisplayed>0;!b.visible&&!g.visible&&(f=[]);var T=gB.select(this).selectAll("g.errorbar").data(f,h);if(T.exit().remove(),!!f.length){g.visible||T.selectAll("path.xerror").remove(),b.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var m=T.enter().append("g").classed("errorbar",!0);u&&m.style("opacity",0).transition().duration(a.duration).style("opacity",1),kge.setClipUrl(T,n.layerClipId,r),T.each(function(k){var S=gB.select(this),x=Cge(k,i,l);if(!(_&&!k.vis)){var M,d=S.select("path.yerror");if(b.visible&&Yl(x.x)&&Yl(x.yh)&&Yl(x.ys)){var w=b.width;M="M"+(x.x-w)+","+x.yh+"h"+2*w+"m-"+w+",0V"+x.ys,x.noYS||(M+="m-"+w+",0h"+2*w),o=!d.size(),o?d=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(d=d.transition().duration(a.duration).ease(a.easing)),d.attr("d",M)}else d.remove();var y=S.select("path.xerror");if(g.visible&&Yl(x.y)&&Yl(x.xh)&&Yl(x.xs)){var v=(g.copy_ystyle?b:g).width;M="M"+x.xh+","+(x.y-v)+"v"+2*v+"m0,-"+v+"H"+x.xs,x.noXS||(M+="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",M)}else y.remove()}})}})};function Cge(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),Yl(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),Yl(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var _B=xe((e8e,xB)=>{"use strict";var Ege=lt(),bB=Zr();xB.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=Ege.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(bB.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(bB.stroke,o.color)})}});var TB=xe((r8e,MB)=>{"use strict";var lv=tr(),wB=ua().overrideAll,sv=e4(),i0={error_x:lv.extendFlat({},sv),error_y:lv.extendFlat({},sv)};delete i0.error_x.copy_zstyle;delete i0.error_y.copy_zstyle;delete i0.error_y.copy_ystyle;var uv={error_x:lv.extendFlat({},sv),error_y:lv.extendFlat({},sv),error_z:lv.extendFlat({},sv)};delete uv.error_x.copy_ystyle;delete uv.error_y.copy_ystyle;delete uv.error_z.copy_ystyle;delete uv.error_z.copy_zstyle;MB.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:i0,bar:i0,histogram:i0,scatter3d:wB(uv,"calc","nested"),scattergl:wB(i0,"calc","nested")}},supplyDefaults:fB(),calc:pB(),makeComputeError:r4(),plot:mB(),style:_B(),hoverInfo:Lge};function Lge(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 AB={};Ht(AB,{cn:()=>Dge});var Dge,kB=Ut(()=>{"use strict";Dge={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 PB=xe((t8e,FB)=>{"use strict";var Xl=lt(),ip=Sn(),SB=Cr(),Zo=Vt(),ap=Pi(),mi=tr(),Xi=mi.strTranslate,RB=Rt().extendFlat,a4=Dl(),Yi=At(),Nu=Zr(),Rge=Kf(),Fge=Qn(),Pge=io().flipScale,Ige=kd(),zge=vx(),Nge=ai(),o4=(Kn(),or($n)),CB=o4.LINE_SPACING,EB=o4.FROM_TL,LB=o4.FROM_BR,Yt=(kB(),or(AB)).cn;function qge(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Yt.colorbar).data(Bge(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Yt.colorbar,!0),t.each(function(n){var a=Xl.select(this);mi.ensureSingle(a,"rect",Yt.cbbg),mi.ensureSingle(a,"g",Yt.cbfills),mi.ensureSingle(a,"g",Yt.cblines),mi.ensureSingle(a,"g",Yt.cbaxis,function(i){i.classed(Yt.crisp,!0)}),mi.ensureSingle(a,"g",Yt.cbtitleunshift,function(i){i.append("g").classed(Yt.cbtitle,!0)}),mi.ensureSingle(a,"rect",Yt.cboutline);var o=Oge(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&Uge(a,n,e)}),t.exit().each(function(n){ip.autoMargin(e,n._id)}).remove(),t.order()}function Bge(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return RB(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?Pge(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 g=i._module.colorbar;if(i.visible===!0&&g)for(var b=Array.isArray(g),h=b?g:[g],_=0;_<h.length;_++){l=h[_];var T=l.container;o=T?i[T]:i,o&&o.showscale&&(a=u(o.colorbar),a._id="cb"+i.uid+(b&&T?"-"+T:""),a._traceIndex=i.index,a._propPrefix=(T?T+".":"")+"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 i4=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],DB=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function Oge(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,g=r.yanchor,b=r.xpad,h=r.ypad,_=r.x,T=n?r.y:1-r.y,m=r.yref==="paper",k=r.xref==="paper",S=t._fullLayout,x=S._size,M=r._fillcolor,d=r._line,w=r.title,y=w.side,v=r._zrange||Xl.extent((typeof M=="function"?M:d.color).domain()),A=typeof d.color=="function"?d.color:function(){return d.color},p=typeof M=="function"?M:function(){return M},D=r._levels,E=Hge(t,r,v),R=E.fill,I=E.line,z=Math.round(i*(l==="fraction"?n?x.w:x.h:1)),F=z/(n?x.w:x.h),L=Math.round(a*(o==="fraction"?n?x.h:x.w:1)),P=L/(n?x.h:x.w),B=k?x.w:t._fullLayout.width,O=m?x.h:t._fullLayout.height,G=Math.round(n?_*B+b:T*O+h),J={center:.5,right:1}[c]||0,j={top:1,middle:.5}[g]||0,V=n?_-J*F:T-j*F,q=n?T-j*P:_-J*P,Z=Math.round(n?O*(1-q):B*q);r._lenFrac=P,r._thickFrac=F,r._uFrac=V,r._vFrac=q;var re=r._axis=Vge(t,r,v);re.position=F+(n?_+b/x.w:T+h/x.h);var $=["top","bottom"].indexOf(y)!==-1;if(n&&$&&(re.title.side=y,re.titlex=_+b/x.w,re.titley=q+(w.side==="top"?P-h/x.h:h/x.h)),!n&&!$&&(re.title.side=y,re.titley=T+h/x.h,re.titlex=q+b/x.w),d.color&&r.tickmode==="auto"){re.tickmode="linear",re.tick0=D.start;var ae=D.size,Q=mi.constrain(L/50,4,15)+1,te=(v[1]-v[0])/((r.nticks||Q)*ae);if(te>1){var ue=Math.pow(10,Math.floor(Math.log(te)/Math.LN10));ae*=ue*mi.roundUp(te/ue,[2,5,10]),(Math.abs(D.start)/D.size+1e-6)%1<2e-6&&(re.tick0=0)}re.dtick=ae}var ee=n?h/x.h:b/x.w;re.domain=DB(i4([q,q+P],ee),ee),re.setScale(),e.attr("transform",Xi(Math.round(x.l),Math.round(x.t)));var ie=e.select("."+Yt.cbtitleunshift).attr("transform",Xi(-Math.round(x.l),-Math.round(x.t))),fe=re.ticklabelposition,we=re.title.font.size,Te=e.select("."+Yt.cbaxis),ke,ge=0,Ee=0;function Le(oe,de){var pe={propContainer:re,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Yt.cbtitle)},me=oe.charAt(0)==="h"?oe.slice(1):"h"+oe;e.selectAll("."+me+",."+me+"-math-group").remove(),Rge.draw(t,oe,RB(pe,de||{}))}function se(){if(n&&$||!n&&!$){var oe,de;y==="top"&&(oe=b+x.l+B*_,de=h+x.t+O*(1-q-P)+3+we*.75),y==="bottom"&&(oe=b+x.l+B*_,de=h+x.t+O*(1-q)-3-we*.25),y==="right"&&(de=h+x.t+O*T+3+we*.75,oe=b+x.l+B*q),Le(re._id+"title",{attributes:{x:oe,y:de,"text-anchor":n?"start":"middle"}})}}function X(){if(n&&!$||!n&&$){var oe=re.position||0,de=re._offset+re._length/2,pe,me;if(y==="right")me=de,pe=x.l+B*oe+10+we*(re.showticklabels?1:.5);else if(pe=de,y==="bottom"&&(me=x.t+O*oe+10+(fe.indexOf("inside")===-1?re.tickfont.size:0)+(re.ticks!=="inside"&&r.ticklen||0)),y==="top"){var Se=w.text.split("<br>").length;me=x.t+O*oe+10-z-CB*we*Se}Le((n?"h":"v")+re._id+"title",{avoid:{selection:Xl.select(t).selectAll("g."+re._id+"tick"),side:y,offsetTop:n?0:x.t,offsetLeft:n?x.l:0,maxShift:n?S.width:S.height},attributes:{x:pe,y:me,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function K(){if(!n&&!$||n&&$){var oe=e.select("."+Yt.cbtitle),de=oe.select("text"),pe=[-u/2,u/2],me=oe.select(".h"+re._id+"title-math-group").node(),Se=15.6;de.node()&&(Se=parseInt(de.node().style.fontSize,10)*CB);var ve;if(me?(ve=Yi.bBox(me),Ee=ve.width,ge=ve.height,ge>Se&&(pe[1]-=(ge-Se)/2)):de.node()&&!de.classed(Yt.jsPlaceholder)&&(ve=Yi.bBox(de.node()),Ee=ve.width,ge=ve.height),n){if(ge){if(ge+=5,y==="top")re.domain=DB(re.domain,ge/x.h),pe[1]*=-1;else{re.domain=i4(re.domain,ge/x.h);var he=Fge.lineCount(de);pe[1]+=(1-he)*Se}oe.attr("transform",Xi(pe[0],pe[1])),re.setScale()}}else Ee&&(y==="right"&&(re.domain=i4(re.domain,(Ee+we/2)/x.w)),oe.attr("transform",Xi(pe[0],pe[1])),re.setScale())}e.selectAll("."+Yt.cbfills+",."+Yt.cblines).attr("transform",n?Xi(0,Math.round(x.h*(1-re.domain[1]))):Xi(Math.round(x.w*re.domain[0]),0)),Te.attr("transform",n?Xi(0,Math.round(-x.t)):Xi(Math.round(-x.l),0));var be=e.select("."+Yt.cbfills).selectAll("rect."+Yt.cbfill).attr("style","").data(R);be.enter().append("rect").classed(Yt.cbfill,!0).attr("style",""),be.exit().remove();var Ae=v.map(re.c2p).map(Math.round).sort(function(Ue,qe){return Ue-qe});be.each(function(Ue,qe){var We=[qe===0?v[0]:(R[qe]+R[qe-1])/2,qe===R.length-1?v[1]:(R[qe]+R[qe+1])/2].map(re.c2p).map(Math.round);n&&(We[1]=mi.constrain(We[1]+(We[1]>We[0])?1:-1,Ae[0],Ae[1]));var Xe=Xl.select(this).attr(n?"x":"y",G).attr(n?"y":"x",Xl.min(We)).attr(n?"width":"height",Math.max(z,2)).attr(n?"height":"width",Math.max(Xl.max(We)-Xl.min(We),2));if(r._fillgradient)Yi.gradient(Xe,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var er=p(Ue).replace("e-","");Xe.attr("fill",Nu.hexString(er))}});var Re=e.select("."+Yt.cblines).selectAll("path."+Yt.cbline).data(d.color&&d.width?I:[]);Re.enter().append("path").classed(Yt.cbline,!0),Re.exit().remove(),Re.each(function(Ue){var qe=G,We=Math.round(re.c2p(Ue))+d.width/2%1;Xl.select(this).attr("d","M"+(n?qe+","+We:We+","+qe)+(n?"h":"v")+z).call(Yi.lineGroupStyle,d.width,A(Ue),d.dash)}),Te.selectAll("g."+re._id+"tick,path").remove();var Pe=G+z+(u||0)/2-(r.ticks==="outside"?1:0),Ye=Zo.calcTicks(re),Ve=Zo.getTickSigns(re)[2];return Zo.drawTicks(t,re,{vals:re.ticks==="inside"?Zo.clipEnds(re,Ye):Ye,layer:Te,path:Zo.makeTickPath(re,Pe,Ve),transFn:Zo.makeTransTickFn(re)}),Zo.drawLabels(t,re,{vals:Ye,layer:Te,transFn:Zo.makeTransTickLabelFn(re),labelFns:Zo.makeLabelFns(re,Pe)})}function ye(){var oe,de=z+u/2;fe.indexOf("inside")===-1&&(oe=Yi.bBox(Te.node()),de+=n?oe.width:oe.height),ke=ie.select("text");var pe=0,me=n&&y==="top",Se=!n&&y==="right",ve=0;if(ke.node()&&!ke.classed(Yt.jsPlaceholder)){var he,be=ie.select(".h"+re._id+"title-math-group").node();be&&(n&&$||!n&&!$)?(oe=Yi.bBox(be),pe=oe.width,he=oe.height):(oe=Yi.bBox(ie.node()),pe=oe.right-x.l-(n?G:Z),he=oe.bottom-x.t-(n?Z:G),!n&&y==="top"&&(de+=oe.height,ve=oe.height)),Se&&(ke.attr("transform",Xi(pe/2+we/2,0)),pe*=2),de=Math.max(de,n?pe:he)}var Ae=(n?b:h)*2+de+s+u/2,Re=0;!n&&w.text&&g==="bottom"&&T<=0&&(Re=Ae/2,Ae+=Re,ve+=Re),S._hColorbarMoveTitle=Re,S._hColorbarMoveCBTitle=ve;var Pe=s+u,Ye=(n?G:Z)-Pe/2-(n?b:0),Ve=(n?Z:G)-(n?L:h+ve-Re);e.select("."+Yt.cbbg).attr("x",Ye).attr("y",Ve).attr(n?"width":"height",Math.max(Ae-Re,2)).attr(n?"height":"width",Math.max(L+Pe,2)).call(Nu.fill,f).call(Nu.stroke,r.bordercolor).style("stroke-width",s);var Ue=Se?Math.max(pe-10,0):0;e.selectAll("."+Yt.cboutline).attr("x",(n?G:Z+b)+Ue).attr("y",(n?Z+h-L:G)+(me?ge:0)).attr(n?"width":"height",Math.max(z,2)).attr(n?"height":"width",Math.max(L-(n?2*h+ge:2*b+Ue),2)).call(Nu.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var qe=n?J*Ae:0,We=n?0:(1-j)*Ae-ve;if(qe=k?x.l-qe:-qe,We=m?x.t-We:-We,e.attr("transform",Xi(qe,We)),!n&&(s||Nu.opacity(f)&&!Nu.equals(S.paper_bgcolor,f))){var Xe=Te.selectAll("text"),er=Xe[0].length,nr=e.select("."+Yt.cbbg).node(),rr=Yi.bBox(nr),Qe=Yi.getTranslate(e),Ce=2;Xe.each(function(Hr,ot){var Ir=0,Jr=er-1;if(ot===Ir||ot===Jr){var Xt=Yi.bBox(this),tt=Yi.getTranslate(this),Kr;if(ot===Jr){var qt=Xt.right+tt.x,lr=rr.right+Qe.x+Z-s-Ce+_;Kr=lr-qt,Kr>0&&(Kr=0)}else if(ot===Ir){var Dr=Xt.left+tt.x,Vr=rr.left+Qe.x+Z+s+Ce;Kr=Vr-Dr,Kr<0&&(Kr=0)}Kr&&(er<3?this.setAttribute("transform","translate("+Kr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ze={},Ke=EB[c],je=LB[c],wr=EB[g],Xr=LB[g],Tr=Ae-z;n?(o==="pixels"?(ze.y=T,ze.t=L*wr,ze.b=L*Xr):(ze.t=ze.b=0,ze.yt=T+a*wr,ze.yb=T-a*Xr),l==="pixels"?(ze.x=_,ze.l=Ae*Ke,ze.r=Ae*je):(ze.l=Tr*Ke,ze.r=Tr*je,ze.xl=_-i*Ke,ze.xr=_+i*je)):(o==="pixels"?(ze.x=_,ze.l=L*Ke,ze.r=L*je):(ze.l=ze.r=0,ze.xl=_+a*Ke,ze.xr=_-a*je),l==="pixels"?(ze.y=1-T,ze.t=Ae*wr,ze.b=Ae*Xr):(ze.t=Tr*wr,ze.b=Tr*Xr,ze.yt=T-i*wr,ze.yb=T+i*Xr));var Pr=r.y<.5?"b":"t",at=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Ar={r:S.width-Ye-qe,l:Ye+ze.r,b:S.height-Ve-We,t:Ve+ze.b};k&&m?ip.autoMargin(t,r._id,ze):k?t._fullLayout._reservedMargin[r._id][Pr]=Ar[Pr]:m||n?t._fullLayout._reservedMargin[r._id][at]=Ar[at]:t._fullLayout._reservedMargin[r._id][Pr]=Ar[Pr]}return mi.syncOrAsync([ip.previousPromises,se,K,X,ip.previousPromises,ye],t)}function Uge(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;ap.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),a4(e)},moveFn:function(s,f){e.attr("transform",i+Xi(s,f)),l=ap.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=ap.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=ap.getCursor(l,u,r.xanchor,r.yanchor);a4(e,c)},doneFn:function(){if(a4(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?SB.call("_guiRestyle",t,s,r._traceIndex):SB.call("_guiRelayout",t,s)}}})}function Hge(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 g=r._filllevels;if(g)for(u=g.end+g.size/100,s=g.size,l=0;l<1e5&&(i=g.start+l*s,!(s>0?i>=u:i<=u));l++)i>t[0]&&i<t[1]&&o.push(i);else o=a.map(function(b){return b-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 Vge(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 mi.coerce(o,l,Nge,f,c)}return Ige(o,l,s,u,n),zge(o,l,s,u),l}FB.exports={draw:qge}});var zB=xe((n8e,IB)=>{"use strict";IB.exports={moduleType:"component",name:"colorbar",attributes:v1(),supplyDefaults:am(),draw:PB().draw,hasColorbar:Wy()}});var qB=xe((a8e,NB)=>{"use strict";NB.exports={moduleType:"component",name:"legend",layoutAttributes:e5(),supplyLayoutDefaults:t5(),draw:y5(),style:h5()}});var OB=xe((i8e,BB)=>{"use strict";BB.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 HB=xe((o8e,UB)=>{"use strict";UB.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var s4=xe((l8e,XB)=>{"use strict";var Gge=Cr(),YB=tr(),l4=YB.extendFlat,VB=YB.extendDeep;function GB(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 Yge(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}XB.exports=function(r,t){var n,a=r.data,o=r.layout,i=VB([],a),l=VB({},o,GB(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++)Yge(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),Gge.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(T){return T.match(/^scene\d*$/)});if(c.length){var g={};for(t.tileClass==="thumbnail"&&(g={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),n=0;n<c.length;n++){var b=l[c[n]];b.xaxis||(b.xaxis={}),b.yaxis||(b.yaxis={}),b.zaxis||(b.zaxis={}),l4(b.xaxis,g),l4(b.yaxis,g),l4(b.zaxis,g),b._scene=null}}var h=document.createElement("div");t.tileClass&&(h.className=t.tileClass);var _={gd:h,td:h,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"&&(_.config.setBackground=t.setBackground||"opaque"),_.gd.defaultLayout=GB(t.tileClass),_}});var JB=xe((s8e,ZB)=>{"use strict";var Xge=e1().EventEmitter,Wge=Cr(),Zge=tr(),WB=Zs(),Jge=s4(),$ge=sd(),Kge=ud();function Qge(e,r){var t=new Xge,n=Jge(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=WB.getDelay(a._fullLayout);setTimeout(function(){var u=$ge(a),s=document.createElement("canvas");s.id=Zge.randstr(),t=Kge({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=WB.getRedrawFunc(a);return Wge.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}ZB.exports=Qge});var QB=xe((u8e,KB)=>{"use strict";var $B=Zs(),jge={getDelay:$B.getDelay,getRedrawFunc:$B.getRedrawFunc,clone:s4(),toSVG:sd(),svgToImg:ud(),toImage:JB(),downloadImage:Nb()};KB.exports=jge});var eO=xe(Jo=>{"use strict";Jo.version=uf().version;t7();UT();var e3e=Cr(),fv=Jo.register=e3e.register,f4=tP(),jB=Object.keys(f4);for(op=0;op<jB.length;op++)qu=jB[op],qu.charAt(0)!=="_"&&(Jo[qu]=f4[qu]),fv({moduleType:"apiMethod",name:qu,fn:f4[qu]});var qu,op;fv(yz());fv([Hz(),rN(),xu(),xN(),FN(),eq(),bq(),Nq(),eB(),oB(),TB(),so(),zB(),qB(),yo(),G5()]);fv([OB(),HB()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(fv(window.PlotlyLocales),delete window.PlotlyLocales);Jo.Icons=s2();var lp=yo(),u4=Sn();Jo.Plots={resize:u4.resize,graphJson:u4.graphJson,sendDataToCloud:u4.sendDataToCloud};Jo.Fx={hover:lp.hover,unhover:lp.unhover,loneHover:lp.loneHover,loneUnhover:lp.loneUnhover};Jo.Snapshot=QB();Jo.PlotSchema=Z0()});var tO=xe((c8e,rO)=>{"use strict";rO.exports=eO()});var In=xe((v8e,nO)=>{"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=g;var l=i(7261),u=i(9977),s=i(1811);function f(b,h){this._controllerNames=Object.keys(b),this._controllerList=this._controllerNames.map(function(_){return b[_]}),this._mode=h,this._active=b[h],this._active||(this._mode="turntable",this._active=b.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(b){for(var h=this._controllerList,_=0;_<h.length;++_)h[_].flush(b)},c.idle=function(b){for(var h=this._controllerList,_=0;_<h.length;++_)h[_].idle(b)},c.lookAt=function(b,h,_,T){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].lookAt(b,h,_,T)},c.rotate=function(b,h,_,T){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].rotate(b,h,_,T)},c.pan=function(b,h,_,T){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].pan(b,h,_,T)},c.translate=function(b,h,_,T){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].translate(b,h,_,T)},c.setMatrix=function(b,h){for(var _=this._controllerList,T=0;T<_.length;++T)_[T].setMatrix(b,h)},c.setDistanceLimits=function(b,h){for(var _=this._controllerList,T=0;T<_.length;++T)_[T].setDistanceLimits(b,h)},c.setDistance=function(b,h){for(var _=this._controllerList,T=0;T<_.length;++T)_[T].setDistance(b,h)},c.recalcMatrix=function(b){this._active.recalcMatrix(b)},c.getDistance=function(b){return this._active.getDistance(b)},c.getDistanceLimits=function(b){return this._active.getDistanceLimits(b)},c.lastT=function(){return this._active.lastT()},c.setMode=function(b){if(b!==this._mode){var h=this._controllerNames.indexOf(b);if(!(h<0)){var _=this._active,T=this._controllerList[h],m=Math.max(_.lastT(),T.lastT());_.recalcMatrix(m),T.setMatrix(m,_.computedMatrix),this._active=T,this._mode=b,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 g(b){b=b||{};var h=b.eye||[0,0,1],_=b.center||[0,0,0],T=b.up||[0,1,0],m=b.distanceLimits||[0,1/0],k=b.mode||"turntable",S=l(),x=u(),M=s();return S.setDistanceLimits(m[0],m[1]),S.lookAt(0,h,_,T),x.setDistanceLimits(m[0],m[1]),x.lookAt(0,h,_,T),M.setDistanceLimits(m[0],m[1]),M.lookAt(0,h,_,T),new f({turntable:S,orbit:x,matrix:M},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(g){var b=f.get(g),h=b&&(b._triangleBuffer.handle||b._triangleBuffer.buffer);if(!h||!g.isBuffer(h)){var _=u(g,new Float32Array([-1,-1,-1,4,4,-1]));b=s(g,[{buffer:_,type:g.FLOAT,size:2}]),b._triangleBuffer=_,f.set(g,b)}b.bind(),g.drawArrays(g.TRIANGLES,0,3),b.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 g=s.split(/\r?\n/),b=String(g.length+f-1).length;return g.map(function(h,_){var T=_+f,m=String(T).length,k=l(T,b-m);return k+c+h}).join(`
`)}},3952(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,c){for(var g=new Array(c+1),b=0;b<f.length;++b)g[b]=f[b];for(var b=0;b<=f.length;++b){for(var h=f.length;h<=c;++h){for(var _=new Array(c),T=0;T<c;++T)_[T]=Math.pow(h+1-b,T);g[h]=_}var m=l.apply(void 0,g);if(m)return!0}return!1}function s(f){var c=f.length;if(c===0)return[];if(c===1)return[0];for(var g=f[0].length,b=[f[0]],h=[0],_=1;_<c;++_){if(b.push(f[_]),!u(b,g)){b.pop();continue}if(h.push(_),h.length===g+1)return h}return h}},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(g){for(var b=new Array(g.length),h=0;h<g.length;++h)b[h]=c[g[h]];return u(b)*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,g=0;g<f.length;++g)c+=f[g];return c}function s(f,c){for(var g=c.length,b=new Array(g+1),h=0;h<g;++h){for(var _=new Array(g+1),T=0;T<=g;++T)_[T]=f[T][h];b[h]=_}b[g]=new Array(g+1);for(var h=0;h<=g;++h)b[g][h]=1;for(var m=new Array(g+1),h=0;h<g;++h)m[h]=c[h];m[g]=1;var k=l(b,m),S=u(k[g+1]);S===0&&(S=1);for(var x=new Array(g+1),h=0;h<=g;++h)x[h]=u(k[h])/S;return x}},7507(a,o){"use strict";o.byteLength=b,o.toByteArray=_,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 g(S){var x=S.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=S.indexOf("=");M===-1&&(M=x);var d=M===x?0:4-M%4;return[M,d]}function b(S){var x=g(S),M=x[0],d=x[1];return(M+d)*3/4-d}function h(S,x,M){return(x+M)*3/4-M}function _(S){var x,M=g(S),d=M[0],w=M[1],y=new u(h(S,d,w)),v=0,A=w>0?d-4:d,p;for(p=0;p<A;p+=4)x=l[S.charCodeAt(p)]<<18|l[S.charCodeAt(p+1)]<<12|l[S.charCodeAt(p+2)]<<6|l[S.charCodeAt(p+3)],y[v++]=x>>16&255,y[v++]=x>>8&255,y[v++]=x&255;return w===2&&(x=l[S.charCodeAt(p)]<<2|l[S.charCodeAt(p+1)]>>4,y[v++]=x&255),w===1&&(x=l[S.charCodeAt(p)]<<10|l[S.charCodeAt(p+1)]<<4|l[S.charCodeAt(p+2)]>>2,y[v++]=x>>8&255,y[v++]=x&255),y}function T(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function m(S,x,M){for(var d,w=[],y=x;y<M;y+=3)d=(S[y]<<16&16711680)+(S[y+1]<<8&65280)+(S[y+2]&255),w.push(T(d));return w.join("")}function k(S){for(var x,M=S.length,d=M%3,w=[],y=16383,v=0,A=M-d;v<A;v+=y)w.push(m(S,v,v+y>A?A:v+y));return d===1?(x=S[M-1],w.push(i[x>>2]+i[x<<4&63]+"==")):d===2&&(x=(S[M-2]<<8)+S[M-1],w.push(i[x>>10]+i[x>>4&63]+i[x<<2&63]+"=")),w.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),g=i(8697);a.exports=b;function b(h,_){if(l(h))return _?g(h,b(_)):[h[0].clone(),h[1].clone()];var T=0,m,k;if(u(h))m=h.clone();else if(typeof h=="string")m=f(h);else{if(h===0)return[s(0),s(1)];if(h===Math.floor(h))m=s(h);else{for(;h!==Math.floor(h);)h=h*Math.pow(2,256),T-=256;m=s(h)}}if(l(_))m.mul(_[1]),k=_[0].clone();else if(u(_))k=_.clone();else if(typeof _=="string")k=f(_);else if(!_)k=s(1);else if(_===Math.floor(_))k=s(_);else{for(;_!==Math.floor(_);)_=_*Math.pow(2,256),T+=256;k=s(_)}return T>0?m=m.ushln(T):T<0&&(k=k.ushln(-T)),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,g=0;if(f===1)g=c[0];else if(f===2)g=c[0]+c[1]*67108864;else for(var b=0;b<f;b++){var h=c[b];g+=h*Math.pow(67108864,b)}return l(s)*g}},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 g=u(l.hi(f));return g>20?52:g+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 g=u(f),b=u(c);if(g===0)return[l(0),l(1)];if(b===0)return[l(0),l(0)];b<0&&(f=f.neg(),c=c.neg());var h=f.gcd(c);return h.cmpn(1)?[f.div(h),c.div(h)]:[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],g=f[1];if(c.cmpn(0)===0)return 0;var b=c.abs().divmod(g.abs()),h=b.div,_=l(h),T=b.mod,m=c.negative!==g.negative?-1:1;if(T.cmpn(0)===0)return m*_;if(_){var k=u(_)+4,S=l(T.ushln(k).divRound(g));return m*(_+S*Math.pow(2,-k))}else{var x=g.bitLength()-T.bitLength()+53,S=l(T.ushln(x).divRound(g));return x<1023?m*S*Math.pow(2,-x):(S*=Math.pow(2,-1023),m*S*Math.pow(2,1023-x))}}},2478(a){"use strict";function o(c,g,b,h,_){for(var T=_+1;h<=_;){var m=h+_>>>1,k=c[m],S=b!==void 0?b(k,g):k-g;S>=0?(T=m,_=m-1):h=m+1}return T}function i(c,g,b,h,_){for(var T=_+1;h<=_;){var m=h+_>>>1,k=c[m],S=b!==void 0?b(k,g):k-g;S>0?(T=m,_=m-1):h=m+1}return T}function l(c,g,b,h,_){for(var T=h-1;h<=_;){var m=h+_>>>1,k=c[m],S=b!==void 0?b(k,g):k-g;S<0?(T=m,h=m+1):_=m-1}return T}function u(c,g,b,h,_){for(var T=h-1;h<=_;){var m=h+_>>>1,k=c[m],S=b!==void 0?b(k,g):k-g;S<=0?(T=m,h=m+1):_=m-1}return T}function s(c,g,b,h,_){for(;h<=_;){var T=h+_>>>1,m=c[T],k=b!==void 0?b(m,g):m-g;if(k===0)return T;k<=0?h=T+1:_=T-1}return-1}function f(c,g,b,h,_,T){return typeof b=="function"?T(c,g,b,h===void 0?0:h|0,_===void 0?c.length-1:_|0):T(c,g,void 0,b===void 0?0:b|0,h===void 0?c.length-1:h|0)}a.exports={ge:function(c,g,b,h,_){return f(c,g,b,h,_,o)},gt:function(c,g,b,h,_){return f(c,g,b,h,_,i)},lt:function(c,g,b,h,_){return f(c,g,b,h,_,l)},le:function(c,g,b,h,_){return f(c,g,b,h,_,u)},eq:function(c,g,b,h,_){return f(c,g,b,h,_,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,g=f,b=7;for(c>>>=1;c;c>>>=1)g<<=1,g|=c&1,--b;s[f]=g<<b&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(F,L){if(!F)throw new Error(L||"Assertion failed")}function f(F,L){F.super_=L;var P=function(){};P.prototype=L.prototype,F.prototype=new P,F.prototype.constructor=F}function c(F,L,P){if(c.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((L==="le"||L==="be")&&(P=L,L=10),this._init(F||0,L||10,P||"be"))}typeof l=="object"?l.exports=c:u.BN=c,c.BN=c,c.wordSize=26;var g;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?g=window.Buffer:g=i(7790).Buffer}catch(F){}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,P){return L.cmp(P)>0?L:P},c.min=function(L,P){return L.cmp(P)<0?L:P},c.prototype._init=function(L,P,B){if(typeof L=="number")return this._initNumber(L,P,B);if(typeof L=="object")return this._initArray(L,P,B);P==="hex"&&(P=16),s(P===(P|0)&&P>=2&&P<=36),L=L.toString().replace(/\s+/g,"");var O=0;L[0]==="-"&&(O++,this.negative=1),O<L.length&&(P===16?this._parseHex(L,O,B):(this._parseBase(L,P,O),B==="le"&&this._initArray(this.toArray(),P,B)))},c.prototype._initNumber=function(L,P,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(),P,B)},c.prototype._initArray=function(L,P,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 G,J,j=0;if(B==="be")for(O=L.length-1,G=0;O>=0;O-=3)J=L[O]|L[O-1]<<8|L[O-2]<<16,this.words[G]|=J<<j&67108863,this.words[G+1]=J>>>26-j&67108863,j+=24,j>=26&&(j-=26,G++);else if(B==="le")for(O=0,G=0;O<L.length;O+=3)J=L[O]|L[O+1]<<8|L[O+2]<<16,this.words[G]|=J<<j&67108863,this.words[G+1]=J>>>26-j&67108863,j+=24,j>=26&&(j-=26,G++);return this.strip()};function b(F,L){var P=F.charCodeAt(L);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function h(F,L,P){var B=b(F,P);return P-1>=L&&(B|=b(F,P-1)<<4),B}c.prototype._parseHex=function(L,P,B){this.length=Math.ceil((L.length-P)/6),this.words=new Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var G=0,J=0,j;if(B==="be")for(O=L.length-1;O>=P;O-=2)j=h(L,P,O)<<G,this.words[J]|=j&67108863,G>=18?(G-=18,J+=1,this.words[J]|=j>>>26):G+=8;else{var V=L.length-P;for(O=V%2===0?P+1:P;O<L.length;O+=2)j=h(L,P,O)<<G,this.words[J]|=j&67108863,G>=18?(G-=18,J+=1,this.words[J]|=j>>>26):G+=8}this.strip()};function _(F,L,P,B){for(var O=0,G=Math.min(F.length,P),J=L;J<G;J++){var j=F.charCodeAt(J)-48;O*=B,j>=49?O+=j-49+10:j>=17?O+=j-17+10:O+=j}return O}c.prototype._parseBase=function(L,P,B){this.words=[0],this.length=1;for(var O=0,G=1;G<=67108863;G*=P)O++;O--,G=G/P|0;for(var J=L.length-B,j=J%O,V=Math.min(J,J-j)+B,q=0,Z=B;Z<V;Z+=O)q=_(L,Z,Z+O,P),this.imuln(G),this.words[0]+q<67108864?this.words[0]+=q:this._iaddn(q);if(j!==0){var re=1;for(q=_(L,Z,L.length,P),Z=0;Z<j;Z++)re*=P;this.imuln(re),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 P=0;P<this.length;P++)L.words[P]=this.words[P];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 T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],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,P){L=L||10,P=P|0||1;var B;if(L===16||L==="hex"){B="";for(var O=0,G=0,J=0;J<this.length;J++){var j=this.words[J],V=((j<<O|G)&16777215).toString(16);G=j>>>24-O&16777215,O+=2,O>=26&&(O-=26,J--),G!==0||J!==this.length-1?B=T[6-V.length]+V+B:B=V+B}for(G!==0&&(B=G.toString(16)+B);B.length%P!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(L===(L|0)&&L>=2&&L<=36){var q=m[L],Z=k[L];B="";var re=this.clone();for(re.negative=0;!re.isZero();){var $=re.modn(Z).toString(L);re=re.idivn(Z),re.isZero()?B=$+B:B=T[q-$.length]+$+B}for(this.isZero()&&(B="0"+B);B.length%P!==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,P){return s(typeof g!="undefined"),this.toArrayLike(g,L,P)},c.prototype.toArray=function(L,P){return this.toArrayLike(Array,L,P)},c.prototype.toArrayLike=function(L,P,B){var O=this.byteLength(),G=B||Math.max(1,O);s(O<=G,"byte array longer than desired length"),s(G>0,"Requested array length <= 0"),this.strip();var J=P==="le",j=new L(G),V,q,Z=this.clone();if(J){for(q=0;!Z.isZero();q++)V=Z.andln(255),Z.iushrn(8),j[q]=V;for(;q<G;q++)j[q]=0}else{for(q=0;q<G-O;q++)j[q]=0;for(q=0;!Z.isZero();q++)V=Z.andln(255),Z.iushrn(8),j[G-q-1]=V}return j},Math.clz32?c.prototype._countBits=function(L){return 32-Math.clz32(L)}:c.prototype._countBits=function(L){var P=L,B=0;return P>=4096&&(B+=13,P>>>=13),P>=64&&(B+=7,P>>>=7),P>=8&&(B+=4,P>>>=4),P>=2&&(B+=2,P>>>=2),B+P},c.prototype._zeroBits=function(L){if(L===0)return 26;var P=L,B=0;return(P&8191)===0&&(B+=13,P>>>=13),(P&127)===0&&(B+=7,P>>>=7),(P&15)===0&&(B+=4,P>>>=4),(P&3)===0&&(B+=2,P>>>=2),(P&1)===0&&B++,B},c.prototype.bitLength=function(){var L=this.words[this.length-1],P=this._countBits(L);return(this.length-1)*26+P};function S(F){for(var L=new Array(F.bitLength()),P=0;P<L.length;P++){var B=P/26|0,O=P%26;L[P]=(F.words[B]&1<<O)>>>O}return L}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,P=0;P<this.length;P++){var B=this._zeroBits(this.words[P]);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 P=0;P<L.length;P++)this.words[P]=this.words[P]|L.words[P];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 P;this.length>L.length?P=L:P=this;for(var B=0;B<P.length;B++)this.words[B]=this.words[B]&L.words[B];return this.length=P.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 P,B;this.length>L.length?(P=this,B=L):(P=L,B=this);for(var O=0;O<B.length;O++)this.words[O]=P.words[O]^B.words[O];if(this!==P)for(;O<P.length;O++)this.words[O]=P.words[O];return this.length=P.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 P=Math.ceil(L/26)|0,B=L%26;this._expand(P),B>0&&P--;for(var O=0;O<P;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,P){s(typeof L=="number"&&L>=0);var B=L/26|0,O=L%26;return this._expand(B+1),P?this.words[B]=this.words[B]|1<<O:this.words[B]=this.words[B]&~(1<<O),this.strip()},c.prototype.iadd=function(L){var P;if(this.negative!==0&&L.negative===0)return this.negative=0,P=this.isub(L),this.negative^=1,this._normSign();if(this.negative===0&&L.negative!==0)return L.negative=0,P=this.isub(L),L.negative=1,P._normSign();var B,O;this.length>L.length?(B=this,O=L):(B=L,O=this);for(var G=0,J=0;J<O.length;J++)P=(B.words[J]|0)+(O.words[J]|0)+G,this.words[J]=P&67108863,G=P>>>26;for(;G!==0&&J<B.length;J++)P=(B.words[J]|0)+G,this.words[J]=P&67108863,G=P>>>26;if(this.length=B.length,G!==0)this.words[this.length]=G,this.length++;else if(B!==this)for(;J<B.length;J++)this.words[J]=B.words[J];return this},c.prototype.add=function(L){var P;return L.negative!==0&&this.negative===0?(L.negative=0,P=this.sub(L),L.negative^=1,P):L.negative===0&&this.negative!==0?(this.negative=0,P=L.sub(this),this.negative=1,P):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 P=this.iadd(L);return L.negative=1,P._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,G;B>0?(O=this,G=L):(O=L,G=this);for(var J=0,j=0;j<G.length;j++)P=(O.words[j]|0)-(G.words[j]|0)+J,J=P>>26,this.words[j]=P&67108863;for(;J!==0&&j<O.length;j++)P=(O.words[j]|0)+J,J=P>>26,this.words[j]=P&67108863;if(J===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 x(F,L,P){P.negative=L.negative^F.negative;var B=F.length+L.length|0;P.length=B,B=B-1|0;var O=F.words[0]|0,G=L.words[0]|0,J=O*G,j=J&67108863,V=J/67108864|0;P.words[0]=j;for(var q=1;q<B;q++){for(var Z=V>>>26,re=V&67108863,$=Math.min(q,L.length-1),ae=Math.max(0,q-F.length+1);ae<=$;ae++){var Q=q-ae|0;O=F.words[Q]|0,G=L.words[ae]|0,J=O*G+re,Z+=J/67108864|0,re=J&67108863}P.words[q]=re|0,V=Z|0}return V!==0?P.words[q]=V|0:P.length--,P.strip()}var M=function(L,P,B){var O=L.words,G=P.words,J=B.words,j=0,V,q,Z,re=O[0]|0,$=re&8191,ae=re>>>13,Q=O[1]|0,te=Q&8191,ue=Q>>>13,ee=O[2]|0,ie=ee&8191,fe=ee>>>13,we=O[3]|0,Te=we&8191,ke=we>>>13,ge=O[4]|0,Ee=ge&8191,Le=ge>>>13,se=O[5]|0,X=se&8191,K=se>>>13,ye=O[6]|0,oe=ye&8191,de=ye>>>13,pe=O[7]|0,me=pe&8191,Se=pe>>>13,ve=O[8]|0,he=ve&8191,be=ve>>>13,Ae=O[9]|0,Re=Ae&8191,Pe=Ae>>>13,Ye=G[0]|0,Ve=Ye&8191,Ue=Ye>>>13,qe=G[1]|0,We=qe&8191,Xe=qe>>>13,er=G[2]|0,nr=er&8191,rr=er>>>13,Qe=G[3]|0,Ce=Qe&8191,ze=Qe>>>13,Ke=G[4]|0,je=Ke&8191,wr=Ke>>>13,Xr=G[5]|0,Tr=Xr&8191,Pr=Xr>>>13,at=G[6]|0,Ar=at&8191,Hr=at>>>13,ot=G[7]|0,Ir=ot&8191,Jr=ot>>>13,Xt=G[8]|0,tt=Xt&8191,Kr=Xt>>>13,qt=G[9]|0,lr=qt&8191,Dr=qt>>>13;B.negative=L.negative^P.negative,B.length=19,V=Math.imul($,Ve),q=Math.imul($,Ue),q=q+Math.imul(ae,Ve)|0,Z=Math.imul(ae,Ue);var Vr=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,V=Math.imul(te,Ve),q=Math.imul(te,Ue),q=q+Math.imul(ue,Ve)|0,Z=Math.imul(ue,Ue),V=V+Math.imul($,We)|0,q=q+Math.imul($,Xe)|0,q=q+Math.imul(ae,We)|0,Z=Z+Math.imul(ae,Xe)|0;var st=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(st>>>26)|0,st&=67108863,V=Math.imul(ie,Ve),q=Math.imul(ie,Ue),q=q+Math.imul(fe,Ve)|0,Z=Math.imul(fe,Ue),V=V+Math.imul(te,We)|0,q=q+Math.imul(te,Xe)|0,q=q+Math.imul(ue,We)|0,Z=Z+Math.imul(ue,Xe)|0,V=V+Math.imul($,nr)|0,q=q+Math.imul($,rr)|0,q=q+Math.imul(ae,nr)|0,Z=Z+Math.imul(ae,rr)|0;var mt=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(mt>>>26)|0,mt&=67108863,V=Math.imul(Te,Ve),q=Math.imul(Te,Ue),q=q+Math.imul(ke,Ve)|0,Z=Math.imul(ke,Ue),V=V+Math.imul(ie,We)|0,q=q+Math.imul(ie,Xe)|0,q=q+Math.imul(fe,We)|0,Z=Z+Math.imul(fe,Xe)|0,V=V+Math.imul(te,nr)|0,q=q+Math.imul(te,rr)|0,q=q+Math.imul(ue,nr)|0,Z=Z+Math.imul(ue,rr)|0,V=V+Math.imul($,Ce)|0,q=q+Math.imul($,ze)|0,q=q+Math.imul(ae,Ce)|0,Z=Z+Math.imul(ae,ze)|0;var St=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(St>>>26)|0,St&=67108863,V=Math.imul(Ee,Ve),q=Math.imul(Ee,Ue),q=q+Math.imul(Le,Ve)|0,Z=Math.imul(Le,Ue),V=V+Math.imul(Te,We)|0,q=q+Math.imul(Te,Xe)|0,q=q+Math.imul(ke,We)|0,Z=Z+Math.imul(ke,Xe)|0,V=V+Math.imul(ie,nr)|0,q=q+Math.imul(ie,rr)|0,q=q+Math.imul(fe,nr)|0,Z=Z+Math.imul(fe,rr)|0,V=V+Math.imul(te,Ce)|0,q=q+Math.imul(te,ze)|0,q=q+Math.imul(ue,Ce)|0,Z=Z+Math.imul(ue,ze)|0,V=V+Math.imul($,je)|0,q=q+Math.imul($,wr)|0,q=q+Math.imul(ae,je)|0,Z=Z+Math.imul(ae,wr)|0;var it=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(it>>>26)|0,it&=67108863,V=Math.imul(X,Ve),q=Math.imul(X,Ue),q=q+Math.imul(K,Ve)|0,Z=Math.imul(K,Ue),V=V+Math.imul(Ee,We)|0,q=q+Math.imul(Ee,Xe)|0,q=q+Math.imul(Le,We)|0,Z=Z+Math.imul(Le,Xe)|0,V=V+Math.imul(Te,nr)|0,q=q+Math.imul(Te,rr)|0,q=q+Math.imul(ke,nr)|0,Z=Z+Math.imul(ke,rr)|0,V=V+Math.imul(ie,Ce)|0,q=q+Math.imul(ie,ze)|0,q=q+Math.imul(fe,Ce)|0,Z=Z+Math.imul(fe,ze)|0,V=V+Math.imul(te,je)|0,q=q+Math.imul(te,wr)|0,q=q+Math.imul(ue,je)|0,Z=Z+Math.imul(ue,wr)|0,V=V+Math.imul($,Tr)|0,q=q+Math.imul($,Pr)|0,q=q+Math.imul(ae,Tr)|0,Z=Z+Math.imul(ae,Pr)|0;var vt=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(vt>>>26)|0,vt&=67108863,V=Math.imul(oe,Ve),q=Math.imul(oe,Ue),q=q+Math.imul(de,Ve)|0,Z=Math.imul(de,Ue),V=V+Math.imul(X,We)|0,q=q+Math.imul(X,Xe)|0,q=q+Math.imul(K,We)|0,Z=Z+Math.imul(K,Xe)|0,V=V+Math.imul(Ee,nr)|0,q=q+Math.imul(Ee,rr)|0,q=q+Math.imul(Le,nr)|0,Z=Z+Math.imul(Le,rr)|0,V=V+Math.imul(Te,Ce)|0,q=q+Math.imul(Te,ze)|0,q=q+Math.imul(ke,Ce)|0,Z=Z+Math.imul(ke,ze)|0,V=V+Math.imul(ie,je)|0,q=q+Math.imul(ie,wr)|0,q=q+Math.imul(fe,je)|0,Z=Z+Math.imul(fe,wr)|0,V=V+Math.imul(te,Tr)|0,q=q+Math.imul(te,Pr)|0,q=q+Math.imul(ue,Tr)|0,Z=Z+Math.imul(ue,Pr)|0,V=V+Math.imul($,Ar)|0,q=q+Math.imul($,Hr)|0,q=q+Math.imul(ae,Ar)|0,Z=Z+Math.imul(ae,Hr)|0;var Bt=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,V=Math.imul(me,Ve),q=Math.imul(me,Ue),q=q+Math.imul(Se,Ve)|0,Z=Math.imul(Se,Ue),V=V+Math.imul(oe,We)|0,q=q+Math.imul(oe,Xe)|0,q=q+Math.imul(de,We)|0,Z=Z+Math.imul(de,Xe)|0,V=V+Math.imul(X,nr)|0,q=q+Math.imul(X,rr)|0,q=q+Math.imul(K,nr)|0,Z=Z+Math.imul(K,rr)|0,V=V+Math.imul(Ee,Ce)|0,q=q+Math.imul(Ee,ze)|0,q=q+Math.imul(Le,Ce)|0,Z=Z+Math.imul(Le,ze)|0,V=V+Math.imul(Te,je)|0,q=q+Math.imul(Te,wr)|0,q=q+Math.imul(ke,je)|0,Z=Z+Math.imul(ke,wr)|0,V=V+Math.imul(ie,Tr)|0,q=q+Math.imul(ie,Pr)|0,q=q+Math.imul(fe,Tr)|0,Z=Z+Math.imul(fe,Pr)|0,V=V+Math.imul(te,Ar)|0,q=q+Math.imul(te,Hr)|0,q=q+Math.imul(ue,Ar)|0,Z=Z+Math.imul(ue,Hr)|0,V=V+Math.imul($,Ir)|0,q=q+Math.imul($,Jr)|0,q=q+Math.imul(ae,Ir)|0,Z=Z+Math.imul(ae,Jr)|0;var Gn=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,V=Math.imul(he,Ve),q=Math.imul(he,Ue),q=q+Math.imul(be,Ve)|0,Z=Math.imul(be,Ue),V=V+Math.imul(me,We)|0,q=q+Math.imul(me,Xe)|0,q=q+Math.imul(Se,We)|0,Z=Z+Math.imul(Se,Xe)|0,V=V+Math.imul(oe,nr)|0,q=q+Math.imul(oe,rr)|0,q=q+Math.imul(de,nr)|0,Z=Z+Math.imul(de,rr)|0,V=V+Math.imul(X,Ce)|0,q=q+Math.imul(X,ze)|0,q=q+Math.imul(K,Ce)|0,Z=Z+Math.imul(K,ze)|0,V=V+Math.imul(Ee,je)|0,q=q+Math.imul(Ee,wr)|0,q=q+Math.imul(Le,je)|0,Z=Z+Math.imul(Le,wr)|0,V=V+Math.imul(Te,Tr)|0,q=q+Math.imul(Te,Pr)|0,q=q+Math.imul(ke,Tr)|0,Z=Z+Math.imul(ke,Pr)|0,V=V+Math.imul(ie,Ar)|0,q=q+Math.imul(ie,Hr)|0,q=q+Math.imul(fe,Ar)|0,Z=Z+Math.imul(fe,Hr)|0,V=V+Math.imul(te,Ir)|0,q=q+Math.imul(te,Jr)|0,q=q+Math.imul(ue,Ir)|0,Z=Z+Math.imul(ue,Jr)|0,V=V+Math.imul($,tt)|0,q=q+Math.imul($,Kr)|0,q=q+Math.imul(ae,tt)|0,Z=Z+Math.imul(ae,Kr)|0;var Yn=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,V=Math.imul(Re,Ve),q=Math.imul(Re,Ue),q=q+Math.imul(Pe,Ve)|0,Z=Math.imul(Pe,Ue),V=V+Math.imul(he,We)|0,q=q+Math.imul(he,Xe)|0,q=q+Math.imul(be,We)|0,Z=Z+Math.imul(be,Xe)|0,V=V+Math.imul(me,nr)|0,q=q+Math.imul(me,rr)|0,q=q+Math.imul(Se,nr)|0,Z=Z+Math.imul(Se,rr)|0,V=V+Math.imul(oe,Ce)|0,q=q+Math.imul(oe,ze)|0,q=q+Math.imul(de,Ce)|0,Z=Z+Math.imul(de,ze)|0,V=V+Math.imul(X,je)|0,q=q+Math.imul(X,wr)|0,q=q+Math.imul(K,je)|0,Z=Z+Math.imul(K,wr)|0,V=V+Math.imul(Ee,Tr)|0,q=q+Math.imul(Ee,Pr)|0,q=q+Math.imul(Le,Tr)|0,Z=Z+Math.imul(Le,Pr)|0,V=V+Math.imul(Te,Ar)|0,q=q+Math.imul(Te,Hr)|0,q=q+Math.imul(ke,Ar)|0,Z=Z+Math.imul(ke,Hr)|0,V=V+Math.imul(ie,Ir)|0,q=q+Math.imul(ie,Jr)|0,q=q+Math.imul(fe,Ir)|0,Z=Z+Math.imul(fe,Jr)|0,V=V+Math.imul(te,tt)|0,q=q+Math.imul(te,Kr)|0,q=q+Math.imul(ue,tt)|0,Z=Z+Math.imul(ue,Kr)|0,V=V+Math.imul($,lr)|0,q=q+Math.imul($,Dr)|0,q=q+Math.imul(ae,lr)|0,Z=Z+Math.imul(ae,Dr)|0;var _n=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(_n>>>26)|0,_n&=67108863,V=Math.imul(Re,We),q=Math.imul(Re,Xe),q=q+Math.imul(Pe,We)|0,Z=Math.imul(Pe,Xe),V=V+Math.imul(he,nr)|0,q=q+Math.imul(he,rr)|0,q=q+Math.imul(be,nr)|0,Z=Z+Math.imul(be,rr)|0,V=V+Math.imul(me,Ce)|0,q=q+Math.imul(me,ze)|0,q=q+Math.imul(Se,Ce)|0,Z=Z+Math.imul(Se,ze)|0,V=V+Math.imul(oe,je)|0,q=q+Math.imul(oe,wr)|0,q=q+Math.imul(de,je)|0,Z=Z+Math.imul(de,wr)|0,V=V+Math.imul(X,Tr)|0,q=q+Math.imul(X,Pr)|0,q=q+Math.imul(K,Tr)|0,Z=Z+Math.imul(K,Pr)|0,V=V+Math.imul(Ee,Ar)|0,q=q+Math.imul(Ee,Hr)|0,q=q+Math.imul(Le,Ar)|0,Z=Z+Math.imul(Le,Hr)|0,V=V+Math.imul(Te,Ir)|0,q=q+Math.imul(Te,Jr)|0,q=q+Math.imul(ke,Ir)|0,Z=Z+Math.imul(ke,Jr)|0,V=V+Math.imul(ie,tt)|0,q=q+Math.imul(ie,Kr)|0,q=q+Math.imul(fe,tt)|0,Z=Z+Math.imul(fe,Kr)|0,V=V+Math.imul(te,lr)|0,q=q+Math.imul(te,Dr)|0,q=q+Math.imul(ue,lr)|0,Z=Z+Math.imul(ue,Dr)|0;var Ct=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,V=Math.imul(Re,nr),q=Math.imul(Re,rr),q=q+Math.imul(Pe,nr)|0,Z=Math.imul(Pe,rr),V=V+Math.imul(he,Ce)|0,q=q+Math.imul(he,ze)|0,q=q+Math.imul(be,Ce)|0,Z=Z+Math.imul(be,ze)|0,V=V+Math.imul(me,je)|0,q=q+Math.imul(me,wr)|0,q=q+Math.imul(Se,je)|0,Z=Z+Math.imul(Se,wr)|0,V=V+Math.imul(oe,Tr)|0,q=q+Math.imul(oe,Pr)|0,q=q+Math.imul(de,Tr)|0,Z=Z+Math.imul(de,Pr)|0,V=V+Math.imul(X,Ar)|0,q=q+Math.imul(X,Hr)|0,q=q+Math.imul(K,Ar)|0,Z=Z+Math.imul(K,Hr)|0,V=V+Math.imul(Ee,Ir)|0,q=q+Math.imul(Ee,Jr)|0,q=q+Math.imul(Le,Ir)|0,Z=Z+Math.imul(Le,Jr)|0,V=V+Math.imul(Te,tt)|0,q=q+Math.imul(Te,Kr)|0,q=q+Math.imul(ke,tt)|0,Z=Z+Math.imul(ke,Kr)|0,V=V+Math.imul(ie,lr)|0,q=q+Math.imul(ie,Dr)|0,q=q+Math.imul(fe,lr)|0,Z=Z+Math.imul(fe,Dr)|0;var xi=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(xi>>>26)|0,xi&=67108863,V=Math.imul(Re,Ce),q=Math.imul(Re,ze),q=q+Math.imul(Pe,Ce)|0,Z=Math.imul(Pe,ze),V=V+Math.imul(he,je)|0,q=q+Math.imul(he,wr)|0,q=q+Math.imul(be,je)|0,Z=Z+Math.imul(be,wr)|0,V=V+Math.imul(me,Tr)|0,q=q+Math.imul(me,Pr)|0,q=q+Math.imul(Se,Tr)|0,Z=Z+Math.imul(Se,Pr)|0,V=V+Math.imul(oe,Ar)|0,q=q+Math.imul(oe,Hr)|0,q=q+Math.imul(de,Ar)|0,Z=Z+Math.imul(de,Hr)|0,V=V+Math.imul(X,Ir)|0,q=q+Math.imul(X,Jr)|0,q=q+Math.imul(K,Ir)|0,Z=Z+Math.imul(K,Jr)|0,V=V+Math.imul(Ee,tt)|0,q=q+Math.imul(Ee,Kr)|0,q=q+Math.imul(Le,tt)|0,Z=Z+Math.imul(Le,Kr)|0,V=V+Math.imul(Te,lr)|0,q=q+Math.imul(Te,Dr)|0,q=q+Math.imul(ke,lr)|0,Z=Z+Math.imul(ke,Dr)|0;var tn=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(tn>>>26)|0,tn&=67108863,V=Math.imul(Re,je),q=Math.imul(Re,wr),q=q+Math.imul(Pe,je)|0,Z=Math.imul(Pe,wr),V=V+Math.imul(he,Tr)|0,q=q+Math.imul(he,Pr)|0,q=q+Math.imul(be,Tr)|0,Z=Z+Math.imul(be,Pr)|0,V=V+Math.imul(me,Ar)|0,q=q+Math.imul(me,Hr)|0,q=q+Math.imul(Se,Ar)|0,Z=Z+Math.imul(Se,Hr)|0,V=V+Math.imul(oe,Ir)|0,q=q+Math.imul(oe,Jr)|0,q=q+Math.imul(de,Ir)|0,Z=Z+Math.imul(de,Jr)|0,V=V+Math.imul(X,tt)|0,q=q+Math.imul(X,Kr)|0,q=q+Math.imul(K,tt)|0,Z=Z+Math.imul(K,Kr)|0,V=V+Math.imul(Ee,lr)|0,q=q+Math.imul(Ee,Dr)|0,q=q+Math.imul(Le,lr)|0,Z=Z+Math.imul(Le,Dr)|0;var $a=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+($a>>>26)|0,$a&=67108863,V=Math.imul(Re,Tr),q=Math.imul(Re,Pr),q=q+Math.imul(Pe,Tr)|0,Z=Math.imul(Pe,Pr),V=V+Math.imul(he,Ar)|0,q=q+Math.imul(he,Hr)|0,q=q+Math.imul(be,Ar)|0,Z=Z+Math.imul(be,Hr)|0,V=V+Math.imul(me,Ir)|0,q=q+Math.imul(me,Jr)|0,q=q+Math.imul(Se,Ir)|0,Z=Z+Math.imul(Se,Jr)|0,V=V+Math.imul(oe,tt)|0,q=q+Math.imul(oe,Kr)|0,q=q+Math.imul(de,tt)|0,Z=Z+Math.imul(de,Kr)|0,V=V+Math.imul(X,lr)|0,q=q+Math.imul(X,Dr)|0,q=q+Math.imul(K,lr)|0,Z=Z+Math.imul(K,Dr)|0;var _i=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(_i>>>26)|0,_i&=67108863,V=Math.imul(Re,Ar),q=Math.imul(Re,Hr),q=q+Math.imul(Pe,Ar)|0,Z=Math.imul(Pe,Hr),V=V+Math.imul(he,Ir)|0,q=q+Math.imul(he,Jr)|0,q=q+Math.imul(be,Ir)|0,Z=Z+Math.imul(be,Jr)|0,V=V+Math.imul(me,tt)|0,q=q+Math.imul(me,Kr)|0,q=q+Math.imul(Se,tt)|0,Z=Z+Math.imul(Se,Kr)|0,V=V+Math.imul(oe,lr)|0,q=q+Math.imul(oe,Dr)|0,q=q+Math.imul(de,lr)|0,Z=Z+Math.imul(de,Dr)|0;var nn=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(nn>>>26)|0,nn&=67108863,V=Math.imul(Re,Ir),q=Math.imul(Re,Jr),q=q+Math.imul(Pe,Ir)|0,Z=Math.imul(Pe,Jr),V=V+Math.imul(he,tt)|0,q=q+Math.imul(he,Kr)|0,q=q+Math.imul(be,tt)|0,Z=Z+Math.imul(be,Kr)|0,V=V+Math.imul(me,lr)|0,q=q+Math.imul(me,Dr)|0,q=q+Math.imul(Se,lr)|0,Z=Z+Math.imul(Se,Dr)|0;var el=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(el>>>26)|0,el&=67108863,V=Math.imul(Re,tt),q=Math.imul(Re,Kr),q=q+Math.imul(Pe,tt)|0,Z=Math.imul(Pe,Kr),V=V+Math.imul(he,lr)|0,q=q+Math.imul(he,Dr)|0,q=q+Math.imul(be,lr)|0,Z=Z+Math.imul(be,Dr)|0;var $i=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+($i>>>26)|0,$i&=67108863,V=Math.imul(Re,lr),q=Math.imul(Re,Dr),q=q+Math.imul(Pe,lr)|0,Z=Math.imul(Pe,Dr);var Ki=(j+V|0)+((q&8191)<<13)|0;return j=(Z+(q>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,J[0]=Vr,J[1]=st,J[2]=mt,J[3]=St,J[4]=it,J[5]=vt,J[6]=Bt,J[7]=Gn,J[8]=Yn,J[9]=_n,J[10]=Ct,J[11]=xi,J[12]=tn,J[13]=$a,J[14]=_i,J[15]=nn,J[16]=el,J[17]=$i,J[18]=Ki,j!==0&&(J[19]=j,B.length++),B};Math.imul||(M=x);function d(F,L,P){P.negative=L.negative^F.negative,P.length=F.length+L.length;for(var B=0,O=0,G=0;G<P.length-1;G++){var J=O;O=0;for(var j=B&67108863,V=Math.min(G,L.length-1),q=Math.max(0,G-F.length+1);q<=V;q++){var Z=G-q,re=F.words[Z]|0,$=L.words[q]|0,ae=re*$,Q=ae&67108863;J=J+(ae/67108864|0)|0,Q=Q+j|0,j=Q&67108863,J=J+(Q>>>26)|0,O+=J>>>26,J&=67108863}P.words[G]=j,B=J,J=O}return B!==0?P.words[G]=B:P.length--,P.strip()}function w(F,L,P){var B=new y;return B.mulp(F,L,P)}c.prototype.mulTo=function(L,P){var B,O=this.length+L.length;return this.length===10&&L.length===10?B=M(this,L,P):O<63?B=x(this,L,P):O<1024?B=d(this,L,P):B=w(this,L,P),B};function y(F,L){this.x=F,this.y=L}y.prototype.makeRBT=function(L){for(var P=new Array(L),B=c.prototype._countBits(L)-1,O=0;O<L;O++)P[O]=this.revBin(O,B,L);return P},y.prototype.revBin=function(L,P,B){if(L===0||L===B-1)return L;for(var O=0,G=0;G<P;G++)O|=(L&1)<<P-G-1,L>>=1;return O},y.prototype.permute=function(L,P,B,O,G,J){for(var j=0;j<J;j++)O[j]=P[L[j]],G[j]=B[L[j]]},y.prototype.transform=function(L,P,B,O,G,J){this.permute(J,L,P,B,O,G);for(var j=1;j<G;j<<=1)for(var V=j<<1,q=Math.cos(2*Math.PI/V),Z=Math.sin(2*Math.PI/V),re=0;re<G;re+=V)for(var $=q,ae=Z,Q=0;Q<j;Q++){var te=B[re+Q],ue=O[re+Q],ee=B[re+Q+j],ie=O[re+Q+j],fe=$*ee-ae*ie;ie=$*ie+ae*ee,ee=fe,B[re+Q]=te+ee,O[re+Q]=ue+ie,B[re+Q+j]=te-ee,O[re+Q+j]=ue-ie,Q!==V&&(fe=q*$-Z*ae,ae=q*ae+Z*$,$=fe)}},y.prototype.guessLen13b=function(L,P){var B=Math.max(P,L)|1,O=B&1,G=0;for(B=B/2|0;B;B=B>>>1)G++;return 1<<G+1+O},y.prototype.conjugate=function(L,P,B){if(!(B<=1))for(var O=0;O<B/2;O++){var G=L[O];L[O]=L[B-O-1],L[B-O-1]=G,G=P[O],P[O]=-P[B-O-1],P[B-O-1]=-G}},y.prototype.normalize13b=function(L,P){for(var B=0,O=0;O<P/2;O++){var G=Math.round(L[2*O+1]/P)*8192+Math.round(L[2*O]/P)+B;L[O]=G&67108863,G<67108864?B=0:B=G/67108864|0}return L},y.prototype.convert13b=function(L,P,B,O){for(var G=0,J=0;J<P;J++)G=G+(L[J]|0),B[2*J]=G&8191,G=G>>>13,B[2*J+1]=G&8191,G=G>>>13;for(J=2*P;J<O;++J)B[J]=0;s(G===0),s((G&-8192)===0)},y.prototype.stub=function(L){for(var P=new Array(L),B=0;B<L;B++)P[B]=0;return P},y.prototype.mulp=function(L,P,B){var O=2*this.guessLen13b(L.length,P.length),G=this.makeRBT(O),J=this.stub(O),j=new Array(O),V=new Array(O),q=new Array(O),Z=new Array(O),re=new Array(O),$=new Array(O),ae=B.words;ae.length=O,this.convert13b(L.words,L.length,j,O),this.convert13b(P.words,P.length,Z,O),this.transform(j,J,V,q,O,G),this.transform(Z,J,re,$,O,G);for(var Q=0;Q<O;Q++){var te=V[Q]*re[Q]-q[Q]*$[Q];q[Q]=V[Q]*$[Q]+q[Q]*re[Q],V[Q]=te}return this.conjugate(V,q,O),this.transform(V,q,ae,J,O,G),this.conjugate(ae,J,O),this.normalize13b(ae,O),B.negative=L.negative^P.negative,B.length=L.length+P.length,B.strip()},c.prototype.mul=function(L){var P=new c(null);return P.words=new Array(this.length+L.length),this.mulTo(L,P)},c.prototype.mulf=function(L){var P=new c(null);return P.words=new Array(this.length+L.length),w(this,L,P)},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 P=0,B=0;B<this.length;B++){var O=(this.words[B]|0)*L,G=(O&67108863)+(P&67108863);P>>=26,P+=O/67108864|0,P+=G>>>26,this.words[B]=G&67108863}return P!==0&&(this.words[B]=P,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 P=S(L);if(P.length===0)return new c(1);for(var B=this,O=0;O<P.length&&P[O]===0;O++,B=B.sqr());if(++O<P.length)for(var G=B.sqr();O<P.length;O++,G=G.sqr())P[O]!==0&&(B=B.mul(G));return B},c.prototype.iushln=function(L){s(typeof L=="number"&&L>=0);var P=L%26,B=(L-P)/26,O=67108863>>>26-P<<26-P,G;if(P!==0){var J=0;for(G=0;G<this.length;G++){var j=this.words[G]&O,V=(this.words[G]|0)-j<<P;this.words[G]=V|J,J=j>>>26-P}J&&(this.words[G]=J,this.length++)}if(B!==0){for(G=this.length-1;G>=0;G--)this.words[G+B]=this.words[G];for(G=0;G<B;G++)this.words[G]=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,P,B){s(typeof L=="number"&&L>=0);var O;P?O=(P-P%26)/26:O=0;var G=L%26,J=Math.min((L-G)/26,this.length),j=67108863^67108863>>>G<<G,V=B;if(O-=J,O=Math.max(0,O),V){for(var q=0;q<J;q++)V.words[q]=this.words[q];V.length=J}if(J!==0)if(this.length>J)for(this.length-=J,q=0;q<this.length;q++)this.words[q]=this.words[q+J];else this.words[0]=0,this.length=1;var Z=0;for(q=this.length-1;q>=0&&(Z!==0||q>=O);q--){var re=this.words[q]|0;this.words[q]=Z<<26-G|re>>>G,Z=re&j}return V&&Z!==0&&(V.words[V.length++]=Z),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(L,P,B){return s(this.negative===0),this.iushrn(L,P,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 P=L%26,B=(L-P)/26,O=1<<P;if(this.length<=B)return!1;var G=this.words[B];return!!(G&O)},c.prototype.imaskn=function(L){s(typeof L=="number"&&L>=0);var P=L%26,B=(L-P)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(P!==0&&B++,this.length=Math.min(B,this.length),P!==0){var O=67108863^67108863>>>P<<P;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 P=0;P<this.length&&this.words[P]>=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+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 P=0;P<this.length&&this.words[P]<0;P++)this.words[P]+=67108864,this.words[P+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,P,B){var O=L.length+B,G;this._expand(O);var J,j=0;for(G=0;G<L.length;G++){J=(this.words[G+B]|0)+j;var V=(L.words[G]|0)*P;J-=V&67108863,j=(J>>26)-(V/67108864|0),this.words[G+B]=J&67108863}for(;G<this.length-B;G++)J=(this.words[G+B]|0)+j,j=J>>26,this.words[G+B]=J&67108863;if(j===0)return this.strip();for(s(j===-1),j=0,G=0;G<this.length;G++)J=-(this.words[G]|0)+j,j=J>>26,this.words[G]=J&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(L,P){var B=this.length-L.length,O=this.clone(),G=L,J=G.words[G.length-1]|0,j=this._countBits(J);B=26-j,B!==0&&(G=G.ushln(B),O.iushln(B),J=G.words[G.length-1]|0);var V=O.length-G.length,q;if(P!=="mod"){q=new c(null),q.length=V+1,q.words=new Array(q.length);for(var Z=0;Z<q.length;Z++)q.words[Z]=0}var re=O.clone()._ishlnsubmul(G,1,V);re.negative===0&&(O=re,q&&(q.words[V]=1));for(var $=V-1;$>=0;$--){var ae=(O.words[G.length+$]|0)*67108864+(O.words[G.length+$-1]|0);for(ae=Math.min(ae/J|0,67108863),O._ishlnsubmul(G,ae,$);O.negative!==0;)ae--,O.negative=0,O._ishlnsubmul(G,1,$),O.isZero()||(O.negative^=1);q&&(q.words[$]=ae)}return q&&q.strip(),O.strip(),P!=="div"&&B!==0&&O.iushrn(B),{div:q||null,mod:O}},c.prototype.divmod=function(L,P,B){if(s(!L.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var O,G,J;return this.negative!==0&&L.negative===0?(J=this.neg().divmod(L,P),P!=="mod"&&(O=J.div.neg()),P!=="div"&&(G=J.mod.neg(),B&&G.negative!==0&&G.iadd(L)),{div:O,mod:G}):this.negative===0&&L.negative!==0?(J=this.divmod(L.neg(),P),P!=="mod"&&(O=J.div.neg()),{div:O,mod:J.mod}):(this.negative&L.negative)!==0?(J=this.neg().divmod(L.neg(),P),P!=="div"&&(G=J.mod.neg(),B&&G.negative!==0&&G.isub(L)),{div:J.div,mod:G}):L.length>this.length||this.cmp(L)<0?{div:new c(0),mod:this}:L.length===1?P==="div"?{div:this.divn(L.words[0]),mod:null}:P==="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,P)},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 P=this.divmod(L);if(P.mod.isZero())return P.div;var B=P.mod.abs(),O=L.abs().iushrn(1),G=L.words[0]&1,J=B.cmp(O);if(J<0||G===1&&J===0)return P.div;var j=new c(1);return j.negative=this.negative^L.negative,P.div.iadd(j)},c.prototype.modn=function(L){s(L<=67108863);for(var P=(1<<26)%L,B=0,O=this.length-1;O>=0;O--)B=(P*B+(this.words[O]|0))%L;return B},c.prototype.idivn=function(L){s(L<=67108863);for(var P=0,B=this.length-1;B>=0;B--){var O=(this.words[B]|0)+P*67108864;this.words[B]=O/L|0,P=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 P=this,B=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var O=new c(1),G=new c(0),J=new c(0),j=new c(1),V=0;P.isEven()&&B.isEven();)P.iushrn(1),B.iushrn(1),++V;for(var q=B.clone(),Z=P.clone();!P.isZero();){for(var re=0,$=1;(P.words[0]&$)===0&&re<26;++re,$<<=1);if(re>0)for(P.iushrn(re);re-- >0;)(O.isOdd()||G.isOdd())&&(O.iadd(q),G.isub(Z)),O.iushrn(1),G.iushrn(1);for(var ae=0,Q=1;(B.words[0]&Q)===0&&ae<26;++ae,Q<<=1);if(ae>0)for(B.iushrn(ae);ae-- >0;)(J.isOdd()||j.isOdd())&&(J.iadd(q),j.isub(Z)),J.iushrn(1),j.iushrn(1);P.cmp(B)>=0?(P.isub(B),O.isub(J),G.isub(j)):(B.isub(P),J.isub(O),j.isub(G))}return{a:J,b:j,gcd:B.iushln(V)}},c.prototype._invmp=function(L){s(L.negative===0),s(!L.isZero());var P=this,B=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var O=new c(1),G=new c(0),J=B.clone();P.cmpn(1)>0&&B.cmpn(1)>0;){for(var j=0,V=1;(P.words[0]&V)===0&&j<26;++j,V<<=1);if(j>0)for(P.iushrn(j);j-- >0;)O.isOdd()&&O.iadd(J),O.iushrn(1);for(var q=0,Z=1;(B.words[0]&Z)===0&&q<26;++q,Z<<=1);if(q>0)for(B.iushrn(q);q-- >0;)G.isOdd()&&G.iadd(J),G.iushrn(1);P.cmp(B)>=0?(P.isub(B),O.isub(G)):(B.isub(P),G.isub(O))}var re;return P.cmpn(1)===0?re=O:re=G,re.cmpn(0)<0&&re.iadd(L),re},c.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var P=this.clone(),B=L.clone();P.negative=0,B.negative=0;for(var O=0;P.isEven()&&B.isEven();O++)P.iushrn(1),B.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;B.isEven();)B.iushrn(1);var G=P.cmp(B);if(G<0){var J=P;P=B,B=J}else if(G===0||B.cmpn(1)===0)break;P.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 P=L%26,B=(L-P)/26,O=1<<P;if(this.length<=B)return this._expand(B+1),this.words[B]|=O,this;for(var G=O,J=B;G!==0&&J<this.length;J++){var j=this.words[J]|0;j+=G,G=j>>>26,j&=67108863,this.words[J]=j}return G!==0&&(this.words[J]=G,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(L){var P=L<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var B;if(this.length>1)B=1;else{P&&(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 P=this.ucmp(L);return this.negative!==0?-P|0:P},c.prototype.ucmp=function(L){if(this.length>L.length)return 1;if(this.length<L.length)return-1;for(var P=0,B=this.length-1;B>=0;B--){var O=this.words[B]|0,G=L.words[B]|0;if(O!==G){O<G?P=-1:O>G&&(P=1);break}}return P},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 I(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(F,L){this.name=F,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 P=L,B;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),B=P.bitLength();while(B>this.n);var O=B<this.n?-1:P.ucmp(this.p);return O===0?(P.words[0]=0,P.length=1):O>0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},A.prototype.split=function(L,P){L.iushrn(this.n,0,P)},A.prototype.imulK=function(L){return L.imul(this.k)};function p(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(p,A),p.prototype.split=function(L,P){for(var B=4194303,O=Math.min(L.length,9),G=0;G<O;G++)P.words[G]=L.words[G];if(P.length=O,L.length<=9){L.words[0]=0,L.length=1;return}var J=L.words[9];for(P.words[P.length++]=J&B,G=10;G<L.length;G++){var j=L.words[G]|0;L.words[G-10]=(j&B)<<4|J>>>22,J=j}J>>>=22,L.words[G-10]=J,J===0&&L.length>10?L.length-=10:L.length-=9},p.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var P=0,B=0;B<L.length;B++){var O=L.words[B]|0;P+=O*977,L.words[B]=P&67108863,P=O*64+(P/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 P=0,B=0;B<L.length;B++){var O=(L.words[B]|0)*19+P,G=O&67108863;O>>>=26,L.words[B]=G,P=O}return P!==0&&(L.words[L.length++]=P),L},c._prime=function(L){if(v[L])return v[L];var P;if(L==="k256")P=new p;else if(L==="p224")P=new D;else if(L==="p192")P=new E;else if(L==="p25519")P=new R;else throw new Error("Unknown prime "+L);return v[L]=P,P};function I(F){if(typeof F=="string"){var L=c._prime(F);this.m=L.p,this.prime=L}else s(F.gtn(1),"modulus must be greater than 1"),this.m=F,this.prime=null}I.prototype._verify1=function(L){s(L.negative===0,"red works only with positives"),s(L.red,"red works only with red numbers")},I.prototype._verify2=function(L,P){s((L.negative|P.negative)===0,"red works only with positives"),s(L.red&&L.red===P.red,"red works only with red numbers")},I.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},I.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},I.prototype.add=function(L,P){this._verify2(L,P);var B=L.add(P);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},I.prototype.iadd=function(L,P){this._verify2(L,P);var B=L.iadd(P);return B.cmp(this.m)>=0&&B.isub(this.m),B},I.prototype.sub=function(L,P){this._verify2(L,P);var B=L.sub(P);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},I.prototype.isub=function(L,P){this._verify2(L,P);var B=L.isub(P);return B.cmpn(0)<0&&B.iadd(this.m),B},I.prototype.shl=function(L,P){return this._verify1(L),this.imod(L.ushln(P))},I.prototype.imul=function(L,P){return this._verify2(L,P),this.imod(L.imul(P))},I.prototype.mul=function(L,P){return this._verify2(L,P),this.imod(L.mul(P))},I.prototype.isqr=function(L){return this.imul(L,L.clone())},I.prototype.sqr=function(L){return this.mul(L,L)},I.prototype.sqrt=function(L){if(L.isZero())return L.clone();var P=this.m.andln(3);if(s(P%2===1),P===3){var B=this.m.add(new c(1)).iushrn(2);return this.pow(L,B)}for(var O=this.m.subn(1),G=0;!O.isZero()&&O.andln(1)===0;)G++,O.iushrn(1);s(!O.isZero());var J=new c(1).toRed(this),j=J.redNeg(),V=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new c(2*q*q).toRed(this);this.pow(q,V).cmp(j)!==0;)q.redIAdd(j);for(var Z=this.pow(q,O),re=this.pow(L,O.addn(1).iushrn(1)),$=this.pow(L,O),ae=G;$.cmp(J)!==0;){for(var Q=$,te=0;Q.cmp(J)!==0;te++)Q=Q.redSqr();s(te<ae);var ue=this.pow(Z,new c(1).iushln(ae-te-1));re=re.redMul(ue),Z=ue.redSqr(),$=$.redMul(Z),ae=te}return re},I.prototype.invm=function(L){var P=L._invmp(this.m);return P.negative!==0?(P.negative=0,this.imod(P).redNeg()):this.imod(P)},I.prototype.pow=function(L,P){if(P.isZero())return new c(1).toRed(this);if(P.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 G=2;G<O.length;G++)O[G]=this.mul(O[G-1],L);var J=O[0],j=0,V=0,q=P.bitLength()%26;for(q===0&&(q=26),G=P.length-1;G>=0;G--){for(var Z=P.words[G],re=q-1;re>=0;re--){var $=Z>>re&1;if(J!==O[0]&&(J=this.sqr(J)),$===0&&j===0){V=0;continue}j<<=1,j|=$,V++,!(V!==B&&(G!==0||re!==0))&&(J=this.mul(J,O[j]),V=0,j=0)}q=26}return J},I.prototype.convertTo=function(L){var P=L.umod(this.m);return P===L?P.clone():P},I.prototype.convertFrom=function(L){var P=L.clone();return P.red=null,P},c.mont=function(L){return new z(L)};function z(F){I.call(this,F),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(z,I),z.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},z.prototype.convertFrom=function(L){var P=this.imod(L.mul(this.rinv));return P.red=null,P},z.prototype.imul=function(L,P){if(L.isZero()||P.isZero())return L.words[0]=0,L.length=1,L;var B=L.imul(P),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=B.isub(O).iushrn(this.shift),J=G;return G.cmp(this.m)>=0?J=G.isub(this.m):G.cmpn(0)<0&&(J=G.iadd(this.m)),J._forceRed(this)},z.prototype.mul=function(L,P){if(L.isZero()||P.isZero())return new c(0)._forceRed(this);var B=L.mul(P),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=B.isub(O).iushrn(this.shift),J=G;return G.cmp(this.m)>=0?J=G.isub(this.m):G.cmpn(0)<0&&(J=G.iadd(this.m)),J._forceRed(this)},z.prototype.invm=function(L){var P=this.imod(L._invmp(this.m).mul(this.r2));return P._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 g=new Array(c),b=0;for(l=0;l<f;++l){var h=i[l],_=h.length;for(u=0;u<_;++u){var T=g[b++]=new Array(_-1),m=0;for(s=0;s<_;++s)s!==u&&(T[m++]=h[s]);if(u&1){var k=T[1];T[1]=T[0],T[0]=k}}}return g}},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 x=0;x<k;++x)if(!(S[x]<=S[x+k]))return!0;return!1}function c(k,S,x,M){for(var d=0,w=0,y=0,v=k.length;y<v;++y){var A=k[y];if(!f(S,A)){for(var p=0;p<2*S;++p)x[d++]=A[p];M[w++]=y}}return w}function g(k,S,x,M){var d=k.length,w=S.length;if(!(d<=0||w<=0)){var y=k[0].length>>>1;if(!(y<=0)){var v,A=l.mallocDouble(2*y*d),p=l.mallocInt32(d);if(d=c(k,y,A,p),d>0){if(y===1&&M)u.init(d),v=u.sweepComplete(y,x,0,d,A,p,0,d,A,p);else{var D=l.mallocDouble(2*y*w),E=l.mallocInt32(w);w=c(S,y,D,E),w>0&&(u.init(d+w),y===1?v=u.sweepBipartite(y,x,0,d,A,p,0,w,D,E):v=s(y,x,M,d,A,p,w,D,E),l.free(D),l.free(E))}l.free(A),l.free(p)}return v}}}var b;function h(k,S){b.push([k,S])}function _(k){return b=[],g(k,k,h,!0),b}function T(k,S){return b=[],g(k,S,h,!1),b}function m(k,S,x){switch(arguments.length){case 1:return _(k);case 2:return typeof S=="function"?g(k,k,S,!0):T(k,S);case 3:return g(k,S,x,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455(a,o){"use strict";function i(){function s(g,b,h,_,T,m,k,S,x,M,d){for(var w=2*g,y=_,v=w*_;y<T;++y,v+=w){var A=m[b+v],p=m[b+v+g],D=k[y];e:for(var E=S,R=w*S;E<x;++E,R+=w){var I=M[b+R],z=M[b+R+g],F=d[E];if(!(z<A||p<I)){for(var L=b+1;L<g;++L){var P=m[L+v],B=m[L+g+v],O=M[L+R],G=M[L+g+R];if(B<O||G<P)continue e}var J=h(D,F);if(J!==void 0)return J}}}}function f(g,b,h,_,T,m,k,S,x,M,d){for(var w=2*g,y=S,v=w*S;y<x;++y,v+=w){var A=M[b+v],p=M[b+v+g],D=d[y];e:for(var E=_,R=w*_;E<T;++E,R+=w){var I=m[b+R],z=m[b+R+g],F=k[E];if(!(p<I||z<A)){for(var L=b+1;L<g;++L){var P=m[L+R],B=m[L+g+R],O=M[L+v],G=M[L+g+v];if(B<O||G<P)continue e}var J=h(F,D);if(J!==void 0)return J}}}}function c(g,b,h,_,T,m,k,S,x,M,d){return T-_>x-S?s(g,b,h,_,T,m,k,S,x,M,d):f(g,b,h,_,T,m,k,S,x,M,d)}return c}function l(){function s(h,_,T,m,k,S,x,M,d,w,y){for(var v=2*h,A=m,p=v*m;A<k;++A,p+=v){var D=S[_+p],E=S[_+p+h],R=x[A];e:for(var I=M,z=v*M;I<d;++I,z+=v){var F=w[_+z],L=y[I];if(!(F<=D||E<F)){for(var P=_+1;P<h;++P){var B=S[P+p],O=S[P+h+p],G=w[P+z],J=w[P+h+z];if(O<G||J<B)continue e}var j=T(L,R);if(j!==void 0)return j}}}}function f(h,_,T,m,k,S,x,M,d,w,y){for(var v=2*h,A=m,p=v*m;A<k;++A,p+=v){var D=S[_+p],E=S[_+p+h],R=x[A];e:for(var I=M,z=v*M;I<d;++I,z+=v){var F=w[_+z],L=y[I];if(!(F<D||E<F)){for(var P=_+1;P<h;++P){var B=S[P+p],O=S[P+h+p],G=w[P+z],J=w[P+h+z];if(O<G||J<B)continue e}var j=T(R,L);if(j!==void 0)return j}}}}function c(h,_,T,m,k,S,x,M,d,w,y){for(var v=2*h,A=M,p=v*M;A<d;++A,p+=v){var D=w[_+p],E=y[A];e:for(var R=m,I=v*m;R<k;++R,I+=v){var z=S[_+I],F=S[_+I+h],L=x[R];if(!(D<=z||F<D)){for(var P=_+1;P<h;++P){var B=S[P+I],O=S[P+h+I],G=w[P+p],J=w[P+h+p];if(O<G||J<B)continue e}var j=T(E,L);if(j!==void 0)return j}}}}function g(h,_,T,m,k,S,x,M,d,w,y){for(var v=2*h,A=M,p=v*M;A<d;++A,p+=v){var D=w[_+p],E=y[A];e:for(var R=m,I=v*m;R<k;++R,I+=v){var z=S[_+I],F=S[_+I+h],L=x[R];if(!(D<z||F<D)){for(var P=_+1;P<h;++P){var B=S[P+I],O=S[P+h+I],G=w[P+p],J=w[P+h+p];if(O<G||J<B)continue e}var j=T(L,E);if(j!==void 0)return j}}}}function b(h,_,T,m,k,S,x,M,d,w,y,v){return S-k>w-d?m?s(h,_,T,k,S,x,M,d,w,y,v):f(h,_,T,k,S,x,M,d,w,y,v):m?c(h,_,T,k,S,x,M,d,w,y,v):g(h,_,T,k,S,x,M,d,w,y,v)}return b}function u(s){return s?i():l()}o.partial=u(!1),o.full=u(!0)},7150(a,o,i){"use strict";a.exports=F;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,c=s.full,g=i(855),b=i(3545),h=i(8105),_=128,T=1<<22,m=1<<22,k=h("!(lo>=p0)&&!(p1>=hi)"),S=h("lo===p0"),x=h("lo<p0"),M=h("hi<=p0"),d=h("lo<=p0&&p0<=hi"),w=h("lo<p0&&p0<=hi"),y=6,v=2,A=1024,p=l.mallocInt32(A),D=l.mallocDouble(A);function E(L,P){var B=8*u.log2(P+1)*(L+1)|0,O=u.nextPow2(y*B);p.length<O&&(l.free(p),p=l.mallocInt32(O));var G=u.nextPow2(v*B);D.length<G&&(l.free(D),D=l.mallocDouble(G))}function R(L,P,B,O,G,J,j,V,q){var Z=y*L;p[Z]=P,p[Z+1]=B,p[Z+2]=O,p[Z+3]=G,p[Z+4]=J,p[Z+5]=j;var re=v*L;D[re]=V,D[re+1]=q}function I(L,P,B,O,G,J,j,V,q,Z,re){var $=2*L,ae=q*$,Q=Z[ae+P];e:for(var te=G,ue=G*$;te<J;++te,ue+=$){var ee=j[ue+P],ie=j[ue+P+L];if(!(Q<ee||ie<Q)&&!(O&&Q===ee)){for(var fe=V[te],we=P+1;we<L;++we){var ee=j[ue+we],ie=j[ue+we+L],Te=Z[ae+we],ke=Z[ae+we+L];if(ie<Te||ke<ee)continue e}var ge;if(O?ge=B(re,fe):ge=B(fe,re),ge!==void 0)return ge}}}function z(L,P,B,O,G,J,j,V,q,Z){var re=2*L,$=V*re,ae=q[$+P];e:for(var Q=O,te=O*re;Q<G;++Q,te+=re){var ue=j[Q];if(ue!==Z){var ee=J[te+P],ie=J[te+P+L];if(!(ae<ee||ie<ae)){for(var fe=P+1;fe<L;++fe){var ee=J[te+fe],ie=J[te+fe+L],we=q[$+fe],Te=q[$+fe+L];if(ie<we||Te<ee)continue e}var ke=B(ue,Z);if(ke!==void 0)return ke}}}}function F(L,P,B,O,G,J,j,V,q){E(L,O+j);var Z=0,re=2*L,$;for(R(Z++,0,0,O,0,j,B?16:0,-1/0,1/0),B||R(Z++,0,0,j,0,O,1,-1/0,1/0);Z>0;){Z-=1;var ae=Z*y,Q=p[ae],te=p[ae+1],ue=p[ae+2],ee=p[ae+3],ie=p[ae+4],fe=p[ae+5],we=Z*v,Te=D[we],ke=D[we+1],ge=fe&1,Ee=!!(fe&16),Le=G,se=J,X=V,K=q;if(ge&&(Le=V,se=q,X=G,K=J),!(fe&2&&(ue=x(L,Q,te,ue,Le,se,ke),te>=ue))&&!(fe&4&&(te=M(L,Q,te,ue,Le,se,Te),te>=ue))){var ye=ue-te,oe=ie-ee;if(Ee){if(L*ye*(ye+oe)<m){if($=g.scanComplete(L,Q,P,te,ue,Le,se,ee,ie,X,K),$!==void 0)return $;continue}}else if(L*Math.min(ye,oe)<_){if($=f(L,Q,P,ge,te,ue,Le,se,ee,ie,X,K),$!==void 0)return $;continue}else if(L*ye*oe<T){if($=g.scanBipartite(L,Q,P,ge,te,ue,Le,se,ee,ie,X,K),$!==void 0)return $;continue}var de=k(L,Q,te,ue,Le,se,Te,ke);if(te<de)if(L*(de-te)<_){if($=c(L,Q+1,P,te,de,Le,se,ee,ie,X,K),$!==void 0)return $}else if(Q===L-2){if(ge?$=g.sweepBipartite(L,P,ee,ie,X,K,te,de,Le,se):$=g.sweepBipartite(L,P,te,de,Le,se,ee,ie,X,K),$!==void 0)return $}else R(Z++,Q+1,te,de,ee,ie,ge,-1/0,1/0),R(Z++,Q+1,ee,ie,te,de,ge^1,-1/0,1/0);if(de<ue){var pe=b(L,Q,ee,ie,X,K),me=X[re*pe+Q],Se=S(L,Q,pe,ie,X,K,me);if(Se<ie&&R(Z++,Q,de,ue,Se,ie,(ge|4)+(Ee?16:0),me,ke),ee<pe&&R(Z++,Q,de,ue,ee,pe,(ge|2)+(Ee?16:0),Te,me),pe+1===Se){if(Ee?$=z(L,Q,P,de,ue,Le,se,pe,X,K[pe]):$=I(L,Q,P,ge,de,ue,Le,se,pe,X,K[pe]),$!==void 0)return $}else if(pe<Se){var ve;if(Ee){if(ve=d(L,Q,de,ue,Le,se,me),de<ve){var he=S(L,Q,de,ve,Le,se,me);if(Q===L-2){if(de<he&&($=g.sweepComplete(L,P,de,he,Le,se,pe,Se,X,K),$!==void 0)||he<ve&&($=g.sweepBipartite(L,P,he,ve,Le,se,pe,Se,X,K),$!==void 0))return $}else de<he&&R(Z++,Q+1,de,he,pe,Se,16,-1/0,1/0),he<ve&&(R(Z++,Q+1,he,ve,pe,Se,0,-1/0,1/0),R(Z++,Q+1,pe,Se,he,ve,1,-1/0,1/0))}}else ge?ve=w(L,Q,de,ue,Le,se,me):ve=d(L,Q,de,ue,Le,se,me),de<ve&&(Q===L-2?ge?$=g.sweepBipartite(L,P,pe,Se,X,K,de,ve,Le,se):$=g.sweepBipartite(L,P,de,ve,Le,se,pe,Se,X,K):(R(Z++,Q+1,de,ve,pe,Se,ge,-1/0,1/0),R(Z++,Q+1,pe,Se,de,ve,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(g,b,h,_,T,m){for(var k=2*g,S=k*(h+1)+b,x=h+1;x<_;++x,S+=k)for(var M=T[S],d=x,w=k*(x-1);d>h&&T[w+b]>M;--d,w-=k){for(var y=w,v=w+k,A=0;A<k;++A,++y,++v){var p=T[y];T[y]=T[v],T[v]=p}var D=m[d];m[d]=m[d-1],m[d-1]=D}}function c(g,b,h,_,T,m){if(_<=h+1)return h;for(var k=h,S=_,x=_+h>>>1,M=2*g,d=x,w=T[M*x+b];k<S;){if(S-k<s){f(g,b,k,S,T,m),w=T[M*x+b];break}var y=S-k,v=Math.random()*y+k|0,A=T[M*v+b],p=Math.random()*y+k|0,D=T[M*p+b],E=Math.random()*y+k|0,R=T[M*E+b];A<=D?R>=D?(d=p,w=D):A>=R?(d=v,w=A):(d=E,w=R):D>=R?(d=p,w=D):R>=A?(d=v,w=A):(d=E,w=R);for(var F=M*(S-1),L=M*d,I=0;I<M;++I,++F,++L){var z=T[F];T[F]=T[L],T[L]=z}var P=m[S-1];m[S-1]=m[d],m[d]=P,d=u(g,b,k,S-1,T,m,w);for(var F=M*(S-1),L=M*d,I=0;I<M;++I,++F,++L){var z=T[F];T[F]=T[L],T[L]=z}var P=m[S-1];if(m[S-1]=m[d],m[d]=P,x<d){for(S=d-1;k<S&&T[M*(S-1)+b]===w;)S-=1;S+=1}else if(d<x)for(k=d+1;k<S&&T[M*k+b]===w;)k+=1;else break}return u(g,b,h,x,T,m,T[M*x+b])}},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":g,"lo<=p0&&p0<=hi":c,"!(lo>=p0)&&!(p1>=hi)":b};function i(h){return o[h]}function l(h,_,T,m,k,S,x){for(var M=2*h,d=M*T,w=d,y=T,v=_,A=h+_,p=T;m>p;++p,d+=M){var D=k[d+v];if(D===x)if(y===p)y+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[d+E];k[d+E]=k[w],k[w++]=R}var I=S[p];S[p]=S[y],S[y++]=I}}return y}function u(h,_,T,m,k,S,x){for(var M=2*h,d=M*T,w=d,y=T,v=_,A=h+_,p=T;m>p;++p,d+=M){var D=k[d+v];if(D<x)if(y===p)y+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[d+E];k[d+E]=k[w],k[w++]=R}var I=S[p];S[p]=S[y],S[y++]=I}}return y}function s(h,_,T,m,k,S,x){for(var M=2*h,d=M*T,w=d,y=T,v=_,A=h+_,p=T;m>p;++p,d+=M){var D=k[d+A];if(D<=x)if(y===p)y+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[d+E];k[d+E]=k[w],k[w++]=R}var I=S[p];S[p]=S[y],S[y++]=I}}return y}function f(h,_,T,m,k,S,x){for(var M=2*h,d=M*T,w=d,y=T,v=_,A=h+_,p=T;m>p;++p,d+=M){var D=k[d+A];if(D<=x)if(y===p)y+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[d+E];k[d+E]=k[w],k[w++]=R}var I=S[p];S[p]=S[y],S[y++]=I}}return y}function c(h,_,T,m,k,S,x){for(var M=2*h,d=M*T,w=d,y=T,v=_,A=h+_,p=T;m>p;++p,d+=M){var D=k[d+v],E=k[d+A];if(D<=x&&x<=E)if(y===p)y+=1,w+=M;else{for(var R=0;M>R;++R){var I=k[d+R];k[d+R]=k[w],k[w++]=I}var z=S[p];S[p]=S[y],S[y++]=z}}return y}function g(h,_,T,m,k,S,x){for(var M=2*h,d=M*T,w=d,y=T,v=_,A=h+_,p=T;m>p;++p,d+=M){var D=k[d+v],E=k[d+A];if(D<x&&x<=E)if(y===p)y+=1,w+=M;else{for(var R=0;M>R;++R){var I=k[d+R];k[d+R]=k[w],k[w++]=I}var z=S[p];S[p]=S[y],S[y++]=z}}return y}function b(h,_,T,m,k,S,x,M){for(var d=2*h,w=d*T,y=w,v=T,A=_,p=h+_,D=T;m>D;++D,w+=d){var E=k[w+A],R=k[w+p];if(!(E>=x)&&!(M>=R))if(v===D)v+=1,y+=d;else{for(var I=0;d>I;++I){var z=k[w+I];k[w+I]=k[y],k[y++]=z}var F=S[D];S[D]=S[v],S[v++]=F}}return v}},4192(a){"use strict";a.exports=i;var o=32;function i(_,T){T<=4*o?l(0,T-1,_):h(0,T-1,_)}function l(_,T,m){for(var k=2*(_+1),S=_+1;S<=T;++S){for(var x=m[k++],M=m[k++],d=S,w=k-2;d-- >_;){var y=m[w-2],v=m[w-1];if(y<x)break;if(y===x&&v<M)break;m[w]=y,m[w+1]=v,w-=2}m[w]=x,m[w+1]=M}}function u(_,T,m){_*=2,T*=2;var k=m[_],S=m[_+1];m[_]=m[T],m[_+1]=m[T+1],m[T]=k,m[T+1]=S}function s(_,T,m){_*=2,T*=2,m[_]=m[T],m[_+1]=m[T+1]}function f(_,T,m,k){_*=2,T*=2,m*=2;var S=k[_],x=k[_+1];k[_]=k[T],k[_+1]=k[T+1],k[T]=k[m],k[T+1]=k[m+1],k[m]=S,k[m+1]=x}function c(_,T,m,k,S){_*=2,T*=2,S[_]=S[T],S[T]=m,S[_+1]=S[T+1],S[T+1]=k}function g(_,T,m){_*=2,T*=2;var k=m[_],S=m[T];return k<S?!1:k===S?m[_+1]>m[T+1]:!0}function b(_,T,m,k){_*=2;var S=k[_];return S<T?!0:S===T?k[_+1]<m:!1}function h(_,T,m){var k=(T-_+1)/6|0,S=_+k,x=T-k,M=_+T>>1,d=M-k,w=M+k,y=S,v=d,A=M,p=w,D=x,E=_+1,R=T-1,I=0;g(y,v,m)&&(I=y,y=v,v=I),g(p,D,m)&&(I=p,p=D,D=I),g(y,A,m)&&(I=y,y=A,A=I),g(v,A,m)&&(I=v,v=A,A=I),g(y,p,m)&&(I=y,y=p,p=I),g(A,p,m)&&(I=A,A=p,p=I),g(v,D,m)&&(I=v,v=D,D=I),g(v,A,m)&&(I=v,v=A,A=I),g(p,D,m)&&(I=p,p=D,D=I);for(var z=m[2*v],F=m[2*v+1],L=m[2*p],P=m[2*p+1],B=2*y,O=2*A,G=2*D,J=2*S,j=2*M,V=2*x,q=0;q<2;++q){var Z=m[B+q],re=m[O+q],$=m[G+q];m[J+q]=Z,m[j+q]=re,m[V+q]=$}s(d,_,m),s(w,T,m);for(var ae=E;ae<=R;++ae)if(b(ae,z,F,m))ae!==E&&u(ae,E,m),++E;else if(!b(ae,L,P,m))for(;;)if(b(R,L,P,m)){b(R,z,F,m)?(f(ae,E,R,m),++E,--R):(u(ae,R,m),--R);break}else{if(--R<ae)break;continue}c(_,E-1,z,F,m),c(T,R+1,L,P,m),E-2-_<=o?l(_,E-2,m):h(_,E-2,m),T-(R+2)<=o?l(R+2,T,m):h(R+2,T,m),R-E<=o?l(E,R,m):h(E,R,m)}},855(a,o,i){"use strict";a.exports={init:S,sweepBipartite:d,sweepComplete:w,scanBipartite:y,scanComplete:v};var l=i(1888),u=i(8828),s=i(4192),f=1<<28,c=1024,g=l.mallocInt32(c),b=l.mallocInt32(c),h=l.mallocInt32(c),_=l.mallocInt32(c),T=l.mallocInt32(c),m=l.mallocInt32(c),k=l.mallocDouble(c*8);function S(A){var p=u.nextPow2(A);g.length<p&&(l.free(g),g=l.mallocInt32(p)),b.length<p&&(l.free(b),b=l.mallocInt32(p)),h.length<p&&(l.free(h),h=l.mallocInt32(p)),_.length<p&&(l.free(_),_=l.mallocInt32(p)),T.length<p&&(l.free(T),T=l.mallocInt32(p)),m.length<p&&(l.free(m),m=l.mallocInt32(p));var D=8*p;k.length<D&&(l.free(k),k=l.mallocDouble(D))}function x(A,p,D,E){var R=p[E],I=A[D-1];A[R]=I,p[I]=R}function M(A,p,D,E){A[D]=E,p[E]=D}function d(A,p,D,E,R,I,z,F,L,P){for(var B=0,O=2*A,G=A-1,J=O-1,j=D;j<E;++j){var V=I[j],q=O*j;k[B++]=R[q+G],k[B++]=-(V+1),k[B++]=R[q+J],k[B++]=V}for(var j=z;j<F;++j){var V=P[j]+f,Z=O*j;k[B++]=L[Z+G],k[B++]=-V,k[B++]=L[Z+J],k[B++]=V}var re=B>>>1;s(k,re);for(var $=0,ae=0,j=0;j<re;++j){var Q=k[2*j+1]|0;if(Q>=f)Q=Q-f|0,x(h,_,ae--,Q);else if(Q>=0)x(g,b,$--,Q);else if(Q<=-f){Q=-Q-f|0;for(var te=0;te<$;++te){var ue=p(g[te],Q);if(ue!==void 0)return ue}M(h,_,ae++,Q)}else{Q=-Q-1|0;for(var te=0;te<ae;++te){var ue=p(Q,h[te]);if(ue!==void 0)return ue}M(g,b,$++,Q)}}}function w(A,p,D,E,R,I,z,F,L,P){for(var B=0,O=2*A,G=A-1,J=O-1,j=D;j<E;++j){var V=I[j]+1<<1,q=O*j;k[B++]=R[q+G],k[B++]=-V,k[B++]=R[q+J],k[B++]=V}for(var j=z;j<F;++j){var V=P[j]+1<<1,Z=O*j;k[B++]=L[Z+G],k[B++]=-V|1,k[B++]=L[Z+J],k[B++]=V|1}var re=B>>>1;s(k,re);for(var $=0,ae=0,Q=0,j=0;j<re;++j){var te=k[2*j+1]|0,ue=te&1;if(j<re-1&&te>>1===k[2*j+3]>>1&&(ue=2,j+=1),te<0){for(var ee=-(te>>1)-1,ie=0;ie<Q;++ie){var fe=p(T[ie],ee);if(fe!==void 0)return fe}if(ue!==0)for(var ie=0;ie<$;++ie){var fe=p(g[ie],ee);if(fe!==void 0)return fe}if(ue!==1)for(var ie=0;ie<ae;++ie){var fe=p(h[ie],ee);if(fe!==void 0)return fe}ue===0?M(g,b,$++,ee):ue===1?M(h,_,ae++,ee):ue===2&&M(T,m,Q++,ee)}else{var ee=(te>>1)-1;ue===0?x(g,b,$--,ee):ue===1?x(h,_,ae--,ee):ue===2&&x(T,m,Q--,ee)}}}function y(A,p,D,E,R,I,z,F,L,P,B,O){var G=0,J=2*A,j=p,V=p+A,q=1,Z=1;E?Z=f:q=f;for(var re=R;re<I;++re){var $=re+q,ae=J*re;k[G++]=z[ae+j],k[G++]=-$,k[G++]=z[ae+V],k[G++]=$}for(var re=L;re<P;++re){var $=re+Z,Q=J*re;k[G++]=B[Q+j],k[G++]=-$}var te=G>>>1;s(k,te);for(var ue=0,re=0;re<te;++re){var ee=k[2*re+1]|0;if(ee<0){var $=-ee,ie=!1;if($>=f?(ie=!E,$-=f):(ie=!!E,$-=1),ie)M(g,b,ue++,$);else{var fe=O[$],we=J*$,Te=B[we+p+1],ke=B[we+p+1+A];e:for(var ge=0;ge<ue;++ge){var Ee=g[ge],Le=J*Ee;if(!(ke<z[Le+p+1]||z[Le+p+1+A]<Te)){for(var se=p+2;se<A;++se)if(B[we+se+A]<z[Le+se]||z[Le+se+A]<B[we+se])continue e;var X=F[Ee],K;if(E?K=D(fe,X):K=D(X,fe),K!==void 0)return K}}}}else x(g,b,ue--,ee-q)}}function v(A,p,D,E,R,I,z,F,L,P,B){for(var O=0,G=2*A,J=p,j=p+A,V=E;V<R;++V){var q=V+f,Z=G*V;k[O++]=I[Z+J],k[O++]=-q,k[O++]=I[Z+j],k[O++]=q}for(var V=F;V<L;++V){var q=V+1,re=G*V;k[O++]=P[re+J],k[O++]=-q}var $=O>>>1;s(k,$);for(var ae=0,V=0;V<$;++V){var Q=k[2*V+1]|0;if(Q<0){var q=-Q;if(q>=f)g[ae++]=q-f;else{q-=1;var te=B[q],ue=G*q,ee=P[ue+p+1],ie=P[ue+p+1+A];e:for(var fe=0;fe<ae;++fe){var we=g[fe],Te=z[we];if(Te===te)break;var ke=G*we;if(!(ie<I[ke+p+1]||I[ke+p+1+A]<ee)){for(var ge=p+2;ge<A;++ge)if(P[ue+ge+A]<I[ke+ge]||I[ke+ge+A]<P[ue+ge])continue e;var Ee=D(Te,te);if(Ee!==void 0)return Ee}}}}else{for(var q=Q-f,fe=ae-1;fe>=0;--fe)if(g[fe]===q){for(var ge=fe+1;ge<ae;++ge)g[ge-1]=g[ge];break}--ae}}}},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=h,l=v,o.IS=50;var c=2147483647;l=c,h.TYPED_ARRAY_SUPPORT=g(),!h.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 g(){try{var se=new Uint8Array(1),X={foo:function(){return 42}};return Object.setPrototypeOf(X,Uint8Array.prototype),Object.setPrototypeOf(se,X),se.foo()===42}catch(K){return!1}}Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}});function b(se){if(se>c)throw new RangeError('The value "'+se+'" is invalid for option "size"');var X=new Uint8Array(se);return Object.setPrototypeOf(X,h.prototype),X}function h(se,X,K){if(typeof se=="number"){if(typeof X=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return k(se)}return _(se,X,K)}h.poolSize=8192;function _(se,X,K){if(typeof se=="string")return S(se,X);if(ArrayBuffer.isView(se))return M(se);if(se==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof se);if(ge(se,ArrayBuffer)||se&&ge(se.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ge(se,SharedArrayBuffer)||se&&ge(se.buffer,SharedArrayBuffer)))return d(se,X,K);if(typeof se=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ye=se.valueOf&&se.valueOf();if(ye!=null&&ye!==se)return h.from(ye,X,K);var oe=w(se);if(oe)return oe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof se[Symbol.toPrimitive]=="function")return h.from(se[Symbol.toPrimitive]("string"),X,K);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof se)}h.from=function(se,X,K){return _(se,X,K)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array);function T(se){if(typeof se!="number")throw new TypeError('"size" argument must be of type number');if(se<0)throw new RangeError('The value "'+se+'" is invalid for option "size"')}function m(se,X,K){return T(se),se<=0?b(se):X!==void 0?typeof K=="string"?b(se).fill(X,K):b(se).fill(X):b(se)}h.alloc=function(se,X,K){return m(se,X,K)};function k(se){return T(se),b(se<0?0:y(se)|0)}h.allocUnsafe=function(se){return k(se)},h.allocUnsafeSlow=function(se){return k(se)};function S(se,X){if((typeof X!="string"||X==="")&&(X="utf8"),!h.isEncoding(X))throw new TypeError("Unknown encoding: "+X);var K=A(se,X)|0,ye=b(K),oe=ye.write(se,X);return oe!==K&&(ye=ye.slice(0,oe)),ye}function x(se){for(var X=se.length<0?0:y(se.length)|0,K=b(X),ye=0;ye<X;ye+=1)K[ye]=se[ye]&255;return K}function M(se){if(ge(se,Uint8Array)){var X=new Uint8Array(se);return d(X.buffer,X.byteOffset,X.byteLength)}return x(se)}function d(se,X,K){if(X<0||se.byteLength<X)throw new RangeError('"offset" is outside of buffer bounds');if(se.byteLength<X+(K||0))throw new RangeError('"length" is outside of buffer bounds');var ye;return X===void 0&&K===void 0?ye=new Uint8Array(se):K===void 0?ye=new Uint8Array(se,X):ye=new Uint8Array(se,X,K),Object.setPrototypeOf(ye,h.prototype),ye}function w(se){if(h.isBuffer(se)){var X=y(se.length)|0,K=b(X);return K.length===0||se.copy(K,0,0,X),K}if(se.length!==void 0)return typeof se.length!="number"||Ee(se.length)?b(0):x(se);if(se.type==="Buffer"&&Array.isArray(se.data))return x(se.data)}function y(se){if(se>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return se|0}function v(se){return+se!=se&&(se=0),h.alloc(+se)}h.isBuffer=function(X){return X!=null&&X._isBuffer===!0&&X!==h.prototype},h.compare=function(X,K){if(ge(X,Uint8Array)&&(X=h.from(X,X.offset,X.byteLength)),ge(K,Uint8Array)&&(K=h.from(K,K.offset,K.byteLength)),!h.isBuffer(X)||!h.isBuffer(K))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(X===K)return 0;for(var ye=X.length,oe=K.length,de=0,pe=Math.min(ye,oe);de<pe;++de)if(X[de]!==K[de]){ye=X[de],oe=K[de];break}return ye<oe?-1:oe<ye?1:0},h.isEncoding=function(X){switch(String(X).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}},h.concat=function(X,K){if(!Array.isArray(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return h.alloc(0);var ye;if(K===void 0)for(K=0,ye=0;ye<X.length;++ye)K+=X[ye].length;var oe=h.allocUnsafe(K),de=0;for(ye=0;ye<X.length;++ye){var pe=X[ye];if(ge(pe,Uint8Array))de+pe.length>oe.length?h.from(pe).copy(oe,de):Uint8Array.prototype.set.call(oe,pe,de);else if(h.isBuffer(pe))pe.copy(oe,de);else throw new TypeError('"list" argument must be an Array of Buffers');de+=pe.length}return oe};function A(se,X){if(h.isBuffer(se))return se.length;if(ArrayBuffer.isView(se)||ge(se,ArrayBuffer))return se.byteLength;if(typeof se!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof se);var K=se.length,ye=arguments.length>2&&arguments[2]===!0;if(!ye&&K===0)return 0;for(var oe=!1;;)switch(X){case"ascii":case"latin1":case"binary":return K;case"utf8":case"utf-8":return ie(se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K*2;case"hex":return K>>>1;case"base64":return Te(se).length;default:if(oe)return ye?-1:ie(se).length;X=(""+X).toLowerCase(),oe=!0}}h.byteLength=A;function p(se,X,K){var ye=!1;if((X===void 0||X<0)&&(X=0),X>this.length||((K===void 0||K>this.length)&&(K=this.length),K<=0)||(K>>>=0,X>>>=0,K<=X))return"";for(se||(se="utf8");;)switch(se){case"hex":return q(this,X,K);case"utf8":case"utf-8":return O(this,X,K);case"ascii":return j(this,X,K);case"latin1":case"binary":return V(this,X,K);case"base64":return B(this,X,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,X,K);default:if(ye)throw new TypeError("Unknown encoding: "+se);se=(se+"").toLowerCase(),ye=!0}}h.prototype._isBuffer=!0;function D(se,X,K){var ye=se[X];se[X]=se[K],se[K]=ye}h.prototype.swap16=function(){var X=this.length;if(X%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var K=0;K<X;K+=2)D(this,K,K+1);return this},h.prototype.swap32=function(){var X=this.length;if(X%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var K=0;K<X;K+=4)D(this,K,K+3),D(this,K+1,K+2);return this},h.prototype.swap64=function(){var X=this.length;if(X%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var K=0;K<X;K+=8)D(this,K,K+7),D(this,K+1,K+6),D(this,K+2,K+5),D(this,K+3,K+4);return this},h.prototype.toString=function(){var X=this.length;return X===0?"":arguments.length===0?O(this,0,X):p.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(X){if(!h.isBuffer(X))throw new TypeError("Argument must be a Buffer");return this===X?!0:h.compare(this,X)===0},h.prototype.inspect=function(){var X="",K=o.IS;return X=this.toString("hex",0,K).replace(/(.{2})/g,"$1 ").trim(),this.length>K&&(X+=" ... "),"<Buffer "+X+">"},f&&(h.prototype[f]=h.prototype.inspect),h.prototype.compare=function(X,K,ye,oe,de){if(ge(X,Uint8Array)&&(X=h.from(X,X.offset,X.byteLength)),!h.isBuffer(X))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof X);if(K===void 0&&(K=0),ye===void 0&&(ye=X?X.length:0),oe===void 0&&(oe=0),de===void 0&&(de=this.length),K<0||ye>X.length||oe<0||de>this.length)throw new RangeError("out of range index");if(oe>=de&&K>=ye)return 0;if(oe>=de)return-1;if(K>=ye)return 1;if(K>>>=0,ye>>>=0,oe>>>=0,de>>>=0,this===X)return 0;for(var pe=de-oe,me=ye-K,Se=Math.min(pe,me),ve=this.slice(oe,de),he=X.slice(K,ye),be=0;be<Se;++be)if(ve[be]!==he[be]){pe=ve[be],me=he[be];break}return pe<me?-1:me<pe?1:0};function E(se,X,K,ye,oe){if(se.length===0)return-1;if(typeof K=="string"?(ye=K,K=0):K>2147483647?K=2147483647:K<-2147483648&&(K=-2147483648),K=+K,Ee(K)&&(K=oe?0:se.length-1),K<0&&(K=se.length+K),K>=se.length){if(oe)return-1;K=se.length-1}else if(K<0)if(oe)K=0;else return-1;if(typeof X=="string"&&(X=h.from(X,ye)),h.isBuffer(X))return X.length===0?-1:R(se,X,K,ye,oe);if(typeof X=="number")return X=X&255,typeof Uint8Array.prototype.indexOf=="function"?oe?Uint8Array.prototype.indexOf.call(se,X,K):Uint8Array.prototype.lastIndexOf.call(se,X,K):R(se,[X],K,ye,oe);throw new TypeError("val must be string, number or Buffer")}function R(se,X,K,ye,oe){var de=1,pe=se.length,me=X.length;if(ye!==void 0&&(ye=String(ye).toLowerCase(),ye==="ucs2"||ye==="ucs-2"||ye==="utf16le"||ye==="utf-16le")){if(se.length<2||X.length<2)return-1;de=2,pe/=2,me/=2,K/=2}function Se(Re,Pe){return de===1?Re[Pe]:Re.readUInt16BE(Pe*de)}var ve;if(oe){var he=-1;for(ve=K;ve<pe;ve++)if(Se(se,ve)===Se(X,he===-1?0:ve-he)){if(he===-1&&(he=ve),ve-he+1===me)return he*de}else he!==-1&&(ve-=ve-he),he=-1}else for(K+me>pe&&(K=pe-me),ve=K;ve>=0;ve--){for(var be=!0,Ae=0;Ae<me;Ae++)if(Se(se,ve+Ae)!==Se(X,Ae)){be=!1;break}if(be)return ve}return-1}h.prototype.includes=function(X,K,ye){return this.indexOf(X,K,ye)!==-1},h.prototype.indexOf=function(X,K,ye){return E(this,X,K,ye,!0)},h.prototype.lastIndexOf=function(X,K,ye){return E(this,X,K,ye,!1)};function I(se,X,K,ye){K=Number(K)||0;var oe=se.length-K;ye?(ye=Number(ye),ye>oe&&(ye=oe)):ye=oe;var de=X.length;ye>de/2&&(ye=de/2);for(var pe=0;pe<ye;++pe){var me=parseInt(X.substr(pe*2,2),16);if(Ee(me))return pe;se[K+pe]=me}return pe}function z(se,X,K,ye){return ke(ie(X,se.length-K),se,K,ye)}function F(se,X,K,ye){return ke(fe(X),se,K,ye)}function L(se,X,K,ye){return ke(Te(X),se,K,ye)}function P(se,X,K,ye){return ke(we(X,se.length-K),se,K,ye)}h.prototype.write=function(X,K,ye,oe){if(K===void 0)oe="utf8",ye=this.length,K=0;else if(ye===void 0&&typeof K=="string")oe=K,ye=this.length,K=0;else if(isFinite(K))K=K>>>0,isFinite(ye)?(ye=ye>>>0,oe===void 0&&(oe="utf8")):(oe=ye,ye=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var de=this.length-K;if((ye===void 0||ye>de)&&(ye=de),X.length>0&&(ye<0||K<0)||K>this.length)throw new RangeError("Attempt to write outside buffer bounds");oe||(oe="utf8");for(var pe=!1;;)switch(oe){case"hex":return I(this,X,K,ye);case"utf8":case"utf-8":return z(this,X,K,ye);case"ascii":case"latin1":case"binary":return F(this,X,K,ye);case"base64":return L(this,X,K,ye);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,X,K,ye);default:if(pe)throw new TypeError("Unknown encoding: "+oe);oe=(""+oe).toLowerCase(),pe=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(se,X,K){return X===0&&K===se.length?u.fromByteArray(se):u.fromByteArray(se.slice(X,K))}function O(se,X,K){K=Math.min(se.length,K);for(var ye=[],oe=X;oe<K;){var de=se[oe],pe=null,me=de>239?4:de>223?3:de>191?2:1;if(oe+me<=K){var Se,ve,he,be;switch(me){case 1:de<128&&(pe=de);break;case 2:Se=se[oe+1],(Se&192)===128&&(be=(de&31)<<6|Se&63,be>127&&(pe=be));break;case 3:Se=se[oe+1],ve=se[oe+2],(Se&192)===128&&(ve&192)===128&&(be=(de&15)<<12|(Se&63)<<6|ve&63,be>2047&&(be<55296||be>57343)&&(pe=be));break;case 4:Se=se[oe+1],ve=se[oe+2],he=se[oe+3],(Se&192)===128&&(ve&192)===128&&(he&192)===128&&(be=(de&15)<<18|(Se&63)<<12|(ve&63)<<6|he&63,be>65535&&be<1114112&&(pe=be))}}pe===null?(pe=65533,me=1):pe>65535&&(pe-=65536,ye.push(pe>>>10&1023|55296),pe=56320|pe&1023),ye.push(pe),oe+=me}return J(ye)}var G=4096;function J(se){var X=se.length;if(X<=G)return String.fromCharCode.apply(String,se);for(var K="",ye=0;ye<X;)K+=String.fromCharCode.apply(String,se.slice(ye,ye+=G));return K}function j(se,X,K){var ye="";K=Math.min(se.length,K);for(var oe=X;oe<K;++oe)ye+=String.fromCharCode(se[oe]&127);return ye}function V(se,X,K){var ye="";K=Math.min(se.length,K);for(var oe=X;oe<K;++oe)ye+=String.fromCharCode(se[oe]);return ye}function q(se,X,K){var ye=se.length;(!X||X<0)&&(X=0),(!K||K<0||K>ye)&&(K=ye);for(var oe="",de=X;de<K;++de)oe+=Le[se[de]];return oe}function Z(se,X,K){for(var ye=se.slice(X,K),oe="",de=0;de<ye.length-1;de+=2)oe+=String.fromCharCode(ye[de]+ye[de+1]*256);return oe}h.prototype.slice=function(X,K){var ye=this.length;X=~~X,K=K===void 0?ye:~~K,X<0?(X+=ye,X<0&&(X=0)):X>ye&&(X=ye),K<0?(K+=ye,K<0&&(K=0)):K>ye&&(K=ye),K<X&&(K=X);var oe=this.subarray(X,K);return Object.setPrototypeOf(oe,h.prototype),oe};function re(se,X,K){if(se%1!==0||se<0)throw new RangeError("offset is not uint");if(se+X>K)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(X,K,ye){X=X>>>0,K=K>>>0,ye||re(X,K,this.length);for(var oe=this[X],de=1,pe=0;++pe<K&&(de*=256);)oe+=this[X+pe]*de;return oe},h.prototype.readUintBE=h.prototype.readUIntBE=function(X,K,ye){X=X>>>0,K=K>>>0,ye||re(X,K,this.length);for(var oe=this[X+--K],de=1;K>0&&(de*=256);)oe+=this[X+--K]*de;return oe},h.prototype.readUint8=h.prototype.readUInt8=function(X,K){return X=X>>>0,K||re(X,1,this.length),this[X]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(X,K){return X=X>>>0,K||re(X,2,this.length),this[X]|this[X+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(X,K){return X=X>>>0,K||re(X,2,this.length),this[X]<<8|this[X+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(X,K){return X=X>>>0,K||re(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+this[X+3]*16777216},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(X,K){return X=X>>>0,K||re(X,4,this.length),this[X]*16777216+(this[X+1]<<16|this[X+2]<<8|this[X+3])},h.prototype.readIntLE=function(X,K,ye){X=X>>>0,K=K>>>0,ye||re(X,K,this.length);for(var oe=this[X],de=1,pe=0;++pe<K&&(de*=256);)oe+=this[X+pe]*de;return de*=128,oe>=de&&(oe-=Math.pow(2,8*K)),oe},h.prototype.readIntBE=function(X,K,ye){X=X>>>0,K=K>>>0,ye||re(X,K,this.length);for(var oe=K,de=1,pe=this[X+--oe];oe>0&&(de*=256);)pe+=this[X+--oe]*de;return de*=128,pe>=de&&(pe-=Math.pow(2,8*K)),pe},h.prototype.readInt8=function(X,K){return X=X>>>0,K||re(X,1,this.length),this[X]&128?(255-this[X]+1)*-1:this[X]},h.prototype.readInt16LE=function(X,K){X=X>>>0,K||re(X,2,this.length);var ye=this[X]|this[X+1]<<8;return ye&32768?ye|4294901760:ye},h.prototype.readInt16BE=function(X,K){X=X>>>0,K||re(X,2,this.length);var ye=this[X+1]|this[X]<<8;return ye&32768?ye|4294901760:ye},h.prototype.readInt32LE=function(X,K){return X=X>>>0,K||re(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},h.prototype.readInt32BE=function(X,K){return X=X>>>0,K||re(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},h.prototype.readFloatLE=function(X,K){return X=X>>>0,K||re(X,4,this.length),s.read(this,X,!0,23,4)},h.prototype.readFloatBE=function(X,K){return X=X>>>0,K||re(X,4,this.length),s.read(this,X,!1,23,4)},h.prototype.readDoubleLE=function(X,K){return X=X>>>0,K||re(X,8,this.length),s.read(this,X,!0,52,8)},h.prototype.readDoubleBE=function(X,K){return X=X>>>0,K||re(X,8,this.length),s.read(this,X,!1,52,8)};function $(se,X,K,ye,oe,de){if(!h.isBuffer(se))throw new TypeError('"buffer" argument must be a Buffer instance');if(X>oe||X<de)throw new RangeError('"value" argument is out of bounds');if(K+ye>se.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(X,K,ye,oe){if(X=+X,K=K>>>0,ye=ye>>>0,!oe){var de=Math.pow(2,8*ye)-1;$(this,X,K,ye,de,0)}var pe=1,me=0;for(this[K]=X&255;++me<ye&&(pe*=256);)this[K+me]=X/pe&255;return K+ye},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(X,K,ye,oe){if(X=+X,K=K>>>0,ye=ye>>>0,!oe){var de=Math.pow(2,8*ye)-1;$(this,X,K,ye,de,0)}var pe=ye-1,me=1;for(this[K+pe]=X&255;--pe>=0&&(me*=256);)this[K+pe]=X/me&255;return K+ye},h.prototype.writeUint8=h.prototype.writeUInt8=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,1,255,0),this[K]=X&255,K+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,2,65535,0),this[K]=X&255,this[K+1]=X>>>8,K+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,2,65535,0),this[K]=X>>>8,this[K+1]=X&255,K+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,4,4294967295,0),this[K+3]=X>>>24,this[K+2]=X>>>16,this[K+1]=X>>>8,this[K]=X&255,K+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,4,4294967295,0),this[K]=X>>>24,this[K+1]=X>>>16,this[K+2]=X>>>8,this[K+3]=X&255,K+4},h.prototype.writeIntLE=function(X,K,ye,oe){if(X=+X,K=K>>>0,!oe){var de=Math.pow(2,8*ye-1);$(this,X,K,ye,de-1,-de)}var pe=0,me=1,Se=0;for(this[K]=X&255;++pe<ye&&(me*=256);)X<0&&Se===0&&this[K+pe-1]!==0&&(Se=1),this[K+pe]=(X/me>>0)-Se&255;return K+ye},h.prototype.writeIntBE=function(X,K,ye,oe){if(X=+X,K=K>>>0,!oe){var de=Math.pow(2,8*ye-1);$(this,X,K,ye,de-1,-de)}var pe=ye-1,me=1,Se=0;for(this[K+pe]=X&255;--pe>=0&&(me*=256);)X<0&&Se===0&&this[K+pe+1]!==0&&(Se=1),this[K+pe]=(X/me>>0)-Se&255;return K+ye},h.prototype.writeInt8=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,1,127,-128),X<0&&(X=255+X+1),this[K]=X&255,K+1},h.prototype.writeInt16LE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,2,32767,-32768),this[K]=X&255,this[K+1]=X>>>8,K+2},h.prototype.writeInt16BE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,2,32767,-32768),this[K]=X>>>8,this[K+1]=X&255,K+2},h.prototype.writeInt32LE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,4,2147483647,-2147483648),this[K]=X&255,this[K+1]=X>>>8,this[K+2]=X>>>16,this[K+3]=X>>>24,K+4},h.prototype.writeInt32BE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,4,2147483647,-2147483648),X<0&&(X=4294967295+X+1),this[K]=X>>>24,this[K+1]=X>>>16,this[K+2]=X>>>8,this[K+3]=X&255,K+4};function ae(se,X,K,ye,oe,de){if(K+ye>se.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("Index out of range")}function Q(se,X,K,ye,oe){return X=+X,K=K>>>0,oe||ae(se,X,K,4,34028234663852886e22,-34028234663852886e22),s.write(se,X,K,ye,23,4),K+4}h.prototype.writeFloatLE=function(X,K,ye){return Q(this,X,K,!0,ye)},h.prototype.writeFloatBE=function(X,K,ye){return Q(this,X,K,!1,ye)};function te(se,X,K,ye,oe){return X=+X,K=K>>>0,oe||ae(se,X,K,8,17976931348623157e292,-17976931348623157e292),s.write(se,X,K,ye,52,8),K+8}h.prototype.writeDoubleLE=function(X,K,ye){return te(this,X,K,!0,ye)},h.prototype.writeDoubleBE=function(X,K,ye){return te(this,X,K,!1,ye)},h.prototype.copy=function(X,K,ye,oe){if(!h.isBuffer(X))throw new TypeError("argument should be a Buffer");if(ye||(ye=0),!oe&&oe!==0&&(oe=this.length),K>=X.length&&(K=X.length),K||(K=0),oe>0&&oe<ye&&(oe=ye),oe===ye||X.length===0||this.length===0)return 0;if(K<0)throw new RangeError("targetStart out of bounds");if(ye<0||ye>=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),X.length-K<oe-ye&&(oe=X.length-K+ye);var de=oe-ye;return this===X&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(K,ye,oe):Uint8Array.prototype.set.call(X,this.subarray(ye,oe),K),de},h.prototype.fill=function(X,K,ye,oe){if(typeof X=="string"){if(typeof K=="string"?(oe=K,K=0,ye=this.length):typeof ye=="string"&&(oe=ye,ye=this.length),oe!==void 0&&typeof oe!="string")throw new TypeError("encoding must be a string");if(typeof oe=="string"&&!h.isEncoding(oe))throw new TypeError("Unknown encoding: "+oe);if(X.length===1){var de=X.charCodeAt(0);(oe==="utf8"&&de<128||oe==="latin1")&&(X=de)}}else typeof X=="number"?X=X&255:typeof X=="boolean"&&(X=Number(X));if(K<0||this.length<K||this.length<ye)throw new RangeError("Out of range index");if(ye<=K)return this;K=K>>>0,ye=ye===void 0?this.length:ye>>>0,X||(X=0);var pe;if(typeof X=="number")for(pe=K;pe<ye;++pe)this[pe]=X;else{var me=h.isBuffer(X)?X:h.from(X,oe),Se=me.length;if(Se===0)throw new TypeError('The value "'+X+'" is invalid for argument "value"');for(pe=0;pe<ye-K;++pe)this[pe+K]=me[pe%Se]}return this};var ue=/[^+/0-9A-Za-z-_]/g;function ee(se){if(se=se.split("=")[0],se=se.trim().replace(ue,""),se.length<2)return"";for(;se.length%4!==0;)se=se+"=";return se}function ie(se,X){X=X||1/0;for(var K,ye=se.length,oe=null,de=[],pe=0;pe<ye;++pe){if(K=se.charCodeAt(pe),K>55295&&K<57344){if(!oe){if(K>56319){(X-=3)>-1&&de.push(239,191,189);continue}else if(pe+1===ye){(X-=3)>-1&&de.push(239,191,189);continue}oe=K;continue}if(K<56320){(X-=3)>-1&&de.push(239,191,189),oe=K;continue}K=(oe-55296<<10|K-56320)+65536}else oe&&(X-=3)>-1&&de.push(239,191,189);if(oe=null,K<128){if((X-=1)<0)break;de.push(K)}else if(K<2048){if((X-=2)<0)break;de.push(K>>6|192,K&63|128)}else if(K<65536){if((X-=3)<0)break;de.push(K>>12|224,K>>6&63|128,K&63|128)}else if(K<1114112){if((X-=4)<0)break;de.push(K>>18|240,K>>12&63|128,K>>6&63|128,K&63|128)}else throw new Error("Invalid code point")}return de}function fe(se){for(var X=[],K=0;K<se.length;++K)X.push(se.charCodeAt(K)&255);return X}function we(se,X){for(var K,ye,oe,de=[],pe=0;pe<se.length&&!((X-=2)<0);++pe)K=se.charCodeAt(pe),ye=K>>8,oe=K%256,de.push(oe),de.push(ye);return de}function Te(se){return u.toByteArray(ee(se))}function ke(se,X,K,ye){for(var oe=0;oe<ye&&!(oe+K>=X.length||oe>=se.length);++oe)X[oe+K]=se[oe];return oe}function ge(se,X){return se instanceof X||se!=null&&se.constructor!=null&&se.constructor.name!=null&&se.constructor.name===X.name}function Ee(se){return se!==se}var Le=(function(){for(var se="0123456789abcdef",X=new Array(256),K=0;K<16;++K)for(var ye=K*16,oe=0;oe<16;++oe)X[ye+oe]=se[K]+se[oe];return X})()},2538(a,o,i){"use strict";var l=i(8902),u=i(5542),s=i(2272),f=i(5023);a.exports=_;function c(T){return[Math.min(T[0],T[1]),Math.max(T[0],T[1])]}function g(T,m){return T[0]-m[0]||T[1]-m[1]}function b(T){return T.map(c).sort(g)}function h(T,m,k){return m in T?T[m]:k}function _(T,m,k){Array.isArray(m)?(k=k||{},m=m||[]):(k=m||{},m=[]);var S=!!h(k,"delaunay",!0),x=!!h(k,"interior",!0),M=!!h(k,"exterior",!0),d=!!h(k,"infinity",!1);if(!x&&!M||T.length===0)return[];var w=l(T,m);if(S||x!==M||d){for(var y=u(T.length,b(m)),v=0;v<w.length;++v){var A=w[v];y.addTriangle(A[0],A[1],A[2])}return S&&s(T,y),M?x?d?f(y,0,d):y.cells():f(y,1,d):f(y,-1)}else return w}},2272(a,o,i){"use strict";var l=i(2646)[4],u=i(2478);a.exports=f;function s(c,g,b,h,_,T){var m=g.opposite(h,_);if(!(m<0)){if(_<h){var k=h;h=_,_=k,k=T,T=m,m=k}g.isConstraint(h,_)||l(c[h],c[_],c[T],c[m])<0&&b.push(h,_)}}function f(c,g){for(var b=[],h=c.length,_=g.stars,T=0;T<h;++T)for(var m=_[T],k=1;k<m.length;k+=2){var S=m[k];if(!(S<T)&&!g.isConstraint(T,S)){for(var x=m[k-1],M=-1,d=1;d<m.length;d+=2)if(m[d-1]===S){M=m[d];break}M<0||l(c[T],c[S],c[x],c[M])<0&&b.push(T,S)}}for(;b.length>0;){for(var S=b.pop(),T=b.pop(),x=-1,M=-1,m=_[T],w=1;w<m.length;w+=2){var y=m[w-1],v=m[w];y===S?M=v:v===S&&(x=y)}x<0||M<0||l(c[T],c[S],c[x],c[M])>=0||(g.flip(T,S),s(c,g,b,x,T,M),s(c,g,b,T,M,x),s(c,g,b,M,S,x),s(c,g,b,S,x,M))}}},5023(a,o,i){"use strict";var l=i(2478);a.exports=b;function u(h,_,T,m,k,S,x){this.cells=h,this.neighbor=_,this.flags=m,this.constraint=T,this.active=k,this.next=S,this.boundary=x}var s=u.prototype;function f(h,_){return h[0]-_[0]||h[1]-_[1]||h[2]-_[2]}s.locate=(function(){var h=[0,0,0];return function(_,T,m){var k=_,S=T,x=m;return T<m?T<_&&(k=T,S=m,x=_):m<_&&(k=m,S=_,x=T),k<0?-1:(h[0]=k,h[1]=S,h[2]=x,l.eq(this.cells,h,f))}})();function c(h,_){for(var T=h.cells(),m=T.length,k=0;k<m;++k){var S=T[k],x=S[0],M=S[1],d=S[2];M<d?M<x&&(S[0]=M,S[1]=d,S[2]=x):d<x&&(S[0]=d,S[1]=x,S[2]=M)}T.sort(f);for(var w=new Array(m),k=0;k<w.length;++k)w[k]=0;var y=[],v=[],A=new Array(3*m),p=new Array(3*m),D=null;_&&(D=[]);for(var E=new u(T,A,p,w,y,v,D),k=0;k<m;++k)for(var S=T[k],R=0;R<3;++R){var x=S[R],M=S[(R+1)%3],I=A[3*k+R]=E.locate(M,x,h.opposite(M,x)),z=p[3*k+R]=h.isConstraint(x,M);I<0&&(z?v.push(k):(y.push(k),w[k]=1),_&&D.push([M,x,-1]))}return E}function g(h,_,T){for(var m=0,k=0;k<h.length;++k)_[k]===T&&(h[m++]=h[k]);return h.length=m,h}function b(h,_,T){var m=c(h,T);if(_===0)return T?m.cells.concat(m.boundary):m.cells;for(var k=1,S=m.active,x=m.next,M=m.flags,d=m.cells,w=m.constraint,y=m.neighbor;S.length>0||x.length>0;){for(;S.length>0;){var v=S.pop();if(M[v]!==-k){M[v]=k;for(var A=d[v],p=0;p<3;++p){var D=y[3*v+p];D>=0&&M[D]===0&&(w[3*v+p]?x.push(D):(S.push(D),M[D]=k))}}}var E=x;x=S,S=E,x.length=0,k=-k}var R=g(d,M,_);return T?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=x;function g(M,d,w,y,v){this.a=M,this.b=d,this.idx=w,this.lowerIds=y,this.upperIds=v}function b(M,d,w,y){this.a=M,this.b=d,this.type=w,this.idx=y}function h(M,d){var w=M.a[0]-d.a[0]||M.a[1]-d.a[1]||M.type-d.type;return w||M.type!==s&&(w=u(M.a,M.b,d.b),w)?w:M.idx-d.idx}function _(M,d){return u(M.a,M.b,d)}function T(M,d,w,y,v){for(var A=l.lt(d,y,_),p=l.gt(d,y,_),D=A;D<p;++D){for(var E=d[D],R=E.lowerIds,z=R.length;z>1&&u(w[R[z-2]],w[R[z-1]],y)>0;)M.push([R[z-1],R[z-2],v]),z-=1;R.length=z,R.push(v);for(var I=E.upperIds,z=I.length;z>1&&u(w[I[z-2]],w[I[z-1]],y)<0;)M.push([I[z-2],I[z-1],v]),z-=1;I.length=z,I.push(v)}}function m(M,d){var w;return M.a[0]<d.a[0]?w=u(M.a,M.b,d.a):w=u(d.b,d.a,M.a),w||(d.b[0]<M.b[0]?w=u(M.a,M.b,d.b):w=u(d.b,d.a,M.b),w||M.idx-d.idx)}function k(M,d,w){var y=l.le(M,w,m),v=M[y],A=v.upperIds,p=A[A.length-1];v.upperIds=[p],M.splice(y+1,0,new g(w.a,w.b,w.idx,[p],A))}function S(M,d,w){var y=w.a;w.a=w.b,w.b=y;var v=l.eq(M,w,m),A=M[v],p=M[v-1];p.upperIds=A.upperIds,M.splice(v,1)}function x(M,d){for(var w=M.length,y=d.length,v=[],A=0;A<w;++A)v.push(new b(M[A],null,s,A));for(var A=0;A<y;++A){var p=d[A],D=M[p[0]],E=M[p[1]];D[0]<E[0]?v.push(new b(D,E,c,A),new b(E,D,f,A)):D[0]>E[0]&&v.push(new b(E,D,c,A),new b(D,E,f,A))}v.sort(h);for(var R=v[0].a[0]-(1+Math.abs(v[0].a[0]))*Math.pow(2,-52),I=[new g([R,1],[R,0],-1,[],[],[],[])],z=[],A=0,F=v.length;A<F;++A){var L=v[A],P=L.type;P===s?T(z,I,M,L.a,L.idx):P===c?k(I,M,L):S(I,M,L)}return z}},5542(a,o,i){"use strict";var l=i(2478);a.exports=c;function u(g,b){this.stars=g,this.edges=b}var s=u.prototype;function f(g,b,h){for(var _=1,T=g.length;_<T;_+=2)if(g[_-1]===b&&g[_]===h){g[_-1]=g[T-2],g[_]=g[T-1],g.length=T-2;return}}s.isConstraint=(function(){var g=[0,0];function b(h,_){return h[0]-_[0]||h[1]-_[1]}return function(h,_){return g[0]=Math.min(h,_),g[1]=Math.max(h,_),l.eq(this.edges,g,b)>=0}})(),s.removeTriangle=function(g,b,h){var _=this.stars;f(_[g],b,h),f(_[b],h,g),f(_[h],g,b)},s.addTriangle=function(g,b,h){var _=this.stars;_[g].push(b,h),_[b].push(h,g),_[h].push(g,b)},s.opposite=function(g,b){for(var h=this.stars[b],_=1,T=h.length;_<T;_+=2)if(h[_]===g)return h[_-1];return-1},s.flip=function(g,b){var h=this.opposite(g,b),_=this.opposite(b,g);this.removeTriangle(g,b,h),this.removeTriangle(b,g,_),this.addTriangle(g,_,h),this.addTriangle(b,h,_)},s.edges=function(){for(var g=this.stars,b=[],h=0,_=g.length;h<_;++h)for(var T=g[h],m=0,k=T.length;m<k;m+=2)b.push([T[m],T[m+1]]);return b},s.cells=function(){for(var g=this.stars,b=[],h=0,_=g.length;h<_;++h)for(var T=g[h],m=0,k=T.length;m<k;m+=2){var S=T[m],x=T[m+1];h<Math.min(S,x)&&b.push([h,S,x])}return b};function c(g,b){for(var h=new Array(g),_=0;_<g;++_)h[_]=[];return new u(h,b)}},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(g,b){for(var h=0,_=g.length,T=0;T<_;++T)h+=g[T]*b[T];return h}function f(g){var b=g.length;if(b===0)return[];var h=g[0].length,_=l([g.length+1,g.length+1],1),T=l([g.length+1],1);_[b][b]=0;for(var m=0;m<b;++m){for(var k=0;k<=m;++k)_[k][m]=_[m][k]=2*s(g[m],g[k]);T[m]=s(g[m],g[m])}for(var S=u(_,T),x=0,M=S[b+1],m=0;m<M.length;++m)x+=M[m];for(var d=new Array(b),m=0;m<b;++m){for(var M=S[m],w=0,k=0;k<M.length;++k)w+=M[k];d[m]=w/x}return d}function c(g){if(g.length===0)return[];for(var b=g[0].length,h=l([b]),_=f(g),T=0;T<g.length;++T)for(var m=0;m<b;++m)h[m]+=g[T][m]*_[T];return h}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,g=0;g<s.length;++g)for(var b=s[g],h=0;h<f.length;++h)c+=Math.pow(b[h]-f[h],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),g=i(946),b=i(5838),h=i(1278),_=i(3637);function T(E){var R=g(E);return[h(R,-1/0),h(R,1/0)]}function m(E,R){for(var I=new Array(R.length),z=0;z<R.length;++z){var F=R[z],L=E[F[0]],P=E[F[1]];I[z]=[h(Math.min(L[0],P[0]),-1/0),h(Math.min(L[1],P[1]),-1/0),h(Math.max(L[0],P[0]),1/0),h(Math.max(L[1],P[1]),1/0)]}return I}function k(E){for(var R=new Array(E.length),I=0;I<E.length;++I){var z=E[I];R[I]=[h(z[0],-1/0),h(z[1],-1/0),h(z[0],1/0),h(z[1],1/0)]}return R}function S(E,R,I){var z=[];return u(I,function(F,L){var P=R[F],B=R[L];if(!(P[0]===B[0]||P[0]===B[1]||P[1]===B[0]||P[1]===B[1])){var O=E[P[0]],G=E[P[1]],J=E[B[0]],j=E[B[1]];s(O,G,J,j)&&z.push([F,L])}}),z}function x(E,R,I,z){var F=[];return u(I,z,function(L,P){var B=R[L];if(!(B[0]===P||B[1]===P)){var O=E[P],G=E[B[0]],J=E[B[1]];s(G,J,O,O)&&F.push([L,P])}}),F}function M(E,R,I,z,F){var L,P,B=E.map(function(we){return[f(we[0]),f(we[1])]});for(L=0;L<I.length;++L){var O=I[L];P=O[0];var G=O[1],J=R[P],j=R[G],V=_(b(E[J[0]]),b(E[J[1]]),b(E[j[0]]),b(E[j[1]]));if(V){var q=E.length;E.push([g(V[0]),g(V[1])]),B.push(V),z.push([P,q],[G,q])}}for(z.sort(function(we,Te){if(we[0]!==Te[0])return we[0]-Te[0];var ke=B[we[1]],ge=B[Te[1]];return c(ke[0],ge[0])||c(ke[1],ge[1])}),L=z.length-1;L>=0;--L){var Z=z[L];P=Z[0];var re=R[P],$=re[0],ae=re[1],Q=E[$],te=E[ae];if((Q[0]-te[0]||Q[1]-te[1])<0){var ue=$;$=ae,ae=ue}re[0]=$;var ee=re[1]=Z[1],ie;for(F&&(ie=re[2]);L>0&&z[L-1][0]===P;){var Z=z[--L],fe=Z[1];F?R.push([ee,fe,ie]):R.push([ee,fe]),ee=fe}F?R.push([ee,ae,ie]):R.push([ee,ae])}return B}function d(E,R,I){for(var z=R.length,F=new l(z),L=[],P=0;P<R.length;++P){var B=R[P],O=T(B[0]),G=T(B[1]);L.push([h(O[0],-1/0),h(G[0],-1/0),h(O[1],1/0),h(G[1],1/0)])}u(L,function(Z,re){F.link(Z,re)});for(var J=!0,j=new Array(z),P=0;P<z;++P){var V=F.find(P);V!==P&&(J=!1,E[V]=[Math.min(E[P][0],E[V][0]),Math.min(E[P][1],E[V][1])])}if(J)return null;for(var q=0,P=0;P<z;++P){var V=F.find(P);V===P?(j[P]=q,E[q++]=E[P]):j[P]=-1}E.length=q;for(var P=0;P<z;++P)j[P]<0&&(j[P]=j[F.find(P)]);return j}function w(E,R){return E[0]-R[0]||E[1]-R[1]}function y(E,R){var I=E[0]-R[0]||E[1]-R[1];return I||(E[2]<R[2]?-1:E[2]>R[2]?1:0)}function v(E,R,I){if(E.length!==0){if(R)for(var z=0;z<E.length;++z){var F=E[z],L=R[F[0]],P=R[F[1]];F[0]=Math.min(L,P),F[1]=Math.max(L,P)}else for(var z=0;z<E.length;++z){var F=E[z],L=F[0],P=F[1];F[0]=Math.min(L,P),F[1]=Math.max(L,P)}I?E.sort(y):E.sort(w);for(var B=1,z=1;z<E.length;++z){var O=E[z-1],G=E[z];G[0]===O[0]&&G[1]===O[1]&&(!I||G[2]===O[2])||(E[B++]=G)}E.length=B}}function A(E,R,I){var z=d(E,[],k(E));return v(R,z,I),!!z}function p(E,R,I){var z=m(E,R),F=S(E,R,z),L=k(E),P=x(E,R,z,L),B=M(E,R,F,P,I),O=d(E,B,L);return v(R,O,I),O?!0:F.length>0||P.length>0}function D(E,R,I){var z;if(I){z=R;for(var F=new Array(R.length),L=0;L<R.length;++L){var P=R[L];F[L]=[P[0],P[1],I[L]]}R=F}for(var B=A(E,R,!!I);p(E,R,!!I);)B=!0;if(I&&B){z.length=0,I.length=0;for(var L=0;L<R.length;++L){var P=R[L];z.push([P[0],P[1]]),I.push(P[2])}}return B}},3637(a,o,i){"use strict";a.exports=_;var l=i(6504),u=i(8697),s=i(5572),f=i(7721),c=i(544),g=i(2653),b=i(8987);function h(T,m){return s(l(T[0],m[1]),l(T[1],m[0]))}function _(T,m,k,S){var x=c(m,T),M=c(S,k),d=h(x,M);if(f(d)===0)return null;var w=c(T,k),y=h(M,w),v=u(y,d),A=b(x,v),p=g(T,A);return p}},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(b){var h,_,T,m,k,S,x,M,v,d,w;if(b||(b={}),M=(b.nshades||72)-1,x=b.format||"hex",S=b.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>M+1)throw new Error(S+" map requires nshades to be at least size "+k.length);Array.isArray(b.alpha)?b.alpha.length!==2?d=[1,1]:d=b.alpha.slice():typeof b.alpha=="number"?d=[b.alpha,b.alpha]:d=[1,1],h=k.map(function(D){return Math.round(D.index*M)}),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var y=k.map(function(D,E){var R=k[E].index,I=k[E].rgb.slice();return I.length===4&&I[3]>=0&&I[3]<=1||(I[3]=d[0]+(d[1]-d[0])*R),I}),v=[];for(w=0;w<h.length-1;++w){m=h[w+1]-h[w],_=y[w],T=y[w+1];for(var A=0;A<m;A++){var p=A/m;v.push([Math.round(u(_[0],T[0],p)),Math.round(u(_[1],T[1],p)),Math.round(u(_[2],T[2],p)),u(_[3],T[3],p)])}}return v.push(k[k.length-1].rgb.concat(d[1])),x==="hex"?v=v.map(c):x==="rgbaString"?v=v.map(g):x==="float"&&(v=v.map(f)),v}function f(b){return[b[0]/255,b[1]/255,b[2]/255,b[3]]}function c(b){for(var h,_="#",T=0;T<3;++T)h=b[T],h=h.toString(16),_+=("00"+h).substr(h.length);return _}function g(b){return"rgba("+b.join(",")+")"}},3140(a,o,i){"use strict";a.exports=b;var l=i(3250),u=i(8572),s=i(9362),f=i(5382),c=i(8210);function g(h,_,T){var m=s(h[0],-_[0]),k=s(h[1],-_[1]),S=s(T[0],-_[0]),x=s(T[1],-_[1]),M=c(f(m,S),f(k,x));return M[M.length-1]>=0}function b(h,_,T,m){var k=l(_,T,m);if(k===0){var S=u(l(h,_,T)),x=u(l(h,_,m));if(S===x){if(S===0){var M=g(h,_,T),d=g(h,_,m);return M===d?0:M?1:-1}return 0}else{if(x===0)return S>0||g(h,_,m)?-1:1;if(S===0)return x>0||g(h,_,T)?1:-1}return u(x-S)}var w=l(h,_,T);if(w>0)return k>0&&l(h,_,m)>0?1:-1;if(w<0)return k>0||l(h,_,m)>0?1:-1;var y=l(h,_,m);return y>0||g(h,_,T)?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 g=u[0]+u[1],b=s[0]+s[1];if(c=g+u[2]-(b+s[2]),c)return c;var h=o(u[0],u[1]),_=o(s[0],s[1]);return o(h,u[2])-o(_,s[2])||o(h+u[2],g)-o(_+s[2],b);case 4:var T=u[0],m=u[1],k=u[2],S=u[3],x=s[0],M=s[1],d=s[2],w=s[3];return T+m+k+S-(x+M+d+w)||o(T,m,k,S)-o(x,M,d,w,x)||o(T+m,T+k,T+S,m+k,m+S,k+S)-o(x+M,x+d,x+w,M+d,M+w,d+w)||o(T+m+k,T+m+S,T+k+S,m+k+S)-o(x+M+d,x+M+w,x+d+w,M+d+w);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 g=c.length;if(g===0)return[];if(g===1)return[[0]];var b=c[0].length;return b===0?[]:b===1?l(c):b===2?u(c):s(c,b)}},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 g=new Array(c),b=f[c-1],h=0;h<c;++h){var _=f[h];g[h]=[b,_],b=_}return g}},2690(a,o,i){"use strict";a.exports=c;var l=i(8954),u=i(3952);function s(g,b){for(var h=g.length,_=new Array(h),T=0;T<b.length;++T)_[T]=g[b[T]];for(var m=b.length,T=0;T<h;++T)b.indexOf(T)<0&&(_[m++]=g[T]);return _}function f(g,b){for(var h=g.length,_=b.length,T=0;T<h;++T)for(var m=g[T],k=0;k<m.length;++k){var S=m[k];if(S<_)m[k]=b[S];else{S=S-_;for(var x=0;x<_;++x)S>=b[x]&&(S+=1);m[k]=S}}return g}function c(g,b){try{return l(g,!0)}catch(m){var h=u(g);if(h.length<=b)return[];var _=s(g,h),T=l(_,!0);return f(T,h)}}},4769(a){"use strict";function o(l,u,s,f,c,g){var b=6*c*c-6*c,h=3*c*c-4*c+1,_=-6*c*c+6*c,T=3*c*c-2*c;if(l.length){g||(g=new Array(l.length));for(var m=l.length-1;m>=0;--m)g[m]=b*l[m]+h*u[m]+_*s[m]+T*f[m];return g}return b*l+h*u+_*s[m]+T*f}function i(l,u,s,f,c,g){var b=c-1,h=c*c,_=b*b,T=(1+2*c)*_,m=c*_,k=h*(3-2*c),S=h*b;if(l.length){g||(g=new Array(l.length));for(var x=l.length-1;x>=0;--x)g[x]=T*l[x]+m*u[x]+k*s[x]+S*f[x];return g}return T*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=g;function s(b,h){this.point=b,this.index=h}function f(b,h){for(var _=b.point,T=h.point,m=_.length,k=0;k<m;++k){var S=T[k]-_[k];if(S)return S}return 0}function c(b,h,_){if(b===1)return _?[[-1,0]]:[];var T=h.map(function(M,d){return[M[0],d]});T.sort(function(M,d){return M[0]-d[0]});for(var m=new Array(b-1),k=1;k<b;++k){var S=T[k-1],x=T[k];m[k-1]=[S[1],x[1]]}return _&&m.push([-1,m[0][1]],[m[b-1][1],-1]),m}function g(b,h){var _=b.length;if(_===0)return[];var T=b[0].length;if(T<1)return[];if(T===1)return c(_,b,h);for(var m=new Array(_),k=1,S=0;S<_;++S){for(var x=b[S],M=new Array(T+1),d=0,w=0;w<T;++w){var y=x[w];M[w]=y,d+=y*y}M[T]=d,m[S]=new s(M,S),k=Math.max(d,k)}u(m,f),_=m.length;for(var v=new Array(_+T+1),A=new Array(_+T+1),p=(T+1)*(T+1)*k,D=new Array(T+1),S=0;S<=T;++S)D[S]=0;D[T]=p,v[0]=D.slice(),A[0]=-1;for(var S=0;S<=T;++S){var M=D.slice();M[S]=1,v[S+1]=M,A[S+1]=-1}for(var S=0;S<_;++S){var E=m[S];v[S+T+1]=E.point,A[S+T+1]=E.index}var R=l(v,!1);if(h?R=R.filter(function(I){for(var z=0,F=0;F<=T;++F){var L=A[I[F]];if(L<0&&++z>=2)return!1;I[F]=L}return!0}):R=R.filter(function(I){for(var z=0;z<=T;++z){var F=A[I[z]];if(F<0)return!1;I[z]=F}return!0}),T&1)for(var S=0;S<R.length;++S){var E=R[S],M=E[0];E[0]=E[1],E[1]=M}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(M,d){return l[0]=M,l[1]=d,i[0]},S=function(M){return i[0]=M,l[0]},x=function(M){return i[0]=M,l[1]};var s=k,f=S,c=x;a.exports=function(d){return i[0]=d,[l[0],l[1]]},a.exports.pack=k,a.exports.lo=S,a.exports.hi=x}else if(l[0]===1072693248){let k=function(M,d){return l[1]=M,l[0]=d,i[0]},S=function(M){return i[0]=M,l[1]},x=function(M){return i[0]=M,l[0]};var g=k,b=S,h=x;a.exports=function(d){return i[0]=d,[l[1],l[0]]},a.exports.pack=k,a.exports.lo=S,a.exports.hi=x}else o=!1}if(!o){let k=function(M,d){return u.writeUInt32LE(M,0,!0),u.writeUInt32LE(d,4,!0),u.readDoubleLE(0,!0)},S=function(M){return u.writeDoubleLE(M,0,!0),u.readUInt32LE(0,!0)},x=function(M){return u.writeDoubleLE(M,0,!0),u.readUInt32LE(4,!0)};var _=k,T=S,m=x,u=new Buffer(8);a.exports=function(d){return u.writeDoubleLE(d,0,!0),[u.readUInt32LE(0,!0),u.readUInt32LE(4,!0)]},a.exports.pack=k,a.exports.lo=S,a.exports.hi=x}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),x=a.exports.hi(k),M=x&(1<<20)-1;return x&2146435072&&(M+=1048576),[S,M]},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 g=new Array(c),b;if(f===u.length-1)for(b=0;b<c;++b)g[b]=s;else for(b=0;b<c;++b)g[b]=o(u,s,f+1);return g}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 g=0;g<c;++g){var b=s[g];f=Math.max(f,b[0],b[1])}f=(f|0)+1}f=f|0;for(var h=new Array(f),g=0;g<f;++g)h[g]=[];for(var g=0;g<c;++g){var b=s[g];h[b[0]].push(b[1]),h[b[1]].push(b[0])}for(var _=0;_<f;++_)l(h[_],function(T,m){return T-m});return h}},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=b;var l=i(4769),u=i(2478);function s(h,_,T){return Math.min(_,Math.max(h,T))}function f(h,_,T){this.dimension=h.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=h.slice().reverse(),this._velocity=_.slice().reverse(),this._time=[T],this._scratch=[h.slice(),h.slice(),h.slice(),h.slice(),h.slice()]}var c=f.prototype;c.flush=function(h){var _=u.gt(this._time,h)-1;_<=0||(this._time.splice(0,_),this._state.splice(0,_*this.dimension),this._velocity.splice(0,_*this.dimension))},c.curve=function(h){var _=this._time,T=_.length,m=u.le(_,h),k=this._scratch[0],S=this._state,x=this._velocity,M=this.dimension,d=this.bounds;if(m<0)for(var w=M-1,y=0;y<M;++y,--w)k[y]=S[w];else if(m>=T-1)for(var w=S.length-1,v=h-_[T-1],y=0;y<M;++y,--w)k[y]=S[w]+v*x[w];else{for(var w=M*(m+1)-1,A=_[m],p=_[m+1],D=p-A||1,E=this._scratch[1],R=this._scratch[2],I=this._scratch[3],z=this._scratch[4],F=!0,y=0;y<M;++y,--w)E[y]=S[w],I[y]=x[w]*D,R[y]=S[w+M],z[y]=x[w+M]*D,F=F&&E[y]===R[y]&&I[y]===z[y]&&I[y]===0;if(F)for(var y=0;y<M;++y)k[y]=E[y];else l(E,I,R,z,(h-A)/D,k)}for(var L=d[0],P=d[1],y=0;y<M;++y)k[y]=s(L[y],P[y],k[y]);return k},c.dcurve=function(h){var _=this._time,T=_.length,m=u.le(_,h),k=this._scratch[0],S=this._state,x=this._velocity,M=this.dimension;if(m>=T-1)for(var d=S.length-1,w=h-_[T-1],y=0;y<M;++y,--d)k[y]=x[d];else{for(var d=M*(m+1)-1,v=_[m],A=_[m+1],p=A-v||1,D=this._scratch[1],E=this._scratch[2],R=this._scratch[3],I=this._scratch[4],z=!0,y=0;y<M;++y,--d)D[y]=S[d],R[y]=x[d]*p,E[y]=S[d+M],I[y]=x[d+M]*p,z=z&&D[y]===E[y]&&R[y]===I[y]&&R[y]===0;if(z)for(var y=0;y<M;++y)k[y]=0;else{l.derivative(D,R,E,I,(h-v)/p,k);for(var y=0;y<M;++y)k[y]/=p}}return k},c.lastT=function(){var h=this._time;return h[h.length-1]},c.stable=function(){for(var h=this._velocity,_=h.length,T=this.dimension-1;T>=0;--T)if(h[--_])return!1;return!0},c.jump=function(h){var _=this.lastT(),T=this.dimension;if(!(h<_||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,x=this.bounds,M=x[0],d=x[1];this._time.push(_,h);for(var w=0;w<2;++w)for(var y=0;y<T;++y)m.push(m[S++]),k.push(0);this._time.push(h);for(var y=T;y>0;--y)m.push(s(M[y-1],d[y-1],arguments[y])),k.push(0)}},c.push=function(h){var _=this.lastT(),T=this.dimension;if(!(h<_||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,x=h-_,M=this.bounds,d=M[0],w=M[1],y=x>1e-6?1/x:0;this._time.push(h);for(var v=T;v>0;--v){var A=s(d[v-1],w[v-1],arguments[v]);m.push(A),k.push((A-m[S++])*y)}}},c.set=function(h){var _=this.dimension;if(!(h<this.lastT()||arguments.length!==_+1)){var T=this._state,m=this._velocity,k=this.bounds,S=k[0],x=k[1];this._time.push(h);for(var M=_;M>0;--M)T.push(s(S[M-1],x[M-1],arguments[M])),m.push(0)}},c.move=function(h){var _=this.lastT(),T=this.dimension;if(!(h<=_||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,x=this.bounds,M=x[0],d=x[1],w=h-_,y=w>1e-6?1/w:0;this._time.push(h);for(var v=T;v>0;--v){var A=arguments[v];m.push(s(M[v-1],d[v-1],m[S++]+A)),k.push(A*y)}}},c.idle=function(h){var _=this.lastT();if(!(h<_)){var T=this.dimension,m=this._state,k=this._velocity,S=m.length-T,x=this.bounds,M=x[0],d=x[1],w=h-_;this._time.push(h);for(var y=T-1;y>=0;--y)m.push(s(M[y],d[y],m[S]+w*k[S])),k.push(0),S+=1}};function g(h){for(var _=new Array(h),T=0;T<h;++T)_[T]=0;return _}function b(h,_,T){switch(arguments.length){case 0:return new f([0],[0],0);case 1:if(typeof h=="number"){var m=g(h);return new f(m,m,0)}else return new f(h,g(h.length),0);case 2:if(typeof _=="number"){var m=g(h.length);return new f(h,m,+_)}else T=0;case 3:if(h.length!==_.length)throw new Error("state and velocity lengths must match");return new f(h,_,T)}}},3840(a){"use strict";a.exports=M;var o=0,i=1;function l(d,w,y,v,A,p){this._color=d,this.key=w,this.value=y,this.left=v,this.right=A,this._count=p}function u(d){return new l(d._color,d.key,d.value,d.left,d.right,d._count)}function s(d,w){return new l(d,w.key,w.value,w.left,w.right,w._count)}function f(d){d._count=1+(d.left?d.left._count:0)+(d.right?d.right._count:0)}function c(d,w){this._compare=d,this.root=w}var g=c.prototype;Object.defineProperty(g,"keys",{get:function(){var d=[];return this.forEach(function(w,y){d.push(w)}),d}}),Object.defineProperty(g,"values",{get:function(){var d=[];return this.forEach(function(w,y){d.push(y)}),d}}),Object.defineProperty(g,"length",{get:function(){return this.root?this.root._count:0}}),g.insert=function(d,w){for(var y=this._compare,v=this.root,A=[],p=[];v;){var D=y(d,v.key);A.push(v),p.push(D),D<=0?v=v.left:v=v.right}A.push(new l(o,d,w,null,null,1));for(var E=A.length-2;E>=0;--E){var v=A[E];p[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 I=A[E-2];if(I.left===R)if(R.left===v){var z=I.right;if(z&&z._color===o)R._color=i,I.right=s(i,z),I._color=o,E-=1;else{if(I._color=o,I.left=R.right,R._color=i,R.right=I,A[E-2]=R,A[E-1]=v,f(I),f(R),E>=3){var F=A[E-3];F.left===I?F.left=R:F.right=R}break}}else{var z=I.right;if(z&&z._color===o)R._color=i,I.right=s(i,z),I._color=o,E-=1;else{if(R.right=v.left,I._color=o,I.left=v.right,v._color=i,v.left=R,v.right=I,A[E-2]=v,A[E-1]=R,f(I),f(R),f(v),E>=3){var F=A[E-3];F.left===I?F.left=v:F.right=v}break}}else if(R.right===v){var z=I.left;if(z&&z._color===o)R._color=i,I.left=s(i,z),I._color=o,E-=1;else{if(I._color=o,I.right=R.left,R._color=i,R.left=I,A[E-2]=R,A[E-1]=v,f(I),f(R),E>=3){var F=A[E-3];F.right===I?F.right=R:F.left=R}break}}else{var z=I.left;if(z&&z._color===o)R._color=i,I.left=s(i,z),I._color=o,E-=1;else{if(R.left=v.right,I._color=o,I.right=v.left,v._color=i,v.right=R,v.left=I,A[E-2]=v,A[E-1]=R,f(I),f(R),f(v),E>=3){var F=A[E-3];F.right===I?F.right=v:F.left=v}break}}}return A[0]._color=i,new c(y,A[0])};function b(d,w){if(w.left){var y=b(d,w.left);if(y)return y}var y=d(w.key,w.value);if(y)return y;if(w.right)return b(d,w.right)}function h(d,w,y,v){var A=w(d,v.key);if(A<=0){if(v.left){var p=h(d,w,y,v.left);if(p)return p}var p=y(v.key,v.value);if(p)return p}if(v.right)return h(d,w,y,v.right)}function _(d,w,y,v,A){var p=y(d,A.key),D=y(w,A.key),E;if(p<=0&&(A.left&&(E=_(d,w,y,v,A.left),E)||D>0&&(E=v(A.key,A.value),E)))return E;if(D>0&&A.right)return _(d,w,y,v,A.right)}g.forEach=function(w,y,v){if(this.root)switch(arguments.length){case 1:return b(w,this.root);case 2:return h(y,this._compare,w,this.root);case 3:return this._compare(y,v)>=0?void 0:_(y,v,this._compare,w,this.root)}},Object.defineProperty(g,"begin",{get:function(){for(var d=[],w=this.root;w;)d.push(w),w=w.left;return new T(this,d)}}),Object.defineProperty(g,"end",{get:function(){for(var d=[],w=this.root;w;)d.push(w),w=w.right;return new T(this,d)}}),g.at=function(d){if(d<0)return new T(this,[]);for(var w=this.root,y=[];;){if(y.push(w),w.left){if(d<w.left._count){w=w.left;continue}d-=w.left._count}if(!d)return new T(this,y);if(d-=1,w.right){if(d>=w.right._count)break;w=w.right}else break}return new T(this,[])},g.ge=function(d){for(var w=this._compare,y=this.root,v=[],A=0;y;){var p=w(d,y.key);v.push(y),p<=0&&(A=v.length),p<=0?y=y.left:y=y.right}return v.length=A,new T(this,v)},g.gt=function(d){for(var w=this._compare,y=this.root,v=[],A=0;y;){var p=w(d,y.key);v.push(y),p<0&&(A=v.length),p<0?y=y.left:y=y.right}return v.length=A,new T(this,v)},g.lt=function(d){for(var w=this._compare,y=this.root,v=[],A=0;y;){var p=w(d,y.key);v.push(y),p>0&&(A=v.length),p<=0?y=y.left:y=y.right}return v.length=A,new T(this,v)},g.le=function(d){for(var w=this._compare,y=this.root,v=[],A=0;y;){var p=w(d,y.key);v.push(y),p>=0&&(A=v.length),p<0?y=y.left:y=y.right}return v.length=A,new T(this,v)},g.find=function(d){for(var w=this._compare,y=this.root,v=[];y;){var A=w(d,y.key);if(v.push(y),A===0)return new T(this,v);A<=0?y=y.left:y=y.right}return new T(this,[])},g.remove=function(d){var w=this.find(d);return w?w.remove():this},g.get=function(d){for(var w=this._compare,y=this.root;y;){var v=w(d,y.key);if(v===0)return y.value;v<=0?y=y.left:y=y.right}};function T(d,w){this.tree=d,this._stack=w}var m=T.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 T(this.tree,this._stack.slice())};function k(d,w){d.key=w.key,d.value=w.value,d.left=w.left,d.right=w.right,d._color=w._color,d._count=w._count}function S(d){for(var w,y,v,A,p=d.length-1;p>=0;--p){if(w=d[p],p===0){w._color=i;return}if(y=d[p-1],y.left===w){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,w._color=i,y._color=i,A._color=i,f(y),f(v),p>1){var D=d[p-2];D.left===y?D.left=v:D.right=v}d[p-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,w._color=i,f(y),f(v),f(A),p>1){var D=d[p-2];D.left===y?D.left=A:D.right=A}d[p-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),p>1){var D=d[p-2];D.left===y?D.left=v:D.right=v}d[p-1]=v,d[p]=y,p+1<d.length?d[p+1]=w:d.push(w),p=p+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,w._color=i,y._color=i,A._color=i,f(y),f(v),p>1){var D=d[p-2];D.right===y?D.right=v:D.left=v}d[p-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,w._color=i,f(y),f(v),f(A),p>1){var D=d[p-2];D.right===y?D.right=A:D.left=A}d[p-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),p>1){var D=d[p-2];D.right===y?D.right=v:D.left=v}d[p-1]=v,d[p]=y,p+1<d.length?d[p+1]=w:d.push(w),p=p+2}}}}m.remove=function(){var d=this._stack;if(d.length===0)return this.tree;var w=new Array(d.length),y=d[d.length-1];w[w.length-1]=new l(y._color,y.key,y.value,y.left,y.right,y._count);for(var v=d.length-2;v>=0;--v){var y=d[v];y.left===d[v+1]?w[v]=new l(y._color,y.key,y.value,w[v+1],y.right,y._count):w[v]=new l(y._color,y.key,y.value,y.left,w[v+1],y._count)}if(y=w[w.length-1],y.left&&y.right){var A=w.length;for(y=y.left;y.right;)w.push(y),y=y.right;var p=w[A-1];w.push(new l(y._color,p.key,p.value,y.left,y.right,y._count)),w[A-1].key=y.key,w[A-1].value=y.value;for(var v=w.length-2;v>=A;--v)y=w[v],w[v]=new l(y._color,y.key,y.value,y.left,w[v+1],y._count);w[A-1].left=w[A]}if(y=w[w.length-1],y._color===o){var D=w[w.length-2];D.left===y?D.left=null:D.right===y&&(D.right=null),w.pop();for(var v=0;v<w.length;++v)w[v]._count--;return new c(this.tree._compare,w[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<w.length-1;++v)w[v]._count--;return new c(this.tree._compare,w[0])}else{if(w.length===1)return new c(this.tree._compare,null);for(var v=0;v<w.length;++v)w[v]._count--;var E=w[w.length-2];S(w),E.left===y?E.left=null:E.right=null}return new c(this.tree._compare,w[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 d=0,w=this._stack;if(w.length===0){var y=this.tree.root;return y?y._count:0}else w[w.length-1].left&&(d=w[w.length-1].left._count);for(var v=w.length-2;v>=0;--v)w[v+1]===w[v].right&&(++d,w[v].left&&(d+=w[v].left._count));return d},enumerable:!0}),m.next=function(){var d=this._stack;if(d.length!==0){var w=d[d.length-1];if(w.right)for(w=w.right;w;)d.push(w),w=w.left;else for(d.pop();d.length>0&&d[d.length-1].right===w;)w=d[d.length-1],d.pop()}},Object.defineProperty(m,"hasNext",{get:function(){var d=this._stack;if(d.length===0)return!1;if(d[d.length-1].right)return!0;for(var w=d.length-1;w>0;--w)if(d[w-1].left===d[w])return!0;return!1}}),m.update=function(d){var w=this._stack;if(w.length===0)throw new Error("Can't update empty node!");var y=new Array(w.length),v=w[w.length-1];y[y.length-1]=new l(v._color,v.key,d,v.left,v.right,v._count);for(var A=w.length-2;A>=0;--A)v=w[A],v.left===w[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 d=this._stack;if(d.length!==0){var w=d[d.length-1];if(w.left)for(w=w.left;w;)d.push(w),w=w.right;else for(d.pop();d.length>0&&d[d.length-1].left===w;)w=d[d.length-1],d.pop()}},Object.defineProperty(m,"hasPrev",{get:function(){var d=this._stack;if(d.length===0)return!1;if(d[d.length-1].left)return!0;for(var w=d.length-1;w>0;--w)if(d[w-1].right===d[w])return!0;return!1}});function x(d,w){return d<w?-1:d>w?1:0}function M(d){return new c(d||x,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),g=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),b=ArrayBuffer,h=DataView;function _(R){return b.isView(R)&&!(R instanceof h)}function T(R){return Array.isArray(R)||_(R)}function m(R,I){return R[0]=I[0],R[1]=I[1],R[2]=I[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 I($,ae,Q){if(Q in R){var te=R[Q],ue=this[Q],ee;($?T(te)&&T(te[0]):T(te))?this[Q]=ee=[ae(te[0]),ae(te[1]),ae(te[2])]:this[Q]=ee=[ae(te),ae(te),ae(te)];for(var ie=0;ie<3;++ie)if(ee[ie]!==ue[ie])return!0}return!1}var z=I.bind(this,!1,Number),F=I.bind(this,!1,Boolean),L=I.bind(this,!1,String),P=I.bind(this,!0,function($){if(T($)){if($.length===3)return[+$[0],+$[1],+$[2],1];if($.length===4)return[+$[0],+$[1],+$[2],+$[3]]}return[0,0,0,1]}),B,O=!1,G=!1;if("bounds"in R)for(var J=R.bounds,j=0;j<2;++j)for(var V=0;V<3;++V)J[j][V]!==this.bounds[j][V]&&(G=!0),this.bounds[j][V]=J[j][V];if("ticks"in R){B=R.ticks,O=!0,this.autoTicks=!1;for(var j=0;j<3;++j)this.tickSpacing[j]=0}else z("tickSpacing")&&(this.autoTicks=!0,G=!0);if(this._firstInit&&("ticks"in R||"tickSpacing"in R||(this.autoTicks=!0),G=!0,O=!0,this._firstInit=!1),G&&this.autoTicks&&(B=c.create(this.bounds,this.tickSpacing),O=!0),O){for(var j=0;j<3;++j)B[j].sort(function(ae,Q){return ae.x-Q.x});c.equal(B,this.ticks)?O=!1:this.ticks=B}F("tickEnable"),L("tickFont")&&(O=!0),L("tickFontStyle")&&(O=!0),L("tickFontWeight")&&(O=!0),L("tickFontVariant")&&(O=!0),z("tickSize"),z("tickAngle"),z("tickPad"),P("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),F("labelEnable"),z("labelSize"),z("labelPad"),P("labelColor"),F("lineEnable"),F("lineMirror"),z("lineWidth"),P("lineColor"),F("lineTickEnable"),F("lineTickMirror"),z("lineTickLength"),z("lineTickWidth"),P("lineTickColor"),F("gridEnable"),z("gridWidth"),P("gridColor"),F("zeroEnable"),P("zeroLineColor"),z("zeroLineWidth"),F("backgroundEnable"),P("backgroundColor");var Z=[{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]}],re=[{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,Z,this.ticks,re):this._text=l(this.gl,this.bounds,this.labels,Z,this.ticks,re),this._lines&&O&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function x(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var M=[new x,new x,new x];function d(R,I,z,F,L){for(var P=R.primalOffset,B=R.primalMinor,O=R.mirrorOffset,G=R.mirrorMinor,J=F[I],j=0;j<3;++j)if(I!==j){var V=P,q=O,Z=B,re=G;J&1<<j&&(V=O,q=P,Z=G,re=B),V[j]=z[0][j],q[j]=z[1][j],L[j]>0?(Z[j]=-1,re[j]=0):(Z[j]=0,re[j]=1)}}var w=[0,0,0],y={model:g,view:g,projection:g,_ortho:!1};S.isOpaque=function(){return!0},S.isTransparent=function(){return!1},S.drawTransparent=function(R){};var v=0,A=[0,0,0],p=[0,0,0],D=[0,0,0];S.draw=function(R){R=R||y;for(var Q=this.gl,I=R.model||g,z=R.view||g,F=R.projection||g,L=this.bounds,P=R._ortho||!1,B=f(I,z,F,L,P),O=B.cubeEdges,G=B.axis,J=z[12],j=z[13],V=z[14],q=z[15],Z=P?2:1,re=Z*this.pixelRatio*(F[3]*J+F[7]*j+F[11]*V+F[15]*q)/Q.drawingBufferHeight,$=0;$<3;++$)this.lastCubeProps.cubeEdges[$]=O[$],this.lastCubeProps.axis[$]=G[$];for(var ae=M,$=0;$<3;++$)d(M[$],$,this.bounds,O,G);for(var Q=this.gl,te=w,$=0;$<3;++$)this.backgroundEnable[$]?te[$]=G[$]:te[$]=0;this._background.draw(I,z,F,L,te,this.backgroundColor),this._lines.bind(I,z,F,this);for(var $=0;$<3;++$){var ue=[0,0,0];G[$]>0?ue[$]=L[1][$]:ue[$]=L[0][$];for(var ee=0;ee<2;++ee){var ie=($+1+ee)%3,fe=($+1+(ee^1))%3;this.gridEnable[ie]&&this._lines.drawGrid(ie,fe,this.bounds,ue,this.gridColor[ie],this.gridWidth[ie]*this.pixelRatio)}for(var ee=0;ee<2;++ee){var ie=($+1+ee)%3,fe=($+1+(ee^1))%3;this.zeroEnable[fe]&&Math.min(L[0][fe],L[1][fe])<=0&&Math.max(L[0][fe],L[1][fe])>=0&&this._lines.drawZero(ie,fe,this.bounds,ue,this.zeroLineColor[fe],this.zeroLineWidth[fe]*this.pixelRatio)}}for(var $=0;$<3;++$){this.lineEnable[$]&&this._lines.drawAxisLine($,this.bounds,ae[$].primalOffset,this.lineColor[$],this.lineWidth[$]*this.pixelRatio),this.lineMirror[$]&&this._lines.drawAxisLine($,this.bounds,ae[$].mirrorOffset,this.lineColor[$],this.lineWidth[$]*this.pixelRatio);for(var we=m(A,ae[$].primalMinor),Te=m(p,ae[$].mirrorMinor),ke=this.lineTickLength,ee=0;ee<3;++ee){var ge=re/I[5*ee];we[ee]*=ke[ee]*ge,Te[ee]*=ke[ee]*ge}this.lineTickEnable[$]&&this._lines.drawAxisTicks($,ae[$].primalOffset,we,this.lineTickColor[$],this.lineTickWidth[$]*this.pixelRatio),this.lineTickMirror[$]&&this._lines.drawAxisTicks($,ae[$].mirrorOffset,Te,this.lineTickColor[$],this.lineTickWidth[$]*this.pixelRatio)}this._lines.unbind(),this._text.bind(I,z,F,this.pixelRatio);var Ee,Le=.5,se,X;function K(Se){X=[0,0,0],X[Se]=1}function ye(Se,ve,he){var be=(Se+1)%3,Ae=(Se+2)%3,Re=ve[be],Pe=ve[Ae],Ye=he[be],Ve=he[Ae];if(Re>0&&Ve>0){K(be);return}else if(Re>0&&Ve<0){K(be);return}else if(Re<0&&Ve>0){K(be);return}else if(Re<0&&Ve<0){K(be);return}else if(Pe>0&&Ye>0){K(Ae);return}else if(Pe>0&&Ye<0){K(Ae);return}else if(Pe<0&&Ye>0){K(Ae);return}else if(Pe<0&&Ye<0){K(Ae);return}}for(var $=0;$<3;++$){for(var oe=ae[$].primalMinor,de=ae[$].mirrorMinor,pe=m(D,ae[$].primalOffset),ee=0;ee<3;++ee)this.lineTickEnable[$]&&(pe[ee]+=re*oe[ee]*Math.max(this.lineTickLength[ee],0)/I[5*ee]);var me=[0,0,0];if(me[$]=1,this.tickEnable[$]){this.tickAngle[$]===-3600?(this.tickAngle[$]=0,this.tickAlign[$]="auto"):this.tickAlign[$]=-1,se=1,Ee=[this.tickAlign[$],Le,se],Ee[0]==="auto"?Ee[0]=v:Ee[0]=parseInt(""+Ee[0]),X=[0,0,0],ye($,oe,de);for(var ee=0;ee<3;++ee)pe[ee]+=re*oe[ee]*this.tickPad[ee]/I[5*ee];this._text.drawTicks($,this.tickSize[$],this.tickAngle[$],pe,this.tickColor[$],me,X,Ee)}if(this.labelEnable[$]){se=0,X=[0,0,0],this.labels[$].length>4&&(K($),se=1),Ee=[this.labelAlign[$],Le,se],Ee[0]==="auto"?Ee[0]=v:Ee[0]=parseInt(""+Ee[0]);for(var ee=0;ee<3;++ee)pe[ee]+=re*oe[ee]*this.labelPad[ee]/I[5*ee];pe[$]+=.5*(L[0][$]+L[1][$]),this._text.drawLabel($,this.labelSize[$],this.labelAngle[$],pe,this.labelColor[$],[0,0,0],X,Ee)}}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,I){var z=new k(R);return z.update(I),z}},5304(a,o,i){"use strict";a.exports=g;var l=i(2762),u=i(8116),s=i(1879).bg;function f(b,h,_,T){this.gl=b,this.buffer=h,this.vao=_,this.shader=T}var c=f.prototype;c.draw=function(b,h,_,T,m,k){for(var S=!1,x=0;x<3;++x)S=S||m[x];if(S){var M=this.gl;M.enable(M.POLYGON_OFFSET_FILL),M.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:b,view:h,projection:_,bounds:T,enable:m,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),M.disable(M.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function g(b){for(var h=[],_=[],T=0,m=0;m<3;++m)for(var k=(m+1)%3,S=(m+2)%3,x=[0,0,0],M=[0,0,0],d=-1;d<=1;d+=2){_.push(T,T+2,T+1,T+1,T+2,T+3),x[m]=d,M[m]=d;for(var w=-1;w<=1;w+=2){x[k]=w;for(var y=-1;y<=1;y+=2)x[S]=y,h.push(x[0],x[1],x[2],M[0],M[1],M[2]),T+=1}var v=k;k=S,S=v}var A=l(b,new Float32Array(h)),p=l(b,new Uint16Array(_),b.ELEMENT_ARRAY_BUFFER),D=u(b,[{buffer:A,type:b.FLOAT,size:3,offset:0,stride:24},{buffer:A,type:b.FLOAT,size:3,offset:12,stride:24}],p),E=s(b);return E.attributes.position.location=0,E.attributes.normal.location=1,new f(b,A,D,E)}},6429(a,o,i){"use strict";a.exports=d;var l=i(8828),u=i(6760),s=i(5202),f=i(3250),c=new Array(16),g=new Array(8),b=new Array(8),h=new Array(3),_=[0,0,0];(function(){for(var w=0;w<8;++w)g[w]=[1,1,1,1],b[w]=[1,1,1]})();function T(w,y,v){for(var A=0;A<4;++A){w[A]=v[12+A];for(var p=0;p<3;++p)w[A]+=y[p]*v[4*p+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(w){for(var y=0;y<m.length;++y)if(w=s.positive(w,m[y]),w.length<3)return 0;for(var v=w[0],A=v[0]/v[3],p=v[1]/v[3],D=0,y=1;y+1<w.length;++y){var E=w[y],R=w[y+1],I=E[0]/E[3],z=E[1]/E[3],F=R[0]/R[3],L=R[1]/R[3],P=I-A,B=z-p,O=F-A,G=L-p;D+=Math.abs(P*G-B*O)}return D}var S=[1,1,1],x=[0,0,0],M={cubeEdges:S,axis:x};function d(w,y,v,A,p){u(c,y,w),u(c,v,c);for(var D=0,E=0;E<2;++E){h[2]=A[E][2];for(var R=0;R<2;++R){h[1]=A[R][1];for(var I=0;I<2;++I)h[0]=A[I][0],T(g[D],h,c),D+=1}}for(var z=-1,E=0;E<8;++E){for(var F=g[E][3],L=0;L<3;++L)b[E][L]=g[E][L]/F;p&&(b[E][2]*=-1),F<0&&(z<0||b[E][2]<b[z][2])&&(z=E)}if(z<0){z=0;for(var P=0;P<3;++P){for(var B=(P+2)%3,O=(P+1)%3,G=-1,J=-1,j=0;j<2;++j){var V=j<<P,q=V+(j<<B)+(1-j<<O),Z=V+(1-j<<B)+(j<<O);f(b[V],b[q],b[Z],_)<0||(j?G=1:J=1)}if(G<0||J<0){J>G&&(z|=1<<P);continue}for(var j=0;j<2;++j){var V=j<<P,q=V+(j<<B)+(1-j<<O),Z=V+(1-j<<B)+(j<<O),re=k([g[V],g[q],g[Z],g[V+(1<<B)+(1<<O)]]);j?G=re:J=re}if(J>G){z|=1<<P;continue}}}for(var $=7^z,ae=-1,E=0;E<8;++E)E===z||E===$||(ae<0||b[ae][1]>b[E][1])&&(ae=E);for(var Q=-1,E=0;E<3;++E){var te=ae^1<<E;if(!(te===z||te===$)){Q<0&&(Q=te);var O=b[te];O[0]<b[Q][0]&&(Q=te)}}for(var ue=-1,E=0;E<3;++E){var te=ae^1<<E;if(!(te===z||te===$||te===Q)){ue<0&&(ue=te);var O=b[te];O[0]>b[ue][0]&&(ue=te)}}var ee=S;ee[0]=ee[1]=ee[2]=0,ee[l.log2(Q^ae)]=ae&Q,ee[l.log2(ae^ue)]=ae&ue;var ie=ue^7;ie===z||ie===$?(ie=Q^7,ee[l.log2(ue^ie)]=ie&ue):ee[l.log2(Q^ie)]=ie&Q;for(var fe=x,we=z,P=0;P<3;++P)we&1<<P?fe[P]=-1:fe[P]=1;return M}},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],g=[0,0,0],b=[0,0,0],h=[1,1];function _(x){return x[0]=x[1]=x[2]=0,x}function T(x,M){return x[0]=M[0],x[1]=M[1],x[2]=M[2],x}function m(x,M,d,w,y,v,A,p){this.gl=x,this.vertBuffer=M,this.vao=d,this.shader=w,this.tickCount=y,this.tickOffset=v,this.gridCount=A,this.gridOffset=p}var k=m.prototype;k.bind=function(x,M,d){this.shader.bind(),this.shader.uniforms.model=x,this.shader.uniforms.view=M,this.shader.uniforms.projection=d,h[0]=this.gl.drawingBufferWidth,h[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=h,this.vao.bind()},k.unbind=function(){this.vao.unbind()},k.drawAxisLine=function(x,M,d,w,y){var v=_(c);this.shader.uniforms.majorAxis=c,v[x]=M[1][x]-M[0][x],this.shader.uniforms.minorAxis=v;var A=T(b,d);A[x]+=M[0][x],this.shader.uniforms.offset=A,this.shader.uniforms.lineWidth=y,this.shader.uniforms.color=w;var p=_(g);p[(x+2)%3]=1,this.shader.uniforms.screenAxis=p,this.vao.draw(this.gl.TRIANGLES,6);var p=_(g);p[(x+1)%3]=1,this.shader.uniforms.screenAxis=p,this.vao.draw(this.gl.TRIANGLES,6)},k.drawAxisTicks=function(x,M,d,w,y){if(this.tickCount[x]){var v=_(f);v[x]=1,this.shader.uniforms.majorAxis=v,this.shader.uniforms.offset=M,this.shader.uniforms.minorAxis=d,this.shader.uniforms.color=w,this.shader.uniforms.lineWidth=y;var A=_(g);A[x]=1,this.shader.uniforms.screenAxis=A,this.vao.draw(this.gl.TRIANGLES,this.tickCount[x],this.tickOffset[x])}},k.drawGrid=function(x,M,d,w,y,v){if(this.gridCount[x]){var A=_(c);A[M]=d[1][M]-d[0][M],this.shader.uniforms.minorAxis=A;var p=T(b,w);p[M]+=d[0][M],this.shader.uniforms.offset=p;var D=_(f);D[x]=1,this.shader.uniforms.majorAxis=D;var E=_(g);E[x]=1,this.shader.uniforms.screenAxis=E,this.shader.uniforms.lineWidth=v,this.shader.uniforms.color=y,this.vao.draw(this.gl.TRIANGLES,this.gridCount[x],this.gridOffset[x])}},k.drawZero=function(x,M,d,w,y,v){var A=_(c);this.shader.uniforms.majorAxis=A,A[x]=d[1][x]-d[0][x],this.shader.uniforms.minorAxis=A;var p=T(b,w);p[x]+=d[0][x],this.shader.uniforms.offset=p;var D=_(g);D[M]=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(x,M,d){var w=[],y=[0,0,0],v=[0,0,0],A=[0,0,0],p=[0,0,0];w.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 I=w.length/3|0,E=0;E<d[D].length;++E){var R=+d[D][E].x;w.push(R,0,1,R,1,1,R,0,-1,R,0,-1,R,1,1,R,1,-1)}var F=w.length/3|0;y[D]=I,v[D]=F-I;for(var I=w.length/3|0,z=0;z<d[D].length;++z){var R=+d[D][z].x;w.push(R,0,1,R,1,1,R,0,-1,R,0,-1,R,1,1,R,1,-1)}var F=w.length/3|0;A[D]=I,p[D]=F-I}var L=l(x,new Float32Array(w)),P=u(x,[{buffer:L,type:x.FLOAT,size:3,stride:0,offset:0}]),B=s(x);return B.attributes.position.location=0,new m(x,L,P,B,v,y,p,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(_){return u(_,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);
}
`]),g=l([`precision highp float;
#define GLSLIFY 1

uniform vec4 color;
void main() {
  gl_FragColor = color;
}`]);o.Q=function(_){return u(_,c,g,null,[{name:"position",type:"vec3"}])};var b=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);
}
`]),h=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(_){return u(_,b,h,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||{},g=c.__TEXT_CACHE||{};c.__TEXT_CACHE={};var b=3;function h(S,x,M,d){this.gl=S,this.shader=x,this.buffer=M,this.vao=d,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var _=h.prototype,T=[0,0];_.bind=function(S,x,M,d){this.vao.bind(),this.shader.bind();var w=this.shader.uniforms;w.model=S,w.view=x,w.projection=M,w.pixelScale=d,T[0]=this.gl.drawingBufferWidth,T[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=T},_.unbind=function(){this.vao.unbind()},_.update=function(S,x,M,d,w){var y=[];function v(P,B,O,G,J,j){var V=[O.style,O.weight,O.variant,O.family].join("_"),q=g[V];q||(q=g[V]={});var Z=q[B];Z||(Z=q[B]=m(B,{triangles:!0,font:O.family,fontStyle:O.style,fontWeight:O.weight,fontVariant:O.variant,textAlign:"center",textBaseline:"middle",lineSpacing:J,styletags:j}));for(var re=(G||12)/12,$=Z.positions,ae=Z.cells,Q=0,te=ae.length;Q<te;++Q)for(var ue=ae[Q],ee=2;ee>=0;--ee){var ie=$[ue[ee]];y.push(re*ie[0],-re*ie[1],P)}}for(var A=[0,0,0],p=[0,0,0],D=[0,0,0],E=[0,0,0],R=1.25,I={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},z=0;z<3;++z){D[z]=y.length/b|0,v(.5*(S[0][z]+S[1][z]),x[z],M[z],12,R,I),E[z]=(y.length/b|0)-D[z],A[z]=y.length/b|0;for(var F=0;F<d[z].length;++F)if(d[z][F].text){var L={family:d[z][F].font||w[z].family,style:w[z].fontStyle||w[z].style,weight:w[z].fontWeight||w[z].weight,variant:w[z].fontVariant||w[z].variant};v(d[z][F].x,d[z][F].text,L,d[z][F].fontSize||12,R,I)}p[z]=(y.length/b|0)-A[z]}this.buffer.update(y),this.tickOffset=A,this.tickCount=p,this.labelOffset=D,this.labelCount=E},_.drawTicks=function(S,x,M,d,w,y,v,A){this.tickCount[S]&&(this.shader.uniforms.axis=y,this.shader.uniforms.color=w,this.shader.uniforms.angle=M,this.shader.uniforms.scale=x,this.shader.uniforms.offset=d,this.shader.uniforms.alignDir=v,this.shader.uniforms.alignOpt=A,this.vao.draw(this.gl.TRIANGLES,this.tickCount[S],this.tickOffset[S]))},_.drawLabel=function(S,x,M,d,w,y,v,A){this.labelCount[S]&&(this.shader.uniforms.axis=y,this.shader.uniforms.color=w,this.shader.uniforms.angle=M,this.shader.uniforms.scale=x,this.shader.uniforms.offset=d,this.shader.uniforms.alignDir=v,this.shader.uniforms.alignOpt=A,this.vao.draw(this.gl.TRIANGLES,this.labelCount[S],this.labelOffset[S]))},_.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()};function m(S,x){try{return s(S,x)}catch(M){return console.warn('error vectorizing text:"'+S+'" error:',M),{cells:[],positions:[]}}}function k(S,x,M,d,w,y){var v=l(S),A=u(S,[{buffer:v,size:3}]),p=f(S);p.attributes.position.location=0;var D=new h(S,p,v,A);return D.update(x,M,d,w,y),D}},6444(a,o){"use strict";o.create=l,o.equal=u;function i(s,f){var c=s+"",g=c.indexOf("."),b=0;g>=0&&(b=c.length-g-1);var h=Math.pow(10,b),_=Math.round(s*f*h),T=_+"";if(T.indexOf("e")>=0)return T;var m=_/h,k=_%h;_<0?(m=-Math.ceil(m)|0,k=-k|0):(m=Math.floor(m)|0,k=k|0);var S=""+m;if(_<0&&(S="-"+S),b){for(var x=""+k;x.length<b;)x="0"+x;return S+"."+x}else return S}function l(s,f){for(var c=[],g=0;g<3;++g){for(var b=[],h=.5*(s[0][g]+s[1][g]),_=0;_*f[g]<=s[1][g];++_)b.push({x:_*f[g],text:i(f[g],_)});for(var _=-1;_*f[g]>=s[0][g];--_)b.push({x:_*f[g],text:i(f[g],_)});c.push(b)}return c}function u(s,f){for(var c=0;c<3;++c){if(s[c].length!==f[c].length)return!1;for(var g=0;g<s[c].length;++g){var b=s[c][g],h=f[c][g];if(b.x!==h.x||b.text!==h.text||b.font!==h.font||b.fontColor!==h.fontColor||b.fontSize!==h.fontSize||b.dx!==h.dx||b.dy!==h.dy)return!1}}return!0}},5445(a,o,i){"use strict";a.exports=M;var l=i(5033),u=i(5202),s=i(6429),f=i(6760),c=i(5665),g=i(5352),b=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),h=new Float32Array(16);function _(d,w,y){this.lo=d,this.hi=w,this.pixelsPerDataUnit=y}var T=[0,0,0,1],m=[0,0,0,1];function k(d,w,y,v,A){for(var p=0;p<3;++p){for(var D=T,E=m,R=0;R<3;++R)E[R]=D[R]=y[R];E[3]=D[3]=1,E[p]+=1,g(E,E,w),E[3]<0&&(d[p]=1/0),D[p]-=1,g(D,D,w),D[3]<0&&(d[p]=1/0);var I=(D[0]/D[3]-E[0]/E[3])*v,z=(D[1]/D[3]-E[1]/E[3])*A;d[p]=.25*Math.sqrt(I*I+z*z)}return d}var S=[new _(1/0,-1/0,1/0),new _(1/0,-1/0,1/0),new _(1/0,-1/0,1/0)],x=[0,0,0];function M(d,w,y,v,z){var p=w.model||b,D=w.view||b,E=w.projection||b,R=w._ortho||!1,I=d.bounds,z=z||s(p,D,E,I,R),F=z.axis;f(h,D,p),f(h,E,h);for(var L=S,P=0;P<3;++P)L[P].lo=1/0,L[P].hi=-1/0,L[P].pixelsPerDataUnit=1/0;var B=l(c(h,h));c(h,h);for(var O=0;O<3;++O){var G=(O+1)%3,J=(O+2)%3,j=x;e:for(var P=0;P<2;++P){var V=[];if(F[O]<0!=!!P){j[O]=I[P][O];for(var q=0;q<2;++q){j[G]=I[q^P][G];for(var Z=0;Z<2;++Z)j[J]=I[Z^q^P][J],V.push(j.slice())}for(var re=R?5:4,q=re;q===re;++q){if(V.length===0)continue e;V=u.positive(V,B[q])}for(var q=0;q<V.length;++q)for(var J=V[q],$=k(x,h,J,y,v),Z=0;Z<3;++Z)L[Z].lo=Math.min(L[Z].lo,J[Z]),L[Z].hi=Math.max(L[Z].hi,J[Z]),Z!==O&&(L[Z].pixelsPerDataUnit=Math.min(L[Z].pixelsPerDataUnit,Math.abs($[Z])))}}}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,x,M){this.gl=m,this.type=k,this.handle=S,this.length=x,this.usage=M}var g=c.prototype;g.bind=function(){this.gl.bindBuffer(this.type,this.handle)},g.unbind=function(){this.gl.bindBuffer(this.type,null)},g.dispose=function(){this.gl.deleteBuffer(this.handle)};function b(m,k,S,x,M,d){var w=M.length*M.BYTES_PER_ELEMENT;if(d<0)return m.bufferData(k,M,x),w;if(w+d>S)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return m.bufferSubData(k,d,M),S}function h(m,k){for(var S=l.malloc(m.length,k),x=m.length,M=0;M<x;++M)S[M]=m[M];return S}function _(m,k){for(var S=1,x=k.length-1;x>=0;--x){if(k[x]!==S)return!1;S*=m[x]}return!0}g.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 x=gl.getExtension("OES_element_index_uint");x&&S!=="uint16"?S="uint32":S="uint16"}if(S===m.dtype&&_(m.shape,m.stride))m.offset===0&&m.data.length===m.shape[0]?this.length=b(this.gl,this.type,this.length,this.usage,m.data,k):this.length=b(this.gl,this.type,this.length,this.usage,m.data.subarray(m.offset,m.shape[0]),k);else{var M=l.malloc(m.size,S),d=s(M,m.shape);u.assign(d,m),k<0?this.length=b(this.gl,this.type,this.length,this.usage,M,k):this.length=b(this.gl,this.type,this.length,this.usage,M.subarray(0,m.size),k),l.free(M)}}else if(Array.isArray(m)){var w;this.type===this.gl.ELEMENT_ARRAY_BUFFER?w=h(m,"uint16"):w=h(m,"float32"),k<0?this.length=b(this.gl,this.type,this.length,this.usage,w,k):this.length=b(this.gl,this.type,this.length,this.usage,w.subarray(0,m.length),k),l.free(w)}else if(typeof m=="object"&&typeof m.length=="number")this.length=b(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 T(m,k,S,x){if(S=S||m.ARRAY_BUFFER,x=x||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(x!==m.DYNAMIC_DRAW&&x!==m.STATIC_DRAW&&x!==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 M=m.createBuffer(),d=new c(m,S,M,0,x);return d.update(k),d}a.exports=T},6405(a,o,i){"use strict";var l=i(2931);a.exports=function(s,f){var c=s.positions,g=s.vectors,b={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]),b;for(var h=0,_=1/0,T=-1/0,m=1/0,k=-1/0,S=1/0,x=-1/0,M=null,d=null,w=[],y=1/0,v=!1,A=s.coneSizemode==="raw",p=0;p<c.length;p++){var D=c[p];_=Math.min(D[0],_),T=Math.max(D[0],T),m=Math.min(D[1],m),k=Math.max(D[1],k),S=Math.min(D[2],S),x=Math.max(D[2],x);var E=g[p];if(l.length(E)>h&&(h=l.length(E)),p&&!A){var R=2*l.distance(M,D)/(l.length(d)+l.length(E));R?(y=Math.min(y,R),v=!1):v=!0}v||(M=D,d=E),w.push(E)}var I=[_,m,S],z=[T,k,x];f&&(f[0]=I,f[1]=z),h===0&&(h=1);var F=1/h;isFinite(y)||(y=1),b.vectorScale=y;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*F),b.coneScale=L;for(var p=0,P=0;p<c.length;p++)for(var D=c[p],B=D[0],O=D[1],G=D[2],J=w[p],j=l.length(J)*F,V=0,q=8;V<q;V++){b.positions.push([B,O,G,P++]),b.positions.push([B,O,G,P++]),b.positions.push([B,O,G,P++]),b.positions.push([B,O,G,P++]),b.positions.push([B,O,G,P++]),b.positions.push([B,O,G,P++]),b.vectors.push(J),b.vectors.push(J),b.vectors.push(J),b.vectors.push(J),b.vectors.push(J),b.vectors.push(J),b.vertexIntensity.push(j,j,j),b.vertexIntensity.push(j,j,j);var Z=b.positions.length;b.cells.push([Z-6,Z-5,Z-4],[Z-3,Z-2,Z-1])}return b};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),g=i(7608),b=i(9618),h=i(6729),_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(w,y,v,A,p,D,E,R,I,z,F){this.gl=w,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=y,this.dirty=!0,this.triShader=v,this.pickShader=A,this.trianglePositions=p,this.triangleVectors=D,this.triangleColors=R,this.triangleUVs=I,this.triangleIds=E,this.triangleVAO=z,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=F,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=_,this._view=_,this._projection=_,this._resolution=[1,1]}var m=T.prototype;m.isOpaque=function(){return this.opacity>=1},m.isTransparent=function(){return this.opacity<1},m.pickSlots=1,m.setPickBase=function(w){this.pickId=w};function k(w){for(var y=h({colormap:w,nshades:256,format:"rgba"}),v=new Uint8Array(256*4),A=0;A<256;++A){for(var p=y[A],D=0;D<3;++D)v[4*A+D]=p[D];v[4*A+3]=p[3]*255}return b(v,[256,256,4],[4,0,1])}function S(w){for(var y=w.length,v=new Array(y),A=0;A<y;++A)v[A]=w[A][2];return v}m.update=function(w){w=w||{};var y=this.gl;this.dirty=!0,"lightPosition"in w&&(this.lightPosition=w.lightPosition),"opacity"in w&&(this.opacity=w.opacity),"ambient"in w&&(this.ambientLight=w.ambient),"diffuse"in w&&(this.diffuseLight=w.diffuse),"specular"in w&&(this.specularLight=w.specular),"roughness"in w&&(this.roughness=w.roughness),"fresnel"in w&&(this.fresnel=w.fresnel),w.tubeScale!==void 0&&(this.tubeScale=w.tubeScale),w.vectorScale!==void 0&&(this.vectorScale=w.vectorScale),w.coneScale!==void 0&&(this.coneScale=w.coneScale),w.coneOffset!==void 0&&(this.coneOffset=w.coneOffset),w.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=y.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=y.LINEAR,this.texture.setPixels(k(w.colormap)),this.texture.generateMipmap());var v=w.cells,A=w.positions,p=w.vectors;if(!(!A||!v||!p)){var D=[],E=[],R=[],I=[],z=[];this.cells=v,this.positions=A,this.vectors=p;var F=w.meshColor||[1,1,1,1],L=w.vertexIntensity,P=1/0,B=-1/0;if(L)if(w.vertexIntensityBounds)P=+w.vertexIntensityBounds[0],B=+w.vertexIntensityBounds[1];else for(var O=0;O<L.length;++O){var G=L[O];P=Math.min(P,G),B=Math.max(B,G)}else for(var O=0;O<A.length;++O){var G=A[O][2];P=Math.min(P,G),B=Math.max(B,G)}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 J=A[O],j=0;j<3;++j)isNaN(J[j])||!isFinite(J[j])||(this.bounds[0][j]=Math.min(this.bounds[0][j],J[j]),this.bounds[1][j]=Math.max(this.bounds[1][j],J[j]));var V=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 Z=q[j],J=A[Z],re=0;re<3;++re)if(isNaN(J[re])||!isFinite(J[re]))continue e;for(var j=0;j<3;++j){var Z=q[2-j],J=A[Z];D.push(J[0],J[1],J[2],J[3]);var $=p[Z];E.push($[0],$[1],$[2],$[3]||0);var ae=F;ae.length===3?R.push(ae[0],ae[1],ae[2],1):R.push(ae[0],ae[1],ae[2],ae[3]);var Q;L?Q=[(L[Z]-P)/(B-P),0]:Q=[(J[2]-P)/(B-P),0],I.push(Q[0],Q[1]),z.push(O)}V+=1;break;default:break}}this.triangleCount=V,this.trianglePositions.update(D),this.triangleVectors.update(E),this.triangleColors.update(R),this.triangleUVs.update(I),this.triangleIds.update(new Uint32Array(z))}},m.drawTransparent=m.draw=function(w){w=w||{};for(var y=this.gl,v=w.model||_,A=w.view||_,p=w.projection||_,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:p,inverseModel:_.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=g(R.inverseModel,R.model),y.disable(y.CULL_FACE),this.texture.bind(0);var I=new Array(16);c(I,R.view,R.model),c(I,R.projection,I),g(I,I);for(var E=0;E<3;++E)R.eyePosition[E]=I[12+E]/I[15];for(var z=I[15],E=0;E<3;++E)z+=this.lightPosition[E]*I[4*E+3];for(var E=0;E<3;++E){for(var F=I[12+E],L=0;L<3;++L)F+=I[4*L+E]*this.lightPosition[L];R.lightPosition[E]=F/z}if(this.triangleCount>0){var P=this.triShader;P.bind(),P.uniforms=R,this.triangleVAO.bind(),y.drawArrays(y.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},m.drawPick=function(w){w=w||{};for(var y=this.gl,v=w.model||_,A=w.view||_,p=w.projection||_,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(p),this._resolution=[y.drawingBufferWidth,y.drawingBufferHeight];var R={model:v,view:A,projection:p,clipBounds:D,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},I=this.pickShader;I.bind(),I.uniforms=R,this.triangleCount>0&&(this.triangleVAO.bind(),y.drawArrays(y.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},m.pick=function(w){if(!w||w.id!==this.pickId)return null;var y=w.value[0]+256*w.value[1]+65536*w.value[2],v=this.cells[y],A=this.positions[v[1]].slice(0,3),p={position:A,dataCoordinate:A,index:Math.floor(v[1]/48)};return this.traceType==="cone"?p.index=Math.floor(v[1]/48):this.traceType==="streamtube"&&(p.intensity=this.intensity[v[1]],p.velocity=this.vectors[v[1]].slice(0,3),p.divergence=this.vectors[v[1]][3],p.index=y),p},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 x(w,y){var v=l(w,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 M(w,y){var v=l(w,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 d(w,y,v){var A=v.shaders;arguments.length===1&&(y=w,w=y.gl);var p=x(w,A),D=M(w,A),E=f(w,b(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=w.LINEAR_MIPMAP_LINEAR,E.magFilter=w.LINEAR;var R=u(w),I=u(w),z=u(w),F=u(w),L=u(w),P=s(w,[{buffer:R,type:w.FLOAT,size:4},{buffer:L,type:w.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:z,type:w.FLOAT,size:4},{buffer:F,type:w.FLOAT,size:2},{buffer:I,type:w.FLOAT,size:4}]),B=new T(w,E,p,D,R,I,L,z,F,P,v.traceType||"cone");return B.update(y),B}a.exports=d},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=T;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,x){this.gl=m,this.shader=x,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 g=c.prototype;g.isOpaque=function(){return!this.hasAlpha},g.isTransparent=function(){return this.hasAlpha},g.drawTransparent=g.draw=function(m){var k=this.gl,S=this.shader.uniforms;this.shader.bind();var x=S.view=m.view||f,M=S.projection=m.projection||f;S.model=m.model||f,S.clipBounds=this.clipBounds,S.opacity=this.opacity;var d=x[12],w=x[13],y=x[14],v=x[15],A=m._ortho||!1,p=A?2:1,D=p*this.pixelRatio*(M[3]*d+M[7]*w+M[11]*y+M[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 b(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 h=(function(){for(var m=new Array(3),k=0;k<3;++k){for(var S=[],x=1;x<=2;++x)for(var M=-1;M<=1;M+=2){var d=(x+k)%3,w=[0,0,0];w[d]=M,S.push(w)}m[k]=S}return m})();function _(m,k,S,x){for(var M=h[x],d=0;d<M.length;++d){var w=M[d];m.push(k[0],k[1],k[2],S[0],S[1],S[2],S[3],w[0],w[1],w[2])}return M.length}g.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,x=m.error;if(Array.isArray(k[0])||(k=[k,k,k]),S&&x){var M=[],d=S.length,w=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]=w;e:for(var v=0;v<d;++v){for(var A=S[v],p=0;p<3;++p)if(isNaN(A[p])||!isFinite(A[p]))continue e;var D=x[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],M.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),b(this.bounds,R),w+=2+_(M,R,E,y)}if(D[1][y]>0){var R=A.slice();R[y]+=D[1][y],M.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),b(this.bounds,R),w+=2+_(M,R,E,y)}}}this.lineCount[y]=w-this.lineOffset[y]}this.buffer.update(M)}},g.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function T(m){var k=m.gl,S=l(k),x=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}]),M=s(k);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var d=new c(k,S,x,M);return d.update(m),d}},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=w;var u=null,s,f,c,g;function b(y){var v=y.getParameter(y.FRAMEBUFFER_BINDING),A=y.getParameter(y.RENDERBUFFER_BINDING),p=y.getParameter(y.TEXTURE_BINDING_2D);return[v,A,p]}function h(y,v){y.bindFramebuffer(y.FRAMEBUFFER,v[0]),y.bindRenderbuffer(y.RENDERBUFFER,v[1]),y.bindTexture(y.TEXTURE_2D,v[2])}function _(y,v){var A=y.getParameter(v.MAX_COLOR_ATTACHMENTS_WEBGL);u=new Array(A+1);for(var p=0;p<=A;++p){for(var D=new Array(A),E=0;E<p;++E)D[E]=y.COLOR_ATTACHMENT0+E;for(var E=p;E<A;++E)D[E]=y.NONE;u[p]=D}}function T(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 g: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,p,D,E){if(!p)return null;var R=l(y,v,A,D,p);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,p,D){var E=y.createRenderbuffer();return y.bindRenderbuffer(y.RENDERBUFFER,E),y.renderbufferStorage(y.RENDERBUFFER,p,v,A),y.framebufferRenderbuffer(y.FRAMEBUFFER,D,y.RENDERBUFFER,E),E}function S(y){var v=b(y.gl),A=y.gl,p=y.handle=A.createFramebuffer(),D=y._shape[0],E=y._shape[1],R=y.color.length,I=y._ext,z=y._useStencil,F=y._useDepth,L=y._colorType;A.bindFramebuffer(A.FRAMEBUFFER,p);for(var P=0;P<R;++P)y.color[P]=m(A,D,E,L,A.RGBA,A.COLOR_ATTACHMENT0+P);R===0?(y._color_rb=k(A,D,E,A.RGBA4,A.COLOR_ATTACHMENT0),I&&I.drawBuffersWEBGL(u[0])):R>1&&I.drawBuffersWEBGL(u[R]);var B=A.getExtension("WEBGL_depth_texture");B?z?y.depth=m(A,D,E,B.UNSIGNED_INT_24_8_WEBGL,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):F&&(y.depth=m(A,D,E,A.UNSIGNED_SHORT,A.DEPTH_COMPONENT,A.DEPTH_ATTACHMENT)):F&&z?y._depth_rb=k(A,D,E,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):F?y._depth_rb=k(A,D,E,A.DEPTH_COMPONENT16,A.DEPTH_ATTACHMENT):z&&(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 P=0;P<y.color.length;++P)y.color[P].dispose(),y.color[P]=null;y._color_rb&&(A.deleteRenderbuffer(y._color_rb),y._color_rb=null),h(A,v),T(O)}h(A,v)}function x(y,v,A,p,D,E,R,I){this.gl=y,this._shape=[v|0,A|0],this._destroyed=!1,this._ext=I,this.color=new Array(D);for(var z=0;z<D;++z)this.color[z]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=p,this._useDepth=E,this._useStencil=R;var F=this,L=[v|0,A|0];Object.defineProperties(L,{0:{get:function(){return F._shape[0]},set:function(P){return F.width=P}},1:{get:function(){return F._shape[1]},set:function(P){return F.height=P}}}),this._shapeVector=L,S(this)}var M=x.prototype;function d(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 p=y.gl,D=p.getParameter(p.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=b(p),R=0;R<y.color.length;++R)y.color[R].shape=y._shape;y._color_rb&&(p.bindRenderbuffer(p.RENDERBUFFER,y._color_rb),p.renderbufferStorage(p.RENDERBUFFER,p.RGBA4,y._shape[0],y._shape[1])),y.depth&&(y.depth.shape=y._shape),y._depth_rb&&(p.bindRenderbuffer(p.RENDERBUFFER,y._depth_rb),y._useDepth&&y._useStencil?p.renderbufferStorage(p.RENDERBUFFER,p.DEPTH_STENCIL,y._shape[0],y._shape[1]):y._useDepth?p.renderbufferStorage(p.RENDERBUFFER,p.DEPTH_COMPONENT16,y._shape[0],y._shape[1]):y._useStencil&&p.renderbufferStorage(p.RENDERBUFFER,p.STENCIL_INDEX,y._shape[0],y._shape[1])),p.bindFramebuffer(p.FRAMEBUFFER,y.handle);var I=p.checkFramebufferStatus(p.FRAMEBUFFER);I!==p.FRAMEBUFFER_COMPLETE&&(y.dispose(),h(p,E),T(I)),h(p,E)}}Object.defineProperties(M,{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 d(this,v,A),[v,A]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(y){return y=y|0,d(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,d(this,this._shape[0],y),y},enumerable:!1}}),M.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])}},M.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 w(y,v,A,p){s||(s=y.FRAMEBUFFER_UNSUPPORTED,f=y.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,c=y.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,g=y.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var D=y.getExtension("WEBGL_draw_buffers");if(!u&&D&&_(y,D),Array.isArray(v)&&(p=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");p=p||{};var R=1;if("color"in p){if(R=Math.max(p.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 I=y.UNSIGNED_BYTE,z=y.getExtension("OES_texture_float");if(p.float&&R>0){if(!z)throw new Error("gl-fbo: Context does not support floating point textures");I=y.FLOAT}else p.preferFloat&&R>0&&z&&(I=y.FLOAT);var F=!0;"depth"in p&&(F=!!p.depth);var L=!1;return"stencil"in p&&(L=!!p.stencil),new x(y,v,A,I,R,F,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(g,b,h){"use strict";var _=s(b)||"of unknown name (see npm glsl-shader-name)",T="unknown type";h!==void 0&&(T=h===u.FRAGMENT_SHADER?"fragment":"vertex");for(var m=l(`Error compiling %s shader %s:
`,T,_),k=l("%s%s",m,g),S=g.split(`
`),x={},M=0;M<S.length;M++){var d=S[M];if(!(d===""||d==="\0")){var w=parseInt(d.split(":")[2]);if(isNaN(w))throw new Error(l("Could not parse error: %s",d));x[w]=d}}for(var y=f(b).split(`
`),M=0;M<y.length;M++)if(!(!x[M+3]&&!x[M+2]&&!x[M+1])){var v=y[M];if(m+=v+`
`,x[M+1]){var A=x[M+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);
}`]),g=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];o.createShader=function(b){return u(b,s,f,null,g)},o.createPickShader=function(b){return u(b,s,c,null,g)}},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 g(v,A,p,D){return f[0]=D,f[1]=p,f[2]=A,f[3]=v,c[0]}var b=i(2478),h=i(9618),_=i(7319),T=_.createShader,m=_.createPickShader,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function S(v,A){for(var p=0,D=0;D<3;++D){var E=v[D]-A[D];p+=E*E}return Math.sqrt(p)}function x(v){for(var A=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],p=0;p<3;++p)A[0][p]=Math.max(v[0][p],A[0][p]),A[1][p]=Math.min(v[1][p],A[1][p]);return A}function M(v,A,p,D){this.arcLength=v,this.position=A,this.index=p,this.dataCoordinate=D}function d(v,A,p,D,E,R){this.gl=v,this.shader=A,this.pickShader=p,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 w=d.prototype;w.isTransparent=function(){return this.hasAlpha},w.isOpaque=function(){return!this.hasAlpha},w.pickSlots=1,w.setPickBase=function(v){this.pickId=v},w.drawTransparent=w.draw=function(v){if(this.vertexCount){var A=this.gl,p=this.shader,D=this.vao;p.bind(),p.uniforms={model:v.model||k,view:v.view||k,projection:v.projection||k,clipBounds:x(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()}},w.drawPick=function(v){if(this.vertexCount){var A=this.gl,p=this.pickShader,D=this.vao;p.bind(),p.uniforms={model:v.model||k,view:v.view||k,projection:v.projection||k,pickId:this.pickId,clipBounds:x(this.clipBounds),screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},D.bind(),D.draw(A.TRIANGLE_STRIP,this.vertexCount),D.unbind()}},w.update=function(v){var A,p;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=[],I=[],z=0,F=0,L=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],P=v.position||v.positions;if(P){var B=v.color||v.colors||[0,0,0,1],O=v.lineWidth||1,G=!1;e:for(A=1;A<P.length;++A){var J=P[A-1],j=P[A];for(R.push(z),I.push(J.slice()),p=0;p<3;++p){if(isNaN(J[p])||isNaN(j[p])||!isFinite(J[p])||!isFinite(j[p])){if(!D&&E.length>0){for(var V=0;V<24;++V)E.push(E[E.length-12]);F+=2,G=!0}continue e}L[0][p]=Math.min(L[0][p],J[p],j[p]),L[1][p]=Math.max(L[1][p],J[p],j[p])}var q,Z;Array.isArray(B[0])?(q=B.length>A-1?B[A-1]:B.length>0?B[B.length-1]:[0,0,0,1],Z=B.length>A?B[A]:B.length>0?B[B.length-1]:[0,0,0,1]):q=Z=B,q.length===3&&(q=[q[0],q[1],q[2],1]),Z.length===3&&(Z=[Z[0],Z[1],Z[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var re;Array.isArray(O)?re=O.length>A-1?O[A-1]:O.length>0?O[O.length-1]:[0,0,0,1]:re=O;var $=z;if(z+=S(J,j),G){for(p=0;p<2;++p)E.push(J[0],J[1],J[2],j[0],j[1],j[2],$,re,q[0],q[1],q[2],q[3]);F+=2,G=!1}E.push(J[0],J[1],J[2],j[0],j[1],j[2],$,re,q[0],q[1],q[2],q[3],J[0],J[1],J[2],j[0],j[1],j[2],$,-re,q[0],q[1],q[2],q[3],j[0],j[1],j[2],J[0],J[1],J[2],z,-re,Z[0],Z[1],Z[2],Z[3],j[0],j[1],j[2],J[0],J[1],J[2],z,re,Z[0],Z[1],Z[2],Z[3]),F+=4}}if(this.buffer.update(E),R.push(z),I.push(P[P.length-1].slice()),this.bounds=L,this.vertexCount=F,this.points=I,this.arcLength=R,"dashes"in v){var ae=v.dashes,Q=ae.slice();for(Q.unshift(0),A=1;A<Q.length;++A)Q[A]=Q[A-1]+Q[A];var te=h(new Array(256*4),[256,1,4]);for(A=0;A<256;++A){for(p=0;p<4;++p)te.set(A,0,p,0);b.le(Q,Q[Q.length-1]*A/255)&1?te.set(A,0,0,0):te.set(A,0,0,255)}this.texture.setPixels(te)}},w.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},w.pick=function(v){if(!v||v.id!==this.pickId)return null;var A=g(v.value[0],v.value[1],v.value[2],0),p=b.le(this.arcLength,A);if(p<0)return null;if(p===this.arcLength.length-1)return new M(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),p);for(var D=this.points[p],E=this.points[Math.min(p+1,this.points.length-1)],R=(A-this.arcLength[p])/(this.arcLength[p+1]-this.arcLength[p]),I=1-R,z=[0,0,0],F=0;F<3;++F)z[F]=I*D[F]+R*E[F];var L=Math.min(R<.5?p:p+1,this.points.length-1);return new M(A,z,L,this.points[L])};function y(v){var A=v.gl||v.scene&&v.scene.gl,p=T(A);p.attributes.position.location=0,p.attributes.nextPosition.location=1,p.attributes.arcLength.location=2,p.attributes.lineWidth.location=3,p.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}]),I=h(new Array(256*4),[256,1,4]),z=0;z<1024;++z)I.data[z]=255;var F=s(A,I);F.wrap=A.REPEAT;var L=new d(A,p,D,E,R,F);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],g=i[5],b=i[6],h=i[7],_=i[8],T=i[9],m=i[10],k=i[11],S=i[12],x=i[13],M=i[14],d=i[15],w=l*g-u*c,y=l*b-s*c,v=l*h-f*c,A=u*b-s*g,p=u*h-f*g,D=s*h-f*b,E=_*x-T*S,R=_*M-m*S,I=_*d-k*S,z=T*M-m*x,F=T*d-k*x,L=m*d-k*M;return w*L-y*F+v*z+A*I-p*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],g=u+u,b=s+s,h=f+f,_=u*g,T=s*g,m=s*b,k=f*g,S=f*b,x=f*h,M=c*g,d=c*b,w=c*h;return i[0]=1-m-x,i[1]=T+w,i[2]=k-d,i[3]=0,i[4]=T-w,i[5]=1-_-x,i[6]=S+M,i[7]=0,i[8]=k+d,i[9]=S-M,i[10]=1-_-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],g=l[3],b=s+s,h=f+f,_=c+c,T=s*b,m=s*h,k=s*_,S=f*h,x=f*_,M=c*_,d=g*b,w=g*h,y=g*_;return i[0]=1-(S+M),i[1]=m+y,i[2]=k-w,i[3]=0,i[4]=m-y,i[5]=1-(T+M),i[6]=x+d,i[7]=0,i[8]=k+w,i[9]=x-d,i[10]=1-(T+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],g=l[4],b=l[5],h=l[6],_=l[7],T=l[8],m=l[9],k=l[10],S=l[11],x=l[12],M=l[13],d=l[14],w=l[15],y=u*b-s*g,v=u*h-f*g,A=u*_-c*g,p=s*h-f*b,D=s*_-c*b,E=f*_-c*h,R=T*M-m*x,I=T*d-k*x,z=T*w-S*x,F=m*d-k*M,L=m*w-S*M,P=k*w-S*d,B=y*P-v*L+A*F+p*z-D*I+E*R;return B?(B=1/B,i[0]=(b*P-h*L+_*F)*B,i[1]=(f*L-s*P-c*F)*B,i[2]=(M*E-d*D+w*p)*B,i[3]=(k*D-m*E-S*p)*B,i[4]=(h*z-g*P-_*I)*B,i[5]=(u*P-f*z+c*I)*B,i[6]=(d*A-x*E-w*v)*B,i[7]=(T*E-k*A+S*v)*B,i[8]=(g*L-b*z+_*R)*B,i[9]=(s*z-u*L-c*R)*B,i[10]=(x*D-M*A+w*y)*B,i[11]=(m*A-T*D-S*y)*B,i[12]=(b*I-g*F-h*R)*B,i[13]=(u*F-s*I+f*R)*B,i[14]=(M*v-x*p-d*y)*B,i[15]=(T*p-m*v+k*y)*B,i):null}},6582(a,o,i){var l=i(7894);a.exports=u;function u(s,f,c,g){var b,h,_,T,m,k,S,x,M,d,w=f[0],y=f[1],v=f[2],A=g[0],p=g[1],D=g[2],E=c[0],R=c[1],I=c[2];return Math.abs(w-E)<1e-6&&Math.abs(y-R)<1e-6&&Math.abs(v-I)<1e-6?l(s):(S=w-E,x=y-R,M=v-I,d=1/Math.sqrt(S*S+x*x+M*M),S*=d,x*=d,M*=d,b=p*M-D*x,h=D*S-A*M,_=A*x-p*S,d=Math.sqrt(b*b+h*h+_*_),d?(d=1/d,b*=d,h*=d,_*=d):(b=0,h=0,_=0),T=x*_-M*h,m=M*b-S*_,k=S*h-x*b,d=Math.sqrt(T*T+m*m+k*k),d?(d=1/d,T*=d,m*=d,k*=d):(T=0,m=0,k=0),s[0]=b,s[1]=T,s[2]=S,s[3]=0,s[4]=h,s[5]=m,s[6]=x,s[7]=0,s[8]=_,s[9]=k,s[10]=M,s[11]=0,s[12]=-(b*w+h*y+_*v),s[13]=-(T*w+m*y+k*v),s[14]=-(S*w+x*y+M*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],g=l[3],b=l[4],h=l[5],_=l[6],T=l[7],m=l[8],k=l[9],S=l[10],x=l[11],M=l[12],d=l[13],w=l[14],y=l[15],v=u[0],A=u[1],p=u[2],D=u[3];return i[0]=v*s+A*b+p*m+D*M,i[1]=v*f+A*h+p*k+D*d,i[2]=v*c+A*_+p*S+D*w,i[3]=v*g+A*T+p*x+D*y,v=u[4],A=u[5],p=u[6],D=u[7],i[4]=v*s+A*b+p*m+D*M,i[5]=v*f+A*h+p*k+D*d,i[6]=v*c+A*_+p*S+D*w,i[7]=v*g+A*T+p*x+D*y,v=u[8],A=u[9],p=u[10],D=u[11],i[8]=v*s+A*b+p*m+D*M,i[9]=v*f+A*h+p*k+D*d,i[10]=v*c+A*_+p*S+D*w,i[11]=v*g+A*T+p*x+D*y,v=u[12],A=u[13],p=u[14],D=u[15],i[12]=v*s+A*b+p*m+D*M,i[13]=v*f+A*h+p*k+D*d,i[14]=v*c+A*_+p*S+D*w,i[15]=v*g+A*T+p*x+D*y,i}},4040(a){a.exports=o;function o(i,l,u,s,f,c,g){var b=1/(l-u),h=1/(s-f),_=1/(c-g);return i[0]=-2*b,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*h,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=2*_,i[11]=0,i[12]=(l+u)*b,i[13]=(f+s)*h,i[14]=(g+c)*_,i[15]=1,i}},4772(a){a.exports=o;function o(i,l,u,s,f){var c=1/Math.tan(l/2),g=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)*g,i[11]=-1,i[12]=0,i[13]=0,i[14]=2*f*s*g,i[15]=0,i}},6079(a){a.exports=o;function o(i,l,u,s){var f=s[0],c=s[1],g=s[2],b=Math.sqrt(f*f+c*c+g*g),h,_,T,m,k,S,x,M,d,w,y,v,A,p,D,E,R,I,z,F,L,P,B,O;return Math.abs(b)<1e-6?null:(b=1/b,f*=b,c*=b,g*=b,h=Math.sin(u),_=Math.cos(u),T=1-_,m=l[0],k=l[1],S=l[2],x=l[3],M=l[4],d=l[5],w=l[6],y=l[7],v=l[8],A=l[9],p=l[10],D=l[11],E=f*f*T+_,R=c*f*T+g*h,I=g*f*T-c*h,z=f*c*T-g*h,F=c*c*T+_,L=g*c*T+f*h,P=f*g*T+c*h,B=c*g*T-f*h,O=g*g*T+_,i[0]=m*E+M*R+v*I,i[1]=k*E+d*R+A*I,i[2]=S*E+w*R+p*I,i[3]=x*E+y*R+D*I,i[4]=m*z+M*F+v*L,i[5]=k*z+d*F+A*L,i[6]=S*z+w*F+p*L,i[7]=x*z+y*F+D*L,i[8]=m*P+M*B+v*O,i[9]=k*P+d*B+A*O,i[10]=S*P+w*B+p*O,i[11]=x*P+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],g=l[5],b=l[6],h=l[7],_=l[8],T=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+_*s,i[5]=g*f+T*s,i[6]=b*f+m*s,i[7]=h*f+k*s,i[8]=_*f-c*s,i[9]=T*f-g*s,i[10]=m*f-b*s,i[11]=k*f-h*s,i}},2408(a){a.exports=o;function o(i,l,u){var s=Math.sin(u),f=Math.cos(u),c=l[0],g=l[1],b=l[2],h=l[3],_=l[8],T=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-_*s,i[1]=g*f-T*s,i[2]=b*f-m*s,i[3]=h*f-k*s,i[8]=c*s+_*f,i[9]=g*s+T*f,i[10]=b*s+m*f,i[11]=h*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],g=l[1],b=l[2],h=l[3],_=l[4],T=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+_*s,i[1]=g*f+T*s,i[2]=b*f+m*s,i[3]=h*f+k*s,i[4]=_*f-c*s,i[5]=T*f-g*s,i[6]=m*f-b*s,i[7]=k*f-h*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],g,b,h,_,T,m,k,S,x,M,d,w;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]):(g=l[0],b=l[1],h=l[2],_=l[3],T=l[4],m=l[5],k=l[6],S=l[7],x=l[8],M=l[9],d=l[10],w=l[11],i[0]=g,i[1]=b,i[2]=h,i[3]=_,i[4]=T,i[5]=m,i[6]=k,i[7]=S,i[8]=x,i[9]=M,i[10]=d,i[11]=w,i[12]=g*s+T*f+x*c+l[12],i[13]=b*s+m*f+M*c+l[13],i[14]=h*s+k*f+d*c+l[14],i[15]=_*s+S*f+w*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],g=l[7],b=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]=g,i[14]=b}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=b;function s(h,_){for(var T=[0,0,0,0],m=0;m<4;++m)for(var k=0;k<4;++k)T[k]+=h[4*m+k]*_[m];return T}function f(h,_,T,m,k){for(var S=s(m,s(T,s(_,[h[0],h[1],h[2],1]))),x=0;x<3;++x)S[x]/=S[3];return[.5*k[0]*(1+S[0]),.5*k[1]*(1-S[1])]}function c(h,_){if(h.length===2){for(var T=0,m=0,k=0;k<2;++k)T+=Math.pow(_[k]-h[0][k],2),m+=Math.pow(_[k]-h[1][k],2);return T=Math.sqrt(T),m=Math.sqrt(m),T+m<1e-6?[1,0]:[m/(T+m),T/(m+T)]}else if(h.length===3){var S=[0,0];return u(h[0],h[1],h[2],_,S),l(h,S)}return[]}function g(h,_){for(var T=[0,0,0],m=0;m<h.length;++m)for(var k=h[m],S=_[m],x=0;x<3;++x)T[x]+=S*k[x];return T}function b(h,_,T,m,k,S){if(h.length===1)return[0,h[0].slice()];for(var x=new Array(h.length),M=0;M<h.length;++M)x[M]=f(h[M],T,m,k,S);for(var d=0,w=1/0,M=0;M<x.length;++M){for(var y=0,v=0;v<2;++v)y+=Math.pow(x[M][v]-_[v],2);y<w&&(w=y,d=M)}for(var A=c(x,_),p=0,M=0;M<3;++M){if(A[M]<-.001||A[M]>1.0001)return null;p+=A[M]}return Math.abs(p-1)>.001?null:[d,g(h,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;
}`]),g=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;
}`]),b=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;
}`]),h=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;
}`]),_=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);
}`]),T=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:g,fragment:b,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},o.pickShader={vertex:h,fragment:_,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},o.pointPickShader={vertex:T,fragment:_,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),g=i(7766),b=i(8406),h=i(6760),_=i(7608),T=i(9618),m=i(6729),k=i(7765),S=i(1888),x=i(840),M=i(7626),d=x.meshShader,w=x.wireShader,y=x.pointShader,v=x.pickShader,A=x.pointPickShader,p=x.contourShader,D=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(V,q,Z,re,$,ae,Q,te,ue,ee,ie,fe,we,Te,ke,ge,Ee,Le,se,X,K,ye,oe,de,pe,me,Se){this.gl=V,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=Z,this.lineShader=re,this.pointShader=$,this.pickShader=ae,this.pointPickShader=Q,this.contourShader=te,this.trianglePositions=ue,this.triangleColors=ie,this.triangleNormals=we,this.triangleUVs=fe,this.triangleIds=ee,this.triangleVAO=Te,this.triangleCount=0,this.lineWidth=1,this.edgePositions=ke,this.edgeColors=Ee,this.edgeUVs=Le,this.edgeIds=ge,this.edgeVAO=se,this.edgeCount=0,this.pointPositions=X,this.pointColors=ye,this.pointUVs=oe,this.pointSizes=de,this.pointIds=K,this.pointVAO=pe,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=me,this.contourVAO=Se,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(V){this.pickId=V};function I(V,q){if(!q||!q.length)return 1;for(var Z=0;Z<q.length;++Z){if(q.length<2)return 1;if(q[Z][0]===V)return q[Z][1];if(q[Z][0]>V&&Z>0){var re=(q[Z][0]-V)/(q[Z][0]-q[Z-1][0]);return q[Z][1]*(1-re)+re*q[Z-1][1]}}return 1}function z(V,q){for(var Z=m({colormap:V,nshades:256,format:"rgba"}),re=new Uint8Array(256*4),$=0;$<256;++$){for(var ae=Z[$],Q=0;Q<3;++Q)re[4*$+Q]=ae[Q];q?re[4*$+3]=255*I($/255,q):re[4*$+3]=255*ae[3]}return T(re,[256,256,4],[4,0,1])}function F(V){for(var q=V.length,Z=new Array(q),re=0;re<q;++re)Z[re]=V[re][2];return Z}R.highlight=function(V){if(!V||!this.contourEnable){this.contourCount=0;return}for(var q=k(this.cells,this.intensity,V.intensity),Z=q.cells,re=q.vertexIds,$=q.vertexWeights,ae=Z.length,Q=S.mallocFloat32(6*ae),te=0,ue=0;ue<ae;++ue)for(var ee=Z[ue],ie=0;ie<2;++ie){var fe=ee[0];ee.length===2&&(fe=ee[ie]);for(var we=re[fe][0],Te=re[fe][1],ke=$[fe],ge=1-ke,Ee=this.positions[we],Le=this.positions[Te],se=0;se<3;++se)Q[te++]=ke*Ee[se]+ge*Le[se]}this.contourCount=te/3|0,this.contourPositions.update(Q.subarray(0,te)),S.free(Q)},R.update=function(V){V=V||{};var q=this.gl;this.dirty=!0,"contourEnable"in V&&(this.contourEnable=V.contourEnable),"contourColor"in V&&(this.contourColor=V.contourColor),"lineWidth"in V&&(this.lineWidth=V.lineWidth),"lightPosition"in V&&(this.lightPosition=V.lightPosition),this.hasAlpha=!1,"opacity"in V&&(this.opacity=V.opacity,this.opacity<1&&(this.hasAlpha=!0)),"opacityscale"in V&&(this.opacityscale=V.opacityscale,this.hasAlpha=!0),"ambient"in V&&(this.ambientLight=V.ambient),"diffuse"in V&&(this.diffuseLight=V.diffuse),"specular"in V&&(this.specularLight=V.specular),"roughness"in V&&(this.roughness=V.roughness),"fresnel"in V&&(this.fresnel=V.fresnel),V.texture?(this.texture.dispose(),this.texture=g(q,V.texture)):V.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=q.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=q.LINEAR,this.texture.setPixels(z(V.colormap,this.opacityscale)),this.texture.generateMipmap());var Z=V.cells,re=V.positions;if(!(!re||!Z)){var $=[],ae=[],Q=[],te=[],ue=[],ee=[],ie=[],fe=[],we=[],Te=[],ke=[],ge=[],Ee=[],Le=[];this.cells=Z,this.positions=re;var se=V.vertexNormals,X=V.cellNormals,K=V.vertexNormalsEpsilon===void 0?l:V.vertexNormalsEpsilon,ye=V.faceNormalsEpsilon===void 0?u:V.faceNormalsEpsilon;V.useFacetNormals&&!X&&(X=b.faceNormals(Z,re,ye)),!X&&!se&&(se=b.vertexNormals(Z,re,K));var oe=V.vertexColors,de=V.cellColors,pe=V.meshColor||[1,1,1,1],me=V.vertexUVs,Se=V.vertexIntensity,ve=V.cellUVs,he=V.cellIntensity,be=1/0,Ae=-1/0;if(!me&&!ve)if(Se)if(V.vertexIntensityBounds)be=+V.vertexIntensityBounds[0],Ae=+V.vertexIntensityBounds[1];else for(var Re=0;Re<Se.length;++Re){var Pe=Se[Re];be=Math.min(be,Pe),Ae=Math.max(Ae,Pe)}else if(he)if(V.cellIntensityBounds)be=+V.cellIntensityBounds[0],Ae=+V.cellIntensityBounds[1];else for(var Re=0;Re<he.length;++Re){var Pe=he[Re];be=Math.min(be,Pe),Ae=Math.max(Ae,Pe)}else for(var Re=0;Re<re.length;++Re){var Pe=re[Re][2];be=Math.min(be,Pe),Ae=Math.max(Ae,Pe)}Se?this.intensity=Se:he?this.intensity=he:this.intensity=F(re),this.pickVertex=!(he||de);var Ye=V.pointSizes,Ve=V.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(var Re=0;Re<re.length;++Re)for(var Ue=re[Re],qe=0;qe<3;++qe)isNaN(Ue[qe])||!isFinite(Ue[qe])||(this.bounds[0][qe]=Math.min(this.bounds[0][qe],Ue[qe]),this.bounds[1][qe]=Math.max(this.bounds[1][qe],Ue[qe]));var We=0,Xe=0,er=0;e:for(var Re=0;Re<Z.length;++Re){var nr=Z[Re];switch(nr.length){case 1:for(var rr=nr[0],Ue=re[rr],qe=0;qe<3;++qe)if(isNaN(Ue[qe])||!isFinite(Ue[qe]))continue e;Te.push(Ue[0],Ue[1],Ue[2]);var Qe;oe?Qe=oe[rr]:de?Qe=de[Re]:Qe=pe,this.opacityscale&&Se?ae.push(Qe[0],Qe[1],Qe[2],this.opacity*I((Se[rr]-be)/(Ae-be),this.opacityscale)):Qe.length===3?ke.push(Qe[0],Qe[1],Qe[2],this.opacity):(ke.push(Qe[0],Qe[1],Qe[2],Qe[3]*this.opacity),Qe[3]<1&&(this.hasAlpha=!0));var Ce;me?Ce=me[rr]:Se?Ce=[(Se[rr]-be)/(Ae-be),0]:ve?Ce=ve[Re]:he?Ce=[(he[Re]-be)/(Ae-be),0]:Ce=[(Ue[2]-be)/(Ae-be),0],ge.push(Ce[0],Ce[1]),Ye?Ee.push(Ye[rr]):Ee.push(Ve),Le.push(Re),er+=1;break;case 2:for(var qe=0;qe<2;++qe)for(var rr=nr[qe],Ue=re[rr],ze=0;ze<3;++ze)if(isNaN(Ue[ze])||!isFinite(Ue[ze]))continue e;for(var qe=0;qe<2;++qe){var rr=nr[qe],Ue=re[rr];ee.push(Ue[0],Ue[1],Ue[2]);var Qe;oe?Qe=oe[rr]:de?Qe=de[Re]:Qe=pe,this.opacityscale&&Se?ae.push(Qe[0],Qe[1],Qe[2],this.opacity*I((Se[rr]-be)/(Ae-be),this.opacityscale)):Qe.length===3?ie.push(Qe[0],Qe[1],Qe[2],this.opacity):(ie.push(Qe[0],Qe[1],Qe[2],Qe[3]*this.opacity),Qe[3]<1&&(this.hasAlpha=!0));var Ce;me?Ce=me[rr]:Se?Ce=[(Se[rr]-be)/(Ae-be),0]:ve?Ce=ve[Re]:he?Ce=[(he[Re]-be)/(Ae-be),0]:Ce=[(Ue[2]-be)/(Ae-be),0],fe.push(Ce[0],Ce[1]),we.push(Re)}Xe+=1;break;case 3:for(var qe=0;qe<3;++qe)for(var rr=nr[qe],Ue=re[rr],ze=0;ze<3;++ze)if(isNaN(Ue[ze])||!isFinite(Ue[ze]))continue e;for(var qe=0;qe<3;++qe){var rr=nr[2-qe],Ue=re[rr];$.push(Ue[0],Ue[1],Ue[2]);var Qe;oe?Qe=oe[rr]:de?Qe=de[Re]:Qe=pe,Qe?this.opacityscale&&Se?ae.push(Qe[0],Qe[1],Qe[2],this.opacity*I((Se[rr]-be)/(Ae-be),this.opacityscale)):Qe.length===3?ae.push(Qe[0],Qe[1],Qe[2],this.opacity):(ae.push(Qe[0],Qe[1],Qe[2],Qe[3]*this.opacity),Qe[3]<1&&(this.hasAlpha=!0)):ae.push(.5,.5,.5,1);var Ce;me?Ce=me[rr]:Se?Ce=[(Se[rr]-be)/(Ae-be),0]:ve?Ce=ve[Re]:he?Ce=[(he[Re]-be)/(Ae-be),0]:Ce=[(Ue[2]-be)/(Ae-be),0],te.push(Ce[0],Ce[1]);var Ke;se?Ke=se[rr]:Ke=X[Re],Q.push(Ke[0],Ke[1],Ke[2]),ue.push(Re)}We+=1;break;default:break}}this.pointCount=er,this.edgeCount=Xe,this.triangleCount=We,this.pointPositions.update(Te),this.pointColors.update(ke),this.pointUVs.update(ge),this.pointSizes.update(Ee),this.pointIds.update(new Uint32Array(Le)),this.edgePositions.update(ee),this.edgeColors.update(ie),this.edgeUVs.update(fe),this.edgeIds.update(new Uint32Array(we)),this.trianglePositions.update($),this.triangleColors.update(ae),this.triangleUVs.update(te),this.triangleNormals.update(Q),this.triangleIds.update(new Uint32Array(ue))}},R.drawTransparent=R.draw=function(V){V=V||{};for(var q=this.gl,Z=V.model||D,re=V.view||D,$=V.projection||D,ae=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Q=0;Q<3;++Q)ae[0][Q]=Math.max(ae[0][Q],this.clipBounds[0][Q]),ae[1][Q]=Math.min(ae[1][Q],this.clipBounds[1][Q]);var te={model:Z,view:re,projection:$,inverseModel:D.slice(),clipBounds:ae,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};te.inverseModel=_(te.inverseModel,te.model),q.disable(q.CULL_FACE),this.texture.bind(0);var ue=new Array(16);h(ue,te.view,te.model),h(ue,te.projection,ue),_(ue,ue);for(var Q=0;Q<3;++Q)te.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 ie=ue[12+Q],fe=0;fe<3;++fe)ie+=ue[4*fe+Q]*this.lightPosition[fe];te.lightPosition[Q]=ie/ee}if(this.triangleCount>0){var we=this.triShader;we.bind(),we.uniforms=te,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var we=this.lineShader;we.bind(),we.uniforms=te,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 we=this.pointShader;we.bind(),we.uniforms=te,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var we=this.contourShader;we.bind(),we.uniforms=te,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},R.drawPick=function(V){V=V||{};for(var q=this.gl,Z=V.model||D,re=V.view||D,$=V.projection||D,ae=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Q=0;Q<3;++Q)ae[0][Q]=Math.max(ae[0][Q],this.clipBounds[0][Q]),ae[1][Q]=Math.min(ae[1][Q],this.clipBounds[1][Q]);this._model=[].slice.call(Z),this._view=[].slice.call(re),this._projection=[].slice.call($),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var te={model:Z,view:re,projection:$,clipBounds:ae,pickId:this.pickId/255},ue=this.pickShader;if(ue.bind(),ue.uniforms=te,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=te,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},R.pick=function(V){if(!V||V.id!==this.pickId)return null;for(var q=V.value[0]+256*V.value[1]+65536*V.value[2],Z=this.cells[q],re=this.positions,$=new Array(Z.length),ae=0;ae<Z.length;++ae)$[ae]=re[Z[ae]];var Q=V.coord[0],te=V.coord[1];if(!this.pickVertex){var ue=this.positions[Z[0]],ee=this.positions[Z[1]],ie=this.positions[Z[2]],fe=[(ue[0]+ee[0]+ie[0])/3,(ue[1]+ee[1]+ie[1])/3,(ue[2]+ee[2]+ie[2])/3];return{_cellCenter:!0,position:[Q,te],index:q,cell:Z,cellId:q,intensity:this.intensity[q],dataCoordinate:fe}}var we=M($,[Q*this.pixelRatio,this._resolution[1]-te*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!we)return null;for(var Te=we[2],ke=0,ae=0;ae<Z.length;++ae)ke+=Te[ae]*this.intensity[Z[ae]];return{position:we[1],index:Z[we[0]],cell:Z,cellId:q,intensity:ke,dataCoordinate:this.positions[Z[we[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(V){var q=s(V,d.vertex,d.fragment);return q.attributes.position.location=0,q.attributes.color.location=2,q.attributes.uv.location=3,q.attributes.normal.location=4,q}function P(V){var q=s(V,w.vertex,w.fragment);return q.attributes.position.location=0,q.attributes.color.location=2,q.attributes.uv.location=3,q}function B(V){var q=s(V,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(V){var q=s(V,v.vertex,v.fragment);return q.attributes.position.location=0,q.attributes.id.location=1,q}function G(V){var q=s(V,A.vertex,A.fragment);return q.attributes.position.location=0,q.attributes.id.location=1,q.attributes.pointSize.location=4,q}function J(V){var q=s(V,p.vertex,p.fragment);return q.attributes.position.location=0,q}function j(V,q){arguments.length===1&&(q=V,V=q.gl);var Z=V.getExtension("OES_standard_derivatives")||V.getExtension("MOZ_OES_standard_derivatives")||V.getExtension("WEBKIT_OES_standard_derivatives");if(!Z)throw new Error("derivatives not supported");var re=L(V),$=P(V),ae=B(V),Q=O(V),te=G(V),ue=J(V),ee=g(V,T(new Uint8Array([255,255,255,255]),[1,1,4]));ee.generateMipmap(),ee.minFilter=V.LINEAR_MIPMAP_LINEAR,ee.magFilter=V.LINEAR;var ie=f(V),fe=f(V),we=f(V),Te=f(V),ke=f(V),ge=c(V,[{buffer:ie,type:V.FLOAT,size:3},{buffer:ke,type:V.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:fe,type:V.FLOAT,size:4},{buffer:we,type:V.FLOAT,size:2},{buffer:Te,type:V.FLOAT,size:3}]),Ee=f(V),Le=f(V),se=f(V),X=f(V),K=c(V,[{buffer:Ee,type:V.FLOAT,size:3},{buffer:X,type:V.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Le,type:V.FLOAT,size:4},{buffer:se,type:V.FLOAT,size:2}]),ye=f(V),oe=f(V),de=f(V),pe=f(V),me=f(V),Se=c(V,[{buffer:ye,type:V.FLOAT,size:3},{buffer:me,type:V.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:oe,type:V.FLOAT,size:4},{buffer:de,type:V.FLOAT,size:2},{buffer:pe,type:V.FLOAT,size:1}]),ve=f(V),he=c(V,[{buffer:ve,type:V.FLOAT,size:3}]),be=new E(V,ee,re,$,ae,Q,te,ue,ie,ke,fe,we,Te,ge,Ee,X,Le,se,K,ye,me,oe,de,pe,Se,ve,he);return be.update(q),be}a.exports=j},4437(a,o,i){"use strict";a.exports=b;var l=i(3025),u=i(6296),s=i(351),f=i(8512),c=i(24),g=i(7520);function b(h,_){h=h||document.body,_=_||{};var T=[.01,1/0];"distanceLimits"in _&&(T[0]=_.distanceLimits[0],T[1]=_.distanceLimits[1]),"zoomMin"in _&&(T[0]=_.zoomMin),"zoomMax"in _&&(T[1]=_.zoomMax);var m=u({center:_.center||[0,0,0],up:_.up||[0,1,0],eye:_.eye||[0,0,10],mode:_.mode||"orbit",distanceLimits:T}),k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S=0,x=h.clientWidth,M=h.clientHeight,d={keyBindingMode:"rotate",enableWheel:!0,view:m,element:h,delay:_.delay||16,rotateSpeed:_.rotateSpeed||1,zoomSpeed:_.zoomSpeed||1,translateSpeed:_.translateSpeed||1,flipX:!!_.flipX,flipY:!!_.flipY,modes:m.modes,_ortho:_._ortho||_.projection&&_.projection.type==="orthographic"||!1,tick:function(){var w=l(),y=this.delay,v=w-2*y;m.idle(w-y),m.recalcMatrix(v),m.flush(w-(100+y*2));for(var A=!0,p=m.computedMatrix,D=0;D<16;++D)A=A&&k[D]===p[D],k[D]=p[D];var E=h.clientWidth===x&&h.clientHeight===M;return x=h.clientWidth,M=h.clientHeight,A?!E:(S=Math.exp(m.computedRadius[0]),!0)},lookAt:function(w,y,v){m.lookAt(m.lastT(),w,y,v)},rotate:function(w,y,v){m.rotate(m.lastT(),w,y,v)},pan:function(w,y,v){m.pan(m.lastT(),w,y,v)},translate:function(w,y,v){m.translate(m.lastT(),w,y,v)}};return Object.defineProperties(d,{matrix:{get:function(){return m.computedMatrix},set:function(w){return m.setMatrix(m.lastT(),w),m.computedMatrix},enumerable:!0},mode:{get:function(){return m.getMode()},set:function(w){var y=m.computedUp.slice(),v=m.computedEye.slice(),A=m.computedCenter.slice();if(m.setMode(w),w==="turntable"){var p=l();m._active.lookAt(p,v,A,y),m._active.lookAt(p+500,v,A,[0,0,1]),m._active.flush(p)}return m.getMode()},enumerable:!0},center:{get:function(){return m.computedCenter},set:function(w){return m.lookAt(m.lastT(),null,w),m.computedCenter},enumerable:!0},eye:{get:function(){return m.computedEye},set:function(w){return m.lookAt(m.lastT(),w),m.computedEye},enumerable:!0},up:{get:function(){return m.computedUp},set:function(w){return m.lookAt(m.lastT(),null,null,w),m.computedUp},enumerable:!0},distance:{get:function(){return S},set:function(w){return m.setDistance(m.lastT(),w),w},enumerable:!0},distanceLimits:{get:function(){return m.getDistanceLimits(T)},set:function(w){return m.setDistanceLimits(w),w},enumerable:!0}}),h.addEventListener("contextmenu",function(w){return w.preventDefault(),!1}),d._lastX=-1,d._lastY=-1,d._lastMods={shift:!1,control:!1,alt:!1,meta:!1},d.enableMouseListeners=function(){d.mouseListener=s(h,w),h.addEventListener("touchstart",function(y){var v=c(y.changedTouches[0],h);w(0,v[0],v[1],d._lastMods),w(1,v[0],v[1],d._lastMods)},g?{passive:!0}:!1),h.addEventListener("touchmove",function(y){var v=c(y.changedTouches[0],h);w(1,v[0],v[1],d._lastMods),y.preventDefault()},g?{passive:!1}:!1),h.addEventListener("touchend",function(y){w(0,d._lastX,d._lastY,d._lastMods)},g?{passive:!0}:!1);function w(y,v,A,p){var D=d.keyBindingMode;if(D!==!1){var E=D==="rotate",R=D==="pan",I=D==="zoom",z=!!p.control,F=!!p.alt,L=!!p.shift,P=!!(y&1),B=!!(y&2),O=!!(y&4),G=1/h.clientHeight,J=G*(v-d._lastX),j=G*(A-d._lastY),V=d.flipX?1:-1,q=d.flipY?1:-1,Z=Math.PI*d.rotateSpeed,re=l();if(d._lastX!==-1&&d._lastY!==-1&&((E&&P&&!z&&!F&&!L||P&&!z&&!F&&L)&&m.rotate(re,V*Z*J,-q*Z*j,0),(R&&P&&!z&&!F&&!L||B||P&&z&&!F&&!L)&&m.pan(re,-d.translateSpeed*J*S,d.translateSpeed*j*S,0),I&&P&&!z&&!F&&!L||O||P&&!z&&F&&!L)){var $=-d.zoomSpeed*j/window.innerHeight*(re-m.lastT())*100;m.pan(re,0,0,S*(Math.exp($)-1))}return d._lastX=v,d._lastY=A,d._lastMods=p,!0}}d.wheelListener=f(h,function(y,v){if(d.keyBindingMode!==!1&&d.enableWheel){var A=d.flipX?1:-1,p=d.flipY?1:-1,D=l();if(Math.abs(y)>Math.abs(v))m.rotate(D,0,0,-y*A*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var E=-d.zoomSpeed*p*v/window.innerHeight*(D-m.lastT())/20;m.pan(D,0,0,S*(Math.exp(E)-1))}}},!0)},d.enableMouseListeners(),d}},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),g=i(2260),b=i(7169),h=i(351),_=i(4772),T=i(4040),m=i(799),k=i(2431)({tablet:!0,featureDetect:!0});a.exports={createScene:w,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 x(v,A){var p=null;try{p=v.getContext("webgl",A),p||(p=v.getContext("experimental-webgl",A))}catch(D){return null}return p}function M(v){var A=Math.round(Math.log(Math.abs(v))/Math.log(10));if(A<0){var p=Math.round(Math.pow(10,-A));return Math.ceil(v*p)/p}else if(A>0){var p=Math.round(Math.pow(10,A));return Math.ceil(v/p)*p}return Math.ceil(v)}function d(v){return typeof v=="boolean"?v:!0}function w(v){v=v||{},v.camera=v.camera||{};var A=v.canvas;if(!A)if(A=document.createElement("canvas"),v.container){var p=v.container;p.appendChild(A)}else document.body.appendChild(A);var D=v.gl;if(D||(v.glOptions&&(k=!!v.glOptions.preserveDrawingBuffer),D=x(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,I=g(D,D.drawingBufferWidth,D.drawingBufferHeight,{preferFloat:!k}),z=m(D),F=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:F},P=v.axes||{},B=u(D,P);B.enable=!P.disable;var O=v.spikes||{},G=f(D,O),J=[],j=[],V=[],q=[],Z=!0,Q=!0,re=new Array(16),$=new Array(16),ae={view:null,projection:re,model:$,_ortho:!1},Q=!0,te=[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:G,bounds:E,objects:J,shape:te,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:d(v.autoResize),autoBounds:d(v.autoBounds),autoScale:!!v.autoScale,autoCenter:d(v.autoCenter),clipToBounds:d(v.clipToBounds),snapToData:!!v.snapToData,onselect:v.onselect||null,onrender:v.onrender||null,onclick:v.onclick||null,cameraParams:ae,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(X){this.aspect[0]=X.x,this.aspect[1]=X.y,this.aspect[2]=X.z,Q=!0},setBounds:function(X,K){this.bounds[0][X]=K.min,this.bounds[1][X]=K.max},setClearColor:function(X){this.clearColor=X},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)}},ie=[D.drawingBufferWidth/ee.pixelRatio|0,D.drawingBufferHeight/ee.pixelRatio|0];function fe(){if(!ee._stopped&&ee.autoResize){var X=A.parentNode,K=1,ye=1;X&&X!==document.body?(K=X.clientWidth,ye=X.clientHeight):(K=window.innerWidth,ye=window.innerHeight);var oe=Math.ceil(K*ee.pixelRatio)|0,de=Math.ceil(ye*ee.pixelRatio)|0;if(oe!==A.width||de!==A.height){A.width=oe,A.height=de;var pe=A.style;pe.position=pe.position||"absolute",pe.left="0px",pe.top="0px",pe.width=K+"px",pe.height=ye+"px",Z=!0}}}ee.autoResize&&fe(),window.addEventListener("resize",fe);function we(){for(var X=J.length,K=q.length,ye=0;ye<K;++ye)V[ye]=0;e:for(var ye=0;ye<X;++ye){var oe=J[ye],de=oe.pickSlots;if(!de){j[ye]=-1;continue}for(var pe=0;pe<K;++pe)if(V[pe]+de<255){j[ye]=pe,oe.setPickBase(V[pe]+1),V[pe]+=de;continue e}var me=c(D,te);j[ye]=K,q.push(me),V.push(de),oe.setPickBase(1),K+=1}for(;K>0&&V[K-1]===0;)V.pop(),q.pop().dispose()}ee.update=function(X){ee._stopped||(X=X||{},Z=!0,Q=!0)},ee.add=function(X){ee._stopped||(X.axes=B,J.push(X),j.push(-1),Z=!0,Q=!0,we())},ee.remove=function(X){if(!ee._stopped){var K=J.indexOf(X);K<0||(J.splice(K,1),j.pop(),Z=!0,Q=!0,we())}},ee.dispose=function(){if(!ee._stopped&&(ee._stopped=!0,window.removeEventListener("resize",fe),A.removeEventListener("webglcontextlost",Te),ee.mouseListener.enabled=!1,!ee.contextLost)){B.dispose(),G.dispose();for(var X=0;X<J.length;++X)J[X].dispose();I.dispose();for(var X=0;X<q.length;++X)q[X].dispose();z.dispose(),D=null,B=null,G=null,J=[]}},ee._mouseRotating=!1,ee._prevButtons=0,ee.enableMouseListeners=function(){ee.mouseListener=h(A,function(X,K,ye){if(!ee._stopped){var oe=q.length,de=J.length,pe=R.object;R.distance=1/0,R.mouse[0]=K,R.mouse[1]=ye,R.object=null,R.screen=null,R.dataCoordinate=R.dataPosition=null;var me=!1;if(X&&ee._prevButtons)ee._mouseRotating=!0;else{ee._mouseRotating&&(Q=!0),ee._mouseRotating=!1;for(var Se=0;Se<oe;++Se){var ve=q[Se].query(K,ie[1]-ye-1,ee.pickRadius);if(ve){if(ve.distance>R.distance)continue;for(var he=0;he<de;++he){var be=J[he];if(j[he]===Se){var Ae=be.pick(ve);Ae&&(R.buttons=X,R.screen=ve.coord,R.distance=ve.distance,R.object=be,R.index=Ae.distance,R.dataPosition=Ae.position,R.dataCoordinate=Ae.dataCoordinate,R.data=Ae,me=!0)}}}}}pe&&pe!==R.object&&(pe.highlight&&pe.highlight(null),Z=!0),R.object&&(R.object.highlight&&R.object.highlight(R.data),Z=!0),me=me||R.object!==pe,me&&ee.onselect&&ee.onselect(R),X&1&&!(ee._prevButtons&1)&&ee.onclick&&ee.onclick(R),ee._prevButtons=X}})};function Te(){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",Te);function ke(){if(!Te()){D.colorMask(!0,!0,!0,!0),D.depthMask(!0),D.disable(D.BLEND),D.enable(D.DEPTH_TEST),D.depthFunc(D.LEQUAL);for(var X=J.length,K=q.length,ye=0;ye<K;++ye){var oe=q[ye];oe.shape=ie,oe.begin();for(var de=0;de<X;++de)if(j[de]===ye){var pe=J[de];pe.drawPick&&(pe.pixelRatio=1,pe.drawPick(ae))}oe.end()}}}var ge=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],Ee=[ge[0].slice(),ge[1].slice()];function Le(){if(!Te()){fe();var X=ee.camera.tick();ae.view=ee.camera.matrix,Z=Z||X,Q=Q||X,B.pixelRatio=ee.pixelRatio,G.pixelRatio=ee.pixelRatio;var K=J.length,ye=ge[0],oe=ge[1];ye[0]=ye[1]=ye[2]=1/0,oe[0]=oe[1]=oe[2]=-1/0;for(var de=0;de<K;++de){var pe=J[de];pe.pixelRatio=ee.pixelRatio,pe.axes=ee.axes,Z=Z||!!pe.dirty,Q=Q||!!pe.dirty;var me=pe.bounds;if(me)for(var Se=me[0],ve=me[1],he=0;he<3;++he)ye[he]=Math.min(ye[he],Se[he]),oe[he]=Math.max(oe[he],ve[he])}var be=ee.bounds;if(ee.autoBounds)for(var he=0;he<3;++he){if(oe[he]<ye[he])ye[he]=-1,oe[he]=1;else{ye[he]===oe[he]&&(ye[he]-=1,oe[he]+=1);var Ae=.05*(oe[he]-ye[he]);ye[he]=ye[he]-Ae,oe[he]=oe[he]+Ae}be[0][he]=ye[he],be[1][he]=oe[he]}for(var Re=!1,he=0;he<3;++he)Re=Re||Ee[0][he]!==be[0][he]||Ee[1][he]!==be[1][he],Ee[0][he]=be[0][he],Ee[1][he]=be[1][he];if(Q=Q||Re,Z=Z||Re,!!Z){if(Re){for(var Pe=[0,0,0],de=0;de<3;++de)Pe[de]=M((be[1][de]-be[0][de])/10);B.autoTicks?B.update({bounds:be,tickSpacing:Pe}):B.update({bounds:be})}var Ye=D.drawingBufferWidth,Ve=D.drawingBufferHeight;te[0]=Ye,te[1]=Ve,ie[0]=Math.max(Ye/ee.pixelRatio,1)|0,ie[1]=Math.max(Ve/ee.pixelRatio,1)|0,y(ee,F);for(var de=0;de<K;++de){var pe=J[de];pe.axesBounds=be,ee.clipToBounds&&(pe.clipBounds=be)}R.object&&(ee.snapToData?G.position=R.dataCoordinate:G.position=R.dataPosition,G.bounds=be),Q&&(Q=!1,ke()),ee.axesPixels=s(ee.axes,ae,Ye,Ve),ee.onrender&&ee.onrender(),D.bindFramebuffer(D.FRAMEBUFFER,null),D.viewport(0,0,Ye,Ve),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 Ue=!1;B.enable&&(Ue=Ue||B.isTransparent(),B.draw(ae)),G.axes=B,R.object&&G.draw(ae),D.disable(D.CULL_FACE);for(var de=0;de<K;++de){var pe=J[de];pe.axes=B,pe.pixelRatio=ee.pixelRatio,pe.isOpaque&&pe.isOpaque()&&pe.draw(ae),pe.isTransparent&&pe.isTransparent()&&(Ue=!0)}if(Ue){I.shape=te,I.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(ae);for(var de=0;de<K;++de){var pe=J[de];pe.isOpaque&&pe.isOpaque()&&pe.draw(ae)}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(ae);for(var de=0;de<K;++de){var pe=J[de];pe.isTransparent&&pe.isTransparent()&&pe.drawTransparent(ae)}D.bindFramebuffer(D.FRAMEBUFFER,null),D.blendFunc(D.ONE,D.ONE_MINUS_SRC_ALPHA),D.disable(D.DEPTH_TEST),z.bind(),I.color[0].bind(0),z.uniforms.accumBuffer=0,b(D),D.disable(D.BLEND)}Z=!1;for(var de=0;de<K;++de)J[de].dirty=!1}}}function se(){ee._stopped||ee.contextLost||(Le(),requestAnimationFrame(se))}return ee.enableMouseListeners(),se(),ee.redraw=function(){ee._stopped||(Z=!0,Le())},ee}function y(v,A){var p=v.bounds,D=v.cameraParams,E=D.projection,R=D.model,I=v.gl.drawingBufferWidth,z=v.gl.drawingBufferHeight,F=v.zNear,L=v.zFar,P=v.fovy,B=I/z;A?(T(E,-B,B,-1,1,F,L),D._ortho=!0):(_(E,P,B,F,L),D._ortho=!1);for(var O=0;O<16;++O)R[O]=0;R[15]=1;for(var G=0,O=0;O<3;++O)G=Math.max(G,p[1][O]-p[0][O]);for(var O=0;O<3;++O)v.autoScale?R[5*O]=v.aspect[O]/(p[1][O]-p[0][O]):R[5*O]=1/G,v.autoCenter&&(R[12+O]=-R[5*O]*.5*(p[0][O]+p[1][O]))}},783(a){a.exports=o;function o(i,l,u,s){var f=l[0],c=l[1],g=l[2],b=l[3],h=u[0],_=u[1],T=u[2],m=u[3],k,S,x,M,d;return S=f*h+c*_+g*T+b*m,S<0&&(S=-S,h=-h,_=-_,T=-T,m=-m),1-S>1e-6?(k=Math.acos(S),x=Math.sin(k),M=Math.sin((1-s)*k)/x,d=Math.sin(s*k)/x):(M=1-s,d=s),i[0]=M*f+d*h,i[1]=M*c+d*_,i[2]=M*g+d*T,i[3]=M*b+d*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,g){var b=[c.style,c.weight,c.variant,c.family].join("_"),h=u[b];if(h||(h=u[b]={}),f in h)return h[f];var _={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}};_.triangles=!0;var T=l(f,_);_.triangles=!1;var m=l(f,_),k,S;if(g&&g!==1){for(k=0;k<T.positions.length;++k)for(S=0;S<T.positions[k].length;++S)T.positions[k][S]/=g;for(k=0;k<m.positions.length;++k)for(S=0;S<m.positions[k].length;++S)m.positions[k][S]/=g}var x=[[1/0,1/0],[-1/0,-1/0]],M=m.positions.length;for(k=0;k<M;++k){var d=m.positions[k];for(S=0;S<2;++S)x[0][S]=Math.min(x[0][S],d[S]),x[1][S]=Math.max(x[1][S],d[S])}return h[f]=[T,m,x]}},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;
  }
}
`]),g=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;
}
`]),b=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);
}`]),h=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],_={vertex:s,fragment:g,attributes:h},T={vertex:f,fragment:g,attributes:h},m={vertex:c,fragment:g,attributes:h},k={vertex:s,fragment:b,attributes:h},S={vertex:f,fragment:b,attributes:h},x={vertex:c,fragment:b,attributes:h};function M(d,w){var y=l(d,w),v=y.attributes;return v.position.location=0,v.color.location=1,v.glyph.location=2,v.id.location=3,y}o.createPerspective=function(d){return M(d,_)},o.createOrtho=function(d){return M(d,T)},o.createProject=function(d){return M(d,m)},o.createPickPerspective=function(d){return M(d,k)},o.createPickOrtho=function(d){return M(d,S)},o.createPickProject=function(d){return M(d,x)}},8418(a,o,i){"use strict";var l=i(5219),u=i(2762),s=i(8116),f=i(1888),c=i(6760),g=i(1283),b=i(9366),h=i(5964),_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=ArrayBuffer,m=DataView;function k($){return T.isView($)&&!($ instanceof m)}function S($){return Array.isArray($)||k($)}a.exports=re;function x($,ae){var Q=$[0],te=$[1],ue=$[2],ee=$[3];return $[0]=ae[0]*Q+ae[4]*te+ae[8]*ue+ae[12]*ee,$[1]=ae[1]*Q+ae[5]*te+ae[9]*ue+ae[13]*ee,$[2]=ae[2]*Q+ae[6]*te+ae[10]*ue+ae[14]*ee,$[3]=ae[3]*Q+ae[7]*te+ae[11]*ue+ae[15]*ee,$}function M($,ae,Q,te){return x(te,te,Q),x(te,te,ae),x(te,te,$)}function d($,ae){this.index=$,this.dataCoordinate=this.position=ae}function w($){return $===!0||$>1?1:$}function y($,ae,Q,te,ue,ee,ie,fe,we,Te,ke,ge){this.gl=$,this.pixelRatio=1,this.shader=ae,this.orthoShader=Q,this.projectShader=te,this.pointBuffer=ue,this.colorBuffer=ee,this.glyphBuffer=ie,this.idBuffer=fe,this.vao=we,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=Te,this.pickOrthoShader=ke,this.pickProjectShader=ge,this.points=[],this._selectResult=new d(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($){this.pickId=$},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var $=0;$<3;++$)if(this.axesProject[$]&&this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var $=0;$<3;++$)if(this.axesProject[$]&&!this.projectHasAlpha)return!0;return!1};var A=[0,0],p=[0,0,0],D=[0,0,0],E=[0,0,0,1],R=[0,0,0,1],I=_.slice(),z=[0,0,0],F=[[0,0,0],[0,0,0]];function L($){return $[0]=$[1]=$[2]=0,$}function P($,ae){return $[0]=ae[0],$[1]=ae[1],$[2]=ae[2],$[3]=1,$}function B($,ae,Q,te){return $[0]=ae[0],$[1]=ae[1],$[2]=ae[2],$[Q]=te,$}function O($){for(var ae=F,Q=0;Q<2;++Q)for(var te=0;te<3;++te)ae[Q][te]=Math.max(Math.min($[Q][te],1e8),-1e8);return ae}function G($,ae,Q,te){var ue=ae.axesProject,ee=ae.gl,ie=$.uniforms,fe=Q.model||_,we=Q.view||_,Te=Q.projection||_,ke=ae.axesBounds,ge=O(ae.clipBounds),Ee;ae.axes&&ae.axes.lastCubeProps?Ee=ae.axes.lastCubeProps.axis:Ee=[1,1,1],A[0]=2/ee.drawingBufferWidth,A[1]=2/ee.drawingBufferHeight,$.bind(),ie.view=we,ie.projection=Te,ie.screenSize=A,ie.highlightId=ae.highlightId,ie.highlightScale=ae.highlightScale,ie.clipBounds=ge,ie.pickGroup=ae.pickId/255,ie.pixelRatio=te;for(var Le=0;Le<3;++Le)if(ue[Le]){ie.scale=ae.projectScale[Le],ie.opacity=ae.projectOpacity[Le];for(var se=I,X=0;X<16;++X)se[X]=0;for(var X=0;X<4;++X)se[5*X]=1;se[5*Le]=0,Ee[Le]<0?se[12+Le]=ke[0][Le]:se[12+Le]=ke[1][Le],c(se,fe,se),ie.model=se;var K=(Le+1)%3,ye=(Le+2)%3,oe=L(p),de=L(D);oe[K]=1,de[ye]=1;var pe=M(Te,we,fe,P(E,oe)),me=M(Te,we,fe,P(R,de));if(Math.abs(pe[1])>Math.abs(me[1])){var Se=pe;pe=me,me=Se,Se=oe,oe=de,de=Se;var ve=K;K=ye,ye=ve}pe[0]<0&&(oe[K]=-1),me[1]>0&&(de[ye]=-1);for(var he=0,be=0,X=0;X<4;++X)he+=Math.pow(fe[4*K+X],2),be+=Math.pow(fe[4*ye+X],2);oe[K]/=Math.sqrt(he),de[ye]/=Math.sqrt(be),ie.axes[0]=oe,ie.axes[1]=de,ie.fragClipBounds[0]=B(z,ge[0],Le,-1e8),ie.fragClipBounds[1]=B(z,ge[1],Le,1e8),ae.vao.bind(),ae.vao.draw(ee.TRIANGLES,ae.vertexCount),ae.lineWidth>0&&(ee.lineWidth(ae.lineWidth*te),ae.vao.draw(ee.LINES,ae.lineVertexCount,ae.vertexCount)),ae.vao.unbind()}}var J=[-1e8,-1e8,-1e8],j=[1e8,1e8,1e8],V=[J,j];function q($,ae,Q,te,ue,ee,ie){var fe=Q.gl;if((ee===Q.projectHasAlpha||ie)&&G(ae,Q,te,ue),ee===Q.hasAlpha||ie){$.bind();var we=$.uniforms;we.model=te.model||_,we.view=te.view||_,we.projection=te.projection||_,A[0]=2/fe.drawingBufferWidth,A[1]=2/fe.drawingBufferHeight,we.screenSize=A,we.highlightId=Q.highlightId,we.highlightScale=Q.highlightScale,we.fragClipBounds=V,we.clipBounds=Q.axes.bounds,we.opacity=Q.opacity,we.pickGroup=Q.pickId/255,we.pixelRatio=ue,Q.vao.bind(),Q.vao.draw(fe.TRIANGLES,Q.vertexCount),Q.lineWidth>0&&(fe.lineWidth(Q.lineWidth*ue),Q.vao.draw(fe.LINES,Q.lineVertexCount,Q.vertexCount)),Q.vao.unbind()}}v.draw=function($){var ae=this.useOrtho?this.orthoShader:this.shader;q(ae,this.projectShader,this,$,this.pixelRatio,!1,!1)},v.drawTransparent=function($){var ae=this.useOrtho?this.orthoShader:this.shader;q(ae,this.projectShader,this,$,this.pixelRatio,!0,!1)},v.drawPick=function($){var ae=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(ae,this.pickProjectShader,this,$,1,!0,!0)},v.pick=function($){if(!$||$.id!==this.pickId)return null;var ae=$.value[2]+($.value[1]<<8)+($.value[0]<<16);if(ae>=this.pointCount||ae<0)return null;var Q=this.points[ae],te=this._selectResult;te.index=ae;for(var ue=0;ue<3;++ue)te.position[ue]=te.dataCoordinate[ue]=Q[ue];return te},v.highlight=function($){if(!$)this.highlightId=[1,1,1,1];else{var ae=$.index,Q=ae&255,te=ae>>8&255,ue=ae>>16&255;this.highlightId=[Q/255,te/255,ue/255,0]}};function Z($,ae,Q,te){var ue;S($)?ae<$.length?ue=$[ae]:ue=void 0:ue=$,ue=h(ue);var ee=!0;l(ue)&&(ue="\u25BC",ee=!1),Q||(Q={});var ie=Q.family;S(ie)&&(ie=ie[ae]),ie||(ie="normal");var fe=Q.weight;S(fe)&&(fe=fe[ae]),fe||(fe="normal");var we=Q.style;S(we)&&(we=we[ae]),we||(we="normal");var Te=Q.variant;S(Te)&&(Te=Te[ae]),Te||(Te="normal");var ke=b(ue,{family:ie,weight:fe,style:we,variant:Te},te),ke=b(ue,Q,te);return{mesh:ke[0],lines:ke[1],bounds:ke[2],visible:ee}}v.update=function($){if($=$||{},"perspective"in $&&(this.useOrtho=!$.perspective),"orthographic"in $&&(this.useOrtho=!!$.orthographic),"lineWidth"in $&&(this.lineWidth=$.lineWidth),"project"in $)if(S($.project))this.axesProject=$.project;else{var ae=!!$.project;this.axesProject=[ae,ae,ae]}if("projectScale"in $)if(S($.projectScale))this.projectScale=$.projectScale.slice();else{var Q=+$.projectScale;this.projectScale=[Q,Q,Q]}if(this.projectHasAlpha=!1,"projectOpacity"in $){if(S($.projectOpacity))this.projectOpacity=$.projectOpacity.slice();else{var Q=+$.projectOpacity;this.projectOpacity=[Q,Q,Q]}for(var te=0;te<3;++te)this.projectOpacity[te]=w(this.projectOpacity[te]),this.projectOpacity[te]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in $&&(this.opacity=w($.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var ue=$.position,ee={family:$.font||"normal",style:$.fontStyle||"normal",weight:$.fontWeight||"normal",variant:$.fontVariant||"normal"},ie=$.alignment||[0,0],fe,we;if(ie.length===2)fe=ie[0],we=ie[1];else{fe=[],we=[];for(var te=0;te<ie.length;++te)fe[te]=ie[te][0],we[te]=ie[te][1]}var Te=[1/0,1/0,1/0],ke=[-1/0,-1/0,-1/0],ge=$.glyph,Ee=$.color,Le=$.size,se=$.angle,X=$.lineColor,K=-1,ye=0,oe=0,de=0;if(ue.length){de=ue.length;e:for(var te=0;te<de;++te){for(var pe=ue[te],me=0;me<3;++me)if(isNaN(pe[me])||!isFinite(pe[me]))continue e;var Se=Z(ge,te,ee,this.pixelRatio),ve=Se.mesh,he=Se.lines,be=Se.bounds;ye+=ve.cells.length*3,oe+=he.edges.length*2}}var Ae=ye+oe,Re=f.mallocFloat(3*Ae),Pe=f.mallocFloat(4*Ae),Ye=f.mallocFloat(2*Ae),Ve=f.mallocUint32(Ae);if(Ae>0){var Ue=0,qe=ye,We=[0,0,0,1],Xe=[0,0,0,1],er=S(Ee)&&S(Ee[0]),nr=S(X)&&S(X[0]);e:for(var te=0;te<de;++te){K+=1;for(var pe=ue[te],me=0;me<3;++me){if(isNaN(pe[me])||!isFinite(pe[me]))continue e;ke[me]=Math.max(ke[me],pe[me]),Te[me]=Math.min(Te[me],pe[me])}var Se=Z(ge,te,ee,this.pixelRatio),ve=Se.mesh,he=Se.lines,be=Se.bounds,rr=Se.visible;if(!rr)We=[1,1,1,0];else if(S(Ee)){var Qe;if(er?te<Ee.length?Qe=Ee[te]:Qe=[0,0,0,0]:Qe=Ee,Qe.length===3){for(var me=0;me<3;++me)We[me]=Qe[me];We[3]=1}else if(Qe.length===4){for(var me=0;me<4;++me)We[me]=Qe[me];!this.hasAlpha&&Qe[3]<1&&(this.hasAlpha=!0)}}else We[0]=We[1]=We[2]=0,We[3]=1;if(!rr)Xe=[1,1,1,0];else if(S(X)){var Qe;if(nr?te<X.length?Qe=X[te]:Qe=[0,0,0,0]:Qe=X,Qe.length===3){for(var me=0;me<3;++me)Xe[me]=Qe[me];Xe[me]=1}else if(Qe.length===4){for(var me=0;me<4;++me)Xe[me]=Qe[me];!this.hasAlpha&&Qe[3]<1&&(this.hasAlpha=!0)}}else Xe[0]=Xe[1]=Xe[2]=0,Xe[3]=1;var Ce=.5;rr?S(Le)?te<Le.length?Ce=+Le[te]:Ce=12:Le?Ce=+Le:this.useOrtho&&(Ce=12):Ce=0;var ze=0;S(se)?te<se.length?ze=+se[te]:ze=0:se&&(ze=+se);for(var Ke=Math.cos(ze),je=Math.sin(ze),pe=ue[te],me=0;me<3;++me)ke[me]=Math.max(ke[me],pe[me]),Te[me]=Math.min(Te[me],pe[me]);var wr=fe,Xr=we,wr=0;S(fe)?te<fe.length?wr=fe[te]:wr=0:fe&&(wr=fe);var Xr=0;S(we)?te<we.length?Xr=we[te]:Xr=0:we&&(Xr=we),wr*=wr>0?1-be[0][0]:wr<0?1+be[1][0]:1,Xr*=Xr>0?1-be[0][1]:Xr<0?1+be[1][1]:1;for(var Tr=[wr,Xr],ot=ve.cells||[],Ir=ve.positions||[],me=0;me<ot.length;++me)for(var Pr=ot[me],at=0;at<3;++at){for(var Ar=0;Ar<3;++Ar)Re[3*Ue+Ar]=pe[Ar];for(var Ar=0;Ar<4;++Ar)Pe[4*Ue+Ar]=We[Ar];Ve[Ue]=K;var Hr=Ir[Pr[at]];Ye[2*Ue]=Ce*(Ke*Hr[0]-je*Hr[1]+Tr[0]),Ye[2*Ue+1]=Ce*(je*Hr[0]+Ke*Hr[1]+Tr[1]),Ue+=1}for(var ot=he.edges,Ir=he.positions,me=0;me<ot.length;++me)for(var Pr=ot[me],at=0;at<2;++at){for(var Ar=0;Ar<3;++Ar)Re[3*qe+Ar]=pe[Ar];for(var Ar=0;Ar<4;++Ar)Pe[4*qe+Ar]=Xe[Ar];Ve[qe]=K;var Hr=Ir[Pr[at]];Ye[2*qe]=Ce*(Ke*Hr[0]-je*Hr[1]+Tr[0]),Ye[2*qe+1]=Ce*(je*Hr[0]+Ke*Hr[1]+Tr[1]),qe+=1}}}this.bounds=[Te,ke],this.points=ue,this.pointCount=ue.length,this.vertexCount=ye,this.lineVertexCount=oe,this.pointBuffer.update(Re),this.colorBuffer.update(Pe),this.glyphBuffer.update(Ye),this.idBuffer.update(Ve),f.free(Re),f.free(Pe),f.free(Ye),f.free(Ve)},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 re($){var ae=$.gl,Q=g.createPerspective(ae),te=g.createOrtho(ae),ue=g.createProject(ae),ee=g.createPickPerspective(ae),ie=g.createPickOrtho(ae),fe=g.createPickProject(ae),we=u(ae),Te=u(ae),ke=u(ae),ge=u(ae),Ee=s(ae,[{buffer:we,size:3,type:ae.FLOAT},{buffer:Te,size:4,type:ae.FLOAT},{buffer:ke,size:2,type:ae.FLOAT},{buffer:ge,size:4,type:ae.UNSIGNED_BYTE,normalized:!0}]),Le=new y(ae,Q,te,ue,we,Te,ke,ge,Ee,ee,ie,fe);return Le.update($),Le}},3589(a,o,i){"use strict";a.exports=_;var l=i(2260),u=i(1888),s=i(9618),f=i(8828).nextPow2,c=function(T,m,k){for(var S=1e8,x=-1,M=-1,d=T.shape[0],w=T.shape[1],y=0;y<d;y++)for(var v=0;v<w;v++){var A=T.get(y,v,0),p=T.get(y,v,1),D=T.get(y,v,2),E=T.get(y,v,3);if(A<255||p<255||D<255||E<255){var R=m-y,I=k-v,z=R*R+I*I;z<S&&(S=z,x=y,M=v)}}return[x,M,S]};function g(T,m,k,S,x){this.coord=[T,m],this.id=k,this.value=S,this.distance=x}function b(T,m,k){this.gl=T,this.fbo=m,this.buffer=k,this._readTimeout=null;var S=this;this._readCallback=function(){S.gl&&(m.bind(),T.readPixels(0,0,m.shape[0],m.shape[1],T.RGBA,T.UNSIGNED_BYTE,S.buffer),S._readTimeout=null)}}var h=b.prototype;Object.defineProperty(h,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(T){if(this.gl){this.fbo.shape=T;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)),x=0;x<k*m*4;++x)S[x]=255}return T}}}),h.begin=function(){var T=this.gl,m=this.shape;T&&(this.fbo.bind(),T.clearColor(1,1,1,1),T.clear(T.COLOR_BUFFER_BIT|T.DEPTH_BUFFER_BIT))},h.end=function(){var T=this.gl;T&&(T.bindFramebuffer(T.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},h.query=function(T,m,k){if(!this.gl)return null;var S=this.fbo.shape.slice();T=T|0,m=m|0,typeof k!="number"&&(k=1);var x=Math.min(Math.max(T-k,0),S[0])|0,M=Math.min(Math.max(T+k,0),S[0])|0,d=Math.min(Math.max(m-k,0),S[1])|0,w=Math.min(Math.max(m+k,0),S[1])|0;if(M<=x||w<=d)return null;var y=[M-x,w-d],v=s(this.buffer,[y[0],y[1],4],[4,S[0]*4,1],4*(x+S[0]*d)),A=c(v.hi(y[0],y[1],1),k,k),p=A[0],D=A[1];if(p<0||Math.pow(this.radius,2)<A[2])return null;var E=v.get(p,D,0),R=v.get(p,D,1),I=v.get(p,D,2),z=v.get(p,D,3);return new g(p+x|0,D+d|0,E,[R,I,z],Math.sqrt(A[2]))},h.dispose=function(){this.gl&&(this.fbo.dispose(),u.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))};function _(T,m){var k=m[0],S=m[1],x={},M=l(T,k,S,x),d=u.mallocUint8(k*S*4);return new b(T,M,d)}},9405(a,o,i){"use strict";var l=i(3327),u=i(8731),s=i(216),f=i(5091),c=i(2145),g=i(8866);function b(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 h=b.prototype;h.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)},h.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 _(m,k){return m.name<k.name?-1:1}h.update=function(m,k,S,x){if(!k||arguments.length===1){var M=m;m=M.vertex,k=M.fragment,S=M.uniforms,x=M.attributes}var d=this,w=d.gl,y=d._vref;d._vref=f.shader(w,w.VERTEX_SHADER,m),y&&y.dispose(),d.vertShader=d._vref.shader;var v=this._fref;if(d._fref=f.shader(w,w.FRAGMENT_SHADER,k),v&&v.dispose(),d.fragShader=d._fref.shader,!S||!x){var A=w.createProgram();if(w.attachShader(A,d.fragShader),w.attachShader(A,d.vertShader),w.linkProgram(A),!w.getProgramParameter(A,w.LINK_STATUS)){var p=w.getProgramInfoLog(A);throw new g(p,"Error linking program:"+p)}S=S||c.uniforms(w,A),x=x||c.attributes(w,A),w.deleteProgram(A)}x=x.slice(),x.sort(_);var D=[],E=[],R=[],I;for(I=0;I<x.length;++I){var z=x[I];if(z.type.indexOf("mat")>=0){for(var F=z.type.charAt(z.type.length-1)|0,L=new Array(F),P=0;P<F;++P)L[P]=R.length,E.push(z.name+"["+P+"]"),typeof z.location=="number"?R.push(z.location+P):Array.isArray(z.location)&&z.location.length===F&&typeof z.location[P]=="number"?R.push(z.location[P]|0):R.push(-1);D.push({name:z.name,type:z.type,locations:L})}else D.push({name:z.name,type:z.type,locations:[R.length]}),E.push(z.name),typeof z.location=="number"?R.push(z.location|0):R.push(-1)}var B=0;for(I=0;I<R.length;++I)if(R[I]<0){for(;R.indexOf(B)>=0;)B+=1;R[I]=B}var O=new Array(S.length);function G(){d.program=f.program(w,d._vref,d._fref,E,R);for(var J=0;J<S.length;++J)O[J]=w.getUniformLocation(d.program,S[J].name)}G(),d._relink=G,d.types={uniforms:s(S),attributes:s(x)},d.attributes=u(w,d,D,R),Object.defineProperty(d,"uniforms",l(w,d,S,O))};function T(m,k,S,x,M){var d=new b(m);return d.update(k,S,x,M),d}a.exports=T},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=b;var l=i(8866);function u(h,_,T,m,k,S){this._gl=h,this._wrapper=_,this._index=T,this._locations=m,this._dimension=k,this._constFunc=S}var s=u.prototype;s.pointer=function(_,T,m,k){var S=this,x=S._gl,M=S._locations[S._index];x.vertexAttribPointer(M,S._dimension,_||x.FLOAT,!!T,m||0,k||0),x.enableVertexAttribArray(M)},s.set=function(h,_,T,m){return this._constFunc(this._locations[this._index],h,_,T,m)},Object.defineProperty(s,"location",{get:function(){return this._locations[this._index]},set:function(h){return h!==this._locations[this._index]&&(this._locations[this._index]=h|0,this._wrapper.program=null),h|0}});var f=[function(h,_,T){return T.length===void 0?h.vertexAttrib1f(_,T):h.vertexAttrib1fv(_,T)},function(h,_,T,m){return T.length===void 0?h.vertexAttrib2f(_,T,m):h.vertexAttrib2fv(_,T)},function(h,_,T,m,k){return T.length===void 0?h.vertexAttrib3f(_,T,m,k):h.vertexAttrib3fv(_,T)},function(h,_,T,m,k,S){return T.length===void 0?h.vertexAttrib4f(_,T,m,k,S):h.vertexAttrib4fv(_,T)}];function c(h,_,T,m,k,S,x){var M=f[k],d=new u(h,_,T,m,k,M);Object.defineProperty(S,x,{set:function(w){return h.disableVertexAttribArray(m[T]),M(h,m[T],w),w},get:function(){return d},enumerable:!0})}function g(h,_,T,m,k,S,x){for(var M=new Array(k),d=new Array(k),w=0;w<k;++w)c(h,_,T[w],m,k,M,w),d[w]=M[w];Object.defineProperty(M,"location",{set:function(A){if(Array.isArray(A))for(var p=0;p<k;++p)d[p].location=A[p];else for(var p=0;p<k;++p)d[p].location=A+p;return A},get:function(){for(var A=new Array(k),p=0;p<k;++p)A[p]=m[T[p]];return A},enumerable:!0}),M.pointer=function(A,p,D,E){A=A||h.FLOAT,p=!!p,D=D||k*k,E=E||0;for(var R=0;R<k;++R){var I=m[T[R]];h.vertexAttribPointer(I,k,A,p,D,E+R*k),h.enableVertexAttribArray(I)}};var y=new Array(k),v=h["vertexAttrib"+k+"fv"];Object.defineProperty(S,x,{set:function(A){for(var p=0;p<k;++p){var D=m[T[p]];if(h.disableVertexAttribArray(D),Array.isArray(A[0]))v.call(h,D,A[p]);else{for(var E=0;E<k;++E)y[E]=A[k*p+E];v.call(h,D,y)}}return A},get:function(){return M},enumerable:!0})}function b(h,_,T,m){for(var k={},S=0,x=T.length;S<x;++S){var M=T[S],d=M.name,w=M.type,y=M.locations;switch(w){case"bool":case"int":case"float":c(h,_,y[0],m,1,k,d);break;default:if(w.indexOf("vec")>=0){var v=w.charCodeAt(w.length-1)-48;if(v<2||v>4)throw new l("","Invalid data type for attribute "+d+": "+w);c(h,_,y[0],m,v,k,d)}else if(w.indexOf("mat")>=0){var v=w.charCodeAt(w.length-1)-48;if(v<2||v>4)throw new l("","Invalid data type for attribute "+d+": "+w);g(h,_,y,m,v,k,d)}else throw new l("","Unknown data type for attribute "+d+": "+w);break}}return k}},3327(a,o,i){"use strict";var l=i(216),u=i(8866);a.exports=c;function s(g){return function(){return g}}function f(g,b){for(var h=new Array(g),_=0;_<g;++_)h[_]=b;return h}function c(g,b,h,_){function T(w){return function(y,v,A){return y.getUniform(v.program,A[w])}}function m(w){return function(v){for(var A=k("",w),p=0;p<A.length;++p){var D=A[p],E=D[0],R=D[1];if(_[R]){var I=v;if(typeof E=="string"&&(E.indexOf(".")===0||E.indexOf("[")===0)){var z=E;if(E.indexOf(".")===0&&(z=E.slice(1)),z.indexOf("]")===z.length-1){var F=z.indexOf("["),L=z.slice(0,F),P=z.slice(F+1,z.length-1);I=L?v[L][P]:v[P]}else I=v[z]}var B=h[R].type,O;switch(B){case"bool":case"int":case"sampler2D":case"samplerCube":g.uniform1i(_[R],I);break;case"float":g.uniform1f(_[R],I);break;default:var G=B.indexOf("vec");if(0<=G&&G<=1&&B.length===4+G){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":g["uniform"+O+"iv"](_[R],I);break;case"v":g["uniform"+O+"fv"](_[R],I);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);g["uniformMatrix"+O+"fv"](_[R],!1,I);break}else throw new u("","Unknown uniform data type for "+name+": "+B)}}}}}function k(w,y){if(typeof y!="object")return[[w,y]];var v=[];for(var A in y){var p=y[A],D=w;parseInt(A)+""===A?D+="["+A+"]":D+="."+A,typeof p=="object"?v.push.apply(v,k(D,p)):v.push([D,p])}return v}function S(w){switch(w){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var y=w.indexOf("vec");if(0<=y&&y<=1&&w.length===4+y){var v=w.charCodeAt(w.length-1)-48;if(v<2||v>4)throw new u("","Invalid data type");return w.charAt(0)==="b"?f(v,!1):f(v,0)}else if(w.indexOf("mat")===0&&w.length===4){var v=w.charCodeAt(w.length-1)-48;if(v<2||v>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+w);return f(v*v,0)}else throw new u("","Unknown uniform data type for "+name+": "+w)}}function x(w,y,v){if(typeof v=="object"){var A=M(v);Object.defineProperty(w,y,{get:s(A),set:m(v),enumerable:!0,configurable:!1})}else _[v]?Object.defineProperty(w,y,{get:T(v),set:m(v),enumerable:!0,configurable:!1}):w[y]=S(h[v].type)}function M(w){var y;if(Array.isArray(w)){y=new Array(w.length);for(var v=0;v<w.length;++v)x(y,v,w[v])}else{y={};for(var A in w)x(y,A,w[A])}return y}var d=l(h,!0);return{get:s(M(d)),set:m(d),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("."),g=u,b=0;b<c.length;++b){var h=c[b].split("[");if(h.length>1){h[0]in g||(g[h[0]]=[]),g=g[h[0]];for(var _=1;_<h.length;++_){var T=parseInt(h[_]);_<h.length-1||b<c.length-1?(T in g||(_<h.length-1?g[T]=[]:g[T]={}),g=g[T]):l?g[T]=s:g[T]=i[s].type}}else b<c.length-1?(h[0]in g||(g[h[0]]={}),g=g[h[0]]):l?g[h[0]]=s:g[h[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,g){if(!l){var b=Object.keys(i);l={};for(var h=0;h<b.length;++h){var _=b[h];l[c[_]]=i[_]}}return l[g]}function s(c,g){for(var b=c.getProgramParameter(g,c.ACTIVE_UNIFORMS),h=[],_=0;_<b;++_){var T=c.getActiveUniform(g,_);if(T){var m=u(c,T.type);if(T.size>1)for(var k=0;k<T.size;++k)h.push({name:T.name.replace("[0]","["+k+"]"),type:m});else h.push({name:T.name,type:m})}}return h}function f(c,g){for(var b=c.getProgramParameter(g,c.ACTIVE_ATTRIBUTES),h=[],_=0;_<b;++_){var T=c.getActiveAttrib(g,_);T&&h.push({name:T.name,type:u(c,T.type)})}return h}},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 g(x,M,d,w,y,v,A){this.id=x,this.src=M,this.type=d,this.shader=w,this.count=v,this.programs=[],this.cache=A}g.prototype.dispose=function(){if(--this.count===0){for(var x=this.cache,M=x.gl,d=this.programs,w=0,y=d.length;w<y;++w){var v=x.programs[d[w]];v&&(delete x.programs[w],M.deleteProgram(v))}M.deleteShader(this.shader),delete x.shaders[this.type===M.FRAGMENT_SHADER|0][this.src]}};function b(x){this.gl=x,this.shaders=[{},{}],this.programs={}}var h=b.prototype;function _(x,M,d){var w=x.createShader(M);if(x.shaderSource(w,d),x.compileShader(w),!x.getShaderParameter(w,x.COMPILE_STATUS)){var y=x.getShaderInfoLog(w);try{var v=u(y,d,M)}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 w}h.getShaderReference=function(x,M){var d=this.gl,w=this.shaders[x===d.FRAGMENT_SHADER|0],y=w[M];if(!y||!d.isShader(y.shader)){var v=_(d,x,M);y=w[M]=new g(c++,M,x,v,[],1,this)}else y.count+=1;return y};function T(x,M,d,w,y){var v=x.createProgram();x.attachShader(v,M),x.attachShader(v,d);for(var A=0;A<w.length;++A)x.bindAttribLocation(v,y[A],w[A]);if(x.linkProgram(v),!x.getProgramParameter(v,x.LINK_STATUS)){var p=x.getProgramInfoLog(v);throw new l(p,"Error linking program: "+p)}return v}h.getProgram=function(x,M,d,w){var y=[x.id,M.id,d.join(":"),w.join(":")].join("@"),v=this.programs[y];return(!v||!this.gl.isProgram(v))&&(this.programs[y]=v=T(this.gl,x.shader,M.shader,d,w),x.programs.push(y),M.programs.push(y)),v};function m(x){var M=f.get(x);return M||(M=new b(x),f.set(x,M)),M}function k(x,M,d){return m(x).getShaderReference(M,d)}function S(x,M,d,w,y){return m(x).getProgram(M,d,w,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=T;var f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(m,k,S,x){this.gl=m,this.buffer=k,this.vao=S,this.shader=x,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 g=c.prototype,b=[0,0,0],h=[0,0,0],_=[0,0];g.isTransparent=function(){return!1},g.drawTransparent=function(m){},g.draw=function(m){var k=this.gl,S=this.vao,x=this.shader;S.bind(),x.bind();var M=m.model||f,d=m.view||f,w=m.projection||f,y;this.axes&&(y=this.axes.lastCubeProps.axis);for(var v=b,A=h,p=0;p<3;++p)y&&y[p]<0?(v[p]=this.bounds[0][p],A[p]=this.bounds[1][p]):(v[p]=this.bounds[1][p],A[p]=this.bounds[0][p]);_[0]=k.drawingBufferWidth,_[1]=k.drawingBufferHeight,x.uniforms.model=M,x.uniforms.view=d,x.uniforms.projection=w,x.uniforms.coordinates=[this.position,v,A],x.uniforms.colors=this.colors,x.uniforms.screenShape=_;for(var p=0;p<3;++p)x.uniforms.lineWidth=this.lineWidth[p]*this.pixelRatio,this.enabled[p]&&(S.draw(k.TRIANGLES,6,6*p),this.drawSides[p]&&S.draw(k.TRIANGLES,12,18+12*p));S.unbind()},g.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))},g.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function T(m,k){var S=[];function x(v,A,p,D,E,R){var I=[v,A,p,0,0,0,1];I[D+3]=1,I[D]=E,S.push.apply(S,I),I[6]=-1,S.push.apply(S,I),I[D]=R,S.push.apply(S,I),S.push.apply(S,I),I[6]=1,S.push.apply(S,I),I[D]=E,S.push.apply(S,I)}x(0,0,0,0,0,1),x(0,0,0,1,0,1),x(0,0,0,2,0,1),x(1,0,0,1,-1,1),x(1,0,0,2,-1,1),x(0,1,0,0,-1,1),x(0,1,0,2,-1,1),x(0,0,1,0,-1,1),x(0,0,1,1,-1,1);var M=l(m,S),d=u(m,[{type:m.FLOAT,buffer:M,size:3,offset:0,stride:28},{type:m.FLOAT,buffer:M,size:3,offset:12,stride:28},{type:m.FLOAT,buffer:M,size:1,offset:24,stride:28}]),w=s(m);w.attributes.position.location=0,w.attributes.color.location=1,w.attributes.weight.location=2;var y=new c(m,M,d,w);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(x,M,d,w){for(var y=x.points,v=x.velocities,A=x.divergences,p=[],D=[],E=[],R=[],I=[],z=[],F=0,L=0,P=u.create(),B=u.create(),O=8,G=0;G<y.length;G++){var J=y[G],j=v[G],V=A[G];M===0&&(V=d*.05),L=l.length(j)/w,P=u.create(),l.copy(P,j),P[3]=V;for(var q=0;q<O;q++)I[q]=[J[0],J[1],J[2],q];if(R.length>0)for(var q=0;q<O;q++){var Z=(q+1)%O;p.push(R[q],I[q],I[Z],I[Z],R[Z],R[q]),E.push(B,P,P,P,B,B),z.push(F,L,L,L,F,F);var re=p.length;D.push([re-6,re-5,re-4],[re-3,re-2,re-1])}var $=R;R=I,I=$;var ae=B;B=P,P=ae;var Q=F;F=L,L=Q}return{positions:p,cells:D,vectors:E,vertexIntensity:z}},c=function(x,M,d,w){for(var y=0,v=0;v<x.length;v++)for(var A=x[v].velocities,p=0;p<A.length;p++)y=Math.max(y,l.length(A[p]));for(var D=x.map(function(G){return f(G,d,w,y)}),E=[],R=[],I=[],z=[],v=0;v<D.length;v++){var F=D[v],L=E.length;E=E.concat(F.positions),I=I.concat(F.vectors),z=z.concat(F.vertexIntensity);for(var p=0;p<F.cells.length;p++){var P=F.cells[p],B=[];R.push(B);for(var O=0;O<P.length;O++)B.push(P[O]+L)}}return{positions:E,cells:R,vectors:I,vertexIntensity:z,colormap:M}},g=function(x,M){var d=x.length,w;for(w=0;w<d;w++){var y=x[w];if(y===M)return w;if(y>M)return w-1}return w},b=function(x,M,d){return x<M?M:x>d?d:x},h=function(x,M,d){var w=M.vectors,y=M.meshgrid,v=x[0],A=x[1],p=x[2],D=y[0].length,E=y[1].length,R=y[2].length,I=g(y[0],v),z=g(y[1],A),F=g(y[2],p),L=I+1,P=z+1,B=F+1;if(I=b(I,0,D-1),L=b(L,0,D-1),z=b(z,0,E-1),P=b(P,0,E-1),F=b(F,0,R-1),B=b(B,0,R-1),I<0||z<0||F<0||L>D-1||P>E-1||B>R-1)return l.create();var O=y[0][I],G=y[0][L],J=y[1][z],j=y[1][P],V=y[2][F],q=y[2][B],Z=(v-O)/(G-O),re=(A-J)/(j-J),$=(p-V)/(q-V);isFinite(Z)||(Z=.5),isFinite(re)||(re=.5),isFinite($)||($=.5);var ae,Q,te,ue,ee,ie;switch(d.reversedX&&(I=D-1-I,L=D-1-L),d.reversedY&&(z=E-1-z,P=E-1-P),d.reversedZ&&(F=R-1-F,B=R-1-B),d.filled){case 5:ee=F,ie=B,te=z*R,ue=P*R,ae=I*R*E,Q=L*R*E;break;case 4:ee=F,ie=B,ae=I*R,Q=L*R,te=z*R*D,ue=P*R*D;break;case 3:te=z,ue=P,ee=F*E,ie=B*E,ae=I*E*R,Q=L*E*R;break;case 2:te=z,ue=P,ae=I*E,Q=L*E,ee=F*E*D,ie=B*E*D;break;case 1:ae=I,Q=L,ee=F*D,ie=B*D,te=z*D*R,ue=P*D*R;break;default:ae=I,Q=L,te=z*D,ue=P*D,ee=F*D*E,ie=B*D*E;break}var fe=w[ae+te+ee],we=w[ae+te+ie],Te=w[ae+ue+ee],ke=w[ae+ue+ie],ge=w[Q+te+ee],Ee=w[Q+te+ie],Le=w[Q+ue+ee],se=w[Q+ue+ie],X=l.create(),K=l.create(),ye=l.create(),oe=l.create();l.lerp(X,fe,ge,Z),l.lerp(K,we,Ee,Z),l.lerp(ye,Te,Le,Z),l.lerp(oe,ke,se,Z);var de=l.create(),pe=l.create();l.lerp(de,X,ye,re),l.lerp(pe,K,oe,re);var me=l.create();return l.lerp(me,de,pe,$),me},_=function(x,M){var d=M[0],w=M[1],y=M[2];return x[0]=d<0?-d:d,x[1]=w<0?-w:w,x[2]=y<0?-y:y,x},T=function(x){var M=1/0;x.sort(function(v,A){return v-A});for(var d=x.length,w=1;w<d;w++){var y=Math.abs(x[w]-x[w-1]);y<M&&(M=y)}return M},m=function(x){for(var M=[],d=[],w=[],y={},v={},A={},p=x.length,D=0;D<p;D++){var E=x[D],R=E[0],I=E[1],z=E[2];y[R]||(M.push(R),y[R]=!0),v[I]||(d.push(I),v[I]=!0),A[z]||(w.push(z),A[z]=!0)}var F=T(M),L=T(d),P=T(w),B=Math.min(F,L,P);return isFinite(B)?B:1};a.exports=function(x,M){var d=x.startingPositions,w=x.maxLength||1e3,y=x.tubeSize||1,v=x.absoluteTubeSize,A=x.gridFill||"+x+y+z",p={};A.indexOf("-x")!==-1&&(p.reversedX=!0),A.indexOf("-y")!==-1&&(p.reversedY=!0),A.indexOf("-z")!==-1&&(p.reversedZ=!0),p.filled=s.indexOf(A.replace(/-/g,"").replace(/\+/g,""));var D=x.getVelocity||function(Ee){return h(Ee,x,p)},E=x.getDivergence||function(Ee,Le){var se=l.create(),X=1e-4;l.add(se,Ee,[X,0,0]);var K=D(se);l.subtract(K,K,Le),l.scale(K,K,1/X),l.add(se,Ee,[0,X,0]);var ye=D(se);l.subtract(ye,ye,Le),l.scale(ye,ye,1/X),l.add(se,Ee,[0,0,X]);var oe=D(se);return l.subtract(oe,oe,Le),l.scale(oe,oe,1/X),l.add(se,K,ye),l.add(se,se,oe),se},R=[],I=M[0][0],z=M[0][1],F=M[0][2],L=M[1][0],P=M[1][1],B=M[1][2],O=function(Ee){var Le=Ee[0],se=Ee[1],X=Ee[2];return!(Le<I||Le>L||se<z||se>P||X<F||X>B)},G=l.distance(M[0],M[1]),J=10*G/w,j=J*J,V=1,q=0,Z=d.length;Z>1&&(V=m(d));for(var re=0;re<Z;re++){var $=l.create();l.copy($,d[re]);var ae=[$],Q=[],te=D($),ue=$;Q.push(te);var ee=[],ie=E($,te),fe=l.length(ie);isFinite(fe)&&fe>q&&(q=fe),ee.push(fe),R.push({points:ae,velocities:Q,divergences:ee});for(var we=0;we<w*100&&ae.length<w&&O($);){we++;var Te=l.clone(te),ke=l.squaredLength(Te);if(ke===0)break;if(ke>j&&l.scale(Te,Te,J/Math.sqrt(ke)),l.add(Te,Te,$),te=D(Te),l.squaredDistance(ue,Te)-j>-1e-4*j){ae.push(Te),ue=Te,Q.push(te);var ie=E(Te,te),fe=l.length(ie);isFinite(fe)&&fe>q&&(q=fe),ee.push(fe)}$=Te}}var ge=c(R,x.colormap,q,V);return v?ge.tubeScale=v:(q===0&&(q=1),ge.tubeScale=y*.5*V/q),ge};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(x,M){return S(x,M,{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);
}
`]),g=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(b){var h=l(b,s,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return h.attributes.uv.location=0,h.attributes.f.location=1,h.attributes.normal.location=2,h},o.createPickShader=function(b){var h=l(b,s,g,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return h.attributes.uv.location=0,h.attributes.f.location=1,h.attributes.normal.location=2,h},o.createContourShader=function(b){var h=l(b,c,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return h.attributes.uv.location=0,h.attributes.f.location=1,h},o.createPickContourShader=function(b){var h=l(b,c,g,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return h.attributes.uv.location=0,h.attributes.f.location=1,h}},9499(a,o,i){"use strict";a.exports=ae;var l=i(8828),u=i(2762),s=i(8116),f=i(7766),c=i(1888),g=i(6729),b=i(5298),h=i(9994),_=i(9618),T=i(3711),m=i(6760),k=i(7608),S=i(2478),x=i(6199),M=i(990),d=M.createShader,w=M.createContourShader,y=M.createPickShader,v=M.createPickContourShader,A=40,p=[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 te=E[Q],ue=(Q+1)%3,ee=(Q+2)%3;te[ue+0]=1,te[ee+3]=1,te[Q+6]=1}})();function R(Q,te,ue,ee,ie){this.position=Q,this.index=te,this.uv=ue,this.level=ee,this.dataCoordinate=ie}var I=256;function z(Q,te,ue,ee,ie,fe,we,Te,ke,ge,Ee,Le,se,X,K){this.gl=Q,this.shape=te,this.bounds=ue,this.objectOffset=K,this.intensityBounds=[],this._shader=ee,this._pickShader=ie,this._coordinateBuffer=fe,this._vao=we,this._colorMap=Te,this._contourShader=ke,this._contourPickShader=ge,this._contourBuffer=Ee,this._contourVAO=Le,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=se,this._dynamicVAO=X,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=[_(c.mallocFloat(1024),[0,0]),_(c.mallocFloat(1024),[0,0]),_(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 F=z.prototype;F.genColormap=function(Q,te){var ue=!1,ee=h([g({colormap:Q,nshades:I,format:"rgba"}).map(function(ie,fe){var we=te?L(fe/255,te):ie[3];return we<1&&(ue=!0),[ie[0],ie[1],ie[2],255*we]})]);return b.divseq(ee,255),this.hasAlphaScale=ue,ee},F.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},F.isOpaque=function(){return!this.isTransparent()},F.pickSlots=1,F.setPickBase=function(Q){this.pickId=Q};function L(Q,te){if(!te||!te.length)return 1;for(var ue=0;ue<te.length;++ue){if(te.length<2)return 1;if(te[ue][0]===Q)return te[ue][1];if(te[ue][0]>Q&&ue>0){var ee=(te[ue][0]-Q)/(te[ue][0]-te[ue-1][0]);return te[ue][1]*(1-ee)+ee*te[ue-1][1]}}return 1}var P=[0,0,0],B={showSurface:!1,showContour:!1,projections:[p.slice(),p.slice(),p.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function O(Q,te){var ue,ee,ie,fe=te.axes&&te.axes.lastCubeProps.axis||P,we=te.showSurface,Te=te.showContour;for(ue=0;ue<3;++ue)for(we=we||te.surfaceProject[ue],ee=0;ee<3;++ee)Te=Te||te.contourProject[ue][ee];for(ue=0;ue<3;++ue){var ke=B.projections[ue];for(ee=0;ee<16;++ee)ke[ee]=0;for(ee=0;ee<4;++ee)ke[5*ee]=1;ke[5*ue]=0,ke[12+ue]=te.axesBounds[+(fe[ue]>0)][ue],m(ke,Q.model,ke);var ge=B.clipBounds[ue];for(ie=0;ie<2;++ie)for(ee=0;ee<3;++ee)ge[ie][ee]=Q.clipBounds[ie][ee];ge[0][ue]=-1e8,ge[1][ue]=1e8}return B.showSurface=we,B.showContour=Te,B}var G={model:p,view:p,projection:p,inverseModel:p.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},J=p.slice(),j=[1,0,0,0,1,0,0,0,1];function V(Q,te){Q=Q||{};var ue=this.gl;ue.disable(ue.CULL_FACE),this._colorMap.bind(0);var ee=G;ee.model=Q.model||p,ee.view=Q.view||p,ee.projection=Q.projection||p,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 ie=0;ie<2;++ie)for(var fe=ee.clipBounds[ie],we=0;we<3;++we)fe[we]=Math.min(Math.max(this.clipBounds[ie][we],-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 Te=J;for(m(Te,ee.view,ee.model),m(Te,ee.projection,Te),k(Te,Te),ie=0;ie<3;++ie)ee.eyePosition[ie]=Te[12+ie]/Te[15];var ke=Te[15];for(ie=0;ie<3;++ie)ke+=this.lightPosition[ie]*Te[4*ie+3];for(ie=0;ie<3;++ie){var ge=Te[12+ie];for(we=0;we<3;++we)ge+=Te[4*we+ie]*this.lightPosition[we];ee.lightPosition[ie]=ge/ke}var Ee=O(ee,this);if(Ee.showSurface){for(this._shader.bind(),this._shader.uniforms=ee,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(ue.TRIANGLES,this._vertexCount),ie=0;ie<3;++ie)!this.surfaceProject[ie]||!this.vertexCount||(this._shader.uniforms.model=Ee.projections[ie],this._shader.uniforms.clipBounds=Ee.clipBounds[ie],this._vao.draw(ue.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ee.showContour){var Le=this._contourShader;ee.kambient=1,ee.kdiffuse=0,ee.kspecular=0,ee.opacity=1,Le.bind(),Le.uniforms=ee;var se=this._contourVAO;for(se.bind(),ie=0;ie<3;++ie)for(Le.uniforms.permutation=E[ie],ue.lineWidth(this.contourWidth[ie]*this.pixelRatio),we=0;we<this.contourLevels[ie].length;++we)we===this.highlightLevel[ie]?(Le.uniforms.contourColor=this.highlightColor[ie],Le.uniforms.contourTint=this.highlightTint[ie]):(we===0||we-1===this.highlightLevel[ie])&&(Le.uniforms.contourColor=this.contourColor[ie],Le.uniforms.contourTint=this.contourTint[ie]),this._contourCounts[ie][we]&&(Le.uniforms.height=this.contourLevels[ie][we],se.draw(ue.LINES,this._contourCounts[ie][we],this._contourOffsets[ie][we]));for(ie=0;ie<3;++ie)for(Le.uniforms.model=Ee.projections[ie],Le.uniforms.clipBounds=Ee.clipBounds[ie],we=0;we<3;++we)if(this.contourProject[ie][we]){Le.uniforms.permutation=E[we],ue.lineWidth(this.contourWidth[we]*this.pixelRatio);for(var X=0;X<this.contourLevels[we].length;++X)X===this.highlightLevel[we]?(Le.uniforms.contourColor=this.highlightColor[we],Le.uniforms.contourTint=this.highlightTint[we]):(X===0||X-1===this.highlightLevel[we])&&(Le.uniforms.contourColor=this.contourColor[we],Le.uniforms.contourTint=this.contourTint[we]),this._contourCounts[we][X]&&(Le.uniforms.height=this.contourLevels[we][X],se.draw(ue.LINES,this._contourCounts[we][X],this._contourOffsets[we][X]))}for(se.unbind(),se=this._dynamicVAO,se.bind(),ie=0;ie<3;++ie)if(this._dynamicCounts[ie]!==0)for(Le.uniforms.model=ee.model,Le.uniforms.clipBounds=ee.clipBounds,Le.uniforms.permutation=E[ie],ue.lineWidth(this.dynamicWidth[ie]*this.pixelRatio),Le.uniforms.contourColor=this.dynamicColor[ie],Le.uniforms.contourTint=this.dynamicTint[ie],Le.uniforms.height=this.dynamicLevel[ie],se.draw(ue.LINES,this._dynamicCounts[ie],this._dynamicOffsets[ie]),we=0;we<3;++we)this.contourProject[we][ie]&&(Le.uniforms.model=Ee.projections[we],Le.uniforms.clipBounds=Ee.clipBounds[we],se.draw(ue.LINES,this._dynamicCounts[ie],this._dynamicOffsets[ie]));se.unbind()}}F.draw=function(Q){return V.call(this,Q,!1)},F.drawTransparent=function(Q){return V.call(this,Q,!0)};var q={model:p,view:p,projection:p,inverseModel:p,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]};F.drawPick=function(Q){Q=Q||{};var te=this.gl;te.disable(te.CULL_FACE);var ue=q;ue.model=Q.model||p,ue.view=Q.view||p,ue.projection=Q.projection||p,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 ie=ue.clipBounds[ee],fe=0;fe<3;++fe)ie[fe]=Math.min(Math.max(this.clipBounds[ee][fe],-1e8),1e8);var we=O(ue,this);if(we.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=ue,this._vao.bind(),this._vao.draw(te.TRIANGLES,this._vertexCount),ee=0;ee<3;++ee)this.surfaceProject[ee]&&(this._pickShader.uniforms.model=we.projections[ee],this._pickShader.uniforms.clipBounds=we.clipBounds[ee],this._vao.draw(te.TRIANGLES,this._vertexCount));this._vao.unbind()}if(we.showContour){var Te=this._contourPickShader;Te.bind(),Te.uniforms=ue;var ke=this._contourVAO;for(ke.bind(),fe=0;fe<3;++fe)for(te.lineWidth(this.contourWidth[fe]*this.pixelRatio),Te.uniforms.permutation=E[fe],ee=0;ee<this.contourLevels[fe].length;++ee)this._contourCounts[fe][ee]&&(Te.uniforms.height=this.contourLevels[fe][ee],ke.draw(te.LINES,this._contourCounts[fe][ee],this._contourOffsets[fe][ee]));for(ee=0;ee<3;++ee)for(Te.uniforms.model=we.projections[ee],Te.uniforms.clipBounds=we.clipBounds[ee],fe=0;fe<3;++fe)if(this.contourProject[ee][fe]){Te.uniforms.permutation=E[fe],te.lineWidth(this.contourWidth[fe]*this.pixelRatio);for(var ge=0;ge<this.contourLevels[fe].length;++ge)this._contourCounts[fe][ge]&&(Te.uniforms.height=this.contourLevels[fe][ge],ke.draw(te.LINES,this._contourCounts[fe][ge],this._contourOffsets[fe][ge]))}ke.unbind()}},F.pick=function(Q){if(!Q||Q.id!==this.pickId)return null;var te=this._field[2].shape,ue=this._pickResult,ee=te[0]*(Q.value[0]+(Q.value[2]>>4)/16)/255,ie=Math.floor(ee),fe=ee-ie,we=te[1]*(Q.value[1]+(Q.value[2]&15)/16)/255,Te=Math.floor(we),ke=we-Te;ie+=1,Te+=1;var ge=ue.position;ge[0]=ge[1]=ge[2]=0;for(var Ee=0;Ee<2;++Ee)for(var Le=Ee?fe:1-fe,se=0;se<2;++se)for(var X=se?ke:1-ke,K=ie+Ee,ye=Te+se,oe=Le*X,de=0;de<3;++de)ge[de]+=this._field[de].get(K,ye)*oe;for(var pe=this._pickResult.level,me=0;me<3;++me)if(pe[me]=S.le(this.contourLevels[me],ge[me]),pe[me]<0)this.contourLevels[me].length>0&&(pe[me]=0);else if(pe[me]<this.contourLevels[me].length-1){var Se=this.contourLevels[me][pe[me]],ve=this.contourLevels[me][pe[me]+1];Math.abs(Se-ge[me])>Math.abs(ve-ge[me])&&(pe[me]+=1)}for(ue.index[0]=fe<.5?ie:ie+1,ue.index[1]=ke<.5?Te:Te+1,ue.uv[0]=ee/te[0],ue.uv[1]=we/te[1],de=0;de<3;++de)ue.dataCoordinate[de]=this._field[de].get(ue.index[0],ue.index[1]);return ue},F.padField=function(Q,te){var ue=te.shape.slice(),ee=Q.shape.slice();b.assign(Q.lo(1,1).hi(ue[0],ue[1]),te),b.assign(Q.lo(1).hi(ue[0],1),te.hi(ue[0],1)),b.assign(Q.lo(1,ee[1]-1).hi(ue[0],1),te.lo(0,ue[1]-1).hi(ue[0],1)),b.assign(Q.lo(0,1).hi(1,ue[1]),te.hi(1)),b.assign(Q.lo(ee[0]-1,1).hi(1,ue[1]),te.lo(ue[0]-1)),Q.set(0,0,te.get(0,0)),Q.set(0,ee[1]-1,te.get(0,ue[1]-1)),Q.set(ee[0]-1,0,te.get(ue[0]-1,0)),Q.set(ee[0]-1,ee[1]-1,te.get(ue[0]-1,ue[1]-1))};function Z(Q,te){return Array.isArray(Q)?[te(Q[0]),te(Q[1]),te(Q[2])]:[te(Q),te(Q),te(Q)]}function re(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 $(Q){if(Array.isArray(Q)){if(Array.isArray(Q))return[re(Q[0]),re(Q[1]),re(Q[2])];var te=re(Q);return[te.slice(),te.slice(),te.slice()]}}F.update=function(Q){Q=Q||{},this.objectOffset=Q.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Q&&(this.contourWidth=Z(Q.contourWidth,Number)),"showContour"in Q&&(this.showContour=Z(Q.showContour,Boolean)),"showSurface"in Q&&(this.showSurface=!!Q.showSurface),"contourTint"in Q&&(this.contourTint=Z(Q.contourTint,Boolean)),"contourColor"in Q&&(this.contourColor=$(Q.contourColor)),"contourProject"in Q&&(this.contourProject=Z(Q.contourProject,function(Ct){return Z(Ct,Boolean)})),"surfaceProject"in Q&&(this.surfaceProject=Q.surfaceProject),"dynamicColor"in Q&&(this.dynamicColor=$(Q.dynamicColor)),"dynamicTint"in Q&&(this.dynamicTint=Z(Q.dynamicTint,Number)),"dynamicWidth"in Q&&(this.dynamicWidth=Z(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 te=Q.field||Q.coords&&Q.coords[2]||null,ue=!1;if(te||(this._field[2].shape[0]||this._field[2].shape[2]?te=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):te=this._field[2].hi(0,0)),"field"in Q||"coords"in Q){var ee=(te.shape[0]+2)*(te.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]=_(this._field[2].data,[te.shape[0]+2,te.shape[1]+2]),this.padField(this._field[2],te),this.shape=te.shape.slice();for(var ie=this.shape,fe=0;fe<2;++fe)this._field[2].size>this._field[fe].data.length&&(c.freeFloat(this._field[fe].data),this._field[fe].data=c.mallocFloat(this._field[2].size)),this._field[fe]=_(this._field[fe].data,[ie[0]+2,ie[1]+2]);if(Q.coords){var we=Q.coords;if(!Array.isArray(we)||we.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(fe=0;fe<2;++fe){var Te=we[fe];for(se=0;se<2;++se)if(Te.shape[se]!==ie[se])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[fe],Te)}}else if(Q.ticks){var ke=Q.ticks;if(!Array.isArray(ke)||ke.length!==2)throw new Error("gl-surface: invalid ticks");for(fe=0;fe<2;++fe){var ge=ke[fe];if((Array.isArray(ge)||ge.length)&&(ge=_(ge)),ge.shape[0]!==ie[fe])throw new Error("gl-surface: invalid tick length");var Ee=_(ge.data,ie);Ee.stride[fe]=ge.stride[0],Ee.stride[fe^1]=0,this.padField(this._field[fe],Ee)}}else{for(fe=0;fe<2;++fe){var Le=[0,0];Le[fe]=1,this._field[fe]=_(this._field[fe].data,[ie[0]+2,ie[1]+2],Le,0)}this._field[0].set(0,0,0);for(var se=0;se<ie[0];++se)this._field[0].set(se+1,0,se);for(this._field[0].set(ie[0]+1,0,ie[0]-1),this._field[1].set(0,0,0),se=0;se<ie[1];++se)this._field[1].set(0,se+1,se);this._field[1].set(0,ie[1]+1,ie[1]-1)}var X=this._field,K=_(c.mallocFloat(X[2].size*3*2),[3,ie[0]+2,ie[1]+2,2]);for(fe=0;fe<3;++fe)x(K.pick(fe),X[fe],"mirror");var ye=_(c.mallocFloat(X[2].size*3),[ie[0]+2,ie[1]+2,3]);for(fe=0;fe<ie[0]+2;++fe)for(se=0;se<ie[1]+2;++se){var oe=K.get(0,fe,se,0),de=K.get(0,fe,se,1),pe=K.get(1,fe,se,0),me=K.get(1,fe,se,1),Se=K.get(2,fe,se,0),ve=K.get(2,fe,se,1),he=pe*ve-me*Se,be=Se*de-ve*oe,Ae=oe*me-de*pe,Re=Math.sqrt(he*he+be*be+Ae*Ae);Re<1e-8?(Re=Math.max(Math.abs(he),Math.abs(be),Math.abs(Ae)),Re<1e-8?(Ae=1,be=he=0,Re=1):Re=1/Re):Re=1/Math.sqrt(Re),ye.set(fe,se,0,he*Re),ye.set(fe,se,1,be*Re),ye.set(fe,se,2,Ae*Re)}c.free(K.data);var Pe=[1/0,1/0,1/0],Ye=[-1/0,-1/0,-1/0],Ve=1/0,Ue=-1/0,qe=(ie[0]-1)*(ie[1]-1)*6,We=c.mallocFloat(l.nextPow2(10*qe)),Xe=0,er=0;for(fe=0;fe<ie[0]-1;++fe)e:for(se=0;se<ie[1]-1;++se){for(var nr=0;nr<2;++nr)for(var rr=0;rr<2;++rr)for(var Qe=0;Qe<3;++Qe){var Ce=this._field[Qe].get(1+fe+nr,1+se+rr);if(isNaN(Ce)||!isFinite(Ce))continue e}for(Qe=0;Qe<6;++Qe){var ze=fe+D[Qe][0],Ke=se+D[Qe][1],je=this._field[0].get(ze+1,Ke+1),wr=this._field[1].get(ze+1,Ke+1);Ce=this._field[2].get(ze+1,Ke+1),he=ye.get(ze+1,Ke+1,0),be=ye.get(ze+1,Ke+1,1),Ae=ye.get(ze+1,Ke+1,2),Q.intensity&&(Xr=Q.intensity.get(ze,Ke));var Xr=Q.intensity?Q.intensity.get(ze,Ke):Ce+this.objectOffset[2];We[Xe++]=ze,We[Xe++]=Ke,We[Xe++]=je,We[Xe++]=wr,We[Xe++]=Ce,We[Xe++]=0,We[Xe++]=Xr,We[Xe++]=he,We[Xe++]=be,We[Xe++]=Ae,Pe[0]=Math.min(Pe[0],je+this.objectOffset[0]),Pe[1]=Math.min(Pe[1],wr+this.objectOffset[1]),Pe[2]=Math.min(Pe[2],Ce+this.objectOffset[2]),Ve=Math.min(Ve,Xr),Ye[0]=Math.max(Ye[0],je+this.objectOffset[0]),Ye[1]=Math.max(Ye[1],wr+this.objectOffset[1]),Ye[2]=Math.max(Ye[2],Ce+this.objectOffset[2]),Ue=Math.max(Ue,Xr),er+=1}}for(Q.intensityBounds&&(Ve=+Q.intensityBounds[0],Ue=+Q.intensityBounds[1]),fe=6;fe<Xe;fe+=10)We[fe]=(We[fe]-Ve)/(Ue-Ve);this._vertexCount=er,this._coordinateBuffer.update(We.subarray(0,Xe)),c.freeFloat(We),c.free(ye.data),this.bounds=[Pe,Ye],this.intensity=Q.intensity||this._field[2],(this.intensityBounds[0]!==Ve||this.intensityBounds[1]!==Ue)&&(ue=!0),this.intensityBounds=[Ve,Ue]}if("levels"in Q){var Tr=Q.levels;for(Array.isArray(Tr[0])?Tr=Tr.slice():Tr=[[],[],Tr],fe=0;fe<3;++fe)Tr[fe]=Tr[fe].slice(),Tr[fe].sort(function(Ct,xi){return Ct-xi});for(fe=0;fe<3;++fe)for(se=0;se<Tr[fe].length;++se)Tr[fe][se]-=this.objectOffset[fe];e:for(fe=0;fe<3;++fe){if(Tr[fe].length!==this.contourLevels[fe].length){ue=!0;break}for(se=0;se<Tr[fe].length;++se)if(Tr[fe][se]!==this.contourLevels[fe][se]){ue=!0;break e}}this.contourLevels=Tr}if(ue){X=this._field,ie=this.shape;for(var Pr=[],at=0;at<3;++at){var Ar=this.contourLevels[at],Hr=[],ot=[],Ir=[0,0,0];for(fe=0;fe<Ar.length;++fe){var Jr=T(this._field[at],Ar[fe]);Hr.push(Pr.length/5|0),er=0;e:for(se=0;se<Jr.cells.length;++se){var Xt=Jr.cells[se];for(Qe=0;Qe<2;++Qe){var tt=Jr.positions[Xt[Qe]],Kr=tt[0],qt=Math.floor(Kr)|0,lr=Kr-qt,Dr=tt[1],Vr=Math.floor(Dr)|0,st=Dr-Vr,mt=!1;r:for(var St=0;St<3;++St){Ir[St]=0;var it=(at+St+1)%3;for(nr=0;nr<2;++nr){var vt=nr?lr:1-lr;for(ze=Math.min(Math.max(qt+nr,0),ie[0])|0,rr=0;rr<2;++rr){var Bt=rr?st:1-st;if(Ke=Math.min(Math.max(Vr+rr,0),ie[1])|0,St<2?Ce=this._field[it].get(ze,Ke):Ce=(this.intensity.get(ze,Ke)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(Ce)||isNaN(Ce)){mt=!0;break r}var Gn=vt*Bt;Ir[St]+=Gn*Ce}}}if(!mt)Pr.push(Ir[0],Ir[1],tt[0],tt[1],Ir[2]),er+=1;else{if(Qe>0){for(var Yn=0;Yn<5;++Yn)Pr.pop();er-=1}continue e}}}ot.push(er)}this._contourOffsets[at]=Hr,this._contourCounts[at]=ot}var _n=c.mallocFloat(Pr.length);for(fe=0;fe<Pr.length;++fe)_n[fe]=Pr[fe];this._contourBuffer.update(_n),c.freeFloat(_n)}},F.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)},F.highlight=function(Q){var te;if(!Q){this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],this.highlightLevel=[-1,-1,-1];return}for(te=0;te<3;++te)this.enableHighlight[te]?this.highlightLevel[te]=Q.level[te]:this.highlightLevel[te]=-1;var ue;for(this.snapToData?ue=Q.dataCoordinate:ue=Q.position,te=0;te<3;++te)ue[te]-=this.objectOffset[te];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,ie=this.shape,fe=c.mallocFloat(12*ie[0]*ie[1]),we=0;we<3;++we){if(!this.enableDynamic[we]){this.dynamicLevel[we]=NaN,this._dynamicCounts[we]=0;continue}this.dynamicLevel[we]=ue[we];var Te=(we+1)%3,ke=(we+2)%3,ge=this._field[we],Ee=this._field[Te],Le=this._field[ke],se=T(ge,ue[we]),X=se.cells,K=se.positions;for(this._dynamicOffsets[we]=ee,te=0;te<X.length;++te)for(var ye=X[te],oe=0;oe<2;++oe){var de=K[ye[oe]],pe=+de[0],me=pe|0,Se=Math.min(me+1,ie[0])|0,ve=pe-me,he=1-ve,be=+de[1],Ae=be|0,Re=Math.min(Ae+1,ie[1])|0,Pe=be-Ae,Ye=1-Pe,Ve=he*Ye,Ue=he*Pe,qe=ve*Ye,We=ve*Pe,Xe=Ve*Ee.get(me,Ae)+Ue*Ee.get(me,Re)+qe*Ee.get(Se,Ae)+We*Ee.get(Se,Re),er=Ve*Le.get(me,Ae)+Ue*Le.get(me,Re)+qe*Le.get(Se,Ae)+We*Le.get(Se,Re);if(isNaN(Xe)||isNaN(er)){oe&&(ee-=1);break}fe[2*ee+0]=Xe,fe[2*ee+1]=er,ee+=1}this._dynamicCounts[we]=ee-this._dynamicOffsets[we]}this._dynamicBuffer.update(fe.subarray(0,2*ee)),c.freeFloat(fe)}};function ae(Q){var te=Q.gl,ue=d(te),ee=y(te),ie=w(te),fe=v(te),we=u(te),Te=s(te,[{buffer:we,size:4,stride:A,offset:0},{buffer:we,size:3,stride:A,offset:16},{buffer:we,size:3,stride:A,offset:28}]),ke=u(te),ge=s(te,[{buffer:ke,size:4,stride:20,offset:0},{buffer:ke,size:1,stride:20,offset:16}]),Ee=u(te),Le=s(te,[{buffer:Ee,size:2,type:te.FLOAT}]),se=f(te,1,I,te.RGBA,te.UNSIGNED_BYTE);se.minFilter=te.LINEAR,se.magFilter=te.LINEAR;var X=new z(te,[0,0],[[0,0,0],[0,0,0]],ue,ee,we,Te,se,ie,fe,ke,ge,Ee,Le,[0,0,0]),K={levels:[[],[],[]]};for(var ye in Q)K[ye]=Q[ye];return K.colormap=K.colormap||"jet",X.update(K),X}},7766(a,o,i){"use strict";var l=i(9618),u=i(5298),s=i(1888);a.exports=v;var f=null,c=null,g=null;function b(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],g=[A.REPEAT,A.CLAMP_TO_EDGE,A.MIRRORED_REPEAT]}function h(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 _=function(A,p){u.muls(A,p,255)};function T(A,p,D){var E=A.gl,R=E.getParameter(E.MAX_TEXTURE_SIZE);if(p<0||p>R||D<0||D>R)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[p,D],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,p,D,0,A.format,A.type,null),A._mipLevels=[0],A}function m(A,p,D,E,R,I){this.gl=A,this.handle=p,this.format=R,this.type=I,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 z=this,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return z._wrapS},set:function(P){return z.wrapS=P}},{get:function(){return z._wrapT},set:function(P){return z.wrapT=P}}]),this._wrapVector=F;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return z._shape[0]},set:function(P){return z.width=P}},{get:function(){return z._shape[1]},set:function(P){return z.height=P}}]),this._shapeVector=L}var k=m.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(A){this.bind();var p=this.gl;if(this.type===p.FLOAT&&f.indexOf(A)>=0&&(p.getExtension("OES_texture_float_linear")||(A=p.NEAREST)),c.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,A),this._minFilter=A}},magFilter:{get:function(){return this._magFilter},set:function(A){this.bind();var p=this.gl;if(this.type===p.FLOAT&&f.indexOf(A)>=0&&(p.getExtension("OES_texture_float_linear")||(A=p.NEAREST)),c.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,A),this._magFilter=A}},mipSamples:{get:function(){return this._anisoSamples},set:function(A){var p=this._anisoSamples;if(this._anisoSamples=Math.max(A,1)|0,p!==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(),g.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(),g.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 p=0;p<2;++p)if(g.indexOf(A[p])<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 T(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,T(this,A,this._shape[1]),A}},height:{get:function(){return this._shape[1]},set:function(A){return A=A|0,T(this,this._shape[0],A),A}}}),k.bind=function(A){var p=this.gl;return A!==void 0&&p.activeTexture(p.TEXTURE0+(A|0)),p.bindTexture(p.TEXTURE_2D,this.handle),A!==void 0?A|0:p.getParameter(p.ACTIVE_TEXTURE)-p.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]),p=0;A>0;++p,A>>>=1)this._mipLevels.indexOf(p)<0&&this._mipLevels.push(p)},k.setPixels=function(A,p,D,E){var R=this.gl;this.bind(),Array.isArray(p)?(E=D,D=p[1]|0,p=p[0]|0):(p=p||0,D=D||0),E=E||0;var I=h(A)?A:A.raw;if(I){var z=this._mipLevels.indexOf(E)<0;z?(R.texImage2D(R.TEXTURE_2D,0,this.format,this.format,this.type,I),this._mipLevels.push(E)):R.texSubImage2D(R.TEXTURE_2D,E,p,D,this.format,this.type,I)}else if(A.shape&&A.stride&&A.data){if(A.shape.length<2||p+A.shape[1]>this._shape[1]>>>E||D+A.shape[0]>this._shape[0]>>>E||p<0||D<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");x(R,p,D,E,this.format,this.type,this._mipLevels,A)}else throw new Error("gl-texture2d: Unsupported data type")};function S(A,p){return A.length===3?p[2]===1&&p[1]===A[0]*A[2]&&p[0]===A[2]:p[0]===1&&p[1]===A[0]}function x(A,p,D,E,R,I,z,F){var L=F.dtype,P=F.shape.slice();if(P.length<2||P.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var B=0,O=0,G=S(P,F.stride.slice());L==="float32"?B=A.FLOAT:L==="float64"?(B=A.FLOAT,G=!1,L="float32"):L==="uint8"?B=A.UNSIGNED_BYTE:(B=A.UNSIGNED_BYTE,G=!1,L="uint8");var J=1;if(P.length===2)O=A.LUMINANCE,P=[P[0],P[1],1],F=l(F.data,P,[F.stride[0],F.stride[1],1],F.offset);else if(P.length===3){if(P[2]===1)O=A.ALPHA;else if(P[2]===2)O=A.LUMINANCE_ALPHA;else if(P[2]===3)O=A.RGB;else if(P[2]===4)O=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");J=P[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=F.size,V=z.indexOf(E)<0;if(V&&z.push(E),B===I&&G)F.offset===0&&F.data.length===j?V?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,I,F.data):A.texSubImage2D(A.TEXTURE_2D,E,p,D,P[0],P[1],R,I,F.data):V?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,I,F.data.subarray(F.offset,F.offset+j)):A.texSubImage2D(A.TEXTURE_2D,E,p,D,P[0],P[1],R,I,F.data.subarray(F.offset,F.offset+j));else{var q;I===A.FLOAT?q=s.mallocFloat32(j):q=s.mallocUint8(j);var Z=l(q,P,[P[2],P[2]*P[0],1]);B===A.FLOAT&&I===A.UNSIGNED_BYTE?_(Z,F):u.assign(Z,F),V?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,I,q.subarray(0,j)):A.texSubImage2D(A.TEXTURE_2D,E,p,D,P[0],P[1],R,I,q.subarray(0,j)),I===A.FLOAT?s.freeFloat32(q):s.freeUint8(q)}}function M(A){var p=A.createTexture();return A.bindTexture(A.TEXTURE_2D,p),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),p}function d(A,p,D,E,R){var I=A.getParameter(A.MAX_TEXTURE_SIZE);if(p<0||p>I||D<0||D>I)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 z=M(A);return A.texImage2D(A.TEXTURE_2D,0,E,p,D,0,E,R,null),new m(A,z,p,D,E,R)}function w(A,p,D,E,R,I){var z=M(A);return A.texImage2D(A.TEXTURE_2D,0,R,R,I,p),new m(A,z,D,E,R,I)}function y(A,p){var D=p.dtype,E=p.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 I=S(E,p.stride.slice()),z=0;D==="float32"?z=A.FLOAT:D==="float64"?(z=A.FLOAT,I=!1,D="float32"):D==="uint8"?z=A.UNSIGNED_BYTE:(z=A.UNSIGNED_BYTE,I=!1,D="uint8");var F=0;if(E.length===2)F=A.LUMINANCE,E=[E[0],E[1],1],p=l(p.data,E,[p.stride[0],p.stride[1],1],p.offset);else if(E.length===3)if(E[2]===1)F=A.ALPHA;else if(E[2]===2)F=A.LUMINANCE_ALPHA;else if(E[2]===3)F=A.RGB;else if(E[2]===4)F=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");z===A.FLOAT&&!A.getExtension("OES_texture_float")&&(z=A.UNSIGNED_BYTE,I=!1);var L,P,B=p.size;if(I)p.offset===0&&p.data.length===B?L=p.data:L=p.data.subarray(p.offset,p.offset+B);else{var O=[E[2],E[2]*E[0],1];P=s.malloc(B,D);var G=l(P,E,O,0);(D==="float32"||D==="float64")&&z===A.UNSIGNED_BYTE?_(G,p):u.assign(G,p),L=P.subarray(0,B)}var J=M(A);return A.texImage2D(A.TEXTURE_2D,0,F,E[0],E[1],0,F,z,L),I||s.free(P),new m(A,J,E[0],E[1],F,z)}function v(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||b(A),typeof arguments[1]=="number")return d(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return d(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var p=arguments[1],D=h(p)?p:p.raw;if(D)return w(A,D,p.width|0,p.height|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(p.shape&&p.data&&p.stride)return y(A,p)}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 g=c.buffer,b=c.size||4,h=c.type||i.FLOAT,_=!!c.normalized,T=c.stride||0,m=c.offset||0;g.bind(),i.enableVertexAttribArray(f),i.vertexAttribPointer(f,b,h,_,T,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,g){this._elements=c,this._attributes=f,this._elementsType=g||this.gl.UNSIGNED_SHORT},u.prototype.dispose=function(){},u.prototype.unbind=function(){},u.prototype.draw=function(f,c,g){g=g||0;var b=this.gl;this._elements?b.drawElements(f,c,this._elementsType,g):b.drawArrays(f,g,c)};function s(f){return new u(f)}a.exports=s},7518(a,o,i){"use strict";var l=i(1433);function u(c,g,b,h,_,T){this.location=c,this.dimension=g,this.a=b,this.b=h,this.c=_,this.d=T}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,g,b){this.gl=c,this._ext=g,this.handle=b,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,g,b){if(this.bind(),l(this.gl,g,c),this.unbind(),this._attribs.length=0,c)for(var h=0;h<c.length;++h){var _=c[h];typeof _=="number"?this._attribs.push(new u(h,1,_)):Array.isArray(_)&&this._attribs.push(new u(h,_.length,_[0],_[1],_[2],_[3]))}this._useElements=!!g,this._elementsType=b||this.gl.UNSIGNED_SHORT},s.prototype.draw=function(c,g,b){b=b||0;var h=this.gl;this._useElements?h.drawElements(c,g,this._elementsType,b):h.drawArrays(c,b,g)};function f(c,g){return new s(c,g,g.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,g,b,h){var _=c.createVertexArray?new s(c):c.getExtension("OES_vertex_array_object"),T;return _?T=l(c,_):T=u(c),T.update(g,b,h),T}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,g){var b=l(c[0],c[1],c[2]),h=l(g[0],g[1],g[2]);u(b,b),u(h,h);var _=s(b,h);return _>1?0:Math.acos(_)}},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],g=u[0],b=u[1],h=u[2];return i[0]=f*h-c*b,i[1]=c*g-s*h,i[2]=s*b-f*g,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],g=s[1],b=s[2],h=f[0],_=f[1],T=f[2];return Math.abs(c-h)<=l*Math.max(1,Math.abs(c),Math.abs(h))&&Math.abs(g-_)<=l*Math.max(1,Math.abs(g),Math.abs(_))&&Math.abs(b-T)<=l*Math.max(1,Math.abs(b),Math.abs(T))}},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,g,b,h){var _,T;for(f||(f=3),c||(c=0),g?T=Math.min(g*f+c,s.length):T=s.length,_=c;_<T;_+=f)l[0]=s[_],l[1]=s[_+1],l[2]=s[_+2],b(l,l,h),s[_]=l[0],s[_+1]=l[1],s[_+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],g=l[2];return i[0]=f+s*(u[0]-f),i[1]=c+s*(u[1]-c),i[2]=g+s*(u[2]-g),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],g=l[1]-f,b=l[2]-c,h=Math.sin(s),_=Math.cos(s);return i[0]=l[0],i[1]=f+g*_-b*h,i[2]=c+g*h+b*_,i}},109(a){a.exports=o;function o(i,l,u,s){var f=u[0],c=u[2],g=l[0]-f,b=l[2]-c,h=Math.sin(s),_=Math.cos(s);return i[0]=f+b*h+g*_,i[1]=l[1],i[2]=c+b*_-g*h,i}},8692(a){a.exports=o;function o(i,l,u,s){var f=u[0],c=u[1],g=l[0]-f,b=l[1]-c,h=Math.sin(s),_=Math.cos(s);return i[0]=f+g*_-b*h,i[1]=c+g*h+b*_,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],g=u[3]*s+u[7]*f+u[11]*c+u[15];return g=g||1,i[0]=(u[0]*s+u[4]*f+u[8]*c+u[12])/g,i[1]=(u[1]*s+u[5]*f+u[9]*c+u[13])/g,i[2]=(u[2]*s+u[6]*f+u[10]*c+u[14])/g,i}},264(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],g=u[0],b=u[1],h=u[2],_=u[3],T=b*c-h*f,m=h*s-g*c,k=g*f-b*s;return T*=2,m*=2,k*=2,i[0]=s+_*T+b*k-h*m,i[1]=f+_*m+h*T-g*k,i[2]=c+_*k+g*m-b*T,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],g=l[2],b=l[3];return i[0]=f+s*(u[0]-f),i[1]=c+s*(u[1]-c),i[2]=g+s*(u[2]-g),i[3]=b+s*(u[3]-b),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],g=u*u+s*s+f*f+c*c;return g>0&&(g=1/Math.sqrt(g),i[0]=u*g,i[1]=s*g,i[2]=f*g,i[3]=c*g),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],g=l[3];return i[0]=u[0]*s+u[4]*f+u[8]*c+u[12]*g,i[1]=u[1]*s+u[5]*f+u[9]*c+u[13]*g,i[2]=u[2]*s+u[6]*f+u[10]*c+u[14]*g,i[3]=u[3]*s+u[7]*f+u[11]*c+u[15]*g,i}},4041(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],g=u[0],b=u[1],h=u[2],_=u[3],T=_*s+b*c-h*f,m=_*f+h*s-g*c,k=_*c+g*f-b*s,S=-g*s-b*f-h*c;return i[0]=T*_+S*-g+m*-h-k*-b,i[1]=m*_+S*-b+k*-g-T*-h,i[2]=k*_+S*-h+T*-b-m*-g,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),g=0;g<c.length;g++){var b=c[g];if(b.type==="preprocessor"){var h=b.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(h&&h[2]){var _=h[1],T=h[2];return(_?u(T):T).trim()}}}}},5874(a,o,i){a.exports=p;var l=i(620),u=i(7827),s=i(6852),f=i(7932),c=i(3508),g=999,b=9999,h=0,_=1,T=2,m=3,k=4,S=5,x=6,M=7,d=8,w=9,y=10,v=11,A=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"];function p(D){var E=0,R=0,I=g,z,F,L=[],P=[],B=0,O=0,G=1,J=0,j=0,V=!1,q=!1,Z="",re;D=D||{};var $=s,ae=l;D.version==="300 es"&&($=c,ae=f);for(var Q={},te={},E=0;E<$.length;E++)Q[$[E]]=!0;for(var E=0;E<ae.length;E++)te[ae[E]]=!0;return function(oe){return P=[],oe!==null?ee(oe):ie()};function ue(oe){oe.length&&P.push({type:A[I],data:oe,position:j,line:G,column:J})}function ee(oe){E=0,oe.toString&&(oe=oe.toString()),Z+=oe.replace(/\r\n/g,`
`),re=Z.length;for(var de;z=Z[E],E<re;){switch(de=E,I){case h:E=ge();break;case _:E=ke();break;case T:E=Te();break;case m:E=Ee();break;case k:E=X();break;case v:E=se();break;case S:E=K();break;case b:E=ye();break;case w:E=we();break;case g:E=fe();break}de!==E&&(Z[de]===`
`?(J=0,++G):++J)}return R+=E,Z=Z.slice(E),P}function ie(oe){return L.length&&ue(L.join("")),I=y,ue("(eof)"),P}function fe(){return L=L.length?[]:L,F==="/"&&z==="*"?(j=R+E-1,I=h,F=z,E+1):F==="/"&&z==="/"?(j=R+E-1,I=_,F=z,E+1):z==="#"?(I=T,j=R+E,E):/\s/.test(z)?(I=w,j=R+E,E):(V=/\d/.test(z),q=/[^\w_]/.test(z),j=R+E,I=V?k:q?m:b,E)}function we(){return/[^\s]/g.test(z)?(ue(L.join("")),I=g,E):(L.push(z),F=z,E+1)}function Te(){return(z==="\r"||z===`
`)&&F!=="\\"?(ue(L.join("")),I=g,E):(L.push(z),F=z,E+1)}function ke(){return Te()}function ge(){return z==="/"&&F==="*"?(L.push(z),ue(L.join("")),I=g,E+1):(L.push(z),F=z,E+1)}function Ee(){if(F==="."&&/\d/.test(z))return I=S,E;if(F==="/"&&z==="*")return I=h,E;if(F==="/"&&z==="/")return I=_,E;if(z==="."&&L.length){for(;Le(L););return I=S,E}if(z===";"||z===")"||z==="("){if(L.length)for(;Le(L););return ue(z),I=g,E+1}var oe=L.length===2&&z!=="=";if(/[\w_\d\s]/.test(z)||oe){for(;Le(L););return I=g,E}return L.push(z),F=z,E+1}function Le(oe){var de=0,pe,me;do{if(pe=u.indexOf(oe.slice(0,oe.length+de).join("")),me=u[pe],pe===-1){if(de--+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 se(){return/[^a-fA-F0-9]/.test(z)?(ue(L.join("")),I=g,E):(L.push(z),F=z,E+1)}function X(){return z==="."||/[eE]/.test(z)?(L.push(z),I=S,F=z,E+1):z==="x"&&L.length===1&&L[0]==="0"?(I=v,L.push(z),F=z,E+1):/[^\d]/.test(z)?(ue(L.join("")),I=g,E):(L.push(z),F=z,E+1)}function K(){return z==="f"&&(L.push(z),F=z,E+=1),/[eE]/.test(z)||(z==="-"||z==="+")&&/[eE]/.test(F)?(L.push(z),F=z,E+1):/[^\d]/.test(z)?(ue(L.join("")),I=g,E):(L.push(z),F=z,E+1)}function ye(){if(/[^\d\w_]/.test(z)){var oe=L.join("");return te[oe]?I=d:Q[oe]?I=M:I=x,ue(L.join("")),I=g,E}return L.push(z),F=z,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),g=[];return g=g.concat(c(s)),g=g.concat(c(null)),g}},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,g,b=f*8-s-1,h=(1<<b)-1,_=h>>1,T=-7,m=u?f-1:0,k=u?-1:1,S=i[l+m];for(m+=k,c=S&(1<<-T)-1,S>>=-T,T+=b;T>0;c=c*256+i[l+m],m+=k,T-=8);for(g=c&(1<<-T)-1,c>>=-T,T+=s;T>0;g=g*256+i[l+m],m+=k,T-=8);if(c===0)c=1-_;else{if(c===h)return g?NaN:(S?-1:1)*(1/0);g=g+Math.pow(2,s),c=c-_}return(S?-1:1)*g*Math.pow(2,c-s)},o.write=function(i,l,u,s,f,c){var g,b,h,_=c*8-f-1,T=(1<<_)-1,m=T>>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=s?0:c-1,x=s?1:-1,M=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(b=isNaN(l)?1:0,g=T):(g=Math.floor(Math.log(l)/Math.LN2),l*(h=Math.pow(2,-g))<1&&(g--,h*=2),g+m>=1?l+=k/h:l+=k*Math.pow(2,1-m),l*h>=2&&(g++,h/=2),g+m>=T?(b=0,g=T):g+m>=1?(b=(l*h-1)*Math.pow(2,f),g=g+m):(b=l*Math.pow(2,m-1)*Math.pow(2,f),g=0));f>=8;i[u+S]=b&255,S+=x,b/=256,f-=8);for(g=g<<f|b,_+=f;_>0;i[u+S]=g&255,S+=x,g/=256,_-=8);i[u+S-x]|=M*128}},8954(a,o,i){"use strict";a.exports=m;var l=i(3250),u=i(6803).Fw;function s(k,S,x){this.vertices=k,this.adjacent=S,this.boundary=x,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,x){this.vertices=k,this.cell=S,this.index=x}function c(k,S){return u(k.vertices,S.vertices)}function g(k){return function(){var S=this.tuple;return k.apply(this,S)}}function b(k){var S=l[k+1];return S||(S=l),g(S)}var h=[];function _(k,S,x){this.dimension=k,this.vertices=S,this.simplices=x,this.interior=x.filter(function(w){return!w.boundary}),this.tuple=new Array(k+1);for(var M=0;M<=k;++M)this.tuple[M]=this.vertices[M];var d=h[k];d||(d=h[k]=b(k)),this.orient=d}var T=_.prototype;T.handleBoundaryDegeneracy=function(k,S){var x=this.dimension,M=this.vertices.length-1,d=this.tuple,w=this.vertices,y=[k];for(k.lastVisited=-M;y.length>0;){k=y.pop();for(var v=k.adjacent,A=0;A<=x;++A){var p=v[A];if(!(!p.boundary||p.lastVisited<=-M)){for(var D=p.vertices,E=0;E<=x;++E){var R=D[E];R<0?d[E]=S:d[E]=w[R]}var I=this.orient();if(I>0)return p;p.lastVisited=-M,I===0&&y.push(p)}}}return null},T.walk=function(k,S){var x=this.vertices.length-1,M=this.dimension,d=this.vertices,w=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,p=v.adjacent,D=0;D<=M;++D)w[D]=d[A[D]];v.lastVisited=x;for(var D=0;D<=M;++D){var E=p[D];if(!(E.lastVisited>=x)){var R=w[D];w[D]=k;var I=this.orient();if(w[D]=R,I<0){v=E;continue e}else E.boundary?E.lastVisited=-x:E.lastVisited=x}}return}return v},T.addPeaks=function(k,S){var x=this.vertices.length-1,M=this.dimension,d=this.vertices,w=this.tuple,y=this.interior,v=this.simplices,A=[S];S.lastVisited=x,S.vertices[S.vertices.indexOf(-1)]=x,S.boundary=!1,y.push(S);for(var p=[];A.length>0;){var S=A.pop(),D=S.vertices,E=S.adjacent,R=D.indexOf(x);if(!(R<0)){for(var I=0;I<=M;++I)if(I!==R){var z=E[I];if(!(!z.boundary||z.lastVisited>=x)){var F=z.vertices;if(z.lastVisited!==-x){for(var L=0,P=0;P<=M;++P)F[P]<0?(L=P,w[P]=k):w[P]=d[F[P]];var B=this.orient();if(B>0){F[L]=x,z.boundary=!1,y.push(z),A.push(z),z.lastVisited=x;continue}else z.lastVisited=-x}var O=z.adjacent,G=D.slice(),J=E.slice(),j=new s(G,J,!0);v.push(j);var V=O.indexOf(S);if(!(V<0)){O[V]=j,J[R]=z,G[I]=-1,J[I]=S,E[I]=j,j.flip();for(var P=0;P<=M;++P){var q=G[P];if(!(q<0||q===x)){for(var Z=new Array(M-1),re=0,$=0;$<=M;++$){var ae=G[$];ae<0||$===P||(Z[re++]=ae)}p.push(new f(Z,j,P))}}}}}}}p.sort(c);for(var I=0;I+1<p.length;I+=2){var Q=p[I],te=p[I+1],ue=Q.index,ee=te.index;ue<0||ee<0||(Q.cell.adjacent[Q.index]=te.cell,te.cell.adjacent[te.index]=Q.cell)}},T.insert=function(k,S){var x=this.vertices;x.push(k);var M=this.walk(k,S);if(M){for(var d=this.dimension,w=this.tuple,y=0;y<=d;++y){var v=M.vertices[y];v<0?w[y]=k:w[y]=x[v]}var A=this.orient(w);A<0||A===0&&(M=this.handleBoundaryDegeneracy(M,k),!M)||this.addPeaks(k,M)}},T.boundary=function(){for(var k=this.dimension,S=[],x=this.simplices,M=x.length,d=0;d<M;++d){var w=x[d];if(w.boundary){for(var y=new Array(k),v=w.vertices,A=0,p=0,D=0;D<=k;++D)v[D]>=0?y[A++]=v[D]:p=D&1;if(p===(k&1)){var E=y[0];y[0]=y[1],y[1]=E}S.push(y)}}return S};function m(k,S){var x=k.length;if(x===0)throw new Error("Must have at least d+1 points");var M=k[0].length;if(x<=M)throw new Error("Must input at least d+1 points");var d=k.slice(0,M+1),w=l.apply(void 0,d);if(w===0)throw new Error("Input not in general position");for(var y=new Array(M+1),v=0;v<=M;++v)y[v]=v;w<0&&(y[0]=1,y[1]=0);for(var A=new s(y,new Array(M+1),!1),p=A.adjacent,D=new Array(M+2),v=0;v<=M;++v){for(var E=y.slice(),R=0;R<=M;++R)R===v&&(E[R]=-1);var I=E[0];E[0]=E[1],E[1]=I;var z=new s(E,new Array(M+1),!0);p[v]=z,D[v]=z}D[M+1]=A;for(var v=0;v<=M;++v)for(var E=p[v].vertices,F=p[v].adjacent,R=0;R<=M;++R){var L=E[R];if(L<0){F[R]=A;continue}for(var P=0;P<=M;++P)p[P].vertices.indexOf(L)<0&&(F[R]=p[P])}for(var B=new _(M,d,D),O=!!S,v=M+1;v<x;++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(p,D,E,R,I){this.mid=p,this.left=D,this.right=E,this.leftPoints=R,this.rightPoints=I,this.count=(D?D.count:0)+(E?E.count:0)+R.length}var g=c.prototype;function b(p,D){p.mid=D.mid,p.left=D.left,p.right=D.right,p.leftPoints=D.leftPoints,p.rightPoints=D.rightPoints,p.count=D.count}function h(p,D){var E=w(D);p.mid=E.mid,p.left=E.left,p.right=E.right,p.leftPoints=E.leftPoints,p.rightPoints=E.rightPoints,p.count=E.count}function _(p,D){var E=p.intervals([]);E.push(D),h(p,E)}function T(p,D){var E=p.intervals([]),R=E.indexOf(D);return R<0?u:(E.splice(R,1),h(p,E),s)}g.intervals=function(p){return p.push.apply(p,this.leftPoints),this.left&&this.left.intervals(p),this.right&&this.right.intervals(p),p},g.insert=function(p){var D=this.count-this.leftPoints.length;if(this.count+=1,p[1]<this.mid)this.left?4*(this.left.count+1)>3*(D+1)?_(this,p):this.left.insert(p):this.left=w([p]);else if(p[0]>this.mid)this.right?4*(this.right.count+1)>3*(D+1)?_(this,p):this.right.insert(p):this.right=w([p]);else{var E=l.ge(this.leftPoints,p,M),R=l.ge(this.rightPoints,p,d);this.leftPoints.splice(E,0,p),this.rightPoints.splice(R,0,p)}},g.remove=function(p){var D=this.count-this.leftPoints;if(p[1]<this.mid){if(!this.left)return u;var E=this.right?this.right.count:0;if(4*E>3*(D-1))return T(this,p);var R=this.left.remove(p);return R===f?(this.left=null,this.count-=1,s):(R===s&&(this.count-=1),R)}else if(p[0]>this.mid){if(!this.right)return u;var I=this.left?this.left.count:0;if(4*I>3*(D-1))return T(this,p);var R=this.right.remove(p);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]===p?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===p){if(this.left&&this.right){for(var z=this,F=this.left;F.right;)z=F,F=F.right;if(z===this)F.right=this.right;else{var L=this.left,R=this.right;z.count-=F.count,z.right=F.left,F.left=L,F.right=R}b(this,F),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?b(this,this.left):b(this,this.right);return s}for(var L=l.ge(this.leftPoints,p,M);L<this.leftPoints.length&&this.leftPoints[L][0]===p[0];++L)if(this.leftPoints[L]===p){this.count-=1,this.leftPoints.splice(L,1);for(var R=l.ge(this.rightPoints,p,d);R<this.rightPoints.length&&this.rightPoints[R][1]===p[1];++R)if(this.rightPoints[R]===p)return this.rightPoints.splice(R,1),s}return u}};function m(p,D,E){for(var R=0;R<p.length&&p[R][0]<=D;++R){var I=E(p[R]);if(I)return I}}function k(p,D,E){for(var R=p.length-1;R>=0&&p[R][1]>=D;--R){var I=E(p[R]);if(I)return I}}function S(p,D){for(var E=0;E<p.length;++E){var R=D(p[E]);if(R)return R}}g.queryPoint=function(p,D){if(p<this.mid){if(this.left){var E=this.left.queryPoint(p,D);if(E)return E}return m(this.leftPoints,p,D)}else if(p>this.mid){if(this.right){var E=this.right.queryPoint(p,D);if(E)return E}return k(this.rightPoints,p,D)}else return S(this.leftPoints,D)},g.queryInterval=function(p,D,E){if(p<this.mid&&this.left){var R=this.left.queryInterval(p,D,E);if(R)return R}if(D>this.mid&&this.right){var R=this.right.queryInterval(p,D,E);if(R)return R}return D<this.mid?m(this.leftPoints,D,E):p>this.mid?k(this.rightPoints,p,E):S(this.leftPoints,E)};function x(p,D){return p-D}function M(p,D){var E=p[0]-D[0];return E||p[1]-D[1]}function d(p,D){var E=p[1]-D[1];return E||p[0]-D[0]}function w(p){if(p.length===0)return null;for(var D=[],E=0;E<p.length;++E)D.push(p[E][0],p[E][1]);D.sort(x);for(var R=D[D.length>>1],I=[],z=[],F=[],E=0;E<p.length;++E){var L=p[E];L[1]<R?I.push(L):R<L[0]?z.push(L):F.push(L)}var P=F,B=F.slice();return P.sort(M),B.sort(d),new c(R,w(I),w(z),P,B)}function y(p){this.root=p}var v=y.prototype;v.insert=function(p){this.root?this.root.insert(p):this.root=new c(p[0],null,null,[p],[p])},v.remove=function(p){if(this.root){var D=this.root.remove(p);return D===f&&(this.root=null),D!==u}return!1},v.queryPoint=function(p,D){if(this.root)return this.root.queryPoint(p,D)},v.queryInterval=function(p,D,E){if(p<=D&&this.root)return this.root.queryInterval(p,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(p){return!p||p.length===0?new y(null):new y(w(p))}},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),g=i(5665),b={length:i(1387),normalize:i(3536),dot:i(244),cross:i(5911)},h=u(),_=u(),T=[0,0,0,0],m=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];a.exports=function(w,y,v,A,p,D){if(y||(y=[0,0,0]),v||(v=[0,0,0]),A||(A=[0,0,0]),p||(p=[0,0,0,1]),D||(D=[0,0,0,1]),!l(h,w)||(s(_,h),_[3]=0,_[7]=0,_[11]=0,_[15]=1,Math.abs(f(_)<1e-8)))return!1;var E=h[3],R=h[7],I=h[11],z=h[12],F=h[13],L=h[14],P=h[15];if(E!==0||R!==0||I!==0){T[0]=E,T[1]=R,T[2]=I,T[3]=P;var B=c(_,_);if(!B)return!1;g(_,_),S(p,T,_)}else p[0]=p[1]=p[2]=0,p[3]=1;if(y[0]=z,y[1]=F,y[2]=L,x(m,h),v[0]=b.length(m[0]),b.normalize(m[0],m[0]),A[0]=b.dot(m[0],m[1]),M(m[1],m[1],m[0],1,-A[0]),v[1]=b.length(m[1]),b.normalize(m[1],m[1]),A[0]/=v[1],A[1]=b.dot(m[0],m[2]),M(m[2],m[2],m[0],1,-A[1]),A[2]=b.dot(m[1],m[2]),M(m[2],m[2],m[1],1,-A[2]),v[2]=b.length(m[2]),b.normalize(m[2],m[2]),A[1]/=v[2],A[2]/=v[2],b.cross(k,m[1],m[2]),b.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(d,w,y){var v=w[0],A=w[1],p=w[2],D=w[3];return d[0]=y[0]*v+y[4]*A+y[8]*p+y[12]*D,d[1]=y[1]*v+y[5]*A+y[9]*p+y[13]*D,d[2]=y[2]*v+y[6]*A+y[10]*p+y[14]*D,d[3]=y[3]*v+y[7]*A+y[11]*p+y[15]*D,d}function x(d,w){d[0][0]=w[0],d[0][1]=w[1],d[0][2]=w[2],d[1][0]=w[4],d[1][1]=w[5],d[1][2]=w[6],d[2][0]=w[8],d[2][1]=w[9],d[2][2]=w[10]}function M(d,w,y,v,A){d[0]=w[0]*v+y[0]*A,d[1]=w[1]*v+y[1]*A,d[2]=w[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),g=T(),b=T(),h=T();a.exports=_;function _(S,x,M,d){if(f(x)===0||f(M)===0)return!1;var w=s(x,g.translate,g.scale,g.skew,g.perspective,g.quaternion),y=s(M,b.translate,b.scale,b.skew,b.perspective,b.quaternion);return!w||!y?!1:(l(h.translate,g.translate,b.translate,d),l(h.skew,g.skew,b.skew,d),l(h.scale,g.scale,b.scale,d),l(h.perspective,g.perspective,b.perspective,d),c(h.quaternion,g.quaternion,b.quaternion,d),u(S,h.translate,h.scale,h.skew,h.perspective,h.quaternion),!0)}function T(){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,g,b,h,_,T){return l.identity(c),l.fromRotationTranslation(c,T,g),c[3]=_[0],c[7]=_[1],c[11]=_[2],c[15]=_[3],l.identity(s),h[2]!==0&&(s[9]=h[2],l.multiply(c,c,s)),h[1]!==0&&(s[9]=0,s[8]=h[1],l.multiply(c,c,s)),h[0]!==0&&(s[8]=0,s[4]=h[0],l.multiply(c,c,s)),l.scale(c,c,b),c}},1811(a,o,i){"use strict";var l=i(2478),u=i(7442),s=i(7608),f=i(5567),c=i(2408),g=i(7089),b=i(6582),h=i(7656),_=i(2504),T=i(3536),m=[0,0,0];a.exports=M;function k(d){this._components=d.slice(),this._time=[0],this.prevMatrix=d.slice(),this.nextMatrix=d.slice(),this.computedMatrix=d.slice(),this.computedInverse=d.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(d){var w=this._time,y=l.le(w,d),v=this.computedMatrix;if(!(y<0)){var A=this._components;if(y===w.length-1)for(var p=16*y,D=0;D<16;++D)v[D]=A[p++];else{for(var E=w[y+1]-w[y],p=16*y,R=this.prevMatrix,I=!0,D=0;D<16;++D)R[D]=A[p++];for(var z=this.nextMatrix,D=0;D<16;++D)z[D]=A[p++],I=I&&R[D]===z[D];if(E<1e-6||I)for(var D=0;D<16;++D)v[D]=R[D];else u(v,R,z,(d-w[y])/E)}var F=this.computedUp;F[0]=v[1],F[1]=v[5],F[2]=v[9],T(F,F);var L=this.computedInverse;s(L,v);var P=this.computedEye,B=L[15];P[0]=L[12]/B,P[1]=L[13]/B,P[2]=L[14]/B;for(var O=this.computedCenter,G=Math.exp(this.computedRadius[0]),D=0;D<3;++D)O[D]=P[D]-v[2+4*D]*G}},S.idle=function(d){if(!(d<this.lastT())){for(var w=this._components,y=w.length-16,v=0;v<16;++v)w.push(w[y++]);this._time.push(d)}},S.flush=function(d){var w=l.gt(this._time,d)-2;w<0||(this._time.splice(0,w),this._components.splice(0,16*w))},S.lastT=function(){return this._time[this._time.length-1]},S.lookAt=function(d,w,y,v){this.recalcMatrix(d),w=w||this.computedEye,y=y||m,v=v||this.computedUp,this.setMatrix(d,b(this.computedMatrix,w,y,v));for(var A=0,p=0;p<3;++p)A+=Math.pow(y[p]-w[p],2);A=Math.log(Math.sqrt(A)),this.computedRadius[0]=A},S.rotate=function(d,w,y,v){this.recalcMatrix(d);var A=this.computedInverse;w&&c(A,A,w),y&&f(A,A,y),v&&g(A,A,v),this.setMatrix(d,s(this.computedMatrix,A))};var x=[0,0,0];S.pan=function(d,w,y,v){x[0]=-(w||0),x[1]=-(y||0),x[2]=-(v||0),this.recalcMatrix(d);var A=this.computedInverse;h(A,A,x),this.setMatrix(d,s(A,A))},S.translate=function(d,w,y,v){x[0]=w||0,x[1]=y||0,x[2]=v||0,this.recalcMatrix(d);var A=this.computedMatrix;h(A,A,x),this.setMatrix(d,A)},S.setMatrix=function(d,w){if(!(d<this.lastT())){this._time.push(d);for(var y=0;y<16;++y)this._components.push(w[y])}},S.setDistance=function(d,w){this.computedRadius[0]=w},S.setDistanceLimits=function(d,w){var y=this._limits;y[0]=d,y[1]=w},S.getDistanceLimits=function(d){var w=this._limits;return d?(d[0]=w[0],d[1]=w[1],d):w};function M(d){d=d||{};var w=d.matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return new k(w)}},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 g=new Array(f),c=0;c<f;++c)g[c]=c;g.sort(function(d,w){var y=s[d][0]-s[w][0];return y||s[d][1]-s[w][1]});for(var b=[g[0],g[1]],h=[g[0],g[1]],c=2;c<f;++c){for(var _=g[c],T=s[_],m=b.length;m>1&&l(s[b[m-2]],s[b[m-1]],T)<=0;)m-=1,b.pop();for(b.push(_),m=h.length;m>1&&l(s[h[m-2]],s[h[m-1]],T)>=0;)m-=1,h.pop();h.push(_)}for(var k=new Array(h.length+b.length-2),S=0,c=0,x=b.length;c<x;++c)k[S++]=b[c];for(var M=h.length-2;M>0;--M)k[S++]=h[M];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,g=0,b=0,h={shift:!1,alt:!1,control:!1,meta:!1},_=!1;function T(p){var D=!1;return"altKey"in p&&(D=D||p.altKey!==h.alt,h.alt=!!p.altKey),"shiftKey"in p&&(D=D||p.shiftKey!==h.shift,h.shift=!!p.shiftKey),"ctrlKey"in p&&(D=D||p.ctrlKey!==h.control,h.control=!!p.ctrlKey),"metaKey"in p&&(D=D||p.metaKey!==h.meta,h.meta=!!p.metaKey),D}function m(p,D){var E=l.x(D),R=l.y(D);"buttons"in D&&(p=D.buttons|0),(p!==c||E!==g||R!==b||T(D))&&(c=p|0,g=E||0,b=R||0,f&&f(c,g,b,h))}function k(p){m(0,p)}function S(){(c||g||b||h.shift||h.alt||h.meta||h.control)&&(g=b=0,c=0,h.shift=h.alt=h.control=h.meta=!1,f&&f(0,0,0,h))}function x(p){T(p)&&f&&f(c,g,b,h)}function M(p){l.buttons(p)===0?m(0,p):m(c,p)}function d(p){m(c|l.buttons(p),p)}function w(p){m(c&~l.buttons(p),p)}function y(){_||(_=!0,s.addEventListener("mousemove",M),s.addEventListener("mousedown",d),s.addEventListener("mouseup",w),s.addEventListener("mouseleave",k),s.addEventListener("mouseenter",k),s.addEventListener("mouseout",k),s.addEventListener("mouseover",k),s.addEventListener("blur",S),s.addEventListener("keyup",x),s.addEventListener("keydown",x),s.addEventListener("keypress",x),s!==window&&(window.addEventListener("blur",S),window.addEventListener("keyup",x),window.addEventListener("keydown",x),window.addEventListener("keypress",x)))}function v(){_&&(_=!1,s.removeEventListener("mousemove",M),s.removeEventListener("mousedown",d),s.removeEventListener("mouseup",w),s.removeEventListener("mouseleave",k),s.removeEventListener("mouseenter",k),s.removeEventListener("mouseout",k),s.removeEventListener("mouseover",k),s.removeEventListener("blur",S),s.removeEventListener("keyup",x),s.removeEventListener("keydown",x),s.removeEventListener("keypress",x),s!==window&&(window.removeEventListener("blur",S),window.removeEventListener("keyup",x),window.removeEventListener("keydown",x),window.removeEventListener("keypress",x)))}y();var A={element:s};return Object.defineProperties(A,{enabled:{get:function(){return _},set:function(p){p?y():v()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return g},enumerable:!0},y:{get:function(){return b},enumerable:!0},mods:{get:function(){return h},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,g=u.clientY||0,b=l(s);return f[0]=c-b.left,f[1]=g-b.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),g=c.getBoundingClientRect();return f.clientX-g.left}return 0}o.x=u;function s(f){if(typeof f=="object"){if("offsetY"in f)return f.offsetY;var c=l(f),g=c.getBoundingClientRect();return f.clientY-g.top}return 0}o.y=s},2288(a,o,i){"use strict";var l=i(3202);a.exports=c;var u=96;function s(g,b){var h=l(getComputedStyle(g).getPropertyValue(b));return h[0]*c(h[1],g)}function f(g,b){var h=document.createElement("div");h.style["font-size"]="128"+g,b.appendChild(h);var _=s(h,"font-size")/128;return b.removeChild(h),_}function c(g,b){switch(b=b||document.body,g=(g||"px").trim().toLowerCase(),(b===window||b===document)&&(b=document.body),g){case"%":return b.clientHeight/100;case"ch":case"ex":return f(g,b);case"em":return s(b,"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 g=l("ex",s),b=function(h){c&&h.preventDefault();var _=h.deltaX||0,T=h.deltaY||0,m=h.deltaZ||0,k=h.deltaMode,S=1;switch(k){case 1:S=g;break;case 2:S=window.innerHeight;break}if(_*=S,T*=S,m*=S,_||T||m)return f(_,T,m,h)};return s.addEventListener("wheel",b),b}},2640(a,o,i){"use strict";var l=i(1888);a.exports=f;var u={"false,0,1":function(g,b,h,_,T){return function(k,S,x,M){var d=k.shape[0]|0,w=k.shape[1]|0,y=k.data,v=k.offset|0,A=k.stride[0]|0,p=k.stride[1]|0,D=v,E,R=-A|0,I=0,z=-p|0,F=0,L=-A-p|0,P=0,B=A|0,O=p-A*d|0,G=0,J=0,j=0,V=2*d|0,q=_(V),Z=_(V),re=0,$=0,ae=-1,Q=-1,te=0,ue=-d|0,ee=d|0,ie=0,fe=-d-1|0,we=d-1|0,Te=0,ke=0,ge=0;for(G=0;G<d;++G)q[re++]=h(y[D],S,x,M),D+=B;if(D+=O,w>0){if(J=1,q[re++]=h(y[D],S,x,M),D+=B,d>0)for(G=1,E=y[D],$=q[re]=h(E,S,x,M),te=q[re+ae],ie=q[re+ue],Te=q[re+fe],($!==te||$!==ie||$!==Te)&&(I=y[D+R],F=y[D+z],P=y[D+L],g(G,J,E,I,F,P,$,te,ie,Te,S,x,M),ke=Z[re]=j++),re+=1,D+=B,G=2;G<d;++G)E=y[D],$=q[re]=h(E,S,x,M),te=q[re+ae],ie=q[re+ue],Te=q[re+fe],($!==te||$!==ie||$!==Te)&&(I=y[D+R],F=y[D+z],P=y[D+L],g(G,J,E,I,F,P,$,te,ie,Te,S,x,M),ke=Z[re]=j++,Te!==te&&b(Z[re+ae],ke,P,I,Te,te,S,x,M)),re+=1,D+=B;for(D+=O,re=0,ge=ae,ae=Q,Q=ge,ge=ue,ue=ee,ee=ge,ge=fe,fe=we,we=ge,J=2;J<w;++J){if(q[re++]=h(y[D],S,x,M),D+=B,d>0)for(G=1,E=y[D],$=q[re]=h(E,S,x,M),te=q[re+ae],ie=q[re+ue],Te=q[re+fe],($!==te||$!==ie||$!==Te)&&(I=y[D+R],F=y[D+z],P=y[D+L],g(G,J,E,I,F,P,$,te,ie,Te,S,x,M),ke=Z[re]=j++,Te!==ie&&b(Z[re+ue],ke,F,P,ie,Te,S,x,M)),re+=1,D+=B,G=2;G<d;++G)E=y[D],$=q[re]=h(E,S,x,M),te=q[re+ae],ie=q[re+ue],Te=q[re+fe],($!==te||$!==ie||$!==Te)&&(I=y[D+R],F=y[D+z],P=y[D+L],g(G,J,E,I,F,P,$,te,ie,Te,S,x,M),ke=Z[re]=j++,Te!==ie&&b(Z[re+ue],ke,F,P,ie,Te,S,x,M),Te!==te&&b(Z[re+ae],ke,P,I,Te,te,S,x,M)),re+=1,D+=B;J&1&&(re=0),ge=ae,ae=Q,Q=ge,ge=ue,ue=ee,ee=ge,ge=fe,fe=we,we=ge,D+=O}}T(Z),T(q)}},"false,1,0":function(g,b,h,_,T){return function(k,S,x,M){var d=k.shape[0]|0,w=k.shape[1]|0,y=k.data,v=k.offset|0,A=k.stride[0]|0,p=k.stride[1]|0,D=v,E,R=-A|0,I=0,z=-p|0,F=0,L=-A-p|0,P=0,B=p|0,O=A-p*w|0,G=0,J=0,j=0,V=2*w|0,q=_(V),Z=_(V),re=0,$=0,ae=-1,Q=-1,te=0,ue=-w|0,ee=w|0,ie=0,fe=-w-1|0,we=w-1|0,Te=0,ke=0,ge=0;for(J=0;J<w;++J)q[re++]=h(y[D],S,x,M),D+=B;if(D+=O,d>0){if(G=1,q[re++]=h(y[D],S,x,M),D+=B,w>0)for(J=1,E=y[D],$=q[re]=h(E,S,x,M),ie=q[re+ue],te=q[re+ae],Te=q[re+fe],($!==ie||$!==te||$!==Te)&&(I=y[D+R],F=y[D+z],P=y[D+L],g(G,J,E,I,F,P,$,ie,te,Te,S,x,M),ke=Z[re]=j++),re+=1,D+=B,J=2;J<w;++J)E=y[D],$=q[re]=h(E,S,x,M),ie=q[re+ue],te=q[re+ae],Te=q[re+fe],($!==ie||$!==te||$!==Te)&&(I=y[D+R],F=y[D+z],P=y[D+L],g(G,J,E,I,F,P,$,ie,te,Te,S,x,M),ke=Z[re]=j++,Te!==te&&b(Z[re+ae],ke,F,P,te,Te,S,x,M)),re+=1,D+=B;for(D+=O,re=0,ge=ue,ue=ee,ee=ge,ge=ae,ae=Q,Q=ge,ge=fe,fe=we,we=ge,G=2;G<d;++G){if(q[re++]=h(y[D],S,x,M),D+=B,w>0)for(J=1,E=y[D],$=q[re]=h(E,S,x,M),ie=q[re+ue],te=q[re+ae],Te=q[re+fe],($!==ie||$!==te||$!==Te)&&(I=y[D+R],F=y[D+z],P=y[D+L],g(G,J,E,I,F,P,$,ie,te,Te,S,x,M),ke=Z[re]=j++,Te!==ie&&b(Z[re+ue],ke,P,I,Te,ie,S,x,M)),re+=1,D+=B,J=2;J<w;++J)E=y[D],$=q[re]=h(E,S,x,M),ie=q[re+ue],te=q[re+ae],Te=q[re+fe],($!==ie||$!==te||$!==Te)&&(I=y[D+R],F=y[D+z],P=y[D+L],g(G,J,E,I,F,P,$,ie,te,Te,S,x,M),ke=Z[re]=j++,Te!==te&&b(Z[re+ae],ke,F,P,te,Te,S,x,M),Te!==ie&&b(Z[re+ue],ke,P,I,Te,ie,S,x,M)),re+=1,D+=B;G&1&&(re=0),ge=ue,ue=ee,ee=ge,ge=ae,ae=Q,Q=ge,ge=fe,fe=we,we=ge,D+=O}}T(Z),T(q)}}};function s(c,g,b,h,_,T){var m=[T,_].join(","),k=u[m];return k(c,g,b,l.mallocUint32,l.freeUint32)}function f(c){function g(S){throw new Error("ndarray-extract-contour: "+S)}typeof c!="object"&&g("Must specify arguments");var b=c.order;Array.isArray(b)||g("Must specify order");var h=c.arrayArguments||1;h<1&&g("Must have at least one array argument");var _=c.scalarArguments||0;_<0&&g("Scalar arg count must be > 0"),typeof c.vertex!="function"&&g("Must specify vertex creation function"),typeof c.cell!="function"&&g("Must specify cell creation function"),typeof c.phase!="function"&&g("Must specify phase function");for(var T=c.getters||[],m=new Array(h),k=0;k<h;++k)T.indexOf(k)>=0?m[k]=!0:m[k]=!1;return s(c.vertex,c.cell,c.phase,_,b,m)}},6199(a,o,i){"use strict";var l=i(1338),u={zero:function(M,d,w,y){var v=M[0],A=w[0];y|=0;var p=0,D=A;for(p=0;p<v;++p)d[y]=0,y+=D},fdTemplate1:function(M,d,w,y,v,A,p){var D=M[0],E=w[0],R=A[0],I=-1*E,z=E;y|=0,p|=0;var F=0,L=E,P=R;for(F=0;F<D;++F)v[p]=.5*(d[y+I]-d[y+z]),y+=L,p+=P},fdTemplate2:function(M,d,w,y,v,A,p,D,E,R){var I=M[0],z=M[1],F=w[0],L=w[1],P=A[0],B=A[1],O=E[0],G=E[1],J=-1*F,j=F,V=-1*L,q=L;y|=0,p|=0,R|=0;var Z=0,re=0,$=L,ae=F-z*L,Q=B,te=P-z*B,ue=G,ee=O-z*G;for(re=0;re<I;++re){for(Z=0;Z<z;++Z)v[p]=.5*(d[y+J]-d[y+j]),D[R]=.5*(d[y+V]-d[y+q]),y+=$,p+=Q,R+=ue;y+=ae,p+=te,R+=ee}}},s={cdiff:function(M){var d={};return function(y,v,A){var p=y.dtype,D=y.order,E=v.dtype,R=v.order,I=A.dtype,z=A.order,F=[p,D.join(),E,R.join(),I,z.join()].join(),L=d[F];return L||(d[F]=L=M([p,D,E,R,I,z])),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(M){var d={};return function(y){var v=y.dtype,A=y.order,p=[v,A.join()].join(),D=d[p];return D||(d[p]=D=M([v,A])),D(y.shape.slice(0),y.data,y.stride,y.offset|0)}},fdTemplate1:function(M){var d={};return function(y,v){var A=y.dtype,p=y.order,D=v.dtype,E=v.order,R=[A,p.join(),D,E.join()].join(),I=d[R];return I||(d[R]=I=M([A,p,D,E])),I(y.shape.slice(0),y.data,y.stride,y.offset|0,v.data,v.stride,v.offset|0)}},fdTemplate2:function(M){var d={};return function(y,v,A){var p=y.dtype,D=y.order,E=v.dtype,R=v.order,I=A.dtype,z=A.order,F=[p,D.join(),E,R.join(),I,z.join()].join(),L=d[F];return L||(d[F]=L=M([p,D,E,R,I,z])),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(M){var d=s[M.funcName];return d(c.bind(void 0,M))}function c(M){return u[M.funcName]}function g(M){return f({funcName:M.funcName})}var b={},h={},_=null,T=g({funcName:"cdiff"}),m=g({funcName:"zero"});function k(M){return M in b?b[M]:b[M]=g({funcName:"fdTemplate"+M})}function S(M,d,w,y){return function(v,A){var p=A.shape.slice();return p[0]>2&&p[1]>2&&y(A.pick(-1,-1).lo(1,1).hi(p[0]-2,p[1]-2),v.pick(-1,-1,0).lo(1,1).hi(p[0]-2,p[1]-2),v.pick(-1,-1,1).lo(1,1).hi(p[0]-2,p[1]-2)),p[1]>2&&(w(A.pick(0,-1).lo(1).hi(p[1]-2),v.pick(0,-1,1).lo(1).hi(p[1]-2)),d(v.pick(0,-1,0).lo(1).hi(p[1]-2))),p[1]>2&&(w(A.pick(p[0]-1,-1).lo(1).hi(p[1]-2),v.pick(p[0]-1,-1,1).lo(1).hi(p[1]-2)),d(v.pick(p[0]-1,-1,0).lo(1).hi(p[1]-2))),p[0]>2&&(w(A.pick(-1,0).lo(1).hi(p[0]-2),v.pick(-1,0,0).lo(1).hi(p[0]-2)),d(v.pick(-1,0,1).lo(1).hi(p[0]-2))),p[0]>2&&(w(A.pick(-1,p[1]-1).lo(1).hi(p[0]-2),v.pick(-1,p[1]-1,0).lo(1).hi(p[0]-2)),d(v.pick(-1,p[1]-1,1).lo(1).hi(p[0]-2))),v.set(0,0,0,0),v.set(0,0,1,0),v.set(p[0]-1,0,0,0),v.set(p[0]-1,0,1,0),v.set(0,p[1]-1,0,0),v.set(0,p[1]-1,1,0),v.set(p[0]-1,p[1]-1,0,0),v.set(p[0]-1,p[1]-1,1,0),v}}function x(M){var d=M.join(),p=h[d];if(p)return p;for(var w=M.length,y=[T,m],v=1;v<=w;++v)y.push(k(v));var A=S,p=A.apply(void 0,y);return h[d]=p,p}a.exports=function(d,w,y){if(Array.isArray(y)||(typeof y=="string"?y=l(w.dimension,y):y=l(w.dimension,"clamp")),w.size===0)return d;if(w.dimension===0)return d.set(0),d;var v=x(y);return v(d,w)}},4317(a){"use strict";function o(f,c){var g=Math.floor(c),b=c-g,h=0<=g&&g<f.shape[0],_=0<=g+1&&g+1<f.shape[0],T=h?+f.get(g):0,m=_?+f.get(g+1):0;return(1-b)*T+b*m}function i(f,c,g){var b=Math.floor(c),h=c-b,_=0<=b&&b<f.shape[0],T=0<=b+1&&b+1<f.shape[0],m=Math.floor(g),k=g-m,S=0<=m&&m<f.shape[1],x=0<=m+1&&m+1<f.shape[1],M=_&&S?f.get(b,m):0,d=_&&x?f.get(b,m+1):0,w=T&&S?f.get(b+1,m):0,y=T&&x?f.get(b+1,m+1):0;return(1-k)*((1-h)*M+h*w)+k*((1-h)*d+h*y)}function l(f,c,g,b){var h=Math.floor(c),_=c-h,T=0<=h&&h<f.shape[0],m=0<=h+1&&h+1<f.shape[0],k=Math.floor(g),S=g-k,x=0<=k&&k<f.shape[1],M=0<=k+1&&k+1<f.shape[1],d=Math.floor(b),w=b-d,y=0<=d&&d<f.shape[2],v=0<=d+1&&d+1<f.shape[2],A=T&&x&&y?f.get(h,k,d):0,p=T&&M&&y?f.get(h,k+1,d):0,D=m&&x&&y?f.get(h+1,k,d):0,E=m&&M&&y?f.get(h+1,k+1,d):0,R=T&&x&&v?f.get(h,k,d+1):0,I=T&&M&&v?f.get(h,k+1,d+1):0,z=m&&x&&v?f.get(h+1,k,d+1):0,F=m&&M&&v?f.get(h+1,k+1,d+1):0;return(1-w)*((1-S)*((1-_)*A+_*D)+S*((1-_)*p+_*E))+w*((1-S)*((1-_)*R+_*z)+S*((1-_)*I+_*F))}function u(f){var c=f.shape.length|0,g=new Array(c),b=new Array(c),h=new Array(c),_=new Array(c),T,m;for(T=0;T<c;++T)m=+arguments[T+1],g[T]=Math.floor(m),b[T]=m-g[T],h[T]=0<=g[T]&&g[T]<f.shape[T],_[T]=0<=g[T]+1&&g[T]+1<f.shape[T];var k=0,S,x,M;e:for(T=0;T<1<<c;++T){for(x=1,M=f.offset,S=0;S<c;++S)if(T&1<<S){if(!_[S])continue e;x*=b[S],M+=f.stride[S]*(g[S]+1)}else{if(!h[S])continue e;x*=1-b[S],M+=f.stride[S]*g[S]}k+=x*f.data[M]}return k}function s(f,c,g,b){switch(f.shape.length){case 0:return 0;case 1:return o(f,c);case 2:return i(f,c,g);case 3:return l(f,c,g,b);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(h,_,T,m,k){var S=h[0],x=h[1],M=h[2],d=T[0],w=T[1],y=T[2];m|=0;var v=0,A=0,p=0,D=y,E=w-M*y,R=d-x*w;for(p=0;p<S;++p){for(A=0;A<x;++A){for(v=0;v<M;++v)_[m]/=k,m+=D;m+=E}m+=R}}},"uint8,2,0,1,float64,2,1,0":function(){return function(h,_,T,m,k,S,x,M){var d=h[0],w=h[1],y=h[2],v=T[0],A=T[1],p=T[2],D=S[0],E=S[1],R=S[2];m|=0,x|=0;for(var I=m,z=x,F=h[0]|0;F>0;){F<64?(d=F,F=0):(d=64,F-=64);for(var L=h[1]|0;L>0;){L<64?(w=L,L=0):(w=64,L-=64),m=I+F*v+L*A,x=z+F*D+L*E;var P=0,B=0,O=0,G=p,J=v-y*p,j=A-d*v,V=R,q=D-y*R,Z=E-d*D;for(O=0;O<w;++O){for(B=0;B<d;++B){for(P=0;P<y;++P)_[m]=k[x]*M,m+=G,x+=V;m+=J,x+=q}m+=j,x+=Z}}}}},"float32,1,0,float32,1,0":function(){return function(h,_,T,m,k,S,x){var M=h[0],d=h[1],w=T[0],y=T[1],v=S[0],A=S[1];m|=0,x|=0;var p=0,D=0,E=y,R=w-d*y,I=A,z=v-d*A;for(D=0;D<M;++D){for(p=0;p<d;++p)_[m]=k[x],m+=E,x+=I;m+=R,x+=z}}},"float32,1,0,float32,0,1":function(){return function(h,_,T,m,k,S,x){var M=h[0],d=h[1],w=T[0],y=T[1],v=S[0],A=S[1];m|=0,x|=0;for(var p=m,D=x,E=h[1]|0;E>0;){E<64?(d=E,E=0):(d=64,E-=64);for(var R=h[0]|0;R>0;){R<64?(M=R,R=0):(M=64,R-=64),m=p+E*y+R*w,x=D+E*A+R*v;var I=0,z=0,F=y,L=w-d*y,P=A,B=v-d*A;for(z=0;z<M;++z){for(I=0;I<d;++I)_[m]=k[x],m+=F,x+=P;m+=L,x+=B}}}}},"uint8,2,0,1,uint8,1,2,0":function(){return function(h,_,T,m,k,S,x){var M=h[0],d=h[1],w=h[2],y=T[0],v=T[1],A=T[2],p=S[0],D=S[1],E=S[2];m|=0,x|=0;for(var R=m,I=x,z=h[2]|0;z>0;){z<64?(w=z,z=0):(w=64,z-=64);for(var F=h[0]|0;F>0;){F<64?(M=F,F=0):(M=64,F-=64);for(var L=h[1]|0;L>0;){L<64?(d=L,L=0):(d=64,L-=64),m=R+z*A+F*y+L*v,x=I+z*E+F*p+L*D;var P=0,B=0,O=0,G=A,J=y-w*A,j=v-M*y,V=E,q=p-w*E,Z=D-M*p;for(O=0;O<d;++O){for(B=0;B<M;++B){for(P=0;P<w;++P)_[m]=k[x],m+=G,x+=V;m+=J,x+=q}m+=j,x+=Z}}}}}},"uint8,2,0,1,array,2,0,1":function(){return function(h,_,T,m,k,S,x){var M=h[0],d=h[1],w=h[2],y=T[0],v=T[1],A=T[2],p=S[0],D=S[1],E=S[2];m|=0,x|=0;var R=0,I=0,z=0,F=A,L=y-w*A,P=v-M*y,B=E,O=p-w*E,G=D-M*p;for(z=0;z<d;++z){for(I=0;I<M;++I){for(R=0;R<w;++R)_[m]=k[x],m+=F,x+=B;m+=L,x+=O}m+=P,x+=G}}}};function l(b,h){var _=h.join(","),T=i[_];return T()}var u=l,s={mul:function(b){var h={};return function(T,m,k){var S=T.dtype,x=T.order,M=m.dtype,d=m.order,w=k.dtype,y=k.order,v=[S,x.join(),M,d.join(),w,y.join()].join(),A=h[v];return A||(h[v]=A=b([S,x,M,d,w,y])),A(T.shape.slice(0),T.data,T.stride,T.offset|0,m.data,m.stride,m.offset|0,k.data,k.stride,k.offset|0)}},muls:function(b){var h={};return function(T,m,k){var S=T.dtype,x=T.order,M=m.dtype,d=m.order,w=[S,x.join(),M,d.join()].join(),y=h[w];return y||(h[w]=y=b([S,x,M,d])),y(T.shape.slice(0),T.data,T.stride,T.offset|0,m.data,m.stride,m.offset|0,k)}},mulseq:function(b){var h={};return function(T,m){var k=T.dtype,S=T.order,x=[k,S.join()].join(),M=h[x];return M||(h[x]=M=b([k,S])),M(T.shape.slice(0),T.data,T.stride,T.offset|0,m)}},div:function(b){var h={};return function(T,m,k){var S=T.dtype,x=T.order,M=m.dtype,d=m.order,w=k.dtype,y=k.order,v=[S,x.join(),M,d.join(),w,y.join()].join(),A=h[v];return A||(h[v]=A=b([S,x,M,d,w,y])),A(T.shape.slice(0),T.data,T.stride,T.offset|0,m.data,m.stride,m.offset|0,k.data,k.stride,k.offset|0)}},divs:function(b){var h={};return function(T,m,k){var S=T.dtype,x=T.order,M=m.dtype,d=m.order,w=[S,x.join(),M,d.join()].join(),y=h[w];return y||(h[w]=y=b([S,x,M,d])),y(T.shape.slice(0),T.data,T.stride,T.offset|0,m.data,m.stride,m.offset|0,k)}},divseq:function(b){var h={};return function(T,m){var k=T.dtype,S=T.order,x=[k,S.join()].join(),M=h[x];return M||(h[x]=M=b([k,S])),M(T.shape.slice(0),T.data,T.stride,T.offset|0,m)}},assign:function(b){var h={};return function(T,m){var k=T.dtype,S=T.order,x=m.dtype,M=m.order,d=[k,S.join(),x,M.join()].join(),w=h[d];return w||(h[d]=w=b([k,S,x,M])),w(T.shape.slice(0),T.data,T.stride,T.offset|0,m.data,m.stride,m.offset|0)}}};function f(b){var h=s[b.funcName];return h(u.bind(void 0,b))}function c(b){return f({funcName:b.funcName})}var g={mul:"*",div:"/"};(function(){for(var b in g)o[b]=c({funcName:b}),o[b+"s"]=c({funcName:b+"s"}),o[b+"seq"]=c({funcName:b+"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 g=[],b=f,h=1;Array.isArray(b);)g.push(b.length),h*=b.length,b=b[0];return g.length===0?l():(c||(c=l(new Float64Array(h),g)),u(c,f),c)}},8277(a){"use strict";function o(){return function(c,g,b,h,_){var T=c[0],m=c[1],k=c[2],S=b[0],x=b[1],M=b[2],d=[0,0,0];h|=0;var w=0,y=0,v=0,A=M,p=x-k*M,D=S-m*x;for(v=0;v<T;++v){for(y=0;y<m;++y){for(w=0;w<k;++w){{var E=_,R;for(R=0;R<d.length-1;++R)E=E[d[R]];g[h]=E[d[d.length-1]]}h+=A,++d[2]}h+=p,d[2]-=k,++d[1]}h+=D,d[1]-=m,++d[0]}}}function i(){return o()}var l=i;function u(c){var g={};return function(h,_){var T=h.dtype,m=h.order,k=[T,m.join()].join(),S=g[k];return S||(g[k]=S=c([T,m])),S(h.shape.slice(0),h.data,h.stride,h.offset|0,_)}}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(_){return _==="uint32"?[l.mallocUint32,l.freeUint32]:null}var s={"uint32,1,0":function(_,T){return function(k,S,x,M,d,w,y,v,A,p,D){var E,R,I,z=k*d+M,F,L=_(v),P,B,O,G;for(E=k+1;E<=S;++E){for(R=E,z+=d,I=z,P=0,B=z,F=0;F<v;++F)L[P++]=x[B],B+=A;e:for(;R-- >k;){P=0,B=I-d;r:for(F=0;F<v;++F){if(O=x[B],G=L[P],O<G)break e;if(O>G)break r;B+=p,P+=D}for(P=I,B=I-d,F=0;F<v;++F)x[P]=x[B],P+=A,B+=A;I-=d}for(P=I,B=0,F=0;F<v;++F)x[P]=L[B++],P+=A}T(L)}}};function f(_,T){var m=u(T),k=[T,_].join(","),S=s[k];return m?S(m[0],m[1]):S()}var c={"uint32,1,0":function(_,T,m){return function k(S,x,M,d,w,y,v,A,p,D,E){var R=(x-S+1)/6|0,I=S+R,z=x-R,F=S+x>>1,L=F-R,P=F+R,B=I,O=L,G=F,J=P,j=z,V=S+1,q=x-1,Z=!0,re,$,ae,Q,te,ue,ee,ie,fe,we=0,Te=0,ke=0,ge,Ee,Le,se,X,K,ye,oe,de,pe,me,Se,ve,he,be,Ae,Re=A,Pe=T(Re),Ye=T(Re);Ee=w*B,Le=w*O,Ae=d;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ie=Le+Ae,ke=M[ee]-M[ie],ke>0){$=B,B=O,O=$;break e}if(ke<0)break e;Ae+=D}Ee=w*J,Le=w*j,Ae=d;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ie=Le+Ae,ke=M[ee]-M[ie],ke>0){$=J,J=j,j=$;break e}if(ke<0)break e;Ae+=D}Ee=w*B,Le=w*G,Ae=d;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ie=Le+Ae,ke=M[ee]-M[ie],ke>0){$=B,B=G,G=$;break e}if(ke<0)break e;Ae+=D}Ee=w*O,Le=w*G,Ae=d;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ie=Le+Ae,ke=M[ee]-M[ie],ke>0){$=O,O=G,G=$;break e}if(ke<0)break e;Ae+=D}Ee=w*B,Le=w*J,Ae=d;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ie=Le+Ae,ke=M[ee]-M[ie],ke>0){$=B,B=J,J=$;break e}if(ke<0)break e;Ae+=D}Ee=w*G,Le=w*J,Ae=d;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ie=Le+Ae,ke=M[ee]-M[ie],ke>0){$=G,G=J,J=$;break e}if(ke<0)break e;Ae+=D}Ee=w*O,Le=w*j,Ae=d;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ie=Le+Ae,ke=M[ee]-M[ie],ke>0){$=O,O=j,j=$;break e}if(ke<0)break e;Ae+=D}Ee=w*O,Le=w*G,Ae=d;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ie=Le+Ae,ke=M[ee]-M[ie],ke>0){$=O,O=G,G=$;break e}if(ke<0)break e;Ae+=D}Ee=w*J,Le=w*j,Ae=d;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ie=Le+Ae,ke=M[ee]-M[ie],ke>0){$=J,J=j,j=$;break e}if(ke<0)break e;Ae+=D}for(Ee=w*B,Le=w*O,se=w*G,X=w*J,K=w*j,ye=w*I,oe=w*F,de=w*z,be=0,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,fe=se+Ae,pe=X+Ae,me=K+Ae,Se=ye+Ae,ve=oe+Ae,he=de+Ae,Pe[be]=M[ie],Ye[be]=M[pe],Z=Z&&Pe[be]===Ye[be],ae=M[ee],Q=M[fe],te=M[me],M[Se]=ae,M[ve]=Q,M[he]=te,++be,Ae+=p;for(Ee=w*L,Le=w*S,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,M[ee]=M[ie],Ae+=p;for(Ee=w*P,Le=w*x,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,M[ee]=M[ie],Ae+=p;if(Z)for(ue=V;ue<=q;++ue){ee=d+ue*w,be=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Pe[be],ke!==0)break e;be+=E,ee+=D}if(ke!==0)if(ke<0){if(ue!==V)for(Ee=w*ue,Le=w*V,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,re=M[ee],M[ee]=M[ie],M[ie]=re,Ae+=p;++V}else for(;;){ee=d+q*w,be=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Pe[be],ke!==0)break e;be+=E,ee+=D}if(ke>0)q--;else if(ke<0){for(Ee=w*ue,Le=w*V,se=w*q,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,fe=se+Ae,re=M[ee],M[ee]=M[ie],M[ie]=M[fe],M[fe]=re,Ae+=p;++V,--q;break}else{for(Ee=w*ue,Le=w*q,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,re=M[ee],M[ee]=M[ie],M[ie]=re,Ae+=p;--q;break}}}else for(ue=V;ue<=q;++ue){ee=d+ue*w,be=0;e:for(ge=0;ge<A;++ge){if(we=M[ee]-Pe[be],we!==0)break e;be+=E,ee+=D}if(we<0){if(ue!==V)for(Ee=w*ue,Le=w*V,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,re=M[ee],M[ee]=M[ie],M[ie]=re,Ae+=p;++V}else{ee=d+ue*w,be=0;e:for(ge=0;ge<A;++ge){if(Te=M[ee]-Ye[be],Te!==0)break e;be+=E,ee+=D}if(Te>0)for(;;){ee=d+q*w,be=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Ye[be],ke!==0)break e;be+=E,ee+=D}if(ke>0){if(--q<ue)break;continue}else{ee=d+q*w,be=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Pe[be],ke!==0)break e;be+=E,ee+=D}if(ke<0){for(Ee=w*ue,Le=w*V,se=w*q,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,fe=se+Ae,re=M[ee],M[ee]=M[ie],M[ie]=M[fe],M[fe]=re,Ae+=p;++V,--q}else{for(Ee=w*ue,Le=w*q,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,re=M[ee],M[ee]=M[ie],M[ie]=re,Ae+=p;--q}break}}}}for(Ee=w*S,Le=w*(V-1),be=0,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,M[ee]=M[ie],M[ie]=Pe[be],++be,Ae+=p;for(Ee=w*x,Le=w*(q+1),be=0,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,M[ee]=M[ie],M[ie]=Ye[be],++be,Ae+=p;if(V-2-S<=32?_(S,V-2,M,d,w,y,v,A,p,D,E):k(S,V-2,M,d,w,y,v,A,p,D,E),x-(q+2)<=32?_(q+2,x,M,d,w,y,v,A,p,D,E):k(q+2,x,M,d,w,y,v,A,p,D,E),Z){m(Pe),m(Ye);return}if(V<I&&q>z){e:for(;;){for(ee=d+V*w,be=0,Ae=d,ge=0;ge<A;++ge){if(M[ee]!==Pe[be])break e;++be,ee+=p}++V}e:for(;;){for(ee=d+q*w,be=0,Ae=d,ge=0;ge<A;++ge){if(M[ee]!==Ye[be])break e;++be,ee+=p}--q}for(ue=V;ue<=q;++ue){ee=d+ue*w,be=0;e:for(ge=0;ge<A;++ge){if(we=M[ee]-Pe[be],we!==0)break e;be+=E,ee+=D}if(we===0){if(ue!==V)for(Ee=w*ue,Le=w*V,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,re=M[ee],M[ee]=M[ie],M[ie]=re,Ae+=p;++V}else{ee=d+ue*w,be=0;e:for(ge=0;ge<A;++ge){if(Te=M[ee]-Ye[be],Te!==0)break e;be+=E,ee+=D}if(Te===0)for(;;){ee=d+q*w,be=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Ye[be],ke!==0)break e;be+=E,ee+=D}if(ke===0){if(--q<ue)break;continue}else{ee=d+q*w,be=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Pe[be],ke!==0)break e;be+=E,ee+=D}if(ke<0){for(Ee=w*ue,Le=w*V,se=w*q,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,fe=se+Ae,re=M[ee],M[ee]=M[ie],M[ie]=M[fe],M[fe]=re,Ae+=p;++V,--q}else{for(Ee=w*ue,Le=w*q,Ae=d,ge=0;ge<A;++ge)ee=Ee+Ae,ie=Le+Ae,re=M[ee],M[ee]=M[ie],M[ie]=re,Ae+=p;--q}break}}}}}m(Pe),m(Ye),q-V<=32?_(V,q,M,d,w,y,v,A,p,D,E):k(V,q,M,d,w,y,v,A,p,D,E)}}};function g(_,T,m){var k=u(T),S=[T,_].join(","),x=c[S];return _.length>1&&k?x(m,k[0],k[1]):x(m)}var b={"uint32,1,0":function(_,T){return function(m){var k=m.data,S=m.offset|0,x=m.shape,M=m.stride,d=M[0]|0,w=x[0]|0,y=M[1]|0,v=x[1]|0,A=y,p=y,D=1;w<=32?_(0,w-1,k,S,d,y,w,v,A,p,D):T(0,w-1,k,S,d,y,w,v,A,p,D)}}};function h(_,T){var m=[T,_].join(","),k=b[m],S=f(_,T),x=g(_,T,S);return k(S,x)}a.exports=h},446(a,o,i){"use strict";var l=i(7640),u={};function s(f){var c=f.order,g=f.dtype,b=[c,g],h=b.join(":"),_=u[h];return _||(u[h]=_=l(c,g)),_(f),f}a.exports=s},9618(a,o,i){var l=i(7163),u=typeof Float64Array!="undefined";function s(T,m){return T[0]-m[0]}function f(){var T=this.stride,m=new Array(T.length),k;for(k=0;k<m.length;++k)m[k]=[Math.abs(T[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(T){function m(S){this.data=S}var k=m.prototype;return k.dtype=T,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(x){return new m(x)}},0:function(T,m){function k(x,M){this.data=x,this.offset=M}var S=k.prototype;return S.dtype=T,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 T==="generic"?this.data.get(this.offset):this.data[this.offset]},S.set=function(M){return T==="generic"?this.data.set(this.offset,M):this.data[this.offset]=M},function(M,d,w,y){return new k(M,y)}},1:function(T,m,k){function S(M,d,w,y){this.data=M,this.shape=[d],this.stride=[w],this.offset=y|0}var x=S.prototype;return x.dtype=T,x.dimension=1,Object.defineProperty(x,"size",{get:function(){return this.shape[0]}}),x.order=[0],x.set=function(d,w){return T==="generic"?this.data.set(this.offset+this.stride[0]*d,w):this.data[this.offset+this.stride[0]*d]=w},x.get=function(d){return T==="generic"?this.data.get(this.offset+this.stride[0]*d):this.data[this.offset+this.stride[0]*d]},x.index=function(d){return this.offset+this.stride[0]*d},x.hi=function(d){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,this.stride[0],this.offset)},x.lo=function(d){var w=this.offset,y=0,v=this.shape[0],A=this.stride[0];return typeof d=="number"&&d>=0&&(y=d|0,w+=A*y,v-=y),new S(this.data,v,A,w)},x.step=function(d){var w=this.shape[0],y=this.stride[0],v=this.offset,A=0,p=Math.ceil;return typeof d=="number"&&(A=d|0,A<0?(v+=y*(w-1),w=p(-w/A)):w=p(w/A),y*=A),new S(this.data,w,y,v)},x.transpose=function(d){d=d===void 0?0:d|0;var w=this.shape,y=this.stride;return new S(this.data,w[d],y[d],this.offset)},x.pick=function(d){var w=[],y=[],v=this.offset;typeof d=="number"&&d>=0?v=v+this.stride[0]*d|0:(w.push(this.shape[0]),y.push(this.stride[0]));var A=m[w.length+1];return A(this.data,w,y,v)},function(d,w,y,v){return new S(d,w[0],y[0],v)}},2:function(T,m,k){function S(M,d,w,y,v,A){this.data=M,this.shape=[d,w],this.stride=[y,v],this.offset=A|0}var x=S.prototype;return x.dtype=T,x.dimension=2,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(x,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),x.set=function(d,w,y){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*w,y):this.data[this.offset+this.stride[0]*d+this.stride[1]*w]=y},x.get=function(d,w){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*w):this.data[this.offset+this.stride[0]*d+this.stride[1]*w]},x.index=function(d,w){return this.offset+this.stride[0]*d+this.stride[1]*w},x.hi=function(d,w){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof w!="number"||w<0?this.shape[1]:w|0,this.stride[0],this.stride[1],this.offset)},x.lo=function(d,w){var y=this.offset,v=0,A=this.shape[0],p=this.shape[1],D=this.stride[0],E=this.stride[1];return typeof d=="number"&&d>=0&&(v=d|0,y+=D*v,A-=v),typeof w=="number"&&w>=0&&(v=w|0,y+=E*v,p-=v),new S(this.data,A,p,D,E,y)},x.step=function(d,w){var y=this.shape[0],v=this.shape[1],A=this.stride[0],p=this.stride[1],D=this.offset,E=0,R=Math.ceil;return typeof d=="number"&&(E=d|0,E<0?(D+=A*(y-1),y=R(-y/E)):y=R(y/E),A*=E),typeof w=="number"&&(E=w|0,E<0?(D+=p*(v-1),v=R(-v/E)):v=R(v/E),p*=E),new S(this.data,y,v,A,p,D)},x.transpose=function(d,w){d=d===void 0?0:d|0,w=w===void 0?1:w|0;var y=this.shape,v=this.stride;return new S(this.data,y[d],y[w],v[d],v[w],this.offset)},x.pick=function(d,w){var y=[],v=[],A=this.offset;typeof d=="number"&&d>=0?A=A+this.stride[0]*d|0:(y.push(this.shape[0]),v.push(this.stride[0])),typeof w=="number"&&w>=0?A=A+this.stride[1]*w|0:(y.push(this.shape[1]),v.push(this.stride[1]));var p=m[y.length+1];return p(this.data,y,v,A)},function(d,w,y,v){return new S(d,w[0],w[1],y[0],y[1],v)}},3:function(T,m,k){function S(M,d,w,y,v,A,p,D){this.data=M,this.shape=[d,w,y],this.stride=[v,A,p],this.offset=D|0}var x=S.prototype;return x.dtype=T,x.dimension=3,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(x,"order",{get:function(){var d=Math.abs(this.stride[0]),w=Math.abs(this.stride[1]),y=Math.abs(this.stride[2]);return d>w?w>y?[2,1,0]:d>y?[1,2,0]:[1,0,2]:d>y?[2,0,1]:y>w?[0,1,2]:[0,2,1]}}),x.set=function(d,w,y,v){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y,v):this.data[this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y]=v},x.get=function(d,w,y){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y):this.data[this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y]},x.index=function(d,w,y){return this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y},x.hi=function(d,w,y){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof w!="number"||w<0?this.shape[1]:w|0,typeof y!="number"||y<0?this.shape[2]:y|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},x.lo=function(d,w,y){var v=this.offset,A=0,p=this.shape[0],D=this.shape[1],E=this.shape[2],R=this.stride[0],I=this.stride[1],z=this.stride[2];return typeof d=="number"&&d>=0&&(A=d|0,v+=R*A,p-=A),typeof w=="number"&&w>=0&&(A=w|0,v+=I*A,D-=A),typeof y=="number"&&y>=0&&(A=y|0,v+=z*A,E-=A),new S(this.data,p,D,E,R,I,z,v)},x.step=function(d,w,y){var v=this.shape[0],A=this.shape[1],p=this.shape[2],D=this.stride[0],E=this.stride[1],R=this.stride[2],I=this.offset,z=0,F=Math.ceil;return typeof d=="number"&&(z=d|0,z<0?(I+=D*(v-1),v=F(-v/z)):v=F(v/z),D*=z),typeof w=="number"&&(z=w|0,z<0?(I+=E*(A-1),A=F(-A/z)):A=F(A/z),E*=z),typeof y=="number"&&(z=y|0,z<0?(I+=R*(p-1),p=F(-p/z)):p=F(p/z),R*=z),new S(this.data,v,A,p,D,E,R,I)},x.transpose=function(d,w,y){d=d===void 0?0:d|0,w=w===void 0?1:w|0,y=y===void 0?2:y|0;var v=this.shape,A=this.stride;return new S(this.data,v[d],v[w],v[y],A[d],A[w],A[y],this.offset)},x.pick=function(d,w,y){var v=[],A=[],p=this.offset;typeof d=="number"&&d>=0?p=p+this.stride[0]*d|0:(v.push(this.shape[0]),A.push(this.stride[0])),typeof w=="number"&&w>=0?p=p+this.stride[1]*w|0:(v.push(this.shape[1]),A.push(this.stride[1])),typeof y=="number"&&y>=0?p=p+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,p)},function(d,w,y,v){return new S(d,w[0],w[1],w[2],y[0],y[1],y[2],v)}},4:function(T,m,k){function S(M,d,w,y,v,A,p,D,E,R){this.data=M,this.shape=[d,w,y,v],this.stride=[A,p,D,E],this.offset=R|0}var x=S.prototype;return x.dtype=T,x.dimension=4,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(x,"order",{get:k}),x.set=function(d,w,y,v,A){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v,A):this.data[this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v]=A},x.get=function(d,w,y,v){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v):this.data[this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v]},x.index=function(d,w,y,v){return this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v},x.hi=function(d,w,y,v){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof w!="number"||w<0?this.shape[1]:w|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)},x.lo=function(d,w,y,v){var A=this.offset,p=0,D=this.shape[0],E=this.shape[1],R=this.shape[2],I=this.shape[3],z=this.stride[0],F=this.stride[1],L=this.stride[2],P=this.stride[3];return typeof d=="number"&&d>=0&&(p=d|0,A+=z*p,D-=p),typeof w=="number"&&w>=0&&(p=w|0,A+=F*p,E-=p),typeof y=="number"&&y>=0&&(p=y|0,A+=L*p,R-=p),typeof v=="number"&&v>=0&&(p=v|0,A+=P*p,I-=p),new S(this.data,D,E,R,I,z,F,L,P,A)},x.step=function(d,w,y,v){var A=this.shape[0],p=this.shape[1],D=this.shape[2],E=this.shape[3],R=this.stride[0],I=this.stride[1],z=this.stride[2],F=this.stride[3],L=this.offset,P=0,B=Math.ceil;return typeof d=="number"&&(P=d|0,P<0?(L+=R*(A-1),A=B(-A/P)):A=B(A/P),R*=P),typeof w=="number"&&(P=w|0,P<0?(L+=I*(p-1),p=B(-p/P)):p=B(p/P),I*=P),typeof y=="number"&&(P=y|0,P<0?(L+=z*(D-1),D=B(-D/P)):D=B(D/P),z*=P),typeof v=="number"&&(P=v|0,P<0?(L+=F*(E-1),E=B(-E/P)):E=B(E/P),F*=P),new S(this.data,A,p,D,E,R,I,z,F,L)},x.transpose=function(d,w,y,v){d=d===void 0?0:d|0,w=w===void 0?1:w|0,y=y===void 0?2:y|0,v=v===void 0?3:v|0;var A=this.shape,p=this.stride;return new S(this.data,A[d],A[w],A[y],A[v],p[d],p[w],p[y],p[v],this.offset)},x.pick=function(d,w,y,v){var A=[],p=[],D=this.offset;typeof d=="number"&&d>=0?D=D+this.stride[0]*d|0:(A.push(this.shape[0]),p.push(this.stride[0])),typeof w=="number"&&w>=0?D=D+this.stride[1]*w|0:(A.push(this.shape[1]),p.push(this.stride[1])),typeof y=="number"&&y>=0?D=D+this.stride[2]*y|0:(A.push(this.shape[2]),p.push(this.stride[2])),typeof v=="number"&&v>=0?D=D+this.stride[3]*v|0:(A.push(this.shape[3]),p.push(this.stride[3]));var E=m[A.length+1];return E(this.data,A,p,D)},function(d,w,y,v){return new S(d,w[0],w[1],w[2],w[3],y[0],y[1],y[2],y[3],v)}},5:function(m,k,S){function x(d,w,y,v,A,p,D,E,R,I,z,F){this.data=d,this.shape=[w,y,v,A,p],this.stride=[D,E,R,I,z],this.offset=F|0}var M=x.prototype;return M.dtype=m,M.dimension=5,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(M,"order",{get:S}),M.set=function(w,y,v,A,p,D){return m==="generic"?this.data.set(this.offset+this.stride[0]*w+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p,D):this.data[this.offset+this.stride[0]*w+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p]=D},M.get=function(w,y,v,A,p){return m==="generic"?this.data.get(this.offset+this.stride[0]*w+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p):this.data[this.offset+this.stride[0]*w+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p]},M.index=function(w,y,v,A,p){return this.offset+this.stride[0]*w+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p},M.hi=function(w,y,v,A,p){return new x(this.data,typeof w!="number"||w<0?this.shape[0]:w|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 p!="number"||p<0?this.shape[4]:p|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(w,y,v,A,p){var D=this.offset,E=0,R=this.shape[0],I=this.shape[1],z=this.shape[2],F=this.shape[3],L=this.shape[4],P=this.stride[0],B=this.stride[1],O=this.stride[2],G=this.stride[3],J=this.stride[4];return typeof w=="number"&&w>=0&&(E=w|0,D+=P*E,R-=E),typeof y=="number"&&y>=0&&(E=y|0,D+=B*E,I-=E),typeof v=="number"&&v>=0&&(E=v|0,D+=O*E,z-=E),typeof A=="number"&&A>=0&&(E=A|0,D+=G*E,F-=E),typeof p=="number"&&p>=0&&(E=p|0,D+=J*E,L-=E),new x(this.data,R,I,z,F,L,P,B,O,G,J,D)},M.step=function(w,y,v,A,p){var D=this.shape[0],E=this.shape[1],R=this.shape[2],I=this.shape[3],z=this.shape[4],F=this.stride[0],L=this.stride[1],P=this.stride[2],B=this.stride[3],O=this.stride[4],G=this.offset,J=0,j=Math.ceil;return typeof w=="number"&&(J=w|0,J<0?(G+=F*(D-1),D=j(-D/J)):D=j(D/J),F*=J),typeof y=="number"&&(J=y|0,J<0?(G+=L*(E-1),E=j(-E/J)):E=j(E/J),L*=J),typeof v=="number"&&(J=v|0,J<0?(G+=P*(R-1),R=j(-R/J)):R=j(R/J),P*=J),typeof A=="number"&&(J=A|0,J<0?(G+=B*(I-1),I=j(-I/J)):I=j(I/J),B*=J),typeof p=="number"&&(J=p|0,J<0?(G+=O*(z-1),z=j(-z/J)):z=j(z/J),O*=J),new x(this.data,D,E,R,I,z,F,L,P,B,O,G)},M.transpose=function(w,y,v,A,p){w=w===void 0?0:w|0,y=y===void 0?1:y|0,v=v===void 0?2:v|0,A=A===void 0?3:A|0,p=p===void 0?4:p|0;var D=this.shape,E=this.stride;return new x(this.data,D[w],D[y],D[v],D[A],D[p],E[w],E[y],E[v],E[A],E[p],this.offset)},M.pick=function(w,y,v,A,p){var D=[],E=[],R=this.offset;typeof w=="number"&&w>=0?R=R+this.stride[0]*w|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 p=="number"&&p>=0?R=R+this.stride[4]*p|0:(D.push(this.shape[4]),E.push(this.stride[4]));var I=k[D.length+1];return I(this.data,D,E,R)},function(w,y,v,A){return new x(w,y[0],y[1],y[2],y[3],y[4],v[0],v[1],v[2],v[3],v[4],A)}}};function g(T,m){var k=m===-1?"T":String(m),S=c[k];return m===-1?S(T):m===0?S(T,h[T][0]):S(T,h[T],f)}function b(T){if(l(T))return"buffer";if(u)switch(Object.prototype.toString.call(T)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(T)?"array":"generic"}var h={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function _(T,m,k,S){if(T===void 0){var v=h.array[0];return v([])}else typeof T=="number"&&(T=[T]);m===void 0&&(m=[T.length]);var x=m.length;if(k===void 0){k=new Array(x);for(var M=x-1,d=1;M>=0;--M)k[M]=d,d*=m[M]}if(S===void 0){S=0;for(var M=0;M<x;++M)k[M]<0&&(S-=(m[M]-1)*k[M])}for(var w=b(T),y=h[w];y.length<=x+1;)y.push(g(w,y.length-1));var v=y[x+1];return v(T,m,k,S)}a.exports=_},1278(a,o,i){"use strict";var l=i(2361),u=Math.pow(2,-1074),s=-1>>>0;a.exports=f;function f(c,g){if(isNaN(c)||isNaN(g))return NaN;if(c===g)return c;if(c===0)return g<0?-u:u;var b=l.hi(c),h=l.lo(c);return g>c==c>0?h===s?(b+=1,h=0):h+=1:h===0?(h=s,b-=1):h-=1,l.pack(h,b)}},8406(a,o){var i=1e-6,l=1e-6;o.vertexNormals=function(u,s,f){for(var c=s.length,g=new Array(c),b=f===void 0?i:f,h=0;h<c;++h)g[h]=[0,0,0];for(var h=0;h<u.length;++h)for(var _=u[h],T=0,m=_[_.length-1],k=_[0],S=0;S<_.length;++S){T=m,m=k,k=_[(S+1)%_.length];for(var x=s[T],M=s[m],d=s[k],w=new Array(3),y=0,v=new Array(3),A=0,p=0;p<3;++p)w[p]=x[p]-M[p],y+=w[p]*w[p],v[p]=d[p]-M[p],A+=v[p]*v[p];if(y*A>b)for(var D=g[m],E=1/Math.sqrt(y*A),p=0;p<3;++p){var R=(p+1)%3,I=(p+2)%3;D[p]+=E*(v[R]*w[I]-v[I]*w[R])}}for(var h=0;h<c;++h){for(var D=g[h],z=0,p=0;p<3;++p)z+=D[p]*D[p];if(z>b)for(var E=1/Math.sqrt(z),p=0;p<3;++p)D[p]*=E;else for(var p=0;p<3;++p)D[p]=0}return g},o.faceNormals=function(u,s,f){for(var c=u.length,g=new Array(c),b=f===void 0?l:f,h=0;h<c;++h){for(var _=u[h],T=new Array(3),m=0;m<3;++m)T[m]=s[_[m]];for(var k=new Array(3),S=new Array(3),m=0;m<3;++m)k[m]=T[1][m]-T[0][m],S[m]=T[2][m]-T[0][m];for(var x=new Array(3),M=0,m=0;m<3;++m){var d=(m+1)%3,w=(m+2)%3;x[m]=k[d]*S[w]-k[w]*S[d],M+=x[m]*x[m]}M>b?M=1/Math.sqrt(M):M=0;for(var m=0;m<3;++m)x[m]*=M;g[h]=x}return g}},4081(a){"use strict";a.exports=o;function o(i,l,u,s,f,c,g,b,h,_){var T=l+c+_;if(m>0){var m=Math.sqrt(T+1);i[0]=.5*(g-h)/m,i[1]=.5*(b-s)/m,i[2]=.5*(u-c)/m,i[3]=.5*m}else{var k=Math.max(l,c,_),m=Math.sqrt(2*k-T+1);l>=k?(i[0]=.5*m,i[1]=.5*(f+u)/m,i[2]=.5*(b+s)/m,i[3]=.5*(g-h)/m):c>=k?(i[0]=.5*(u+f)/m,i[1]=.5*m,i[2]=.5*(h+g)/m,i[3]=.5*(b-s)/m):(i[0]=.5*(s+b)/m,i[1]=.5*(g+h)/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 g(k,S,x){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2))}function b(k,S,x,M){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2)+Math.pow(M,2))}function h(k,S){var x=S[0],M=S[1],d=S[2],w=S[3],y=b(x,M,d,w);y>1e-6?(k[0]=x/y,k[1]=M/y,k[2]=d/y,k[3]=w/y):(k[0]=k[1]=k[2]=0,k[3]=1)}function _(k,S,x){this.radius=l([x]),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 T=_.prototype;T.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},T.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var S=this.computedRotation;h(S,S);var x=this.computedMatrix;s(x,S);var M=this.computedCenter,d=this.computedEye,w=this.computedUp,y=Math.exp(this.computedRadius[0]);d[0]=M[0]+y*x[2],d[1]=M[1]+y*x[6],d[2]=M[2]+y*x[10],w[0]=x[1],w[1]=x[5],w[2]=x[9];for(var v=0;v<3;++v){for(var A=0,p=0;p<3;++p)A+=x[v+4*p]*d[p];x[12+v]=-A}},T.getMatrix=function(k,S){this.recalcMatrix(k);var x=this.computedMatrix;if(S){for(var M=0;M<16;++M)S[M]=x[M];return S}return x},T.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},T.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},T.pan=function(k,S,x,M){S=S||0,x=x||0,M=M||0,this.recalcMatrix(k);var d=this.computedMatrix,w=d[1],y=d[5],v=d[9],A=g(w,y,v);w/=A,y/=A,v/=A;var p=d[0],D=d[4],E=d[8],R=p*w+D*y+E*v;p-=w*R,D-=y*R,E-=v*R;var I=g(p,D,E);p/=I,D/=I,E/=I;var z=d[2],F=d[6],L=d[10],P=z*w+F*y+L*v,B=z*p+F*D+L*E;z-=P*w+B*p,F-=P*y+B*D,L-=P*v+B*E;var O=g(z,F,L);z/=O,F/=O,L/=O;var G=p*S+w*x,J=D*S+y*x,j=E*S+v*x;this.center.move(k,G,J,j);var V=Math.exp(this.computedRadius[0]);V=Math.max(1e-4,V+M),this.radius.set(k,Math.log(V))},T.rotate=function(k,S,x,M){this.recalcMatrix(k),S=S||0,x=x||0;var d=this.computedMatrix,w=d[0],y=d[4],v=d[8],A=d[1],p=d[5],D=d[9],E=d[2],R=d[6],I=d[10],z=S*w+x*A,F=S*y+x*p,L=S*v+x*D,P=-(R*L-I*F),B=-(I*z-E*L),O=-(E*F-R*z),G=Math.sqrt(Math.max(0,1-Math.pow(P,2)-Math.pow(B,2)-Math.pow(O,2))),J=b(P,B,O,G);J>1e-6?(P/=J,B/=J,O/=J,G/=J):(P=B=O=0,G=1);var j=this.computedRotation,V=j[0],q=j[1],Z=j[2],re=j[3],$=V*G+re*P+q*O-Z*B,ae=q*G+re*B+Z*P-V*O,Q=Z*G+re*O+V*B-q*P,te=re*G-V*P-q*B-Z*O;if(M){P=E,B=R,O=I;var ue=Math.sin(M)/g(P,B,O);P*=ue,B*=ue,O*=ue,G=Math.cos(S),$=$*G+te*P+ae*O-Q*B,ae=ae*G+te*B+Q*P-$*O,Q=Q*G+te*O+$*B-ae*P,te=te*G-$*P-ae*B-Q*O}var ee=b($,ae,Q,te);ee>1e-6?($/=ee,ae/=ee,Q/=ee,te/=ee):($=ae=Q=0,te=1),this.rotation.set(k,$,ae,Q,te)},T.lookAt=function(k,S,x,M){this.recalcMatrix(k),x=x||this.computedCenter,S=S||this.computedEye,M=M||this.computedUp;var d=this.computedMatrix;u(d,S,x,M);var w=this.computedRotation;c(w,d[0],d[1],d[2],d[4],d[5],d[6],d[8],d[9],d[10]),h(w,w),this.rotation.set(k,w[0],w[1],w[2],w[3]);for(var y=0,v=0;v<3;++v)y+=Math.pow(x[v]-S[v],2);this.radius.set(k,.5*Math.log(Math.max(y,1e-6))),this.center.set(k,x[0],x[1],x[2])},T.translate=function(k,S,x,M){this.center.move(k,S||0,x||0,M||0)},T.setMatrix=function(k,S){var x=this.computedRotation;c(x,S[0],S[1],S[2],S[4],S[5],S[6],S[8],S[9],S[10]),h(x,x),this.rotation.set(k,x[0],x[1],x[2],x[3]);var M=this.computedMatrix;f(M,S);var d=M[15];if(Math.abs(d)>1e-6){var w=M[12]/d,y=M[13]/d,v=M[14]/d;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,w-M[2]*A,y-M[6]*A,v-M[10]*A),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},T.setDistance=function(k,S){S>0&&this.radius.set(k,Math.log(S))},T.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},T.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])]},T.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},T.fromJSON=function(k){var S=this.lastT(),x=k.center;x&&this.center.set(S,x[0],x[1],x[2]);var M=k.rotation;M&&this.rotation.set(S,M[0],M[1],M[2],M[3]);var d=k.distance;d&&d>0&&this.radius.set(S,Math.log(d)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function m(k){k=k||{};var S=k.center||[0,0,0],x=k.rotation||[0,0,0,1],M=k.radius||1;S=[].slice.call(S,0,3),x=[].slice.call(x,0,4),h(x,x);var d=new _(x,S,Math.log(M));return d.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&d.lookAt(0,k.eye,k.center,k.up),d}},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,g=s.length,b=[new Array(c),new Array(c)],h=0;h<c;++h)b[0][h]=[],b[1][h]=[];for(var h=0;h<g;++h){var _=s[h];b[0][_[0]].push(_),b[1][_[1]].push(_)}for(var T=[],h=0;h<c;++h)b[0][h].length+b[1][h].length===0&&T.push([h]);function m(v,A){var p=b[A][v[A]];p.splice(p.indexOf(v),1)}function k(v,A,p){for(var D,E,R,I=0;I<2;++I)if(b[I][A].length>0){D=b[I][A][0],R=I;break}E=D[R^1];for(var z=0;z<2;++z)for(var F=b[z][A],L=0;L<F.length;++L){var P=F[L],B=P[z^1],O=l(f[v],f[A],f[E],f[B]);O>0&&(D=P,E=B,R=z)}return p||D&&m(D,R),E}function S(v,A){var p=b[A][v][0],D=[v];m(p,A);for(var E=p[A^1],R=A;;){for(;E!==v;)D.push(E),E=k(D[D.length-2],E,!1);if(b[0][v].length+b[1][v].length===0)break;var I=D[D.length-1],z=v,F=D[1],L=k(I,z,!0);if(l(f[I],f[z],f[F],f[L])<0)break;D.push(v),E=k(I,z)}return D}function x(v,A){return A[1]===A[A.length-1]}for(var h=0;h<c;++h)for(var M=0;M<2;++M){for(var d=[];b[M][h].length>0;){var w=b[0][h].length,y=S(h,M);x(d,y)?d.push.apply(d,y):(d.length>0&&T.push(d),d=y)}d.length>0&&T.push(d)}return T}},5609(a,o,i){"use strict";a.exports=u;var l=i(3134);function u(s,f){for(var c=l(s,f.length),g=new Array(f.length),b=new Array(f.length),h=[],_=0;_<f.length;++_){var T=c[_].length;b[_]=T,g[_]=!0,T<=1&&h.push(_)}for(;h.length>0;){var m=h.pop();g[m]=!1;for(var k=c[m],_=0;_<k.length;++_){var S=k[_];--b[S]===0&&h.push(S)}}for(var x=new Array(f.length),M=[],_=0;_<f.length;++_)if(g[_]){var m=M.length;x[_]=m,M.push(f[_])}else x[_]=-1;for(var d=[],_=0;_<s.length;++_){var w=s[_];g[w[0]]&&g[w[1]]&&d.push([x[w[0]],x[w[1]]])}return[d,M]}},2095(a,o,i){"use strict";a.exports=T;var l=i(3134),u=i(3088),s=i(5085),f=i(5250),c=i(8210),g=i(1682),b=i(5609);function h(m,k){for(var S=new Array(m),x=0;x<m;++x)S[x]=k;return S}function _(m){for(var k=new Array(m),S=0;S<m;++S)k[S]=[];return k}function T(m,k){var ue=b(m,k);m=ue[0],k=ue[1];for(var S=k.length,x=m.length,M=l(m,k.length),d=0;d<S;++d)if(M[d].length%2===1)throw new Error("planar-graph-to-polyline: graph must be manifold");var w=u(m,k);function y(ge){for(var Ee=ge.length,Le=[0],se=0;se<Ee;++se){var X=k[ge[se]],K=k[ge[(se+1)%Ee]],ye=f(-X[0],X[1]),oe=f(-X[0],K[1]),de=f(K[0],X[1]),pe=f(K[0],K[1]);Le=c(Le,c(c(ye,oe),c(de,pe)))}return Le[Le.length-1]>0}w=w.filter(y);for(var v=w.length,A=new Array(v),p=new Array(v),d=0;d<v;++d){A[d]=d;var D=new Array(v),E=w[d].map(function(Ee){return k[Ee]}),R=s([E]),I=0;e:for(var z=0;z<v;++z)if(D[z]=0,d!==z){for(var F=w[z],L=F.length,P=0;P<L;++P){var B=R(k[F[P]]);if(B!==0){B<0&&(D[z]=1,I+=1);continue e}}D[z]=1,I+=1}p[d]=[I,d,D]}p.sort(function(ge,Ee){return Ee[0]-ge[0]});for(var d=0;d<v;++d)for(var D=p[d],O=D[1],G=D[2],z=0;z<v;++z)G[z]&&(A[z]=O);for(var J=_(v),d=0;d<v;++d)J[d].push(A[d]),J[A[d]].push(d);for(var j={},V=h(S,!1),d=0;d<v;++d)for(var F=w[d],L=F.length,z=0;z<L;++z){var q=F[z],Z=F[(z+1)%L],re=Math.min(q,Z)+":"+Math.max(q,Z);if(re in j){var $=j[re];J[$].push(d),J[d].push($),V[q]=V[Z]=!0}else j[re]=d}function ae(ge){for(var Ee=ge.length,Le=0;Le<Ee;++Le)if(!V[ge[Le]])return!1;return!0}for(var Q=[],te=h(v,-1),d=0;d<v;++d)A[d]===d&&!ae(w[d])?(Q.push(d),te[d]=0):te[d]=-1;for(var ue=[];Q.length>0;){var ee=Q.pop(),ie=J[ee];g(ie,function(ge,Ee){return ge-Ee});var fe=ie.length,we=te[ee],Te;if(we===0){var F=w[ee];Te=[F]}for(var d=0;d<fe;++d){var ke=ie[d];if(!(te[ke]>=0)&&(te[ke]=we^1,Q.push(ke),we===0)){var F=w[ke];ae(F)||(F.reverse(),Te.push(F))}}we===0&&ue.push(Te)}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 g(S){return function(x,M){var d=S[x];return d?!!d.queryPoint(M,c):!1}}function b(S){for(var x={},M=0;M<S.length;++M){var d=S[M],w=d[0][0],y=d[0][1],v=d[1][1],A=[Math.min(y,v),Math.max(y,v)];w in x?x[w].push(A):x[w]=[A]}for(var p={},D=Object.keys(x),M=0;M<D.length;++M){var E=x[D[M]];p[D[M]]=s(E)}return g(p)}function h(S,x){return function(M){var d=f.le(x,M[0]);if(d<0)return 1;var w=S[d];if(!w)if(d>0&&x[d]===M[0])w=S[d-1];else return 1;for(var y=1;w;){var v=w.key,A=l(M,v[0],v[1]);if(v[0][0]<v[1][0])if(A<0)w=w.left;else if(A>0)y=-1,w=w.right;else return 0;else if(A>0)w=w.left;else if(A<0)y=1,w=w.right;else return 0}return y}}function _(S){return 1}function T(S){return function(M){return S(M[0],M[1])?0:1}}function m(S,x){return function(d){return S(d[0],d[1])?0:x(d)}}function k(S){for(var x=S.length,M=[],d=[],w=0,y=0;y<x;++y)for(var v=S[y],A=v.length,p=A-1,D=0;D<A;p=D++){var E=v[p],R=v[D];E[0]===R[0]?d.push([E,R]):M.push([E,R])}if(M.length===0)return d.length===0?_:T(b(d));var I=u(M),z=h(I.slabs,I.coordinates);return d.length===0?z:m(b(d),z)}},9346(a){"use strict";var o=new Float64Array(4),i=new Float64Array(4),l=new Float64Array(4);function u(s,f,c,g,b){o.length<g.length&&(o=new Float64Array(g.length),i=new Float64Array(g.length),l=new Float64Array(g.length));for(var h=0;h<g.length;++h)o[h]=s[h]-g[h],i[h]=f[h]-s[h],l[h]=c[h]-s[h];for(var _=0,T=0,m=0,k=0,S=0,x=0,h=0;h<g.length;++h){var M=i[h],d=l[h],w=o[h];_+=M*M,T+=M*d,m+=d*d,k+=w*M,S+=w*d,x+=w*w}var y=Math.abs(_*m-T*T),v=T*S-m*k,A=T*k-_*S,p;if(v+A<=y)if(v<0)A<0&&k<0?(A=0,-k>=_?(v=1,p=_+2*k+x):(v=-k/_,p=k*v+x)):(v=0,S>=0?(A=0,p=x):-S>=m?(A=1,p=m+2*S+x):(A=-S/m,p=S*A+x));else if(A<0)A=0,k>=0?(v=0,p=x):-k>=_?(v=1,p=_+2*k+x):(v=-k/_,p=k*v+x);else{var D=1/y;v*=D,A*=D,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+x}else{var E,R,I,z;v<0?(E=T+k,R=m+S,R>E?(I=R-E,z=_-2*T+m,I>=z?(v=1,A=0,p=_+2*k+x):(v=I/z,A=1-v,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+x)):(v=0,R<=0?(A=1,p=m+2*S+x):S>=0?(A=0,p=x):(A=-S/m,p=S*A+x))):A<0?(E=T+S,R=_+k,R>E?(I=R-E,z=_-2*T+m,I>=z?(A=1,v=0,p=m+2*S+x):(A=I/z,v=1-A,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+x)):(A=0,R<=0?(v=1,p=_+2*k+x):k>=0?(v=0,p=x):(v=-k/_,p=k*v+x))):(I=m+S-T-k,I<=0?(v=0,A=1,p=m+2*S+x):(z=_-2*T+m,I>=z?(v=1,A=0,p=_+2*k+x):(v=I/z,A=1-v,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+x)))}for(var F=1-v-A,h=0;h<g.length;++h)b[h]=F*s[h]+v*f[h]+A*c[h];return p<0?0:p}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,g=new Array(c),b=0;b<c;++b)g[b]=l(s[b],f[b]);return g}},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 g=l(c),b=f.length,h=new Array(b),_=0;_<b;++_)h[_]=u(f[_],g);return h}},544(a,o,i){"use strict";var l=i(5572);a.exports=u;function u(s,f){for(var c=s.length,g=new Array(c),b=0;b<c;++b)g[b]=l(s[b],f[b]);return g}},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 g=c.length,b=0,h=0;h<g;++h){var _=c[h],T=s(_);if(T!==0){if(b>0){var m=c[b-1];if(l(_,m)===0&&s(m)!==T){b-=1;continue}}c[b++]=_}}return c.length=b,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,g=i[f];u=c+g;var b=u-c,h=g-b;h&&(i[--s]=u,u=h)}for(var _=0,f=s;f<l;++f){var c=i[f],g=u;u=c+g;var b=u-c,h=g-b;h&&(i[_++]=h)}return i[_++]=u,i.length=_,i}},2962(a,o,i){"use strict";var l=i(5250),u=i(8210),s=i(3012),f=i(7004),c=6;function g(x,M,d,w){return function(v){return w(x(d(v[0][0],v[1][1]),d(-v[0][1],v[1][0])))}}function b(x,M,d,w){return function(v){return w(x(M(x(d(v[1][1],v[2][2]),d(-v[1][2],v[2][1])),v[0][0]),x(M(x(d(v[1][0],v[2][2]),d(-v[1][2],v[2][0])),-v[0][1]),M(x(d(v[1][0],v[2][1]),d(-v[1][1],v[2][0])),v[0][2]))))}}function h(x,M,d,w){return function(v){return w(x(x(M(x(M(x(d(v[2][2],v[3][3]),d(-v[2][3],v[3][2])),v[1][1]),x(M(x(d(v[2][1],v[3][3]),d(-v[2][3],v[3][1])),-v[1][2]),M(x(d(v[2][1],v[3][2]),d(-v[2][2],v[3][1])),v[1][3]))),v[0][0]),M(x(M(x(d(v[2][2],v[3][3]),d(-v[2][3],v[3][2])),v[1][0]),x(M(x(d(v[2][0],v[3][3]),d(-v[2][3],v[3][0])),-v[1][2]),M(x(d(v[2][0],v[3][2]),d(-v[2][2],v[3][0])),v[1][3]))),-v[0][1])),x(M(x(M(x(d(v[2][1],v[3][3]),d(-v[2][3],v[3][1])),v[1][0]),x(M(x(d(v[2][0],v[3][3]),d(-v[2][3],v[3][0])),-v[1][1]),M(x(d(v[2][0],v[3][1]),d(-v[2][1],v[3][0])),v[1][3]))),v[0][2]),M(x(M(x(d(v[2][1],v[3][2]),d(-v[2][2],v[3][1])),v[1][0]),x(M(x(d(v[2][0],v[3][2]),d(-v[2][2],v[3][0])),-v[1][1]),M(x(d(v[2][0],v[3][1]),d(-v[2][1],v[3][0])),v[1][2]))),-v[0][3]))))}}function _(x,M,d,w){return function(v){return w(x(x(M(x(x(M(x(M(x(d(v[3][3],v[4][4]),d(-v[3][4],v[4][3])),v[2][2]),x(M(x(d(v[3][2],v[4][4]),d(-v[3][4],v[4][2])),-v[2][3]),M(x(d(v[3][2],v[4][3]),d(-v[3][3],v[4][2])),v[2][4]))),v[1][1]),M(x(M(x(d(v[3][3],v[4][4]),d(-v[3][4],v[4][3])),v[2][1]),x(M(x(d(v[3][1],v[4][4]),d(-v[3][4],v[4][1])),-v[2][3]),M(x(d(v[3][1],v[4][3]),d(-v[3][3],v[4][1])),v[2][4]))),-v[1][2])),x(M(x(M(x(d(v[3][2],v[4][4]),d(-v[3][4],v[4][2])),v[2][1]),x(M(x(d(v[3][1],v[4][4]),d(-v[3][4],v[4][1])),-v[2][2]),M(x(d(v[3][1],v[4][2]),d(-v[3][2],v[4][1])),v[2][4]))),v[1][3]),M(x(M(x(d(v[3][2],v[4][3]),d(-v[3][3],v[4][2])),v[2][1]),x(M(x(d(v[3][1],v[4][3]),d(-v[3][3],v[4][1])),-v[2][2]),M(x(d(v[3][1],v[4][2]),d(-v[3][2],v[4][1])),v[2][3]))),-v[1][4]))),v[0][0]),M(x(x(M(x(M(x(d(v[3][3],v[4][4]),d(-v[3][4],v[4][3])),v[2][2]),x(M(x(d(v[3][2],v[4][4]),d(-v[3][4],v[4][2])),-v[2][3]),M(x(d(v[3][2],v[4][3]),d(-v[3][3],v[4][2])),v[2][4]))),v[1][0]),M(x(M(x(d(v[3][3],v[4][4]),d(-v[3][4],v[4][3])),v[2][0]),x(M(x(d(v[3][0],v[4][4]),d(-v[3][4],v[4][0])),-v[2][3]),M(x(d(v[3][0],v[4][3]),d(-v[3][3],v[4][0])),v[2][4]))),-v[1][2])),x(M(x(M(x(d(v[3][2],v[4][4]),d(-v[3][4],v[4][2])),v[2][0]),x(M(x(d(v[3][0],v[4][4]),d(-v[3][4],v[4][0])),-v[2][2]),M(x(d(v[3][0],v[4][2]),d(-v[3][2],v[4][0])),v[2][4]))),v[1][3]),M(x(M(x(d(v[3][2],v[4][3]),d(-v[3][3],v[4][2])),v[2][0]),x(M(x(d(v[3][0],v[4][3]),d(-v[3][3],v[4][0])),-v[2][2]),M(x(d(v[3][0],v[4][2]),d(-v[3][2],v[4][0])),v[2][3]))),-v[1][4]))),-v[0][1])),x(M(x(x(M(x(M(x(d(v[3][3],v[4][4]),d(-v[3][4],v[4][3])),v[2][1]),x(M(x(d(v[3][1],v[4][4]),d(-v[3][4],v[4][1])),-v[2][3]),M(x(d(v[3][1],v[4][3]),d(-v[3][3],v[4][1])),v[2][4]))),v[1][0]),M(x(M(x(d(v[3][3],v[4][4]),d(-v[3][4],v[4][3])),v[2][0]),x(M(x(d(v[3][0],v[4][4]),d(-v[3][4],v[4][0])),-v[2][3]),M(x(d(v[3][0],v[4][3]),d(-v[3][3],v[4][0])),v[2][4]))),-v[1][1])),x(M(x(M(x(d(v[3][1],v[4][4]),d(-v[3][4],v[4][1])),v[2][0]),x(M(x(d(v[3][0],v[4][4]),d(-v[3][4],v[4][0])),-v[2][1]),M(x(d(v[3][0],v[4][1]),d(-v[3][1],v[4][0])),v[2][4]))),v[1][3]),M(x(M(x(d(v[3][1],v[4][3]),d(-v[3][3],v[4][1])),v[2][0]),x(M(x(d(v[3][0],v[4][3]),d(-v[3][3],v[4][0])),-v[2][1]),M(x(d(v[3][0],v[4][1]),d(-v[3][1],v[4][0])),v[2][3]))),-v[1][4]))),v[0][2]),x(M(x(x(M(x(M(x(d(v[3][2],v[4][4]),d(-v[3][4],v[4][2])),v[2][1]),x(M(x(d(v[3][1],v[4][4]),d(-v[3][4],v[4][1])),-v[2][2]),M(x(d(v[3][1],v[4][2]),d(-v[3][2],v[4][1])),v[2][4]))),v[1][0]),M(x(M(x(d(v[3][2],v[4][4]),d(-v[3][4],v[4][2])),v[2][0]),x(M(x(d(v[3][0],v[4][4]),d(-v[3][4],v[4][0])),-v[2][2]),M(x(d(v[3][0],v[4][2]),d(-v[3][2],v[4][0])),v[2][4]))),-v[1][1])),x(M(x(M(x(d(v[3][1],v[4][4]),d(-v[3][4],v[4][1])),v[2][0]),x(M(x(d(v[3][0],v[4][4]),d(-v[3][4],v[4][0])),-v[2][1]),M(x(d(v[3][0],v[4][1]),d(-v[3][1],v[4][0])),v[2][4]))),v[1][2]),M(x(M(x(d(v[3][1],v[4][2]),d(-v[3][2],v[4][1])),v[2][0]),x(M(x(d(v[3][0],v[4][2]),d(-v[3][2],v[4][0])),-v[2][1]),M(x(d(v[3][0],v[4][1]),d(-v[3][1],v[4][0])),v[2][2]))),-v[1][4]))),-v[0][3]),M(x(x(M(x(M(x(d(v[3][2],v[4][3]),d(-v[3][3],v[4][2])),v[2][1]),x(M(x(d(v[3][1],v[4][3]),d(-v[3][3],v[4][1])),-v[2][2]),M(x(d(v[3][1],v[4][2]),d(-v[3][2],v[4][1])),v[2][3]))),v[1][0]),M(x(M(x(d(v[3][2],v[4][3]),d(-v[3][3],v[4][2])),v[2][0]),x(M(x(d(v[3][0],v[4][3]),d(-v[3][3],v[4][0])),-v[2][2]),M(x(d(v[3][0],v[4][2]),d(-v[3][2],v[4][0])),v[2][3]))),-v[1][1])),x(M(x(M(x(d(v[3][1],v[4][3]),d(-v[3][3],v[4][1])),v[2][0]),x(M(x(d(v[3][0],v[4][3]),d(-v[3][3],v[4][0])),-v[2][1]),M(x(d(v[3][0],v[4][1]),d(-v[3][1],v[4][0])),v[2][3]))),v[1][2]),M(x(M(x(d(v[3][1],v[4][2]),d(-v[3][2],v[4][1])),v[2][0]),x(M(x(d(v[3][0],v[4][2]),d(-v[3][2],v[4][0])),-v[2][1]),M(x(d(v[3][0],v[4][1]),d(-v[3][1],v[4][0])),v[2][2]))),-v[1][3]))),v[0][4])))))}}function T(x){var M=x===2?g:x===3?b:x===4?h:x===5?_:void 0;return M(u,s,l,f)}var m=[function(){return[0]},function(M){return[M[0][0]]}];function k(x,M,d,w,y,v,A,p){return function(E){switch(E.length){case 0:return x(E);case 1:return M(E);case 2:return d(E);case 3:return w(E);case 4:return y(E);case 5:return v(E)}var R=A[E.length];return R||(R=A[E.length]=p(E.length)),R(E)}}function S(){for(;m.length<c;)m.push(T(m.length));a.exports=k.apply(void 0,m.concat([m,T]));for(var x=0;x<m.length;++x)a.exports[x]=m[x]}S()},1944(a,o,i){"use strict";var l=i(5250),u=i(8210);a.exports=s;function s(f,c){for(var g=l(f[0],c[0]),b=1;b<f.length;++b)g=u(g,l(f[b],c[b]));return g}},2646(a,o,i){"use strict";var l=i(5250),u=i(8210),s=i(8545),f=i(3012),c=6;function g(y){var v=y===3?T:y===4?m:y===5?k:S;return v(u,s,l,f)}function b(){return 0}function h(){return 0}function _(){return 0}function T(y,v,A,p){function D(E,R,I){var z=A(E[0],E[0]),F=p(z,R[0]),L=p(z,I[0]),P=A(R[0],R[0]),B=p(P,E[0]),O=p(P,I[0]),G=A(I[0],I[0]),J=p(G,E[0]),j=p(G,R[0]),V=y(v(j,O),v(B,F)),q=v(J,L),Z=v(V,q);return Z[Z.length-1]}return D}function m(y,v,A,p){function D(E,R,I,z){var F=y(A(E[0],E[0]),A(E[1],E[1])),L=p(F,R[0]),P=p(F,I[0]),B=p(F,z[0]),O=y(A(R[0],R[0]),A(R[1],R[1])),G=p(O,E[0]),J=p(O,I[0]),j=p(O,z[0]),V=y(A(I[0],I[0]),A(I[1],I[1])),q=p(V,E[0]),Z=p(V,R[0]),re=p(V,z[0]),$=y(A(z[0],z[0]),A(z[1],z[1])),ae=p($,E[0]),Q=p($,R[0]),te=p($,I[0]),ue=y(y(p(v(te,re),R[1]),y(p(v(Q,j),-I[1]),p(v(Z,J),z[1]))),y(p(v(Q,j),E[1]),y(p(v(ae,B),-R[1]),p(v(G,L),z[1])))),ee=y(y(p(v(te,re),E[1]),y(p(v(ae,B),-I[1]),p(v(q,P),z[1]))),y(p(v(Z,J),E[1]),y(p(v(q,P),-R[1]),p(v(G,L),I[1])))),ie=v(ue,ee);return ie[ie.length-1]}return D}function k(y,v,A,p){function D(E,R,I,z,F){var L=y(A(E[0],E[0]),y(A(E[1],E[1]),A(E[2],E[2]))),P=p(L,R[0]),B=p(L,I[0]),O=p(L,z[0]),G=p(L,F[0]),J=y(A(R[0],R[0]),y(A(R[1],R[1]),A(R[2],R[2]))),j=p(J,E[0]),V=p(J,I[0]),q=p(J,z[0]),Z=p(J,F[0]),re=y(A(I[0],I[0]),y(A(I[1],I[1]),A(I[2],I[2]))),$=p(re,E[0]),ae=p(re,R[0]),Q=p(re,z[0]),te=p(re,F[0]),ue=y(A(z[0],z[0]),y(A(z[1],z[1]),A(z[2],z[2]))),ee=p(ue,E[0]),ie=p(ue,R[0]),fe=p(ue,I[0]),we=p(ue,F[0]),Te=y(A(F[0],F[0]),y(A(F[1],F[1]),A(F[2],F[2]))),ke=p(Te,E[0]),ge=p(Te,R[0]),Ee=p(Te,I[0]),Le=p(Te,z[0]),se=y(y(y(p(y(p(v(Le,we),I[1]),y(p(v(Ee,te),-z[1]),p(v(fe,Q),F[1]))),R[2]),y(p(y(p(v(Le,we),R[1]),y(p(v(ge,Z),-z[1]),p(v(ie,q),F[1]))),-I[2]),p(y(p(v(Ee,te),R[1]),y(p(v(ge,Z),-I[1]),p(v(ae,V),F[1]))),z[2]))),y(p(y(p(v(fe,Q),R[1]),y(p(v(ie,q),-I[1]),p(v(ae,V),z[1]))),-F[2]),y(p(y(p(v(Le,we),R[1]),y(p(v(ge,Z),-z[1]),p(v(ie,q),F[1]))),E[2]),p(y(p(v(Le,we),E[1]),y(p(v(ke,G),-z[1]),p(v(ee,O),F[1]))),-R[2])))),y(y(p(y(p(v(ge,Z),E[1]),y(p(v(ke,G),-R[1]),p(v(j,P),F[1]))),z[2]),y(p(y(p(v(ie,q),E[1]),y(p(v(ee,O),-R[1]),p(v(j,P),z[1]))),-F[2]),p(y(p(v(fe,Q),R[1]),y(p(v(ie,q),-I[1]),p(v(ae,V),z[1]))),E[2]))),y(p(y(p(v(fe,Q),E[1]),y(p(v(ee,O),-I[1]),p(v($,B),z[1]))),-R[2]),y(p(y(p(v(ie,q),E[1]),y(p(v(ee,O),-R[1]),p(v(j,P),z[1]))),I[2]),p(y(p(v(ae,V),E[1]),y(p(v($,B),-R[1]),p(v(j,P),I[1]))),-z[2]))))),X=y(y(y(p(y(p(v(Le,we),I[1]),y(p(v(Ee,te),-z[1]),p(v(fe,Q),F[1]))),E[2]),p(y(p(v(Le,we),E[1]),y(p(v(ke,G),-z[1]),p(v(ee,O),F[1]))),-I[2])),y(p(y(p(v(Ee,te),E[1]),y(p(v(ke,G),-I[1]),p(v($,B),F[1]))),z[2]),p(y(p(v(fe,Q),E[1]),y(p(v(ee,O),-I[1]),p(v($,B),z[1]))),-F[2]))),y(y(p(y(p(v(Ee,te),R[1]),y(p(v(ge,Z),-I[1]),p(v(ae,V),F[1]))),E[2]),p(y(p(v(Ee,te),E[1]),y(p(v(ke,G),-I[1]),p(v($,B),F[1]))),-R[2])),y(p(y(p(v(ge,Z),E[1]),y(p(v(ke,G),-R[1]),p(v(j,P),F[1]))),I[2]),p(y(p(v(ae,V),E[1]),y(p(v($,B),-R[1]),p(v(j,P),I[1]))),-F[2])))),K=v(se,X);return K[K.length-1]}return D}function S(y,v,A,p){function D(E,R,I,z,F,L){var P=y(y(A(E[0],E[0]),A(E[1],E[1])),y(A(E[2],E[2]),A(E[3],E[3]))),B=p(P,R[0]),O=p(P,I[0]),G=p(P,z[0]),J=p(P,F[0]),j=p(P,L[0]),V=y(y(A(R[0],R[0]),A(R[1],R[1])),y(A(R[2],R[2]),A(R[3],R[3]))),q=p(V,E[0]),Z=p(V,I[0]),re=p(V,z[0]),$=p(V,F[0]),ae=p(V,L[0]),Q=y(y(A(I[0],I[0]),A(I[1],I[1])),y(A(I[2],I[2]),A(I[3],I[3]))),te=p(Q,E[0]),ue=p(Q,R[0]),ee=p(Q,z[0]),ie=p(Q,F[0]),fe=p(Q,L[0]),we=y(y(A(z[0],z[0]),A(z[1],z[1])),y(A(z[2],z[2]),A(z[3],z[3]))),Te=p(we,E[0]),ke=p(we,R[0]),ge=p(we,I[0]),Ee=p(we,F[0]),Le=p(we,L[0]),se=y(y(A(F[0],F[0]),A(F[1],F[1])),y(A(F[2],F[2]),A(F[3],F[3]))),X=p(se,E[0]),K=p(se,R[0]),ye=p(se,I[0]),oe=p(se,z[0]),de=p(se,L[0]),pe=y(y(A(L[0],L[0]),A(L[1],L[1])),y(A(L[2],L[2]),A(L[3],L[3]))),me=p(pe,E[0]),Se=p(pe,R[0]),ve=p(pe,I[0]),he=p(pe,z[0]),be=p(pe,F[0]),Ae=y(y(y(p(y(y(p(y(p(v(be,de),z[1]),y(p(v(he,Le),-F[1]),p(v(oe,Ee),L[1]))),I[2]),p(y(p(v(be,de),I[1]),y(p(v(ve,fe),-F[1]),p(v(ye,ie),L[1]))),-z[2])),y(p(y(p(v(he,Le),I[1]),y(p(v(ve,fe),-z[1]),p(v(ge,ee),L[1]))),F[2]),p(y(p(v(oe,Ee),I[1]),y(p(v(ye,ie),-z[1]),p(v(ge,ee),F[1]))),-L[2]))),R[3]),y(p(y(y(p(y(p(v(be,de),z[1]),y(p(v(he,Le),-F[1]),p(v(oe,Ee),L[1]))),R[2]),p(y(p(v(be,de),R[1]),y(p(v(Se,ae),-F[1]),p(v(K,$),L[1]))),-z[2])),y(p(y(p(v(he,Le),R[1]),y(p(v(Se,ae),-z[1]),p(v(ke,re),L[1]))),F[2]),p(y(p(v(oe,Ee),R[1]),y(p(v(K,$),-z[1]),p(v(ke,re),F[1]))),-L[2]))),-I[3]),p(y(y(p(y(p(v(be,de),I[1]),y(p(v(ve,fe),-F[1]),p(v(ye,ie),L[1]))),R[2]),p(y(p(v(be,de),R[1]),y(p(v(Se,ae),-F[1]),p(v(K,$),L[1]))),-I[2])),y(p(y(p(v(ve,fe),R[1]),y(p(v(Se,ae),-I[1]),p(v(ue,Z),L[1]))),F[2]),p(y(p(v(ye,ie),R[1]),y(p(v(K,$),-I[1]),p(v(ue,Z),F[1]))),-L[2]))),z[3]))),y(y(p(y(y(p(y(p(v(he,Le),I[1]),y(p(v(ve,fe),-z[1]),p(v(ge,ee),L[1]))),R[2]),p(y(p(v(he,Le),R[1]),y(p(v(Se,ae),-z[1]),p(v(ke,re),L[1]))),-I[2])),y(p(y(p(v(ve,fe),R[1]),y(p(v(Se,ae),-I[1]),p(v(ue,Z),L[1]))),z[2]),p(y(p(v(ge,ee),R[1]),y(p(v(ke,re),-I[1]),p(v(ue,Z),z[1]))),-L[2]))),-F[3]),p(y(y(p(y(p(v(oe,Ee),I[1]),y(p(v(ye,ie),-z[1]),p(v(ge,ee),F[1]))),R[2]),p(y(p(v(oe,Ee),R[1]),y(p(v(K,$),-z[1]),p(v(ke,re),F[1]))),-I[2])),y(p(y(p(v(ye,ie),R[1]),y(p(v(K,$),-I[1]),p(v(ue,Z),F[1]))),z[2]),p(y(p(v(ge,ee),R[1]),y(p(v(ke,re),-I[1]),p(v(ue,Z),z[1]))),-F[2]))),L[3])),y(p(y(y(p(y(p(v(be,de),z[1]),y(p(v(he,Le),-F[1]),p(v(oe,Ee),L[1]))),R[2]),p(y(p(v(be,de),R[1]),y(p(v(Se,ae),-F[1]),p(v(K,$),L[1]))),-z[2])),y(p(y(p(v(he,Le),R[1]),y(p(v(Se,ae),-z[1]),p(v(ke,re),L[1]))),F[2]),p(y(p(v(oe,Ee),R[1]),y(p(v(K,$),-z[1]),p(v(ke,re),F[1]))),-L[2]))),E[3]),p(y(y(p(y(p(v(be,de),z[1]),y(p(v(he,Le),-F[1]),p(v(oe,Ee),L[1]))),E[2]),p(y(p(v(be,de),E[1]),y(p(v(me,j),-F[1]),p(v(X,J),L[1]))),-z[2])),y(p(y(p(v(he,Le),E[1]),y(p(v(me,j),-z[1]),p(v(Te,G),L[1]))),F[2]),p(y(p(v(oe,Ee),E[1]),y(p(v(X,J),-z[1]),p(v(Te,G),F[1]))),-L[2]))),-R[3])))),y(y(y(p(y(y(p(y(p(v(be,de),R[1]),y(p(v(Se,ae),-F[1]),p(v(K,$),L[1]))),E[2]),p(y(p(v(be,de),E[1]),y(p(v(me,j),-F[1]),p(v(X,J),L[1]))),-R[2])),y(p(y(p(v(Se,ae),E[1]),y(p(v(me,j),-R[1]),p(v(q,B),L[1]))),F[2]),p(y(p(v(K,$),E[1]),y(p(v(X,J),-R[1]),p(v(q,B),F[1]))),-L[2]))),z[3]),p(y(y(p(y(p(v(he,Le),R[1]),y(p(v(Se,ae),-z[1]),p(v(ke,re),L[1]))),E[2]),p(y(p(v(he,Le),E[1]),y(p(v(me,j),-z[1]),p(v(Te,G),L[1]))),-R[2])),y(p(y(p(v(Se,ae),E[1]),y(p(v(me,j),-R[1]),p(v(q,B),L[1]))),z[2]),p(y(p(v(ke,re),E[1]),y(p(v(Te,G),-R[1]),p(v(q,B),z[1]))),-L[2]))),-F[3])),y(p(y(y(p(y(p(v(oe,Ee),R[1]),y(p(v(K,$),-z[1]),p(v(ke,re),F[1]))),E[2]),p(y(p(v(oe,Ee),E[1]),y(p(v(X,J),-z[1]),p(v(Te,G),F[1]))),-R[2])),y(p(y(p(v(K,$),E[1]),y(p(v(X,J),-R[1]),p(v(q,B),F[1]))),z[2]),p(y(p(v(ke,re),E[1]),y(p(v(Te,G),-R[1]),p(v(q,B),z[1]))),-F[2]))),L[3]),p(y(y(p(y(p(v(he,Le),I[1]),y(p(v(ve,fe),-z[1]),p(v(ge,ee),L[1]))),R[2]),p(y(p(v(he,Le),R[1]),y(p(v(Se,ae),-z[1]),p(v(ke,re),L[1]))),-I[2])),y(p(y(p(v(ve,fe),R[1]),y(p(v(Se,ae),-I[1]),p(v(ue,Z),L[1]))),z[2]),p(y(p(v(ge,ee),R[1]),y(p(v(ke,re),-I[1]),p(v(ue,Z),z[1]))),-L[2]))),E[3]))),y(y(p(y(y(p(y(p(v(he,Le),I[1]),y(p(v(ve,fe),-z[1]),p(v(ge,ee),L[1]))),E[2]),p(y(p(v(he,Le),E[1]),y(p(v(me,j),-z[1]),p(v(Te,G),L[1]))),-I[2])),y(p(y(p(v(ve,fe),E[1]),y(p(v(me,j),-I[1]),p(v(te,O),L[1]))),z[2]),p(y(p(v(ge,ee),E[1]),y(p(v(Te,G),-I[1]),p(v(te,O),z[1]))),-L[2]))),-R[3]),p(y(y(p(y(p(v(he,Le),R[1]),y(p(v(Se,ae),-z[1]),p(v(ke,re),L[1]))),E[2]),p(y(p(v(he,Le),E[1]),y(p(v(me,j),-z[1]),p(v(Te,G),L[1]))),-R[2])),y(p(y(p(v(Se,ae),E[1]),y(p(v(me,j),-R[1]),p(v(q,B),L[1]))),z[2]),p(y(p(v(ke,re),E[1]),y(p(v(Te,G),-R[1]),p(v(q,B),z[1]))),-L[2]))),I[3])),y(p(y(y(p(y(p(v(ve,fe),R[1]),y(p(v(Se,ae),-I[1]),p(v(ue,Z),L[1]))),E[2]),p(y(p(v(ve,fe),E[1]),y(p(v(me,j),-I[1]),p(v(te,O),L[1]))),-R[2])),y(p(y(p(v(Se,ae),E[1]),y(p(v(me,j),-R[1]),p(v(q,B),L[1]))),I[2]),p(y(p(v(ue,Z),E[1]),y(p(v(te,O),-R[1]),p(v(q,B),I[1]))),-L[2]))),-z[3]),p(y(y(p(y(p(v(ge,ee),R[1]),y(p(v(ke,re),-I[1]),p(v(ue,Z),z[1]))),E[2]),p(y(p(v(ge,ee),E[1]),y(p(v(Te,G),-I[1]),p(v(te,O),z[1]))),-R[2])),y(p(y(p(v(ke,re),E[1]),y(p(v(Te,G),-R[1]),p(v(q,B),z[1]))),I[2]),p(y(p(v(ue,Z),E[1]),y(p(v(te,O),-R[1]),p(v(q,B),I[1]))),-z[2]))),L[3]))))),Re=y(y(y(p(y(y(p(y(p(v(be,de),z[1]),y(p(v(he,Le),-F[1]),p(v(oe,Ee),L[1]))),I[2]),p(y(p(v(be,de),I[1]),y(p(v(ve,fe),-F[1]),p(v(ye,ie),L[1]))),-z[2])),y(p(y(p(v(he,Le),I[1]),y(p(v(ve,fe),-z[1]),p(v(ge,ee),L[1]))),F[2]),p(y(p(v(oe,Ee),I[1]),y(p(v(ye,ie),-z[1]),p(v(ge,ee),F[1]))),-L[2]))),E[3]),y(p(y(y(p(y(p(v(be,de),z[1]),y(p(v(he,Le),-F[1]),p(v(oe,Ee),L[1]))),E[2]),p(y(p(v(be,de),E[1]),y(p(v(me,j),-F[1]),p(v(X,J),L[1]))),-z[2])),y(p(y(p(v(he,Le),E[1]),y(p(v(me,j),-z[1]),p(v(Te,G),L[1]))),F[2]),p(y(p(v(oe,Ee),E[1]),y(p(v(X,J),-z[1]),p(v(Te,G),F[1]))),-L[2]))),-I[3]),p(y(y(p(y(p(v(be,de),I[1]),y(p(v(ve,fe),-F[1]),p(v(ye,ie),L[1]))),E[2]),p(y(p(v(be,de),E[1]),y(p(v(me,j),-F[1]),p(v(X,J),L[1]))),-I[2])),y(p(y(p(v(ve,fe),E[1]),y(p(v(me,j),-I[1]),p(v(te,O),L[1]))),F[2]),p(y(p(v(ye,ie),E[1]),y(p(v(X,J),-I[1]),p(v(te,O),F[1]))),-L[2]))),z[3]))),y(y(p(y(y(p(y(p(v(he,Le),I[1]),y(p(v(ve,fe),-z[1]),p(v(ge,ee),L[1]))),E[2]),p(y(p(v(he,Le),E[1]),y(p(v(me,j),-z[1]),p(v(Te,G),L[1]))),-I[2])),y(p(y(p(v(ve,fe),E[1]),y(p(v(me,j),-I[1]),p(v(te,O),L[1]))),z[2]),p(y(p(v(ge,ee),E[1]),y(p(v(Te,G),-I[1]),p(v(te,O),z[1]))),-L[2]))),-F[3]),p(y(y(p(y(p(v(oe,Ee),I[1]),y(p(v(ye,ie),-z[1]),p(v(ge,ee),F[1]))),E[2]),p(y(p(v(oe,Ee),E[1]),y(p(v(X,J),-z[1]),p(v(Te,G),F[1]))),-I[2])),y(p(y(p(v(ye,ie),E[1]),y(p(v(X,J),-I[1]),p(v(te,O),F[1]))),z[2]),p(y(p(v(ge,ee),E[1]),y(p(v(Te,G),-I[1]),p(v(te,O),z[1]))),-F[2]))),L[3])),y(p(y(y(p(y(p(v(be,de),I[1]),y(p(v(ve,fe),-F[1]),p(v(ye,ie),L[1]))),R[2]),p(y(p(v(be,de),R[1]),y(p(v(Se,ae),-F[1]),p(v(K,$),L[1]))),-I[2])),y(p(y(p(v(ve,fe),R[1]),y(p(v(Se,ae),-I[1]),p(v(ue,Z),L[1]))),F[2]),p(y(p(v(ye,ie),R[1]),y(p(v(K,$),-I[1]),p(v(ue,Z),F[1]))),-L[2]))),E[3]),p(y(y(p(y(p(v(be,de),I[1]),y(p(v(ve,fe),-F[1]),p(v(ye,ie),L[1]))),E[2]),p(y(p(v(be,de),E[1]),y(p(v(me,j),-F[1]),p(v(X,J),L[1]))),-I[2])),y(p(y(p(v(ve,fe),E[1]),y(p(v(me,j),-I[1]),p(v(te,O),L[1]))),F[2]),p(y(p(v(ye,ie),E[1]),y(p(v(X,J),-I[1]),p(v(te,O),F[1]))),-L[2]))),-R[3])))),y(y(y(p(y(y(p(y(p(v(be,de),R[1]),y(p(v(Se,ae),-F[1]),p(v(K,$),L[1]))),E[2]),p(y(p(v(be,de),E[1]),y(p(v(me,j),-F[1]),p(v(X,J),L[1]))),-R[2])),y(p(y(p(v(Se,ae),E[1]),y(p(v(me,j),-R[1]),p(v(q,B),L[1]))),F[2]),p(y(p(v(K,$),E[1]),y(p(v(X,J),-R[1]),p(v(q,B),F[1]))),-L[2]))),I[3]),p(y(y(p(y(p(v(ve,fe),R[1]),y(p(v(Se,ae),-I[1]),p(v(ue,Z),L[1]))),E[2]),p(y(p(v(ve,fe),E[1]),y(p(v(me,j),-I[1]),p(v(te,O),L[1]))),-R[2])),y(p(y(p(v(Se,ae),E[1]),y(p(v(me,j),-R[1]),p(v(q,B),L[1]))),I[2]),p(y(p(v(ue,Z),E[1]),y(p(v(te,O),-R[1]),p(v(q,B),I[1]))),-L[2]))),-F[3])),y(p(y(y(p(y(p(v(ye,ie),R[1]),y(p(v(K,$),-I[1]),p(v(ue,Z),F[1]))),E[2]),p(y(p(v(ye,ie),E[1]),y(p(v(X,J),-I[1]),p(v(te,O),F[1]))),-R[2])),y(p(y(p(v(K,$),E[1]),y(p(v(X,J),-R[1]),p(v(q,B),F[1]))),I[2]),p(y(p(v(ue,Z),E[1]),y(p(v(te,O),-R[1]),p(v(q,B),I[1]))),-F[2]))),L[3]),p(y(y(p(y(p(v(oe,Ee),I[1]),y(p(v(ye,ie),-z[1]),p(v(ge,ee),F[1]))),R[2]),p(y(p(v(oe,Ee),R[1]),y(p(v(K,$),-z[1]),p(v(ke,re),F[1]))),-I[2])),y(p(y(p(v(ye,ie),R[1]),y(p(v(K,$),-I[1]),p(v(ue,Z),F[1]))),z[2]),p(y(p(v(ge,ee),R[1]),y(p(v(ke,re),-I[1]),p(v(ue,Z),z[1]))),-F[2]))),E[3]))),y(y(p(y(y(p(y(p(v(oe,Ee),I[1]),y(p(v(ye,ie),-z[1]),p(v(ge,ee),F[1]))),E[2]),p(y(p(v(oe,Ee),E[1]),y(p(v(X,J),-z[1]),p(v(Te,G),F[1]))),-I[2])),y(p(y(p(v(ye,ie),E[1]),y(p(v(X,J),-I[1]),p(v(te,O),F[1]))),z[2]),p(y(p(v(ge,ee),E[1]),y(p(v(Te,G),-I[1]),p(v(te,O),z[1]))),-F[2]))),-R[3]),p(y(y(p(y(p(v(oe,Ee),R[1]),y(p(v(K,$),-z[1]),p(v(ke,re),F[1]))),E[2]),p(y(p(v(oe,Ee),E[1]),y(p(v(X,J),-z[1]),p(v(Te,G),F[1]))),-R[2])),y(p(y(p(v(K,$),E[1]),y(p(v(X,J),-R[1]),p(v(q,B),F[1]))),z[2]),p(y(p(v(ke,re),E[1]),y(p(v(Te,G),-R[1]),p(v(q,B),z[1]))),-F[2]))),I[3])),y(p(y(y(p(y(p(v(ye,ie),R[1]),y(p(v(K,$),-I[1]),p(v(ue,Z),F[1]))),E[2]),p(y(p(v(ye,ie),E[1]),y(p(v(X,J),-I[1]),p(v(te,O),F[1]))),-R[2])),y(p(y(p(v(K,$),E[1]),y(p(v(X,J),-R[1]),p(v(q,B),F[1]))),I[2]),p(y(p(v(ue,Z),E[1]),y(p(v(te,O),-R[1]),p(v(q,B),I[1]))),-F[2]))),-z[3]),p(y(y(p(y(p(v(ge,ee),R[1]),y(p(v(ke,re),-I[1]),p(v(ue,Z),z[1]))),E[2]),p(y(p(v(ge,ee),E[1]),y(p(v(Te,G),-I[1]),p(v(te,O),z[1]))),-R[2])),y(p(y(p(v(ke,re),E[1]),y(p(v(Te,G),-R[1]),p(v(q,B),z[1]))),I[2]),p(y(p(v(ue,Z),E[1]),y(p(v(te,O),-R[1]),p(v(q,B),I[1]))),-z[2]))),F[3]))))),Pe=v(Ae,Re);return Pe[Pe.length-1]}return D}var x=[b,h,_];function M(y){var v=x[y.length];return v||(v=x[y.length]=g(y.length)),v.apply(void 0,y)}function d(y,v,A,p,D,E,R,I){function z(F,L,P,B,O,G){switch(arguments.length){case 0:case 1:return 0;case 2:return p(F,L);case 3:return D(F,L,P);case 4:return E(F,L,P,B);case 5:return R(F,L,P,B,O);case 6:return I(F,L,P,B,O,G)}for(var J=new Array(arguments.length),j=0;j<arguments.length;++j)J[j]=arguments[j];return y(J)}return z}function w(){for(;x.length<=c;)x.push(g(x.length));a.exports=d.apply(void 0,[M].concat(x));for(var y=0;y<=c;++y)a.exports[y]=x[y]}w()},727(a,o,i){"use strict";var l=i(2962),u=6;function s(x){var M=x===2?g:x===3?b:x===4?h:x===5?_:T;return x<6?M(l[x]):M(l)}function f(){return[[0]]}function c(x,M){return[[M[0]],[x[0][0]]]}function g(x){return function(d,w){return[x([[+w[0],+d[0][1]],[+w[1],+d[1][1]]]),x([[+d[0][0],+w[0]],[+d[1][0],+w[1]]]),x(d)]}}function b(x){return function(d,w){return[x([[+w[0],+d[0][1],+d[0][2]],[+w[1],+d[1][1],+d[1][2]],[+w[2],+d[2][1],+d[2][2]]]),x([[+d[0][0],+w[0],+d[0][2]],[+d[1][0],+w[1],+d[1][2]],[+d[2][0],+w[2],+d[2][2]]]),x([[+d[0][0],+d[0][1],+w[0]],[+d[1][0],+d[1][1],+w[1]],[+d[2][0],+d[2][1],+w[2]]]),x(d)]}}function h(x){return function(d,w){return[x([[+w[0],+d[0][1],+d[0][2],+d[0][3]],[+w[1],+d[1][1],+d[1][2],+d[1][3]],[+w[2],+d[2][1],+d[2][2],+d[2][3]],[+w[3],+d[3][1],+d[3][2],+d[3][3]]]),x([[+d[0][0],+w[0],+d[0][2],+d[0][3]],[+d[1][0],+w[1],+d[1][2],+d[1][3]],[+d[2][0],+w[2],+d[2][2],+d[2][3]],[+d[3][0],+w[3],+d[3][2],+d[3][3]]]),x([[+d[0][0],+d[0][1],+w[0],+d[0][3]],[+d[1][0],+d[1][1],+w[1],+d[1][3]],[+d[2][0],+d[2][1],+w[2],+d[2][3]],[+d[3][0],+d[3][1],+w[3],+d[3][3]]]),x([[+d[0][0],+d[0][1],+d[0][2],+w[0]],[+d[1][0],+d[1][1],+d[1][2],+w[1]],[+d[2][0],+d[2][1],+d[2][2],+w[2]],[+d[3][0],+d[3][1],+d[3][2],+w[3]]]),x(d)]}}function _(x){return function(d,w){return[x([[+w[0],+d[0][1],+d[0][2],+d[0][3],+d[0][4]],[+w[1],+d[1][1],+d[1][2],+d[1][3],+d[1][4]],[+w[2],+d[2][1],+d[2][2],+d[2][3],+d[2][4]],[+w[3],+d[3][1],+d[3][2],+d[3][3],+d[3][4]],[+w[4],+d[4][1],+d[4][2],+d[4][3],+d[4][4]]]),x([[+d[0][0],+w[0],+d[0][2],+d[0][3],+d[0][4]],[+d[1][0],+w[1],+d[1][2],+d[1][3],+d[1][4]],[+d[2][0],+w[2],+d[2][2],+d[2][3],+d[2][4]],[+d[3][0],+w[3],+d[3][2],+d[3][3],+d[3][4]],[+d[4][0],+w[4],+d[4][2],+d[4][3],+d[4][4]]]),x([[+d[0][0],+d[0][1],+w[0],+d[0][3],+d[0][4]],[+d[1][0],+d[1][1],+w[1],+d[1][3],+d[1][4]],[+d[2][0],+d[2][1],+w[2],+d[2][3],+d[2][4]],[+d[3][0],+d[3][1],+w[3],+d[3][3],+d[3][4]],[+d[4][0],+d[4][1],+w[4],+d[4][3],+d[4][4]]]),x([[+d[0][0],+d[0][1],+d[0][2],+w[0],+d[0][4]],[+d[1][0],+d[1][1],+d[1][2],+w[1],+d[1][4]],[+d[2][0],+d[2][1],+d[2][2],+w[2],+d[2][4]],[+d[3][0],+d[3][1],+d[3][2],+w[3],+d[3][4]],[+d[4][0],+d[4][1],+d[4][2],+w[4],+d[4][4]]]),x([[+d[0][0],+d[0][1],+d[0][2],+d[0][3],+w[0]],[+d[1][0],+d[1][1],+d[1][2],+d[1][3],+w[1]],[+d[2][0],+d[2][1],+d[2][2],+d[2][3],+w[2]],[+d[3][0],+d[3][1],+d[3][2],+d[3][3],+w[3]],[+d[4][0],+d[4][1],+d[4][2],+d[4][3],+w[4]]]),x(d)]}}function T(x){return function(d,w){return[x([[+w[0],+d[0][1],+d[0][2],+d[0][3],+d[0][4],+d[0][5]],[+w[1],+d[1][1],+d[1][2],+d[1][3],+d[1][4],+d[1][5]],[+w[2],+d[2][1],+d[2][2],+d[2][3],+d[2][4],+d[2][5]],[+w[3],+d[3][1],+d[3][2],+d[3][3],+d[3][4],+d[3][5]],[+w[4],+d[4][1],+d[4][2],+d[4][3],+d[4][4],+d[4][5]],[+w[5],+d[5][1],+d[5][2],+d[5][3],+d[5][4],+d[5][5]]]),x([[+d[0][0],+w[0],+d[0][2],+d[0][3],+d[0][4],+d[0][5]],[+d[1][0],+w[1],+d[1][2],+d[1][3],+d[1][4],+d[1][5]],[+d[2][0],+w[2],+d[2][2],+d[2][3],+d[2][4],+d[2][5]],[+d[3][0],+w[3],+d[3][2],+d[3][3],+d[3][4],+d[3][5]],[+d[4][0],+w[4],+d[4][2],+d[4][3],+d[4][4],+d[4][5]],[+d[5][0],+w[5],+d[5][2],+d[5][3],+d[5][4],+d[5][5]]]),x([[+d[0][0],+d[0][1],+w[0],+d[0][3],+d[0][4],+d[0][5]],[+d[1][0],+d[1][1],+w[1],+d[1][3],+d[1][4],+d[1][5]],[+d[2][0],+d[2][1],+w[2],+d[2][3],+d[2][4],+d[2][5]],[+d[3][0],+d[3][1],+w[3],+d[3][3],+d[3][4],+d[3][5]],[+d[4][0],+d[4][1],+w[4],+d[4][3],+d[4][4],+d[4][5]],[+d[5][0],+d[5][1],+w[5],+d[5][3],+d[5][4],+d[5][5]]]),x([[+d[0][0],+d[0][1],+d[0][2],+w[0],+d[0][4],+d[0][5]],[+d[1][0],+d[1][1],+d[1][2],+w[1],+d[1][4],+d[1][5]],[+d[2][0],+d[2][1],+d[2][2],+w[2],+d[2][4],+d[2][5]],[+d[3][0],+d[3][1],+d[3][2],+w[3],+d[3][4],+d[3][5]],[+d[4][0],+d[4][1],+d[4][2],+w[4],+d[4][4],+d[4][5]],[+d[5][0],+d[5][1],+d[5][2],+w[5],+d[5][4],+d[5][5]]]),x([[+d[0][0],+d[0][1],+d[0][2],+d[0][3],+w[0],+d[0][5]],[+d[1][0],+d[1][1],+d[1][2],+d[1][3],+w[1],+d[1][5]],[+d[2][0],+d[2][1],+d[2][2],+d[2][3],+w[2],+d[2][5]],[+d[3][0],+d[3][1],+d[3][2],+d[3][3],+w[3],+d[3][5]],[+d[4][0],+d[4][1],+d[4][2],+d[4][3],+w[4],+d[4][5]],[+d[5][0],+d[5][1],+d[5][2],+d[5][3],+w[5],+d[5][5]]]),x([[+d[0][0],+d[0][1],+d[0][2],+d[0][3],+d[0][4],+w[0]],[+d[1][0],+d[1][1],+d[1][2],+d[1][3],+d[1][4],+w[1]],[+d[2][0],+d[2][1],+d[2][2],+d[2][3],+d[2][4],+w[2]],[+d[3][0],+d[3][1],+d[3][2],+d[3][3],+d[3][4],+w[3]],[+d[4][0],+d[4][1],+d[4][2],+d[4][3],+d[4][4],+w[4]],[+d[5][0],+d[5][1],+d[5][2],+d[5][3],+d[5][4],+w[5]]]),x(d)]}}var m=[f,c];function k(x,M,d,w,y,v,A,p){return function(E,R){switch(E.length){case 0:return x(E,R);case 1:return M(E,R);case 2:return d(E,R);case 3:return w(E,R);case 4:return y(E,R);case 5:return v(E,R)}var I=A[E.length];return I||(I=A[E.length]=p(E.length)),I(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 x=0;x<u;++x)a.exports[x]=m[x]}S()},3250(a,o,i){"use strict";var l=i(5250),u=i(8210),s=i(3012),f=i(8545),c=5,g=11102230246251565e-32,b=(3+16*g)*g,h=(7+56*g)*g;function _(v,A,p,D){return function(R,I,z){var F=v(v(A(I[1],z[0]),A(-z[1],I[0])),v(A(R[1],I[0]),A(-I[1],R[0]))),L=v(A(R[1],z[0]),A(-z[1],R[0])),P=D(F,L);return P[P.length-1]}}function T(v,A,p,D){return function(R,I,z,F){var L=v(v(p(v(A(z[1],F[0]),A(-F[1],z[0])),I[2]),v(p(v(A(I[1],F[0]),A(-F[1],I[0])),-z[2]),p(v(A(I[1],z[0]),A(-z[1],I[0])),F[2]))),v(p(v(A(I[1],F[0]),A(-F[1],I[0])),R[2]),v(p(v(A(R[1],F[0]),A(-F[1],R[0])),-I[2]),p(v(A(R[1],I[0]),A(-I[1],R[0])),F[2])))),P=v(v(p(v(A(z[1],F[0]),A(-F[1],z[0])),R[2]),v(p(v(A(R[1],F[0]),A(-F[1],R[0])),-z[2]),p(v(A(R[1],z[0]),A(-z[1],R[0])),F[2]))),v(p(v(A(I[1],z[0]),A(-z[1],I[0])),R[2]),v(p(v(A(R[1],z[0]),A(-z[1],R[0])),-I[2]),p(v(A(R[1],I[0]),A(-I[1],R[0])),z[2])))),B=D(L,P);return B[B.length-1]}}function m(v,A,p,D){return function(R,I,z,F,L){var P=v(v(v(p(v(p(v(A(F[1],L[0]),A(-L[1],F[0])),z[2]),v(p(v(A(z[1],L[0]),A(-L[1],z[0])),-F[2]),p(v(A(z[1],F[0]),A(-F[1],z[0])),L[2]))),I[3]),v(p(v(p(v(A(F[1],L[0]),A(-L[1],F[0])),I[2]),v(p(v(A(I[1],L[0]),A(-L[1],I[0])),-F[2]),p(v(A(I[1],F[0]),A(-F[1],I[0])),L[2]))),-z[3]),p(v(p(v(A(z[1],L[0]),A(-L[1],z[0])),I[2]),v(p(v(A(I[1],L[0]),A(-L[1],I[0])),-z[2]),p(v(A(I[1],z[0]),A(-z[1],I[0])),L[2]))),F[3]))),v(p(v(p(v(A(z[1],F[0]),A(-F[1],z[0])),I[2]),v(p(v(A(I[1],F[0]),A(-F[1],I[0])),-z[2]),p(v(A(I[1],z[0]),A(-z[1],I[0])),F[2]))),-L[3]),v(p(v(p(v(A(F[1],L[0]),A(-L[1],F[0])),I[2]),v(p(v(A(I[1],L[0]),A(-L[1],I[0])),-F[2]),p(v(A(I[1],F[0]),A(-F[1],I[0])),L[2]))),R[3]),p(v(p(v(A(F[1],L[0]),A(-L[1],F[0])),R[2]),v(p(v(A(R[1],L[0]),A(-L[1],R[0])),-F[2]),p(v(A(R[1],F[0]),A(-F[1],R[0])),L[2]))),-I[3])))),v(v(p(v(p(v(A(I[1],L[0]),A(-L[1],I[0])),R[2]),v(p(v(A(R[1],L[0]),A(-L[1],R[0])),-I[2]),p(v(A(R[1],I[0]),A(-I[1],R[0])),L[2]))),F[3]),v(p(v(p(v(A(I[1],F[0]),A(-F[1],I[0])),R[2]),v(p(v(A(R[1],F[0]),A(-F[1],R[0])),-I[2]),p(v(A(R[1],I[0]),A(-I[1],R[0])),F[2]))),-L[3]),p(v(p(v(A(z[1],F[0]),A(-F[1],z[0])),I[2]),v(p(v(A(I[1],F[0]),A(-F[1],I[0])),-z[2]),p(v(A(I[1],z[0]),A(-z[1],I[0])),F[2]))),R[3]))),v(p(v(p(v(A(z[1],F[0]),A(-F[1],z[0])),R[2]),v(p(v(A(R[1],F[0]),A(-F[1],R[0])),-z[2]),p(v(A(R[1],z[0]),A(-z[1],R[0])),F[2]))),-I[3]),v(p(v(p(v(A(I[1],F[0]),A(-F[1],I[0])),R[2]),v(p(v(A(R[1],F[0]),A(-F[1],R[0])),-I[2]),p(v(A(R[1],I[0]),A(-I[1],R[0])),F[2]))),z[3]),p(v(p(v(A(I[1],z[0]),A(-z[1],I[0])),R[2]),v(p(v(A(R[1],z[0]),A(-z[1],R[0])),-I[2]),p(v(A(R[1],I[0]),A(-I[1],R[0])),z[2]))),-F[3]))))),B=v(v(v(p(v(p(v(A(F[1],L[0]),A(-L[1],F[0])),z[2]),v(p(v(A(z[1],L[0]),A(-L[1],z[0])),-F[2]),p(v(A(z[1],F[0]),A(-F[1],z[0])),L[2]))),R[3]),p(v(p(v(A(F[1],L[0]),A(-L[1],F[0])),R[2]),v(p(v(A(R[1],L[0]),A(-L[1],R[0])),-F[2]),p(v(A(R[1],F[0]),A(-F[1],R[0])),L[2]))),-z[3])),v(p(v(p(v(A(z[1],L[0]),A(-L[1],z[0])),R[2]),v(p(v(A(R[1],L[0]),A(-L[1],R[0])),-z[2]),p(v(A(R[1],z[0]),A(-z[1],R[0])),L[2]))),F[3]),p(v(p(v(A(z[1],F[0]),A(-F[1],z[0])),R[2]),v(p(v(A(R[1],F[0]),A(-F[1],R[0])),-z[2]),p(v(A(R[1],z[0]),A(-z[1],R[0])),F[2]))),-L[3]))),v(v(p(v(p(v(A(z[1],L[0]),A(-L[1],z[0])),I[2]),v(p(v(A(I[1],L[0]),A(-L[1],I[0])),-z[2]),p(v(A(I[1],z[0]),A(-z[1],I[0])),L[2]))),R[3]),p(v(p(v(A(z[1],L[0]),A(-L[1],z[0])),R[2]),v(p(v(A(R[1],L[0]),A(-L[1],R[0])),-z[2]),p(v(A(R[1],z[0]),A(-z[1],R[0])),L[2]))),-I[3])),v(p(v(p(v(A(I[1],L[0]),A(-L[1],I[0])),R[2]),v(p(v(A(R[1],L[0]),A(-L[1],R[0])),-I[2]),p(v(A(R[1],I[0]),A(-I[1],R[0])),L[2]))),z[3]),p(v(p(v(A(I[1],z[0]),A(-z[1],I[0])),R[2]),v(p(v(A(R[1],z[0]),A(-z[1],R[0])),-I[2]),p(v(A(R[1],I[0]),A(-I[1],R[0])),z[2]))),-L[3])))),O=D(P,B);return O[O.length-1]}}function k(v){var A=v===3?_:v===4?T:m;return A(u,l,s,f)}var S=k(3),x=k(4),M=[function(){return 0},function(){return 0},function(A,p){return p[0]-A[0]},function(A,p,D){var E=(A[1]-D[1])*(p[0]-D[0]),R=(A[0]-D[0])*(p[1]-D[1]),I=E-R,z;if(E>0){if(R<=0)return I;z=E+R}else if(E<0){if(R>=0)return I;z=-(E+R)}else return I;var F=b*z;return I>=F||I<=-F?I:S(A,p,D)},function(A,p,D,E){var R=A[0]-E[0],I=p[0]-E[0],z=D[0]-E[0],F=A[1]-E[1],L=p[1]-E[1],P=D[1]-E[1],B=A[2]-E[2],O=p[2]-E[2],G=D[2]-E[2],J=I*P,j=z*L,V=z*F,q=R*P,Z=R*L,re=I*F,$=B*(J-j)+O*(V-q)+G*(Z-re),ae=(Math.abs(J)+Math.abs(j))*Math.abs(B)+(Math.abs(V)+Math.abs(q))*Math.abs(O)+(Math.abs(Z)+Math.abs(re))*Math.abs(G),Q=h*ae;return $>Q||-$>Q?$:x(A,p,D,E)}];function d(v){var A=M[v.length];return A||(A=M[v.length]=k(v.length)),A.apply(void 0,v)}function w(v,A,p,D,E,R,I){return function(F,L,P,B,O){switch(arguments.length){case 0:case 1:return 0;case 2:return D(F,L);case 3:return E(F,L,P);case 4:return R(F,L,P,B);case 5:return I(F,L,P,B,O)}for(var G=new Array(arguments.length),J=0;J<arguments.length;++J)G[J]=arguments[J];return v(G)}}function y(){for(;M.length<=c;)M.push(k(M.length));a.exports=w.apply(void 0,[d].concat(M));for(var v=0;v<=c;++v)a.exports[v]=M[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 g=[0];if(f.length<c.length)for(var b=0;b<f.length;++b)g=l(g,u(c,f[b]));else for(var b=0;b<c.length;++b)g=l(g,u(f,c[b]));return g}},3012(a,o,i){"use strict";var l=i(5250),u=i(9362);a.exports=s;function s(f,c){var g=f.length;if(g===1){var b=l(f[0],c);return b[0]?b:[b[1]]}var h=new Array(2*g),_=[.1,.1],T=[.1,.1],m=0;l(f[0],c,_),_[0]&&(h[m++]=_[0]);for(var k=1;k<g;++k){l(f[k],c,T);var S=_[1];u(S,T[0],_),_[0]&&(h[m++]=_[0]);var x=T[1],M=_[1],d=x+M,w=d-x,y=M-w;_[1]=d,y&&(h[m++]=y)}return _[1]&&(h[m++]=_[1]),m===0&&(h[m++]=0),h.length=m,h}},1125(a,o,i){"use strict";a.exports=s;var l=i(3250)[3];function u(f,c,g,b){for(var h=0;h<2;++h){var _=f[h],T=c[h],m=Math.min(_,T),k=Math.max(_,T),S=g[h],x=b[h],M=Math.min(S,x),d=Math.max(S,x);if(d<m||k<M)return!1}return!0}function s(f,c,g,b){var h=l(f,g,b),_=l(c,g,b);if(h>0&&_>0||h<0&&_<0)return!1;var T=l(g,f,c),m=l(b,f,c);return T>0&&m>0||T<0&&m<0?!1:h===0&&_===0&&T===0&&m===0?u(f,c,g,b):!0}},8545(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,c=s-f,g=u-f,b=l-c,h=b+g;return h?[h,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,g=new Array(c),b=0,h=0,_=0,T=Math.abs,m=l[h],k=T(m),S=-u[_],x=T(S),M,d;k<x?(d=m,h+=1,h<s&&(m=l[h],k=T(m))):(d=S,_+=1,_<f&&(S=-u[_],x=T(S))),h<s&&k<x||_>=f?(M=m,h+=1,h<s&&(m=l[h],k=T(m))):(M=S,_+=1,_<f&&(S=-u[_],x=T(S)));for(var w=M+d,y=w-M,v=d-y,A=v,p=w,D,E,R,I,z;h<s&&_<f;)k<x?(M=m,h+=1,h<s&&(m=l[h],k=T(m))):(M=S,_+=1,_<f&&(S=-u[_],x=T(S))),d=A,w=M+d,y=w-M,v=d-y,v&&(g[b++]=v),D=p+w,E=D-p,R=D-E,I=w-E,z=p-R,A=z+I,p=D;for(;h<s;)M=m,d=A,w=M+d,y=w-M,v=d-y,v&&(g[b++]=v),D=p+w,E=D-p,R=D-E,I=w-E,z=p-R,A=z+I,p=D,h+=1,h<s&&(m=l[h]);for(;_<f;)M=S,d=A,w=M+d,y=w-M,v=d-y,v&&(g[b++]=v),D=p+w,E=D-p,R=D-E,I=w-E,z=p-R,A=z+I,p=D,_+=1,_<f&&(S=-u[_]);return A&&(g[b++]=A),p&&(g[b++]=p),b||(g[b++]=0),g.length=b,g}},8210(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,c=s-f,g=u-f,b=l-c,h=b+g;return h?[h,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,g=new Array(c),b=0,h=0,_=0,T=Math.abs,m=l[h],k=T(m),S=u[_],x=T(S),M,d;k<x?(d=m,h+=1,h<s&&(m=l[h],k=T(m))):(d=S,_+=1,_<f&&(S=u[_],x=T(S))),h<s&&k<x||_>=f?(M=m,h+=1,h<s&&(m=l[h],k=T(m))):(M=S,_+=1,_<f&&(S=u[_],x=T(S)));for(var w=M+d,y=w-M,v=d-y,A=v,p=w,D,E,R,I,z;h<s&&_<f;)k<x?(M=m,h+=1,h<s&&(m=l[h],k=T(m))):(M=S,_+=1,_<f&&(S=u[_],x=T(S))),d=A,w=M+d,y=w-M,v=d-y,v&&(g[b++]=v),D=p+w,E=D-p,R=D-E,I=w-E,z=p-R,A=z+I,p=D;for(;h<s;)M=m,d=A,w=M+d,y=w-M,v=d-y,v&&(g[b++]=v),D=p+w,E=D-p,R=D-E,I=w-E,z=p-R,A=z+I,p=D,h+=1,h<s&&(m=l[h]);for(;_<f;)M=S,d=A,w=M+d,y=w-M,v=d-y,v&&(g[b++]=v),D=p+w,E=D-p,R=D-E,I=w-E,z=p-R,A=z+I,p=D,_+=1,_<f&&(S=u[_]);return A&&(g[b++]=A),p&&(g[b++]=p),b||(g[b++]=0),g.length=b,g}},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,x=0,M=0;M<S;++M)x=Math.max(x,k[M].length)|0;return x-1}function g(k,S){for(var x=k.length,M=u.mallocUint8(x),d=0;d<x;++d)M[d]=k[d]<S|0;return M}function b(k,S){for(var x=k.length,M=S*(S+1)/2*x|0,d=u.mallocUint32(M*2),w=0,y=0;y<x;++y)for(var v=k[y],S=v.length,A=0;A<S;++A)for(var p=0;p<A;++p){var D=v[p],E=v[A];d[w++]=Math.min(D,E)|0,d[w++]=Math.max(D,E)|0}var R=w/2|0;s(l(d,[R,2]));for(var I=2,y=2;y<w;y+=2)d[y-2]===d[y]&&d[y-1]===d[y+1]||(d[I++]=d[y],d[I++]=d[y+1]);return l(d,[I/2|0,2])}function h(k,S,x,M){for(var d=k.data,w=k.shape[0],y=u.mallocDouble(w),v=0,A=0;A<w;++A){var p=d[2*A],D=d[2*A+1];if(x[p]!==x[D]){var E=S[p],R=S[D];d[2*v]=p,d[2*v+1]=D,y[v++]=(R-M)/(R-E)}}return k.shape[0]=v,l(y,[v])}function _(k,S){var x=u.mallocInt32(S*2),M=k.shape[0],d=k.data;x[0]=0;for(var w=0,y=0;y<M;++y){var v=d[2*y];if(v!==w){for(x[2*w+1]=y;++w<v;)x[2*w]=y,x[2*w+1]=y;x[2*w]=y}}for(x[2*w+1]=M;++w<S;)x[2*w]=x[2*w+1]=M;return x}function T(k){for(var S=k.shape[0]|0,x=k.data,M=new Array(S),d=0;d<S;++d)M[d]=[x[2*d],x[2*d+1]];return M}function m(k,S,x,M){x=x||0,typeof M=="undefined"&&(M=c(k));var d=k.length;if(d===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var w=g(S,+x),y=b(k,M),v=h(y,S,w,+x),A=_(y,S.length|0),p=f(M)(k,y.data,A,w),D=T(y),E=[].slice.call(v.data,0,v.shape[0]);return u.free(w),u.free(y.data),u.free(v.data),u.free(A),{cells:p,vertexIds:D,vertexWeights:E}}},1570(a){"use strict";a.exports=i;var o=[function(){function u(f,c,g,b){for(var h=Math.min(g,b)|0,_=Math.max(g,b)|0,T=f[2*h],m=f[2*h+1];T<m;){var k=T+m>>1,S=c[2*k+1];if(S===_)return k;_<S?m=k:T=k+1}return T}function s(f,c,g,b){for(var h=f.length,_=[],T=0;T<h;++T)var m=f[T],k=m.length;return _}return s},function(){function u(f,c,g,b){for(var h=Math.min(g,b)|0,_=Math.max(g,b)|0,T=f[2*h],m=f[2*h+1];T<m;){var k=T+m>>1,S=c[2*k+1];if(S===_)return k;_<S?m=k:T=k+1}return T}function s(f,c,g,b){for(var h=f.length,_=[],T=0;T<h;++T){var m=f[T],k=m.length;if(k===2){var S=(b[m[0]]<<0)+(b[m[1]]<<1);if(S===0||S===3)continue;switch(S){case 0:break;case 1:_.push([u(g,c,m[0],m[1])]);break;case 2:_.push([u(g,c,m[1],m[0])]);break;case 3:break}}}return _}return s},function(){function u(f,c,g,b){for(var h=Math.min(g,b)|0,_=Math.max(g,b)|0,T=f[2*h],m=f[2*h+1];T<m;){var k=T+m>>1,S=c[2*k+1];if(S===_)return k;_<S?m=k:T=k+1}return T}function s(f,c,g,b){for(var h=f.length,_=[],T=0;T<h;++T){var m=f[T],k=m.length;if(k===3){var S=(b[m[0]]<<0)+(b[m[1]]<<1)+(b[m[2]]<<2);if(S===0||S===7)continue;switch(S){case 0:break;case 1:_.push([u(g,c,m[0],m[2]),u(g,c,m[0],m[1])]);break;case 2:_.push([u(g,c,m[1],m[0]),u(g,c,m[1],m[2])]);break;case 3:_.push([u(g,c,m[0],m[2]),u(g,c,m[1],m[2])]);break;case 4:_.push([u(g,c,m[2],m[1]),u(g,c,m[2],m[0])]);break;case 5:_.push([u(g,c,m[2],m[1]),u(g,c,m[0],m[1])]);break;case 6:_.push([u(g,c,m[1],m[0]),u(g,c,m[2],m[0])]);break;case 7:break}}else if(k===2){var S=(b[m[0]]<<0)+(b[m[1]]<<1);if(S===0||S===3)continue;switch(S){case 0:break;case 1:_.push([u(g,c,m[0],m[1])]);break;case 2:_.push([u(g,c,m[1],m[0])]);break;case 3:break}}}return _}return s},function(){function u(f,c,g,b){for(var h=Math.min(g,b)|0,_=Math.max(g,b)|0,T=f[2*h],m=f[2*h+1];T<m;){var k=T+m>>1,S=c[2*k+1];if(S===_)return k;_<S?m=k:T=k+1}return T}function s(f,c,g,b){for(var h=f.length,_=[],T=0;T<h;++T){var m=f[T],k=m.length;if(k===4){var S=(b[m[0]]<<0)+(b[m[1]]<<1)+(b[m[2]]<<2)+(b[m[3]]<<3);if(S===0||S===15)continue;switch(S){case 0:break;case 1:_.push([u(g,c,m[0],m[1]),u(g,c,m[0],m[2]),u(g,c,m[0],m[3])]);break;case 2:_.push([u(g,c,m[1],m[2]),u(g,c,m[1],m[0]),u(g,c,m[1],m[3])]);break;case 3:_.push([u(g,c,m[1],m[2]),u(g,c,m[0],m[2]),u(g,c,m[0],m[3])],[u(g,c,m[1],m[3]),u(g,c,m[1],m[2]),u(g,c,m[0],m[3])]);break;case 4:_.push([u(g,c,m[2],m[0]),u(g,c,m[2],m[1]),u(g,c,m[2],m[3])]);break;case 5:_.push([u(g,c,m[0],m[1]),u(g,c,m[2],m[1]),u(g,c,m[0],m[3])],[u(g,c,m[2],m[1]),u(g,c,m[2],m[3]),u(g,c,m[0],m[3])]);break;case 6:_.push([u(g,c,m[2],m[0]),u(g,c,m[1],m[0]),u(g,c,m[1],m[3])],[u(g,c,m[2],m[3]),u(g,c,m[2],m[0]),u(g,c,m[1],m[3])]);break;case 7:_.push([u(g,c,m[0],m[3]),u(g,c,m[1],m[3]),u(g,c,m[2],m[3])]);break;case 8:_.push([u(g,c,m[3],m[1]),u(g,c,m[3],m[0]),u(g,c,m[3],m[2])]);break;case 9:_.push([u(g,c,m[3],m[1]),u(g,c,m[0],m[1]),u(g,c,m[0],m[2])],[u(g,c,m[3],m[2]),u(g,c,m[3],m[1]),u(g,c,m[0],m[2])]);break;case 10:_.push([u(g,c,m[1],m[0]),u(g,c,m[3],m[0]),u(g,c,m[1],m[2])],[u(g,c,m[3],m[0]),u(g,c,m[3],m[2]),u(g,c,m[1],m[2])]);break;case 11:_.push([u(g,c,m[1],m[2]),u(g,c,m[0],m[2]),u(g,c,m[3],m[2])]);break;case 12:_.push([u(g,c,m[3],m[0]),u(g,c,m[2],m[0]),u(g,c,m[2],m[1])],[u(g,c,m[3],m[1]),u(g,c,m[3],m[0]),u(g,c,m[2],m[1])]);break;case 13:_.push([u(g,c,m[0],m[1]),u(g,c,m[2],m[1]),u(g,c,m[3],m[1])]);break;case 14:_.push([u(g,c,m[2],m[0]),u(g,c,m[1],m[0]),u(g,c,m[3],m[0])]);break;case 15:break}}else if(k===3){var S=(b[m[0]]<<0)+(b[m[1]]<<1)+(b[m[2]]<<2);if(S===0||S===7)continue;switch(S){case 0:break;case 1:_.push([u(g,c,m[0],m[2]),u(g,c,m[0],m[1])]);break;case 2:_.push([u(g,c,m[1],m[0]),u(g,c,m[1],m[2])]);break;case 3:_.push([u(g,c,m[0],m[2]),u(g,c,m[1],m[2])]);break;case 4:_.push([u(g,c,m[2],m[1]),u(g,c,m[2],m[0])]);break;case 5:_.push([u(g,c,m[2],m[1]),u(g,c,m[0],m[1])]);break;case 6:_.push([u(g,c,m[1],m[0]),u(g,c,m[2],m[0])]);break;case 7:break}}else if(k===2){var S=(b[m[0]]<<0)+(b[m[1]]<<1);if(S===0||S===3)continue;switch(S){case 0:break;case 1:_.push([u(g,c,m[0],m[1])]);break;case 2:_.push([u(g,c,m[1],m[0])]);break;case 3:break}}}return _}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 p=0,D=Math.max,E=0,R=A.length;E<R;++E)p=D(p,A[E].length);return p-1}l=f;function c(A){for(var p=-1,D=Math.max,E=0,R=A.length;E<R;++E)for(var I=A[E],z=0,F=I.length;z<F;++z)p=D(p,I[z]);return p+1}l=c;function g(A){for(var p=new Array(A.length),D=0,E=A.length;D<E;++D)p[D]=A[D].slice(0);return p}l=g;function b(A,p){var D=A.length,E=A.length-p.length,R=Math.min;if(E)return E;switch(D){case 0:return 0;case 1:return A[0]-p[0];case 2:var P=A[0]+A[1]-p[0]-p[1];return P||R(A[0],A[1])-R(p[0],p[1]);case 3:var I=A[0]+A[1],z=p[0]+p[1];if(P=I+A[2]-(z+p[2]),P)return P;var F=R(A[0],A[1]),L=R(p[0],p[1]),P=R(F,A[2])-R(L,p[2]);return P||R(F+A[2],I)-R(L+p[2],z);default:var B=A.slice(0);B.sort();var O=p.slice(0);O.sort();for(var G=0;G<D;++G)if(E=B[G]-O[G],E)return E;return 0}}o.Fw=b;function h(A,p){return b(A[0],p[0])}function _(A,p){if(p){for(var D=A.length,E=new Array(D),R=0;R<D;++R)E[R]=[A[R],p[R]];E.sort(h);for(var R=0;R<D;++R)A[R]=E[R][0],p[R]=E[R][1];return A}else return A.sort(b),A}l=_;function T(A){if(A.length===0)return[];for(var p=1,D=A.length,E=1;E<D;++E){var R=A[E];if(b(R,A[E-1])){if(E===p){p++;continue}A[p++]=R}}return A.length=p,A}l=T;function m(A,p){for(var D=0,E=A.length-1,R=-1;D<=E;){var I=D+E>>1,z=b(A[I],p);z<=0?(z===0&&(R=I),D=I+1):z>0&&(E=I-1)}return R}l=m;function k(A,p){for(var D=new Array(A.length),E=0,R=D.length;E<R;++E)D[E]=[];for(var I=[],E=0,z=p.length;E<z;++E)for(var F=p[E],L=F.length,P=1,B=1<<L;P<B;++P){I.length=u.popCount(P);for(var O=0,G=0;G<L;++G)P&1<<G&&(I[O++]=F[G]);var J=m(A,I);if(!(J<0))for(;D[J++].push(E),!(J>=A.length||b(A[J],I)!==0););}return D}l=k;function S(A,p){if(!p)return k(T(M(A,0)),A,0);for(var D=new Array(p),E=0;E<p;++E)D[E]=[];for(var E=0,R=A.length;E<R;++E)for(var I=A[E],z=0,F=I.length;z<F;++z)D[I[z]].push(E);return D}l=S;function x(A){for(var p=[],D=0,E=A.length;D<E;++D)for(var R=A[D],I=R.length|0,z=1,F=1<<I;z<F;++z){for(var L=[],P=0;P<I;++P)z>>>P&1&&L.push(R[P]);p.push(L)}return _(p)}l=x;function M(A,p){if(p<0)return[];for(var D=[],E=(1<<p+1)-1,R=0;R<A.length;++R)for(var I=A[R],z=E;z<1<<I.length;z=u.nextCombination(z)){for(var F=new Array(p+1),L=0,P=0;P<I.length;++P)z&1<<P&&(F[L++]=I[P]);D.push(F)}return _(D)}l=M;function d(A){for(var p=[],D=0,E=A.length;D<E;++D)for(var R=A[D],I=0,z=R.length;I<z;++I){for(var F=new Array(R.length-1),L=0,P=0;L<z;++L)L!==I&&(F[P++]=R[L]);p.push(F)}return _(p)}l=d;function w(A,p){for(var D=new s(p),E=0;E<A.length;++E)for(var R=A[E],I=0;I<R.length;++I)for(var z=I+1;z<R.length;++z)D.link(R[I],R[z]);for(var F=[],L=D.ranks,E=0;E<L.length;++E)L[E]=-1;for(var E=0;E<A.length;++E){var P=D.find(A[E][0]);L[P]<0?(L[P]=F.length,F.push([A[E].slice(0)])):F[L[P]].push(A[E].slice(0))}return F}function y(A){for(var p=T(_(M(A,0))),D=new s(p.length),E=0;E<A.length;++E)for(var R=A[E],I=0;I<R.length;++I)for(var z=m(p,[R[I]]),F=I+1;F<R.length;++F)D.link(z,m(p,[R[F]]));for(var L=[],P=D.ranks,E=0;E<P.length;++E)P[E]=-1;for(var E=0;E<A.length;++E){var B=D.find(m(p,[A[E][0]]));P[B]<0?(P[B]=L.length,L.push([A[E].slice(0)])):L[P[B]].push(A[E].slice(0))}return L}function v(A,p){return p?w(A,p):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,g=f,b=7;for(c>>>=1;c;c>>>=1)g<<=1,g|=c&1,--b;s[f]=g<<b&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,p=Math.max,D=0,E=v.length;D<E;++D)A=p(A,v[D].length);return A-1}o.dimension=s;function f(v){for(var A=-1,p=Math.max,D=0,E=v.length;D<E;++D)for(var R=v[D],I=0,z=R.length;I<z;++I)A=p(A,R[I]);return A+1}o.countVertices=f;function c(v){for(var A=new Array(v.length),p=0,D=v.length;p<D;++p)A[p]=v[p].slice(0);return A}o.cloneCells=c;function g(v,A){var p=v.length,D=v.length-A.length,E=Math.min;if(D)return D;switch(p){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],I=A[0]+A[1];if(L=R+v[2]-(I+A[2]),L)return L;var z=E(v[0],v[1]),F=E(A[0],A[1]),L=E(z,v[2])-E(F,A[2]);return L||E(z+v[2],R)-E(F+A[2],I);default:var P=v.slice(0);P.sort();var B=A.slice(0);B.sort();for(var O=0;O<p;++O)if(D=P[O]-B[O],D)return D;return 0}}o.compareCells=g;function b(v,A){return g(v[0],A[0])}function h(v,A){if(A){for(var p=v.length,D=new Array(p),E=0;E<p;++E)D[E]=[v[E],A[E]];D.sort(b);for(var E=0;E<p;++E)v[E]=D[E][0],A[E]=D[E][1];return v}else return v.sort(g),v}o.normalize=h;function _(v){if(v.length===0)return[];for(var A=1,p=v.length,D=1;D<p;++D){var E=v[D];if(g(E,v[D-1])){if(D===A){A++;continue}v[A++]=E}}return v.length=A,v}o.unique=_;function T(v,A){for(var p=0,D=v.length-1,E=-1;p<=D;){var R=p+D>>1,I=g(v[R],A);I<=0?(I===0&&(E=R),p=R+1):I>0&&(D=R-1)}return E}o.findCell=T;function m(v,A){for(var p=new Array(v.length),D=0,E=p.length;D<E;++D)p[D]=[];for(var R=[],D=0,I=A.length;D<I;++D)for(var z=A[D],F=z.length,L=1,P=1<<F;L<P;++L){R.length=l.popCount(L);for(var B=0,O=0;O<F;++O)L&1<<O&&(R[B++]=z[O]);var G=T(v,R);if(!(G<0))for(;p[G++].push(D),!(G>=v.length||g(v[G],R)!==0););}return p}o.incidence=m;function k(v,A){if(!A)return m(_(x(v,0)),v,0);for(var p=new Array(A),D=0;D<A;++D)p[D]=[];for(var D=0,E=v.length;D<E;++D)for(var R=v[D],I=0,z=R.length;I<z;++I)p[R[I]].push(D);return p}o.dual=k;function S(v){for(var A=[],p=0,D=v.length;p<D;++p)for(var E=v[p],R=E.length|0,I=1,z=1<<R;I<z;++I){for(var F=[],L=0;L<R;++L)I>>>L&1&&F.push(E[L]);A.push(F)}return h(A)}o.explode=S;function x(v,A){if(A<0)return[];for(var p=[],D=(1<<A+1)-1,E=0;E<v.length;++E)for(var R=v[E],I=D;I<1<<R.length;I=l.nextCombination(I)){for(var z=new Array(A+1),F=0,L=0;L<R.length;++L)I&1<<L&&(z[F++]=R[L]);p.push(z)}return h(p)}o.skeleton=x;function M(v){for(var A=[],p=0,D=v.length;p<D;++p)for(var E=v[p],R=0,I=E.length;R<I;++R){for(var z=new Array(E.length-1),F=0,L=0;F<I;++F)F!==R&&(z[L++]=E[F]);A.push(z)}return h(A)}o.boundary=M;function d(v,A){for(var p=new u(A),D=0;D<v.length;++D)for(var E=v[D],R=0;R<E.length;++R)for(var I=R+1;I<E.length;++I)p.link(E[R],E[I]);for(var z=[],F=p.ranks,D=0;D<F.length;++D)F[D]=-1;for(var D=0;D<v.length;++D){var L=p.find(v[D][0]);F[L]<0?(F[L]=z.length,z.push([v[D].slice(0)])):z[F[L]].push(v[D].slice(0))}return z}function w(v){for(var A=_(h(x(v,0))),p=new u(A.length),D=0;D<v.length;++D)for(var E=v[D],R=0;R<E.length;++R)for(var I=T(A,[E[R]]),z=R+1;z<E.length;++z)p.link(I,T(A,[E[z]]));for(var F=[],L=p.ranks,D=0;D<L.length;++D)L[D]=-1;for(var D=0;D<v.length;++D){var P=p.find(T(A,[v[D][0]]));L[P]<0?(L[P]=F.length,F.push([v[D].slice(0)])):F[L[P]].push(v[D].slice(0))}return F}function y(v,A){return A?d(v,A):w(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,g=f[u],b=f[s];g<b?c[u]=s:b<g?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,g,b){var h=Math.abs(l(c,g,b)),_=Math.sqrt(Math.pow(g[0]-b[0],2)+Math.pow(g[1]-b[1],2));return h/_}function f(c,g,b){for(var h=g.length,_=c.length,T=new Array(h),m=new Array(h),k=new Array(h),S=new Array(h),x=0;x<h;++x)T[x]=m[x]=-1,k[x]=1/0,S[x]=!1;for(var x=0;x<_;++x){var M=c[x];if(M.length!==2)throw new Error("Input must be a graph");var d=M[1],w=M[0];m[w]!==-1?m[w]=-2:m[w]=d,T[d]!==-1?T[d]=-2:T[d]=w}function y(q){if(S[q])return 1/0;var Z=T[q],re=m[q];return Z<0||re<0?1/0:s(g[q],g[Z],g[re])}function v(q,Z){var re=F[q],$=F[Z];F[q]=$,F[Z]=re,L[re]=Z,L[$]=q}function A(q){return k[F[q]]}function p(q){return q&1?q-1>>1:(q>>1)-1}function D(q){for(var Z=A(q);;){var re=Z,$=2*q+1,ae=2*(q+1),Q=q;if($<B){var te=A($);te<re&&(Q=$,re=te)}if(ae<B){var ue=A(ae);ue<re&&(Q=ae)}if(Q===q)return q;v(q,Q),q=Q}}function E(q){for(var Z=A(q);q>0;){var re=p(q);if(re>=0){var $=A(re);if(Z<$){v(q,re),q=re;continue}}return q}}function R(){if(B>0){var q=F[0];return v(0,B-1),B-=1,D(0),q}return-1}function I(q,Z){var re=F[q];return k[re]===Z?q:(k[re]=-1/0,E(q),R(),k[re]=Z,B+=1,E(B-1))}function z(q){if(!S[q]){S[q]=!0;var Z=T[q],re=m[q];T[re]>=0&&(T[re]=Z),m[Z]>=0&&(m[Z]=re),L[Z]>=0&&I(L[Z],y(Z)),L[re]>=0&&I(L[re],y(re))}}for(var F=[],L=new Array(h),x=0;x<h;++x){var P=k[x]=y(x);P<1/0?(L[x]=F.length,F.push(x)):L[x]=-1}for(var B=F.length,x=B>>1;x>=0;--x)D(x);for(;;){var O=R();if(O<0||k[O]>b)break;z(O)}for(var G=[],x=0;x<h;++x)S[x]||(L[x]=G.length,G.push(g[x].slice()));var J=G.length;function j(q,Z){if(q[Z]<0)return Z;var re=Z,$=Z;do{var ae=q[$];if(!S[$]||ae<0||ae===$||($=ae,ae=q[$],!S[$]||ae<0||ae===$))break;$=ae,re=q[re]}while(re!==$);for(var Q=Z;Q!==$;Q=q[Q])q[Q]=$;return $}var V=[];return c.forEach(function(q){var Z=j(T,q[0]),re=j(m,q[1]);if(Z>=0&&re>=0&&Z!==re){var $=L[Z],ae=L[re];$!==ae&&V.push([$,ae])}}),u.unique(u.normalize(V)),{positions:G,edges:V}}},1303(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,c){var g,b;if(c[0][0]<c[1][0])g=c[0],b=c[1];else if(c[0][0]>c[1][0])g=c[1],b=c[0];else{var h=Math.min(f[0][1],f[1][1]),_=Math.max(f[0][1],f[1][1]),T=Math.min(c[0][1],c[1][1]),m=Math.max(c[0][1],c[1][1]);return _<T?_-T:h>m?h-m:_-m}var k,S;f[0][1]<f[1][1]?(k=f[0],S=f[1]):(k=f[1],S=f[0]);var x=l(b,g,k);return x||(x=l(b,g,S),x)?x:S-b}function s(f,c){var g,b;if(c[0][0]<c[1][0])g=c[0],b=c[1];else if(c[0][0]>c[1][0])g=c[1],b=c[0];else return u(c,f);var h,_;if(f[0][0]<f[1][0])h=f[0],_=f[1];else if(f[0][0]>f[1][0])h=f[1],_=f[0];else return-u(f,c);var T=l(g,b,_),m=l(g,b,h);if(T<0){if(m<=0)return T}else if(T>0){if(m>=0)return T}else if(m)return m;if(T=l(_,h,b),m=l(_,h,g),T<0){if(m<=0)return T}else if(T>0){if(m>=0)return T}else if(m)return m;return b[0]-_[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,x){this.slabs=k,this.coordinates=S,this.horizontal=x}var g=c.prototype;function b(k,S){return k.y-S}function h(k,S){for(var x=null;k;){var M=k.key,d,w;M[0][0]<M[1][0]?(d=M[0],w=M[1]):(d=M[1],w=M[0]);var y=s(d,w,S);if(y<0)k=k.left;else if(y>0)if(S[0]!==M[1][0])x=k,k=k.right;else{var v=h(k.right,S);if(v)return v;k=k.left}else{if(S[0]!==M[1][0])return k;var v=h(k.right,S);if(v)return v;k=k.left}}return x}g.castUp=function(k){var S=l.le(this.coordinates,k[0]);if(S<0)return-1;var x=this.slabs[S],M=h(this.slabs[S],k),d=-1;if(M&&(d=M.value),this.coordinates[S]===k[0]){var w=null;if(M&&(w=M.key),S>0){var y=h(this.slabs[S-1],k);y&&(w?f(y.key,w)>0&&(w=y.key,d=y.value):(d=y.value,w=y.key))}var v=this.horizontal[S];if(v.length>0){var A=l.ge(v,k[1],b);if(A<v.length){var p=v[A];if(k[1]===p.y){if(p.closed)return p.index;for(;A<v.length-1&&v[A+1].y===k[1];)if(A=A+1,p=v[A],p.closed)return p.index;if(p.y===k[1]&&!p.start){if(A=A+1,A>=v.length)return d;p=v[A]}}if(p.start)if(w){var D=s(w[0],w[1],[k[0],p.y]);w[0][0]>w[1][0]&&(D=-D),D>0&&(d=p.index)}else d=p.index;else p.y!==k[1]&&(d=p.index)}}}return d};function _(k,S,x,M){this.y=k,this.index=S,this.start=x,this.closed=M}function T(k,S,x,M){this.x=k,this.segment=S,this.create=x,this.index=M}function m(k){for(var S=k.length,x=2*S,M=new Array(x),d=0;d<S;++d){var w=k[d],y=w[0][0]<w[1][0];M[2*d]=new T(w[0][0],w,y,d),M[2*d+1]=new T(w[1][0],w,!y,d)}M.sort(function(F,L){var P=F.x-L.x;return P||(P=F.create-L.create,P)?P:Math.min(F.segment[0][1],F.segment[1][1])-Math.min(L.segment[0][1],L.segment[1][1])});for(var v=u(f),A=[],p=[],D=[],E=-1/0,d=0;d<x;){for(var R=M[d].x,I=[];d<x;){var z=M[d];if(z.x!==R)break;d+=1,z.segment[0][0]===z.x&&z.segment[1][0]===z.x?z.create&&(z.segment[0][1]<z.segment[1][1]?(I.push(new _(z.segment[0][1],z.index,!0,!0)),I.push(new _(z.segment[1][1],z.index,!1,!1))):(I.push(new _(z.segment[1][1],z.index,!0,!1)),I.push(new _(z.segment[0][1],z.index,!1,!0)))):z.create?v=v.insert(z.segment,z.index):v=v.remove(z.segment)}A.push(v.root),p.push(R),D.push(I)}return new c(A,p,D)}},5202(a,o,i){"use strict";var l=i(1944),u=i(8210);a.exports=c,a.exports.positive=g,a.exports.negative=b;function s(h,_){var T=u(l(h,_),[_[_.length-1]]);return T[T.length-1]}function f(h,_,T,m){var k=m-_,S=-_/k;S<0?S=0:S>1&&(S=1);for(var x=1-S,M=h.length,d=new Array(M),w=0;w<M;++w)d[w]=S*h[w]+x*T[w];return d}function c(h,_){for(var T=[],m=[],k=s(h[h.length-1],_),S=h[h.length-1],x=h[0],M=0;M<h.length;++M,S=x){x=h[M];var d=s(x,_);if(k<0&&d>0||k>0&&d<0){var w=f(S,d,x,k);T.push(w),m.push(w.slice())}d<0?m.push(x.slice()):d>0?T.push(x.slice()):(T.push(x.slice()),m.push(x.slice())),k=d}return{positive:T,negative:m}}function g(h,_){for(var T=[],m=s(h[h.length-1],_),k=h[h.length-1],S=h[0],x=0;x<h.length;++x,k=S){S=h[x];var M=s(S,_);(m<0&&M>0||m>0&&M<0)&&T.push(f(k,M,S,m)),M>=0&&T.push(S.slice()),m=M}return T}function b(h,_){for(var T=[],m=s(h[h.length-1],_),k=h[h.length-1],S=h[0],x=0;x<h.length;++x,k=S){S=h[x];var M=s(S,_);(m<0&&M>0||m>0&&M<0)&&T.push(f(k,M,S,m)),M<=0&&T.push(S.slice()),m=M}return T}},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(h){return c(b(h),arguments)}function f(h,_){return s.apply(null,[h].concat(_||[]))}function c(h,_){var T=1,m=h.length,k,S="",x,M,d,w,y,v,A,p;for(x=0;x<m;x++)if(typeof h[x]=="string")S+=h[x];else if(typeof h[x]=="object"){if(d=h[x],d.keys)for(k=_[T],M=0;M<d.keys.length;M++){if(k==null)throw new Error(s('[sprintf] Cannot access property "%s" of undefined value "%s"',d.keys[M],d.keys[M-1]));k=k[d.keys[M]]}else d.param_no?k=_[d.param_no]:k=_[T++];if(u.not_type.test(d.type)&&u.not_primitive.test(d.type)&&k instanceof Function&&(k=k()),u.numeric_arg.test(d.type)&&typeof k!="number"&&isNaN(k))throw new TypeError(s("[sprintf] expecting number but found %T",k));switch(u.number.test(d.type)&&(A=k>=0),d.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,d.width?parseInt(d.width):0);break;case"e":k=d.precision?parseFloat(k).toExponential(d.precision):parseFloat(k).toExponential();break;case"f":k=d.precision?parseFloat(k).toFixed(d.precision):parseFloat(k);break;case"g":k=d.precision?String(Number(k.toPrecision(d.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=d.precision?k.substring(0,d.precision):k;break;case"t":k=String(!!k),k=d.precision?k.substring(0,d.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=d.precision?k.substring(0,d.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=d.precision?k.substring(0,d.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(d.type)?S+=k:(u.number.test(d.type)&&(!A||d.sign)?(p=A?"+":"-",k=k.toString().replace(u.sign,"")):p="",y=d.pad_char?d.pad_char==="0"?"0":d.pad_char.charAt(1):" ",v=d.width-(p+k).length,w=d.width&&v>0?y.repeat(v):"",S+=d.align?p+k+w:y==="0"?p+w+k:w+p+k)}return S}var g=Object.create(null);function b(h){if(g[h])return g[h];for(var _=h,T,m=[],k=0;_;){if((T=u.text.exec(_))!==null)m.push(T[0]);else if((T=u.modulo.exec(_))!==null)m.push("%");else if((T=u.placeholder.exec(_))!==null){if(T[2]){k|=1;var S=[],x=T[2],M=[];if((M=u.key.exec(x))!==null)for(S.push(M[1]);(x=x.substring(M[0].length))!=="";)if((M=u.key_access.exec(x))!==null)S.push(M[1]);else if((M=u.index_access.exec(x))!==null)S.push(M[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");T[2]=S}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");m.push({placeholder:T[0],param_no:T[1],keys:T[2],sign:T[3],pad_char:T[4],align:T[5],width:T[6],precision:T[7],type:T[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");_=_.substring(T[0].length)}return g[h]=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=b;var l=i(2640),u=i(781),s={"2d":function(h,_,T){var m=h({order:_,scalarArguments:3,getters:T==="generic"?[0]:void 0,phase:function(S,x,M,d){return S>d|0},vertex:function(S,x,M,d,w,y,v,A,p,D,E,R,I){var z=(v<<0)+(A<<1)+(p<<2)+(D<<3)|0;if(!(z===0||z===15))switch(z){case 0:E.push([S-.5,x-.5]);break;case 1:E.push([S-.25-.25*(d+M-2*I)/(M-d),x-.25-.25*(w+M-2*I)/(M-w)]);break;case 2:E.push([S-.75-.25*(-d-M+2*I)/(d-M),x-.25-.25*(y+d-2*I)/(d-y)]);break;case 3:E.push([S-.5,x-.5-.5*(w+M+y+d-4*I)/(M-w+d-y)]);break;case 4:E.push([S-.25-.25*(y+w-2*I)/(w-y),x-.75-.25*(-w-M+2*I)/(w-M)]);break;case 5:E.push([S-.5-.5*(d+M+y+w-4*I)/(M-d+w-y),x-.5]);break;case 6:E.push([S-.5-.25*(-d-M+y+w)/(d-M+w-y),x-.5-.25*(-w-M+y+d)/(w-M+d-y)]);break;case 7:E.push([S-.75-.25*(y+w-2*I)/(w-y),x-.75-.25*(y+d-2*I)/(d-y)]);break;case 8:E.push([S-.75-.25*(-y-w+2*I)/(y-w),x-.75-.25*(-y-d+2*I)/(y-d)]);break;case 9:E.push([S-.5-.25*(d+M+-y-w)/(M-d+y-w),x-.5-.25*(w+M+-y-d)/(M-w+y-d)]);break;case 10:E.push([S-.5-.5*(-d-M+-y-w+4*I)/(d-M+y-w),x-.5]);break;case 11:E.push([S-.25-.25*(-y-w+2*I)/(y-w),x-.75-.25*(w+M-2*I)/(M-w)]);break;case 12:E.push([S-.5,x-.5-.5*(-w-M+-y-d+4*I)/(w-M+y-d)]);break;case 13:E.push([S-.75-.25*(d+M-2*I)/(M-d),x-.25-.25*(-y-d+2*I)/(y-d)]);break;case 14:E.push([S-.25-.25*(-d-M+2*I)/(d-M),x-.25-.25*(-w-M+2*I)/(w-M)]);break;case 15:E.push([S-.5,x-.5]);break}},cell:function(S,x,M,d,w,y,v,A,p){w?A.push([S,x]):A.push([x,S])}});return function(k,S){var x=[],M=[];return m(k,x,M,S),{positions:x,cells:M}}}};function f(h,_){var T=h.length+"d",m=s[T];if(m)return m(l,h,_)}function c(h,_){for(var T=u(h,_),m=T.length,k=new Array(m),S=new Array(m),x=0;x<m;++x)k[x]=[T[x]],S[x]=[x];return{positions:k,cells:S}}var g={};function b(h,k){if(h.dimension<=0)return{positions:[],cells:[]};if(h.dimension===1)return c(h,k);var T=h.order.join()+"-"+h.dtype,m=g[T],k=+k||0;return m||(m=g[T]=f(h.order,h.dtype)),m(h,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),g=i(244);function b(x,M,d){return Math.sqrt(Math.pow(x,2)+Math.pow(M,2)+Math.pow(d,2))}function h(x){return Math.min(1,Math.max(-1,x))}function _(x){var M=Math.abs(x[0]),d=Math.abs(x[1]),w=Math.abs(x[2]),y=[0,0,0];M>Math.max(d,w)?y[2]=1:d>Math.max(M,w)?y[0]=1:y[1]=1;for(var v=0,A=0,p=0;p<3;++p)v+=x[p]*x[p],A+=y[p]*x[p];for(var p=0;p<3;++p)y[p]-=A/v*x[p];return c(y,y),y}function T(x,M,d,w,y,v,A,p){this.center=l(d),this.up=l(w),this.right=l(y),this.radius=l([v]),this.angle=l([A,p]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(x,M),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var D=0;D<16;++D)this.computedMatrix[D]=.5;this.recalcMatrix(0)}var m=T.prototype;m.setDistanceLimits=function(x,M){x>0?x=Math.log(x):x=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,x),this.radius.bounds[0][0]=x,this.radius.bounds[1][0]=M},m.getDistanceLimits=function(x){var M=this.radius.bounds[0];return x?(x[0]=Math.exp(M[0][0]),x[1]=Math.exp(M[1][0]),x):[Math.exp(M[0][0]),Math.exp(M[1][0])]},m.recalcMatrix=function(x){this.center.curve(x),this.up.curve(x),this.right.curve(x),this.radius.curve(x),this.angle.curve(x);for(var M=this.computedUp,d=this.computedRight,w=0,y=0,v=0;v<3;++v)y+=M[v]*d[v],w+=M[v]*M[v];for(var A=Math.sqrt(w),p=0,v=0;v<3;++v)d[v]-=M[v]*y/w,p+=d[v]*d[v],M[v]/=A;for(var D=Math.sqrt(p),v=0;v<3;++v)d[v]/=D;var E=this.computedToward;f(E,M,d),c(E,E);for(var R=Math.exp(this.computedRadius[0]),I=this.computedAngle[0],z=this.computedAngle[1],F=Math.cos(I),L=Math.sin(I),P=Math.cos(z),B=Math.sin(z),O=this.computedCenter,G=F*P,J=L*P,j=B,V=-F*B,q=-L*B,Z=P,re=this.computedEye,$=this.computedMatrix,v=0;v<3;++v){var ae=G*d[v]+J*E[v]+j*M[v];$[4*v+1]=V*d[v]+q*E[v]+Z*M[v],$[4*v+2]=ae,$[4*v+3]=0}var Q=$[1],te=$[5],ue=$[9],ee=$[2],ie=$[6],fe=$[10],we=te*fe-ue*ie,Te=ue*ee-Q*fe,ke=Q*ie-te*ee,ge=b(we,Te,ke);we/=ge,Te/=ge,ke/=ge,$[0]=we,$[4]=Te,$[8]=ke;for(var v=0;v<3;++v)re[v]=O[v]+$[2+4*v]*R;for(var v=0;v<3;++v){for(var p=0,Ee=0;Ee<3;++Ee)p+=$[v+4*Ee]*re[Ee];$[12+v]=-p}$[15]=1},m.getMatrix=function(x,M){this.recalcMatrix(x);var d=this.computedMatrix;if(M){for(var w=0;w<16;++w)M[w]=d[w];return M}return d};var k=[0,0,0];m.rotate=function(x,M,d,w){if(this.angle.move(x,M,d),w){this.recalcMatrix(x);var y=this.computedMatrix;k[0]=y[2],k[1]=y[6],k[2]=y[10];for(var v=this.computedUp,A=this.computedRight,p=this.computedToward,D=0;D<3;++D)y[4*D]=v[D],y[4*D+1]=A[D],y[4*D+2]=p[D];s(y,y,w,k);for(var D=0;D<3;++D)v[D]=y[4*D],A[D]=y[4*D+1];this.up.set(x,v[0],v[1],v[2]),this.right.set(x,A[0],A[1],A[2])}},m.pan=function(x,M,d,w){M=M||0,d=d||0,w=w||0,this.recalcMatrix(x);var y=this.computedMatrix,v=Math.exp(this.computedRadius[0]),A=y[1],p=y[5],D=y[9],E=b(A,p,D);A/=E,p/=E,D/=E;var R=y[0],I=y[4],z=y[8],F=R*A+I*p+z*D;R-=A*F,I-=p*F,z-=D*F;var L=b(R,I,z);R/=L,I/=L,z/=L;var P=R*M+A*d,B=I*M+p*d,O=z*M+D*d;this.center.move(x,P,B,O);var G=Math.exp(this.computedRadius[0]);G=Math.max(1e-4,G+w),this.radius.set(x,Math.log(G))},m.translate=function(x,M,d,w){this.center.move(x,M||0,d||0,w||0)},m.setMatrix=function(x,M,d,w){var y=1;typeof d=="number"&&(y=d|0),(y<0||y>3)&&(y=1);var v=(y+2)%3,A=(y+1)%3;M||(this.recalcMatrix(x),M=this.computedMatrix);var p=M[y],D=M[y+4],E=M[y+8];if(w){var I=Math.abs(p),z=Math.abs(D),F=Math.abs(E),L=Math.max(I,z,F);I===L?(p=p<0?-1:1,D=E=0):F===L?(E=E<0?-1:1,p=D=0):(D=D<0?-1:1,p=E=0)}else{var R=b(p,D,E);p/=R,D/=R,E/=R}var P=M[v],B=M[v+4],O=M[v+8],G=P*p+B*D+O*E;P-=p*G,B-=D*G,O-=E*G;var J=b(P,B,O);P/=J,B/=J,O/=J;var j=D*O-E*B,V=E*P-p*O,q=p*B-D*P,Z=b(j,V,q);j/=Z,V/=Z,q/=Z,this.center.jump(x,ye,oe,de),this.radius.idle(x),this.up.jump(x,p,D,E),this.right.jump(x,P,B,O);var re,$;if(y===2){var ae=M[1],Q=M[5],te=M[9],ue=ae*P+Q*B+te*O,ee=ae*j+Q*V+te*q;Te<0?re=-Math.PI/2:re=Math.PI/2,$=Math.atan2(ee,ue)}else{var ie=M[2],fe=M[6],we=M[10],Te=ie*p+fe*D+we*E,ke=ie*P+fe*B+we*O,ge=ie*j+fe*V+we*q;re=Math.asin(h(Te)),$=Math.atan2(ge,ke)}this.angle.jump(x,$,re),this.recalcMatrix(x);var Ee=M[2],Le=M[6],se=M[10],X=this.computedMatrix;u(X,M);var K=X[15],ye=X[12]/K,oe=X[13]/K,de=X[14]/K,pe=Math.exp(this.computedRadius[0]);this.center.jump(x,ye-Ee*pe,oe-Le*pe,de-se*pe)},m.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},m.idle=function(x){this.center.idle(x),this.up.idle(x),this.right.idle(x),this.radius.idle(x),this.angle.idle(x)},m.flush=function(x){this.center.flush(x),this.up.flush(x),this.right.flush(x),this.radius.flush(x),this.angle.flush(x)},m.setDistance=function(x,M){M>0&&this.radius.set(x,Math.log(M))},m.lookAt=function(x,M,d,w){this.recalcMatrix(x),M=M||this.computedEye,d=d||this.computedCenter,w=w||this.computedUp;var y=w[0],v=w[1],A=w[2],p=b(y,v,A);if(!(p<1e-6)){y/=p,v/=p,A/=p;var D=M[0]-d[0],E=M[1]-d[1],R=M[2]-d[2],I=b(D,E,R);if(!(I<1e-6)){D/=I,E/=I,R/=I;var z=this.computedRight,F=z[0],L=z[1],P=z[2],B=y*F+v*L+A*P;F-=B*y,L-=B*v,P-=B*A;var O=b(F,L,P);if(!(O<.01&&(F=v*R-A*E,L=A*D-y*R,P=y*E-v*D,O=b(F,L,P),O<1e-6))){F/=O,L/=O,P/=O,this.up.set(x,y,v,A),this.right.set(x,F,L,P),this.center.set(x,d[0],d[1],d[2]),this.radius.set(x,Math.log(I));var G=v*P-A*L,J=A*F-y*P,j=y*L-v*F,V=b(G,J,j);G/=V,J/=V,j/=V;var q=y*D+v*E+A*R,Z=F*D+L*E+P*R,re=G*D+J*E+j*R,$=Math.asin(h(q)),ae=Math.atan2(re,Z),Q=this.angle._state,te=Q[Q.length-1],ue=Q[Q.length-2];te=te%(2*Math.PI);var ee=Math.abs(te+2*Math.PI-ae),ie=Math.abs(te-ae),fe=Math.abs(te-2*Math.PI-ae);ee<ie&&(te+=2*Math.PI),fe<ie&&(te-=2*Math.PI),this.angle.jump(this.angle.lastT(),te,ue),this.angle.set(x,ae,$)}}}};function S(x){x=x||{};var M=x.center||[0,0,0],d=x.up||[0,1,0],w=x.right||_(d),y=x.radius||1,v=x.theta||0,A=x.phi||0;if(M=[].slice.call(M,0,3),d=[].slice.call(d,0,3),c(d,d),w=[].slice.call(w,0,3),c(w,w),"eye"in x){var p=x.eye,D=[p[0]-M[0],p[1]-M[1],p[2]-M[2]];f(w,D,d),b(w[0],w[1],w[2])<1e-6?w=_(d):c(w,w),y=b(D[0],D[1],D[2]);var E=g(d,D)/y,R=g(w,D)/y;A=Math.acos(E),v=Math.acos(R)}return y=Math.log(y),new T(x.zoomMin,x.zoomMax,M,d,w,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,g=c-l,b=c-g,h=l-b,_=o*u,T=_-u,m=_-T,k=u-m,S=f-b*m,x=S-h*m,M=x-b*k,d=h*k-M;return s?(s[0]=d,s[1]=f,s):[d,f]}},9362(a){"use strict";a.exports=o;function o(i,l,u){var s=i+l,f=s-i,c=s-f,g=l-f,b=i-c;return u?(u[0]=b+g,u[1]=s,u):[b+g,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",g=typeof BigInt64Array!="undefined",b=i.g.__TYPEDARRAY_POOL;b.UINT8C||(b.UINT8C=u([32,0])),b.BIGUINT64||(b.BIGUINT64=u([32,0])),b.BIGINT64||(b.BIGINT64=u([32,0])),b.BUFFER||(b.BUFFER=u([32,0]));var h=b.DATA,_=b.BUFFER;o.free=function(F){if(s.isBuffer(F))_[l.log2(F.length)].push(F);else{if(Object.prototype.toString.call(F)!=="[object ArrayBuffer]"&&(F=F.buffer),!F)return;var L=F.length||F.byteLength,P=l.log2(L)|0;h[P].push(F)}};function T(z){if(z){var F=z.length||z.byteLength,L=l.log2(F);h[L].push(z)}}function m(z){T(z.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=T,o.freeBuffer=function(F){_[l.log2(F.length)].push(F)},o.malloc=function(F,L){if(L===void 0||L==="arraybuffer")return k(F);switch(L){case"uint8":return S(F);case"uint16":return x(F);case"uint32":return M(F);case"int8":return d(F);case"int16":return w(F);case"int32":return y(F);case"float":case"float32":return v(F);case"double":case"float64":return A(F);case"uint8_clamped":return p(F);case"bigint64":return E(F);case"biguint64":return D(F);case"buffer":return I(F);case"data":case"dataview":return R(F);default:return null}return null};function k(F){var F=l.nextPow2(F),L=l.log2(F),P=h[L];return P.length>0?P.pop():new ArrayBuffer(F)}o.mallocArrayBuffer=k;function S(z){return new Uint8Array(k(z),0,z)}o.mallocUint8=S;function x(z){return new Uint16Array(k(2*z),0,z)}o.mallocUint16=x;function M(z){return new Uint32Array(k(4*z),0,z)}o.mallocUint32=M;function d(z){return new Int8Array(k(z),0,z)}o.mallocInt8=d;function w(z){return new Int16Array(k(2*z),0,z)}o.mallocInt16=w;function y(z){return new Int32Array(k(4*z),0,z)}o.mallocInt32=y;function v(z){return new Float32Array(k(4*z),0,z)}o.mallocFloat32=o.mallocFloat=v;function A(z){return new Float64Array(k(8*z),0,z)}o.mallocFloat64=o.mallocDouble=A;function p(z){return f?new Uint8ClampedArray(k(z),0,z):S(z)}o.mallocUint8Clamped=p;function D(z){return c?new BigUint64Array(k(8*z),0,z):null}o.mallocBigUint64=D;function E(z){return g?new BigInt64Array(k(8*z),0,z):null}o.mallocBigInt64=E;function R(z){return new DataView(k(z),0,z)}o.mallocDataView=R;function I(z){z=l.nextPow2(z);var F=l.log2(z),L=_[F];return L.length>0?L.pop():new s(z)}o.mallocBuffer=I,o.clearCache=function(){for(var F=0;F<32;++F)b.UINT8[F].length=0,b.UINT16[F].length=0,b.UINT32[F].length=0,b.INT8[F].length=0,b.INT16[F].length=0,b.INT32[F].length=0,b.FLOAT[F].length=0,b.DOUBLE[F].length=0,b.BIGUINT64[F].length=0,b.BIGINT64[F].length=0,b.UINT8C[F].length=0,h[F].length=0,_[F].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,g=this.roots,b=c[s],h=c[f];b<h?g[s]=f:h<b?g[f]=s:(g[f]=s,++c[s])}}},1682(a){"use strict";function o(u,s){for(var f=1,c=u.length,g=u[0],b=u[0],h=1;h<c;++h)if(b=g,g=u[h],s(g,b)){if(h===f){f++;continue}u[f++]=g}return u.length=f,u}function i(u){for(var s=1,f=u.length,c=u[0],g=u[0],b=1;b<f;++b,g=c)if(g=c,c=u[b],c!==g){if(b===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,g){return(typeof g!="object"||g===null)&&(g={}),l(c,g.canvas||u,g.context||s,g)}},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),g=i(2095),b="b",h="b|",_="i",T="i|",m="sup",k="+",S="+1",x="sub",M="-",d="-1";function w(R,I,z,F){for(var L="<"+R+">",P="</"+R+">",B=L.length,O=P.length,G=I[0]===k||I[0]===M,J=0,j=-O;J>-1&&(J=z.indexOf(L,J),!(J===-1||(j=z.indexOf(P,J+B),j===-1)||j<=J));){for(var V=J;V<j+O;++V)if(V<J+B||V>=j)F[V]=null,z=z.substr(0,V)+" "+z.substr(V+1);else if(F[V]!==null){var q=F[V].indexOf(I[0]);q===-1?F[V]+=I:G&&(F[V]=F[V].substr(0,q+1)+(1+parseInt(F[V][q+1]))+F[V].substr(q+2))}var Z=J+B,re=z.substr(Z,j-Z),$=re.indexOf(L);$!==-1?J=$:J=j+O}return F}function y(R,I,z){for(var F=I.textAlign||"start",L=I.textBaseline||"alphabetic",P=[1<<30,1<<30],B=[0,0],O=R.length,G=0;G<O;++G)for(var J=R[G],j=0;j<2;++j)P[j]=Math.min(P[j],J[j])|0,B[j]=Math.max(B[j],J[j])|0;var V=0;switch(F){case"center":V=-.5*(P[0]+B[0]);break;case"right":case"end":V=-B[0];break;case"left":case"start":V=-P[0];break;default:throw new Error("vectorize-text: Unrecognized textAlign: '"+F+"'")}var q=0;switch(L){case"hanging":case"top":q=-P[1];break;case"middle":q=-.5*(P[1]+B[1]);break;case"alphabetic":case"ideographic":q=-3*z;break;case"bottom":q=-B[1];break;default:throw new Error("vectorize-text: Unrecoginized textBaseline: '"+L+"'")}var Z=1/z;return"lineHeight"in I?Z*=+I.lineHeight:"width"in I?Z=I.width/(B[0]-P[0]):"height"in I&&(Z=I.height/(B[1]-P[1])),R.map(function(re){return[Z*(re[0]+V),Z*(re[1]+q)]})}function v(R,I,z,F,L,P){z=z.replace(/\n/g,""),P.breaklines===!0?z=z.replace(/\<br\>/g,`
`):z=z.replace(/\<br\>/g," ");var B="",O=[];for(te=0;te<z.length;++te)O[te]=B;P.bolds===!0&&(O=w(b,h,z,O)),P.italics===!0&&(O=w(_,T,z,O)),P.superscripts===!0&&(O=w(m,S,z,O)),P.subscripts===!0&&(O=w(x,d,z,O));var G=[],J="";for(te=0;te<z.length;++te)O[te]!==null&&(J+=z[te],G.push(O[te]));var j=J.split(`
`),V=j.length,q=Math.round(L*F),Z=F,re=F*2,$=0,ae=V*q+re;R.height<ae&&(R.height=ae),I.fillStyle="#000",I.fillRect(0,0,R.width,R.height),I.fillStyle="#fff";var Q,te,ue,ee,ie,fe=0,we="";function Te(){if(we!==""){var oe=I.measureText(we).width;I.fillText(we,Z+ue,re+ee),ue+=oe}}function ke(){return""+Math.round(ie)+"px "}function ge(oe,de){var pe=""+I.font;if(P.subscripts===!0){var me=oe.indexOf(M),Se=de.indexOf(M),ve=me>-1?parseInt(oe[1+me]):0,he=Se>-1?parseInt(de[1+Se]):0;ve!==he&&(pe=pe.replace(ke(),"?px "),ie*=Math.pow(.75,he-ve),pe=pe.replace("?px ",ke())),ee+=.25*q*(he-ve)}if(P.superscripts===!0){var be=oe.indexOf(k),Ae=de.indexOf(k),Re=be>-1?parseInt(oe[1+be]):0,Pe=Ae>-1?parseInt(de[1+Ae]):0;Re!==Pe&&(pe=pe.replace(ke(),"?px "),ie*=Math.pow(.75,Pe-Re),pe=pe.replace("?px ",ke())),ee-=.25*q*(Pe-Re)}if(P.bolds===!0){var Ye=oe.indexOf(h)>-1,Ve=de.indexOf(h)>-1;!Ye&&Ve&&(Ue?pe=pe.replace("italic ","italic bold "):pe="bold "+pe),Ye&&!Ve&&(pe=pe.replace("bold ",""))}if(P.italics===!0){var Ue=oe.indexOf(T)>-1,qe=de.indexOf(T)>-1;!Ue&&qe&&(pe="italic "+pe),Ue&&!qe&&(pe=pe.replace("italic ",""))}I.font=pe}for(Q=0;Q<V;++Q){var Ee=j[Q]+`
`;for(ue=0,ee=Q*q,ie=F,we="",te=0;te<Ee.length;++te){var Le=te+fe<G.length?G[te+fe]:G[G.length-1];B===Le?we+=Ee[te]:(Te(),we=Ee[te],Le!==void 0&&(ge(B,Le),B=Le))}Te(),fe+=Ee.length;var se=Math.round(ue+2*Z)|0;$<se&&($=se)}var X=$,K=re+q*V,ye=u(I.getImageData(0,0,X,K).data,[K,X,4]);return ye.pick(-1,-1,0).transpose(1,0)}function A(R,I){var z=l(R,128);return I?s(z.cells,z.positions,.25):{edges:z.cells,positions:z.positions}}function p(R,I,z,F){var L=A(R,F),P=y(L.positions,I,z),B=L.edges,O=I.orientation==="ccw";if(f(P,B),I.polygons||I.polygon||I.polyline){for(var G=g(B,P),J=new Array(G.length),j=0;j<G.length;++j){for(var V=G[j],q=new Array(V.length),Z=0;Z<V.length;++Z){for(var re=V[Z],$=new Array(re.length),ae=0;ae<re.length;++ae)$[ae]=P[re[ae]].slice();O&&$.reverse(),q[Z]=$}J[j]=q}return J}else return I.triangles||I.triangulate||I.triangle?{cells:c(P,B,{delaunay:!1,exterior:!1,interior:!0}),positions:P}:{edges:B,positions:P}}function D(R,I,z){try{return p(R,I,z,!0)}catch(F){}try{return p(R,I,z,!1)}catch(F){}return I.polygons||I.polyline||I.polygon?[]:I.triangles||I.triangulate||I.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function E(R,I,z,F){var L=64,P=1.25,B={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};F&&(F.size&&F.size>0&&(L=F.size),F.lineSpacing&&F.lineSpacing>0&&(P=F.lineSpacing),F.styletags&&F.styletags.breaklines&&(B.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&(B.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&(B.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&(B.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&(B.superscripts=!!F.styletags.superscripts)),z.font=[F.fontStyle,F.fontVariant,F.fontWeight,L+"px",F.font].filter(function(G){return G}).join(" "),z.textAlign="start",z.textBaseline="alphabetic",z.direction="ltr";var O=v(I,z,R,L,P,B);return D(O,F,L)}},1538(a){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function i(p){p.permitHostObjects___&&p.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,g=Object.getOwnPropertyNames,b=Object.defineProperty,h=Object.isExtensible,_="weakmap:",T=_+"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),T=_+"rand:"+Array.prototype.map.call(k,function(p){return(p%36).toString(36)}).join("")+"___"}function S(p){return!(p.substr(0,_.length)==_&&p.substr(p.length-3)==="___")}if(b(Object,"getOwnPropertyNames",{value:function(D){return g(D).filter(S)}}),"getPropertyNames"in Object){var x=Object.getPropertyNames;b(Object,"getPropertyNames",{value:function(D){return x(D).filter(S)}})}function M(p){if(p!==Object(p))throw new TypeError("Not an object: "+p);var D=p[T];if(D&&D.key===p)return D;if(h(p)){D={key:p};try{return b(p,T,{value:D,writable:!1,enumerable:!1,configurable:!1}),D}catch(E){return}}}(function(){var p=Object.freeze;b(Object,"freeze",{value:function(I){return M(I),p(I)}});var D=Object.seal;b(Object,"seal",{value:function(I){return M(I),D(I)}});var E=Object.preventExtensions;b(Object,"preventExtensions",{value:function(I){return M(I),E(I)}})})();function d(p){return p.prototype=null,Object.freeze(p)}var w=!1;function y(){!w&&typeof console!="undefined"&&(w=!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 p=[],D=[],E=v++;function R(L,P){var B,O=M(L);return O?E in O?O[E]:P:(B=p.indexOf(L),B>=0?D[B]:P)}function I(L){var P=M(L);return P?E in P:p.indexOf(L)>=0}function z(L,P){var B,O=M(L);return O?O[E]=P:(B=p.indexOf(L),B>=0?D[B]=P:(B=p.length,D[B]=P,p[B]=L)),this}function F(L){var P=M(L),B,O;return P?E in P&&delete P[E]:(B=p.indexOf(L),B<0?!1:(O=p.length-1,p[B]=void 0,D[B]=D[O],p[B]=p[O],p.length=O,D.length=O,!0))}return Object.create(A.prototype,{get___:{value:d(R)},has___:{value:d(I)},set___:{value:d(z)},delete___:{value:d(F)}})};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 p(){this instanceof A||y();var D=new u,E=void 0,R=!1;function I(P,B){return E?D.has(P)?D.get(P):E.get___(P,B):D.get(P,B)}function z(P){return D.has(P)||(E?E.has___(P):!1)}var F;l?F=function(P,B){return D.set(P,B),D.has(P)||(E||(E=new A),E.set(P,B)),this}:F=function(P,B){if(R)try{D.set(P,B)}catch(O){E||(E=new A),E.set___(P,B)}else D.set(P,B);return this};function L(P){var B=!!D.delete(P);return E&&E.delete___(P)||B}return Object.create(A.prototype,{get___:{value:d(I)},has___:{value:d(z)},set___:{value:d(F)},delete___:{value:d(L)},permitHostObjects___:{value:d(function(P){if(P===i)R=!0;else throw new Error("bogus call to permitHostObjects___")})}})}p.prototype=A.prototype,a.exports=p,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 g=s(f);return g.hasOwnProperty("value")?g.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,g,b,h,_,T){var m=c[0],k=b[0],S=[0],x=k;h|=0;var M=0,d=k;for(M=0;M<m;++M){{var w=g[h]-T,y=g[h+x]-T;w>=0!=y>=0&&_.push(S[0]+.5+.5*(w+y)/(w-y))}h+=d,++S[0]}}}function i(){return o()}var l=i;function u(c){var g={};return function(h,_,T){var m=h.dtype,k=h.order,S=[m,k.join()].join(),x=g[S];return x||(g[S]=x=c([m,k])),x(h.shape.slice(0),h.data,h.stride,h.offset|0,_,T)}}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);nO.exports=n})()});var $o=xe((h8e,aO)=>{"use strict";var{normalize:r3e}=Zr();function t3e(e){return e?r3e(e):[0,0,0,1]}aO.exports=t3e});var Wl=xe((d8e,fO)=>{"use strict";var sO=ut(),sp=so(),Bu=Zr(),n3e=no().defaultLine,iO=ba().isArrayOrTypedArray,v4=Bu.normalize(n3e),uO=1;function oO(e,r){return[e[0],e[1],e[2],e[3]*r]}function c4(e){return sO(e)||!Bu.isChannelArray(e)&&!Bu.isValid(e)?v4:Bu.normalize(e)}function lO(e){return sO(e)?e:uO}function a3e(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=iO(n),o=iO(r),i=sp.extractOpts(e),l=[],u,s,f,c,g;if(i.colorscale!==void 0?u=sp.makeColorScaleFuncFromTrace(e):u=c4,a?s=(h,_)=>h[_]===void 0?v4:i.colorscale===void 0?u(h[_]):Bu.normalize(u(h[_])):s=c4,o?f=function(h,_){return h[_]===void 0?uO:lO(h[_])}:f=lO,a||o)for(var b=0;b<t;b++)c=s(n,b),g=f(r,b),l[b]=oO(c,g);else l=oO(c4(n),r);return l}function i3e(e){var r=sp.extractOpts(e),t=r.colorscale;return r.reversescale&&(t=sp.flipScale(r.colorscale)),t.map(function(n){return{index:n[0],rgb:Bu.rgbaArray(n[1])}})}fO.exports={formatColor:a3e,parseColorScale:i3e}});var h4={};Ht(h4,{default:()=>l3e});var o3e,l3e,d4=Ut(()=>{"use strict";o3e={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]},l3e=o3e});var up={};Ht(up,{default:()=>u3e});var s3e,u3e,fp=Ut(()=>{"use strict";s3e={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"},u3e=s3e});var vO=xe((p8e,cO)=>{"use strict";var f3e=Cr();function p4(e,r,t,n){if(!r||!r.visible)return null;for(var a=f3e.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 c3e(e){for(var r=0;r<e.length;r++)if(e[r])return e[r].length;return 0}function v3e(e,r,t){var n=[p4(e.x,e.error_x,r[0],t.xaxis),p4(e.y,e.error_y,r[1],t.yaxis),p4(e.z,e.error_z,r[2],t.zaxis)],a=c3e(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}cO.exports=v3e});var _O=xe((g8e,xO)=>{"use strict";var h3e=In().gl_line3d,hO=In().gl_scatter3d,d3e=In().gl_error3d,p3e=In().gl_mesh3d,g3e=In().delaunay_triangulate,Ko=tr(),mO=$o(),cp=Wl().formatColor,y3e=sm(),g4=(d4(),or(h4)).default,m3e=(fp(),or(up)).default,b3e=Vt(),x3e=uo().appendArrayPointValue,_3e=vO();function bO(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 m4=bO.prototype;m4.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&&(Ko.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 w3e(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=g3e(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 M3e(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]=mO(o.color),n[a]=o.thickness)}return{capSize:r,color:t,lineWidth:n}}function dO(e){return e==null?0:e.indexOf("left")>-1?-1:e.indexOf("right")>-1?1:0}function pO(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function T3e(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]=dO(e[a]),n[a][1]=pO(e[a]));else n[0]=dO(e),n[1]=pO(e);return n}function A3e(e,r){return r(e*4)}function k3e(e){return m3e[e]}function y4(e,r,t,n,a){var o=null;if(Ko.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,Ko.identity);return o}function S3e(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||[],g=r.z||[],b=f.length,h=r.xcalendar,_=r.ycalendar,T=r.zcalendar,m,k,S,x,M,d;for(M=0;M<b;M++)m=o.d2l(f[M],0,h)*a[0],k=i.d2l(c[M],0,_)*a[1],S=l.d2l(g[M],0,T)*a[2],t[M]=[m,k,S];if(Array.isArray(r.text))d=r.text;else if(Ko.isTypedArray(r.text))d=Array.from(r.text);else if(r.text!==void 0)for(d=new Array(b),M=0;M<b;M++)d[M]=r.text;function w(O,G){var J=n[O];return b3e.tickText(J,J.d2l(G),!0).text}var y=r.texttemplate;if(y){var v=e.fullLayout,A=v._d3locale,p=Array.isArray(y),D=p?Math.min(y.length,b):b,E=p?function(O){return y[O]}:function(){return y};for(d=new Array(D),M=0;M<D;M++){var R={x:f[M],y:c[M],z:g[M]},I={xLabel:w("xaxis",f[M]),yLabel:w("yaxis",c[M]),zLabel:w("zaxis",g[M])},z={};x3e(z,r,M),d[M]=Ko.texttemplateString({data:[z,R,r._meta],fallback:r.texttemplatefallback,labels:I,locale:A,template:E(M)})}}if(x={position:t,mode:r.mode,text:d},"line"in r&&(x.lineColor=cp(s,1,b),x.lineWidth=s.width,x.lineDashes=s.dash),"marker"in r){var F=y3e(r);x.scatterColor=cp(u,1,b),x.scatterSize=y4(u.size,b,A3e,20,F),x.scatterMarker=y4(u.symbol,b,k3e,"\u25CF"),x.scatterLineWidth=u.line.width,x.scatterLineColor=cp(u.line,1,b),x.scatterAngle=0}"textposition"in r&&(x.textOffset=T3e(r.textposition),x.textColor=cp(r.textfont,1,b),x.textSize=y4(r.textfont.size,b,Ko.identity,12),x.textFontFamily=r.textfont.family,x.textFontWeight=r.textfont.weight,x.textFontStyle=r.textfont.style,x.textFontVariant=r.textfont.variant,x.textAngle=0);var L=["x","y","z"];for(x.project=[!1,!1,!1],x.projectScale=[1,1,1],x.projectOpacity=[1,1,1],M=0;M<3;++M){var P=r.projection[L[M]];(x.project[M]=P.show)&&(x.projectOpacity[M]=P.opacity,x.projectScale[M]=P.scale)}x.errorBounds=_3e(r,a,n);var B=M3e([r.error_x,r.error_y,r.error_z]);return x.errorColor=B.color,x.errorLineWidth=B.lineWidth,x.errorCapSize=B.capSize,x.delaunayAxis=r.surfaceaxis,x.delaunayColor=mO(r.surfacecolor),x}function gO(e){if(Ko.isArrayOrTypedArray(e)){var r=e[0];return Ko.isArrayOrTypedArray(r)&&(e=r),"rgb("+e.slice(0,3).map(function(t){return Math.round(t*255)})+")"}return null}function yO(e){return Ko.isArrayOrTypedArray(e)?e.length===4&&typeof e[0]=="number"?gO(e):e.map(gO):null}m4.update=function(e){var r=this.scene.glplot.gl,t,n,a,o,i=g4.solid;this.data=e;var l=S3e(this.scene,e);"mode"in l&&(this.mode=l.mode),"lineDashes"in l&&l.lineDashes in g4&&(i=g4[l.lineDashes]),this.color=yO(l.scatterColor)||yO(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=h3e(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=hO(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=hO(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=d3e(a),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),l.delaunayAxis>=0){var s=w3e(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=p3e(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)};m4.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 C3e(e,r){var t=new bO(e,r.uid);return t.update(r),t}xO.exports=C3e});var M4=xe((y8e,AO)=>{"use strict";var Qo=Ws(),E3e=Wn(),w4=Di(),b4=No().axisHoverFormat,{hovertemplateAttrs:L3e,texttemplateAttrs:D3e,templatefallbackAttrs:wO}=Si(),MO=Zn(),R3e=(d4(),or(h4)).default,F3e=(fp(),or(up)).default,Wi=Rt().extendFlat,P3e=ua().overrideAll,TO=(Vh(),or(Hh)).default,I3e=Qo.line,o0=Qo.marker,z3e=o0.line,N3e=Wi({width:I3e.width,dash:{valType:"enumerated",values:TO(R3e),dflt:"solid"}},w4("line"));function x4(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 _4=AO.exports=P3e({x:Qo.x,y:Qo.y,z:{valType:"data_array"},text:Wi({},Qo.text,{}),texttemplate:D3e(),texttemplatefallback:wO({editType:"calc"}),hovertext:Wi({},Qo.hovertext,{}),hovertemplate:L3e(),hovertemplatefallback:wO(),xhoverformat:b4("x"),yhoverformat:b4("y"),zhoverformat:b4("z"),mode:Wi({},Qo.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:x4("x"),y:x4("y"),z:x4("z")},connectgaps:Qo.connectgaps,line:N3e,marker:Wi({symbol:{valType:"enumerated",values:TO(F3e),dflt:"circle",arrayOk:!0},size:Wi({},o0.size,{dflt:8}),sizeref:o0.sizeref,sizemin:o0.sizemin,sizemode:o0.sizemode,opacity:Wi({},o0.opacity,{arrayOk:!1}),colorbar:o0.colorbar,line:Wi({width:Wi({},z3e.width,{arrayOk:!1})},w4("marker.line"))},w4("marker")),textposition:Wi({},Qo.textposition,{dflt:"top center"}),textfont:E3e({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:MO.opacity,hoverinfo:Wi({},MO.hoverinfo)},"calc","nested");_4.x.editType=_4.y.editType=_4.z.editType="calc+clearAxisTypes"});var CO=xe((m8e,SO)=>{"use strict";var kO=Cr(),q3e=tr(),T4=Da(),B3e=Ob(),O3e=Ub(),U3e=Hb(),H3e=M4();SO.exports=function(r,t,n,a){function o(b,h){return q3e.coerce(r,t,H3e,b,h)}var i=V3e(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"),T4.hasMarkers(t)&&B3e(r,t,n,a,o,{noAngle:!0,noLineDash:!0,noSelect:!0}),T4.hasLines(t)&&(o("connectgaps"),O3e(r,t,n,a,o)),T4.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),U3e(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 g=kO.getComponentMethod("errorbars","supplyDefaults");g(r,t,l||u||n,{axis:"z"}),g(r,t,l||u||n,{axis:"y",inherit:"z"}),g(r,t,l||u||n,{axis:"x",inherit:"z"})};function V3e(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=kO.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 LO=xe((b8e,EO)=>{"use strict";var G3e=yd(),Y3e=Yb();EO.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return G3e(n,t),Y3e(r,t),n}});var RO=xe((x8e,DO)=>{DO.exports=X3e;function X3e(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 PO=xe((_8e,FO)=>{var W3e=RO();FO.exports=function(r){return W3e("webgl",r)}});var NO=xe((w8e,zO)=>{"use strict";var IO=Zr(),Z3e=function(){};zO.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=Z3e);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=IO.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=IO.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 OO=xe((M8e,BO)=>{"use strict";var l0=$o(),J3e=tr(),$3e=["xaxis","yaxis","zaxis"];function qO(){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 K3e=qO.prototype;K3e.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[$3e[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?J3e.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=l0(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]=l0(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=l0(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]=l0(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]=l0(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]=l0(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]=l0(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function Q3e(e,r){var t=new qO;return t.merge(e,r),t}BO.exports=Q3e});var VO=xe((T8e,HO)=>{"use strict";var j3e=$o(),eye=["xaxis","yaxis","zaxis"];function UO(){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 rye=UO.prototype;rye.merge=function(e){for(var r=0;r<3;++r){var t=e[eye[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=j3e(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function tye(e){var r=new UO;return r.merge(e),r}HO.exports=tye});var XO=xe((A8e,YO)=>{"use strict";YO.exports=lye;var GO=Vt(),nye=tr(),aye=["xaxis","yaxis","zaxis"],iye=[0,0,0];function oye(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 lye(e){for(var r=e.axesOptions,t=e.glplot.axesPixels,n=e.fullSceneLayout,a=[[],[],[]],o=0;o<3;++o){var i=n[aye[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||nye.constrain(i._length/40,4,9);GO.autoTicks(i,Math.abs(i.range[1]-i.range[0])/u)}for(var s=GO.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){iye[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=oye(a)}});var jO=xe((k8e,QO)=>{"use strict";var JO=In().gl_plot3d,sye=JO.createCamera,WO=JO.createScene,uye=PO(),fye=G1(),dp=Cr(),wa=tr(),hp=wa.preserveDrawingBuffer(),pp=Vt(),Zi=yo(),cye=$o(),vye=NO(),hye=Cx(),dye=OO(),pye=VO(),gye=XO(),yye=nu().applyAutorangeOptions,cv,vp,$O=!1;function KO(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=dye(r,r[this.id]),this.spikeOptions=pye(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=dp.getComponentMethod("annotations3d","convert"),this.drawAnnotations=dp.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var ra=KO.prototype;ra.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:hp,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(!vp&&(cv=document.createElement("canvas"),vp=uye({canvas:cv,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!vp))throw new Error("error creating static canvas/context for image server");r.gl=vp,r.canvas=cv}return r};var ZO=!0;ra.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=WO(r)}catch(n){if(e.staticMode||!ZO||hp)t=!1;else{wa.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{hp=r.glOptions.preserveDrawingBuffer=!0,e.glplot=WO(r)}catch(a){hp=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return ZO=!1,t};ra.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=sye(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"})};ra.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return vye(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(){$O=!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)}},fye?{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};ra.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),gye(e),e.glplot.axes.update(e.axesOptions);for(var s=Object.keys(e.traces),f=null,c=e.glplot.selection,g=0;g<s.length;++g)t=e.traces[s[g]],t.data.hoverinfo!=="skip"&&t.handlePick(c)&&(f=t),t.setContourLevels&&t.setContourLevels();function b(A,p,D){var E=e.fullSceneLayout[A+"axis"];return E.type!=="log"&&(p=E.d2l(p)),pp.hoverLabelText(E,p,D)}if(f!==null){var h=hye(e.glplot.cameraParams,c.dataCoordinate);t=f.data;var _=r._fullData[t.index],T=c.index,m={xLabel:b("x",c.traceCoordinate[0],t.xhoverformat),yLabel:b("y",c.traceCoordinate[1],t.yhoverformat),zLabel:b("z",c.traceCoordinate[2],t.zhoverformat)},k=Zi.castHoverinfo(_,e.fullLayout,T),S=(k||"").split("+"),x=k&&k==="all";!_.hovertemplate&&!x&&(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 M,d=[];t.type==="cone"||t.type==="streamtube"?(m.uLabel=b("x",c.traceCoordinate[3],t.uhoverformat),(x||S.indexOf("u")!==-1)&&d.push("u: "+m.uLabel),m.vLabel=b("y",c.traceCoordinate[4],t.vhoverformat),(x||S.indexOf("v")!==-1)&&d.push("v: "+m.vLabel),m.wLabel=b("z",c.traceCoordinate[5],t.whoverformat),(x||S.indexOf("w")!==-1)&&d.push("w: "+m.wLabel),m.normLabel=c.traceCoordinate[6].toPrecision(3),(x||S.indexOf("norm")!==-1)&&d.push("norm: "+m.normLabel),t.type==="streamtube"&&(m.divergenceLabel=c.traceCoordinate[7].toPrecision(3),(x||S.indexOf("divergence")!==-1)&&d.push("divergence: "+m.divergenceLabel)),c.textLabel&&d.push(c.textLabel),M=d.join("<br>")):t.type==="isosurface"||t.type==="volume"?(m.valueLabel=pp.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),t.valuehoverformat),d.push("value: "+m.valueLabel),c.textLabel&&d.push(c.textLabel),M=d.join("<br>")):M=c.textLabel;var w={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:_._input,fullData:_,curveNumber:_.index,pointNumber:T};Zi.appendArrayPointValue(w,_,T),t._module.eventData&&(w=_._module.eventData(w,c,_,{},T));var y={points:[w]};if(e.fullSceneLayout.hovermode){var v=[];Zi.loneHover({trace:_,x:(.5+.5*h[0]/h[3])*l,y:(.5-.5*h[1]/h[3])*u,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:M,name:f.name,color:Zi.castHoverOption(_,T,"bgcolor")||f.color,borderColor:Zi.castHoverOption(_,T,"bordercolor"),fontFamily:Zi.castHoverOption(_,T,"font.family"),fontSize:Zi.castHoverOption(_,T,"font.size"),fontColor:Zi.castHoverOption(_,T,"font.color"),nameLength:Zi.castHoverOption(_,T,"namelength"),textAlign:Zi.castHoverOption(_,T,"align"),hovertemplate:wa.castOption(_,T,"hovertemplate"),hovertemplateLabels:wa.extendFlat({},w,m),eventData:[w]},{container:n,gd:r,inOut_bbox:v}),w.bbox=v[0]}c.distance<5&&(c.buttons||$O)?r.emit("plotly_click",y):r.emit("plotly_hover",y),this.oldEventData=y}else Zi.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};ra.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){wa.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var vv=["xaxis","yaxis","zaxis"];function mye(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=vv[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!wa.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,g=0;g<(f||u.length);g++)if(wa.isArrayOrTypedArray(u[g]))for(var b=0;b<u[g].length;++b)c=l.d2l(u[g][b],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[g],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 bye(e,r){for(var t=e.fullSceneLayout,n=t.annotations||[],a=0;a<3;a++)for(var o=vv[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))}}}ra.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(cye(f.bgcolor)),n.setConvert(u),e?Array.isArray(e)||(e=[e]):e=[];var g=[[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)&&mye(this,a,g);bye(this,g);var b=[1,1,1];for(l=0;l<3;++l)g[1][l]===g[0][l]?b[l]=1:b[l]=1/(g[1][l]-g[0][l]);for(n.dataScale=b,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 h=Object.keys(n.traces);e:for(i=0;i<h.length;++i){for(l=0;l<e.length;++l)if(e[l].uid===h[i]&&e[l].visible===!0&&e[l]._length!==0)continue e;o=n.traces[h[i]],o.dispose(),delete n.traces[h[i]]}n.glplot.objects.sort(function(O,G){return O._trace.data.index-G._trace.data.index});var _=[[0,0,0],[0,0,0]],T=[],m={};for(i=0;i<3;++i){u=f[vv[i]],s=u.type,s in m?(m[s].acc*=b[i],m[s].count+=1):m[s]={acc:b[i],count:1};var k;if(u.autorange){_[0][i]=1/0,_[1][i]=-1/0;var S=n.glplot.objects,x=n.fullSceneLayout.annotations||[],M=u._name.charAt(0);for(l=0;l<S.length;l++){var d=S[l],w=d.bounds,y=d._trace.data._pad||0;d.constructor.name==="ErrorBars"&&u._lowerLogErrorBound?_[0][i]=Math.min(_[0][i],u._lowerLogErrorBound):_[0][i]=Math.min(_[0][i],w[0][i]/b[i]-y),_[1][i]=Math.max(_[1][i],w[1][i]/b[i]+y)}for(l=0;l<x.length;l++){var v=x[l];if(v.visible){var A=u.r2l(v[M]);_[0][i]=Math.min(_[0][i],A),_[1][i]=Math.max(_[1][i],A)}}if("rangemode"in u&&u.rangemode==="tozero"&&(_[0][i]=Math.min(_[0][i],0),_[1][i]=Math.max(_[1][i],0)),_[0][i]>_[1][i])_[0][i]=-1,_[1][i]=1;else{var p=_[1][i]-_[0][i];_[0][i]-=p/32,_[1][i]+=p/32}if(k=[_[0][i],_[1][i]],k=yye(k,u),_[0][i]=k[0],_[1][i]=k[1],u.isReversed()){var D=_[0][i];_[0][i]=_[1][i],_[1][i]=D}}else k=u.range,_[0][i]=u.r2l(k[0]),_[1][i]=u.r2l(k[1]);_[0][i]===_[1][i]&&(_[0][i]-=1,_[1][i]+=1),T[i]=_[1][i]-_[0][i],u.range=[_[0][i],_[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*b[i],max:u.range[1]*b[i]})}var E,R=f.aspectmode;if(R==="cube")E=[1,1,1];else if(R==="manual"){var I=f.aspectratio;E=[I.x,I.y,I.z]}else if(R==="auto"||R==="data"){var z=[1,1,1];for(i=0;i<3;++i){u=f[vv[i]],s=u.type;var F=m[s];z[i]=Math.pow(F.acc,1/F.count)/b[i]}R==="data"||Math.max.apply(null,z)/Math.min.apply(null,z)<=4?E=z: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,P=r._size||null;if(L&&P){var B=n.container.style;B.position="absolute",B.left=P.l+L.x[0]*P.w+"px",B.top=P.t+(1-L.y[1])*P.h+"px",B.width=P.w*(L.x[1]-L.x[0])+"px",B.height=P.h*(L.y[1]-L.y[0])+"px"}n.glplot.redraw()}};ra.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 xye(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 _ye(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"}}}ra.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),_ye(e.camera)};ra.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,xye(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())};ra.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=wa.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,c,g){var b=["up","center","eye"],h=["x","y","z"];return f[b[c]]&&s[b[c]][h[g]]===f[b[c]][h[g]]}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};ra.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=wa.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};ra.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 g={};if(s&&(n=r.getCamera(),a=wa.nestedProperty(e,r.id+".camera"),o=a.get(),g[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=wa.nestedProperty(e,r.id+".aspectratio"),u=l.get(),g[r.id+".aspectratio"]=u),dp.call("_storeDirectGUIEdit",e,t._preGUI,g),s){a.set(n);var b=wa.nestedProperty(t,r.id+".camera");b.set(n)}if(f){l.set(i);var h=wa.nestedProperty(t,r.id+".aspectratio");h.set(i),r.glplot.redraw()}}return c};ra.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},g={};g[f]=c;var b=a.layout;dp.call("_storeDirectGUIEdit",b,o._preGUI,g),i.up=c,wa.nestedProperty(b,f).set(c)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function wye(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 Mye(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)}}ra.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(cv),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),wye(o,n,a),Mye(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(cv),s};ra.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[vv[r]];pp.setConvert(t,e.fullLayout),t.setScale=wa.noop}};ra.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},pp.setConvert(e._mockAxis,t)};QO.exports=KO});var rU=xe((S8e,eU)=>{"use strict";eU.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var k4=xe((C8e,tU)=>{"use strict";var Tye=Zr(),Ur=ai(),A4=Rt().extendFlat,Aye=ua().overrideAll;tU.exports=Aye({visible:Ur.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Tye.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Ur.color,categoryorder:Ur.categoryorder,categoryarray:Ur.categoryarray,title:{text:Ur.title.text,font:Ur.title.font},type:A4({},Ur.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Ur.autotypenumbers,autorange:Ur.autorange,autorangeoptions:{minallowed:Ur.autorangeoptions.minallowed,maxallowed:Ur.autorangeoptions.maxallowed,clipmin:Ur.autorangeoptions.clipmin,clipmax:Ur.autorangeoptions.clipmax,include:Ur.autorangeoptions.include,editType:"plot"},rangemode:Ur.rangemode,minallowed:Ur.minallowed,maxallowed:Ur.maxallowed,range:A4({},Ur.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Ur.minor.tickmode,nticks:Ur.nticks,tick0:Ur.tick0,dtick:Ur.dtick,tickvals:Ur.tickvals,ticktext:Ur.ticktext,ticks:Ur.ticks,mirror:Ur.mirror,ticklen:Ur.ticklen,tickwidth:Ur.tickwidth,tickcolor:Ur.tickcolor,showticklabels:Ur.showticklabels,labelalias:Ur.labelalias,tickfont:Ur.tickfont,tickangle:Ur.tickangle,tickprefix:Ur.tickprefix,showtickprefix:Ur.showtickprefix,ticksuffix:Ur.ticksuffix,showticksuffix:Ur.showticksuffix,showexponent:Ur.showexponent,exponentformat:Ur.exponentformat,minexponent:Ur.minexponent,separatethousands:Ur.separatethousands,tickformat:Ur.tickformat,tickformatstops:Ur.tickformatstops,hoverformat:Ur.hoverformat,showline:Ur.showline,linecolor:Ur.linecolor,linewidth:Ur.linewidth,showgrid:Ur.showgrid,gridcolor:A4({},Ur.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Ur.gridwidth,zeroline:Ur.zeroline,zerolinecolor:Ur.zerolinecolor,zerolinewidth:Ur.zerolinewidth},"plot","from-root")});var L4=xe((E8e,nU)=>{"use strict";var S4=k4(),kye=tp().attributes,C4=Rt().extendFlat,Sye=tr().counterRegex;function E4(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"}}nU.exports={_arrayAttrRegexps:[Sye("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:C4(E4(0,0,1),{}),center:C4(E4(0,0,0),{}),eye:C4(E4(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:kye({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:S4,yaxis:S4,zaxis:S4,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 iU=xe((L8e,aU)=>{"use strict";var Cye=tr(),Eye=Tt(),Lye=tp().defaults;aU.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+$/,""),g,b;function h(k,S){return Cye.coerce(g,b,i,k,S)}for(var _=0;_<f;_++){var T=s[_];r[T]?g=r[T]:g=r[T]={},b=Eye.newContainer(t,T,c),a.noUirevision||h("uirevision",t.uirevision);var m={};m[u]=[_/f,(_+1)/f],Lye(b,t,h,m),a.id=T,l(g,b,h,a)}}});var uU=xe((D8e,sU)=>{"use strict";var Dye=Zr(),oU=tr(),Rye=Tt(),Fye=k4(),Pye=fx(),Iye=kd(),lU=["xaxis","yaxis","zaxis"],zye=13600/187;sU.exports=function(r,t,n){var a,o;function i(s,f){return oU.coerce(a,o,Fye,s,f)}for(var l=0;l<lU.length;l++){var u=lU[l];a=r[u]||{},o=Rye.newContainer(t,u),o._id=u[0]+n.scene,o._name=u,Pye(a,o,i,n),Iye(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",Dye.mix(o.color,n.bgColor,zye)),i("title.text",u[0]),o.setScale=oU.noop,i("showspikes")&&(i("spikesides"),i("spikethickness"),i("spikecolor",o.color)),i("showaxeslabels"),i("showbackground")&&i("backgroundcolor")}}});var hU=xe((R8e,vU)=>{"use strict";var Nye=tr(),qye=Zr(),Bye=Cr(),Oye=iU(),Uye=uU(),fU=L4(),Hye=Gf().getSubplotData,cU="gl3d";vU.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=Nye.validate(r[i],fU[i]);if(l)return r[i]}}Oye(r,t,n,{type:cU,attributes:fU,handleDefaults:Vye,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function Vye(e,r,t,n){for(var a=t("bgcolor"),o=qye.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=Hye(n.fullData,cU,n.id);Uye(e,r,{font:n.font,scene:n.id,data:c,bgColor:o,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),Bye.getComponentMethod("annotations3d","handleDefaults")(e,r,n);var g=n.getDfltFromLayout("dragmode");if(g!==!1&&!g)if(g="orbit",e.camera&&e.camera.up){var b=e.camera.up.x,h=e.camera.up.y,_=e.camera.up.z;_!==0&&(!b||!h||!_||_/Math.sqrt(b*b+h*h+_*_)>.999)&&(g="turntable")}else g="turntable";t("dragmode",g),t("hovermode",n.getDfltFromLayout("hovermode"))}});var Zl=xe(Ma=>{"use strict";var Gye=ua().overrideAll,Yye=fs(),Xye=jO(),Wye=Gf().getSubplotData,Zye=tr(),Jye=(wl(),or(_l)),Ou="gl3d",D4="scene";Ma.name=Ou;Ma.attr=D4;Ma.idRoot=D4;Ma.idRegex=Ma.attrRegex=Zye.counterRegex("scene");Ma.attributes=rU();Ma.layoutAttributes=L4();Ma.baseLayoutAttrOverrides=Gye({hoverlabel:Yye.hoverlabel},"plot","nested");Ma.supplyLayoutDefaults=hU();Ma.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[Ou],o=0;o<a.length;o++){var i=a[o],l=Wye(n,Ou,i),u=t[i],s=u.camera,f=u._scene;f||(f=new Xye({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)}};Ma.clean=function(e,r,t,n){for(var a=n._subplots[Ou]||[],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())}};Ma.toSVG=function(e){for(var r=e._fullLayout,t=r._subplots[Ou],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:Jye.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()}};Ma.cleanId=function(r){if(r.match(/^scene[0-9]*$/)){var t=r.slice(5);return t==="1"&&(t=""),D4+t}};Ma.updateFx=function(e){for(var r=e._fullLayout,t=r._subplots[Ou],n=0;n<t.length;n++){var a=r[t[n]]._scene;a.updateFx(r.dragmode,r.hovermode)}}});var pU=xe((P8e,dU)=>{"use strict";dU.exports={plot:_O(),attributes:M4(),markerSymbols:(fp(),or(up)).default,supplyDefaults:CO(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:LO(),moduleType:"trace",name:"scatter3d",basePlotModule:Zl(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var yU=xe((I8e,gU)=>{"use strict";gU.exports=pU()});var hv=xe((z8e,xU)=>{"use strict";var mU=Zr(),$ye=Di(),R4=No().axisHoverFormat,{hovertemplateAttrs:Kye,templatefallbackAttrs:Qye}=Si(),bU=Zn(),F4=Rt().extendFlat,jye=ua().overrideAll;function P4(e){return{valType:"boolean",dflt:!1}}function I4(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:P4("x"),y:P4("y"),z:P4("z")},color:{valType:"color",dflt:mU.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:mU.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var z4=xU.exports=jye(F4({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:Kye(),hovertemplatefallback:Qye(),xhoverformat:R4("x"),yhoverformat:R4("y"),zhoverformat:R4("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},$ye("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:I4("x"),y:I4("y"),z:I4("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:F4({},bU.hoverinfo),showlegend:F4({},bU.showlegend,{dflt:!1})}),"calc","nested");z4.x.editType=z4.y.editType=z4.z.editType="calc+clearAxisTypes"});var q4=xe((N8e,MU)=>{"use strict";var eme=Cr(),_U=tr(),rme=lo(),tme=hv(),N4=.1;function nme(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 ame(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 ime(e,r,t,n){var a,o;function i(T,m){return _U.coerce(e,r,tme,T,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)&&_U.isArrayOrTypedArray(l[0])?s.length:s[0].length,r._ylength=s.length;var f=eme.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(T){i(T)});var c=i("surfacecolor"),g=["x","y","z"];for(a=0;a<3;++a){var b="contours."+g[a],h=i(b+".show"),_=i(b+".highlight");if(h||_)for(o=0;o<3;++o)i(b+".project."+g[o]);h&&(i(b+".color"),i(b+".width"),i(b+".usecolormap")),_&&(i(b+".highlightcolor"),i(b+".highlightwidth")),i(b+".start"),i(b+".end"),i(b+".size")}rme(e,r,n,i,{prefix:"",cLetter:"c"}),wU(e,r,n,i),r._length=null}function wU(e,r,t,n){var a=n("opacityscale");a==="max"?r.opacityscale=[[0,N4],[1,1]]:a==="min"?r.opacityscale=[[0,1],[1,N4]]:a==="extremes"?r.opacityscale=nme(1,N4):ame(a)||(r.opacityscale=void 0)}MU.exports={supplyDefaults:ime,opacityscaleDefaults:wU}});var kU=xe((q8e,AU)=>{"use strict";var TU=Tl();AU.exports=function(r,t){t.surfacecolor?TU(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):TU(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var LU=xe((B8e,EU)=>{"use strict";var ome=tr(),SU=.01,lme=[[-1,0],[1,0],[0,-1],[0,1]];function sme(e){return .5-.25*Math.min(1,e*.5)}EU.exports=function(r,t){var n=1,a;for(CU(r,t),a=0;a<t.length&&!(t[a][2]<4);a++);for(t=t.slice(a),a=0;a<100&&n>SU;a++)n=CU(r,t,sme(n));return n>SU&&ome.log("interp2d didn't converge quickly",n),r};function CU(e,r,t){var n=0,a,o,i,l,u,s,f,c,g,b,h,_,T;for(l=0;l<r.length;l++){for(a=r[l],o=a[0],i=a[1],h=e[o][i],b=0,g=0,u=0;u<4;u++)s=lme[u],f=e[o+s[0]],f&&(c=f[i+s[1]],c!==void 0&&(b===0?_=T=c:(_=Math.min(_,c),T=Math.max(T,c)),g++,b+=c));if(g===0)throw"iterateInterp2d order is wrong: no defined neighbors";e[o][i]=b/g,h===void 0?g<4&&(n=1):(e[o][i]=(1+t)*e[o][i]-t*h,T>_&&(n=Math.max(n,Math.abs(e[o][i]-h)/(T-_))))}return n}});var RU=xe((O8e,DU)=>{"use strict";var ume=tr().maxRowLength;DU.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=ume(r),s,f,c,g,b,h,_,T;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&&(h=(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),h?(f===0&&h++,c===0&&h++,f===r.length-1&&h++,c===i.length-1&&h++,h<4&&(n[[f,c]]=[f,c,h]),t.push([f,c,h])):a.push([f,c]));for(;a.length;){for(_={},T=!1,b=a.length-1;b>=0;b--)g=a[b],f=g[0],c=g[1],h=((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,h&&(_[g]=[f,c,h],a.splice(b,1),T=!0);if(!T)throw"findEmpties iterated with no new neighbors";for(g in _)n[g]=_[g],t.push(_[g])}return t.sort(function(m,k){return k[2]-m[2]})}});var qU=xe((U8e,NU)=>{"use strict";var fme=In().gl_surface3d,Uu=In().ndarray,cme=In().ndarray_linear_interpolate.d2,vme=LU(),hme=RU(),dv=tr().isArrayOrTypedArray,dme=Wl().parseColorScale,FU=$o(),pme=so().extractOpts;function IU(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 Ji=IU.prototype;Ji.getXat=function(e,r,t,n){var a=dv(this.data.x)?dv(this.data.x[0])?this.data.x[r][e]:this.data.x[e]:e;return t===void 0?a:n.d2l(a,0,t)};Ji.getYat=function(e,r,t,n){var a=dv(this.data.y)?dv(this.data.y[0])?this.data.y[r][e]:this.data.y[r]:r;return t===void 0?a:n.d2l(a,0,t)};Ji.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)};Ji.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 dv(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 gme(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 Hu=[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 yme(e,r){if(e<r)return 0;for(var t=0;Math.floor(e%r)===0;)e/=r,t++;return t}function B4(e){for(var r=[],t=0;t<Hu.length;t++){var n=Hu[t];r.push(yme(e,n))}return r}function mme(e){for(var r=B4(e),t=e,n=0;n<Hu.length;n++)if(r[n]>0){t=Hu[n];break}return t}function bme(e,r){if(!(e<1||r<1)){for(var t=B4(e),n=B4(r),a=1,o=0;o<Hu.length;o++)a*=Math.pow(Hu[o],Math.max(t[o],n[o]));return a}}function xme(e){if(e.length!==0){for(var r=1,t=0;t<e.length;t++)r=bme(r,e[t]);return r}}Ji.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};Ji.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 zU=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],PU=zU[9],gp=zU[13];Ji.estimateScale=function(e,r){for(var t=r===0?this.calcXnums(e):this.calcYnums(e),n=1+xme(t);n<PU;)n*=2;for(;n>gp;)n--,n/=mme(n),n++,n<PU&&(n=gp);var a=Math.round(n/e);return a>1?a:1};function _me(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 wme(e,r,t){return Mme(e,r,_me,t),e}function Mme(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,cme(r,a[0],a[1]));return e}Ji.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=Uu(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 g=Uu(new Float32Array(o*i),[o,i]);wme(g,s,f),e[c]=g}};function Tme(e,r){for(var t=!1,n=0;n<e.length;n++)if(r===e[n]){t=!0;break}t===!1&&e.push(r)}Ji.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],Tme(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})}};Ji.update=function(e){var r=this.scene,t=r.fullSceneLayout,n=this.surface,a=dme(e),o=r.dataScale,i=e.z[0].length,l=e._ylength,u=r.contourLevels;this.data=e;var s,f,c,g,b=[];for(s=0;s<3;s++)for(b[s]=[],f=0;f<i;f++)b[s][f]=[];for(f=0;f<i;f++)for(c=0;c<l;c++)b[0][f][c]=this.getXat(f,c,e.xcalendar,t.xaxis),b[1][f][c]=this.getYat(f,c,e.ycalendar,t.yaxis),b[2][f][c]=this.getZat(f,c,e.zcalendar,t.zaxis);if(e.connectgaps)for(e._emptypoints=hme(b[2]),vme(b[2],e._emptypoints),e._interpolatedZ=[],f=0;f<i;f++)for(e._interpolatedZ[f]=[],c=0;c<l;c++)e._interpolatedZ[f][c]=b[2][f][c];for(s=0;s<3;s++)for(f=0;f<i;f++)for(c=0;c<l;c++)g=b[s][f][c],g==null?b[s][f][c]=NaN:g=b[s][f][c]*=o[s];for(s=0;s<3;s++)for(f=0;f<i;f++)for(c=0;c<l;c++)g=b[s][f][c],g!=null&&(this.minValues[s]>g&&(this.minValues[s]=g),this.maxValues[s]<g&&(this.maxValues[s]=g));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++)g=b[s][f][c],g!=null&&(b[s][f][c]-=this.objectOffset[s]);var h=[Uu(new Float32Array(i*l),[i,l]),Uu(new Float32Array(i*l),[i,l]),Uu(new Float32Array(i*l),[i,l])];for(s=0;s<3;s++)for(f=0;f<i;f++)for(c=0;c<l;c++)h[s].set(f,c,b[s][f][c]);b=[];var _={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},T=pme(e);if(_.intensityBounds=[T.min,T.max],e.surfacecolor){var m=Uu(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]);h.push(m)}else _.intensityBounds[0]*=o[2],_.intensityBounds[1]*=o[2];(gp<h[0].shape[0]||gp<h[0].shape[1])&&(this.refineData=!1),this.refineData===!0&&(this.dataScaleX=this.estimateScale(h[0].shape[0],0),this.dataScaleY=this.estimateScale(h[0].shape[1],1),(this.dataScaleX!==1||this.dataScaleY!==1)&&this.refineCoords(h)),e.surfacecolor&&(_.intensity=h.pop());var k=[!0,!0,!0],S=["x","y","z"];for(s=0;s<3;++s){var x=e.contours[S[s]];k[s]=x.highlight,_.showContour[s]=x.show||x.highlight,_.showContour[s]&&(_.contourProject[s]=[x.project.x,x.project.y,x.project.z],x.show?(this.showContour[s]=!0,_.levels[s]=u[s],n.highlightColor[s]=_.contourColor[s]=FU(x.color),x.usecolormap?n.highlightTint[s]=_.contourTint[s]=0:n.highlightTint[s]=_.contourTint[s]=1,_.contourWidth[s]=x.width,this.contourStart[s]=x.start,this.contourEnd[s]=x.end,this.contourSize[s]=x.size):(this.showContour[s]=!1,this.contourStart[s]=null,this.contourEnd[s]=null,this.contourSize[s]=0),x.highlight&&(_.dynamicColor[s]=FU(x.highlightcolor),_.dynamicWidth[s]=x.highlightwidth))}gme(a)&&(_.vertexColor=!0),_.objectOffset=this.objectOffset,_.coords=h,n.update(_),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])};Ji.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()};function Ame(e,r){var t=e.glplot.gl,n=fme({gl:t}),a=new IU(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}NU.exports=Ame});var OU=xe((H8e,BU)=>{"use strict";BU.exports={attributes:hv(),supplyDefaults:q4().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:kU(),plot:qU(),moduleType:"trace",name:"surface",basePlotModule:Zl(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var HU=xe((V8e,UU)=>{"use strict";UU.exports=OU()});var Vu=xe((G8e,GU)=>{"use strict";var kme=Di(),O4=No().axisHoverFormat,{hovertemplateAttrs:Sme,templatefallbackAttrs:Cme}=Si(),Jl=hv(),VU=Zn(),$l=Rt().extendFlat;GU.exports=$l({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:Sme({editType:"calc"}),hovertemplatefallback:Cme({editType:"calc"}),xhoverformat:O4("x"),yhoverformat:O4("y"),zhoverformat:O4("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"}},kme("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Jl.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:$l({},Jl.contours.x.show,{}),color:Jl.contours.x.color,width:Jl.contours.x.width,editType:"calc"},lightposition:{x:$l({},Jl.lightposition.x,{dflt:1e5}),y:$l({},Jl.lightposition.y,{dflt:1e5}),z:$l({},Jl.lightposition.z,{dflt:0}),editType:"calc"},lighting:$l({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"},Jl.lighting),hoverinfo:$l({},VU.hoverinfo,{editType:"calc"}),showlegend:$l({},VU.showlegend,{dflt:!1})})});var mp=xe((Y8e,XU)=>{"use strict";var Eme=Di(),yp=No().axisHoverFormat,{hovertemplateAttrs:Lme,templatefallbackAttrs:Dme}=Si(),pv=Vu(),YU=Zn(),U4=Rt().extendFlat,Rme=ua().overrideAll;function H4(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function V4(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Gu=XU.exports=Rme(U4({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:H4("x"),y:H4("y"),z:H4("z")},caps:{x:V4("x"),y:V4("y"),z:V4("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Lme(),hovertemplatefallback:Dme(),xhoverformat:yp("x"),yhoverformat:yp("y"),zhoverformat:yp("z"),valuehoverformat:yp("value",1),showlegend:U4({},YU.showlegend,{dflt:!1})},Eme("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:pv.opacity,lightposition:pv.lightposition,lighting:pv.lighting,flatshading:pv.flatshading,contour:pv.contour,hoverinfo:U4({},YU.hoverinfo)}),"calc","nested");Gu.flatshading.dflt=!0;Gu.lighting.facenormalsepsilon.dflt=0;Gu.x.editType=Gu.y.editType=Gu.z.editType=Gu.value.editType="calc+clearAxisTypes"});var G4=xe((X8e,ZU)=>{"use strict";var Fme=tr(),Pme=Cr(),Ime=mp(),zme=lo();function Nme(e,r,t,n){function a(o,i){return Fme.coerce(e,r,Ime,o,i)}WU(e,r,t,n,a)}function WU(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=Pme.getComponentMethod("calendars","handleTraceDefaults");c(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(_){a(_+"hoverformat");var T="caps."+_,m=a(T+".show");m&&a(T+".fill");var k="slices."+_,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var g=a("spaceframe.show");g&&a("spaceframe.fill");var b=a("surface.show");b&&(a("surface.count"),a("surface.fill"),a("surface.pattern"));var h=a("contour.show");h&&(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(_){a(_)}),zme(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}ZU.exports={supplyDefaults:Nme,supplyIsoDefaults:WU}});var bp=xe((W8e,$U)=>{"use strict";var X4=tr(),qme=Tl();function Bme(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=ko(r.u,r._len),r._v=ko(r.v,r._len),r._w=ko(r.w,r._len),r._x=ko(r.x,r._len),r._y=ko(r.y,r._len),r._z=ko(r.z,r._len);var t=JU(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=ko(r.starts.x||[]),o=ko(r.starts.y||[]),i=ko(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],g=r._w[s],b=Math.sqrt(f*f+c*c+g*g);l=Math.max(l,b),u=Math.min(u,b)}for(qme(e,r,{vals:[u,l],containerStr:"",cLetter:"c"}),s=0;s<n;s++){var h=a[s];t.xMax=Math.max(t.xMax,h),t.xMin=Math.min(t.xMin,h);var _=o[s];t.yMax=Math.max(t.yMax,_),t.yMin=Math.min(t.yMin,_);var T=i[s];t.zMax=Math.max(t.zMax,T),t.zMin=Math.min(t.zMin,T)}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 JU(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,g=-1/0,b=1/0,h="",_,T,m,k,S,x,M,d,w;for(a&&(k=r[0],x=t[0],d=n[0]),a>1&&(S=r[a-1],M=t[a-1],w=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]),g=Math.max(g,n[o]),b=Math.min(b,n[o]),!_&&r[o]!==k&&(_=!0,h+="x"),!T&&t[o]!==x&&(T=!0,h+="y"),!m&&n[o]!==d&&(m=!0,h+="z");_||(h+="x"),T||(h+="y"),m||(h+="z");var y=Y4(e._x),v=Y4(e._y),A=Y4(e._z);h=h.replace("x",(k>S?"-":"+")+"x"),h=h.replace("y",(x>M?"-":"+")+"y"),h=h.replace("z",(d>w?"-":"+")+"z");var p=function(){a=0,y=[],v=[],A=[]};(!a||a<y.length*v.length*A.length)&&p();var D=function(ae){return ae==="x"?r:ae==="y"?t:n},E=function(ae){return ae==="x"?y:ae==="y"?v:A},R=function(ae){return ae[a-1]<ae[0]?-1:1},I=D(h[1]),z=D(h[3]),F=D(h[5]),L=E(h[1]).length,P=E(h[3]).length,B=E(h[5]).length,O=!1,G=function(ae,Q,te){return L*(P*ae+Q)+te},J=R(D(h[1])),j=R(D(h[3])),V=R(D(h[5]));for(o=0;o<B-1;o++){for(i=0;i<P-1;i++){for(l=0;l<L-1;l++){var q=G(o,i,l),Z=G(o,i,l+1),re=G(o,i+1,l),$=G(o+1,i,l);if((!(I[q]*J<I[Z]*J)||!(z[q]*j<z[re]*j)||!(F[q]*V<F[$]*V))&&(O=!0),O)break}if(O)break}if(O)break}return O&&(X4.warn("Encountered arbitrary coordinates! Unable to input data grid."),p()),{xMin:s,yMin:c,zMin:b,xMax:u,yMax:f,zMax:g,Xs:y,Ys:v,Zs:A,len:a,fill:h}}function Y4(e){return X4.distinctVals(e).vals}function ko(e,r){if(r===void 0&&(r=e.length),X4.isTypedArray(e))return e.subarray(0,r);for(var t=[],n=0;n<r;n++)t[n]=+e[n];return t}$U.exports={calc:Bme,filter:ko,processGrid:JU}});var W4=xe((Z8e,KU)=>{"use strict";var Ome=Tl(),Ume=bp().processGrid,xp=bp().filter;KU.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=xp(t.x,t._len),t._y=xp(t.y,t._len),t._z=xp(t.z,t._len),t._value=xp(t.value,t._len);var n=Ume(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,Ome(r,t,{vals:[t._vMin,t._vMax],containerStr:"",cLetter:"c"})}});var Yu=xe((J8e,QU)=>{"use strict";QU.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 _p=xe(($8e,tH)=>{"use strict";var Hme=In().gl_mesh3d,Vme=Wl().parseColorScale,Gme=tr().isArrayOrTypedArray,Yme=$o(),Xme=so().extractOpts,jU=Yu(),gv=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 eH(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var Z4=eH.prototype;Z4.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=gv(t,this.data._Xs).id,u=gv(n,this.data._Ys).id,s=gv(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 Gme(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};Z4.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=rH(e);function n(u,s,f,c){return s.map(function(g){return u.d2l(g,0,c)*f})}var a=jU(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=jU(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:Yme(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=Xme(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=Vme(e),this.mesh.update(i)};Z4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var Wme=["xyz","xzy","yxz","yzx","zxy","zyx"];function rH(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,g=e._Zs,b=f.length,h=c.length,_=g.length,T=Wme.indexOf(e._gridFill.replace(/-/g,"").replace(/\+/g,"")),m=function(pe,me,Se){switch(T){case 5:return Se+_*me+_*h*pe;case 4:return Se+_*pe+_*b*me;case 3:return me+h*Se+h*_*pe;case 2:return me+h*pe+h*b*Se;case 1:return pe+b*Se+b*_*me;default:return pe+b*me+b*h*Se}},k=e._minValues,S=e._maxValues,x=e._vMin,M=e._vMax,d,w,y,v;function A(pe,me,Se){for(var ve=v.length,he=s;he<ve;he++)if(pe===d[he]&&me===w[he]&&Se===y[he])return he;return-1}function p(){s=u}function D(){d=[],w=[],y=[],v=[],u=0,p()}function E(pe,me,Se,ve){return d.push(pe),w.push(me),y.push(Se),v.push(ve),u++,u-1}function R(pe,me,Se){return e._meshI.push(pe),e._meshJ.push(me),e._meshK.push(Se),l++,l-1}function I(pe,me,Se){for(var ve=[],he=0;he<pe.length;he++)ve[he]=(pe[he]+me[he]+Se[he])/3;return ve}function z(pe,me,Se){for(var ve=[],he=0;he<pe.length;he++)ve[he]=pe[he]*(1-Se)+Se*me[he];return ve}var F;function L(pe){F=pe}function P(pe,me){var Se=pe[0],ve=pe[1],he=pe[2],be=I(Se,ve,he),Ae=Math.sqrt(1-F),Re=z(be,Se,Ae),Pe=z(be,ve,Ae),Ye=z(be,he,Ae),Ve=me[0],Ue=me[1],qe=me[2];return{xyzv:[[Se,ve,Pe],[Pe,Re,Se],[ve,he,Ye],[Ye,Pe,ve],[he,Se,Re],[Re,Ye,he]],abc:[[Ve,Ue,-1],[-1,-1,Ve],[Ue,qe,-1],[-1,-1,Ue],[qe,Ve,-1],[-1,-1,qe]]}}function B(pe,me){return pe==="all"||pe===null?!0:pe.indexOf(me)>-1}function O(pe,me){return pe===null?me:pe}function G(pe,me,Se){p();var ve=[me],he=[Se];if(F>=1)ve=[me],he=[Se];else if(F>0){var be=P(me,Se);ve=be.xyzv,he=be.abc}for(var Ae=0;Ae<ve.length;Ae++){me=ve[Ae],Se=he[Ae];for(var Re=[],Pe=0;Pe<3;Pe++){var Ye=me[Pe][0],Ve=me[Pe][1],Ue=me[Pe][2],qe=me[Pe][3],We=Se[Pe]>-1?Se[Pe]:A(Ye,Ve,Ue);We>-1?Re[Pe]=We:Re[Pe]=E(Ye,Ve,Ue,O(pe,qe))}R(Re[0],Re[1],Re[2])}}function J(pe,me,Se){var ve=function(he,be,Ae){G(pe,[me[he],me[be],me[Ae]],[Se[he],Se[be],Se[Ae]])};ve(0,1,2),ve(2,3,0)}function j(pe,me,Se){var ve=function(he,be,Ae){G(pe,[me[he],me[be],me[Ae]],[Se[he],Se[be],Se[Ae]])};ve(0,1,2),ve(3,0,1),ve(2,3,0),ve(1,2,3)}function V(pe,me,Se,ve){var he=pe[3];he<Se&&(he=Se),he>ve&&(he=ve);for(var be=(pe[3]-he)/(pe[3]-me[3]+1e-9),Ae=[],Re=0;Re<4;Re++)Ae[Re]=(1-be)*pe[Re]+be*me[Re];return Ae}function q(pe,me,Se){return pe>=me&&pe<=Se}function Z(pe){var me=.001*(M-x);return pe>=x-me&&pe<=M+me}function re(pe){for(var me=[],Se=0;Se<4;Se++){var ve=pe[Se];me.push([e._x[ve],e._y[ve],e._z[ve],e._value[ve]])}return me}var $=3;function ae(pe,me,Se,ve,he,be){be||(be=1),Se=[-1,-1,-1];var Ae=!1,Re=[q(me[0][3],ve,he),q(me[1][3],ve,he),q(me[2][3],ve,he)];if(!Re[0]&&!Re[1]&&!Re[2])return!1;var Pe=function(Ve,Ue,qe){return Z(Ue[0][3])&&Z(Ue[1][3])&&Z(Ue[2][3])?(G(Ve,Ue,qe),!0):be<$?ae(Ve,Ue,qe,x,M,++be):!1};if(Re[0]&&Re[1]&&Re[2])return Pe(pe,me,Se)||Ae;var Ye=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach(function(Ve){if(Re[Ve[0]]&&Re[Ve[1]]&&!Re[Ve[2]]){var Ue=me[Ve[0]],qe=me[Ve[1]],We=me[Ve[2]],Xe=V(We,Ue,ve,he),er=V(We,qe,ve,he);Ae=Pe(pe,[er,Xe,Ue],[-1,-1,Se[Ve[0]]])||Ae,Ae=Pe(pe,[Ue,qe,er],[Se[Ve[0]],Se[Ve[1]],-1])||Ae,Ye=!0}}),Ye||[[0,1,2],[1,2,0],[2,0,1]].forEach(function(Ve){if(Re[Ve[0]]&&!Re[Ve[1]]&&!Re[Ve[2]]){var Ue=me[Ve[0]],qe=me[Ve[1]],We=me[Ve[2]],Xe=V(qe,Ue,ve,he),er=V(We,Ue,ve,he);Ae=Pe(pe,[er,Xe,Ue],[-1,-1,Se[Ve[0]]])||Ae,Ye=!0}}),Ae}function Q(pe,me,Se,ve){var he=!1,be=re(me),Ae=[q(be[0][3],Se,ve),q(be[1][3],Se,ve),q(be[2][3],Se,ve),q(be[3][3],Se,ve)];if(!Ae[0]&&!Ae[1]&&!Ae[2]&&!Ae[3])return he;if(Ae[0]&&Ae[1]&&Ae[2]&&Ae[3])return i&&(he=j(pe,be,me)||he),he;var Re=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach(function(Pe){if(Ae[Pe[0]]&&Ae[Pe[1]]&&Ae[Pe[2]]&&!Ae[Pe[3]]){var Ye=be[Pe[0]],Ve=be[Pe[1]],Ue=be[Pe[2]],qe=be[Pe[3]];if(i)he=G(pe,[Ye,Ve,Ue],[me[Pe[0]],me[Pe[1]],me[Pe[2]]])||he;else{var We=V(qe,Ye,Se,ve),Xe=V(qe,Ve,Se,ve),er=V(qe,Ue,Se,ve);he=G(null,[We,Xe,er],[-1,-1,-1])||he}Re=!0}}),Re||([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach(function(Pe){if(Ae[Pe[0]]&&Ae[Pe[1]]&&!Ae[Pe[2]]&&!Ae[Pe[3]]){var Ye=be[Pe[0]],Ve=be[Pe[1]],Ue=be[Pe[2]],qe=be[Pe[3]],We=V(Ue,Ye,Se,ve),Xe=V(Ue,Ve,Se,ve),er=V(qe,Ve,Se,ve),nr=V(qe,Ye,Se,ve);i?(he=G(pe,[Ye,nr,We],[me[Pe[0]],-1,-1])||he,he=G(pe,[Ve,Xe,er],[me[Pe[1]],-1,-1])||he):he=J(null,[We,Xe,er,nr],[-1,-1,-1,-1])||he,Re=!0}}),Re)||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach(function(Pe){if(Ae[Pe[0]]&&!Ae[Pe[1]]&&!Ae[Pe[2]]&&!Ae[Pe[3]]){var Ye=be[Pe[0]],Ve=be[Pe[1]],Ue=be[Pe[2]],qe=be[Pe[3]],We=V(Ve,Ye,Se,ve),Xe=V(Ue,Ye,Se,ve),er=V(qe,Ye,Se,ve);i?(he=G(pe,[Ye,We,Xe],[me[Pe[0]],-1,-1])||he,he=G(pe,[Ye,Xe,er],[me[Pe[0]],-1,-1])||he,he=G(pe,[Ye,er,We],[me[Pe[0]],-1,-1])||he):he=G(null,[We,Xe,er],[-1,-1,-1])||he,Re=!0}}),he}function te(pe,me,Se,ve,he,be,Ae,Re,Pe,Ye,Ve){var Ue=!1;return o&&(B(pe,"A")&&(Ue=Q(null,[me,Se,ve,be],Ye,Ve)||Ue),B(pe,"B")&&(Ue=Q(null,[Se,ve,he,Pe],Ye,Ve)||Ue),B(pe,"C")&&(Ue=Q(null,[Se,be,Ae,Pe],Ye,Ve)||Ue),B(pe,"D")&&(Ue=Q(null,[ve,be,Re,Pe],Ye,Ve)||Ue),B(pe,"E")&&(Ue=Q(null,[Se,ve,be,Pe],Ye,Ve)||Ue)),i&&(Ue=Q(pe,[Se,ve,be,Pe],Ye,Ve)||Ue),Ue}function ue(pe,me,Se,ve,he,be,Ae,Re){return[Re[0]===!0?!0:ae(pe,re([me,Se,ve]),[me,Se,ve],be,Ae),Re[1]===!0?!0:ae(pe,re([ve,he,me]),[ve,he,me],be,Ae)]}function ee(pe,me,Se,ve,he,be,Ae,Re,Pe){return Re?ue(pe,me,Se,he,ve,be,Ae,Pe):ue(pe,Se,he,ve,me,be,Ae,Pe)}function ie(pe,me,Se,ve,he,be,Ae){var Re=!1,Pe,Ye,Ve,Ue,qe=function(){Re=ae(pe,[Pe,Ye,Ve],[-1,-1,-1],he,be)||Re,Re=ae(pe,[Ve,Ue,Pe],[-1,-1,-1],he,be)||Re},We=Ae[0],Xe=Ae[1],er=Ae[2];return We&&(Pe=z(re([m(me,Se-0,ve-0)])[0],re([m(me-1,Se-0,ve-0)])[0],We),Ye=z(re([m(me,Se-0,ve-1)])[0],re([m(me-1,Se-0,ve-1)])[0],We),Ve=z(re([m(me,Se-1,ve-1)])[0],re([m(me-1,Se-1,ve-1)])[0],We),Ue=z(re([m(me,Se-1,ve-0)])[0],re([m(me-1,Se-1,ve-0)])[0],We),qe()),Xe&&(Pe=z(re([m(me-0,Se,ve-0)])[0],re([m(me-0,Se-1,ve-0)])[0],Xe),Ye=z(re([m(me-0,Se,ve-1)])[0],re([m(me-0,Se-1,ve-1)])[0],Xe),Ve=z(re([m(me-1,Se,ve-1)])[0],re([m(me-1,Se-1,ve-1)])[0],Xe),Ue=z(re([m(me-1,Se,ve-0)])[0],re([m(me-1,Se-1,ve-0)])[0],Xe),qe()),er&&(Pe=z(re([m(me-0,Se-0,ve)])[0],re([m(me-0,Se-0,ve-1)])[0],er),Ye=z(re([m(me-0,Se-1,ve)])[0],re([m(me-0,Se-1,ve-1)])[0],er),Ve=z(re([m(me-1,Se-1,ve)])[0],re([m(me-1,Se-1,ve-1)])[0],er),Ue=z(re([m(me-1,Se-0,ve)])[0],re([m(me-1,Se-0,ve-1)])[0],er),qe()),Re}function fe(pe,me,Se,ve,he,be,Ae,Re,Pe,Ye,Ve,Ue){var qe=pe;return Ue?(o&&pe==="even"&&(qe=null),te(qe,me,Se,ve,he,be,Ae,Re,Pe,Ye,Ve)):(o&&pe==="odd"&&(qe=null),te(qe,Pe,Re,Ae,be,he,ve,Se,me,Ye,Ve))}function we(pe,me,Se,ve,he){for(var be=[],Ae=0,Re=0;Re<me.length;Re++)for(var Pe=me[Re],Ye=1;Ye<_;Ye++)for(var Ve=1;Ve<h;Ve++)be.push(ee(pe,m(Pe,Ve-1,Ye-1),m(Pe,Ve-1,Ye),m(Pe,Ve,Ye-1),m(Pe,Ve,Ye),Se,ve,(Pe+Ve+Ye)%2,he&&he[Ae]?he[Ae]:[])),Ae++;return be}function Te(pe,me,Se,ve,he){for(var be=[],Ae=0,Re=0;Re<me.length;Re++)for(var Pe=me[Re],Ye=1;Ye<b;Ye++)for(var Ve=1;Ve<_;Ve++)be.push(ee(pe,m(Ye-1,Pe,Ve-1),m(Ye,Pe,Ve-1),m(Ye-1,Pe,Ve),m(Ye,Pe,Ve),Se,ve,(Ye+Pe+Ve)%2,he&&he[Ae]?he[Ae]:[])),Ae++;return be}function ke(pe,me,Se,ve,he){for(var be=[],Ae=0,Re=0;Re<me.length;Re++)for(var Pe=me[Re],Ye=1;Ye<h;Ye++)for(var Ve=1;Ve<b;Ve++)be.push(ee(pe,m(Ve-1,Ye-1,Pe),m(Ve-1,Ye,Pe),m(Ve,Ye-1,Pe),m(Ve,Ye,Pe),Se,ve,(Ve+Ye+Pe)%2,he&&he[Ae]?he[Ae]:[])),Ae++;return be}function ge(pe,me,Se){for(var ve=1;ve<_;ve++)for(var he=1;he<h;he++)for(var be=1;be<b;be++)fe(pe,m(be-1,he-1,ve-1),m(be-1,he-1,ve),m(be-1,he,ve-1),m(be-1,he,ve),m(be,he-1,ve-1),m(be,he-1,ve),m(be,he,ve-1),m(be,he,ve),me,Se,(be+he+ve)%2)}function Ee(pe,me,Se){i=!0,ge(pe,me,Se),i=!1}function Le(pe,me,Se){o=!0,ge(pe,me,Se),o=!1}function se(pe,me,Se,ve,he,be){for(var Ae=[],Re=0,Pe=0;Pe<me.length;Pe++)for(var Ye=me[Pe],Ve=1;Ve<_;Ve++)for(var Ue=1;Ue<h;Ue++)Ae.push(ie(pe,Ye,Ue,Ve,Se,ve,he[Pe],be&&be[Re]?be[Re]:[])),Re++;return Ae}function X(pe,me,Se,ve,he,be){for(var Ae=[],Re=0,Pe=0;Pe<me.length;Pe++)for(var Ye=me[Pe],Ve=1;Ve<b;Ve++)for(var Ue=1;Ue<_;Ue++)Ae.push(ie(pe,Ve,Ye,Ue,Se,ve,he[Pe],be&&be[Re]?be[Re]:[])),Re++;return Ae}function K(pe,me,Se,ve,he,be){for(var Ae=[],Re=0,Pe=0;Pe<me.length;Pe++)for(var Ye=me[Pe],Ve=1;Ve<h;Ve++)for(var Ue=1;Ue<b;Ue++)Ae.push(ie(pe,Ue,Ve,Ye,Se,ve,he[Pe],be&&be[Re]?be[Re]:[])),Re++;return Ae}function ye(pe,me){for(var Se=[],ve=pe;ve<me;ve++)Se.push(ve);return Se}function oe(){for(var pe=0;pe<b;pe++)for(var me=0;me<h;me++)for(var Se=0;Se<_;Se++){var ve=m(pe,me,Se);E(e._x[ve],e._y[ve],e._z[ve],e._value[ve])}}function de(){D(),oe();var pe=null;if(t&&a&&(L(a),Ee(pe,x,M)),r&&n){L(n);for(var me=e.surface.pattern,Se=e.surface.count,ve=0;ve<Se;ve++){var he=Se===1?.5:ve/(Se-1),be=(1-he)*x+he*M,Ae=Math.abs(be-k),Re=Math.abs(be-S),Pe=Ae>Re?[k,be]:[be,S];Le(me,Pe[0],Pe[1])}}var Ye=[[Math.min(x,S),Math.max(x,S)],[Math.min(k,M),Math.max(k,M)]];["x","y","z"].forEach(function(Ve){for(var Ue=[],qe=0;qe<Ye.length;qe++){var We=0,Xe=Ye[qe][0],er=Ye[qe][1],nr=e.slices[Ve];if(nr.show&&nr.fill){L(nr.fill);var rr=[],Qe=[],Ce=[];if(nr.locations.length)for(var ze=0;ze<nr.locations.length;ze++){var Ke=gv(nr.locations[ze],Ve==="x"?f:Ve==="y"?c:g);Ke.distRatio===0?rr.push(Ke.id):Ke.id>0&&(Qe.push(Ke.id),Ve==="x"?Ce.push([Ke.distRatio,0,0]):Ve==="y"?Ce.push([0,Ke.distRatio,0]):Ce.push([0,0,Ke.distRatio]))}else Ve==="x"?rr=ye(1,b-1):Ve==="y"?rr=ye(1,h-1):rr=ye(1,_-1);Qe.length>0&&(Ve==="x"?Ue[We]=se(pe,Qe,Xe,er,Ce,Ue[We]):Ve==="y"?Ue[We]=X(pe,Qe,Xe,er,Ce,Ue[We]):Ue[We]=K(pe,Qe,Xe,er,Ce,Ue[We]),We++),rr.length>0&&(Ve==="x"?Ue[We]=we(pe,rr,Xe,er,Ue[We]):Ve==="y"?Ue[We]=Te(pe,rr,Xe,er,Ue[We]):Ue[We]=ke(pe,rr,Xe,er,Ue[We]),We++)}var je=e.caps[Ve];je.show&&je.fill&&(L(je.fill),Ve==="x"?Ue[We]=we(pe,[0,b-1],Xe,er,Ue[We]):Ve==="y"?Ue[We]=Te(pe,[0,h-1],Xe,er,Ue[We]):Ue[We]=ke(pe,[0,_-1],Xe,er,Ue[We]),We++)}}),l===0&&D(),e._meshX=d,e._meshY=w,e._meshZ=y,e._meshIntensity=v,e._Xs=f,e._Ys=c,e._Zs=g}return de(),e}function Zme(e,r){var t=e.glplot.gl,n=Hme({gl:t}),a=new eH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}tH.exports={findNearestOnAxis:gv,generateIsoMeshes:rH,createIsosurfaceTrace:Zme}});var aH=xe((K8e,nH)=>{"use strict";nH.exports={attributes:mp(),supplyDefaults:G4().supplyDefaults,calc:W4(),colorbar:{min:"cmin",max:"cmax"},plot:_p().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:Zl(),categories:["gl3d","showLegend"],meta:{}}});var oH=xe((Q8e,iH)=>{"use strict";iH.exports=aH()});var $4=xe((j8e,sH)=>{"use strict";var Jme=Di(),hn=mp(),$me=hv(),lH=Zn(),J4=Rt().extendFlat,Kme=ua().overrideAll,wp=sH.exports=Kme(J4({x:hn.x,y:hn.y,z:hn.z,value:hn.value,isomin:hn.isomin,isomax:hn.isomax,surface:hn.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:hn.slices,caps:hn.caps,text:hn.text,hovertext:hn.hovertext,xhoverformat:hn.xhoverformat,yhoverformat:hn.yhoverformat,zhoverformat:hn.zhoverformat,valuehoverformat:hn.valuehoverformat,hovertemplate:hn.hovertemplate,hovertemplatefallback:hn.hovertemplatefallback},Jme("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:hn.colorbar,opacity:hn.opacity,opacityscale:$me.opacityscale,lightposition:hn.lightposition,lighting:hn.lighting,flatshading:hn.flatshading,contour:hn.contour,hoverinfo:J4({},lH.hoverinfo),showlegend:J4({},lH.showlegend,{dflt:!1})}),"calc","nested");wp.x.editType=wp.y.editType=wp.z.editType=wp.value.editType="calc+clearAxisTypes"});var fH=xe((e9e,uH)=>{"use strict";var Qme=tr(),jme=$4(),e5e=G4().supplyIsoDefaults,r5e=q4().opacityscaleDefaults;uH.exports=function(r,t,n,a){function o(i,l){return Qme.coerce(r,t,jme,i,l)}e5e(r,t,n,a,o),r5e(r,t,a,o)}});var dH=xe((r9e,hH)=>{"use strict";var t5e=In().gl_mesh3d,n5e=Wl().parseColorScale,a5e=tr().isArrayOrTypedArray,i5e=$o(),o5e=so().extractOpts,cH=Yu(),K4=_p().findNearestOnAxis,l5e=_p().generateIsoMeshes;function vH(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var Q4=vH.prototype;Q4.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=K4(t,this.data._Xs).id,u=K4(n,this.data._Ys).id,s=K4(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 a5e(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};Q4.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=l5e(e);function n(u,s,f,c){return s.map(function(g){return u.d2l(g,0,c)*f})}var a=cH(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=cH(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:i5e(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=o5e(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=n5e(e),this.mesh.update(i)};Q4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function s5e(e,r){var t=e.glplot.gl,n=t5e({gl:t}),a=new vH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}hH.exports=s5e});var gH=xe((t9e,pH)=>{"use strict";pH.exports={attributes:$4(),supplyDefaults:fH(),calc:W4(),colorbar:{min:"cmin",max:"cmax"},plot:dH(),moduleType:"trace",name:"volume",basePlotModule:Zl(),categories:["gl3d","showLegend"],meta:{}}});var mH=xe((n9e,yH)=>{"use strict";yH.exports=gH()});var _H=xe((a9e,xH)=>{"use strict";var u5e=Cr(),bH=tr(),f5e=lo(),c5e=Vu();xH.exports=function(r,t,n,a){function o(f,c){return bH.coerce(r,t,c5e,f,c)}function i(f){var c=f.map(function(g){var b=o(g);return b&&bH.isArrayOrTypedArray(b)?b:null});return c.every(function(g){return g&&g.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=u5e.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"),f5e(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 MH=xe((i9e,wH)=>{"use strict";var v5e=Tl();wH.exports=function(r,t){t.intensity&&v5e(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var CH=xe((o9e,SH)=>{"use strict";var h5e=In().gl_mesh3d,d5e=In().delaunay_triangulate,p5e=In().alpha_shape,g5e=In().convex_hull,y5e=Wl().parseColorScale,m5e=tr().isArrayOrTypedArray,t6=$o(),b5e=so().extractOpts,TH=Yu();function kH(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var n6=kH.prototype;n6.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 m5e(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function AH(e){for(var r=[],t=e.length,n=0;n<t;n++)r[n]=t6(e[n]);return r}function j4(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 e6(e){for(var r=[],t=e.length,n=0;n<t;n++)r[n]=Math.round(e[n]);return r}function x5e(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 d5e(n)}function r6(e,r){for(var t=e.length,n=0;n<t;n++)if(e[n]<=-.5||e[n]>=r-.5)return!1;return!0}n6.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=TH(j4(t.xaxis,e.x,r.dataScale[0],e.xcalendar),j4(t.yaxis,e.y,r.dataScale[1],e.ycalendar),j4(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||!r6(e.i,n)||!r6(e.j,n)||!r6(e.k,n))return;o=TH(e6(e.i),e6(e.j),e6(e.k))}else e.alphahull===0?o=g5e(a):e.alphahull>0?o=p5e(e.alphahull,a):o=x5e(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:t6(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=b5e(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=y5e(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=AH(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=AH(e.facecolor)):(this.color=e.color,i.meshColor=t6(e.color));this.mesh.update(i)};n6.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function _5e(e,r){var t=e.glplot.gl,n=h5e({gl:t}),a=new kH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}SH.exports=_5e});var LH=xe((l9e,EH)=>{"use strict";EH.exports={attributes:Vu(),supplyDefaults:_H(),calc:MH(),colorbar:{min:"cmin",max:"cmax"},plot:CH(),moduleType:"trace",name:"mesh3d",basePlotModule:Zl(),categories:["gl3d","showLegend"],meta:{}}});var RH=xe((s9e,DH)=>{"use strict";DH.exports=LH()});var i6=xe((u9e,PH)=>{"use strict";var w5e=Di(),Xu=No().axisHoverFormat,{hovertemplateAttrs:M5e,templatefallbackAttrs:T5e}=Si(),A5e=Vu(),FH=Zn(),a6=Rt().extendFlat,Mp={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:M5e({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:T5e({editType:"calc"}),uhoverformat:Xu("u",1),vhoverformat:Xu("v",1),whoverformat:Xu("w",1),xhoverformat:Xu("x"),yhoverformat:Xu("y"),zhoverformat:Xu("z"),showlegend:a6({},FH.showlegend,{dflt:!1})};a6(Mp,w5e("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var k5e=["opacity","lightposition","lighting"];k5e.forEach(function(e){Mp[e]=A5e[e]});Mp.hoverinfo=a6({},FH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});PH.exports=Mp});var zH=xe((f9e,IH)=>{"use strict";var S5e=tr(),C5e=lo(),E5e=i6();IH.exports=function(r,t,n,a){function o(b,h){return S5e.coerce(r,t,E5e,b,h)}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 g=o("sizemode");o("sizeref",g==="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"),C5e(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 qH=xe((c9e,NH)=>{"use strict";var L5e=Tl();NH.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],g=o[s],b=Math.sqrt(f*f+c*c+g*g);l=Math.max(l,b),u=Math.min(u,b)}t._len=i,t._normMax=l,L5e(r,t,{vals:[u,l],containerStr:"",cLetter:"c"})}});var VH=xe((v9e,HH)=>{"use strict";var D5e=In().gl_cone3d,R5e=In().gl_cone3d.createConeMesh,F5e=tr().simpleMap,P5e=Wl().parseColorScale,I5e=so().extractOpts,z5e=tr().isArrayOrTypedArray,BH=Yu();function OH(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var o6=OH.prototype;o6.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 z5e(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var N5e={xaxis:0,yaxis:1,zaxis:2},q5e={tip:1,tail:0,cm:.25,center:.5},B5e={tip:1,tail:1,cm:.75,center:.5};function UH(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,c){var g=t[c],b=n[N5e[c]];return F5e(f,function(h){return g.d2l(h)*b})}a.vectors=BH(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=BH(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=I5e(r);a.colormap=P5e(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=q5e[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=D5e(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=B5e[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}o6.update=function(e){this.data=e;var r=UH(this.scene,e);this.mesh.update(r)};o6.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function O5e(e,r){var t=e.glplot.gl,n=UH(e,r),a=R5e(t,n),o=new OH(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}HH.exports=O5e});var YH=xe((h9e,GH)=>{"use strict";GH.exports={moduleType:"trace",name:"cone",basePlotModule:Zl(),categories:["gl3d","showLegend"],attributes:i6(),supplyDefaults:zH(),colorbar:{min:"cmin",max:"cmax"},calc:qH(),plot:VH(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var WH=xe((d9e,XH)=>{"use strict";XH.exports=YH()});var s6=xe((p9e,JH)=>{"use strict";var U5e=Di(),Wu=No().axisHoverFormat,{hovertemplateAttrs:H5e,templatefallbackAttrs:V5e}=Si(),G5e=Vu(),ZH=Zn(),l6=Rt().extendFlat,Tp={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:H5e({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:V5e({editType:"calc"}),uhoverformat:Wu("u",1),vhoverformat:Wu("v",1),whoverformat:Wu("w",1),xhoverformat:Wu("x"),yhoverformat:Wu("y"),zhoverformat:Wu("z"),showlegend:l6({},ZH.showlegend,{dflt:!1})};l6(Tp,U5e("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Y5e=["opacity","lightposition","lighting"];Y5e.forEach(function(e){Tp[e]=G5e[e]});Tp.hoverinfo=l6({},ZH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});JH.exports=Tp});var KH=xe((g9e,$H)=>{"use strict";var X5e=tr(),W5e=lo(),Z5e=s6();$H.exports=function(r,t,n,a){function o(g,b){return X5e.coerce(r,t,Z5e,g,b)}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"),W5e(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 iV=xe((y9e,aV)=>{"use strict";var eV=In().gl_streamtube3d,J5e=eV.createTubeMesh,$5e=tr(),K5e=Wl().parseColorScale,Q5e=so().extractOpts,QH=Yu(),rV={xaxis:0,yaxis:1,zaxis:2};function tV(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var f6=tV.prototype;f6.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[rV[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 jH(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 u6(e){var r=e.length;return r===1?[.5,.5]:[e[1]-e[0],e[r-1]-e[r-2]]}function nV(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(D,E){var R=t[E],I=n[rV[E]];return $5e.simpleMap(D,function(z){return R.d2l(z)*I})}if(o.vectors=QH(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=QH(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var c=u[0],g=jH(l),b=jH(s),h=new Array(g.length*b.length),_=0,T=0;T<g.length;T++)for(var m=0;m<b.length;m++)h[_++]=[g[T],c,b[m]];o.startingPositions=h}o.colormap=K5e(r),o.tubeSize=r.sizeref,o.maxLength=r.maxdisplayed;var k=i(r._xbnds,"xaxis"),S=i(r._ybnds,"yaxis"),x=i(r._zbnds,"zaxis"),M=u6(l),d=u6(u),w=u6(s),y=[[k[0]-M[0],S[0]-d[0],x[0]-w[0]],[k[1]+M[1],S[1]+d[1],x[1]+w[1]]],v=eV(o,y),A=Q5e(r);v.vertexIntensityBounds=[A.min/r._normMax,A.max/r._normMax];var p=r.lightposition;return v.lightPosition=[p.x,p.y,p.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}f6.update=function(e){this.data=e;var r=nV(this.scene,e);this.mesh.update(r)};f6.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function j5e(e,r){var t=e.glplot.gl,n=nV(e,r),a=J5e(t,n),o=new tV(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}aV.exports=j5e});var lV=xe((m9e,oV)=>{"use strict";oV.exports={moduleType:"trace",name:"streamtube",basePlotModule:Zl(),categories:["gl3d","showLegend"],attributes:s6(),supplyDefaults:KH(),colorbar:{min:"cmin",max:"cmax"},calc:bp().calc,plot:iV(),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 uV=xe((b9e,sV)=>{"use strict";sV.exports=lV()});var ta=xe((x9e,cV)=>{"use strict";var fV=Object.getOwnPropertySymbols,ebe=Object.prototype.hasOwnProperty,rbe=Object.prototype.propertyIsEnumerable;function tbe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function nbe(){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}}cV.exports=nbe()?Object.assign:function(e,r){for(var t,n=tbe(e),a,o=1;o<arguments.length;o++){t=Object(arguments[o]);for(var i in t)ebe.call(t,i)&&(n[i]=t[i]);if(fV){a=fV(t);for(var l=0;l<a.length;l++)rbe.call(t,a[l])&&(n[a[l]]=t[a[l]])}}return n}});var na=xe((_9e,hV)=>{var kp=ta();function vV(){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={}}kp(vV.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 c6(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($r.local.invalidDate||$r.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Ap(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}kp(c6.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($r.local.invalidDate||$r.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($r.local.differentCalendars||$r.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?"-":"")+Ap(Math.abs(this.year()),4)+"-"+Ap(this.month(),2)+"-"+Ap(this.day(),2)}});function v6(){this.shortYearCutoff="+10"}kp(v6.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,$r.local.invalidDate||$r.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new c6(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,$r.local.invalidYear||$r.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,$r.local.invalidYear||$r.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Ap(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,$r.local.invalidYear||$r.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,$r.local.invalidMonth||$r.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,$r.local.invalidMonth||$r.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,$r.local.invalidYear||$r.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,$r.local.invalidDate||$r.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,$r.local.invalidDate||$r.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,$r.local.invalidDate||$r.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,$r.local.invalidDate||$r.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,$r.local.invalidDate||$r.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,$r.local.invalidDate||$r.regionalOptions[""].invalidDate);return $r.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(e){return this.fromJD($r.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,n){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw($r.local.differentCalendars||$r.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 h6(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}h6.prototype=new v6;kp(h6.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,$r.local.invalidYear||$r.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,$r.local.invalidMonth||$r.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,$r.local.invalidDate||$r.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,$r.local.invalidDate||$r.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 $r=hV.exports=new vV;$r.cdate=c6;$r.baseCalendar=v6;$r.calendars.gregorian=h6});var dV=xe(()=>{var d6=ta(),zn=na();d6(zn.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"});zn.local=zn.regionalOptions[""];d6(zn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});d6(zn.baseCalendar.prototype,{UNIX_EPOCH:zn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:zn.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 zn.local.invalidFormat||zn.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(x,M){for(var d=1;S+d<e.length&&e.charAt(S+d)===x;)d++;return S+=d-1,Math.floor(d/(M||1))>1},f=function(x,M,d,w){var y=""+M;if(s(x,w))for(;y.length<d;)y="0"+y;return y},c=function(x,M,d,w){return s(x)?w[M]:d[M]},g=this,b=function(x){return typeof o=="function"?o.call(g,x,s("m")):T(f("m",x.month(),2))},h=function(x,M){return M?typeof l=="function"?l.call(g,x):l[x.month()-g.minMonth]:typeof i=="function"?i.call(g,x):i[x.month()-g.minMonth]},_=this.local.digits,T=function(x){return t.localNumbers&&_?_(x):x},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+=T(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+=b(r);break;case"M":m+=h(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 zn.local.invalidArguments||zn.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,g=-1,b=-1,h=-1,_=!1,T=!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),I=[2,3,R?4:2,R?4:2,10,11,20]["oyYJ@!".indexOf(D)+1],z=new RegExp("^-?\\d{1,"+I+"}"),F=r.substring(y).match(z);if(!F)throw(zn.local.missingNumberAt||zn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,y);return y+=F[0].length,parseInt(F[0],10)},S=this,x=function(){if(typeof l=="function"){m("m");var D=l.call(S,r.substring(y));return y+=D.length,D}return k("m")},M=function(D,E,R,I){for(var z=m(D,I)?R:E,F=0;F<z.length;F++)if(r.substr(y,z[F].length).toLowerCase()===z[F].toLowerCase())return y+=z[F].length,F+S.minMonth;throw(zn.local.unknownNameAt||zn.regionalOptions[""].unknownNameAt).replace(/\{0\}/,y)},d=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 M("M",u,s)},w=function(){if(r.charAt(y)!==e.charAt(v))throw(zn.local.unexpectedLiteralAt||zn.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,y);y++},y=0,v=0;v<e.length;v++)if(T)e.charAt(v)==="'"&&!m("'")?T=!1:w();else switch(e.charAt(v)){case"d":b=k("d");break;case"D":M("D",a,o);break;case"o":h=k("o");break;case"w":k("w");break;case"m":g=x();break;case"M":g=d();break;case"y":var A=v;_=!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("'")?w():T=!0;break;default:w()}if(y<r.length)throw zn.local.unexpectedText||zn.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&_&&(c+=n===-1?1900:this.today().year()-this.today().year()%100-(c<=n?0:100)),typeof g=="string"&&(g=i.call(this,c,g)),h>-1){g=1,b=h;for(var p=this.daysInMonth(c,g);b>p;p=this.daysInMonth(c,g))g++,b-=p}return f>-1?this.fromJD(f):this.newDate(c,g,b)},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 pV=xe(()=>{var Kl=na(),abe=ta(),p6=Kl.instance();function Sp(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Sp.prototype=new Kl.baseCalendar;abe(Sp.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(obe);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(lbe);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(sbe);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 Kl.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 Kl.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=Ql[e-Ql[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,Kl.local.invalidyear),a=jl[n-jl[0]],o=a>>9&4095,i=a>>5&15,l=a&31,u;u=p6.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=Ql[e-Ql[0]],n=t>>13,a=n?12:11;if(r>a)throw Kl.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,Kl.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=fbe(e,o,t,a);return p6.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=p6.fromJD(e),t=ube(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(ibe),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(Sp.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 ibe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,obe=/^\d?\d[iI]?/m,lbe=/^闰?十?[一二三四五六七八九]?月/m,sbe=/^闰?十?[一二三四五六七八九]?/m;Kl.calendars.chinese=Sp;var Ql=[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],jl=[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 ube(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=jl[a.year-jl[0]],f=a.year<<9|a.month<<5|a.day;o.year=f>=s?a.year:a.year-1,s=jl[o.year-jl[0]];var c=s>>9&4095,g=s>>5&15,b=s&31,h,_=new Date(c,g-1,b),T=new Date(a.year,a.month-1,a.day);h=Math.round((T-_)/(24*3600*1e3));var m=Ql[o.year-Ql[0]],k;for(k=0;k<13;k++){var S=m&1<<12-k?30:29;if(h<S)break;h-=S}var x=m>>13;return!x||k<x?(o.isIntercalary=!1,o.month=1+k):k===x?(o.isIntercalary=!0,o.month=k):(o.isIntercalary=!1,o.month=k),o.day=1+h,o}function fbe(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 g=Ql[i.year-Ql[0]],b=g>>13,h;b&&(i.month>b||i.isIntercalary)?h=i.month:h=i.month-1;for(var _=0;_<h;_++){var T=g&1<<12-_?30:29;c+=T}var m=jl[i.year-jl[0]],k=m>>9&4095,S=m>>5&15,x=m&31,M=new Date(k,S-1,x+c);return o.year=M.getFullYear(),o.month=1+M.getMonth(),o.day=M.getDate(),o}});var gV=xe(()=>{var s0=na(),cbe=ta();function g6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g6.prototype=new s0.baseCalendar;cbe(g6.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,s0.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,s0.local.invalidYear||s0.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,s0.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,s0.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)}});s0.calendars.coptic=g6});var yV=xe(()=>{var jo=na(),vbe=ta();function y6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y6.prototype=new jo.baseCalendar;vbe(y6.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,jo.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,jo.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,jo.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,jo.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,jo.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,jo.local.invalidDate);return{century:hbe[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,jo.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 hbe={20:"Fruitbat",21:"Anchovy"};jo.calendars.discworld=y6});var mV=xe(()=>{var u0=na(),dbe=ta();function m6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m6.prototype=new u0.baseCalendar;dbe(m6.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,u0.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,u0.local.invalidYear||u0.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,u0.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,u0.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)}});u0.calendars.ethiopian=m6});var bV=xe(()=>{var es=na(),pbe=ta();function b6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b6.prototype=new es.baseCalendar;pbe(b6.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,es.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Cp(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,es.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,es.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,es.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Cp(this.daysInYear(e),10)===5?30:r===9&&Cp(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,es.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,es.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 Cp(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 Cp(e,r){return e-r*Math.floor(e/r)}es.calendars.hebrew=b6});var xV=xe(()=>{var yv=na(),gbe=ta();function x6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x6.prototype=new yv.baseCalendar;gbe(x6.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,yv.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,yv.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,yv.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)}});yv.calendars.islamic=x6});var _V=xe(()=>{var mv=na(),ybe=ta();function _6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_6.prototype=new mv.baseCalendar;ybe(_6.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,mv.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,mv.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,mv.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)}});mv.calendars.julian=_6});var MV=xe(()=>{var bi=na(),mbe=ta();function M6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M6.prototype=new bi.baseCalendar;mbe(M6.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,bi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,bi.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,bi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,bi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,bi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,bi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,bi.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,bi.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,bi.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=w6(e+8+340,365);return[Math.floor(r/20)+1,w6(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[wV(e+20,20),wV(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,bi.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 w6(e,r){return e-r*Math.floor(e/r)}function wV(e,r){return w6(e-1,r)+1}bi.calendars.mayan=M6});var AV=xe(()=>{var f0=na(),bbe=ta();function T6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T6.prototype=new f0.baseCalendar;var TV=f0.instance("gregorian");bbe(T6.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,f0.local.invalidYear||f0.regionalOptions[""].invalidYear);return TV.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,f0.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,f0.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+TV.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)}});f0.calendars.nanakshahi=T6});var kV=xe(()=>{var c0=na(),xbe=ta();function A6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A6.prototype=new c0.baseCalendar;xbe(A6.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,c0.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,c0.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,c0.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=c0.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=c0.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]}});c0.calendars.nepali=A6});var SV=xe(()=>{var Zu=na(),_be=ta();function Lp(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Ep(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}Lp.prototype=new Zu.baseCalendar;_be(Lp.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,Zu.local.invalidYear);return Ep(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,Zu.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,Zu.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var o=1;o<e;o++)Ep(o)&&a++;else if(e<0)for(var o=e;o<0;o++)Ep(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,Ep(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)}});Zu.calendars.persian=Lp;Zu.calendars.jalali=Lp});var CV=xe(()=>{var v0=na(),wbe=ta(),Dp=v0.instance();function k6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k6.prototype=new v0.baseCalendar;wbe(k6.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,v0.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,v0.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,v0.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,v0.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>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});v0.calendars.taiwan=k6});var EV=xe(()=>{var h0=na(),Mbe=ta(),Rp=h0.instance();function S6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S6.prototype=new h0.baseCalendar;Mbe(S6.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,h0.local.invalidYear),t=this._t2gYear(r.year());return Rp.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,h0.local.invalidYear),a=this._t2gYear(n.year());return Rp.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,h0.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,h0.local.invalidDate),a=this._t2gYear(n.year());return Rp.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Rp.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)}});h0.calendars.thai=S6});var LV=xe(()=>{var d0=na(),Tbe=ta();function C6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C6.prototype=new d0.baseCalendar;Tbe(C6.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,d0.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,d0.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,o=0;o<rs.length;o++){if(rs[o]>n)return rs[a]-rs[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,d0.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,o=n.day()+rs[a-1]-1;return o+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;n<rs.length&&!(rs[n]>r);n++)t++;var a=t+15292,o=Math.floor((a-1)/12),i=o+1,l=a-12*o,u=r-rs[t-1]+1;return this.newDate(i,l,u)},isValid:function(e,r,t){var n=d0.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=d0.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});d0.calendars.ummalqura=C6;var rs=[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 RV=xe((Q9e,DV)=>{"use strict";DV.exports=na();dV();pV();gV();yV();mV();bV();xV();_V();MV();AV();kV();SV();CV();EV();LV()});var BV=xe((j9e,qV)=>{"use strict";var PV=RV(),bv=tr(),IV=(wn(),or(Rn)),Abe=IV.EPOCHJD,kbe=IV.ONEDAY,D6={valType:"enumerated",values:bv.sortObjectKeys(PV.calendars),editType:"calc",dflt:"gregorian"},zV=function(e,r,t,n){var a={};return a[t]=D6,bv.coerce(e,r,a,t,n)},Sbe=function(e,r,t,n){for(var a=0;a<t.length;a++)zV(e,r,t[a]+"calendar",n.calendar)},Cbe={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"},Ebe={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"},Lbe={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"]},Fp="##",Dbe={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:Fp,w:Fp,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function Rbe(e,r,t){for(var n=Math.floor((r+.05)/kbe)+Abe,a=NV(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=Dbe[l],s?(s===Fp?f=Fp:f=a.formatDate(s[i]),e=e.slice(0,o)+f+e.slice(o+u),o+=f.length):o+=u;return e}var FV={};function NV(e){var r=FV[e];return r||(r=FV[e]=PV.instance(e),r)}function xv(e){return bv.extendFlat({},D6,{description:e})}function R6(e){return"Sets the calendar system to use with `"+e+"` date data."}var L6={xcalendar:xv(R6("x"))},So=bv.extendFlat({},L6,{ycalendar:xv(R6("y"))}),E6=bv.extendFlat({},So,{zcalendar:xv(R6("z"))}),Ju=xv(["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(" "));qV.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:So,bar:So,box:So,heatmap:So,contour:So,histogram:So,histogram2d:So,histogram2dcontour:So,scatter3d:E6,surface:E6,mesh3d:E6,scattergl:So,ohlc:L6,candlestick:L6},layout:{calendar:xv(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:Ju},yaxis:{calendar:Ju},scene:{xaxis:{calendar:Ju},yaxis:{calendar:Ju},zaxis:{calendar:Ju}},polar:{radialaxis:{calendar:Ju}}}},layoutAttributes:D6,handleDefaults:zV,handleTraceDefaults:Sbe,CANONICAL_SUNDAY:Ebe,CANONICAL_TICK:Cbe,DFLTRANGE:Lbe,getCal:NV,worldCalFmt:Rbe}});var UV=xe((eMe,OV)=>{"use strict";OV.exports=BV()});var Fbe=xe((rMe,VV)=>{var HV=tO();HV.register([yU(),HU(),oH(),mH(),RH(),WH(),uV(),UV()]);VV.exports=HV});return Fbe();})();
/*!
 * 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;
}));