plotly.js
Version:
The open source JavaScript graphing library that also powers plotly.py and Plotly Dash
1,983 lines • 1.75 MB
JavaScript
/**
* plotly.js (gl3d - minified) v4.3.1
* Copyright 2012-2026, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
(
function(root, factory) {
if (typeof module === "object" && module.exports) {
module.exports = factory();
} else {
root.moduleName = factory();
}
} (typeof self !== "undefined" ? self : this, () => {
"use strict";var Plotly=(()=>{var VY=Object.create;var u0=Object.defineProperty,GY=Object.defineProperties,YY=Object.getOwnPropertyDescriptor,XY=Object.getOwnPropertyDescriptors,WY=Object.getOwnPropertyNames,Vv=Object.getOwnPropertySymbols,ZY=Object.getPrototypeOf,s2=Object.prototype.hasOwnProperty,J_=Object.prototype.propertyIsEnumerable;var Z_=(e,r,t)=>r in e?u0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Mt=(e,r)=>{for(var t in r||(r={}))s2.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},Nt=(e,r)=>GY(e,XY(r));var $_=(e,r)=>{var t={};for(var n in e)s2.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 qt=(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}},Ot=(e,r)=>{for(var t in r)u0(e,t,{get:r[t],enumerable:!0})},K_=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of WY(r))!s2.call(e,a)&&a!==t&&u0(e,a,{get:()=>r[a],enumerable:!(n=YY(r,a))||n.enumerable});return e};var Q_=(e,r,t)=>(t=e!=null?VY(ZY(e)):{},K_(r||!e||!e.__esModule?u0(t,"default",{value:e,enumerable:!0}):t,e)),or=e=>K_(u0({},"__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 f0=xe(e7=>{"use strict";e7.version="4.3.1"});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(h,w){this.fn=h,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(h){S.reject(h)}}function f(m){var k,S=this;if(!S.triggered){S.triggered=!0,S.def&&(S=S.def);try{(k=l(m))?i(function(){var 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 d(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 d(this);this.then=function(x,M){var h={success:typeof x=="function"?x:!0,failure:typeof M=="function"?M:!1};return h.promise=new this.constructor(function(y,v){if(typeof y!="function"||typeof v!="function")throw TypeError("Not a function");h.resolve=y,h.reject=v}),k.chain.push(h),k.state!==0&&i(u,k),h.promise},this.catch=function(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,h){if(typeof M!="function"||typeof h!="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,h){if(typeof M!="function"||typeof h!="function")throw TypeError("Not a function");var w=k.length,y=Array(w),v=0;g(S,k,function(p,R){y[p]=R,++v===w&&M(y)},h)})}),r(_,"race",function(k){var S=this;return a.call(k)!="[object Array]"?S.reject(TypeError("Not an array")):new S(function(M,h){if(typeof M!="function"||typeof h!="function")throw TypeError("Not a function");g(S,k,function(y,v){M(v)},h)})}),_})});var st=xe((qbe,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 d(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 _=d(c);e.bisectLeft=_.left,e.bisect=e.bisectRight=_.right,e.bisector=function(C){return d(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__",h="\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:R,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]===h?h+C:C}function y(C){return(C+="")[0]===h?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 R(){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 Te=-1,Re=ce.length,De=N[_e++],Xe,Je,ze,Ne=new x,Be;++Te<Re;)(Be=Ne.get(Xe=De(Je=ce[Te])))?Be.push(Je):Ne.set(Xe,[Je]);return ne?(Je=ne(),ze=function(Ze,$e){Je.set(Ze,W(ne,$e,_e))}):(Je={},ze=function(Ze,$e){Je[Ze]=W(ne,$e,_e)}),Ne.forEach(ze),Je}function le(ne,ce){if(ce>=N.length)return ne;var _e=[],Te=U[ce++];return ne.forEach(function(Re,De){_e.push({key:Re,values:le(De,ce)})}),Te?_e.sort(function(Re,De){return Te(Re.key,De.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 D;if(C)for(var U=0,H=C.length;U<H;++U)N.add(C[U]);return N};function D(){this._=Object.create(null)}S(D,{has:v,add:function(C){return this._[w(C+="")]=!0,C},remove:A,values:p,size:R,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]]=F(C,N,N[Y]);return C};function F(C,N,U){return function(){var H=U.apply(N,arguments);return H===N?C:H}}function P(C,N){if(N in C)return N;N=N.charAt(0).toUpperCase()+N.slice(1);for(var U=0,H=L.length;U<H;++U){var Y=L[U]+N;if(Y in C)return Y}}var L=["webkit","ms","moz","Moz","o","O"];function z(){}e.dispatch=function(){for(var C=new O,N=-1,U=arguments.length;++N<U;)C[arguments[N]]=B(C);return C};function O(){}O.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 B(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 V(){e.event.preventDefault()}function J(){for(var C=e.event,N;N=C.sourceEvent;)C=N;return C}function Q(C){for(var N=new O,U=0,H=arguments.length;++U<H;)N[arguments[U]]=B(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(G,"\\$&")};var G=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,q={}.__proto__?function(C,N){C.__proto__=N}:function(C,N){for(var U in N)C[U]=N[U]};function Z(C){return q(C,j),C}var re=function(C,N){return N.querySelector(C)},$=function(C,N){return N.querySelectorAll(C)},ie=function(C,N){var U=C.matches||C[P(C,"matchesSelector")];return ie=function(H,Y){return U.call(H,Y)},ie(C,N)};typeof Sizzle=="function"&&(re=function(C,N){return Sizzle(C,N)[0]||null},$=Sizzle,ie=Sizzle.matchesSelector),e.selection=function(){return e.select(n.documentElement)};var j=e.selection.prototype=[];j.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)}}j.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",ae={svg:"http://www.w3.org/2000/svg",xhtml:ee,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};e.ns={prefix:ae,qualify:function(C){var N=C.indexOf(":"),U=C;return N>=0&&(U=C.slice(0,N))!=="xmlns"&&(C=C.slice(N+1)),ae.hasOwnProperty(U)?{space:ae[U],local:C}:C}},j.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," ")}j.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(!Me(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 Me(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=Me(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," ")))}}j.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}j.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}j.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},j.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},j.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}j.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)})},j.remove=function(){return this.each(K)};function K(){var C=this.parentNode;C&&C.removeChild(this)}j.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(Te,Re){var De,Xe=Te.length,Je=Re.length,ze=Math.min(Xe,Je),Ne=new Array(Je),Be=new Array(Je),Ze=new Array(Xe),$e,He;if(N){var ir=new x,hr=new Array(Xe),gr;for(De=-1;++De<Xe;)($e=Te[De])&&(ir.has(gr=N.call($e,$e.__data__,De))?Ze[De]=$e:ir.set(gr,$e),hr[De]=gr);for(De=-1;++De<Je;)($e=ir.get(gr=N.call(Re,He=Re[De],De)))?$e!==!0&&(Ne[De]=$e,$e.__data__=He):Be[De]=ye(He),ir.set(gr,!0);for(De=-1;++De<Xe;)De in hr&&ir.get(hr[De])!==!0&&(Ze[De]=Te[De])}else{for(De=-1;++De<ze;)$e=Te[De],He=Re[De],$e?($e.__data__=He,Ne[De]=$e):Be[De]=ye(He);for(;De<Je;++De)Be[De]=ye(Re[De]);for(;De<Xe;++De)Ze[De]=Te[De]}Be.update=Ne,Be.parentNode=Ne.parentNode=Ze.parentNode=Te.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}}j.datum=function(C){return arguments.length?this.property("__data__",C):this.property("__data__")},j.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 ie(this,C)}}j.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},j.sort=function(C){C=he.apply(this,arguments);for(var N=-1,U=this.length;++N<U;)this[N].sort(C);return this.order()};function he(C){return arguments.length||(C=c),function(N,U){return N&&U?C(N.__data__,U.__data__):!N-!U}}j.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}j.call=function(C){var N=t(arguments);return C.apply(N[0]=this,N),this},j.empty=function(){return!this.node()},j.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},j.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=j.append,Se.empty=j.empty,Se.node=j.node,Se.call=j.call,Se.size=j.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,Te=W.length;++_e<Te;)(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)),j.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])},j.on=function(C,N,U){var H=arguments.length;if(H<3){if(typeof C!="string"){H<2&&(N=!1);for(U in C)this.each(de(U,C[U],N));return this}if(H<2)return(H=this.node()["__on"+C])&&H._;U=!1}return this.each(de(C,N,U))};function de(C,N,U){var H="__on"+C,Y=C.indexOf("."),W=Ae;Y>0&&(C=C.slice(0,Y));var le=be.get(C);le&&(C=le,W=Pe);function ne(){var Te=this[H];Te&&(this.removeEventListener(C,Te,Te.$),delete this[H])}function ce(){var Te=W(N,t(arguments));ne.call(this),this.addEventListener(C,this[H]=Te,Te.$=U),Te._=N}function _e(){var Te=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),Re;for(var De in this)if(Re=De.match(Te)){var Xe=this[De];this.removeEventListener(Re[1],Xe,Xe.$),delete this[De]}}return Y?N?ce:ne:N?z:_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 Pe(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 Ie,Ye=0;function qe(C){var N=".dragsuppress-"+ ++Ye,U="click"+N,H=e.select(o(C)).on("touchmove"+N,V).on("dragstart"+N,V).on("selectstart"+N,V);if(Ie==null&&(Ie="onselectstart"in C?!1:P(C.style,"userSelect")),Ie){var Y=a(C).style,W=Y[Ie];Y[Ie]="none"}return function(le){if(H.on(N,null),Ie&&(Y[Ie]=W),le){var ne=function(){H.on(U,null)};H.on(U,function(){V(),ne()},!0),setTimeout(ne,0)}}}e.mouse=function(C){return Oe(C,J())};var Ve=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Oe(C,N){N.changedTouches&&(N=N.changedTouches[0]);var U=C.ownerSVGElement||C;if(U.createSVGPoint){var H=U.createSVGPoint();if(Ve<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();Ve=!(W.f||W.e),U.remove()}}return Ve?(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 Oe(C,W)}},e.behavior.drag=function(){var C=Q(Y,"drag","dragstart","dragend"),N=null,U=W(z,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,Te){return function(){var Re=this,De=e.event.target.correspondingElement||e.event.target,Xe=Re.parentNode,Je=C.of(Re,arguments),ze=0,Ne=le(),Be=".drag"+(Ne==null?"":"-"+Ne),Ze,$e=e.select(ce(De)).on(_e+Be,hr).on(Te+Be,gr),He=qe(De),ir=ne(Xe,Ne);N?(Ze=N.apply(Re,arguments),Ze=[Ze.x-ir[0],Ze.y-ir[1]]):Ze=[0,0],Je({type:"dragstart"});function hr(){var pr=ne(Xe,Ne),br,xr;pr&&(br=pr[0]-ir[0],xr=pr[1]-ir[1],ze|=br|xr,ir=pr,Je({type:"drag",x:pr[0]+Ze[0],y:pr[1]+Ze[1],dx:br,dy:xr}))}function gr(){ne(Xe,Ne)&&($e.on(_e+Be,null).on(Te+Be,null),He(ze),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=Oe(C,U);return H.identifier=U.identifier,H}):[]};var Ge=1e-6,tr=Ge*Ge,nr=Math.PI,er=2*nr,Qe=er-Ge,Ce=nr/2,Fe=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 Jr(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 rt(C){return((C=Math.exp(C))+1/C)/2}function Ar(C){return((C=Math.exp(2*C))-1)/(C+1)}function Ur(C){return(C=Math.sin(C/2))*C}var ut=Math.SQRT2,zr=2,tt=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,Te=ce*ce+_e*_e,Re,De;if(Te<tr)De=Math.log(ne/Y)/ut,Re=function(Ze){return[U+Ze*ce,H+Ze*_e,Y*Math.exp(ut*Ze*De)]};else{var Xe=Math.sqrt(Te),Je=(ne*ne-Y*Y+tt*Te)/(2*Y*zr*Xe),ze=(ne*ne-Y*Y-tt*Te)/(2*ne*zr*Xe),Ne=Math.log(Math.sqrt(Je*Je+1)-Je),Be=Math.log(Math.sqrt(ze*ze+1)-ze);De=(Be-Ne)/ut,Re=function(Ze){var $e=Ze*De,He=rt(Ne),ir=Y/(zr*Xe)*(He*Ar(ut*$e+Ne)-Pr(Ne));return[U+ir*ce,H+ir*_e,Y*He/rt(ut*$e+Ne)]}}return Re.duration=De*1e3,Re},e.behavior.zoom=function(){var C={x:0,y:0,k:1},N,U,H,Y=[960,500],W=pn,le=250,ne=0,ce="mousedown.zoom",_e="mousemove.zoom",Te="mouseup.zoom",Re,De="touchstart.zoom",Xe,Je=Q($e,"zoomstart","zoom","zoomend"),ze,Ne,Be,Ze;Xr||(Xr="onwheel"in n?(it=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in n?(it=function(){return e.event.wheelDelta},"mousewheel"):(it=function(){return-e.event.detail},"MozMousePixelScroll"));function $e(cr){cr.on(ce,Ir).on(Xr+".zoom",on).on("dblclick.zoom",bt).on(De,gt)}$e.event=function(cr){cr.each(function(){var Br=Je.of(this,arguments),Gr=C;os?e.select(this).transition().each("start.zoom",function(){C=this.__chart__||{x:0,y:0,k:1},xr(Br)}).tween("zoom:zoom",function(){var yt=Y[0],$t=Y[1],mn=U?U[0]:yt/2,Un=U?U[1]:$t/2,ia=e.interpolateZoom([(mn-C.x)/C.k,(Un-C.y)/C.k,yt/C.k],[(mn-Gr.x)/Gr.k,(Un-Gr.y)/Gr.k,yt/Gr.k]);return function(ma){var oa=ia(ma),Ta=yt/oa[2];this.__chart__=C={x:mn-oa[0]*Ta,y:Un-oa[1]*Ta,k:Ta},Or(Br)}}).each("interrupt.zoom",function(){Mr(Br)}).each("end.zoom",function(){Mr(Br)}):(this.__chart__=C,xr(Br),Or(Br),Mr(Br))})},$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?pn:[+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,ze=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,Br){Br=ir(Br),C.x+=cr[0]-Br[0],C.y+=cr[1]-Br[1]}function pr(cr,Br,Gr,yt){cr.__chart__={x:C.x,y:C.y,k:C.k},hr(Math.pow(2,yt)),gr(U=Br,Gr),cr=e.select(cr),le>0&&(cr=cr.transition().duration(le)),cr.call($e.event)}function br(){Ne&&Ne.domain(ze.range().map(function(cr){return(cr-C.x)/C.k}).map(ze.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 Or(cr){br(),cr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function Mr(cr){--ne||(cr({type:"zoomend"}),U=null)}function Ir(){var cr=this,Br=Je.of(cr,arguments),Gr=0,yt=e.select(o(cr)).on(_e,Un).on(Te,ia),$t=He(e.mouse(cr)),mn=qe(cr);Ov.call(cr),xr(Br);function Un(){Gr=1,gr(e.mouse(cr),$t),Or(Br)}function ia(){yt.on(_e,null).on(Te,null),mn(Gr),Mr(Br)}}function gt(){var cr=this,Br=Je.of(cr,arguments),Gr={},yt=0,$t,mn=".zoom-"+e.event.changedTouches[0].identifier,Un="touchmove"+mn,ia="touchend"+mn,ma=[],oa=e.select(cr),Ta=qe(cr);Aa(),xr(Br),oa.on(ce,null).on(De,Aa);function Xn(){var Ai=e.touches(cr);return $t=C.k,Ai.forEach(function(Hn){Hn.identifier in Gr&&(Gr[Hn.identifier]=He(Hn))}),Ai}function Aa(){var Ai=e.event.target;e.select(Ai).on(Un,ls).on(ia,HY),ma.push(Ai);for(var Hn=e.event.changedTouches,ni=0,eo=Hn.length;ni<eo;++ni)Gr[Hn[ni].identifier]=null;var ai=Xn(),wu=Date.now();if(ai.length===1){if(wu-Xe<500){var ss=ai[0];pr(cr,ss,Gr[ss.identifier],Math.floor(Math.log(C.k)/Math.LN2)+1),V()}Xe=wu}else if(ai.length>1){var ss=ai[0],nl=ai[1],Hv=ss[0]-nl[0],W_=ss[1]-nl[1];yt=Hv*Hv+W_*W_}}function ls(){var Ai=e.touches(cr),Hn,ni,eo,ai;Ov.call(cr);for(var wu=0,ss=Ai.length;wu<ss;++wu,ai=null)if(eo=Ai[wu],ai=Gr[eo.identifier]){if(ni)break;Hn=eo,ni=ai}if(ai){var nl=(nl=eo[0]-Hn[0])*nl+(nl=eo[1]-Hn[1])*nl,Hv=yt&&Math.sqrt(nl/yt);Hn=[(Hn[0]+eo[0])/2,(Hn[1]+eo[1])/2],ni=[(ni[0]+ai[0])/2,(ni[1]+ai[1])/2],hr(Hv*$t)}Xe=null,gr(Hn,ni),Or(Br)}function HY(){if(e.event.touches.length){for(var Ai=e.event.changedTouches,Hn=0,ni=Ai.length;Hn<ni;++Hn)delete Gr[Ai[Hn].identifier];for(var eo in Gr)return void Xn()}e.selectAll(ma).on(mn,null),oa.on(ce,Ir).on(De,gt),Ta(),Mr(Br)}}function on(){var cr=Je.of(this,arguments);Re?clearTimeout(Re):(Ov.call(this),N=He(U=H||e.mouse(this)),xr(cr)),Re=setTimeout(function(){Re=null,Mr(cr)},50),V(),hr(Math.pow(2,it()*.002)*C.k),gr(U,N),Or(cr)}function bt(){var cr=e.mouse(this),Br=Math.log(C.k)/Math.LN2;pr(this,cr,He(cr),e.event.shiftKey?Math.ceil(Br)-1:Math.floor(Br)+1)}return e.rebind($e,Je,"on")};var pn=[0,1/0],it,Xr;e.color=Vt;function Vt(){}Vt.prototype.toString=function(){return this.rgb()+""},e.hsl=$r;function $r(C,N,U){return this instanceof $r?(this.h=+C,this.s=+N,void(this.l=+U)):arguments.length<2?C instanceof $r?new $r(C.h,C.s,C.l):ts(""+C,wv,$r):new $r(C,N,U)}var Kr=$r.prototype=new Vt;Kr.brighter=function(C){return C=Math.pow(.7,arguments.length?C:1),new $r(this.h,this.s,this.l/C)},Kr.darker=function(C){return C=Math.pow(.7,arguments.length?C:1),new $r(this.h,this.s,C*this.l)},Kr.rgb=function(){return Gt(this.h,this.s,this.l)};function Gt(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 ht(le(C+120),le(C),le(C-120))}e.hcl=Yt;function Yt(C,N,U){return this instanceof Yt?(this.h=+C,this.c=+N,void(this.l=+U)):arguments.length<2?C instanceof Yt?new Yt(C.h,C.c,C.l):C instanceof Vr?Na(C.l,C.a,C.b):Na((C=Mv((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new Yt(C,N,U)}var jt=Yt.prototype=new Vt;jt.brighter=function(C){return new Yt(this.h,this.c,Math.min(100,this.l+Rr*(arguments.length?C:1)))},jt.darker=function(C){return new Yt(this.h,this.c,Math.max(0,this.l-Rr*(arguments.length?C:1)))},jt.rgb=function(){return sr(this.h,this.c,this.l).rgb()};function sr(C,N,U){return isNaN(C)&&(C=0),isNaN(N)&&(N=0),new Vr(U,Math.cos(C*=Fe)*N,Math.sin(C)*N)}e.lab=Vr;function Vr(C,N,U){return this instanceof Vr?(this.l=+C,this.a=+N,void(this.b=+U)):arguments.length<2?C instanceof Vr?new Vr(C.l,C.a,C.b):C instanceof Yt?sr(C.h,C.c,C.l):Mv((C=ht(C)).r,C.g,C.b):new Vr(C,N,U)}var Rr=18,ot=.95047,Xt=1,en=1.08883,wt=Vr.prototype=new Vt;wt.brighter=function(C){return new Vr(Math.min(100,this.l+Rr*(arguments.length?C:1)),this.a,this.b)},wt.darker=function(C){return new Vr(Math.max(0,this.l-Rr*(arguments.length?C:1)),this.a,this.b)},wt.rgb=function(){return Pn(this.l,this.a,this.b)};function Pn(C,N,U){var H=(C+16)/116,Y=H+N/500,W=H-U/200;return Y=qa(Y)*ot,H=qa(H)*Xt,W=qa(W)*en,new ht(Oa(3.2404542*Y-1.5371385*H-.4985314*W),Oa(-.969266*Y+1.8760108*H+.041556*W),Oa(.0556434*Y-.2040259*H+1.0572252*W))}function Na(C,N,U){return C>0?new Yt(Math.atan2(U,N)*Ke,Math.sqrt(N*N+U*U),C):new Yt(NaN,NaN,C)}function qa(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function ei(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function Oa(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=ht;function ht(C,N,U){return this instanceof ht?(this.r=~~C,this.g=~~N,void(this.b=~~U)):arguments.length<2?C instanceof ht?new ht(C.r,C.g,C.b):ts(""+C,ht,Gt):new ht(C,N,U)}function Eo(C){return new ht(C>>16,C>>8&255,C&255)}function rn(C){return Eo(C)+""}var Ba=ht.prototype=new Vt;Ba.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 ht(Y,Y,Y):(N&&N<Y&&(N=Y),U&&U<Y&&(U=Y),H&&H<Y&&(H=Y),new ht(Math.min(255,N/C),Math.min(255,U/C),Math.min(255,H/C)))},Ba.darker=function(C){return C=Math.pow(.7,arguments.length?C:1),new ht(C*this.r,C*this.g,C*this.b)},Ba.hsl=function(){return wv(this.r,this.g,this.b)},Ba.toString=function(){return"#"+Qi(this.r)+Qi(this.g)+Qi(this.b)};function Qi(C){return C<16?"0"+Math.max(0,C).toString(16):Math.min(255,C).toString(16)}function ts(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(jf(ne[0]),jf(ne[1]),jf(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 $r(le,ne,ce)}function Mv(C,N,U){C=Qf(C),N=Qf(N),U=Qf(U);var H=ei((.4124564*C+.3575761*N+.1804375*U)/ot),Y=ei((.2126729*C+.7151522*N+.072175*U)/Xt),W=ei((.0193339*C+.119192*N+.9503041*U)/en);return Vr(116*Y-16,500*(H-Y),200*(Y-W))}function Qf(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function jf(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,Eo(N))});function kr(C){return typeof C=="function"?C:function(){return C}}e.functor=kr,e.xhr=mt(I);function mt(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 Te=ne.status,Re;if(!Te&&Lt(ne)||Te>=200&&Te<300||Te===304){try{Re=U.call(Y,ne)}catch(De){W.error.call(Y,De);return}W.load.call(Y,Re)}else W.error.call(Y,ne)}return ne.onprogress=function(Te){var Re=e.event;e.event=Te;try{W.progress.call(Y,ne)}finally{e.event=Re}},Y.header=function(Te,Re){return Te=(Te+"").toLowerCase(),arguments.length<2?le[Te]:(Re==null?delete le[Te]:le[Te]=Re+"",Y)},Y.mimeType=function(Te){return arguments.length?(N=Te==null?null:Te+"",Y):N},Y.responseType=function(Te){return arguments.length?(ce=Te,Y):ce},Y.response=function(Te){return U=Te,Y},["get","post"].forEach(function(Te){Y[Te]=function(){return Y.send.apply(Y,[Te].concat(t(arguments)))}}),Y.send=function(Te,Re,De){if(arguments.length===2&&typeof Re=="function"&&(De=Re,Re=null),ne.open(Te,C,!0),N!=null&&!("accept"in le)&&(le.accept=N+",*/*"),ne.setRequestHeader)for(var Xe in le)ne.setRequestHeader(Xe,le[Xe]);return N!=null&&ne.overrideMimeType&&ne.overrideMimeType(N),ce!=null&&(ne.responseType=ce),De!=null&&Y.on("error",De).on("load",function(Je){De(null,Je)}),W.beforesend.call(Y,ne),ne.send(Re==null?null:Re),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 Lt(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,Te,Re){arguments.length<3&&(Re=Te,Te=null);var De=dr(_e,N,Te==null?W:le(Te),Re);return De.row=function(Xe){return arguments.length?De.response((Te=Xe)==null?W:le(Xe)):Te},De}function W(_e){return Y.parse(_e.responseText)}function le(_e){return function(Te){return Y.parse(Te.responseText,_e)}}Y.parse=function(_e,Te){var Re;return Y.parseRows(_e,function(De,Xe){if(Re)return Re(De,Xe-1);var Je=function(ze){for(var Ne={},Be=De.length,Ze=0;Ze<Be;++Ze)Ne[De[Ze]]=ze[Ze];return Ne};Re=Te?function(ze,Ne){return Te(Je(ze),Ne)}:Je})},Y.parseRows=function(_e,Te){var Re={},De={},Xe=[],Je=_e.length,ze=0,Ne=0,Be,Ze;function $e(){if(ze>=Je)return De;if(Ze)return Ze=!1,Re;var ir=ze;if(_e.charCodeAt(ir)===34){for(var hr=ir;hr++<Je;)if(_e.charCodeAt(hr)===34){if(_e.charCodeAt(hr+1)!==34)break;++hr}ze=hr+2;var gr=_e.charCodeAt(hr+1);return gr===13?(Ze=!0,_e.charCodeAt(hr+2)===10&&++ze):gr===10&&(Ze=!0),_e.slice(ir+1,hr).replace(/""/g,'"')}for(;ze<Je;){var gr=_e.charCodeAt(ze++),pr=1;if(gr===10)Ze=!0;else if(gr===13)Ze=!0,_e.charCodeAt(ze)===10&&(++ze,++pr);else if(gr!==H)continue;return _e.slice(ir,ze-pr)}return _e.slice(ir)}for(;(Be=$e())!==De;){for(var He=[];Be!==Re&&Be!==De;)He.push(Be),Be=$e();Te&&(He=Te(He,Ne++))==null||Xe.push(He)}return Xe},Y.format=function(_e){if(Array.isArray(_e[0]))return Y.formatRows(_e);var Te=new D,Re=[];return _e.forEach(function(De){for(var Xe in De)Te.has(Xe)||Re.push(Te.add(Xe))}),[Re.map(ce).join(C)].concat(_e.map(function(De){return Re.map(function(Xe){return ce(De[Xe])}).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 On,Bn,ri,ns,P6=this[P(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 Bn?Bn.n=W:On=W,Bn=W,ri||(ns=clearTimeout(ns),ri=1,P6(Ig)),W}function Ig(){var C=I6(),N=z6()-C;N>24?(isFinite(N)&&(clearTimeout(ns),ns=setTimeout(Ig,N)),ri=0):(ri=1,P6(Ig))}e.timer.flush=function(){I6(),z6()};function I6(){for(var C=Date.now(),N=On;N;)C>=N.t&&N.c(C-N.t)&&(N.c=null),N=N.n;return C}function z6(){for(var C,N=On,U=1/0;N;)N.c?(N.t<U&&(U=N.t),N=(C=N).n):N=C?C.n=N.n:On=N.n;return Bn=C,U}e.round=function(C,N){return N?Math.round(C*(N=Math.pow(10,N)))/N:Math.round(C)},e.geom={};function gu(C){return C[0]}function e0(C){return C[1]}e.geom.hull=function(C){var N=gu,U=e0;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=[],Te=[];for(ne=0;ne<ce;ne++)_e.push([+W.call(this,Y[ne],ne),+le.call(this,Y[ne],ne),ne]);for(_e.sort(YV),ne=0;ne<ce;ne++)Te.push([_e[ne][0],-_e[ne][1]]);var Re=F6(_e),De=F6(Te),Xe=De[0]===Re[0],Je=De[De.length-1]===Re[Re.length-1],ze=[];for(ne=Re.length-1;ne>=0;--ne)ze.push(Y[_e[Re[ne]][2]]);for(ne=+Xe;ne<De.length-Je;++ne)ze.push(Y[_e[De[ne]][2]]);return ze}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 F6(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 YV(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,Te;++H<Y;){for(N=C.slice(),C.length=0,ce=this[H],_e=N[(le=N.length-U)-1],W=-1;++W<le;)Te=N[W],zg(Te,ne,ce)?(zg(_e,ne,ce)||C.push(Fg(_e,Te,ne,ce)),C.push(Te)):zg(_e,ne,ce)&&C.push(Fg(_e,Te,ne,ce)),_e=Te;U&&C.push(C[0]),ne=ce}return C};function zg(C,N,U){return(U[0]-N[0])*(C[1]-N[1])<(U[1]-N[1])*(C[0]-N[0])}function Fg(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],Te=N[1]-ce,Re=H[1]-_e,De=(ne*(ce-_e)-Re*(Y-W))/(Re*le-ne*Te);return[Y+De*le,ce+De*Te]}function N6(C){var N=C[0],U=C[C.length-1];return!(N[0]-U[0]||N[1]-U[1])}var yu,as,mu,q6=[],Ng,r0,O6=[];function XV(){Cv(this),this.edge=this.site=this.circle=null}function B6(C){var N=q6.pop()||new XV;return N.site=C,N}function qg(C){xu(C),mu.remove(C),q6.push(C),Cv(C)}function WV(C){var N=C.circle,U=N.x,H=N.cy,Y={x:U,y:H},W=C.P,le=C.N,ne=[C];qg(C);for(var ce=W;ce.circle&&m(U-ce.circle.x)<Ge&&m(H-ce.circle.cy)<Ge;)W=ce.P,ne.unshift(ce),qg(ce),ce=W;ne.unshift(ce),xu(ce);for(var _e=le;_e.circle&&m(U-_e.circle.x)<Ge&&m(H-_e.circle.cy)<Ge;)le=_e.N,ne.push(_e),qg(_e),_e=le;ne.push(_e),xu(_e);var Te=ne.length,Re;for(Re=1;Re<Te;++Re)_e=ne[Re],ce=ne[Re-1],kv(_e.edge,ce.site,_e.site,Y);ce=ne[0],_e=ne[Te-1],_e.edge=t0(ce.site,_e.site,null,Y),bu(ce),bu(_e)}function ZV(C){for(var N=C.x,U=C.y,H,Y,W,le,ne=mu._;ne;)if(W=U6(ne,U)-N,W>Ge)ne=ne.L;else if(le=N-JV(ne,U),le>Ge){if(!ne.R){H=ne;break}ne=ne.R}else{W>-Ge?(H=ne.P,Y=ne):le>-Ge?(H=ne,Y=ne.N):H=Y=ne;break}var ce=B6(C);if(mu.insert(H,ce),!(!H&&!Y)){if(H===Y){xu(H),Y=B6(H.site),mu.insert(ce,Y),ce.edge=Y.edge=t0(H.site,ce.site),bu(H),bu(Y);return}if(!Y){ce.edge=t0(H.site,ce.site);return}xu(H),xu(Y);var _e=H.site,Te=_e.x,Re=_e.y,De=C.x-Te,Xe=C.y-Re,Je=Y.site,ze=Je.x-Te,Ne=Je.y-Re,Be=2*(De*Ne-Xe*ze),Ze=De*De+Xe*Xe,$e=ze*ze+Ne*Ne,He={x:(Ne*Ze-Xe*$e)/Be+Te,y:(De*$e-ze*Ze)/Be+Re};kv(Y.edge,_e,Je,He),ce.edge=t0(_e,C,null,He),Y.edge=t0(C,Je,null,He),bu(H),bu(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 Te=ne-H,Re=1/W-1/_e,De=Te/_e;return Re?(-De+Math.sqrt(De*De-2*Re*(Te*Te/(-2*_e)-ce+_e/2+Y-W/2)))/Re+H:(H+ne)/2}function JV(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 $V(C){for(var N=C[0][0],U=C[1][0],H=C[0][1],Y=C[1][1],W,le,ne,ce,_e=as,Te=_e.length,Re,De,Xe,Je,ze,Ne;Te--;)if(Re=_e[Te],!(!Re||!Re.prepare()))for(Xe=Re.edges,Je=Xe.length,De=0;De<Je;)Ne=Xe[De].end(),ne=Ne.x,ce=Ne.y,ze=Xe[++De%Je].start(),W=ze.x,le=ze.y,(m(ne-W)>Ge||m(ce-le)>Ge)&&(Xe.splice(De,0,new Sv(rG(Re.site,Ne,m(ne-N)<Ge&&Y-ce>Ge?{x:N,y:m(W-N)<Ge?le:Y}:m(ce-Y)<Ge&&U-ne>Ge?{x:m(le-Y)<Ge?W:U,y:Y}:m(ne-U)<Ge&&ce-H>Ge?{x:U,y:m(W-U)<Ge?le:H}:m(ce-H)<Ge&&ne-N>Ge?{x:m(le-H)<Ge?W:N,y:H}:null),Re.site,null)),++Je)}function V6(C,N){return N.angle-C.angle}function KV(){Cv(this),this.x=this.y=this.arc=this.site=this.cy=null}function bu(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,Te=W.x-le,Ne=W.y-ne,Re=2*(ce*Ne-_e*Te);if(!(Re>=-tr)){var De=ce*ce+_e*_e,Xe=Te*Te+Ne*Ne,Je=(Ne*De-_e*Xe)/Re,ze=(ce*Xe-Te*De)/Re,Ne=ze+ne,Be=O6.pop()||new KV;Be.arc=C,Be.site=Y,Be.x=Je+le,Be.y=Ne+Math.sqrt(Je*Je+ze*ze),Be.cy=Ne,C.circle=Be;for(var Ze=null,$e=r0._;$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}r0.insert(Ze,Be),Ze||(Ng=Be)}}}}function xu(C){var N=C.circle;N&&(N.P||(Ng=N.N),r0.remove(N),O6.push(N),Cv(N),C.circle=null)}function QV(C,N,U,H){return function(Y){var W=Y.a,le=Y.b,ne=W.x,ce=W.y,_e=le.x,Te=le.y,Re=0,De=1,Xe=_e-ne,Je=Te-ce,ze;if(ze=C-ne,!(!Xe&&ze>0)){if(ze/=Xe,Xe<0){if(ze<Re)return;ze<De&&(De=ze)}else if(Xe>0){if(ze>De)return;ze>Re&&(Re=ze)}if(ze=U-ne,!(!Xe&&ze<0)){if(ze/=Xe,Xe<0){if(ze>De)return;ze>Re&&(Re=ze)}else if(Xe>0){if(ze<Re)return;ze<De&&(De=ze)}if(ze=N-ce,!(!Je&&ze>0)){if(ze/=Je,Je<0){if(ze<Re)return;ze<De&&(De=ze)}else if(Je>0){if(ze>De)return;ze>Re&&(Re=ze)}if(ze=H-ce,!(!Je&&ze<0)){if(ze/=Je,Je<0){if(ze>De)return;ze>Re&&(Re=ze)}else if(Je>0){if(ze<Re)return;ze<De&&(De=ze)}return Re>0&&(Y.a={x:ne+Re*Xe,y:ce+Re*Je}),De<1&&(Y.b={x:ne+De*Xe,y:ce+De*Je}),Y}}}}}}function jV(C){for(var N=yu,U=QV(C[0][0],C[0][1],C[1][0],C[1][1]),H=N.length,Y;H--;)Y=N[H],(!eG(Y,C)||!U(Y)||m(Y.a.x-Y.b.x)<Ge&&m(Y.a.y-Y.b.y)<Ge)&&(Y.a=Y.b=null,N.splice(H,1))}function eG(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,Te=ce.x,Re=ce.y,De=_e.x,Xe=_e.y,Je=(Te+De)/2,ze=(Re+Xe)/2,Ne,Be;if(Xe===Re){if(Je<Y||Je>=W)return;if(Te>De){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=(Te-De)/(Xe-Re),Be=ze-Ne*Je,Ne<-1||Ne>1)if(Te>De){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(Re<Xe){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 t0(C,N,U,H){var Y=new G6(C,N);return yu.push(Y),U&&kv(Y,C,N,U),H&&kv(Y,N,C,H),as[C.i].edges.push(new Sv(Y,C,N)),as[N.i].edges.push(new Sv(Y,N,C)),Y}function rG(C,N,U){var H=new G6(C,null);return H.a=N,H.b=U,yu.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 Og(){this._=null}function Cv(C){C.U=C.C=C.L=C.R=C.P=C.N=null}Og.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&&(n0(this,U),C=U,U=C.U),U.C=!1,H.C=!0,a0(this,H))):(Y=H.L,Y&&Y.C?(U.C=Y.C=!1,H.C=!0,C=H):(C===U.L&&(a0(this,U),C=U,U=C.U),U.C=!1,H.C=!0,n0(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,n0(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,a0(this,U),U=N.R),U.C=N.C,N.C=U.R.C=!1,n0(this,N),C=this._;break}}else if(U=N.L,U.C&&(U.C=!1,N.C=!0,a0(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,n0(this,U),U=N.L),U.C=N.C,N.C=U.L.C=!1,a0(this,N),C=this._;break}U.C=!0,C=N,N=N.U}while(!C.C);C&&(C.C=!1)}}};function n0(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 a0(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 Bg(C,N){var U=C.sort(tG).pop(),H,Y,W;for(yu=[],as=new Array(C.length),mu=new Og,r0=new Og;;)if(W=Ng,U&&(!W||U.y<W.y||U.y===W.y&&U.x<W.x))(U.x!==H||U.y!==Y)&&(as[U.i]=new H6(U),ZV(U),H=U.x,Y=U.y),U=C.pop();else if(W)WV(W.arc);else break;N&&(jV(N),$V(N));var le={cells:as,edges:yu};return mu=r0=yu=as=null,le}function tG(C,N){return N.y-C.y||N.x-C.x}e.geom.voronoi=function(C){var N=gu,U=e0,H=N,Y=U,W=Ev;if(C)return le(C);function le(ce){var _e=new Array(ce.length),Te=W[0][0],Re=W[0][1],De=W[1][0],Xe=W[1][1];return Bg(ne(ce),W).cells.forEach(function(Je,ze){var Ne=Je.edges,Be=Je.site,Ze=_e[ze]=Ne.length?Ne.map(function($e){var He=$e.start();return[He.x,He.y]}):Be.x>=Te&&Be.x<=De&&Be.y>=Re&&Be.y<=Xe?[[Te,Xe],[De,Xe],[De,Re],[Te,Re]]:[];Ze.point=ce[ze]}),_e}function ne(ce){return ce.map(function(_e,Te){return{x:Math.round(H(_e,Te)/Ge)*Ge,y:Math.round(Y(_e,Te)/Ge)*Ge,i:Te}})}return le.links=function(ce){return Bg(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 Bg(ne(ce)).cells.forEach(function(Te,Re){for(var De=Te.site,Xe=Te.edges.sort(V6),Je=-1,ze=Xe.length,Ne,Be,Ze=Xe[ze-1].edge,$e=Ze.l===De?Ze.r:Ze.l;++Je<ze;)Ne=Ze,Be=$e,Ze=Xe[Je].edge,$e=Ze.l===De?Ze.r:Ze.l,Re<Be.i&&Re<$e.i&&nG(De,Be,$e)<0&&_e.push([ce[Re],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 nG(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=gu,le=e0,ne;if(ne=arguments.length)return W=aG,le=iG,ne===3&&(Y=U,H=N,U=N=0),ce(C);function ce(_e){var Te,Re=kr(W),De=kr(le),Xe,Je,ze,Ne,Be,Ze,$e,He;if(N!=null)Be=N,Ze=U,$e=H,He=Y;else if($e=He=-(Be=Ze=1/0),Xe=[],Je=[],Ne=_e.length,ne)for(ze=0;ze<Ne;++ze)Te=_e[ze],Te.x<Be&&(Be=Te.x),Te.y<Ze&&(Ze=Te.y),Te.x>$e&&($e=Te.x),Te.y>He&&(He=Te.y),Xe.push(Te.x),Je.push(Te.y);else for(ze=0;ze<Ne;++ze){var ir=+Re(Te=_e[ze],ze),hr=+De(Te,ze);ir<Be&&(Be=ir),hr<Ze&&(Ze=hr),ir>$e&&($e=ir),hr>He&&(He=hr),Xe.push(ir),Je.push(hr)}var gr=$e-Be,pr=He-Ze;gr>pr?He=Ze+gr:$e=Be+pr;function br(Mr,Ir,gt,on,bt,cr,Br,Gr){if(!(isNaN(gt)||isNaN(on)))if(Mr.leaf){var yt=Mr.x,$t=Mr.y;if(yt!=null)if(m(yt-gt)+m($t-on)<.01)xr(Mr,Ir,gt,on,bt,cr,Br,Gr);else{var mn=Mr.point;Mr.x=Mr.y=Mr.point=null,xr(Mr,mn,yt,$t,bt,cr,Br,Gr),xr(Mr,Ir,gt,on,bt,cr,Br,Gr)}else Mr.x=gt,Mr.y=on,Mr.point=Ir}else xr(Mr,Ir,gt,on,bt,cr,Br,Gr)}function xr(Mr,Ir,gt,on,bt,cr,Br,Gr){var yt=(bt+Br)*.5,$t=(cr+Gr)*.5,mn=gt>=yt,Un=on>=$t,ia=Un<<1|mn;Mr.leaf=!1,Mr=Mr.nodes[ia]||(Mr.nodes[ia]=X6()),mn?bt=yt:Br=yt,Un?cr=$t:Gr=$t,br(Mr,Ir,gt,on,bt,cr,Br,Gr)}var Or=X6();if(Or.add=function(Mr){br(Or,Mr,+Re(Mr,++ze),+De(Mr,ze),Be,Ze,$e,He)},Or.visit=function(Mr){i0(Mr,Or,Be,Ze,$e,He)},Or.find=function(Mr){return oG(Or,Mr[0],Mr[1],Be,Ze,$e,He)},ze=-1,N==null){for(;++ze<Ne;)br(Or,_e[ze],Xe[ze],Je[ze],Be,Ze,$e,He);--ze}else _e.forEach(Or.add);return Xe=Je=_e=Te=null,Or}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 aG(C){return C.x}function iG(C){return C.y}function X6(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function i0(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]&&i0(C,ce[0],U,H,le,ne),ce[1]&&i0(C,ce[1],le,H,Y,ne),ce[2]&&i0(C,ce[2],U,ne,le,W),ce[3]&&i0(C,ce[3],le,ne,Y,W)}}function oG(C,N,U,H,Y,W,le){var ne=1/0,ce;return(function _e(Te,Re,De,Xe,Je){if(!(Re>W||De>le||Xe<H||Je<Y)){if(ze=Te.point){var ze,Ne=N-Te.x,Be=U-Te.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=ze}}for(var He=Te.nodes,ir=(Re+Xe)*.5,hr=(De+Je)*.5,gr=N>=ir,pr=U>=hr,br=pr<<1|gr,xr=br+4;br<xr;++br)if(Te=He[br&3])switch(br&3){case 0:_e(Te,Re,De,ir,hr);break;case 1:_e(Te,ir,De,Xe,hr);break;case 2:_e(Te,Re,hr,ir,Je);break;case 3:_e(Te,ir,hr,Xe,Je);break}}})(C,H,Y,W,le),ce}e.interpolateRgb=Ug;function Ug(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"#"+Qi(Math.round(U+W*ce))+Qi(Math.round(H+le*ce))+Qi(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]=is(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=Lo;function Lo(C,N){return C=+C,N=+N,function(U){return C*(1-U)+N*U}}e.interpolateString=Z6;function Z6(C,N){var U=Hg.lastIndex=Vg.lastIndex=0,H,Y,W,le=-1,ne=[],ce=[];for(C=C+"",N=N+"";(H=Hg.exec(C))&&(Y=Vg.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:Lo(H,Y)})),U=Vg.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 Te=0,Re;Te<N;++Te)ne[(Re=ce[Te]).i]=Re.x(_e);return ne.join("")})}var Hg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vg=new RegExp(Hg.source,"g");e.interpolate=is;function is(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)?Ug:Z6:N instanceof Vt?Ug:Array.isArray(N)?Lv:U==="object"&&isNaN(N)?W6:Lo)(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(is(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},lG=e.map({linear:J6,poly:hG,quad:function(){return fG},cubic:function(){return cG},sin:function(){return dG},exp:function(){return pG},circle:function(){return gG},elastic:yG,back:mG,bounce:function(){return bG}}),sG=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=lG.get(U)||J6,H=sG.get(H)||I,uG(H(U.apply(null,r.call(arguments,1))))};function uG(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 fG(C){return C*C}function cG(C){return C*C*C}function vG(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 hG(C){return function(N){return Math.pow(N,C)}}function dG(C){return 1-Math.cos(C*Ce)}function pG(C){return Math.pow(2,10*(C-1))}function gG(C){return 1-Math.sqrt(1-C*C)}function yG(C,N){var U;return arguments.length<2&&(N=.45),arguments.length?U=N/er*Math.asin(1/C):(C=1,U=N/4),function(H){return 1+C*Math.pow(2,-10*H)*Math.sin((H-U)*er/N)}}function mG(C){return C||(C=1.70158),function(N){return N*N*((C+1)*N-C)}}function bG(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=xG;function xG(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 sr(U+W*ce,H+le*ce,Y+ne*ce)+""}}e.interpolateHsl=_G;function _G(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 Gt(U+W*ce,H+le*ce,Y+ne*ce)+""}}e.interpolateLab=wG;function wG(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 Pn(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:TG)})(C)};function j6(C){var N=[C.a,C.b],U=[C.c,C.d],H=r_(N),Y=e_(N,U),W=r_(MG(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 MG(C,N,U){return C[0]+=U*N[0],C[1]+=U*N[1],C}var TG={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=t_;function _u(C){return C.length?C.pop()+",":""}function AG(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:Lo(C[0],N[0])},{i:Y-2,x:Lo(C[1],N[1])})}else(N[0]||N[1])&&U.push("translate("+N+")")}function kG(C,N,U,H){C!==N?(C-N>180?N+=360:N-C>180&&(C+=360),H.push({i:U.push(_u(U)+"rotate(",null,")")-2,x:Lo(C,N)})):N&&U.push(_u(U)+"rotate("+N+")")}function SG(C,N,U,H){C!==N?H.push({i:U.push(_u(U)+"skewX(",null,")")-2,x:Lo(C,N)}):N&&U.push(_u(U)+"skewX("+N+")")}function CG(C,N,U,H){if(C[0]!==N[0]||C[1]!==N[1]){var Y=U.push(_u(U)+"scale(",null,",",null,")");H.push({i:Y-4,x:Lo(C[0],N[0])},{i:Y-2,x:Lo(C[1],N[1])})}else(N[0]!==1||N[1]!==1)&&U.push(_u(U)+"scale("+N+")")}function t_(C,N){var U=[],H=[];return C=e.transform(C),N=e.transform(N),AG(C.translate,N.translate,U,H),kG(C.rotate,N.rotate,U,H),SG(C.skew,N.skew,U,H),CG(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 EG(C,N){return N=(N-=C=+C)||1/N,function(U){return(U-C)/N}}function LG(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(RG(C[U]));return N}};function RG(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 Re={},De=[],Xe=e.range(Y),Je=[],ze,Ne,Be,Ze,$e;for(N=[],U=[],ze=0,Ze=-1;++Ze<Y;){for(Ne=0,$e=-1;++$e<Y;)Ne+=H[Ze][$e];De.push(Ne),Je.push(e.range(Y)),ze+=Ne}for(le&&Xe.sort(function(Or,Mr){return le(De[Or],De[Mr])}),ne&&Je.forEach(function(Or,Mr){Or.sort(function(Ir,gt){return ne(H[Mr][Ir],H[Mr][gt])})}),ze=(er-W*Y)/ze,Ne=0,Ze=-1;++Ze<Y;){for(Be=Ne,$e=-1;++$e<Y;){var He=Xe[Ze],ir=Je[He][$e],hr=H[He][ir],gr=Ne,pr=Ne+=hr*ze;Re[He+"-"+ir]={index:He,subindex:ir,startAngle:gr,endAngle:pr,value:hr}}U[He]={index:He,startAngle:Be,endAngle:Ne,value:De[He]},Ne+=W}for(Ze=-1;++Ze<Y;)for($e=Ze-1;++$e<Y;){var br=Re[Ze+"-"+$e],xr=Re[$e+"-"+Ze];(br.value||xr.value)&&N.push(br.value<xr.value?{source:xr,target:br}:{source:br,target:xr})}ce&&Te()}function Te(){N.sort(function(Re,De){return ce((Re.source.value+Re.target.value)/2,(De.source.value+De.target.value)/2)})}return C.matrix=function(Re){return arguments.length?(Y=(H=Re)&&H.length,N=U=null,C):H},C.padding=function(Re){return arguments.length?(W=Re,N=U=null,C):W},C.sortGroups=function(Re){return arguments.length?(le=Re,N=U=null,C):le},C.sortSubgroups=function(Re){return arguments.length?(ne=Re,N=null,C):ne},C.sortChords=function(Re){return arguments.length?(ce=Re,N&&Te(),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=NG,ce=qG,_e=-30,Te=OG,Re=.1,De=.64,Xe=[],Je=[],ze,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,Or=pr-hr,Mr=br*br+xr*xr;if(Or*Or/De<Mr){if(Mr<Te){var Ir=ir.charge/Mr;He.px-=br*Ir,He.py-=xr*Ir}return!0}if(ir.point&&Mr&&Mr<Te){var Ir=ir.pointCharge/Mr;He.px-=br*Ir,He.py-=xr*Ir}}return!ir.charge}}C.tick=function(){if((W*=.99)<.005)return U=null,N.end({type:"end",alpha:W=0}),!0;var He=Xe.length,ir=Je.length,hr,gr,pr,br,xr,Or,Mr,Ir,gt;for(gr=0;gr<ir;++gr)pr=Je[gr],br=pr.source,xr=pr.target,Ir=xr.x-br.x,gt=xr.y-br.y,(Or=Ir*Ir+gt*gt)&&(Or=W*Ne[gr]*((Or=Math.sqrt(Or))-ze[gr])/Or,Ir*=Or,gt*=Or,xr.x-=Ir*(Mr=br.weight+xr.weight?br.weight/(br.weight+xr.weight):.5),xr.y-=gt*Mr,br.x+=Ir*(Mr=1-Mr),br.y+=gt*Mr);if((Mr=W*Re)&&(Ir=H[0]/2,gt=H[1]/2,gr=-1,Mr))for(;++gr<He;)pr=Xe[gr],pr.x+=(Ir-pr.x)*Mr,pr.y+=(gt-pr.y)*Mr;if(_e)for(a_(hr=e.geom.quadtree(Xe),W,Be),gr=-1;++gr<He;)(pr=Xe[gr]).fixed||hr.visit(Ze(pr));for(gr=-1;++gr<He;)pr=Xe[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?(Xe=He,C):Xe},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?(Te=He*He,C):Math.sqrt(Te)},C.gravity=function(He){return arguments.length?(Re=+He,C):Re},C.theta=function(He){return arguments.length?(De=He*He,C):Math.sqrt(De)},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=Xe.length,hr=Je.length,gr=H[0],pr=H[1],br,xr;for(He=0;He<ir;++He)(xr=Xe[He]).index=He,xr.weight=0;for(He=0;He<hr;++He)xr=Je[He],typeof xr.source=="number"&&(xr.source=Xe[xr.source]),typeof xr.target=="number"&&(xr.target=Xe[xr.target]),++xr.source.weight,++xr.target.weight;for(He=0;He<ir;++He)xr=Xe[He],isNaN(xr.x)&&(xr.x=Or("x",gr)),isNaN(xr.y)&&(xr.y=Or("y",pr)),isNaN(xr.px)&&(xr.px=xr.x),isNaN(xr.py)&&(xr.py=xr.y);if(ze=[],typeof ne=="function")for(He=0;He<hr;++He)ze[He]=+ne.call(this,Je[He],He);else for(He=0;He<hr;++He)ze[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,Xe[He],He);else for(He=0;He<ir;++He)Be[He]=_e;function Or(Mr,Ir){if(!br){for(br=new Array(ir),bt=0;bt<ir;++bt)br[bt]=[];for(bt=0;bt<hr;++bt){var gt=Je[bt];br[gt.source.index].push(gt.target),br[gt.target.index].push(gt.source)}}for(var on=br[He],bt=-1,cr=on.length,Br;++bt<cr;)if(!isNaN(Br=on[bt][Mr]))return Br;return Math.random()*Ir}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",PG).on("drag.force",$e).on("dragend.force",IG)),!arguments.length)return Y;this.on("mouseover.force",zG).on("mouseout.force",FG).call(Y)};function $e(He){He.px=e.event.x,He.py=e.event.y,C.resume()}return e.rebind(C,N,"on")};function PG(C){C.fixed|=2}function IG(C){C.fixed&=-7}function zG(C){C.fixed|=4,C.px=C.x,C.py=C.y}function FG(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 NG=20,qG=1,OG=1/0;e.layout.hierarchy=function(){var C=HG,N=BG,U=UG;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,Te;--ce>=0;)W.push(Te=_e[ce]),Te.parent=ne,Te.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 ji(Y,function(Re){var De,Xe;C&&(De=Re.children)&&De.sort(C),U&&(Xe=Re.parent)&&(Xe.value+=Re.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&&(l0(Y,function(W){W.children&&(W.value=0)}),ji(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 o0(C,N){return e.rebind(C,N,"sort","children","value"),C.nodes=C,C.links=VG,C}function l0(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 ji(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 UG(C){return C.value}function HG(C,N){return N.value-C.value}function VG(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&&(Re=_e.length)){var Te=-1,Re,De,Xe;for(ne=W.value?ne/W.value:0;++Te<Re;)U(De=_e[Te],le,Xe=De.value*ne,ce),le+=Xe}}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},o0(Y,C)},e.layout.pie=function(){var C=Number,N=i_,U=0,H=er,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),Te=(typeof H=="function"?H.apply(this,arguments):H)-_e,Re=Math.min(Math.abs(Te)/ne,+(typeof Y=="function"?Y.apply(this,arguments):Y)),De=Re*(Te<0?-1:1),Xe=e.sum(ce),Je=Xe?(Te-ne*De)/Xe:0,ze=e.range(ne),Ne=[],Be;return N!=null&&ze.sort(N===i_?function(Ze,$e){return ce[$e]-ce[Ze]}:function(Ze,$e){return N(le[Ze],le[$e])}),ze.forEach(function(Ze){Ne[Ze]={data:le[Ze],value:Be=ce[Ze],startAngle:_e,endAngle:_e+=Be*Je+De,padAngle:Re}}),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=Gg,U=Yg,H=XG,Y=GG,W=YG;function le(ne,ce){if(!(Je=ne.length))return ne;var _e=ne.map(function(Ze,$e){return C.call(le,Ze,$e)}),Te=_e.map(function(Ze){return Ze.map(function($e,He){return[Y.call(le,$e,He),W.call(le,$e,He)]})}),Re=N.call(le,Te,ce);_e=e.permute(_e,Re),Te=e.permute(Te,Re);var De=U.call(le,Te,ce),Xe=_e[0].length,Je,ze,Ne,Be;for(Ne=0;Ne<Xe;++Ne)for(H.call(le,_e[0][Ne],Be=De[Ne],Te[0][Ne][1]),ze=1;ze<Je;++ze)H.call(le,_e[ze][Ne],Be+=Te[ze-1][Ne][1],Te[ze][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:WG.get(ne)||Gg,le):N},le.offset=function(ne){return arguments.length?(U=typeof ne=="function"?ne:ZG.get(ne)||Yg,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 GG(C){return C.x}function YG(C){return C.y}function XG(C,N,U){C.y0=N,C.y=U}var WG=e.map({"inside-out":function(C){var N=C.length,U,H,Y=C.map(JG),W=C.map($G),le=e.range(N).sort(function(Re,De){return Y[Re]-Y[De]}),ne=0,ce=0,_e=[],Te=[];for(U=0;U<N;++U)H=le[U],ne<ce?(ne+=W[H],_e.push(H)):(ce+=W[H],Te.push(H));return Te.reverse().concat(_e)},reverse:function(C){return e.range(C.length).reverse()},default:Gg}),ZG=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,Te,Re,De,Xe=[];for(Xe[0]=Re=De=0,W=1;W<H;++W){for(Y=0,ne=0;Y<N;++Y)ne+=C[Y][W][1];for(Y=0,ce=0,Te=U[W][0]-U[W-1][0];Y<N;++Y){for(le=0,_e=(C[Y][W][1]-C[Y][W-1][1])/(2*Te);le<Y;++le)_e+=(C[le][W][1]-C[le][W-1][1])/Te;ce+=_e*C[Y][W][1]}Xe[W]=Re-=ne?ce/ne*Te:0,Re<De&&(De=Re)}for(W=0;W<H;++W)Xe[W]-=De;return Xe},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:Yg});function Gg(C){return e.range(C.length)}function Yg(C){for(var N=-1,U=C[0].length,H=[];++N<U;)H[N]=0;return H}function JG(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 $G(C){return C.reduce(KG,0)}function KG(C,N){return C+N[1]}e.layout.histogram=function(){var C=!0,N=Number,U=jG,H=QG;function Y(W,De){for(var ne=[],ce=W.map(N,this),_e=U.call(this,ce,De),Te=H.call(this,_e,ce,De),Re,De=-1,Xe=ce.length,Je=Te.length-1,ze=C?1:1/Xe,Ne;++De<Je;)Re=ne[De]=[],Re.dx=Te[De+1]-(Re.x=Te[De]),Re.y=0;if(Je>0)for(De=-1;++De<Xe;)Ne=ce[De],Ne>=_e[0]&&Ne<=_e[1]&&(Re=ne[e.bisect(Te,Ne,1,Je)-1],Re.y+=ze,Re.push(W[De]));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 QG(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 jG(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(eY),N=0,U=[1,1],H;function Y(W,le){var ne=C.call(this,W,le),ce=ne[0],_e=U[0],Te=U[1],Re=H==null?Math.sqrt:typeof H=="function"?H:function(){return H};if(ce.x=ce.y=0,ji(ce,function(Xe){Xe.r=+Re(Xe.value)}),ji(ce,u_),N){var De=N*(H?1:Math.max(2*ce.r/_e,2*ce.r/Te))/2;ji(ce,function(Xe){Xe.r+=De}),ji(ce,u_),ji(ce,function(Xe){Xe.r-=De})}return f_(ce,_e/2,Te/2,H?1:1/Math.max(2*ce.r/_e,2*ce.r/Te)),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},o0(Y,C)};function eY(C,N){return C.value-N.value}function Xg(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)||!(De=N.length))return;var N,U=1/0,H=-1/0,Y=1/0,W=-1/0,le,ne,ce,_e,Te,Re,De;function Xe(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(rY),le=N[0],le.x=-le.r,le.y=0,Xe(le),De>1&&(ne=N[1],ne.x=ne.r,ne.y=0,Xe(ne),De>2))for(ce=N[2],c_(le,ne,ce),Xe(ce),Xg(le,ce),le._pack_prev=ce,Xg(ce,ne),ne=le._pack_next,_e=3;_e<De;_e++){c_(le,ne,ce=N[_e]);var Je=0,ze=1,Ne=1;for(Te=ne._pack_next;Te!==ne;Te=Te._pack_next,ze++)if(s_(Te,ce)){Je=1;break}if(Je==1)for(Re=le._pack_prev;Re!==Te._pack_prev&&!s_(Re,ce);Re=Re._pack_prev,Ne++);Je?(ze<Ne||ze==Ne&&ne.r<le.r?l_(le,ne=Te):l_(le=Re,ne),_e--):(Xg(le,ce),ne=ce,Xe(ce))}var Be=(U+H)/2,Ze=(Y+W)/2,$e=0;for(_e=0;_e<De;_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(tY)}function rY(C){C._pack_next=C._pack_prev=C}function tY(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(Te,Re){var De=C.call(this,Te,Re),Xe=De[0],Je=W(Xe);if(ji(Je,le),Je.parent.m=-Je.z,l0(Je,ne),H)l0(Xe,_e);else{var ze=Xe,Ne=Xe,Be=Xe;l0(Xe,function(ir){ir.x<ze.x&&(ze=ir),ir.x>Ne.x&&(Ne=ir),ir.depth>Be.depth&&(Be=ir)});var Ze=N(ze,Ne)/2-ze.x,$e=U[0]/(Ne.x+N(Ne,ze)/2+Ze),He=U[1]/(Be.depth||1);l0(Xe,function(ir){ir.x=(ir.x+Ze)*$e,ir.y=ir.depth*He})}return De}function W(Te){for(var Re={A:null,children:[Te]},De=[Re],Xe;(Xe=De.pop())!=null;)for(var Je=Xe.children,ze,Ne=0,Be=Je.length;Ne<Be;++Ne)De.push((Je[Ne]=ze={_:Je[Ne],parent:Xe,children:(ze=Je[Ne].children)&&ze.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Ne}).a=ze);return Re.children[0]}function le(Te){var Re=Te.children,De=Te.parent.children,Xe=Te.i?De[Te.i-1]:null;if(Re.length){aY(Te);var Je=(Re[0].z+Re[Re.length-1].z)/2;Xe?(Te.z=Xe.z+N(Te._,Xe._),Te.m=Te.z-Je):Te.z=Je}else Xe&&(Te.z=Xe.z+N(Te._,Xe._));Te.parent.A=ce(Te,Xe,Te.parent.A||De[0])}function ne(Te){Te._.x=Te.z+Te.parent.m,Te.m+=Te.parent.m}function ce(Te,Re,De){if(Re){for(var Xe=Te,Je=Te,ze=Re,Ne=Xe.parent.children[0],Be=Xe.m,Ze=Je.m,$e=ze.m,He=Ne.m,ir;ze=Zg(ze),Xe=Wg(Xe),ze&&Xe;)Ne=Wg(Ne),Je=Zg(Je),Je.a=Te,ir=ze.z+$e-Xe.z-Be+N(ze._,Xe._),ir>0&&(nY(iY(ze,Te,De),Te,ir),Be+=ir,Ze+=ir),$e+=ze.m,Be+=Xe.m,He+=Ne.m,Ze+=Je.m;ze&&!Zg(Je)&&(Je.t=ze,Je.m+=$e-Ze),Xe&&!Wg(Ne)&&(Ne.t=Xe,Ne.m+=Be-He,De=Te)}return De}function _e(Te){Te.x*=U[0],Te.y=Te.depth*U[1]}return Y.separation=function(Te){return arguments.length?(N=Te,Y):N},Y.size=function(Te){return arguments.length?(H=(U=Te)==null?_e:null,Y):H?null:U},Y.nodeSize=function(Te){return arguments.length?(H=(U=Te)==null?null:_e,Y):H?U:null},o0(Y,C)};function v_(C,N){return C.parent==N.parent?1:2}function Wg(C){var N=C.children;return N.length?N[0]:C.t}function Zg(C){var N=C.children,U;return(U=N.length)?N[U-1]:C.t}function nY(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 aY(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 iY(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,Te=0;ji(ce,function(ze){var Ne=ze.children;Ne&&Ne.length?(ze.x=lY(Ne),ze.y=oY(Ne)):(ze.x=_e?Te+=N(ze,_e):0,ze.y=0,_e=ze)});var Re=h_(ce),De=d_(ce),Xe=Re.x-N(Re,De)/2,Je=De.x+N(De,Re)/2;return ji(ce,H?function(ze){ze.x=(ze.x-ce.x)*U[0],ze.y=(ce.y-ze.y)*U[1]}:function(ze){ze.x=(ze.x-Xe)/(Je-Xe)*U[0],ze.y=(1-(ce.y?ze.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},o0(Y,C)};function oY(C){return 1+e.max(C,function(N){return N.y})}function lY(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=Jg,W=!1,le,ne="squarify",ce=.5*(1+Math.sqrt(5));function _e(ze,Ne){for(var Be=-1,Ze=ze.length,$e,He;++Be<Ze;)He=($e=ze[Be]).value*(Ne<0?0:Ne),$e.area=isNaN(He)||He<=0?0:He}function Te(ze){var Ne=ze.children;if(Ne&&Ne.length){var Be=Y(ze),Ze=[],$e=Ne.slice(),He,ir=1/0,hr,gr=ne==="slice"?Be.dx:ne==="dice"?Be.dy:ne==="slice-dice"?ze.depth&1?Be.dy:Be.dx:Math.min(Be.dx,Be.dy),pr;for(_e($e,Be.dx*Be.dy/ze.value),Ze.area=0;(pr=$e.length)>0;)Ze.push(He=$e[pr-1]),Ze.area+=He.area,ne!=="squarify"||(hr=De(Ze,gr))<=ir?($e.pop(),ir=hr):(Ze.area-=Ze.pop().area,Xe(Ze,gr,Be,!1),gr=Math.min(Be.dx,Be.dy),Ze.length=Ze.area=0,ir=1/0);Ze.length&&(Xe(Ze,gr,Be,!0),Ze.length=Ze.area=0),Ne.forEach(Te)}}function Re(ze){var Ne=ze.children;if(Ne&&Ne.length){var Be=Y(ze),Ze=Ne.slice(),$e,He=[];for(_e(Ze,Be.dx*Be.dy/ze.value),He.area=0;$e=Ze.pop();)He.push($e),He.area+=$e.area,$e.z!=null&&(Xe(He,$e.z?Be.dx:Be.dy,Be,!Ze.length),He.length=He.area=0);Ne.forEach(Re)}}function De(ze,Ne){for(var Be=ze.area,Ze,$e=0,He=1/0,ir=-1,hr=ze.length;++ir<hr;)(Ze=ze[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 Xe(ze,Ne,Be,Ze){var $e=-1,He=ze.length,ir=Be.x,hr=Be.y,gr=Ne?N(ze.area/Ne):0,pr;if(Ne==Be.dx){for((Ze||gr>Be.dy)&&(gr=Be.dy);++$e<He;)pr=ze[$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=ze[$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(ze){var Ne=le||C(ze),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?Re:Te)(Be),W&&(le=Ne),Ne}return Je.size=function(ze){return arguments.length?(U=ze,Je):U},Je.padding=function(ze){if(!arguments.length)return H;function Ne($e){var He=ze.call(Je,$e,$e.depth);return He==null?Jg($e):p_($e,typeof He=="number"?[He,He,He,He]:He)}function Be($e){return p_($e,ze)}var Ze;return Y=(H=ze)==null?Jg:(Ze=typeof ze)=="function"?Ne:(Ze==="number"&&(ze=[ze,ze,ze,ze]),Be),Je},Je.round=function(ze){return arguments.length?(N=ze?Math.round:Number,Je):N!=Number},Je.sticky=function(ze){return arguments.length?(W=ze,le=null,Je):W},Je.ratio=function(ze){return arguments.length?(ce=ze,Je):ce},Je.mode=function(ze){return arguments.length?(ne=ze+"",Je):ne},o0(Je,C)};function Jg(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 Rv(C){var N=C[0],U=C[C.length-1];return N<U?[N,U]:[U,N]}function Dv(C){return C.rangeExtent?C.rangeExtent():Rv(C.range())}function sY(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 $g(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}}:uY}var uY={floor:I,ceil:I};function fY(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],is,!1)};function y_(C,N,U,H){var Y,W;function le(){var ce=Math.min(C.length,N.length)>2?fY:sY,_e=H?LG:EG;return Y=ce(C,N,_e,U),W=ce(N,C,_e,is),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 Qg(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 $g(C,g_(Kg(C,N)[2])),$g(C,g_(Kg(C,N)[2])),C}function Kg(C,N){N==null&&(N=10);var U=Rv(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 Qg(C,N){return e.range.apply(e,Kg(C,N))}var cY={s:1,g:1,p:1,r:1,e:1};function x_(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function zbe(C,N){var U=x_(N[2]);return C in cY?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=$g(H.map(Y),U?Math:vY);return C.domain(ne),H=ne.map(W),le},le.ticks=function(){var ne=Rv(H),ce=[],_e=ne[0],Te=ne[1],Re=Math.floor(Y(_e)),De=Math.ceil(Y(Te)),Xe=N%1?2:N;if(isFinite(De-Re)){if(U){for(;Re<De;Re++)for(var Je=1;Je<Xe;Je++)ce.push(W(Re)*Je);ce.push(W(Re))}else for(ce.push(W(Re));Re++<De;)for(var Je=Xe-1;Je>0;Je--)ce.push(W(Re)*Je);for(Re=0;ce[Re]<_e;Re++);for(De=ce.length;ce[De-1]>Te;De--);ce=ce.slice(Re,De)}return ce},le.copy=function(){return __(C.copy(),N,U,H)},m_(le,C)}var vY={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=Pv(N),Y=Pv(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 Qg(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=Pv(N=le),Y=Pv(1/N),C.domain(U.map(H)),W):N},W.copy=function(){return w_(C.copy(),N,U)},m_(W,C)}function Pv(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,Te;++ce<_e;)U.has(Te=ne[ce])||U.set(Te,C.push(Te));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],Te=ne[1],Re=C.length<2?(_e=(_e+Te)/2,0):(Te-_e)/(C.length-1+ce);return H=le(_e+Re*ce/2,Re),Y=0,N={t:"rangePoints",a:arguments},W},W.rangeRoundPoints=function(ne,ce){arguments.length<2&&(ce=0);var _e=ne[0],Te=ne[1],Re=C.length<2?(_e=Te=Math.round((_e+Te)/2),0):(Te-_e)/(C.length-1+ce)|0;return H=le(_e+Math.round(Re*ce/2+(Te-_e-(C.length-1+ce)*Re)/2),Re),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 Te=ne[1]<ne[0],Re=ne[Te-0],De=ne[1-Te],Xe=(De-Re)/(C.length-ce+2*_e);return H=le(Re+Xe*_e,Xe),Te&&H.reverse(),Y=Xe*(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 Te=ne[1]<ne[0],Re=ne[Te-0],De=ne[1-Te],Xe=Math.floor((De-Re)/(C.length-ce+2*_e));return H=le(Re+Math.round((De-Re-(C.length-ce)*Xe)/2),Xe),Te&&H.reverse(),Y=Math.round(Xe*(1-ce)),N={t:"rangeRoundBands",a:arguments},W},W.rangeBand=function(){return Y},W.rangeExtent=function(){return Rv(N.a[0])},W.copy=function(){return M_(C,N)},W.domain(C)}e.scale.category10=function(){return e.scale.ordinal().range(hY)},e.scale.category20=function(){return e.scale.ordinal().range(dY)},e.scale.category20b=function(){return e.scale.ordinal().range(pY)},e.scale.category20c=function(){return e.scale.ordinal().range(gY)};var hY=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(rn),dY=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(rn),pY=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(rn),gY=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(rn);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 Qg(C,U)},N.tickFormat=function(U,H){return d3_scale_linearTickFormat(C,U,H)},N.copy=function(){return S_(C)},N}e.svg={};function yY(){return 0}e.svg.arc=function(){var C=mY,N=bY,U=yY,H=Iv,Y=C_,W=E_,le=xY;function ne(){var _e=Math.max(0,+C.apply(this,arguments)),Te=Math.max(0,+N.apply(this,arguments)),Re=Y.apply(this,arguments)-Ce,De=W.apply(this,arguments)-Ce,Xe=Math.abs(De-Re),Je=Re>De?0:1;if(Te<_e&&(ze=Te,Te=_e,_e=ze),Xe>=Qe)return ce(Te,Je)+(_e?ce(_e,1-Je):"")+"Z";var ze,Ne,Be,Ze,$e=0,He=0,ir,hr,gr,pr,br,xr,Or,Mr,Ir=[];if((Ze=(+le.apply(this,arguments)||0)/2)&&(Be=H===Iv?Math.sqrt(_e*_e+Te*Te):+H.apply(this,arguments),Je||(He*=-1),Te&&(He=Tr(Be/Te*Math.sin(Ze))),_e&&($e=Tr(Be/_e*Math.sin(Ze)))),Te){ir=Te*Math.cos(Re+He),hr=Te*Math.sin(Re+He),gr=Te*Math.cos(De-He),pr=Te*Math.sin(De-He);var gt=Math.abs(De-Re-2*He)<=nr?0:1;if(He&&zv(ir,hr,gr,pr)===Je^gt){var on=(Re+De)/2;ir=Te*Math.cos(on),hr=Te*Math.sin(on),gr=pr=null}}else ir=hr=0;if(_e){br=_e*Math.cos(De-$e),xr=_e*Math.sin(De-$e),Or=_e*Math.cos(Re+$e),Mr=_e*Math.sin(Re+$e);var bt=Math.abs(Re-De+2*$e)<=nr?0:1;if($e&&zv(br,xr,Or,Mr)===1-Je^bt){var cr=(Re+De)/2;br=_e*Math.cos(cr),xr=_e*Math.sin(cr),Or=Mr=null}}else br=xr=0;if(Xe>Ge&&(ze=Math.min(Math.abs(Te-_e)/2,+U.apply(this,arguments)))>.001){Ne=_e<Te^Je?0:1;var Br=ze,Gr=ze;if(Xe<nr){var yt=Or==null?[br,xr]:gr==null?[ir,hr]:Fg([ir,hr],[Or,Mr],[gr,pr],[br,xr]),$t=ir-yt[0],mn=hr-yt[1],Un=gr-yt[0],ia=pr-yt[1],ma=1/Math.sin(Math.acos(($t*Un+mn*ia)/(Math.sqrt($t*$t+mn*mn)*Math.sqrt(Un*Un+ia*ia)))/2),oa=Math.sqrt(yt[0]*yt[0]+yt[1]*yt[1]);Gr=Math.min(ze,(_e-oa)/(ma-1)),Br=Math.min(ze,(Te-oa)/(ma+1))}if(gr!=null){var Ta=Fv(Or==null?[br,xr]:[Or,Mr],[ir,hr],Te,Br,Je),Xn=Fv([gr,pr],[br,xr],Te,Br,Je);ze===Br?Ir.push("M",Ta[0],"A",Br,",",Br," 0 0,",Ne," ",Ta[1],"A",Te,",",Te," 0 ",1-Je^zv(Ta[1][0],Ta[1][1],Xn[1][0],Xn[1][1]),",",Je," ",Xn[1],"A",Br,",",Br," 0 0,",Ne," ",Xn[0]):Ir.push("M",Ta[0],"A",Br,",",Br," 0 1,",Ne," ",Xn[0])}else Ir.push("M",ir,",",hr);if(Or!=null){var Aa=Fv([ir,hr],[Or,Mr],_e,-Gr,Je),ls=Fv([br,xr],gr==null?[ir,hr]:[gr,pr],_e,-Gr,Je);ze===Gr?Ir.push("L",ls[0],"A",Gr,",",Gr," 0 0,",Ne," ",ls[1],"A",_e,",",_e," 0 ",Je^zv(ls[1][0],ls[1][1],Aa[1][0],Aa[1][1]),",",1-Je," ",Aa[1],"A",Gr,",",Gr," 0 0,",Ne," ",Aa[0]):Ir.push("L",ls[0],"A",Gr,",",Gr," 0 0,",Ne," ",Aa[0])}else Ir.push("L",br,",",xr)}else Ir.push("M",ir,",",hr),gr!=null&&Ir.push("A",Te,",",Te," 0 ",gt,",",Je," ",gr,",",pr),Ir.push("L",br,",",xr),Or!=null&&Ir.push("A",_e,",",_e," 0 ",bt,",",1-Je," ",Or,",",Mr);return Ir.push("Z"),Ir.join("")}function ce(_e,Te){return"M0,"+_e+"A"+_e+","+_e+" 0 1,"+Te+" 0,"+-_e+"A"+_e+","+_e+" 0 1,"+Te+" 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==Iv?Iv: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,Te=(+Y.apply(this,arguments)+ +W.apply(this,arguments))/2-Ce;return[Math.cos(Te)*_e,Math.sin(Te)*_e]},ne};var Iv="auto";function mY(C){return C.innerRadius}function bY(C){return C.outerRadius}function C_(C){return C.startAngle}function E_(C){return C.endAngle}function xY(C){return C&&C.padAngle}function zv(C,N,U,H){return(C-U)*N-(N-H)*C>0?0:1}function Fv(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,Te=C[0]+ce,Re=C[1]+_e,De=N[0]+ce,Xe=N[1]+_e,Je=(Te+De)/2,ze=(Re+Xe)/2,Ne=De-Te,Be=Xe-Re,Ze=Ne*Ne+Be*Be,$e=U-H,He=Te*Xe-De*Re,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,Or=gr-ze,Mr=pr-Je,Ir=br-ze;return xr*xr+Or*Or>Mr*Mr+Ir*Ir&&(hr=pr,gr=br),[[hr-ce,gr-_e],[hr*U/$e,gr*U/$e]]}function L_(){return!0}function R_(C){var N=gu,U=e0,H=L_,Y=Ti,W=Y.key,le=.7;function ne(ce){var _e=[],Te=[],Re=-1,De=ce.length,Xe,Je=kr(N),ze=kr(U);function Ne(){_e.push("M",Y(C(Te),le))}for(;++Re<De;)H.call(this,Xe=ce[Re],Re)?Te.push([+Je.call(this,Xe,Re),+ze.call(this,Xe,Re)]):Te.length&&(Ne(),Te=[]);return Te.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=jg.get(ce)||Ti).key,ne):W},ne.tension=function(ce){return arguments.length?(le=ce,ne):le},ne}e.svg.line=function(){return R_(I)};var jg=e.map({linear:Ti,"linear-closed":D_,step:_Y,"step-before":e2,"step-after":r2,basis:P_,"basis-open":AY,"basis-closed":kY,bundle:SY,cardinal:TY,"cardinal-open":wY,"cardinal-closed":MY,monotone:LY});jg.forEach(function(C,N){N.key=C,N.closed=/-closed$/.test(C)});function Ti(C){return C.length>1?C.join("L"):C+"Z"}function D_(C){return C.join("L")+"Z"}function _Y(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 e2(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 r2(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 wY(C,N){return C.length<4?Ti(C):C[1]+Nv(C.slice(1,-1),t2(C,N))}function MY(C,N){return C.length<3?D_(C):C[0]+Nv((C.push(C[0]),C),t2([C[C.length-2]].concat(C,[C[1]]),N))}function TY(C,N){return C.length<3?Ti(C):C[0]+Nv(C,t2(C,N))}function Nv(C,N){if(N.length<1||C.length!=N.length&&C.length!=N.length+2)return Ti(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 Te=C[ce];H+="Q"+(W[0]+ne[0]*2/3)+","+(W[1]+ne[1]*2/3)+","+Te[0]+","+Te[1]}return H}function t2(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 P_(C){if(C.length<3)return Ti(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",ti(tl,le),",",ti(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]),n2(ce,le,ne);return C.pop(),ce.push("L",H),ce.join("")}function AY(C){if(C.length<4)return Ti(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(ti(tl,W)+","+ti(tl,le)),--U;++U<H;)Y=C[U],W.shift(),W.push(Y[0]),le.shift(),le.push(Y[1]),n2(N,W,le);return N.join("")}function kY(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=[ti(tl,le),",",ti(tl,ne)],--U;++U<Y;)W=C[U%H],le.shift(),le.push(W[0]),ne.shift(),ne.push(W[1]),n2(N,le,ne);return N.join("")}function SY(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 P_(C)}function ti(C,N){return C[0]*N[0]+C[1]*N[1]+C[2]*N[2]+C[3]*N[3]}var I_=[0,2/3,1/3,0],z_=[0,1/3,2/3,0],tl=[0,1/6,2/3,1/6];function n2(C,N,U){C.push("C",ti(I_,N),",",ti(I_,U),",",ti(z_,N),",",ti(z_,U),",",ti(tl,N),",",ti(tl,U))}function a2(C,N){return(N[1]-C[1])/(N[0]-C[0])}function CY(C){for(var N=0,U=C.length-1,H=[],Y=C[0],W=C[1],le=H[0]=a2(Y,W);++N<U;)H[N]=(le+(le=a2(Y=W,W=C[N+1])))/2;return H[N]=le,H}function EY(C){for(var N=[],U,H,Y,W,le=CY(C),ne=-1,ce=C.length-1;++ne<ce;)U=a2(C[ne],C[ne+1]),m(U)<Ge?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 LY(C){return C.length<3?Ti(C):C[0]+Nv(C,EY(C))}e.svg.line.radial=function(){var C=R_(F_);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function F_(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=gu,U=gu,H=0,Y=e0,W=L_,le=Ti,ne=le.key,ce=le,_e="L",Te=.7;function Re(De){var Xe=[],Je=[],ze=[],Ne=-1,Be=De.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(){Xe.push("M",le(C(ze),Te),_e,ce(C(Je.reverse()),Te),"Z")}for(;++Ne<Be;)W.call(this,Ze=De[Ne],Ne)?(Je.push([gr=+$e.call(this,Ze,Ne),pr=+He.call(this,Ze,Ne)]),ze.push([+ir.call(this,Ze,Ne),+hr.call(this,Ze,Ne)])):Je.length&&(br(),Je=[],ze=[]);return Je.length&&br(),Xe.length?Xe.join(""):null}return Re.x=function(De){return arguments.length?(N=U=De,Re):U},Re.x0=function(De){return arguments.length?(N=De,Re):N},Re.x1=function(De){return arguments.length?(U=De,Re):U},Re.y=function(De){return arguments.length?(H=Y=De,Re):Y},Re.y0=function(De){return arguments.length?(H=De,Re):H},Re.y1=function(De){return arguments.length?(Y=De,Re):Y},Re.defined=function(De){return arguments.length?(W=De,Re):W},Re.interpolate=function(De){return arguments.length?(typeof De=="function"?ne=le=De:ne=(le=jg.get(De)||Ti).key,ce=le.reverse||le,_e=le.closed?"M":"L",Re):ne},Re.tension=function(De){return arguments.length?(Te=De,Re):Te},Re}e2.reverse=r2,r2.reverse=e2,e.svg.area=function(){return N_(I)},e.svg.area.radial=function(){var C=N_(F_);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 O_(C){return C.target}e.svg.chord=function(){var C=q_,N=O_,U=RY,H=C_,Y=E_;function W(Te,Re){var De=le(this,C,Te,Re),Xe=le(this,N,Te,Re);return"M"+De.p0+ce(De.r,De.p1,De.a1-De.a0)+(ne(De,Xe)?_e(De.r,De.p1,De.r,De.p0):_e(De.r,De.p1,Xe.r,Xe.p0)+ce(Xe.r,Xe.p1,Xe.a1-Xe.a0)+_e(Xe.r,Xe.p1,De.r,De.p0))+"Z"}function le(Te,Re,De,Xe){var Je=Re.call(Te,De,Xe),ze=U.call(Te,Je,Xe),Ne=H.call(Te,Je,Xe)-Ce,Be=Y.call(Te,Je,Xe)-Ce;return{r:ze,a0:Ne,a1:Be,p0:[ze*Math.cos(Ne),ze*Math.sin(Ne)],p1:[ze*Math.cos(Be),ze*Math.sin(Be)]}}function ne(Te,Re){return Te.a0==Re.a0&&Te.a1==Re.a1}function ce(Te,Re,De){return"A"+Te+","+Te+" 0 "+ +(De>nr)+",1 "+Re}function _e(Te,Re,De,Xe){return"Q 0,0 "+Xe}return W.radius=function(Te){return arguments.length?(U=kr(Te),W):U},W.source=function(Te){return arguments.length?(C=kr(Te),W):C},W.target=function(Te){return arguments.length?(N=kr(Te),W):N},W.startAngle=function(Te){return arguments.length?(H=kr(Te),W):H},W.endAngle=function(Te){return arguments.length?(Y=kr(Te),W):Y},W};function RY(C){return C.radius}e.svg.diagonal=function(){var C=q_,N=O_,U=B_;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 B_(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),N=B_,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=IY,N=PY;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 PY(){return 64}function IY(){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*Fe);j.transition=function(C){for(var N=os||++Y_,U=o2(C),H=[],Y,W,le=Bv||{time:Date.now(),ease:vG,delay:0,duration:250},ne=-1,ce=this.length;++ne<ce;){H.push(Y=[]);for(var _e=this[ne],Te=-1,Re=_e.length;++Te<Re;)(W=_e[Te])&&Uv(W,Te,U,N,le),Y.push(W)}return s0(H,U,N)},j.interrupt=function(C){return this.each(C==null?Ov:G_(o2(C)))};var Ov=G_(o2());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 s0(C,N,U){return q(C,yn),C.namespace=N,C.id=U,C}var yn=[],Y_=0,os,Bv;yn.call=j.call,yn.empty=j.empty,yn.node=j.node,yn.size=j.size,e.transition=function(C,N){return C&&C.transition?os?C.transition(N):C:e.selection().transition(C)},e.transition.prototype=yn,yn.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],Te=-1,Re=_e.length;++Te<Re;)(le=_e[Te])&&(W=C.call(le,le.__data__,Te,ne))?("__data__"in le&&(W.__data__=le.__data__),Uv(W,Te,U,N,le[U][N]),Y.push(W)):Y.push(null)}return s0(H,U,N)},yn.selectAll=function(C){var N=this.id,U=this.namespace,H=[],Y,W,le,ne,ce;C=ue(C);for(var _e=-1,Te=this.length;++_e<Te;)for(var Re=this[_e],De=-1,Xe=Re.length;++De<Xe;)if(le=Re[De]){ce=le[U][N],W=C.call(le,le.__data__,De,_e),H.push(Y=[]);for(var Je=-1,ze=W.length;++Je<ze;)(ne=W[Je])&&Uv(ne,Je,U,N,ce),Y.push(ne)}return s0(H,U,N)},yn.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 s0(N,this.namespace,this.id)},yn.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 i2(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)}))}yn.attr=function(C,N){if(arguments.length<2){for(N in C)this.attr(N,C[N]);return this}var U=C=="transform"?t_:is,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),Te;return _e!==ce&&(Te=U(_e,ce),function(Re){this.setAttribute(H,Te(Re))})})}function ne(ce){return ce==null?W:(ce+="",function(){var _e=this.getAttributeNS(H.space,H.local),Te;return _e!==ce&&(Te=U(_e,ce),function(Re){this.setAttributeNS(H.space,H.local,Te(Re))})})}return i2(this,"attr."+C,N,H.local?ne:le)},yn.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)},yn.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=is(ne,le),function(_e){this.style.setProperty(C,ce(_e),U)})})}return i2(this,"style."+C,N,W)},yn.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)},yn.text=function(C){return i2(this,"text",C,zY)};function zY(C){return C==null&&(C=""),function(){this.textContent=C}}yn.remove=function(){var C=this.namespace;return this.each("end.transition",function(){var N;this[C].count<2&&(N=this.parentNode)&&N.removeChild(this)})},yn.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}))},yn.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}))},yn.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}))},yn.each=function(C,N){var U=this.id,H=this.namespace;if(arguments.length<2){var Y=Bv,W=os;try{os=U,pe(this,function(le,ne,ce){Bv=le[H][U],C.call(le,le.__data__,ne,ce)})}finally{Bv=Y,os=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},yn.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],Te=0,Re=W.length;Te<Re;Te++)(le=W[Te])&&(ne=le[U][C],Uv(le,Te,U,N,{time:ne.time,ease:ne.ease,delay:ne.delay+ne.duration,duration:ne.duration})),Y.push(le)}return s0(H,U,N)};function o2(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,Te,Re;function De(ze){var Ne=le.delay;if(ce.t=Ne+ne,Ne<=ze)return Xe(ze-Ne);ce.c=Xe}function Xe(ze){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(ze||1)&&(ce.c=null,ce.t=NaN),1},0,ne),W.active=H,le.event&&le.event.start.call(C,C.__data__,N),Re=[],le.tween.forEach(function(He,ir){(ir=ir.call(C,C.__data__,N))&&Re.push(ir)}),Te=le.ease,_e=le.duration}function Je(ze){for(var Ne=ze/_e,Be=Te(Ne),Ze=Re.length;Ze>0;)Re[--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(De,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 Te=e.select(this),Re=this.__chart__||C,De=this.__chart__=C.copy(),Xe=le==null?De.ticks?De.ticks.apply(De,W):De.domain():le,Je=ne==null?De.tickFormat?De.tickFormat.apply(De,W):I:ne,ze=Te.selectAll(".tick").data(Xe,De),Ne=ze.enter().insert("g",".domain").attr("class","tick").style("opacity",Ge),Be=e.transition(ze.exit()).style("opacity",Ge).remove(),Ze=e.transition(ze.order()).style("opacity",1),$e=Math.max(U,0)+Y,He,ir=Dv(De),hr=Te.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=ze.select("text").text(Je),Or=Ne.select("text"),Mr=Ze.select("text"),Ir=N==="top"||N==="left"?-1:1,gt,on,bt,cr;if(N==="bottom"||N==="top"?(He=NY,gt="x",bt="y",on="x2",cr="y2",xr.attr("dy",Ir<0?"0em":".71em").style("text-anchor","middle"),gr.attr("d","M"+ir[0]+","+Ir*H+"V0H"+ir[1]+"V"+Ir*H)):(He=qY,gt="y",bt="x",on="y2",cr="x2",xr.attr("dy",".32em").style("text-anchor",Ir<0?"end":"start"),gr.attr("d","M"+Ir*H+","+ir[0]+"H0V"+ir[1]+"H"+Ir*H)),pr.attr(cr,Ir*U),Or.attr(bt,Ir*$e),br.attr(on,0).attr(cr,Ir*U),Mr.attr(gt,0).attr(bt,Ir*$e),De.rangeBand){var Br=De,Gr=Br.rangeBand()/2;Re=De=function(yt){return Br(yt)+Gr}}else Re.rangeBand?Re=De:Be.call(He,De,Re);Ne.call(He,Re,De),Ze.call(He,De,De)})}return ce.scale=function(_e){return arguments.length?(C=_e,ce):C},ce.orient=function(_e){return arguments.length?(N=_e in FY?_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 Te=arguments.length;return Te?(U=+_e,H=+arguments[Te-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",FY={top:1,right:1,bottom:1,left:1};function NY(C,N,U){C.attr("transform",function(H){var Y=N(H);return"translate("+(isFinite(Y)?Y:U(H))+",0)"})}function qY(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=Q(Te,"brushstart","brush","brushend"),N=null,U=null,H=[0,0],Y=[0,0],W,le,ne=!0,ce=!0,_e=l2[0];function Te(ze){ze.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 OY[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",Te.empty()?"none":null);var $e=e.transition(Ne),He=e.transition(Be),ir;N&&(ir=Dv(N),He.attr("x",ir[0]).attr("width",ir[1]-ir[0]),De($e)),U&&(ir=Dv(U),He.attr("y",ir[0]).attr("height",ir[1]-ir[0]),Xe($e)),Re($e)})}Te.event=function(ze){ze.each(function(){var Ne=C.of(this,arguments),Be={x:H,y:Y,i:W,j:le},Ze=this.__chart__||Be;this.__chart__=Be,os?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 Re(ze){ze.selectAll(".resize").attr("transform",function(Ne){return"translate("+H[+/e$/.test(Ne)]+","+Y[+/^s/.test(Ne)]+")"})}function De(ze){ze.select(".extent").attr("x",H[0]),ze.selectAll(".extent,.n>rect,.s>rect").attr("width",H[1]-H[0])}function Xe(ze){ze.select(".extent").attr("y",Y[0]),ze.selectAll(".extent,.e>rect,.w>rect").attr("height",Y[1]-Y[0])}function Je(){var ze=this,Ne=e.select(e.event.target),Be=C.of(ze,arguments),Ze=e.select(ze),$e=Ne.datum(),He=!/^(n|s)$/.test($e)&&N,ir=!/^(e|w)$/.test($e)&&U,hr=Ne.classed("extent"),gr=qe(ze),pr,br=e.mouse(ze),xr,Or=e.select(o(ze)).on("keydown.brush",gt).on("keyup.brush",on);if(e.event.changedTouches?Or.on("touchmove.brush",bt).on("touchend.brush",Br):Or.on("mousemove.brush",bt).on("mouseup.brush",Br),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),Ir=+/^n/.test($e);xr=[H[1-Mr]-br[0],Y[1-Ir]-br[1]],br[0]=H[Mr],br[1]=Y[Ir]}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 gt(){e.event.keyCode==32&&(hr||(pr=null,br[0]-=H[1],br[1]-=Y[1],hr=2),V())}function on(){e.event.keyCode==32&&hr==2&&(br[0]+=H[1],br[1]+=Y[1],hr=0,V())}function bt(){var Gr=e.mouse(ze),yt=!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)&&(De(Ze),yt=!0),ir&&cr(Gr,U,1)&&(Xe(Ze),yt=!0),yt&&(Re(Ze),Be({type:"brush",mode:hr?"move":"resize"}))}function cr(Gr,yt,$t){var mn=Dv(yt),Un=mn[0],ia=mn[1],ma=br[$t],oa=$t?Y:H,Ta=oa[1]-oa[0],Xn,Aa;if(hr&&(Un-=ma,ia-=Ta+ma),Xn=($t?ce:ne)?Math.max(Un,Math.min(ia,Gr[$t])):Gr[$t],hr?Aa=(Xn+=ma)+Ta:(pr&&(ma=Math.max(Un,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 Br(){bt(),Ze.style("pointer-events","all").selectAll(".resize").style("display",Te.empty()?"none":null),e.select("body").style("cursor",null),Or.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 Te.x=function(ze){return arguments.length?(N=ze,_e=l2[!N<<1|!U],Te):N},Te.y=function(ze){return arguments.length?(U=ze,_e=l2[!N<<1|!U],Te):U},Te.clamp=function(ze){return arguments.length?(N&&U?(ne=!!ze[0],ce=!!ze[1]):N?ne=!!ze:U&&(ce=!!ze),Te):N&&U?[ne,ce]:N?ne:U?ce:null},Te.extent=function(ze){var Ne,Be,Ze,$e,He;return arguments.length?(N&&(Ne=ze[0],Be=ze[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=ze[0],$e=ze[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])),Te):(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])},Te.clear=function(){return Te.empty()||(H=[0,0],Y=[0,0],W=le=null),Te},Te.empty=function(){return!!N&&H[0]==H[1]||!!U&&Y[0]==Y[1]},e.rebind(Te,C,"on")};var OY={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},l2=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=mt(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",UY,N)};function UY(C){var N=n.createRange();return N.selectNode(n.body),N.createContextualFragment(C.responseText)}e.xml=mt(function(C){return C.responseXML}),typeof Yv=="object"&&Yv.exports?Yv.exports=e:this.d3=e}).apply(self)});var u2=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,he,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)),he(ve,1),oe(ve),ve},Se.round=function(ve){var de=Se(ve),be=Se.ceil(ve);return ve-de<be-ve?de:be},Se.offset=function(ve,de){return he(ve=new Date(+ve),de==null?1:Math.floor(de)),ve},Se.range=function(ve,de,be){var Ae=[],Pe;if(ve=Se.ceil(ve),be=be==null?1:Math.floor(be),!(ve<de)||!(be>0))return Ae;do Ae.push(Pe=new Date(+ve)),he(ve,be),oe(ve);while(Pe<ve&&ve<de);return Ae},Se.filter=function(ve){return n(function(de){if(de>=de)for(;oe(de),!ve(de);)de.setTime(de-1)},function(de,be){if(de>=de)if(be<0)for(;++be<=0;)for(;he(de,-1),!ve(de););else for(;--be>=0;)for(;he(de,1),!ve(de););})},pe&&(Se.count=function(ve,de){return r.setTime(+ve),t.setTime(+de),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(de){return me(de)%ve===0}:function(de){return Se.count(0,de)%ve===0}):Se}),Se}var a=n(function(){},function(oe,he){oe.setTime(+oe+he)},function(oe,he){return he-oe});a.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?n(function(he){he.setTime(Math.floor(he/oe)*oe)},function(he,pe){he.setTime(+he+pe*oe)},function(he,pe){return(pe-he)/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,he){oe.setTime(+oe+he*i)},function(oe,he){return(he-oe)/i},function(oe){return oe.getUTCSeconds()}),g=c.range,b=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*i)},function(oe,he){oe.setTime(+oe+he*l)},function(oe,he){return(he-oe)/l},function(oe){return oe.getMinutes()}),d=b.range,_=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*i-oe.getMinutes()*l)},function(oe,he){oe.setTime(+oe+he*u)},function(oe,he){return(he-oe)/u},function(oe){return oe.getHours()}),T=_.range,m=n(function(oe){oe.setHours(0,0,0,0)},function(oe,he){oe.setDate(oe.getDate()+he)},function(oe,he){return(he-oe-(he.getTimezoneOffset()-oe.getTimezoneOffset())*l)/s},function(oe){return oe.getDate()-1}),k=m.range;function S(oe){return n(function(he){he.setDate(he.getDate()-(he.getDay()+7-oe)%7),he.setHours(0,0,0,0)},function(he,pe){he.setDate(he.getDate()+pe*7)},function(he,pe){return(pe-he-(pe.getTimezoneOffset()-he.getTimezoneOffset())*l)/f})}var x=S(0),M=S(1),h=S(2),w=S(3),y=S(4),v=S(5),A=S(6),p=x.range,R=M.range,E=h.range,D=w.range,I=y.range,F=v.range,P=A.range,L=n(function(oe){oe.setDate(1),oe.setHours(0,0,0,0)},function(oe,he){oe.setMonth(oe.getMonth()+he)},function(oe,he){return he.getMonth()-oe.getMonth()+(he.getFullYear()-oe.getFullYear())*12},function(oe){return oe.getMonth()}),z=L.range,O=n(function(oe){oe.setMonth(0,1),oe.setHours(0,0,0,0)},function(oe,he){oe.setFullYear(oe.getFullYear()+he)},function(oe,he){return he.getFullYear()-oe.getFullYear()},function(oe){return oe.getFullYear()});O.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(he){he.setFullYear(Math.floor(he.getFullYear()/oe)*oe),he.setMonth(0,1),he.setHours(0,0,0,0)},function(he,pe){he.setFullYear(he.getFullYear()+pe*oe)})};var B=O.range,V=n(function(oe){oe.setUTCSeconds(0,0)},function(oe,he){oe.setTime(+oe+he*l)},function(oe,he){return(he-oe)/l},function(oe){return oe.getUTCMinutes()}),J=V.range,Q=n(function(oe){oe.setUTCMinutes(0,0,0)},function(oe,he){oe.setTime(+oe+he*u)},function(oe,he){return(he-oe)/u},function(oe){return oe.getUTCHours()}),G=Q.range,q=n(function(oe){oe.setUTCHours(0,0,0,0)},function(oe,he){oe.setUTCDate(oe.getUTCDate()+he)},function(oe,he){return(he-oe)/s},function(oe){return oe.getUTCDate()-1}),Z=q.range;function re(oe){return n(function(he){he.setUTCDate(he.getUTCDate()-(he.getUTCDay()+7-oe)%7),he.setUTCHours(0,0,0,0)},function(he,pe){he.setUTCDate(he.getUTCDate()+pe*7)},function(he,pe){return(pe-he)/f})}var $=re(0),ie=re(1),j=re(2),te=re(3),ue=re(4),ee=re(5),ae=re(6),fe=$.range,we=ie.range,Me=j.range,ke=te.range,ge=ue.range,Ee=ee.range,Le=ae.range,se=n(function(oe){oe.setUTCDate(1),oe.setUTCHours(0,0,0,0)},function(oe,he){oe.setUTCMonth(oe.getUTCMonth()+he)},function(oe,he){return he.getUTCMonth()-oe.getUTCMonth()+(he.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,he){oe.setUTCFullYear(oe.getUTCFullYear()+he)},function(oe,he){return he.getUTCFullYear()-oe.getUTCFullYear()},function(oe){return oe.getUTCFullYear()});K.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(he){he.setUTCFullYear(Math.floor(he.getUTCFullYear()/oe)*oe),he.setUTCMonth(0,1),he.setUTCHours(0,0,0,0)},function(he,pe){he.setUTCFullYear(he.getUTCFullYear()+pe*oe)})};var ye=K.range;e.timeDay=m,e.timeDays=k,e.timeFriday=v,e.timeFridays=F,e.timeHour=_,e.timeHours=T,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=b,e.timeMinutes=d,e.timeMonday=M,e.timeMondays=R,e.timeMonth=L,e.timeMonths=z,e.timeSaturday=A,e.timeSaturdays=P,e.timeSecond=c,e.timeSeconds=g,e.timeSunday=x,e.timeSundays=p,e.timeThursday=y,e.timeThursdays=I,e.timeTuesday=h,e.timeTuesdays=E,e.timeWednesday=w,e.timeWednesdays=D,e.timeWeek=x,e.timeWeeks=p,e.timeYear=O,e.timeYears=B,e.utcDay=q,e.utcDays=Z,e.utcFriday=ee,e.utcFridays=Ee,e.utcHour=Q,e.utcHours=G,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=V,e.utcMinutes=J,e.utcMonday=ie,e.utcMondays=we,e.utcMonth=se,e.utcMonths=X,e.utcSaturday=ae,e.utcSaturdays=Le,e.utcSecond=c,e.utcSeconds=g,e.utcSunday=$,e.utcSundays=fe,e.utcThursday=ue,e.utcThursdays=ge,e.utcTuesday=j,e.utcTuesdays=Me,e.utcWednesday=te,e.utcWednesdays=ke,e.utcWeek=$,e.utcWeeks=fe,e.utcYear=K,e.utcYears=ye,Object.defineProperty(e,"__esModule",{value:!0})})});var Mu=xe((Wv,a7)=>{(function(e,r){typeof Wv=="object"&&typeof a7!="undefined"?r(Wv,u2()):(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 Fe=new Date(-1,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L);return Fe.setFullYear(Ce.y),Fe}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 Fe=new Date(Date.UTC(-1,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L));return Fe.setUTCFullYear(Ce.y),Fe}return new Date(Date.UTC(Ce.y,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L))}function a(Ce,Fe,Ke){return{y:Ce,m:Fe,d:Ke,H:0,M:0,S:0,L:0}}function o(Ce){var Fe=Ce.dateTime,Ke=Ce.date,je=Ce.time,wr=Ce.periods,Jr=Ce.days,Tr=Ce.shortDays,Pr=Ce.months,rt=Ce.shortMonths,Ar=g(wr),Ur=b(wr),ut=g(Jr),zr=b(Jr),tt=g(Tr),pn=b(Tr),it=g(Pr),Xr=b(Pr),Vt=g(rt),$r=b(rt),Kr={a:ei,A:Oa,b:ht,B:Eo,c:null,d:L,e:L,f:J,g:ee,G:fe,H:z,I:O,j:B,L:V,m:Q,M:G,p:rn,q:Ba,Q:qe,s:Ve,S:q,u:Z,U:re,V:ie,w:j,W:te,x:null,X:null,y:ue,Y:ae,Z:we,"%":Ye},Gt={a:Qi,A:ts,b:wv,B:Mv,c:null,d:Me,e:Me,f:se,g:be,G:Pe,H:ke,I:ge,j:Ee,L:Le,m:X,M:K,p:Qf,q:jf,Q:qe,s:Ve,S:ye,u:oe,U:he,V:me,w:Se,W:ve,x:null,X:null,y:de,Y:Ae,Z:Ie,"%":Ye},Yt={a:ot,A:Xt,b:en,B:wt,c:Pn,d:y,e:y,f:D,g:x,G:S,H:A,I:A,j:v,L:E,m:w,M:p,p:Rr,q:h,Q:F,s:P,S:R,u:_,U:T,V:m,w:d,W:k,x:Na,X:qa,y:x,Y:S,Z:M,"%":I};Kr.x=jt(Ke,Kr),Kr.X=jt(je,Kr),Kr.c=jt(Fe,Kr),Gt.x=jt(Ke,Gt),Gt.X=jt(je,Gt),Gt.c=jt(Fe,Gt);function jt(Sr,kr){return function(mt){var dr=[],aa=-1,Lt=0,On=Sr.length,Bn,ri,ns;for(mt instanceof Date||(mt=new Date(+mt));++aa<On;)Sr.charCodeAt(aa)===37&&(dr.push(Sr.slice(Lt,aa)),(ri=i[Bn=Sr.charAt(++aa)])!=null?Bn=Sr.charAt(++aa):ri=Bn==="e"?" ":"0",(ns=kr[Bn])&&(Bn=ns(mt,ri)),dr.push(Bn),Lt=aa+1);return dr.push(Sr.slice(Lt,aa)),dr.join("")}}function sr(Sr,kr){return function(mt){var dr=a(1900,void 0,1),aa=Vr(dr,Sr,mt+="",0),Lt,On;if(aa!=mt.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?(Lt=n(a(dr.y,0,1)),On=Lt.getUTCDay(),Lt=On>4||On===0?r.utcMonday.ceil(Lt):r.utcMonday(Lt),Lt=r.utcDay.offset(Lt,(dr.V-1)*7),dr.y=Lt.getUTCFullYear(),dr.m=Lt.getUTCMonth(),dr.d=Lt.getUTCDate()+(dr.w+6)%7):(Lt=t(a(dr.y,0,1)),On=Lt.getDay(),Lt=On>4||On===0?r.timeMonday.ceil(Lt):r.timeMonday(Lt),Lt=r.timeDay.offset(Lt,(dr.V-1)*7),dr.y=Lt.getFullYear(),dr.m=Lt.getMonth(),dr.d=Lt.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),On="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-(On+5)%7:dr.w+dr.U*7-(On+6)%7);return"Z"in dr?(dr.H+=dr.Z/100|0,dr.M+=dr.Z%100,n(dr)):t(dr)}}function Vr(Sr,kr,mt,dr){for(var aa=0,Lt=kr.length,On=mt.length,Bn,ri;aa<Lt;){if(dr>=On)return-1;if(Bn=kr.charCodeAt(aa++),Bn===37){if(Bn=kr.charAt(aa++),ri=Yt[Bn in i?kr.charAt(aa++):Bn],!ri||(dr=ri(Sr,mt,dr))<0)return-1}else if(Bn!=mt.charCodeAt(dr++))return-1}return dr}function Rr(Sr,kr,mt){var dr=Ar.exec(kr.slice(mt));return dr?(Sr.p=Ur[dr[0].toLowerCase()],mt+dr[0].length):-1}function ot(Sr,kr,mt){var dr=tt.exec(kr.slice(mt));return dr?(Sr.w=pn[dr[0].toLowerCase()],mt+dr[0].length):-1}function Xt(Sr,kr,mt){var dr=ut.exec(kr.slice(mt));return dr?(Sr.w=zr[dr[0].toLowerCase()],mt+dr[0].length):-1}function en(Sr,kr,mt){var dr=Vt.exec(kr.slice(mt));return dr?(Sr.m=$r[dr[0].toLowerCase()],mt+dr[0].length):-1}function wt(Sr,kr,mt){var dr=it.exec(kr.slice(mt));return dr?(Sr.m=Xr[dr[0].toLowerCase()],mt+dr[0].length):-1}function Pn(Sr,kr,mt){return Vr(Sr,Fe,kr,mt)}function Na(Sr,kr,mt){return Vr(Sr,Ke,kr,mt)}function qa(Sr,kr,mt){return Vr(Sr,je,kr,mt)}function ei(Sr){return Tr[Sr.getDay()]}function Oa(Sr){return Jr[Sr.getDay()]}function ht(Sr){return rt[Sr.getMonth()]}function Eo(Sr){return Pr[Sr.getMonth()]}function rn(Sr){return wr[+(Sr.getHours()>=12)]}function Ba(Sr){return 1+~~(Sr.getMonth()/3)}function Qi(Sr){return Tr[Sr.getUTCDay()]}function ts(Sr){return Jr[Sr.getUTCDay()]}function wv(Sr){return rt[Sr.getUTCMonth()]}function Mv(Sr){return Pr[Sr.getUTCMonth()]}function Qf(Sr){return wr[+(Sr.getUTCHours()>=12)]}function jf(Sr){return 1+~~(Sr.getUTCMonth()/3)}return{format:function(Sr){var kr=jt(Sr+="",Kr);return kr.toString=function(){return Sr},kr},parse:function(Sr){var kr=sr(Sr+="",!1);return kr.toString=function(){return Sr},kr},utcFormat:function(Sr){var kr=jt(Sr+="",Gt);return kr.toString=function(){return Sr},kr},utcParse:function(Sr){var kr=sr(Sr+="",!0);return kr.toString=function(){return Sr},kr}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(Ce,Fe,Ke){var je=Ce<0?"-":"",wr=(je?-Ce:Ce)+"",Jr=wr.length;return je+(Jr<Ke?new Array(Ke-Jr+1).join(Fe)+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 Fe={},Ke=-1,je=Ce.length;++Ke<je;)Fe[Ce[Ke].toLowerCase()]=Ke;return Fe}function d(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+1));return je?(Ce.w=+je[0],Ke+je[0].length):-1}function _(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+1));return je?(Ce.u=+je[0],Ke+je[0].length):-1}function T(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+2));return je?(Ce.U=+je[0],Ke+je[0].length):-1}function m(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+2));return je?(Ce.V=+je[0],Ke+je[0].length):-1}function k(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+2));return je?(Ce.W=+je[0],Ke+je[0].length):-1}function S(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+4));return je?(Ce.y=+je[0],Ke+je[0].length):-1}function x(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+2));return je?(Ce.y=+je[0]+(+je[0]>68?1900:2e3),Ke+je[0].length):-1}function M(Ce,Fe,Ke){var je=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Fe.slice(Ke,Ke+6));return je?(Ce.Z=je[1]?0:-(je[2]+(je[3]||"00")),Ke+je[0].length):-1}function h(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+1));return je?(Ce.q=je[0]*3-3,Ke+je[0].length):-1}function w(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+2));return je?(Ce.m=je[0]-1,Ke+je[0].length):-1}function y(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+2));return je?(Ce.d=+je[0],Ke+je[0].length):-1}function v(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+3));return je?(Ce.m=0,Ce.d=+je[0],Ke+je[0].length):-1}function A(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+2));return je?(Ce.H=+je[0],Ke+je[0].length):-1}function p(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+2));return je?(Ce.M=+je[0],Ke+je[0].length):-1}function R(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+2));return je?(Ce.S=+je[0],Ke+je[0].length):-1}function E(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+3));return je?(Ce.L=+je[0],Ke+je[0].length):-1}function D(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke,Ke+6));return je?(Ce.L=Math.floor(je[0]/1e3),Ke+je[0].length):-1}function I(Ce,Fe,Ke){var je=u.exec(Fe.slice(Ke,Ke+1));return je?Ke+je[0].length:-1}function F(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke));return je?(Ce.Q=+je[0],Ke+je[0].length):-1}function P(Ce,Fe,Ke){var je=l.exec(Fe.slice(Ke));return je?(Ce.s=+je[0],Ke+je[0].length):-1}function L(Ce,Fe){return f(Ce.getDate(),Fe,2)}function z(Ce,Fe){return f(Ce.getHours(),Fe,2)}function O(Ce,Fe){return f(Ce.getHours()%12||12,Fe,2)}function B(Ce,Fe){return f(1+r.timeDay.count(r.timeYear(Ce),Ce),Fe,3)}function V(Ce,Fe){return f(Ce.getMilliseconds(),Fe,3)}function J(Ce,Fe){return V(Ce,Fe)+"000"}function Q(Ce,Fe){return f(Ce.getMonth()+1,Fe,2)}function G(Ce,Fe){return f(Ce.getMinutes(),Fe,2)}function q(Ce,Fe){return f(Ce.getSeconds(),Fe,2)}function Z(Ce){var Fe=Ce.getDay();return Fe===0?7:Fe}function re(Ce,Fe){return f(r.timeSunday.count(r.timeYear(Ce)-1,Ce),Fe,2)}function $(Ce){var Fe=Ce.getDay();return Fe>=4||Fe===0?r.timeThursday(Ce):r.timeThursday.ceil(Ce)}function ie(Ce,Fe){return Ce=$(Ce),f(r.timeThursday.count(r.timeYear(Ce),Ce)+(r.timeYear(Ce).getDay()===4),Fe,2)}function j(Ce){return Ce.getDay()}function te(Ce,Fe){return f(r.timeMonday.count(r.timeYear(Ce)-1,Ce),Fe,2)}function ue(Ce,Fe){return f(Ce.getFullYear()%100,Fe,2)}function ee(Ce,Fe){return Ce=$(Ce),f(Ce.getFullYear()%100,Fe,2)}function ae(Ce,Fe){return f(Ce.getFullYear()%1e4,Fe,4)}function fe(Ce,Fe){var Ke=Ce.getDay();return Ce=Ke>=4||Ke===0?r.timeThursday(Ce):r.timeThursday.ceil(Ce),f(Ce.getFullYear()%1e4,Fe,4)}function we(Ce){var Fe=Ce.getTimezoneOffset();return(Fe>0?"-":(Fe*=-1,"+"))+f(Fe/60|0,"0",2)+f(Fe%60,"0",2)}function Me(Ce,Fe){return f(Ce.getUTCDate(),Fe,2)}function ke(Ce,Fe){return f(Ce.getUTCHours(),Fe,2)}function ge(Ce,Fe){return f(Ce.getUTCHours()%12||12,Fe,2)}function Ee(Ce,Fe){return f(1+r.utcDay.count(r.utcYear(Ce),Ce),Fe,3)}function Le(Ce,Fe){return f(Ce.getUTCMilliseconds(),Fe,3)}function se(Ce,Fe){return Le(Ce,Fe)+"000"}function X(Ce,Fe){return f(Ce.getUTCMonth()+1,Fe,2)}function K(Ce,Fe){return f(Ce.getUTCMinutes(),Fe,2)}function ye(Ce,Fe){return f(Ce.getUTCSeconds(),Fe,2)}function oe(Ce){var Fe=Ce.getUTCDay();return Fe===0?7:Fe}function he(Ce,Fe){return f(r.utcSunday.count(r.utcYear(Ce)-1,Ce),Fe,2)}function pe(Ce){var Fe=Ce.getUTCDay();return Fe>=4||Fe===0?r.utcThursday(Ce):r.utcThursday.ceil(Ce)}function me(Ce,Fe){return Ce=pe(Ce),f(r.utcThursday.count(r.utcYear(Ce),Ce)+(r.utcYear(Ce).getUTCDay()===4),Fe,2)}function Se(Ce){return Ce.getUTCDay()}function ve(Ce,Fe){return f(r.utcMonday.count(r.utcYear(Ce)-1,Ce),Fe,2)}function de(Ce,Fe){return f(Ce.getUTCFullYear()%100,Fe,2)}function be(Ce,Fe){return Ce=pe(Ce),f(Ce.getUTCFullYear()%100,Fe,2)}function Ae(Ce,Fe){return f(Ce.getUTCFullYear()%1e4,Fe,4)}function Pe(Ce,Fe){var Ke=Ce.getUTCDay();return Ce=Ke>=4||Ke===0?r.utcThursday(Ce):r.utcThursday.ceil(Ce),f(Ce.getUTCFullYear()%1e4,Fe,4)}function Ie(){return"+0000"}function Ye(){return"%"}function qe(Ce){return+Ce}function Ve(Ce){return Math.floor(+Ce/1e3)}var Oe;We({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function We(Ce){return Oe=o(Ce),e.timeFormat=Oe.format,e.timeParse=Oe.parse,e.utcFormat=Oe.utcFormat,e.utcParse=Oe.utcParse,Oe}var Ge="%Y-%m-%dT%H:%M:%S.%LZ";function tr(Ce){return Ce.toISOString()}var nr=Date.prototype.toISOString?tr:e.utcFormat(Ge);function er(Ce){var Fe=new Date(Ce);return isNaN(Fe)?null:Fe}var Qe=+new Date("2000-01-01T00:00:00.000Z")?er:e.utcParse(Ge);e.isoFormat=nr,e.isoParse=Qe,e.timeFormatDefaultLocale=We,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var f2=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,R=[],E=0,D=w[0],I=0;p>0&&D>0&&(I+D+1>A&&(D=Math.max(1,A-I)),R.push(v.substring(p-=D,p+D)),!((I+=D+1)>A));)D=w[E=(E+1)%w.length];return R.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],R=p-(f=Math.max(-8,Math.min(8,Math.floor(p/3)))*3)+1,E=A.length;return R===E?A:R>E?A+new Array(R-E+1).join("0"):R>0?A.slice(0,R)+"."+A.slice(R):"0."+new Array(1-R).join("0")+t(w,Math.max(0,y+R-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 d(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?d: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+"",R=w.numerals===void 0?d:o(_.call(w.numerals,String)),E=w.percent===void 0?"%":w.percent+"",D=w.minus===void 0?"-":w.minus+"",I=w.nan===void 0?"NaN":w.nan+"";function F(L){L=l(L);var z=L.fill,O=L.align,B=L.sign,V=L.symbol,J=L.zero,Q=L.width,G=L.comma,q=L.precision,Z=L.trim,re=L.type;re==="n"?(G=!0,re="g"):b[re]||(q===void 0&&(q=12),Z=!0,re="g"),(J||z==="0"&&O==="=")&&(J=!0,z="0",O="=");var $=V==="$"?v:V==="#"&&/[boxX]/.test(re)?"0"+re.toLowerCase():"",ie=V==="$"?A:/[%p]/.test(re)?E:"",j=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 ae=$,fe=ie,we,Me,ke;if(re==="c")fe=j(ee)+fe,ee="";else{ee=+ee;var ge=ee<0||1/ee<0;if(ee=isNaN(ee)?I:j(Math.abs(ee),q),Z&&(ee=s(ee)),ge&&+ee==0&&B!=="+"&&(ge=!1),ae=(ge?B==="("?B:D:B==="-"||B==="("?"":B)+ae,fe=(re==="s"?T[8+f/3]:"")+fe+(ge&&B==="("?")":""),te){for(we=-1,Me=ee.length;++we<Me;)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}}}G&&!J&&(ee=y(ee,1/0));var Ee=ae.length+ee.length+fe.length,Le=Ee<Q?new Array(Q-Ee+1).join(z):"";switch(G&&J&&(ee=y(Le+ee,Le.length?Q-fe.length:1/0),Le=""),O){case"<":ee=ae+ee+fe+Le;break;case"=":ee=ae+Le+ee+fe;break;case"^":ee=Le.slice(0,Ee=Le.length>>1)+ae+ee+fe+Le.slice(Ee);break;default:ee=Le+ae+ee+fe;break}return R(ee)}return ue.toString=function(){return L+""},ue}function P(L,z){var O=F((L=l(L),L.type="f",L)),B=Math.max(-8,Math.min(8,Math.floor(n(z)/3)))*3,V=Math.pow(10,-B),J=T[8+B/3];return function(Q){return O(V*Q)+J}}return{format:F,formatPrefix:P}}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 h(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=h,Object.defineProperty(e,"__esModule",{value:!0})}))});var l7=xe((Obe,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 ft=xe((Bbe,s7)=>{"use strict";var JY=l7();s7.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&JY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var In={};Ot(In,{ALMOST_EQUAL:()=>dX,BADNUM:()=>c2,EPOCHJD:()=>hX,FP_SAFE:()=>$Y,LOG_CLIP:()=>pX,MINUS_SIGN:()=>gX,ONEAVGMONTH:()=>aX,ONEAVGQUARTER:()=>rX,ONEAVGYEAR:()=>QY,ONEDAY:()=>lX,ONEHOUR:()=>sX,ONEMAXMONTH:()=>nX,ONEMAXQUARTER:()=>eX,ONEMAXYEAR:()=>KY,ONEMICROSEC:()=>vX,ONEMILLI:()=>cX,ONEMIN:()=>uX,ONEMINMONTH:()=>iX,ONEMINQUARTER:()=>tX,ONEMINYEAR:()=>jY,ONESEC:()=>fX,ONEWEEK:()=>oX});var c2,$Y,KY,QY,jY,eX,rX,tX,nX,aX,iX,oX,lX,sX,uX,fX,cX,vX,hX,dX,pX,gX,Mn=qt(()=>{"use strict";c2=void 0,$Y=Number.MAX_VALUE*1e-4,KY=316224e5,QY=315576e5,jY=31536e6,eX=79488e5,rX=78894e5,tX=76896e5,nX=26784e5,aX=26298e5,iX=24192e5,oX=6048e5,lX=864e5,sX=36e5,uX=6e4,fX=1e3,cX=1,vX=.001,hX=24405875e-1,dX=1-1e-6,pX=10,gX="\u2212"});var v2=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,d;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)],d=t[i.charCodeAt(s+3)],T[f++]=c<<2|g>>4,T[f++]=(g&15)<<4|b>>2,T[f++]=(b&3)<<6|d&63;return _};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})}))});var us=xe((Ube,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(ki=>{"use strict";var yX=v2().decode,mX=us(),h2=Array.isArray,bX=ArrayBuffer,xX=DataView;function c7(e){return bX.isView(e)&&!(e instanceof xX)}ki.isTypedArray=c7;function $v(e){return h2(e)||c7(e)}ki.isArrayOrTypedArray=$v;function _X(e){return!$v(e[0])}ki.isArray1D=_X;ki.ensureArray=function(e,r){return h2(e)||(e=[]),e.length=r,e};var zn={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};zn.uint8c=zn.u1c;zn.uint8=zn.u1;zn.int8=zn.i1;zn.uint16=zn.u2;zn.int16=zn.i2;zn.uint32=zn.u4;zn.int32=zn.i4;zn.float32=zn.f4;zn.float64=zn.f8;function d2(e){return e.constructor===ArrayBuffer}ki.isArrayBuffer=d2;ki.decodeTypedArraySpec=function(e){var r=[],t=wX(e),n=t.dtype,a=zn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;d2(i)||(i=yX(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 d=+l[2],_=0;_<d;_++)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};ki.isTypedArraySpec=function(e){return mX(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||d2(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function wX(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}ki.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),h2(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};ki.maxRowLength=function(e){return v7(e,Math.max,0)};ki.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((Vbe,y7)=>{"use strict";var h7=ft(),g2=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"?kX(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"&&!g2(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 MX=/(^|\.)args\[/;function p2(e,r){return e===void 0||e===null&&!r.match(MX)}function p7(e,r,t){return function(n){var a=e,o="",i=[[e,o]],l=p2(n,t),u,s;for(s=0;s<r.length-1;s++){if(u=r[s],typeof u=="number"&&!g2(a))throw"array index but container is not an array";if(u===-1){if(l=!AX(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=TX(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 TX(e,r){var t=r;return h7(r)?t="["+r+"]":e&&(t="."+r),e+t}function AX(e,r,t,n){var a=g2(t),o=!0,i=t,l=n.replace("-1",0),u=a?!1:p2(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=p2(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 kX(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var _7=xe((Gbe,x7)=>{"use strict";var Tu=Kv(),SX=/^\w*$/,CX=0,m7=1,Qv=2,b7=3,fs=4;x7.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=Tu(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=SX.test(a),c={set:function(g,b){var d=b===null?fs:CX;if(!i){if(!l||d===fs)return;i=[],l.set(i)}var _=s[g];if(_===void 0){if(d===fs)return;d=d|b7,_=i.length,s[g]=_}else b!==(f?i[_][a]:Tu(i[_],a).get())&&(d=d|Qv);var T=i[_]=i[_]||{};return T[n]=g,f?T[a]=b:Tu(T,a).set(b),b!==null&&(d=d&~fs),u[_]=u[_]|d,c},get:function(g){if(i){var b=s[g];if(b!==void 0)return f?i[b][a]:Tu(i[b],a).get()}},rename:function(g,b){var d=s[g];return d===void 0||(u[d]=u[d]|m7,s[b]=d,delete s[g],i[d][n]=b),c},remove:function(g){var b=s[g];if(b===void 0)return c;var d=i[b];if(Object.keys(d).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 Tu(d,a).set(null),u[b]=u[b]|Qv|fs;return c},constructUpdate:function(){for(var g,b,d={},_=Object.keys(u),T=0;T<_.length;T++)b=_[T],g=t+"["+b+"]",i[b]?(u[b]&m7&&(d[g+"."+n]=i[b][n]),u[b]&Qv&&(f?d[g+"."+a]=u[b]&fs?null:i[b][a]:d[g+"."+a]=u[b]&fs?null:Tu(i[b],a).get())):d[g]=null;return d}};return c}});var M7=xe((Ybe,w7)=>{"use strict";var EX=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,LX=/^[^\.\[\]]+$/;w7.exports=function(e,r){for(;r;){var t=e.match(EX);if(t)e=t[1];else if(e.match(LX))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((Xbe,T7)=>{"use strict";var RX=ft();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 RX(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var S7=xe((Wbe,k7)=>{"use strict";var A7=ba().isArrayOrTypedArray,c0=us();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)&&c0(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]&&c0(a[l])&&c0(o[l])&&e(o[l],a[l])}else c0(a)&&c0(o)&&(e(o,a),Object.keys(o).length||delete r[n])}}});var Au={};Ot(Au,{mod:()=>DX,modHalf:()=>PX});function DX(e,r){let t=e%r;return t<0?t+r:t}function PX(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var ku=qt(()=>{"use strict"});var Rt=xe(d0=>{"use strict";var C7=us(),v0=Array.isArray;function IX(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}d0.extendFlat=function(...e){return h0(e,!1,!1,!1)};d0.extendDeep=function(...e){return h0(e,!0,!1,!1)};d0.extendDeepAll=function(...e){return h0(e,!0,!0,!1)};d0.extendDeepNoArrays=function(...e){return h0(e,!0,!1,!0)};function h0(e,r,t,n){var a=e[0],o=e.length,i,l,u,s,f,c,g;if(o===2&&v0(a)&&v0(e[1])&&a.length===0){if(g=IX(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&&v0(s)?a[l]=s:r&&s&&(C7(s)||(f=v0(s)))?(f?(f=!1,c=u&&v0(u)?u:[]):c=u&&C7(u)?u:{},a[l]=h0([c,s],r,t,n)):(typeof s!="undefined"||t)&&(a[l]=s)}return a}});var Wn=xe((Jbe,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 p0={};Ot(p0,{HOVERARROWSIZE:()=>FX,HOVERFONT:()=>OX,HOVERFONTSIZE:()=>qX,HOVERID:()=>UX,HOVERMINTIME:()=>BX,HOVERTEXTPAD:()=>NX,YANGLE:()=>zX});var zX,FX,NX,qX,OX,BX,UX,g0=qt(()=>{"use strict";zX=60,FX=6,NX=3,qX=13,OX="Arial, sans-serif",BX=50,UX="-hover"});var cs=xe(($be,D7)=>{"use strict";var L7=(g0(),or(p0)),R7=Wn(),y2=R7({editType:"none"});y2.family.dflt=L7.HOVERFONT;y2.size.dflt=L7.HOVERFONTSIZE;D7.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:y2,grouptitlefont:R7({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((Kbe,P7)=>{"use strict";var HX=Wn(),y0=cs().hoverlabel,m0=Rt().extendFlat;P7.exports={hoverlabel:{bgcolor:m0({},y0.bgcolor,{arrayOk:!0}),bordercolor:m0({},y0.bordercolor,{arrayOk:!0}),font:HX({arrayOk:!0,editType:"none"}),align:m0({},y0.align,{arrayOk:!0}),namelength:m0({},y0.namelength,{arrayOk:!0}),showarrow:m0({},y0.showarrow),editType:"none"}}});var Zn=xe((Qbe,I7)=>{"use strict";var VX=Wn(),GX=eh();I7.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:VX({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:GX.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var k8=xe((ixe,A8)=>{var uy=Object.defineProperty,YX=Object.getOwnPropertyDescriptor,XX=Object.getOwnPropertyNames,WX=Object.prototype.hasOwnProperty,ZX=(e,r)=>{for(var t in r)uy(e,t,{get:r[t],enumerable:!0})},JX=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of XX(r))!WX.call(e,a)&&a!==t&&uy(e,a,{get:()=>r[a],enumerable:!(n=YX(r,a))||n.enumerable});return e},$X=e=>JX(uy({},"__esModule",{value:!0}),e),G7={};ZX(G7,{a98:()=>U$,average:()=>XW,averageAngle:()=>no,averageNumber:()=>lw,blend:()=>YJ,blerp:()=>V2,clampChroma:()=>c$,clampGamut:()=>Fy,clampRgb:()=>f$,colorsNamed:()=>X7,convertA98ToXyz65:()=>G2,convertCubehelixToRgb:()=>iw,convertDlchToLab65:()=>uh,convertHsiToRgb:()=>pw,convertHslToRgb:()=>mw,convertHsvToRgb:()=>py,convertHwbToRgb:()=>ww,convertItpToXyz65:()=>X2,convertJabToJch:()=>Z2,convertJabToRgb:()=>_y,convertJabToXyz65:()=>by,convertJchToJab:()=>J2,convertLab65ToDlch:()=>fh,convertLab65ToRgb:()=>k0,convertLab65ToXyz65:()=>vy,convertLabToLch:()=>Ro,convertLabToRgb:()=>My,convertLabToXyz50:()=>xh,convertLchToLab:()=>Do,convertLchuvToLuv:()=>ky,convertLrgbToOklab:()=>Sy,convertLrgbToRgb:()=>ms,convertLuvToLchuv:()=>Ay,convertLuvToXyz50:()=>vh,convertOkhslToOklab:()=>Q2,convertOkhsvToOklab:()=>ey,convertOklabToLrgb:()=>Iu,convertOklabToOkhsl:()=>K2,convertOklabToOkhsv:()=>j2,convertOklabToRgb:()=>E0,convertP3ToXyz65:()=>ry,convertProphotoToXyz50:()=>ay,convertRec2020ToXyz65:()=>oy,convertRgbToCubehelix:()=>aw,convertRgbToHsi:()=>gw,convertRgbToHsl:()=>bw,convertRgbToHsv:()=>gy,convertRgbToHwb:()=>Mw,convertRgbToJab:()=>xy,convertRgbToLab:()=>Ty,convertRgbToLab65:()=>S0,convertRgbToLrgb:()=>ys,convertRgbToOklab:()=>C0,convertRgbToXyb:()=>Kw,convertRgbToXyz50:()=>Pu,convertRgbToXyz65:()=>al,convertRgbToYiq:()=>a8,convertXybToRgb:()=>Qw,convertXyz50ToLab:()=>_h,convertXyz50ToLuv:()=>ch,convertXyz50ToProphoto:()=>ny,convertXyz50ToRgb:()=>Du,convertXyz50ToXyz65:()=>t8,convertXyz65ToA98:()=>Y2,convertXyz65ToItp:()=>W2,convertXyz65ToJab:()=>my,convertXyz65ToLab65:()=>hy,convertXyz65ToP3:()=>ty,convertXyz65ToRec2020:()=>iy,convertXyz65ToRgb:()=>il,convertXyz65ToXyz50:()=>r8,convertYiqToRgb:()=>i8,converter:()=>Dt,cubehelix:()=>H$,differenceCie76:()=>OW,differenceCie94:()=>BW,differenceCiede2000:()=>UW,differenceCmc:()=>HW,differenceEuclidean:()=>Ru,differenceHueChroma:()=>A0,differenceHueNaive:()=>ow,differenceHueSaturation:()=>T0,differenceHyab:()=>VW,differenceItp:()=>YW,differenceKotsarenkoRamos:()=>GW,displayable:()=>zy,dlab:()=>V$,dlch:()=>G$,easingGamma:()=>x8,easingInOutSine:()=>O$,easingMidpoint:()=>h8,easingSmootherstep:()=>N$,easingSmoothstep:()=>I$,easingSmoothstepInverse:()=>z$,filterBrightness:()=>x$,filterContrast:()=>_$,filterDeficiencyDeuter:()=>D$,filterDeficiencyProt:()=>R$,filterDeficiencyTrit:()=>P$,filterGrayscale:()=>T$,filterHueRotate:()=>k$,filterInvert:()=>A$,filterSaturate:()=>M$,filterSepia:()=>w$,fixupAlpha:()=>An,fixupHueDecreasing:()=>IW,fixupHueIncreasing:()=>PW,fixupHueLonger:()=>DW,fixupHueShorter:()=>to,formatCss:()=>qJ,formatHex:()=>OJ,formatHex8:()=>BJ,formatHsl:()=>HJ,formatRgb:()=>UJ,getMode:()=>la,hsi:()=>Y$,hsl:()=>X$,hsv:()=>W$,hwb:()=>Z$,inGamut:()=>Th,interpolate:()=>e$,interpolateWith:()=>p8,interpolateWithPremultipliedAlpha:()=>r$,interpolatorLinear:()=>_r,interpolatorPiecewise:()=>tw,interpolatorSplineBasis:()=>y8,interpolatorSplineBasisClosed:()=>m8,interpolatorSplineMonotone:()=>a$,interpolatorSplineMonotone2:()=>i$,interpolatorSplineMonotoneClosed:()=>o$,interpolatorSplineNatural:()=>t$,interpolatorSplineNaturalClosed:()=>n$,itp:()=>J$,jab:()=>$$,jch:()=>K$,lab:()=>Q$,lab65:()=>j$,lch:()=>eK,lch65:()=>rK,lchuv:()=>tK,lerp:()=>hs,lrgb:()=>nK,luv:()=>aK,mapAlphaDivide:()=>v8,mapAlphaMultiply:()=>c8,mapTransferGamma:()=>$J,mapTransferLinear:()=>Dy,mapper:()=>L0,modeA98:()=>nw,modeCubehelix:()=>sw,modeDlab:()=>hw,modeDlch:()=>dw,modeHsi:()=>yw,modeHsl:()=>dy,modeHsv:()=>yy,modeHwb:()=>Aw,modeItp:()=>Cw,modeJab:()=>Ew,modeJch:()=>Lw,modeLab:()=>wh,modeLab65:()=>Dw,modeLch:()=>Mh,modeLch65:()=>Iw,modeLchuv:()=>Nw,modeLrgb:()=>qw,modeLuv:()=>Ow,modeOkhsl:()=>Uw,modeOkhsv:()=>Hw,modeOklab:()=>Gw,modeOklch:()=>Xw,modeP3:()=>Ww,modeProphoto:()=>Zw,modeRec2020:()=>Jw,modeRgb:()=>gs,modeXyb:()=>jw,modeXyz50:()=>e8,modeXyz65:()=>n8,modeYiq:()=>o8,nearest:()=>d$,okhsl:()=>iK,okhsv:()=>oK,oklab:()=>lK,oklch:()=>sK,p3:()=>uK,parse:()=>j7,parseHex:()=>Z7,parseHsl:()=>_w,parseHslLegacy:()=>xw,parseHwb:()=>Tw,parseLab:()=>Rw,parseLch:()=>Pw,parseNamed:()=>W7,parseOklab:()=>Vw,parseOklch:()=>Yw,parseRgb:()=>ew,parseRgbLegacy:()=>J7,parseTransparent:()=>rw,prophoto:()=>fK,random:()=>JJ,rec2020:()=>cK,removeParser:()=>fW,rgb:()=>vK,round:()=>l8,samples:()=>u$,serializeHex:()=>Ry,serializeHex8:()=>s8,serializeHsl:()=>f8,serializeRgb:()=>u8,toGamut:()=>v$,trilerp:()=>_W,unlerp:()=>xW,useMode:()=>Tt,useParser:()=>K7,wcagContrast:()=>B$,wcagLuminance:()=>sy,xyb:()=>hK,xyz50:()=>dK,xyz65:()=>pK,yiq:()=>gK});A8.exports=$X(G7);var KX=(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=KX,QX={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=QX,jX=e=>Y7(X7[e.toLowerCase()],6),W7=jX,eW=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,rW=e=>{let r;return(r=e.match(eW))?Y7(parseInt(r[1],16),r[1].length):void 0},Z7=rW,ka="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",jbe=`(?:${ka}|none)`,_0=`${ka}%`,exe=`(?:${ka}%|none)`,fy=`(?:${ka}%|${ka})`,tW=`(?:${ka}%|${ka}|none)`,nW=`(?:${ka}(deg|grad|rad|turn)|${ka})`,rxe=`(?:${ka}(deg|grad|rad|turn)|${ka}|none)`,Eu="\\s*,\\s*",txe=new RegExp("^"+tW+"$"),aW=new RegExp(`^rgba?\\(\\s*${ka}${Eu}${ka}${Eu}${ka}\\s*(?:,\\s*${fy}\\s*)?\\)$`),iW=new RegExp(`^rgba?\\(\\s*${_0}${Eu}${_0}${Eu}${_0}\\s*(?:,\\s*${fy}\\s*)?\\)$`),oW=e=>{let r={mode:"rgb"},t;if(t=e.match(aW))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(iW))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=oW,lW=(e,r)=>e===void 0?void 0:typeof e!="object"?j7(e):e.mode!==void 0?e:r?Nt(Mt({},e),{mode:r}):void 0,Si=lW,sW=(e="rgb")=>r=>(r=Si(r,e))!==void 0?r.mode===e?r:ro[r.mode][e]?ro[r.mode][e](r):e==="rgb"?ro[r.mode].rgb(r):ro.rgb[e](ro[r.mode].rgb(r)):void 0,Dt=sW,ro={},$7={},Lu=[],cy={},uW=e=>e,Tt=e=>(ro[e.mode]=Mt(Mt({},ro[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{ro[r]||(ro[r]={}),ro[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=uW)}),$7[e.mode]=e,(e.parse||[]).forEach(r=>{K7(r,e.mode)}),Dt(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");cy[e]=r}else typeof e=="function"&&Lu.indexOf(e)<0&&Lu.push(e)},fW=e=>{if(typeof e=="string")delete cy[e];else if(typeof e=="function"){let r=Lu.indexOf(e);r>0&&Lu.splice(r,1)}},U2=/[^\x00-\x7F]|[a-zA-Z_]/,cW=/[^\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 H2(e){if(Wr>=e.length)return!1;let r=e[Wr];if(U2.test(r))return!0;if(r==="-"){if(e.length-Wr<2)return!1;let t=e[Wr+1];return!!(t==="-"||U2.test(t))}return!1}var vW={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function b0(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))),H2(e)){let t=ih(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:yr.Hue,value:r*vW[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&&cW.test(e[Wr]);)r+=e[Wr++];return r}function hW(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 dW(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(b0(r));continue}return}if(n==="-"){if(Wr--,rh(r)){t.push(b0(r));continue}if(H2(r)){t.push({type:yr.Ident,value:ih(r)});continue}return}if(n==="."){if(Wr--,rh(r)){t.push(b0(r));continue}return}if(n==="/"){for(;Wr<r.length&&(r[Wr]===`
`||r[Wr]===" "||r[Wr]===" ");)Wr++;let a;if(rh(r)&&(a=b0(r),a.type!==yr.Hue)){t.push({type:yr.Alpha,value:a});continue}if(H2(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(b0(r));continue}if(U2.test(n)){Wr--,t.push(hW(r));continue}return}return t}function pW(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=cy[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 gW(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 yW=e=>{if(typeof e!="string")return;let r=dW(e),t=r?gW(r,!0):void 0,n,a=0,o=Lu.length;for(;a<o;)if((n=Lu[a++](e,t))!==void 0)return n;return r?pW(r):void 0},j7=yW;function mW(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=mW,bW=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,rw=bW,hs=(e,r,t)=>e+t*(r-e),xW=(e,r,t)=>(t-e)/(r-e),V2=(e,r,t,n,a,o)=>hs(hs(e,r,a),hs(t,n,a),o),_W=(e,r,t,n,a,o,i,l,u,s,f)=>hs(V2(e,r,t,n,u,s),V2(a,o,i,l,u,s),f),wW=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=wW(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(hs),An=e=>{let r=!1,t=e.map(n=>n!==void 0?(r=!0,n):1);return r?t:e},MW={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:An}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},gs=MW,m2=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),TW=e=>{let r=m2(e.r),t=m2(e.g),n=m2(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},G2=TW,b2=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),AW=({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:b2(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:b2(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:b2(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return n!==void 0&&(a.alpha=n),a},Y2=AW,x2=(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)},kW=({r:e,g:r,b:t,alpha:n})=>{let a={mode:"lrgb",r:x2(e),g:x2(r),b:x2(t)};return n!==void 0&&(a.alpha=n),a},ys=kW,SW=e=>{let{r,g:t,b:n,alpha:a}=ys(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=SW,_2=(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},CW=({r:e,g:r,b:t,alpha:n},a="rgb")=>{let o={mode:a,r:_2(e),g:_2(r),b:_2(t)};return n!==void 0&&(o.alpha=n),o},ms=CW,EW=({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=ms({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=EW,LW=Nt(Mt({},gs),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>Y2(al(e)),xyz65:Y2},toMode:{rgb:e=>il(G2(e)),xyz65:G2}}),nw=LW,RW=e=>(e=e%360)<0?e+360:e,Jn=RW,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),[]),to=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)),PW=e=>dh(e,r=>r>=0?r:r+360),IW=e=>dh(e,r=>r<=0?r:r-360),Vn=[-.14861,1.78277,-.29227,-.90649,1.97294,0],zW=Math.PI/180,FW=180/Math.PI,z7=Vn[3]*Vn[4],F7=Vn[1]*Vn[4],N7=Vn[1]*Vn[2]-Vn[0]*Vn[3],NW=({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*z7-r*F7)/(N7+z7-F7),o=t-a,i=(Vn[4]*(r-a)-Vn[2]*o)/Vn[3],l={mode:"cubehelix",l:a,s:a===0||a===1?void 0:Math.sqrt(o*o+i*i)/(Vn[4]*a*(1-a))};return l.s&&(l.h=Math.atan2(i,o)*FW-120),n!==void 0&&(l.alpha=n),l},aw=NW,qW=({h:e,s:r,l:t,alpha:n})=>{let a={mode:"rgb"};e=(e===void 0?0:e+120)*zW,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*(Vn[0]*i+Vn[1]*l),a.g=t+o*(Vn[2]*i+Vn[3]*l),a.b=t+o*(Vn[4]*i+Vn[5]*l),n!==void 0&&(a.alpha=n),a},iw=qW,T0=(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},A0=(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},Ru=(e="rgb",r=[1,1,1,0])=>{let t=la(e),n=t.channels,a=t.difference,o=Dt(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))}},OW=()=>Ru("lab65"),BW=(e=1,r=.045,t=.015)=>{let n=Dt("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,d=l.b,_=Math.sqrt(b*b+d*d),T=Math.pow(u-g,2),m=Math.pow(c-_,2),k=Math.pow(s-b,2)+Math.pow(f-d,2)-m;return Math.sqrt(T/Math.pow(e,2)+m/Math.pow(1+r*c,2)+k/Math.pow(1+t*c,2))}},UW=(e=1,r=1,t=1)=>{let n=Dt("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,d=l.b,_=Math.sqrt(b*b+d*d),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+d*d),h=Math.abs(k)+Math.abs(f)===0?0:Math.atan2(f,k);h+=(h<0)*2*Math.PI;let w=Math.abs(S)+Math.abs(d)===0?0:Math.atan2(d,S);w+=(w<0)*2*Math.PI;let y=g-u,v=M-x,A=x*M===0?0:w-h;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),R=(u+g)/2,E=(x+M)/2,D;x*M===0?D=h+w:(D=(h+w)/2,D-=(Math.abs(h-w)>Math.PI)*Math.PI,D+=(D<0)*2*Math.PI);let I=Math.pow(R-50,2),F=1-.17*Math.cos(D-Math.PI/6)+.24*Math.cos(2*D)+.32*Math.cos(3*D+Math.PI/30)-.2*Math.cos(4*D-63*Math.PI/180),P=1+.015*I/Math.sqrt(20+I),L=1+.045*E,z=1+.015*E*F,O=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*D-275)/25,2)),B=2*Math.sqrt(Math.pow(E,7)/(Math.pow(E,7)+Math.pow(25,7))),V=-1*Math.sin(2*O)*B;return Math.sqrt(Math.pow(y/(e*P),2)+Math.pow(v/(r*L),2)+Math.pow(p/(t*z),2)+V*v/(r*L)*p/(t*z))}},HW=(e=1,r=1)=>{let t=Dt("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,d=c.b,_=Math.sqrt(b*b+d*d),T=Math.pow(i-g,2),m=Math.pow(s-_,2),k=Math.pow(l-b,2)+Math.pow(u-d,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),h=.0638*s/(1+.0131*s)+.638,w=h*(S*x+1-S);return Math.sqrt(T/Math.pow(e*M,2)+m/Math.pow(r*h,2)+k/Math.pow(w,2))}},VW=()=>{let e=Dt("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)}},GW=()=>Ru("yiq",[.5053,.299,.1957]),YW=()=>Ru("itp",[518400,129600,518400]),no=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},w2=e=>typeof e=="function";function XW(e,r="rgb",t){let n=la(r),a=e.map(Dt(r));return n.channels.reduce((o,i)=>{let l=a.map(u=>u[i]).filter(u=>u!==void 0);if(l.length){let u;w2(t)?u=t:t&&w2(t[i])?u=t[i]:n.average&&w2(n.average[i])?u=n.average[i]:u=lw,o[i]=u(l,i)}return o},{mode:r})}var WW={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:to},s:_r,l:_r,alpha:{use:_r,fixup:An}},difference:{h:T0},average:{h:no}},sw=WW,ZW=({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},Ro=ZW,JW=({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},Do=JW,uw=Math.pow(29,3)/Math.pow(3,3),fw=Math.pow(6,3)/Math.pow(29,3),Tn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},Cu={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},nxe=Math.pow(29,3)/Math.pow(3,3),axe=Math.pow(6,3)/Math.pow(29,3),M2=e=>Math.pow(e,3)>fw?Math.pow(e,3):(116*e-16)/uw,$W=({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:M2(o)*Cu.X,y:M2(a)*Cu.Y,z:M2(i)*Cu.Z};return n!==void 0&&(l.alpha=n),l},vy=$W,KW=e=>il(vy(e)),k0=KW,T2=e=>e>fw?Math.cbrt(e):(uw*e+16)/116,QW=({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=T2(e/Cu.X),o=T2(r/Cu.Y),i=T2(t/Cu.Z),l={mode:"lab65",l:116*o-16,a:500*(a-o),b:200*(o-i)};return n!==void 0&&(l.alpha=n),l},hy=QW,jW=e=>{let r=hy(al(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},S0=jW,oh=1,cw=1,M0=26/180*Math.PI,lh=Math.cos(M0),sh=Math.sin(M0),vw=100/Math.log(139/100),eZ=({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-M0),l=o*Math.sin(t/180*Math.PI-M0);return a.a=i*lh-l/.83*sh,a.b=i*sh+l/.83*lh,n!==void 0&&(a.alpha=n),a},uh=eZ,rZ=({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)+M0)/Math.PI*180)),n!==void 0&&(l.alpha=n),l},fh=rZ,q7=e=>uh(Ro(e,"dlch")),O7=e=>Do(fh(e),"dlab"),tZ={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:q7,rgb:e=>k0(q7(e))},fromMode:{lab65:O7,rgb:e=>O7(S0(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:An}}},hw=tZ,nZ={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:uh,dlab:e=>Do(e,"dlab"),rgb:e=>k0(uh(e))},fromMode:{lab65:fh,dlab:e=>Ro(e,"dlch"),rgb:e=>fh(S0(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:to},alpha:{use:_r,fixup:An}},difference:{h:A0},average:{h:no}},dw=nZ;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 aZ={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:to},s:_r,i:_r,alpha:{use:_r,fixup:An}},difference:{h:T0},average:{h:no}},yw=aZ;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 iZ=(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}},oZ=iZ,lZ=new RegExp(`^hsla?\\(\\s*${nW}${Eu}${_0}${Eu}${_0}\\s*(?:,\\s*${fy}\\s*)?\\)$`),sZ=e=>{let r=e.match(lZ);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=oZ(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=sZ;function uZ(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=uZ,fZ={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:to},s:_r,l:_r,alpha:{use:_r,fixup:An}},difference:{h:T0},average:{h:no}},dy=fZ;function py({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 gy({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 cZ={mode:"hsv",toMode:{rgb:py},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:gy},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:_r,fixup:to},s:_r,v:_r,alpha:{use:_r,fixup:An}},difference:{h:T0},average:{h:no}},yy=cZ;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 py({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:n})}function Mw(e){let r=gy(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 vZ(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=vZ,hZ={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:to},w:_r,b:_r,alpha:{use:_r,fixup:An}},difference:{h:ow},average:{h:no}},Aw=hZ,kw=203,ph=.1593017578125,Sw=78.84375,gh=.8359375,yh=18.8515625,mh=18.6875;function A2(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 k2(e){if(e<0)return 0;let r=Math.pow(e/1e4,ph);return Math.pow((gh+yh*r)/(1+mh*r),Sw)}var S2=e=>Math.max(e/kw,0),dZ=({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=A2(e+.008609037037932761*r+.11102962500302593*t),o=A2(e-.00860903703793275*r-.11102962500302599*t),i=A2(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:S2(2.070152218389422*a-1.3263473389671556*o+.2066510476294051*i),y:S2(.3647385209748074*a+.680566024947227*o-.0453045459220346*i),z:S2(-.049747207535812*a-.0492609666966138*o+1.1880659249923042*i)};return n!==void 0&&(l.alpha=n),l},X2=dZ,C2=(e=0)=>Math.max(e*kw,0),pZ=({x:e,y:r,z:t,alpha:n})=>{let a=C2(e),o=C2(r),i=C2(t),l=k2(.3592832590121217*a+.6976051147779502*o-.0358915932320289*i),u=k2(-.1920808463704995*a+1.1004767970374323*o+.0753748658519118*i),s=k2(.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},W2=pZ,gZ={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:X2,rgb:e=>il(X2(e))},fromMode:{xyz65:W2,rgb:e=>W2(al(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:_r,t:_r,p:_r,alpha:{use:_r,fixup:An}}},Cw=gZ,yZ=134.03437499999998,mZ=16295499532821565e-27,E2=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,ph);return Math.pow((gh+yh*r)/(1+mh*r),yZ)},L2=(e=0)=>Math.max(e*203,0),bZ=({x:e,y:r,z:t,alpha:n})=>{e=L2(e),r=L2(r),t=L2(t);let a=1.15*e-.15*t,o=.66*r+.34*e,i=E2(.41478972*a+.579999*o+.014648*t),l=E2(-.20151*a+1.120649*o+.0531008*t),u=E2(-.0166008*a+.2648*o+.6684799*t),s=(i+l)/2,f={mode:"jab",j:.44*s/(1-.56*s)-mZ,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},my=bZ,xZ=134.03437499999998,B7=16295499532821565e-27,R2=e=>{if(e<0)return 0;let r=Math.pow(e,1/xZ);return 1e4*Math.pow((gh-r)/(mh*r-yh),1/ph)},D2=e=>e/203,_Z=({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+B7)/(.44+.56*(e+B7)),o=R2(a+.13860504*r+.058047316*t),i=R2(a-.13860504*r-.058047316*t),l=R2(a-.096019242*r-.8118919*t),u={mode:"xyz65",x:D2(1.661373024652174*o-.914523081304348*i+.23136208173913045*l),y:D2(-.3250758611844533*o+1.571847026732543*i-.21825383453227928*l),z:D2(-.090982811*o-.31272829*i+1.5227666*l)};return n!==void 0&&(u.alpha=n),u},by=_Z,wZ=e=>{let r=my(al(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},xy=wZ,MZ=e=>il(by(e)),_y=MZ,TZ={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:xy,xyz65:my},toMode:{rgb:_y,xyz65:by},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:_r,a:_r,b:_r,alpha:{use:_r,fixup:An}}},Ew=TZ,AZ=({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},Z2=AZ,kZ=({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},J2=kZ,SZ={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:J2,rgb:e=>_y(J2(e))},fromMode:{rgb:e=>Z2(xy(e)),jab:Z2},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:_r,fixup:to},c:_r,j:_r,alpha:{use:_r,fixup:An}},difference:{h:A0},average:{h:no}},Lw=SZ,bh=Math.pow(29,3)/Math.pow(3,3),wy=Math.pow(6,3)/Math.pow(29,3),P2=e=>Math.pow(e,3)>wy?Math.pow(e,3):(116*e-16)/bh,CZ=({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:P2(o)*Tn.X,y:P2(a)*Tn.Y,z:P2(i)*Tn.Z};return n!==void 0&&(l.alpha=n),l},xh=CZ,EZ=({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=ms({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},Du=EZ,LZ=e=>Du(xh(e)),My=LZ,RZ=e=>{let{r,g:t,b:n,alpha:a}=ys(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},Pu=RZ,I2=e=>e>wy?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=I2(e/Tn.X),o=I2(r/Tn.Y),i=I2(t/Tn.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,PZ=e=>{let r=_h(Pu(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Ty=PZ;function IZ(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 Rw=IZ,zZ={mode:"lab",toMode:{xyz50:xh,rgb:My},fromMode:{xyz50:_h,rgb:Ty},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Rw],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:An}}},wh=zZ,FZ=Nt(Mt({},wh),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:vy,rgb:k0},fromMode:{xyz65:hy,rgb:S0},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Dw=FZ;function NZ(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 Pw=NZ,qZ={mode:"lch",toMode:{lab:Do,rgb:e=>My(Do(e))},fromMode:{rgb:e=>Ro(Ty(e)),lab:Ro},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Pw],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:to},c:_r,l:_r,alpha:{use:_r,fixup:An}},difference:{h:A0},average:{h:no}},Mh=qZ,OZ=Nt(Mt({},Mh),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Do(e,"lab65"),rgb:e=>k0(Do(e,"lab65"))},fromMode:{rgb:e=>Ro(S0(e),"lch65"),lab65:e=>Ro(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Iw=OZ,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},Ay=BZ,UZ=({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},ky=UZ,zw=(e,r,t)=>4*e/(e+15*r+3*t),Fw=(e,r,t)=>9*r/(e+15*r+3*t),HZ=zw(Tn.X,Tn.Y,Tn.Z),VZ=Fw(Tn.X,Tn.Y,Tn.Z),GZ=e=>e<=wy?bh*e:116*Math.cbrt(e)-16,YZ=({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=GZ(r/Tn.Y),o=zw(e,r,t),i=Fw(e,r,t);!isFinite(o)||!isFinite(i)?a=o=i=0:(o=13*a*(o-HZ),i=13*a*(i-VZ));let l={mode:"luv",l:a,u:o,v:i};return n!==void 0&&(l.alpha=n),l},ch=YZ,XZ=(e,r,t)=>4*e/(e+15*r+3*t),WZ=(e,r,t)=>9*r/(e+15*r+3*t),ZZ=XZ(Tn.X,Tn.Y,Tn.Z),JZ=WZ(Tn.X,Tn.Y,Tn.Z),$Z=({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)+ZZ,o=t/(13*e)+JZ,i=Tn.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=$Z,KZ=e=>Ay(ch(Pu(e))),QZ=e=>Du(vh(ky(e))),jZ={mode:"lchuv",toMode:{luv:ky,rgb:QZ},fromMode:{rgb:KZ,luv:Ay},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:to},c:_r,l:_r,alpha:{use:_r,fixup:An}},difference:{h:A0},average:{h:no}},Nw=jZ,eJ=Nt(Mt({},gs),{mode:"lrgb",toMode:{rgb:ms},fromMode:{rgb:ys},parse:["srgb-linear"],serialize:"srgb-linear"}),qw=eJ,rJ={mode:"luv",toMode:{xyz50:vh,rgb:e=>Du(vh(e))},fromMode:{xyz50:ch,rgb:e=>ch(Pu(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:An}}},Ow=rJ,tJ=({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},Sy=tJ,nJ=e=>{let r=Sy(ys(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},C0=nJ,aJ=({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},Iu=aJ,iJ=e=>ms(Iu(e)),E0=iJ;function $2(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 oJ(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 d=1+f*c,_=1+f*g,T=1+f*b,m=d*d*d,k=_*_*_,S=T*T*T,x=3*c*d*d,M=3*g*_*_,h=3*b*T*T,w=6*c*c*d,y=6*g*g*_,v=6*b*b*T,A=l*m+u*k+s*S,p=l*x+u*M+s*h,R=l*w+u*y+s*v;f=f-A*p/(p*p-.5*A*R)}return f}function Cy(e,r){let t=oJ(e,r),n=Iu({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 lJ(e,r,t,n,a,o=null){o||(o=Cy(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,d=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,h=S*S*S,w=3*g*m*m,y=3*b*k*k,v=3*d*S*S,A=6*g*g*m,p=6*b*b*k,R=6*d*d*S,E=4.0767416621*x-3.3077115913*M+.2309699292*h-1,D=4.0767416621*w-3.3077115913*y+.2309699292*v,I=4.0767416621*A-3.3077115913*p+.2309699292*R,F=D/(D*D-.5*E*I),P=-E*F,L=-1.2684380046*x+2.6097574011*M-.3413193965*h-1,z=-1.2684380046*w+2.6097574011*y-.3413193965*v,O=-1.2684380046*A+2.6097574011*p-.3413193965*R,B=z/(z*z-.5*L*O),V=-L*B,J=-.0041960863*x-.7034186147*M+1.707614701*h-1,Q=-.0041960863*w-.7034186147*y+1.707614701*v,G=-.0041960863*A-.7034186147*p+1.707614701*R,q=Q/(Q*Q-.5*J*G),Z=-J*q;P=F>=0?P:1e6,V=B>=0?V:1e6,Z=q>=0?Z:1e6,i+=Math.min(P,Math.min(V,Z))}}}return i}function Ey(e,r,t=null){t||(t=Cy(e,r));let n=t[0],a=t[1];return[a/n,a/(1-n)]}function Bw(e,r,t){let n=Cy(r,t),a=lJ(r,t,e,1,e,n),o=Ey(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 K2(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:$2(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]=Bw(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 Q2(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]=Bw(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 d=c+f*g/(1-b*f);return a.a=d*o,a.b=d*i,a}var sJ=Nt(Mt({},dy),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:K2,rgb:e=>K2(C0(e))},toMode:{oklab:Q2,rgb:e=>E0(Q2(e))}}),Uw=sJ;function j2(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]=Ey(o,i),s=.5,f=1-s/l,c=u/(a+r*u),g=c*r,b=c*a,d=hh(g),_=b*d/g,T=Iu({l:d,a:o*_,b:i*_}),m=Math.cbrt(1/Math.max(T.r,T.g,T.b,0));r=r/m,a=a/m*$2(r)/r,r=$2(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 ey(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]=Ey(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),d=g*b/c,_=Iu({l:b,a:o*d,b:i*d}),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 uJ=Nt(Mt({},yy),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:j2,rgb:e=>j2(C0(e))},toMode:{oklab:ey,rgb:e=>E0(ey(e))}}),Hw=uJ;function fJ(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=fJ,cJ=Nt(Mt({},wh),{mode:"oklab",toMode:{lrgb:Iu,rgb:E0},fromMode:{lrgb:Sy,rgb:C0},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=cJ;function vJ(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=vJ,hJ=Nt(Mt({},Mh),{mode:"oklch",toMode:{oklab:e=>Do(e,"oklab"),rgb:e=>E0(Do(e,"oklab"))},fromMode:{rgb:e=>Ro(C0(e),"oklch"),oklab:e=>Ro(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=hJ,dJ=e=>{let{r,g:t,b:n,alpha:a}=ys(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},ry=dJ,pJ=({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=ms({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},ty=pJ,gJ=Nt(Mt({},gs),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>ty(al(e)),xyz65:ty},toMode:{rgb:e=>il(ry(e)),xyz65:ry}}),Ww=gJ,z2=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},yJ=({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:z2(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:z2(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:z2(e*0+r*0+1.2119675456389452*t)};return n!==void 0&&(a.alpha=n),a},ny=yJ,F2=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},mJ=e=>{let r=F2(e.r),t=F2(e.g),n=F2(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},ay=mJ,bJ=Nt(Mt({},gs),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:ny,rgb:e=>ny(Pu(e))},toMode:{xyz50:ay,rgb:e=>Du(ay(e))}}),Zw=bJ,U7=1.09929682680944,xJ=.018053968510807,N2=e=>{let r=Math.abs(e);return r>xJ?(Math.sign(e)||1)*(U7*Math.pow(r,.45)-(U7-1)):4.5*e},_J=({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:N2(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:N2(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:N2(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return n!==void 0&&(a.alpha=n),a},iy=_J,H7=1.09929682680944,wJ=.018053968510807,q2=(e=0)=>{let r=Math.abs(e);return r<wJ*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+H7-1)/H7,1/.45)},MJ=e=>{let r=q2(e.r),t=q2(e.g),n=q2(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},oy=MJ,TJ=Nt(Mt({},gs),{mode:"rec2020",fromMode:{xyz65:iy,rgb:e=>iy(al(e))},toMode:{xyz65:oy,rgb:e=>il(oy(e))},parse:["rec2020"],serialize:"rec2020"}),Jw=TJ,ds=.0037930732552754493,$w=Math.cbrt(ds),O2=e=>Math.cbrt(e)-$w,AJ=e=>{let{r,g:t,b:n,alpha:a}=ys(e),o=O2(.3*r+.622*t+.078*n+ds),i=O2(.23*r+.692*t+.078*n+ds),l=O2(.2434226892454782*r+.2047674442449682*t+.5518098665095535*n+ds),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=AJ,B2=e=>Math.pow(e+$w,3),kJ=({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=B2(e+r)-ds,o=B2(r-e)-ds,i=B2(t+r)-ds,l=ms({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=kJ,SJ={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:An}}},jw=SJ,CJ={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Du,lab:_h},fromMode:{rgb:Pu,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:An}}},e8=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:"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=EJ,LJ=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=LJ,RJ={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:An}}},n8=RJ,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,PJ=({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=PJ,IJ={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:An}}},o8=IJ,zJ=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,FJ=(e=4)=>r=>typeof r=="number"?zJ(r,e):r,l8=FJ,x0=l8(2),w0=e=>Math.max(0,Math.min(1,e||0)),ps=e=>Math.round(w0(e)*255),Ly=Dt("rgb"),NJ=Dt("hsl"),Ry=e=>{if(e===void 0)return;let r=ps(e.r),t=ps(e.g),n=ps(e.b);return"#"+(1<<24|r<<16|t<<8|n).toString(16).slice(1)},s8=e=>{if(e===void 0)return;let r=ps(e.alpha!==void 0?e.alpha:1);return Ry(e)+(256|r).toString(16).slice(1)},u8=e=>{if(e===void 0)return;let r=ps(e.r),t=ps(e.g),n=ps(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${n})`:`rgba(${r}, ${t}, ${n}, ${x0(w0(e.alpha))})`},f8=e=>{if(e===void 0)return;let r=x0(e.h||0),t=x0(w0(e.s)*100)+"%",n=x0(w0(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${n})`:`hsla(${r}, ${t}, ${n}, ${x0(w0(e.alpha))})`},qJ=e=>{let r=Si(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)},OJ=e=>Ry(Ly(e)),BJ=e=>s8(Ly(e)),UJ=e=>u8(Ly(e)),HJ=e=>f8(NJ(e)),VJ={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},GJ=(e,r="normal",t="rgb")=>{let n=typeof r=="function"?r:VJ[r],a=Dt(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})})},YJ=GJ,XJ=([e,r])=>e+Math.random()*(r-e),WJ=e=>Object.keys(e).reduce((r,t)=>{let n=e[t];return r[t]=Array.isArray(n)?n:[n,n],r},{}),ZJ=(e="rgb",r={})=>{let t=la(e),n=WJ(r);return t.channels.reduce((a,o)=>((n.alpha||o!=="alpha")&&(a[o]=XJ(n[o]||t.ranges[o])),a),{mode:e})},JJ=ZJ,L0=(e,r="rgb",t=!1)=>{let n=r?la(r).channels:null,a=r?Dt(r):Si;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=Si(o);return u&&u.mode!==l.mode?Dt(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,Dy=(e=1,r=0)=>(t,n)=>n!=="alpha"?t*e+r:t,$J=(e=1,r=1,t=0)=>(n,a)=>a!=="alpha"?e*Math.pow(n,r)+t:n,KJ=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},QJ=KJ,jJ=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),h8=jJ,nh=e=>typeof e=="function",vs=e=>e&&typeof e=="object",V7=e=>typeof e=="number",d8=(e,r="rgb",t,n)=>{let a=la(r),o=Dt(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))}),QJ(l);let s=a.channels.reduce((g,b)=>{let d;return vs(t)&&vs(t[b])&&t[b].fixup?d=t[b].fixup:vs(a.interpolate[b])&&a.interpolate[b].fixup?d=a.interpolate[b].fixup:d=_=>_,g[b]=d(i.map(_=>_[b])),g},{});if(n){let g=i.map((b,d)=>a.channels.reduce((_,T)=>(_[T]=s[T][d],_),{mode:r}));s=a.channels.reduce((b,d)=>(b[d]=g.map(_=>{let T=n(_[d],d,_,r);return isNaN(T)?void 0:T}),b),{})}let f=a.channels.reduce((g,b)=>{let d;return nh(t)?d=t:vs(t)&&nh(t[b])?d=t[b]:vs(t)&&vs(t[b])&&t[b].use?d=t[b].use:nh(a.interpolate[b])?d=a.interpolate[b]:vs(a.interpolate[b])&&(d=a.interpolate[b].use),g[b]=d(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 d=l[b-1],_=l[b]-d,T=(g-d)/_,m=u[b]||u[0];m!==void 0&&(V7(m)&&(m=h8((m-d)/_)),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})}},e$=(e,r="rgb",t)=>d8(e,r,t),p8=(e,r)=>(t,n="rgb",a)=>{let o=r?L0(r,n):void 0,i=d8(t,n,a,e);return o?l=>o(i(l)):i},r$=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},t$=e=>y8(b8(e)),n$=e=>m8(b8(e)),Su=Math.sign,ly=Math.min,Ua=Math.abs,Py=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?(Su(t[o-1])+Su(t[o]))*ly(Ua(t[o-1]),Ua(t[o]),.5*Ua(n[o])):void 0);return[t,n,a]},Iy=(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]}},a$=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,,n]=Py(e);return n[0]=t[0],n[r]=t[r-1],Iy(e,n,t)},i$=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,n,a]=Py(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:Ua(n[0])>2*Ua(t[0])?2*t[0]:n[0],a[r]=n[r]*t[r-1]<=0?0:Ua(n[r])>2*Ua(t[r-1])?2*t[r-1]:n[r],Iy(e,a,t)},o$=e=>{let r=e.length-1,[t,n,a]=Py(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]=(Su(o)+Su(t[0]))*ly(Ua(o),Ua(t[0]),.5*Ua(n[0])),a[r]=(Su(t[r-1])+Su(i))*ly(Ua(t[r-1]),Ua(i),.5*Ua(n[r])),Iy(e,a,t)},l$=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),x8=l$,s$=(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},u$=s$,_8=Dt("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 zy(e){return T8(_8(e))}function Th(e="rgb"){let{gamut:r}=la(e);if(!r)return n=>!0;let t=Dt(typeof r=="string"?r:e);return n=>T8(t(n))}function f$(e){return e=Si(e),e===void 0||zy(e)?e:Dt(e.mode)(M8(e))}function Fy(e="rgb"){let{gamut:r}=la(e);if(!r)return o=>Si(o);let t=typeof r=="string"?r:e,n=Dt(t),a=Th(t);return o=>{let i=Si(o);if(!i)return;let l=n(i);if(a(l))return i;let u=w8(l);return i.mode===u.mode?u:Dt(i.mode)(u)}}function c$(e,r="lch",t="rgb"){e=Si(e);let n=t==="rgb"?zy:Th(t),a=t==="rgb"?M8:Fy(t);if(e===void 0||n(e))return e;let o=Dt(e.mode);e=Dt(r)(e);let i=Nt(Mt({},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:Nt(Mt({},i),{c}))}function v$(e="rgb",r="oklch",t=Ru("oklch"),n=.02){let a=Dt(e),o=la(e);if(!o.gamut)return f=>a(f);let i=Th(e),l=Fy(e),u=Dt(r),{ranges:s}=la(r);if(!s.l||!s.c)throw new Error("LCH-like space expected");return f=>{if(f=Si(f),f===void 0)return;let c=Mt({},u(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=s.l[1]){let T=Nt(Mt({},o.white),{mode:e});return f.alpha!==void 0&&(T.alpha=f.alpha),T}if(c.l<=s.l[0]){let T=Nt(Mt({},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,d=(s.c[1]-s.c[0])/4e3,_=l(c);for(;b-g>d;)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 h$=(e,r=Ru(),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]))},d$=h$,Ny=e=>Math.max(e,0),qy=e=>Math.max(Math.min(e,1),0),p$=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),g$=e=>{let r=1-qy(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]},y$=e=>{let r=Ny(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]},m$=e=>{let r=1-qy(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]},b$=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=Dt(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=Si(o);return f&&l.mode!==f.mode?Dt(f.mode)(l):l}},x$=(e=1,r="rgb")=>{let t=Ny(e);return L0(Dy(t),r,!0)},_$=(e=1,r="rgb")=>{let t=Ny(e);return L0(Dy(t,(1-t)/2),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")=>Ah(m$(e),r,!0),A$=(e=1,r="rgb")=>{let t=qy(e);return L0((n,a)=>a==="alpha"?n:p$(t,1-t,n),r,!0)},k$=(e=0,r="rgb")=>Ah(b$(e),r,!0),S$=Dt("rgb"),C$=[[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]],E$=[[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]],L$=[[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]],Oy=(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)=>hs(o[u],i[u],a))}return i=>{let l=Si(i);if(l===void 0)return;let{r:u,g:s,b:f}=S$(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),Dt(l.mode)(c)}},R$=(e=1)=>Oy(C$,e),D$=(e=1)=>Oy(E$,e),P$=(e=1)=>Oy(L$,e),I$=e=>e*e*(3-2*e),z$=e=>.5-Math.sin(Math.asin(1-2*e)/3),F$=e=>e*e*e*(e*(e*6-15)+10),N$=F$,q$=e=>(1-Math.cos(e*Math.PI))/2,O$=q$;function sy(e){let r=Dt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function B$(e,r){let t=sy(e),n=sy(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}var U$=Tt(nw),H$=Tt(sw),V$=Tt(hw),G$=Tt(dw),Y$=Tt(yw),X$=Tt(dy),W$=Tt(yy),Z$=Tt(Aw),J$=Tt(Cw),$$=Tt(Ew),K$=Tt(Lw),Q$=Tt(wh),j$=Tt(Dw),eK=Tt(Mh),rK=Tt(Iw),tK=Tt(Nw),nK=Tt(qw),aK=Tt(Ow),iK=Tt(Uw),oK=Tt(Hw),lK=Tt(Gw),sK=Tt(Xw),uK=Tt(Ww),fK=Tt(Zw),cK=Tt(Jw),vK=Tt(gs),hK=Tt(jw),dK=Tt(e8),pK=Tt(n8),gK=Tt(o8)});var By={};Ot(By,{default:()=>mK});var yK,mK,Uy=qt(()=>{"use strict";yK={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(" ")}},mK=yK});var ol=xe((sxe,R8)=>{"use strict";var{format:bK,width:xK,height:_K,scale:wK}=(Uy(),or(By)).default,S8=wK,{dflt:lxe}=S8,MK=$_(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:bK,filename:{valType:"string"},width:xK,height:_K,scale:MK},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);R8.exports={configAttributes:C8,dfltConfig:E8}});var Vy=xe((fxe,D8)=>{"use strict";var Hy=st(),TK=ft(),R0=[];D8.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||R0.indexOf(e)!==-1)return;R0.push(e);var n=1e3;TK(r)?n=r:r==="long"&&(n=3e3);var a=Hy.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var o=a.selectAll(".notifier-note").data(R0);function i(u){u.duration(700).style("opacity",0).each("end",function(s){var f=R0.indexOf(s);f!==-1&&R0.splice(f,1),Hy.select(this).remove()})}o.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(u){var s=Hy.select(this);s.append("button").classed("notifier-close",!0).html("×").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((cxe,P8)=>{"use strict";var zu=ol().dfltConfig,Gy=Vy(),Yy=P8.exports={};Yy.log=function(){var e;if(zu.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(zu.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Gy(t.join("<br>"),"long")}};Yy.warn=function(){var e;if(zu.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(zu.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Gy(t.join("<br>"),"stick")}};Yy.error=function(){var e;if(zu.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(zu.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Gy(t.join("<br>"),"stick")}}});var ao=xe(bs=>{"use strict";bs.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];bs.defaultLine="#444";bs.lightLine="#eee";bs.background="#fff";bs.borderLine="#BEC8D9";bs.lightFraction=1e3/11});var Zr=xe((hxe,H8)=>{"use strict";var{converter:I8,formatHex:AK,formatRgb:kK,wcagContrast:SK,wcagLuminance:CK}=k8(),{isArrayOrTypedArray:z8}=ba(),{warn:EK}=ll(),{background:P0,defaultLine:Zy,defaults:LK,lightLine:RK}=ao(),F8=I8("rgb"),DK=I8("hsl"),N8=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return F8(r)}catch(t){return}},sa=e=>e>0?e>1?1:e:0,PK={mode:"rgb",r:0,g:0,b:0,alpha:1},Xy=e=>Math.round(e*255e6)/255e6,q8=e=>Nt(Mt({},e),{r:Xy(e.r),g:Xy(e.g),b:Xy(e.b)}),Ha=e=>kK(q8(e)),IK=e=>AK(q8(e)),zK=e=>{var r,t,n,a;return typeof e=="string"?`"${e}"`:z8(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&&EK(`Invalid color specifier: ${zK(e)}. Defaulting to "#000"`),PK)},D0=e=>Ha(Nt(Mt({},Kt(e)),{alpha:1})),FK=e=>e?Kt(e).alpha:0,O8=e=>z8(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),NK=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}},qK=(e,r)=>{let t=O8(e)?NK(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},OK=(e,r)=>Ha(Nt(Mt({},Kt(e)),{alpha:sa(r)})),B8=(e,r)=>{let t=Kt(e),n=t.alpha;if(n===1)return Ha(t);let a=Kt(r||P0),o=a.alpha,i=(l,u)=>(o===1?u:1-o+u*o)*(1-n)+l*n;return Ha({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 Ha({mode:"rgb",r:o(n.r,a.r),g:o(n.g,a.g),b:o(n.b,a.b)})},Wy=(e,r)=>{let t=Kt(e),n=DK(t)||{mode:"hsl",h:0,s:0,l:0};return Ha(F8(Nt(Mt({},n),{l:sa((n.l*100+r)/100),alpha:t.alpha})))},kh=(e,r)=>SK(Kt(e),Kt(r)),U8=e=>kh(e,P0)>kh(e,Zy),UK=Ha(Kt(P0)),HK=Ha(Kt(Zy)),VK=(e,r,t)=>(Kt(e).alpha!==1&&(e=B8(e,P0)),U8(e)?r?Wy(e,r):UK:t?Wy(e,-t):HK),GK=(e,r)=>{e.style({stroke:D0(r),"stroke-opacity":Kt(r).alpha})},YK=(e,r)=>{e.style({fill:D0(r),"fill-opacity":Kt(r).alpha})},XK=(e,r)=>!!(e&&r&&D0(e)===D0(r)),WK=e=>N8(e)!==void 0,ZK=(e,r)=>{r=r===0?0:r||10;let t=Kt(e),n=r/100;return Ha(Nt(Mt({},t),{r:sa(t.r+n),g:sa(t.g+n),b:sa(t.b+n)}))},JK=(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 Ha({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})},$K=(e,r=["#000","#fff"])=>{let t,n=-1/0;for(let a of r){let o=kh(e,a);o>n&&(n=o,t=Ha(Kt(a)))}return t},KK=e=>Ha(Kt(e)),QK=e=>IK(Kt(e)).toUpperCase(),jK=e=>{let r=Kt(e);return[sa(r.r)*255,sa(r.g)*255,sa(r.b)*255,sa(r.alpha)]},eQ=([e,r,t,n])=>Ha({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:n}),rQ=e=>{let r=Kt(e);return CK({mode:"rgb",r:sa(r.r),g:sa(r.g),b:sa(r.b)})};H8.exports={addOpacity:OK,adjustLightness:Wy,background:P0,brighten:ZK,combine:B8,contrast:VK,defaultLine:Zy,defaults:LK,equals:XK,fill:YK,hexString:QK,interpolate:BK,isChannelArray:O8,isDark:U8,isValid:WK,lightLine:RK,luminosity:rQ,mix:JK,mostReadable:$K,normalize:qK,opacity:FK,parse:Kt,rgb:D0,rgbaArray:jK,rgbaArrayToString:eQ,rgbaString:KK,stroke:GK,wcagContrast:kh}});var xs=xe((pxe,Y8)=>{"use strict";var tQ=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 nQ(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||!tQ.isValid(n[1]))return!1;r=+n[0]}return!0}function aQ(e){return Sh[e]!==void 0?!0:G8(e)}Y8.exports={scales:Sh,defaultScale:V8,get:nQ,isValid:aQ}});var Ch={};Ot(Ch,{DESELECTDIM:()=>lQ,HIDE_PLACEHOLDER:()=>oQ,SHOW_PLACEHOLDER:()=>iQ});var iQ,oQ,lQ,Eh=qt(()=>{"use strict";iQ=100,oQ=1e3,lQ=.2});var I0={};Ot(I0,{counter:()=>_s});function _s(e,r="",t,n){let a=r+(t?"":"$"),o=n===!1?"":"^";return e==="xy"?new RegExp(o+"x"+Jy+"y"+Jy+a):new RegExp(o+e+Jy+a)}var Jy,Fu=qt(()=>{"use strict";Jy="([2-9]|[1-9][0-9]+)?"});var Z8=xe(Sa=>{"use strict";var $y=ft(),X8=Rt().extendFlat,sQ=Zn(),uQ=xs(),Ky=Zr(),fQ=(Eh(),or(Ch)).DESELECTDIM,Nu=Kv(),W8=(Fu(),or(I0)).counter,cQ=(ku(),or(Au)).modHalf,Ci=ba().isArrayOrTypedArray,sl=ba().isTypedArraySpec,ul=ba().decodeTypedArraySpec;Sa.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ci(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)),!$y(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||!$y(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)),Ky.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=>Ky.isValid(n))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(uQ.get(e,t))}},angle:{coerceFunction:function(e,r,t){sl(e)&&(e=ul(e)),e==="auto"?r.set("auto"):$y(e)?r.set(cQ(+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&&Ci(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,h={set:function(w){M=w}};return x===void 0&&(x=S.dflt),Sa.valObjectMeta[S.valType].coerceFunction(k,h,x,S),M}if(sl(e)&&(e=ul(e)),!Ci(e)){r.set(t);return}var o=n.dimensions===2||n.dimensions==="1-2"&&Array.isArray(e)&&Ci(e[0]),i=n.items,l=[],u=Array.isArray(i),s=u&&o&&Ci(i[0]),f=o&&u&&!s,c=u&&!f?i.length:e.length,g,b,d,_,T,m;if(t=Array.isArray(t)?t:[],o)for(g=0;g<c;g++)for(l[g]=[],d=Ci(e[g])?e[g]:[],f?T=i.length:u?T=i[g].length:T=d.length,b=0;b<T;b++)f?_=i[b]:u?_=i[g][b]:_=i,m=a(d[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(!Ci(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(!Ci(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=Nu(t,n).get(),i=Nu(e,n),l=Nu(r,n),u=i.get(),s=r._template;if(u===void 0&&s&&(u=Nu(s,n).get(),s=0),a===void 0&&(a=o.dflt),o.arrayOk){if(Ci(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=Nu(s,n).get(),f(u,l,a,o),c=l.get()),c};Sa.coerce2=function(e,r,t,n,a){var o=Nu(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?Ky.contrast(u):t)}e(r+".fgopacity",l?.5:1)}};Sa.coerceHoverinfo=function(e,r,t){var n=r._module.attributes,a=n.hoverinfo?n:sQ,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;!Ci(t)&&!e.selected&&!e.unselected&&(n=t,a=fQ*t),r("selected.marker.opacity",n),r("unselected.marker.opacity",a)}}};function Lh(e,r){var t=Sa.valObjectMeta[r.valType];if(r.arrayOk&&Ci(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 Rh=xe((yxe,J8)=>{"use strict";J8.exports=function(){}});var Qy=xe((mxe,$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((bxe,K8)=>{K8.exports=vQ;function vQ(){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((xxe,j8)=>{j8.exports=hQ;function hQ(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((_xe,r9)=>{r9.exports=dQ;function dQ(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 jy=xe((wxe,n9)=>{n9.exports=pQ;function pQ(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((Mxe,a9)=>{a9.exports=gQ;function gQ(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((Txe,o9)=>{o9.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],d=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,h=n*s-o*l,w=a*s-o*u,y=f*_-c*d,v=f*T-g*d,A=f*m-b*d,p=c*T-g*_,R=c*m-b*_,E=g*m-b*T,D=k*E-S*R+x*p+M*A-h*v+w*y;return D?(D=1/D,e[0]=(l*E-u*R+s*p)*D,e[1]=(a*R-n*E-o*p)*D,e[2]=(_*w-T*h+m*M)*D,e[3]=(g*h-c*w-b*M)*D,e[4]=(u*A-i*E-s*v)*D,e[5]=(t*E-a*A+o*v)*D,e[6]=(T*x-d*w-m*S)*D,e[7]=(f*w-g*x+b*S)*D,e[8]=(i*R-l*A+s*y)*D,e[9]=(n*A-t*R-o*y)*D,e[10]=(d*h-_*x+m*k)*D,e[11]=(c*x-f*h-b*k)*D,e[12]=(l*v-i*p-u*y)*D,e[13]=(t*p-n*v+a*y)*D,e[14]=(_*S-d*M-T*k)*D,e[15]=(f*M-c*S+g*k)*D,e):null}});var u9=xe((Axe,s9)=>{s9.exports=mQ;function mQ(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],d=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)+d*(u*b-s*g)),e[5]=t*(g*m-b*T)-f*(a*m-o*T)+d*(a*b-o*g),e[6]=-(t*(u*m-s*T)-i*(a*m-o*T)+d*(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*_)+d*(l*b-s*c),e[9]=-(t*(c*m-b*_)-f*(n*m-o*_)+d*(n*b-o*c)),e[10]=t*(l*m-s*_)-i*(n*m-o*_)+d*(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*_)+d*(l*g-u*c)),e[13]=t*(c*T-g*_)-f*(n*T-a*_)+d*(n*g-a*c),e[14]=-(t*(l*T-u*_)-i*(n*T-a*_)+d*(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((kxe,f9)=>{f9.exports=bQ;function bQ(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],d=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,h=n*u-a*l,w=s*d-f*b,y=s*_-c*b,v=s*T-g*b,A=f*_-c*d,p=f*T-g*d,R=c*T-g*_;return m*R-k*p+S*A+x*v-M*y+h*w}});var h9=xe((Sxe,v9)=>{v9.exports=xQ;function xQ(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],d=r[11],_=r[12],T=r[13],m=r[14],k=r[15],S=t[0],x=t[1],M=t[2],h=t[3];return e[0]=S*n+x*l+M*c+h*_,e[1]=S*a+x*u+M*g+h*T,e[2]=S*o+x*s+M*b+h*m,e[3]=S*i+x*f+M*d+h*k,S=t[4],x=t[5],M=t[6],h=t[7],e[4]=S*n+x*l+M*c+h*_,e[5]=S*a+x*u+M*g+h*T,e[6]=S*o+x*s+M*b+h*m,e[7]=S*i+x*f+M*d+h*k,S=t[8],x=t[9],M=t[10],h=t[11],e[8]=S*n+x*l+M*c+h*_,e[9]=S*a+x*u+M*g+h*T,e[10]=S*o+x*s+M*b+h*m,e[11]=S*i+x*f+M*d+h*k,S=t[12],x=t[13],M=t[14],h=t[15],e[12]=S*n+x*l+M*c+h*_,e[13]=S*a+x*u+M*g+h*T,e[14]=S*o+x*s+M*b+h*m,e[15]=S*i+x*f+M*d+h*k,e}});var p9=xe((Cxe,d9)=>{d9.exports=_Q;function _Q(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,c,g,b,d,_,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],d=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]=d,e[9]=_,e[10]=T,e[11]=m,e[12]=i*n+f*a+d*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((Exe,g9)=>{g9.exports=wQ;function wQ(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((Lxe,m9)=>{m9.exports=MQ;function MQ(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,d,_,T,m,k,S,x,M,h,w,y,v,A,p,R,E,D,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],d=r[3],_=r[4],T=r[5],m=r[6],k=r[7],S=r[8],x=r[9],M=r[10],h=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,R=i*o*f+a*u,E=a*i*f+o*u,D=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]=d*w+k*y+h*v,e[4]=c*A+_*p+S*R,e[5]=g*A+T*p+x*R,e[6]=b*A+m*p+M*R,e[7]=d*A+k*p+h*R,e[8]=c*E+_*D+S*I,e[9]=g*E+T*D+x*I,e[10]=b*E+m*D+M*I,e[11]=d*E+k*D+h*I,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var _9=xe((Rxe,x9)=>{x9.exports=TQ;function TQ(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=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[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((Pxe,T9)=>{T9.exports=kQ;function kQ(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((Ixe,k9)=>{k9.exports=SQ;function SQ(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((zxe,C9)=>{C9.exports=CQ;function CQ(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,d=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]=d+T,e[7]=0,e[8]=g+m,e[9]=d-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 R9=xe((Fxe,L9)=>{L9.exports=EQ;function EQ(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 P9=xe((Nxe,D9)=>{D9.exports=LQ;function LQ(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 z9=xe((qxe,I9)=>{I9.exports=RQ;function RQ(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((Oxe,F9)=>{F9.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 O9=xe((Bxe,q9)=>{q9.exports=PQ;function PQ(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((Uxe,B9)=>{B9.exports=IQ;function IQ(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,d=a*u,_=o*i,T=o*l,m=o*u;return e[0]=1-c-d,e[1]=f+m,e[2]=g-T,e[3]=0,e[4]=f-m,e[5]=1-s-d,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((Hxe,H9)=>{H9.exports=zQ;function zQ(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((Vxe,G9)=>{G9.exports=FQ;function FQ(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((Gxe,X9)=>{X9.exports=NQ;function NQ(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((Yxe,Z9)=>{Z9.exports=qQ;function qQ(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((Xxe,$9)=>{var OQ=jy();$9.exports=BQ;function BQ(e,r,t,n){var a,o,i,l,u,s,f,c,g,b,d=r[0],_=r[1],T=r[2],m=n[0],k=n[1],S=n[2],x=t[0],M=t[1],h=t[2];return Math.abs(d-x)<1e-6&&Math.abs(_-M)<1e-6&&Math.abs(T-h)<1e-6?OQ(e):(f=d-x,c=_-M,g=T-h,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*d+o*_+i*T),e[13]=-(l*d+u*_+s*T),e[14]=-(f*d+c*_+g*T),e[15]=1,e)}});var j9=xe((Wxe,Q9)=>{Q9.exports=UQ;function UQ(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 em=xe((Zxe,eM)=>{eM.exports={create:Q8(),clone:e9(),copy:t9(),identity:jy(),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:R9(),fromTranslation:P9(),fromXRotation:z9(),fromYRotation:N9(),fromZRotation:O9(),fromQuat:U9(),frustum:V9(),perspective:Y9(),perspectiveFromFieldOfView:W9(),ortho:J9(),lookAt:K9(),str:j9()}});var Dh=xe(ln=>{"use strict";var HQ=em();ln.init2dArray=function(e,r){for(var t=new Array(e),n=0;n<e;n++)t[n]=new Array(r);return t};ln.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};ln.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]=ln.dot(e[a],r);else if(r[0].length){var o=ln.transposeRagged(r);for(n=new Array(o.length),a=0;a<o.length;a++)n[a]=ln.dot(e,o[a])}else for(n=0,a=0;a<t;a++)n+=e[a]*r[a];return n};ln.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};ln.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]]};ln.rotationXYMatrix=function(e,r,t){return ln.dot(ln.dot(ln.translationMatrix(r,t),ln.rotationMatrix(e)),ln.translationMatrix(-r,-t))};ln.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return ln.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};ln.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 ln.dot(e,[t[0],t[1],1]).slice(0,2)}};ln.apply2DTransform2=function(e){var r=ln.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};ln.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]};ln.inverseTransformMatrix=function(e){var r=[];return HQ.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 z0=xe(($xe,oM)=>{"use strict";var VQ=st(),rM=ll(),GQ=Dh(),YQ=em();function XQ(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 WQ(e){var r=VQ.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 ZQ(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 JQ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&tM(t)}function $Q(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 KQ(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=GQ.convertCssMatrix(a);t=YQ.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=[];QQ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function QQ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function jQ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}oM.exports={getGraphDiv:XQ,isPlotDiv:WQ,removeElement:tM,addStyleRule:ZQ,addRelatedStyleRule:nM,deleteRelatedStyleRule:JQ,setStyleOnHover:$Q,getFullTransformMatrix:KQ,getElementTransformMatrix:aM,getElementAndAncestors:iM,equalDomRects:jQ}});var F0=xe((Kxe,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((Qxe,dM)=>{"use strict";var uM=Rt().extendFlat,ej=us(),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"]},rj=fM.flags.slice().concat(["fullReplot"]),tj=cM.flags.slice().concat("layoutReplot");dM.exports={traces:fM,layout:cM,traceFlags:function(){return sM(rj)},layoutFlags:function(){return sM(tj)},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];ej(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(rm=>{"use strict";rm.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};rm.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 tm={};Ot(tm,{DATE_FORMAT_LINK:()=>aj,FORMAT_LINK:()=>nj});var nj,aj,nm=qt(()=>{"use strict";nj="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",aj="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Ei=xe(qu=>{"use strict";var{DATE_FORMAT_LINK:ij,FORMAT_LINK:oj}=(nm(),or(tm)),lj=["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 sj({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}".`,oj,"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}".`,ij,"for details on the date formatting syntax.",lj].join(" ")}qu.templateFormatStringDescription=sj;qu.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Mt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});qu.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Mt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});qu.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});qu.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var zh=xe((t4e,xM)=>{"use strict";function cl(e,r){return r?r.d2l(e):e}function pM(e,r){return r?r.l2d(e):e}function uj(e){return e.x0}function fj(e){return e.x1}function cj(e){return e.y0}function vj(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 Ph(e,r){return cl(e.x1,r)+yM(e)-cl(e.x0,r)-gM(e)}function Ih(e,r,t){return cl(e.y1,t)+bM(e)-cl(e.y0,t)-mM(e)}function hj(e,r){return Math.abs(Ph(e,r))}function dj(e,r,t){return Math.abs(Ih(e,r,t))}function pj(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ph(e,r),2)+Math.pow(Ih(e,r,t),2))}function gj(e,r){return pM((cl(e.x1,r)+yM(e)+cl(e.x0,r)+gM(e))/2,r)}function yj(e,r,t){return pM((cl(e.y1,t)+bM(e)+cl(e.y0,t)+mM(e))/2,t)}function mj(e,r,t){return e.type!=="line"?void 0:Ih(e,r,t)/Ph(e,r)}var bj=["x0","x1","y0","y1","dy","height","ycenter"],xj=["x0","x1","y0","y1","dx","width","xcenter"];xM.exports={x0:uj,x1:fj,y0:cj,y1:vj,slope:mj,dx:Ph,dy:Ih,width:hj,height:dj,length:pj,xcenter:gj,ycenter:yj,simpleXVariables:bj,simpleYVariables:xj}});var MM=xe((n4e,wM)=>{"use strict";var _j=ua().overrideAll,ws=Zn(),_M=Wn(),wj=fl().dash,vl=Rt().extendFlat,{shapeTexttemplateAttrs:Mj,templatefallbackAttrs:Tj}=Ei(),Aj=zh();wM.exports=_j({newshape:{visible:vl({},ws.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:vl({},ws.legend,{}),legendgroup:vl({},ws.legendgroup,{}),legendgrouptitle:{text:vl({},ws.legendgrouptitle.text,{}),font:_M({})},legendrank:vl({},ws.legendrank,{}),legendwidth:vl({},ws.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:vl({},wj,{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({},ws.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Mj({newshape:!0},{keys:Object.keys(Aj)}),texttemplatefallback:Tj({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((a4e,TM)=>{"use strict";var kj=fl().dash,Sj=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:Sj({},kj,{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 Fh=xe((i4e,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 Ou=xe((o4e,LM)=>{"use strict";var am=Wn(),Cj=F0(),Nh=ao(),SM=MM(),CM=AM(),Ej=Fh(),EM=Rt().extendFlat,qh=am({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:am({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:am({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(Ej({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({},Cj.transition,{editType:"none"})}});var RM=xe(()=>{(function(){if(!document.getElementById("17ae9e42e4fa3e7c06fe95ec91b1119e5a4c05dc79afabe050bbaba88da47580")){var e=document.createElement("style");e.id="17ae9e42e4fa3e7c06fe95ec91b1119e5a4c05dc79afabe050bbaba88da47580",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)}.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-group:not(:empty){box-shadow:0 0 0 2px ButtonText}.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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23333'%3E %3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23333'%3E %3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23fff'%3E %3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23fff'%3E %3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23000'%3E %3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23000'%3E %3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E %3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23333'%3E %3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E %3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23fff'%3E %3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23fff'%3E %3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23000'%3E %3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23000'%3E %3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E %3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23333'%3E %3Cpath d='m10.5 14 4-8 4 8z'/%3E %3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23fff'%3E %3Cpath d='m10.5 14 4-8 4 8z'/%3E %3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29' fill='%23000'%3E %3Cpath d='m10.5 14 4-8 4 8z'/%3E %3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E %3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' viewBox='0 0 22 22' stroke='%23333'%3E %3Ccircle cx='11' cy='11' r='8.5'/%3E %3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E %3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517-.195 0-.461-.118-.775-.517-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11c0-2.447.331-4.64.853-6.206.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517.195 0 .461.118.775.517.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E %3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.333 1.333 0 0 1-.224-.138c.047-.038.12-.085.224-.138.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5c1.909 0 3.622.166 4.845.428.616.132 1.08.283 1.379.434.105.053.177.1.224.138-.047.038-.12.085-.224.138-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.33 1.33 0 0 1-.224-.138 1.33 1.33 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5c1.909 0 3.622.166 4.845.428.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.33 1.33 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.465 1.465 0 0 1-.39-.272.293.293 0 0 1-.047-.064.293.293 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.33.33 0 0 1 .047.064.293.293 0 0 1-.048.064 1.435 1.435 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002-.002Zm0 .018v.002-.002Zm17.002.002v-.002.002Zm0-.018v-.002.002Z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' viewBox='0 0 22 22' stroke='%2333b5e5'%3E %3Ccircle cx='11' cy='11' r='8.5'/%3E %3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E %3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517-.195 0-.461-.118-.775-.517-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11c0-2.447.331-4.64.853-6.206.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517.195 0 .461.118.775.517.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E %3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.333 1.333 0 0 1-.224-.138c.047-.038.12-.085.224-.138.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5c1.909 0 3.622.166 4.845.428.616.132 1.08.283 1.379.434.105.053.177.1.224.138-.047.038-.12.085-.224.138-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.33 1.33 0 0 1-.224-.138 1.33 1.33 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5c1.909 0 3.622.166 4.845.428.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.33 1.33 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.465 1.465 0 0 1-.39-.272.293.293 0 0 1-.047-.064.293.293 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.33.33 0 0 1 .047.064.293.293 0 0 1-.048.064 1.435 1.435 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002-.002Zm0 .018v.002-.002Zm17.002.002v-.002.002Zm0-.018v-.002.002Z'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='%23333'%3E %3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='%2333b5e5'%3E %3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23aaa'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' fill='%23f00'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%2333b5e5'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23e58978'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%2333b5e5'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23e54e33'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23fff'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23999'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' fill='%23f00'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%2333b5e5'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23e58978'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%2333b5e5'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23e54e33'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23000'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' display='none'/%3E %3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20' fill='%23666'%3E %3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E %3Ccircle id='dot' cx='10' cy='10' r='2'/%3E %3Cpath id='stroke' d='m14 5 1 1-9 9-1-1z' fill='%23f00'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E %3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.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 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E %3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E %3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.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 0-1.991 1.86z'/%3E %3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E %3Cg style='stroke-width:1.12603545'%3E %3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.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 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.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' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E %3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E %3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E %3C/g%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E %3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.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 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E %3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E %3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.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 0-1.991 1.86z'/%3E %3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E %3Cg style='stroke-width:1.12603545'%3E %3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.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 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.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' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E %3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E %3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E %3C/g%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E %3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.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 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E %3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E %3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.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 0-1.991 1.86z'/%3E %3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E %3Cg style='stroke-width:1.12603545'%3E %3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.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 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.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' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E %3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E %3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E %3C/g%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E %3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20' fill='%23fff'%3E %3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E %3C/svg%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 xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E %3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E %3C/svg%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,[dir=rtl] .maplibregl-popup-anchor-left{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-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 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(jr=>{"use strict";var im=ll(),DM=Rh(),PM=Qy(),u4e=z0().addStyleRule,IM=Rt(),Lj=Zn(),Rj=Ou(),Dj=IM.extendFlat,om=IM.extendDeepAll;jr.modules={};jr.allCategories={};jr.allTypes=[];jr.subplotsRegistry={};jr.componentsRegistry={};jr.layoutArrayContainers=[];jr.layoutArrayRegexes=[];jr.traceLayoutAttributes={};jr.localeRegistry={};jr.apiMethodRegistry={};jr.collectableSubplotTypes=null;jr.register=function(r){if(jr.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":Pj(n);break;case"component":zj(n);break;case"locale":Fj(n);break;case"apiMethod":var a=n.name;jr.apiMethodRegistry[a]=n.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};jr.getModule=function(e){var r=jr.modules[qM(e)];return r?r._module:!1};jr.traceIs=function(e,r){if(e=qM(e),e==="various")return!1;var t=jr.modules[e];return t||(e&&im.log("Unrecognized trace type "+e+"."),t=jr.modules[Lj.type.dflt]),!!t.categories[r]};jr.getComponentMethod=function(e,r){var t=jr.componentsRegistry[e];return t&&t[r]||DM};jr.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return jr.apiMethodRegistry[e].apply(null,r)};function Pj(e){var r=e.name,t=e.categories,n=e.meta;if(jr.modules[r]){im.log("Type "+r+" already registered");return}jr.subplotsRegistry[e.basePlotModule.name]||Ij(e.basePlotModule);for(var a={},o=0;o<t.length;o++)a[t[o]]=!0,jr.allCategories[t[o]]=!0;jr.modules[r]={_module:e,categories:a},n&&Object.keys(n).length&&(jr.modules[r].meta=n),jr.allTypes.push(r);for(var i in jr.componentsRegistry)FM(i,r);e.layoutAttributes&&Dj(jr.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,u=l.name;u==="map"&&RM(),(u==="geo"||u==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function Ij(e){var r=e.name;if(jr.subplotsRegistry[r]){im.log("Plot type "+r+" already registered.");return}zM(e),jr.subplotsRegistry[r]=e;for(var t in jr.componentsRegistry)NM(t,e.name)}function zj(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;jr.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&PM(jr.layoutArrayContainers,r),zM(e));for(var t in jr.modules)FM(r,t);for(var n in jr.subplotsRegistry)NM(r,n);e.schema&&e.schema.layout&&om(Rj,e.schema.layout)}function Fj(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=jr.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 zM(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)PM(jr.layoutArrayRegexes,r[t])}}function FM(e,r){var t=jr.componentsRegistry[e].schema;if(!(!t||!t.traces)){var n=t.traces[r];n&&om(jr.modules[r]._module.attributes,n)}}function NM(e,r){var t=jr.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var n=jr.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&&om(a,i)}}function qM(e){return typeof e=="object"&&(e=e.type),e}});var WM=xe(sn=>{"use strict";var Nj=Mu().timeFormat,YM=ft(),lm=ll(),dl=(ku(),or(Au)).mod,Hu=(Mn(),or(In)),ii=Hu.BADNUM,Ca=Hu.ONEDAY,N0=Hu.ONEHOUR,hl=Hu.ONEMIN,Uu=Hu.ONESEC,q0=Hu.EPOCHJD,Po=Cr(),OM=Mu().utcFormat,qj=/^\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,Oj=/^\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,BM=new Date().getFullYear()-70;function Io(e){return e&&Po.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}sn.dateTick0=function(e,r){var t=Bj(e,!!r);if(r<2)return t;var n=sn.dateTime2ms(t,e);return n+=Ca*(r-1),sn.ms2DateTime(n,0,e)};function Bj(e,r){return Io(e)?r?Po.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Po.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}sn.dfltRange=function(e){return Io(e)?Po.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};sn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Bh,Uh;sn.dateTime2ms=function(e,r){if(sn.isJSDate(e)){var t=e.getTimezoneOffset()*hl,n=(e.getUTCMinutes()-e.getMinutes())*hl+(e.getUTCSeconds()-e.getSeconds())*Uu+(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>=Bh&&e<=Uh?e:ii}if(typeof e!="string"&&typeof e!="number")return ii;e=String(e);var o=Io(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?Oj:qj);if(!u)return ii;var s=u[1],f=u[3]||"1",c=Number(u[5]||1),g=Number(u[7]||0),b=Number(u[9]||0),d=Number(u[11]||0);if(o){if(s.length===2)return ii;s=Number(s);var _;try{var T=Po.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 ii}return _?(_.toJD()-q0)*Ca+g*N0+b*hl+d*Uu:ii}s.length===2?s=(Number(s)+2e3-BM)%100+BM: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?ii:k.getTime()+d*Uu};Bh=sn.MIN_MS=sn.dateTime2ms("-9999");Uh=sn.MAX_MS=sn.dateTime2ms("9999-12-31 23:59:59.9999");sn.isDateTime=function(e,r){return sn.dateTime2ms(e,r)!==ii};function Bu(e,r){return String(e+Math.pow(10,r)).slice(1)}var Oh=90*Ca,UM=3*N0,HM=5*hl;sn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Bh&&e<=Uh))return ii;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(Io(t)){var c=Math.floor(a/Ca)+q0,g=Math.floor(dl(e,Ca));try{o=Po.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(b){o=OM("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<Oh?Math.floor(g/N0):0,l=r<Oh?Math.floor(g%N0/hl):0,u=r<UM?Math.floor(g%hl/Uu):0,s=r<HM?g%Uu*10+n:0}else f=new Date(a),o=OM("%Y-%m-%d")(f),i=r<Oh?f.getUTCHours():0,l=r<Oh?f.getUTCMinutes():0,u=r<UM?f.getUTCSeconds():0,s=r<HM?f.getUTCMilliseconds()*10+n:0;return XM(o,i,l,u,s)};sn.ms2DateTimeLocal=function(e){if(!(e>=Bh+Ca&&e<=Uh-Ca))return ii;var r=Math.floor(dl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=Nj("%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+=" "+Bu(r,2)+":"+Bu(t,2),(n||a)&&(e+=":"+Bu(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+Bu(a,o)}return e}sn.cleanDate=function(e,r,t){if(e===ii)return r;if(sn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Io(t))return lm.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=sn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!sn.isDateTime(e,t))return lm.error("unrecognized date",e),r;return e};var Uj=/%\d?f/g,Hj=/%h/g,Vj={1:"1",2:"1",3:"2",4:"2"};function VM(e,r,t,n){e=e.replace(Uj,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(Hj,function(){return Vj[t("%q")(a)]}),Io(n))try{e=Po.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var Gj=[59,59.9,59.99,59.999,59.9999];function Yj(e,r){var t=dl(e+.05,Ca),n=Bu(Math.floor(t/N0),2)+":"+Bu(dl(Math.floor(t/hl),60),2);if(r!=="M"){YM(r)||(r=0);var a=Math.min(dl(e/Uu,60),Gj[r]),o=(100+a).toFixed(r).slice(1);r>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+o}return n}sn.formatDate=function(e,r,t,n,a,o){if(a=Io(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 Yj(e,t)+`
`+VM(o.dayMonthYear,e,n,a);return VM(r,e,n,a)};var GM=3*Ca;sn.incrementMonth=function(e,r,t){t=Io(t)&&t;var n=dl(e,Ca);if(e=Math.round(e-n),t)try{var a=Math.round(e/Ca)+q0,o=Po.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-q0)*Ca+n}catch(u){lm.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+GM);return l.setUTCMonth(l.getUTCMonth()+r)+n-GM};sn.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=Io(r)&&Po.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+q0),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 sm=xe((v4e,ZM)=>{"use strict";ZM.exports=function(r){return r}});var fm=xe(zo=>{"use strict";var Xj=ft(),Wj=ll(),Zj=sm(),Jj=(Mn(),or(In)).BADNUM,um=1e-9;zo.findBin=function(e,r,t){if(Xj(r.start))return t?Math.ceil((e-r.start)/r.size-um)-1:Math.floor((e-r.start)/r.size+um);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?$j:Kj:u=t?jj:Qj,e+=i*um*(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&&Wj.log("Long binary search..."),n-1};function $j(e,r){return e<r}function Kj(e,r){return e<=r}function Qj(e,r){return e>r}function jj(e,r){return e>=r}zo.sorterAsc=function(e,r){return e-r};zo.sorterDes=function(e,r){return r-e};zo.distinctVals=function(e){var r=e.slice();r.sort(zo.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Jj;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}};zo.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]};zo.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()};zo.findIndexOfMin=function(e,r){r=r||Zj;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={};Ot(Hh,{default:()=>ree});function eee(e){return Object.keys(e).sort()}var ree,Vh=qt(()=>{"use strict";ree=eee});var JM=xe(un=>{"use strict";var O0=ft(),tee=ba().isArrayOrTypedArray;un.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),O0(r)||(r=!1),tee(t[0])){for(o=new Array(n),a=0;a<n;a++)o[a]=un.aggNums(e,r,t[a]);t=o}for(a=0;a<n;a++)O0(r)?O0(t[a])&&(r=e(+r,+t[a])):r=t[a];return r};un.len=function(e){return un.aggNums(function(r){return r+1},0,e)};un.mean=function(e,r){return r||(r=un.len(e)),un.aggNums(function(t,n){return t+n},0,e)/r};un.geometricMean=function(e,r){return r||(r=un.len(e)),Math.pow(un.aggNums(function(t,n){return t*n},1,e),1/r)};un.midRange=function(e){if(!(e===void 0||e.length===0))return(un.aggNums(Math.max,null,e)+un.aggNums(Math.min,null,e))/2};un.variance=function(e,r,t){return r||(r=un.len(e)),O0(t)||(t=un.mean(e,r)),un.aggNums(function(n,a){return n+Math.pow(a-t,2)},0,e)/r};un.stdev=function(e,r,t){return Math.sqrt(un.variance(e,r,t))};un.median=function(e){var r=e.slice().sort();return un.interp(r,.5)};un.interp=function(e,r){if(!O0(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((p4e,jM)=>{"use strict";var $M=(ku(),or(Au)),cm=$M.mod,nee=$M.modHalf,B0=Math.PI,pl=2*B0;function aee(e){return e/180*B0}function iee(e){return e/B0*180}function vm(e){return Math.abs(e[1]-e[0])>pl-1e-14}function KM(e,r){return nee(r-e,pl)}function oee(e,r){return Math.abs(KM(e,r))}function QM(e,r){if(vm(r))return!0;var t,n;r[0]<r[1]?(t=r[0],n=r[1]):(t=r[1],n=r[0]),t=cm(t,pl),n=cm(n,pl),t>n&&(n+=pl);var a=cm(e,pl),o=a+pl;return a>=t&&a<=n||o>=t&&o<=n}function lee(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 hm(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=vm([t,n]),u,s,f,c,g;l?(u=0,s=B0,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 d=Math.abs(f-u)<=B0?0:1;function _(m,k,S){return"A"+[m,m]+" "+[0,d,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 see(e,r,t,n,a){return hm(null,e,r,t,n,a,0)}function uee(e,r,t,n,a){return hm(null,e,r,t,n,a,1)}function fee(e,r,t,n,a,o){return hm(e,r,t,n,a,o,1)}jM.exports={deg2rad:aee,rad2deg:iee,angleDelta:KM,angleDist:oee,isFullCircle:vm,isAngleInsideSector:QM,isPtInsideSector:lee,pathArc:see,pathSector:uee,pathAnnulus:fee}});var rT=xe(Ms=>{"use strict";Ms.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Ms.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Ms.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Ms.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Ms.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Ms.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var aT=xe(Ts=>{"use strict";var dm=(ku(),or(Au)).mod;Ts.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,d=u*b-f*c;if(d===0)return null;var _=(s*b-f*g)/d,T=(s*c-u*g)/d;return T<0||T>1||_<0||_>1?null:{x:e+u*_,y:r+c*_}}Ts.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,d=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,d,r-o,t-i),Gh(c,g,d,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,pm,tT;Ts.getTextLocation=function(r,t,n,a){if((r!==pm||a!==tT)&&(Yh={},pm=r,tT=a),Yh[n])return Yh[n];var o=r.getPointAtLength(dm(n-a/2,t)),i=r.getPointAtLength(dm(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(dm(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};Ts.clearLocationCache=function(){pm=null};Ts.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 d=b(u);d;){if(u+=d+n,u>f)return;d=b(u)}for(d=b(f);d;){if(f-=d+n,u>f)return;d=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}};Ts.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,d;s<l;){if(g=(f+c)/2,b=r.getPointAtLength(g),d=b[n]-t,Math.abs(d)<i)return b;u*d>0?c=g:f=g,s++}return b}});var Xh=xe(U0=>{"use strict";var Fo={};U0.throttle=function(r,t,n){var a=Fo[r],o=Date.now();if(!a){for(var i in Fo)Fo[i].ts<o-6e4&&delete Fo[i];a=Fo[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)};U0.done=function(e){var r=Fo[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};U0.clear=function(e){if(e)iT(Fo[e]),delete Fo[e];else for(var r in Fo)U0.clear(r)};function iT(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var lT=xe((b4e,oT)=>{"use strict";oT.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var sT=xe((x4e,Wh)=>{"use strict";Wh.exports=gm;Wh.exports.isMobile=gm;Wh.exports.default=gm;var cee=/(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,vee=/CrOS/,hee=/android|ipad|playbook|silk/i;function gm(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=cee.test(r)&&!vee.test(r)||!!e.tablet&&hee.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((_4e,uT)=>{"use strict";var dee=ft(),pee=sT();uT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=gee(),typeof t!="string")return!0;var n=pee({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(dee(s)&&(s=+s),s>=13)return!0}}}return n};function gee(){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((w4e,cT)=>{"use strict";var yee=st();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]=yee.select(this)}),a}});var dT=xe((M4e,hT)=>{"use strict";var mee=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=mee.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var gT=xe((T4e,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((A4e,yT)=>{"use strict";yT.exports=function(r){for(var t=_ee(r)?xee:bee,n=[],a=0;a<r.length;a++){var o=r[a];t(o)&&n.push(o)}return n};function bee(e){return e.visible===!0}function xee(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function _ee(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var xT=xe((k4e,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={};Ot(wT,{default:()=>Tee});function Mee(e){return typeof e=="string"&&(e=e.replace(wee,"")),(0,_T.default)(e)?Number(e):void 0}var _T,wee,Tee,MT=qt(()=>{"use strict";_T=Q_(ft());Mn();wee=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Tee=Mee});var kT=xe((C4e,AT)=>{"use strict";var Aee=/<[^>]*>/g,kee=/[\p{S}\p{P}]/gu,See=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,Cee=/�/g,Eee=/\s+/g,Zh="-",TT=Zh.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Lee=new RegExp(TT+"{3,}","g"),Ree=new RegExp(TT+"$","g"),Dee=60;function Pee(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}AT.exports=function(r,t=Dee){var n=Pee(r!=null?r:"").replace(Cee,"").replace(Aee," ").replace(kee,a=>a===Zh?a:"").toLowerCase().trim().replace(Eee,Zh).replace(See,"").replace(Lee,Zh);return n.length<=t?n:Array.from(n).slice(0,t).join("").replace(Ree,"")}});var rr=xe((E4e,qT)=>{"use strict";var H0=st(),Iee=Mu().utcFormat,zee=f2().format,DT=ft(),PT=(Mn(),or(In)),IT=PT.FP_SAFE,Fee=-IT,ST=PT.BADNUM,Ue={};qT.exports=Ue;Ue.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={};Ue.warnBadFormat=function(e){var r=String(e);CT[r]||(CT[r]=1,Ue.warn('encountered bad format: "'+r+'"'))};Ue.noFormat=function(e){return String(e)};Ue.numberFormat=function(e){var r;try{r=zee(Ue.adjustFormat(e))}catch(t){return Ue.warnBadFormat(e),Ue.noFormat}return r};Ue.nestedProperty=Kv();Ue.keyedContainer=_7();Ue.relativeAttr=M7();Ue.isPlainObject=us();Ue.toLogRange=jv();Ue.relinkPrivateKeys=S7();var yl=ba();Ue.isArrayBuffer=yl.isArrayBuffer;Ue.isTypedArray=yl.isTypedArray;Ue.isArrayOrTypedArray=yl.isArrayOrTypedArray;Ue.isArray1D=yl.isArray1D;Ue.ensureArray=yl.ensureArray;Ue.concat=yl.concat;Ue.maxRowLength=yl.maxRowLength;Ue.minRowLength=yl.minRowLength;var zT=(ku(),or(Au));Ue.mod=zT.mod;Ue.modHalf=zT.modHalf;var ml=Z8();Ue.valObjectMeta=ml.valObjectMeta;Ue.coerce=ml.coerce;Ue.coerce2=ml.coerce2;Ue.coerceFont=ml.coerceFont;Ue.coercePattern=ml.coercePattern;Ue.coerceHoverinfo=ml.coerceHoverinfo;Ue.coerceSelectionMarkerOpacity=ml.coerceSelectionMarkerOpacity;Ue.validate=ml.validate;var Va=WM();Ue.dateTime2ms=Va.dateTime2ms;Ue.isDateTime=Va.isDateTime;Ue.ms2DateTime=Va.ms2DateTime;Ue.ms2DateTimeLocal=Va.ms2DateTimeLocal;Ue.cleanDate=Va.cleanDate;Ue.isJSDate=Va.isJSDate;Ue.formatDate=Va.formatDate;Ue.incrementMonth=Va.incrementMonth;Ue.dateTick0=Va.dateTick0;Ue.dfltRange=Va.dfltRange;Ue.findExactDates=Va.findExactDates;Ue.MIN_MS=Va.MIN_MS;Ue.MAX_MS=Va.MAX_MS;var As=fm();Ue.findBin=As.findBin;Ue.sorterAsc=As.sorterAsc;Ue.sorterDes=As.sorterDes;Ue.distinctVals=As.distinctVals;Ue.roundUp=As.roundUp;Ue.sort=As.sort;Ue.findIndexOfMin=As.findIndexOfMin;Ue.sortObjectKeys=(Vh(),or(Hh)).default;var No=JM();Ue.aggNums=No.aggNums;Ue.len=No.len;Ue.mean=No.mean;Ue.geometricMean=No.geometricMean;Ue.median=No.median;Ue.midRange=No.midRange;Ue.variance=No.variance;Ue.stdev=No.stdev;Ue.interp=No.interp;var Li=Dh();Ue.init2dArray=Li.init2dArray;Ue.transposeRagged=Li.transposeRagged;Ue.dot=Li.dot;Ue.translationMatrix=Li.translationMatrix;Ue.rotationMatrix=Li.rotationMatrix;Ue.rotationXYMatrix=Li.rotationXYMatrix;Ue.apply3DTransform=Li.apply3DTransform;Ue.apply2DTransform=Li.apply2DTransform;Ue.apply2DTransform2=Li.apply2DTransform2;Ue.convertCssMatrix=Li.convertCssMatrix;Ue.inverseTransformMatrix=Li.inverseTransformMatrix;var io=eT();Ue.deg2rad=io.deg2rad;Ue.rad2deg=io.rad2deg;Ue.angleDelta=io.angleDelta;Ue.angleDist=io.angleDist;Ue.isFullCircle=io.isFullCircle;Ue.isAngleInsideSector=io.isAngleInsideSector;Ue.isPtInsideSector=io.isPtInsideSector;Ue.pathArc=io.pathArc;Ue.pathSector=io.pathSector;Ue.pathAnnulus=io.pathAnnulus;var Gu=rT();Ue.isLeftAnchor=Gu.isLeftAnchor;Ue.isCenterAnchor=Gu.isCenterAnchor;Ue.isRightAnchor=Gu.isRightAnchor;Ue.isTopAnchor=Gu.isTopAnchor;Ue.isMiddleAnchor=Gu.isMiddleAnchor;Ue.isBottomAnchor=Gu.isBottomAnchor;var Yu=aT();Ue.segmentsIntersect=Yu.segmentsIntersect;Ue.segmentDistance=Yu.segmentDistance;Ue.getTextLocation=Yu.getTextLocation;Ue.clearLocationCache=Yu.clearLocationCache;Ue.getVisibleSegment=Yu.getVisibleSegment;Ue.findPointOnPath=Yu.findPointOnPath;var Kh=Rt();Ue.extendFlat=Kh.extendFlat;Ue.extendDeep=Kh.extendDeep;Ue.extendDeepAll=Kh.extendDeepAll;Ue.extendDeepNoArrays=Kh.extendDeepNoArrays;var ym=ll();Ue.log=ym.log;Ue.warn=ym.warn;Ue.error=ym.error;var Nee=(Fu(),or(I0));Ue.counterRegex=Nee.counter;var mm=Xh();Ue.throttle=mm.throttle;Ue.throttleDone=mm.done;Ue.clearThrottle=mm.clear;var Ri=z0();Ue.getGraphDiv=Ri.getGraphDiv;Ue.isPlotDiv=Ri.isPlotDiv;Ue.removeElement=Ri.removeElement;Ue.addStyleRule=Ri.addStyleRule;Ue.addRelatedStyleRule=Ri.addRelatedStyleRule;Ue.deleteRelatedStyleRule=Ri.deleteRelatedStyleRule;Ue.setStyleOnHover=Ri.setStyleOnHover;Ue.getFullTransformMatrix=Ri.getFullTransformMatrix;Ue.getElementTransformMatrix=Ri.getElementTransformMatrix;Ue.getElementAndAncestors=Ri.getElementAndAncestors;Ue.equalDomRects=Ri.equalDomRects;Ue.clearResponsive=lT();Ue.preserveDrawingBuffer=fT();Ue.makeTraceGroups=vT();Ue._=dT();Ue.notifier=Vy();Ue.filterUnique=gT();Ue.filterVisible=mT();Ue.pushUnique=Qy();Ue.increment=xT();Ue.cleanNumber=(MT(),or(wT)).default;Ue.slugify=kT();Ue.ensureNumber=function(r){return DT(r)?(r=Number(r),r>IT||r<Fee?ST:r):ST};Ue.isIndex=function(e,r){return r!==void 0&&e>=r?!1:DT(e)&&e>=0&&e%1===0};Ue.noop=Rh();Ue.identity=sm();Ue.repeat=function(e,r){for(var t=new Array(r),n=0;n<r;n++)t[n]=e;return t};Ue.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=Ue.nestedProperty(e,o.replace("?",t)),l=Ue.nestedProperty(e,o.replace("?",n)),u=i.get();i.set(l.get()),l.set(u)}};Ue.raiseToTop=function(r){r.parentNode.appendChild(r)};Ue.cancelTransition=function(e){return e.transition().duration(0)};Ue.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Ue.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};Ue.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};Ue.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?(Ue.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};Ue.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};Ue.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};Ue.syncOrAsync=function(e,r,t){var n,a;function o(){return Ue.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)};Ue.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Ue.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]]}};Ue.mergeArray=function(e,r,t,n){var a=typeof n=="function";if(Ue.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}};Ue.mergeArrayCastPositive=function(e,r,t){return Ue.mergeArray(e,r,t,function(n){var a=+n;return isFinite(a)&&a>0?a:0})};Ue.fillArray=function(e,r,t,n){if(n=n||Ue.identity,Ue.isArrayOrTypedArray(e))for(var a=0;a<r.length;a++)r[a][t]=n(e[a])};Ue.castOption=function(e,r,t,n){n=n||Ue.identity;var a=Ue.nestedProperty(e,t).get();return Ue.isArrayOrTypedArray(a)?Array.isArray(r)&&Ue.isArrayOrTypedArray(a[r[0]])?n(a[r[0]][r[1]]):n(a[r]):a};Ue.extractOption=function(e,r,t,n){if(t in e)return e[t];var a=Ue.nestedProperty(r,n).get();if(!Array.isArray(a))return a};Ue.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(Ue.isIndex(i)||Ue.isArrayOrTypedArray(i)&&Ue.isIndex(i[0])&&Ue.isIndex(i[1])){var l=i,u=t?t[l]:l;a(u)&&(e[u].selected=1)}}};Ue.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var n=Ue.nestedProperty(e,t).get();return Ue.isArrayOrTypedArray(n)?n:!1}else if(Ue.isArrayOrTypedArray(t))return t;return!1};function FT(e,r,t){var n={};typeof r!="object"&&(r={});var a=t==="pieLike"?-1:3,o=Object.keys(e),i,l,u;for(i=0;i<o.length;i++)l=o[i],u=e[l],!(l.charAt(0)==="_"||typeof u=="function")&&(l==="module"?n[l]=u:Array.isArray(u)?l==="colorscale"||a===-1?n[l]=u.slice():n[l]=u.slice(0,a):Ue.isTypedArray(u)?a===-1?n[l]=u.subarray():n[l]=u.subarray(0,a):u&&typeof u=="object"?n[l]=FT(e[l],r[l],t):n[l]=u);for(o=Object.keys(r),i=0;i<o.length;i++)l=o[i],u=r[l],(typeof u!="object"||!(l in n)||typeof n[l]!="object")&&(n[l]=u);return n}Ue.minExtend=FT;Ue.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};Ue.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var qee=/Version\/[\d\.]+.*Safari/;Ue.isSafari=function(){return qee.test(window.navigator.userAgent)};var Oee=/iPad|iPhone|iPod/;Ue.isIOS=function(){return Oee.test(window.navigator.userAgent)};var Bee=/Macintosh.+AppleWebKit.+Gecko\)$/;Ue.isMacWKWebView=()=>Bee.test(window.navigator.userAgent);var Uee=/Firefox\/(\d+)\.\d+/;Ue.getFirefoxVersion=function(){var e=Uee.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Ue.isD3Selection=function(e){return e instanceof H0.selection};Ue.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};Ue.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};Ue.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 Hee=/^([^\[\.]+)\.(.+)?/,Vee=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Jh(e,r){return r in e&&!Object.prototype.hasOwnProperty.call(e,r)}Ue.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(Hee)){if(a=e[t],n=r[1],Jh(e,n))continue;delete e[t],e[n]=Ue.extendDeepNoArrays(e[n]||{},Ue.objectFromPath(t,Ue.expandObjectPaths(a))[n])}else if(r=t.match(Vee)){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]||{},Ue.extendDeepNoArrays(i,Ue.objectFromPath(l,Ue.expandObjectPaths(a)));else{if(Jh(e,n))continue;e[n][o]=Ue.expandObjectPaths(a)}}else{if(Jh(e,t))continue;e[t]=Ue.expandObjectPaths(e[t])}}return e};Ue.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};Ue.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var NT=/^\w*$/;Ue.templateString=function(e,r){var t={};return e.replace(Ue.TEMPLATE_STRING_REGEX,function(n,a){var o;return NT.test(a)?o=r[a]:(t[a]=t[a]||Ue.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var Gee={max:10,count:0,name:"hovertemplate"};Ue.hovertemplateString=e=>bm(Nt(Mt({},e),{opts:Gee}));var Yee={max:10,count:0,name:"texttemplate"};Ue.texttemplateString=e=>bm(Nt(Mt({},e),{opts:Yee}));var Xee=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Wee(e){var r=e.match(Xee);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Zee={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ue.texttemplateStringForShapes=e=>bm(Nt(Mt({},e),{opts:Zee}));var ET=/^[:|\|]/;function bm({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:o}){return o.replace(Ue.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 d=null,_=null;if(a.parseMultDiv){var T=Wee(l);l=T.key,d=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=Ue.nestedProperty(M,l).get(!0)),m!==void 0)break}if(m===void 0){let{count:M,max:h,name:w}=a,y=t===!1?i:t;return M<h&&Ue.warn([`Variable '${l}' in ${w} could not be found!`,"Please verify that the template is correct.",`Using value: '${y}'.`].join(" ")),M===h&&Ue.warn(`Too many '${w}' warnings - additional warnings will be suppressed.`),a.count++,y}if(d==="*"&&(m*=_),d==="/"&&(m/=_),u){var k;if(u[0]===":"&&(k=r?r.numberFormat:Ue.numberFormat,m!==""&&(m=k(u.replace(ET,""))(m))),u[0]==="|"){k=r?r.timeFormat:Iee;var S=Ue.dateTime2ms(m);m=Ue.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;Ue.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 Vu=2e9;Ue.seedPseudoRandom=function(){Vu=2e9};Ue.pseudoRandom=function(){var e=Vu;return Vu=(69069*Vu+1)%4294967296,Math.abs(Vu-e)<429496729?Ue.pseudoRandom():Vu/4294967296};Ue.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=Ue.extractOption(e,r,"htx","hovertext");if(Ue.isValidTextValue(a))return n(a);var o=Ue.extractOption(e,r,"tx","text");if(Ue.isValidTextValue(o))return n(o)};Ue.isValidTextValue=function(e){return e||e===0};Ue.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};Ue.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};Ue.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};Ue.strRotate=function(e){return e?"rotate("+e+")":""};Ue.strScale=function(e){return e!==1?"scale("+e+")":""};Ue.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,Ue.strTranslate(a-s*(t+i),o-s*(n+l))+Ue.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};Ue.setTransormAndDisplay=function(e,r){e.attr("transform",Ue.getTextTransform(r)),e.style("display",r.scale?null:"none")};Ue.ensureUniformFontSize=function(e,r){var t=Ue.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Ue.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)};Ue.bigFont=function(e){return Math.round(1.2*e)};var RT=Ue.getFirefoxVersion(),Jee=RT!==null&&RT<86;Ue.getPositionFromD3Event=function(){return Jee?[H0.event.layerX,H0.event.layerY]:[H0.event.offsetX,H0.event.offsetY]}});var UT=xe(()=>{"use strict";var $ee=rr(),OT={"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(xm in OT)BT=xm.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),$ee.addStyleRule(BT,OT[xm]);var BT,xm});var _m=xe((P4e,HT)=>{HT.exports=!0});var Mm=xe((I4e,VT)=>{"use strict";var Kee=_m(),wm;typeof window.matchMedia=="function"?wm=!window.matchMedia("(hover: none)").matches:wm=Kee;VT.exports=wm});var e1=xe((z4e,Tm)=>{"use strict";var Xu=typeof Reflect=="object"?Reflect:null,GT=Xu&&typeof Xu.apply=="function"?Xu.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},Qh;Xu&&typeof Xu.ownKeys=="function"?Qh=Xu.ownKeys:Object.getOwnPropertySymbols?Qh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Qh=function(r){return Object.getOwnPropertyNames(r)};function Qee(e){console&&console.warn&&console.warn(e)}var XT=Number.isNaN||function(r){return r!==r};function Pt(){Pt.init.call(this)}Tm.exports=Pt;Tm.exports.once=tre;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,Qee(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 jee(){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=jee.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():ere(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?rre(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 ere(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function rre(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function tre(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"&&nre(e,a,{once:!0})})}function nre(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 V0=xe((F4e,eA)=>{"use strict";var Am=e1().EventEmitter,are={init:function(e){if(e._ev instanceof Am)return e;var r=new Am,t=new Am;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=are});var nA=xe((N4e,tA)=>{"use strict";var rA=rr(),ire=ol().dfltConfig;function ore(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 qo={};qo.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>ire.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};qo.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};qo.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};qo.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++)qo.plotDo(r,t.undo.calls[n],t.undo.args[n]);r.undoQueue.inSequence=!1,r.autoplay=!1}};qo.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++)qo.plotDo(r,t.redo.calls[n],t.redo.args[n]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};qo.plotDo=function(e,r,t){e.autoplay=!0,t=ore(e,t),r.apply(null,t)};tA.exports=qo});var km=xe((q4e,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 Ju=xe(bn=>{"use strict";var oi=Cr(),G0=rr(),t1=Zn(),Sm=Ou(),lre=km(),sre=F0(),ure=ol().configAttributes,iA=ua(),Di=G0.extendDeepAll,Wu=G0.isPlainObject,fre=G0.isArrayOrTypedArray,n1=G0.nestedProperty,cre=G0.valObjectMeta,Cm="_isSubplotObj",a1="_isLinkedToArray",vre="_arrayAttrRegexps",lA="_deprecated",Em=[Cm,a1,vre,lA];bn.IS_SUBPLOT_OBJ=Cm;bn.IS_LINKED_TO_ARRAY=a1;bn.DEPRECATED=lA;bn.UNDERSCORE_ATTRS=Em;bn.get=function(){var e={};return oi.allTypes.forEach(function(r){e[r]=dre(r)}),{defs:{valObjects:cre,metaKeys:Em.concat(["description","role","editType","impliedEdits"]),editType:{traces:iA.traces,layout:iA.layout},impliedEdits:{}},traces:e,layout:pre(),frames:gre(),animation:Zu(sre),config:Zu(ure)}};bn.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(Em.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!bn.isValObject(i)&&Wu(i)&&o!=="impliedEdits"&&bn.crawl(i,r,a+1,l)}})};bn.isValObject=function(e){return e&&e.valType!==void 0};bn.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)fre(c)&&r.push(o+g);else if(n[s]){if(Array.isArray(c))for(var b=0;b<c.length;b++)Wu(c[b])&&l(c[b],s+1,g+"["+b+"].")}else Wu(c)&&l(c,s+1,g+".")}return a=e,o="",bn.crawl(t1,i),e._module&&e._module.attributes&&bn.crawl(e._module.attributes,i),r};bn.getTraceValObject=function(e,r){var t=r[0],n=1,a,o,i=e._module;if(i||(i=(oi.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)};bn.getLayoutValObject=function(e,r){var t=hre(e,r[0]);return sA(t,r,1)};function hre(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 oi.componentsRegistry){if(a=oi.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 Sm?Sm[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(Wu(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 dre(e){var r,t;r=oi.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=Di({},t1),o=Di({},r.attributes);bn.crawl(o,function(u,s,f,c,g){n1(a,g).set(void 0),u===void 0&&n1(o,g).set(void 0)}),Di(n,a),oi.traceIs(e,"noOpacity")&&delete n.opacity,oi.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),oi.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,Di(n,o),t.attributes&&Di(n,t.attributes),n.type=e;var i={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Zu(n)};if(r.layoutAttributes){var l={};Di(l,r.layoutAttributes),i.layoutAttributes=Zu(l)}return r.animatable||bn.crawl(i,function(u){bn.isValObject(u)&&"anim"in u&&delete u.anim}),i}function pre(){var e={},r,t;Di(e,Sm);for(r in oi.subplotsRegistry)if(t=oi.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 oi.componentsRegistry){t=oi.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"?Di(e,t.layoutAttributes):t.layoutAttributes&&xre(e,t.layoutAttributes,t.name)}return{layoutAttributes:Zu(e)}}function gre(){var e={frames:Di({},lre)};return Zu(e),e.frames}function Zu(e){return yre(e),mre(e),bre(e),e}function yre(e){function r(t,n,a){!bn.isValObject(t)&&Wu(t)&&(t.role="object")}bn.crawl(e,r)}function mre(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")}}bn.crawl(e,r)}function bre(e){function r(t){for(var n in t)if(Wu(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=Di({},r.layoutAttributes);a[Cm]=!0,n.set(a)}function xre(e,r,t){var n=n1(e,t);n.set(Di(n.get()||{},r))}});var At=xe(ks=>{"use strict";var $u=rr(),_re=Zn(),bl="templateitemname",Lm={name:{valType:"string",editType:"none"}};Lm[bl]={valType:"string",editType:"calc"};ks.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Lm.name,r[bl]=Lm[bl],r};ks.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=$u.coerce(o,{},_re,"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}};ks.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);$u.isPlainObject(a)||(a=null);var o=e[r]={_template:a};return o};ks.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"&&$u.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}ks.arrayDefaultKey=fA;ks.arrayEditor=function(e,r,t){var n=($u.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,d){l[b]=d}function f(b,d){o?$u.nestedProperty(l[i],b).set(d):l[i+"."+b]=d}function c(){var b=l;return u(),b}function g(b,d){b&&f(b,d);var _=c();for(var T in _)$u.nestedProperty(e,T).set(_[T])}return{modifyBase:s,modifyItem:f,getUpdateObj:c,applyUpdate:g}}});var kn={};Ot(kn,{AX_ID_PATTERN:()=>kre,AX_NAME_PATTERN:()=>Sre,DFLTRANGEX:()=>zre,DFLTRANGEY:()=>Fre,DRAGGERSIZE:()=>Pre,HOUR_PATTERN:()=>Ere,MINDRAG:()=>Rre,MINZOOM:()=>Dre,REDRAWDELAY:()=>Ire,SUBPLOT_PATTERN:()=>Cre,WEEKDAY_PATTERN:()=>Lre,attrRegex:()=>Mre,clipOnAxisFalseQuery:()=>qre,idRegex:()=>wre,layerValue2layerClass:()=>Ore,traceLayerClasses:()=>Nre,xAxisMatch:()=>Tre,yAxisMatch:()=>Are,zindexSeparator:()=>Bre});var wre,Mre,Tre,Are,kre,Sre,Cre,Ere,Lre,Rre,Dre,Pre,Ire,zre,Fre,Nre,qre,Ore,Bre,Sn=qt(()=>{"use strict";Fu();wre={x:_s("x","( domain)?"),y:_s("y","( domain)?")},Mre=_s("[xy]axis"),Tre=_s("xaxis"),Are=_s("yaxis"),kre=/^[xyz][0-9]*( domain)?$/,Sre=/^[xyz]axis[0-9]*$/,Cre=/^x([0-9]*)y([0-9]*)$/,Ere="hour",Lre="day of week",Rre=8,Dre=20,Pre=20,Ire=50,zre=[-1,6],Fre=[-1,4],Nre=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],qre=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Ore={"above traces":"above","below traces":"below"},Bre="z"});var xn=xe(Ea=>{"use strict";var Ure=Cr(),Rm=(Sn(),or(kn));Ea.id2name=function(r){if(!(typeof r!="string"||!r.match(Rm.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(Rm.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(Rm.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(Ure.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((V4e,vA)=>{"use strict";function Hre(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Vre(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}vA.exports={clearOutlineControllers:Hre,clearOutline:Vre}});var i1=xe((G4e,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 Y0=xe(l1=>{"use strict";var o1=Cr(),Y4e=(Sn(),or(kn)).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(Ss=>{"use strict";var Gre=Cr(),Ku=rr();Ss.manageCommandObserver=function(e,r,t,n){var a={},o=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var i=Ss.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 Ku.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};Ss.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=Ss.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=Ku.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}}Ss.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var n=Gre.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 Ku.warn("API call to Plotly."+r+" rejected.",i),Promise.reject(i)})};Ss.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=Yre(e,t);break;default:n=[]}return n};function Yre(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(Ku.isPlainObject(n))a=n;else return t;return Dm(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(Ku.isPlainObject(n))o=n,t===void 0&&(t=a);else return i;return t===void 0&&(t=null),Dm(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 d=c;c=[];for(var _=0;_<f.length;_++)c[_]=d}c.length=Math.min(f.length,c.length)}i.push({type:"data",prop:l,traces:f,value:c})},"",0),i}function Dm(e,r,t,n){Object.keys(e).forEach(function(a){var o=e[a];if(a[0]!=="_"){var i=t+(n>0?".":"")+a;Ku.isPlainObject(o)?Dm(o,r,i,n+1):r(i,a,o)}})}});var Cn=xe((J4e,SA)=>{"use strict";var Z4e=st(),Xre=Mu().timeFormatLocale,Wre=f2().formatLocale,X0=ft(),Zre=v2(),Jre=f0().version,ct=Cr(),$re=Ju(),Kre=At(),mr=rr(),Qre=Zr(),mA=(Mn(),or(In)).BADNUM,La=xn(),jre=xl().clearOutline,ete=i1(),Pm=F0(),rte=km(),tte=Y0().getModuleCalcData,bA=mr.relinkPrivateKeys,Cs=mr._,fr=SA.exports={};mr.extendFlat(fr,ct);fr.attributes=Zn();fr.attributes.type.values=fr.allTypes;fr.fontAttrs=Wn();fr.layoutAttributes=Ou();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&&(ct.getComponentMethod("annotations","draw")(e),ct.getComponentMethod("legend","draw")(e),ct.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,ct.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=Jre;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 nte=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],ate=["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:Cs(e,"Click to enter Plot title"),subtitle:Cs(e,"Click to enter Plot subtitle"),x:Cs(e,"Click to enter X axis title"),y:Cs(e,"Click to enter Y axis title"),colorbar:Cs(e,"Click to enter Colorscale title"),annotation:Cs(e,"new text")},a._traceWord=Cs(e,"trace");var g=xA(e,nte);if(n._initialAutoSizeIsDone){var b=n.width,d=n.height;fr.supplyLayoutGlobalDefaults(o,a,g),o.width||(a.width=b),o.height||(a.height=d),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=lte(g,a.separators),a._extraFormat=xA(e,ate),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=ote(),x=a._splomAxes={x:{},y:{}},M=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=ite(i,u),fr.supplyDataDefaults(u,l,o,a);var h=Object.keys(x.x),w=Object.keys(x.y);if(h.length>1&&w.length>1){for(ct.getComponentMethod("grid","sizeDefaults")(o,a),c=0;c<h.length;c++)mr.pushUnique(S.xaxis,h[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"&&h.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 R=!!(n._has&&n._has("cartesian")),E=!!(a._has&&a._has("cartesian")),D=R,I=E;D&&!I?n._bgLayer.remove():I&&!D&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&jre({_fullLayout:n}),ste(l,a),bA(a,n),ct.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var F=a._tracePreGUI,P={},L;for(L in F)P[L]="old";for(c=0;c<l.length;c++)L=l[c].uid,P[L]||(F[L]={}),P[L]="new";for(L in P)P[L]==="old"&&delete F[L];MA(a),ct.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 ite(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 ote(){var e=ct.collectableSubplotTypes,r={},t,n;if(!e){e=[];var a=ct.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 d=r[b];a[d]||(c[d]?a[d]=c[d]: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=ct.localeRegistry}var f=t.split("-")[0];if(n||f===t)break;t=f}return n||o(ct.localeRegistry.en.format),a}function lte(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=Wre(e).format(mr.adjustFormat(t))}catch(n){return mr.warnBadFormat(t),mr.noFormat}return t},timeFormat:Xre(e).utcFormat}}function ste(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=ct.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"),d=La.getFromId(s,c,"y"),_;for(g?_=l[c]=g:(_=l[c]={},_.id=c),b._counterAxes.push(d._id),d._counterAxes.push(b._id),b._subplotsWith.push(c),d._subplotsWith.push(c),_.xaxis=b,_.yaxis=d,_._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=ute(k,r),k._counterAxes.length&&(k.automargin&&k.mirror&&k.anchor!=="free"||ct.getComponentMethod("rangeslider","isVisible")(k))){var x=1,M=0;for(o=0;o<k._counterAxes.length;o++){var h=La.getFromId(s,k._counterAxes[o]);x=Math.min(x,h.domain[0]),M=Math.max(M,h.domain[1])}x<M&&(k._counterDomainMin=x,k._counterDomainMax=M)}};function ute(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={},d=[],_=(t.template||{}).data||{},T=Kre.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),ct.traceIs(f,"carpetAxis")&&(b[f.carpet]=f),ct.traceIs(f,"carpetDependent")&&d.push(s);for(s=0;s<d.length;s++)if(f=r[d[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,Pm,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,Pm.frame,n,a)}return t("duration"),t("redraw"),r};fr.supplyAnimationTransitionDefaults=function(e){var r={};function t(n,a){return mr.coerce(e||{},r,Pm.transition,n,a)}return t("duration"),t("easing"),r};fr.supplyFrameDefaults=function(e){var r={};function t(n,a){return mr.coerce(e,r,rte,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||Qre.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 d=n._subplots,_="";if(Array.isArray(g))for(l=0;l<g.length;l++){var T=g[l],m=mr.coerce(e,r,b,T);d[T]&&mr.pushUnique(d[T],m),_+=m}else _=mr.coerce(e,r,b,g);d[c.name]&&mr.pushUnique(d[c.name],_)}}if(s&&(u("customdata"),u("ids"),u("meta"),ct.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),ct.traceIs(r,"noOpacity")||u("opacity"),ct.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),ct.traceIs(r,"noHover")||(r.hovertemplate||mr.coerceHoverinfo(e,r,n),r.type!=="parcats"&&ct.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),ct.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),ct.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),ct.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,n),ct.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,n),n("meta"),mr.isPlainObject(e.transition)&&(n("transition.duration"),n("transition.easing"),n("transition.ordering")),ct.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),ct.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,n),mr.coerce(e,r,ete,"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,X0(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,d=!t.height&&Math.abs(n.height-l)>1;(d||b)&&(b&&(n.width=i),d&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),fr.sanitizeMargins(n)};fr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=ct.componentsRegistry,o=r._basePlotModules,i,l,u,s=ct.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(ct.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,d=n._pushmarginIds;if(i.autoexpand!==!1){if(!t)delete b[r],delete d[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+_}},d[r]=1}if(!n._replotting)return fr.doAutoMargin(e)}};function fte(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,d=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 h=0;for(var w in g)w!=="base"&&X0(g[w][M].size)&&(h=g[w][M].size>h?g[w][M].size:h);var y=Math.max(0,o[M]-h);i[M]=Math.max(0,i[M]-y)}for(var v in g){var A=g[v].l||{},p=g[v].b||{},R=A.val,E=A.size,D=p.val,I=p.size,F=t-i.r-i.l,P=n-i.t-i.b;for(var L in g){if(X0(E)&&g[L].r){var z=g[L].r.val,O=g[L].r.size;if(z>R){var B=(E*z+(O-F)*R)/(z-R),V=(O*(1-R)+(E-F)*(1-z))/(z-R);B+V>u+s&&(u=B,s=V)}}if(X0(I)&&g[L].t){var J=g[L].t.val,Q=g[L].t.size;if(J>D){var G=(I*J+(Q-P)*D)/(J-D),q=(Q*(1-D)+(I-P)*(1-J))/(J-D);G+q>c+f&&(c=G,f=q)}}}}}var Z=mr.constrain(t-o.l-o.r,TA,d),re=mr.constrain(n-o.t-o.b,AA,_),$=Math.max(0,t-Z),ie=Math.max(0,n-re);if($){var j=(u+s)/$;j>1&&(u/=j,s/=j)}if(ie){var te=(c+f)/ie;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)||fte(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ue=3*(1+Object.keys(b).length);if(r._redrawFromAutoMarginCount<ue)return ct.call("_doPlot",e);r._size=l,mr.warn("Too many auto-margin redraws.")}cte(e)};function cte(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(!X0(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 d=Array.isArray(c),_=mr.isTypedArray(c);if((d||_)&&c.dtype&&c.shape){var T=c.bdata;return u({dtype:c.dtype,shape:c.shape,bdata:mr.isArrayBuffer(T)?Zre.encode(T):T},g)}return d?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 d=s[i];d===null?f[i]=null:f[i]=fr.extendObjectWithContainers(f[i],d)}u.set(f)}}return e};fr.dataArrayContainers=["dimensions"];fr.layoutArrayContainers=ct.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],d=b._module;if(d){if(d.animatable){var _=d.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 h=x[M],w=h.xaxis,y=h.yaxis,v=w.range.slice(),A=y.range.slice(),p=null,R=null,E=null,D=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"])?R=S[y._name+".range"].slice():Array.isArray((S[y._name]||{}).range)&&(R=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&&R&&(y.r2l(A[0])!==y.r2l(R[0])||y.r2l(A[1])!==y.r2l(R[1]))&&(D={yr0:A,yr1:R}),(E||D)&&u.push(mr.extendFlat({plotinfo:h},E,D))}}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 d in l){var _=l[d],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(),d=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(d[0])!==g.r2l(T[0])||g.r2l(d[1])!==g.r2l(T[1]))&&(k={yr0:d,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,d,_=[],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,d,b,u)}l.length&&r.anim?o.ordering==="traces first"?(g=mr.extendFlat({},o,{duration:0}),d=_,b=o,setTimeout(m,o.duration),k()):(g=o,d=null,b=mr.extendFlat({},o,{duration:0}),setTimeout(k,g.duration),m()):l.length?(g=o,m()):r.anim&&(d=_,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 ct.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var g=0,b=0;function d(){return g++,function(){b++,!n&&b===g&&l(c)}}t.runFn(d),setTimeout(d())})}function l(c){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return ct.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=$re.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(dte(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 d=hte(t,e);if(d.length){for(a._numBoxes=0,a._numViolins=0,l=0;l<d.length;l++)b(d[l],!0);for(l=0;l<d.length;l++)b(d[l],!1);wA(e)}ct.getComponentMethod("fx","calc")(e),ct.getComponentMethod("errorbars","calc")(e)};var vte=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function hte(e,r){var t=[],n,a,o,i,l;function u(L,z,O){var B=z._id.charAt(0);if(L==="histogram2dcontour"){var V=z._counterAxes[0],J=La.getFromId(r,V),Q=B==="x"||V==="x"&&J.type==="category",G=B==="y"||V==="y"&&J.type==="category";return function(q,Z){return q===0||Z===0||Q&&q===O[Z].length-1||G&&Z===O.length-1?-1:(B==="y"?Z:q)-1}}else return function(q,Z){return B==="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(z,O){return z+O},null,L)},total:function(L){return mr.aggNums(function(z,O){return z+O},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,z){return L[1]-z[1]}function c(L,z){return z[1]-L[1]}for(n=0;n<e.length;n++){var g=e[n];if(g.type==="category"){var b=g.categoryorder.match(vte);if(b){var d=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;ct.traceIs(x,"histogram")&&(delete x._xautoBinFinished,delete x._yautoBinFinished);var h=M==="splom",w=M==="scattergl",y=r.calcdata[S];for(o=0;o<y.length;o++){var v=y[o],A,p;if(h){var R=x._axesDim[g._id];if(!m){var E=x._diag[R][0];E&&(g=r._fullLayout[La.id2name(E)])}var D=v.trace.dimensions[R].values;for(i=0;i<D.length;i++)for(A=g._categoriesMap[D[i]],l=0;l<v.trace.dimensions.length;l++)if(l!==R){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 F=u(x.type,g,p);for(i=0;i<p.length;i++)for(l=0;l<p[i].length;l++)A=F(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 P=[];for(a=0;a<k.length;a++)P.push([k[a][0],s[d](k[a][1])]);P.sort(_==="descending"?c:f),g._categoriesAggregatedValue=P,g._initialCategories=P.map(function(L){return L[0]}),t=t.concat(g.sortByInitialCategories())}}}return t}function dte(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);ct.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],d=b[0][0].trace._module;d.plot(e,r,mr.filterVisible(b),n)}r.traceHash=o};fr.plotBasePlot=function(e,r,t,n,a){var o=ct.getModule(e),i=tte(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={};Ot(_l,{svg:()=>CA,svgAttrs:()=>gte,xlink:()=>EA,xmlns:()=>pte});var pte,CA,EA,gte,wl=qt(()=>{"use strict";pte="http://www.w3.org/2000/xmlns/",CA="http://www.w3.org/2000/svg",EA="http://www.w3.org/1999/xlink",gte={xmlns:CA,"xmlns:xlink":EA}});var $n={};Ot($n,{CAP_SHIFT:()=>_te,FROM_BL:()=>yte,FROM_BR:()=>bte,FROM_TL:()=>mte,LINE_SPACING:()=>xte,MID_SHIFT:()=>wte,OPPOSITE_SIDE:()=>Mte});var yte,mte,bte,xte,_te,wte,Mte,Kn=qt(()=>{"use strict";yte={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},mte={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},bte={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},xte=1.3,_te=.7,wte=.35,Mte={left:"right",right:"left",top:"bottom",bottom:"top"}});var Qn=xe(fa=>{"use strict";var tn=st(),li=rr(),Tte=li.strTranslate,Im=(wl(),or(_l)),Ate=(Kn(),or($n)).LINE_SPACING,kte=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,Nm=e=>e?e.match(kte):null;fa.matchTex=Nm;var Ste=e=>{var r=Nm(e);return!!r&&!r[1]&&!r[3]};fa.isPureTex=Ste;function zA(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 d=+e.attr("x"),_=+e.attr("y"),T=o||e.node().getBoundingClientRect().height,m=-T/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,d,_]+")"+Tte(-f/2,m-c/2)}):r[0]==="l"?_=m-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(d=0,_=m):(d=d-f*(a==="middle"?.5:a==="end"?1:0),_=_+m-c/2),n.attr({x:d,y:_})}function Cte(e){e.selectAll("a").each(function(){var r=tn.select(this);["href","xlink:href"].forEach(function(t){var n=r.attr(t);n&&r.attr(t,Bm(n)||null)})})}fa.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&Nm(n);a&&!Dte()&&(a=null);var o=tn.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=Hte(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");Pte(a[2],f,function(g,b,d){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()),Cte(_),b&&b.node()&&_.node().insertBefore(b.node().cloneNode(!0),_.node().firstChild);var m=d.width,k=d.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}),zA(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=tn.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);zA(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=tn.select(r.parentNode).select("g."+t+"-group");return n.empty()?r:n.node()};var Ete=/(<|<|<)/g,Lte=/(>|>|>)/g;function Rte(e){return e.replace(Ete,"\\lt ").replace(Lte,"\\gt ")}var zm=null,FA=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,LA=!1,RA=!1;function Dte(){let e=FA();return e===3||e===4?!0:(e===null?LA||(LA=!0,li.warn("MathJax is not loaded. Math equations will not be rendered.")):RA||(RA=!0,li.warn("Unsupported MathJax version:",MathJax.version)),!1)}function Pte(e,r,t){let n=FA();var a;let o=function(){if(!zm){let s=MathJax._.output.svg_ts.SVG,f=li.extendFlat({},MathJax.config.svg,{fontCache:"local"});n===4&&(f.linebreaks=li.extendFlat({},f.linebreaks,{inline:!1})),zm=MathJax._.mathjax.mathjax.document(document,li.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new s(f)}))}let l="math-output-"+li.randstr({},64);a=tn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let u=Rte(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return zm.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)li.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=>{li.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"},Ite={sub:"0.3em",sup:"-0.6em"},zte={sub:"-0.21em",sup:"0.42em"},DA="\u200B",PA=["http:","https:","mailto:","",void 0,":"],qA=fa.NEWLINES=/(\r\n?|\n)/g,qm=/(<[^<>]*>)/,Om=/<(\/?)([^ >]*)(\s+(.*))?>/i,Fte=/<br(\s+.*)?>/i;fa.BR_TAG_ALL=/<br(\s+.*)?>/gi;var OA=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,BA=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,UA=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Nte=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Es(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&f1(n)}var qte=/(^|;)\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(qm),l=[],u="",s=0,f=0;f<i.length;f++){var c=i[f],g=c.match(Om),b=g&&g[2].toLowerCase();if(b)n.indexOf(b)!==-1&&(l.push(c),u=b);else{var d=c.length;if(s+d<t)l.push(c),s+=d;else if(s<t){var _=t-s;u&&(u!=="br"||_<=o||d<=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 Ote={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=Ute(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=Ote[t],n||r})}fa.convertEntities=f1;function Ute(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 Hte(e,r){r=r.replace(qA," ");var t=!1,n=[],a,o=-1;function i(){o++;var h=document.createElementNS(Im.svg,"tspan");tn.select(h).attr({class:"line",dy:o*Ate+"em"}),e.appendChild(h),a=h;var w=n;if(n=[{node:h}],w.length>1)for(var y=1;y<w.length;y++)l(w[y])}function l(h){var w=h.type,y={},v;if(w==="a"){v="a";var A=h.target,p=h.href,R=h.popup;p&&(y={"xlink:xlink:show":A==="_blank"||A.charAt(0)!=="_"?"new":"replace",target:A,"xlink:xlink:href":p},R&&(y.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+R+'");return false;'))}else v="tspan";h.style&&(y.style=h.style);var E=document.createElementNS(Im.svg,v);if(w==="sup"||w==="sub"){u(a,DA),a.appendChild(E);var D=document.createElementNS(Im.svg,"tspan");u(D,DA),tn.select(D).attr("dy",zte[w]),y.dy=Ite[w],a.appendChild(E),a.appendChild(D)}else a.appendChild(E);tn.select(E).attr(y),a=h.node=E,n.push(h)}function u(h,w){h.appendChild(document.createTextNode(w))}function s(h){if(n.length===1){li.log("Ignoring unexpected end tag </"+h+">.",r);return}var w=n.pop();h!==w.type&&li.log("Start tag <"+w.type+"> doesnt match end tag <"+h+">. Pretending it did match.",r),a=n[n.length-1].node}var f=Fte.test(r);f?i():(a=e,n=[{node:e}]);for(var c=r.split(qm),g=0;g<c.length;g++){var b=c[g],d=b.match(Om),_=d&&d[2].toLowerCase(),T=NA[_];if(_==="br")i();else if(T===void 0)u(a,f1(b));else if(d[1])s(_);else{var m=d[4],k={type:_},S=Es(m,OA);if(S?(S=S.replace(qte,"$1 fill:"),T&&(S+=";"+T)):T&&(S=T),S&&(k.style=S),_==="a"){t=!0;var x=Es(m,BA);if(x){var M=Bm(x);M&&(k.href=M,k.target=Es(m,UA)||"_blank",k.popup=Es(m,Nte))}}l(k)}}return t}function Bm(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 PA.indexOf(a)!==-1&&PA.indexOf(o)!==-1?r:""}fa.sanitizeHTML=function(r){r=r.replace(qA," ");for(var t=document.createElement("p"),n=t,a=[],o=r.split(qm),i=0;i<o.length;i++){var l=o[i],u=l.match(Om),s=u&&u[2].toLowerCase();if(s in NA)if(u[1])a.length&&(n=a.pop());else{var f=u[4],c=Es(f,OA),g=c?{style:c}:{};if(s==="a"){var b=Es(f,BA);if(b){var d=Bm(b);if(d){g.href=d;var _=Es(f,UA);_&&(g.target=_)}}}var T=document.createElement(s);n.appendChild(T),tn.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=tn.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 IA(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=li.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 Fm="1px ";fa.makeTextShadow=function(e){var r=Fm,t=Fm,n=Fm;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=tn.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&&tn.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=tn.select(t),f=s.select(".svg-container"),c=f.append("div"),g=e.node().style,b=parseFloat(g.fontSize||12),d=r.text;d===void 0&&(d=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(d).call(IA(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var _=tn.select(this).attr("class"),T;_?T="."+_.split(" ")[0]+"-math-group":T="[class*=-math-group]",T&&tn.select(e.node().parentNode).select(T).style({opacity:0});var m=this.textContent;tn.select(this).transition().duration(0).remove(),tn.select(document).on("mouseup",null),a.edit.call(e,m)}).on("focus",function(){var _=this;t._editing=!0,tn.select(document).on("mouseup",function(){if(tn.event.target===_)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){tn.event.which===27?(t._editing=!1,e.style({opacity:1}),tn.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),a.cancel.call(e,this.textContent)):(a.input.call(e,this.textContent),tn.select(this).call(IA(e,f,r)))}).on("keydown",function(){tn.event.which===13&&this.blur()}).call(l)}return r.immediate?i():o.on("click",i),tn.rebind(e,a,"on")}});var oo=xe((K4e,WA)=>{"use strict";var Vte=st(),Z0=ft(),c1=rr(),Ls=Zr(),Gte=xs().isValid;function Yte(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(Z0(a[i])){o=!0;break}}return c1.isPlainObject(n)&&(o||n.showscale===!0||Z0(n.cmin)&&Z0(n.cmax)||Gte(n.colorscale)||c1.isPlainObject(n.colorbar))}var HA=["showscale","autocolorscale","colorscale","reversescale","colorbar"],W0=["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<W0.length;o++)i=W0[o],n[i]=t["c"+i];else{var l;for(o=0;o<W0.length;o++){if(i=W0[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=W0.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]=Ls.rgbaArray(n[i]);var l=Vte.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 Ls.rgbaArrayToString(l(c))}:s?f=function(c){return Z0(c)?l(c):Ls.isValid(c)?c:Ls.defaultLine}:f=function(c){return Z0(c)?Ls.rgbaArrayToString(l(c)):Ls.isValid(c)?c:Ls.defaultLine},f.domain=l.domain,f.range=function(){return n},f}function Xte(e,r){return XA(GA(e),r)}WA.exports={hasColorscale:Yte,extractOpts:VA,extractScale:GA,flipScale:YA,makeColorScaleFunc:XA,makeColorScaleFuncFromTrace:Xte}});var Oo=xe((Q4e,$A)=>{"use strict";var ZA=(nm(),or(tm)),Wte=ZA.FORMAT_LINK,Zte=ZA.DATE_FORMAT_LINK;function Jte(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Um:JA)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Um(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: "+Wte+"."].join(" ")}function JA(e,r){return Um(e,r)+[" And for dates see: "+Zte+".","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:Jte,descriptionOnlyNumbers:Um,descriptionWithDates:JA}});var si=xe((e6e,hk)=>{"use strict";var KA=Wn(),Qu=ao(),vk=fl().dash,Vm=Rt().extendFlat,QA=At().templatedArray,j4e=Ei().templateFormatStringDescription,jA=Oo().descriptionWithDates,$te=(Mn(),or(In)).ONEDAY,lo=(Sn(),or(kn)),Kte=lo.HOUR_PATTERN,Qte=lo.WEEKDAY_PATTERN,Hm={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},jte=Vm({},Hm,{values:Hm.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:Qu.defaultLine,editType:"ticks"},sk={valType:"color",dflt:Qu.lightLine,editType:"ticks"};function uk(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var fk=Vm({},vk,{editType:"ticks"}),ck={valType:"boolean",editType:"ticks"};hk.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Qu.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:[lo.idRegex.x.toString(),lo.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:[lo.idRegex.x.toString(),lo.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:[Qte,Kte,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:$te},editType:"calc"}),tickmode:jte,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:Vm({},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:Qu.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:Qu.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:Qu.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",lo.idRegex.x.toString(),lo.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",lo.idRegex.x.toString(),lo.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Hm,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((r6e,pk)=>{"use strict";var It=si(),dk=Wn(),Gm=Rt().extendFlat,ene=ua().overrideAll;pk.exports=ene({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:Gm({},It.dtick,{}),tickvals:It.tickvals,ticktext:It.ticktext,ticks:Gm({},It.ticks,{dflt:""}),ticklabeloverflow:Gm({},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 Pi=xe((n6e,yk)=>{"use strict";var rne=v1(),tne=(Fu(),or(I0)).counter,nne=(Vh(),or(Hh)).default,gk=xs().scales,t6e=nne(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",d=n+"min",_=n+"max",T=n+"mid",m=h1(s+b),k=h1(s+d),S=h1(s+_),x=k+" and "+S,M={};M[d]=M[_]=void 0;var h={};h[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[d]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:h},w[_]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:h},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=rne),t.noColorAxis||(w.coloraxis={valType:"subplotid",regex:tne("coloraxis"),dflt:null,editType:"calc"}),w}});var Xm=xe((a6e,mk)=>{"use strict";var ane=Rt().extendFlat,ine=Pi(),Ym=xs().scales;mk.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Ym.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Ym.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Ym.RdBu,editType:"calc"}},coloraxis:ane({_isSubplotObj:!0,editType:"calc"},ine("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Wm=xe((i6e,bk)=>{"use strict";var one=rr();bk.exports=function(r){return one.isPlainObject(r.colorbar)}});var $m=xe(Jm=>{"use strict";var Zm=ft(),xk=rr(),_k=(Mn(),or(In)),lne=_k.ONEDAY,sne=_k.ONEWEEK;Jm.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?lne:1;if(!e)return o;if(Zm(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=Zm(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};Jm.tick0=function(e,r,t,n){if(r==="date")return xk.cleanDate(e,xk.dateTick0(t,n%sne===0?1:0));if(!(n==="D1"||n==="D2"))return Zm(e)?Number(e):0}});var Km=xe((l6e,Mk)=>{"use strict";var wk=$m(),une=rr().isArrayOrTypedArray,fne=ba().isTypedArraySpec,cne=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 fne(M)&&(M=cne(M)),M!==void 0?M:(u._template||{})[x]}var c=f("tick0"),g=f("dtick"),b=f("tickvals"),d=f("overlaying"),_=a==="category"||a==="multicategory",T;une(b)?T="array":g?T="linear":d&&!_?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 jm=xe((s6e,Ak)=>{"use strict";var Qm=rr(),Tk=si();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=Qm.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),c=Qm.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),g=Qm.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 e3=xe((u6e,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 Ii=xe((f6e,Sk)=>{"use strict";var d1=rr(),vne=At();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=vne.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 d=Math.min(i.length,u.length);for(f=0;f<d;f++)d1.relinkPrivateKeys(u[f],i[f])}return u}});var t3=xe((c6e,Ek)=>{"use strict";var r3=rr(),hne=Zr().contrast,Ck=si(),dne=e3(),pne=Ii();Ek.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");r3.isPlainObject(i)||delete t.labelalias;var l=dne(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?hne(o.bgColor):f&&f!==Ck.color.dflt?f:s.color;if(r3.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 d=n("tickformat");pne(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:gne}),t.tickformatstops.length||delete t.tickformatstops,!o.noExp&&!d&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!o.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function gne(e,r){function t(a,o){return r3.coerce(e,r,Ck.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var n3=xe((v6e,Lk)=>{"use strict";var yne=e3();Lk.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=yne(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var a3=xe((h6e,Rk)=>{"use strict";var Ml=rr(),mne=At(),bne=Km(),xne=jm(),_ne=t3(),wne=n3(),Mne=v1();Rk.exports=function(r,t,n){var a=mne.newContainer(t,"colorbar"),o=r.colorbar||{};function i(p,R){return Ml.coerce(o,a,Mne,p,R)}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 d=i("yref"),_=i("xref"),T=d==="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 h=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",h.indexOf("inside")!==-1?"hide past domain":"hide past div"),bne(o,a,i,"linear");var w=n.font,y={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:w};h.indexOf("inside")!==-1&&(y.bgColor="black"),wne(o,a,i,"linear",y),_ne(o,a,i,"linear",y),xne(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 so=xe((d6e,Ik)=>{"use strict";var Dk=ft(),o3=rr(),Tne=Wm(),Ane=a3(),Pk=xs().isValid,kne=Cr().traceIs;function i3(e,r){var t=r.slice(0,r.length-1);return r?o3.nestedProperty(e,t).get()||{}:e}Ik.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=i3(r,i),f=i3(t,i),c=i3(t._template||{},i)||{},g=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var b=n._colorAxes||{},d=a(i+"coloraxis");if(d){var _=kne(t,"contour")&&o3.nestedProperty(t,"contours.coloring").get()||"heatmap",T=b[d];T?(T[2].push(g),T[0]!==_&&(T[0]=!1,o3.warn(["Ignoring coloraxis:",d,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[d]=[_,t,[g]];return}}var m=s[l+"min"],k=s[l+"max"],S=Dk(m)&&Dk(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,h=c.colorscale,w;if(M!==void 0&&(w=!Pk(M)),h!==void 0&&(w=!Pk(h)),a(i+"autocolorscale",w),a(i+"colorscale"),a(i+"reversescale"),i!=="marker.line."){var y;i&&u&&(y=Tne(s));var v=a(i+"showscale",y);v&&(i&&c&&(f._template=c),Ane(s,f,n))}}});var qk=xe((p6e,Nk)=>{"use strict";var zk=rr(),Sne=At(),Fk=Xm(),Cne=so();Nk.exports=function(r,t){function n(c,g){return zk.coerce(r,t,Fk,c,g)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(c,g){return zk.coerce(o,i,Fk.coloraxis,c,g)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=Sne.newContainer(t,u,"coloraxis"),i._name=u,Cne(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 Bk=xe((g6e,Ok)=>{"use strict";var Ene=rr(),Lne=oo().hasColorscale,Rne=oo().extractOpts;Ok.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?Ene.nestedProperty(f,c.container).get():f;if(g)if(g.coloraxis)g._colorAx=t[g.coloraxis];else{var b=Rne(g),d=b.auto;(d||b.min===void 0)&&n(g,c.min),(d||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);Lne(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((y6e,Hk)=>{"use strict";var Uk=ft(),l3=rr(),Dne=oo().extractOpts;Hk.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?l3.nestedProperty(t,i).get():t,u=Dne(l),s=u.auto!==!1,f=u.min,c=u.max,g=u.mid,b=function(){return l3.aggNums(Math.min,null,o)},d=function(){return l3.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=d():s&&(l._colorAx&&Uk(c)?c=Math.max(c,d()):c=d()),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 uo=xe((m6e,Vk)=>{"use strict";var p1=xs(),ju=oo();Vk.exports={moduleType:"component",name:"colorscale",attributes:Pi(),layoutAttributes:Xm(),supplyLayoutDefaults:qk(),handleDefaults:so(),crossTraceDefaults:Bk(),calc:Tl(),scales:p1.scales,defaultScale:p1.defaultScale,getScale:p1.get,isValidScale:p1.isValid,hasColorscale:ju.hasColorscale,extractOpts:ju.extractOpts,extractScale:ju.extractScale,flipScale:ju.flipScale,makeColorScaleFunc:ju.makeColorScaleFunc,makeColorScaleFuncFromTrace:ju.makeColorScaleFuncFromTrace}});var Ra=xe((b6e,Yk)=>{"use strict";var Gk=rr(),Pne=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)||Pne(r.size))}}});var s3=xe((x6e,Xk)=>{"use strict";var Ine=ft();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 Ine(u)&&u>0?Math.max(u,o):0}}});var fo=xe(Gn=>{"use strict";var J0=rr();Gn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Gn.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(Gn.getSubplot(e))!==-1};Gn.flat=function(e,r){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=r;return t};Gn.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};Gn.c2dApply=function(e,r){e.length!==r.length&&J0.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};Gn.getDistanceFunction=function(e,r,t,n){return e==="closest"?n||Gn.quadrature(r,t):e.charAt(0)==="x"?r:t};Gn.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};Gn.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};Gn.quadrature=function(e,r){return function(t){var n=e(t),a=r(t);return Math.sqrt(n*n+a*a)}};Gn.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)),Gn.appendArrayPointValue(a,r,n),a};Gn.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=J0.nestedProperty(r,o).get(),u=Zk(l,t);u!==void 0&&(e[i]=u)}}};Gn.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=J0.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 zne={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function Wk(e){return zne[e]||e}function Zk(e,r){if(Array.isArray(r)){if(J0.isArrayOrTypedArray(e)&&J0.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var Fne={x:!0,y:!0},Nne={"x unified":!0,"y unified":!0};Gn.isUnifiedHover=function(e){return typeof e!="string"?!1:!!Nne[e]};Gn.isXYhover=function(e){return typeof e!="string"?!1:!!Fne[e]}});var f3=xe((w6e,Jk)=>{var u3={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},qne=/([astvzqmhlc])([^astvzqmhlc]*)/gi,One=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Bne(e){let r=[];return e.replace(qne,(t,n,a)=>{let o=n.toLowerCase(),i=n,l=Une(a);for(o==="m"&&l.length>2&&(r.push([i,...l.splice(0,2)]),o="l",i=i==="m"?"l":"L");;){if(l.length===u3[o])return r.push([i,...l]),"";if(l.length<u3[o])throw new Error("malformed path data");r.push([i,...l.splice(0,u3[o])])}}),r}function Une(e){let r=e.match(One);return r?r.map(Number):[]}Jk.exports=Bne});var tS=xe((M6e,rS)=>{"use strict";var Hne=f3(),lr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Fr="M0,0Z",$k=Math.sqrt(2),Al=Math.sqrt(3),c3=Math.PI,v3=Math.cos,h3=Math.sin;rS.exports={circle:{n:0,f:function(e,r,t){if(Nr(r))return Fr;var n=lr(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 Fr;var n=lr(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 Fr;var n=lr(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 Fr;var n=lr(e*.4,2),a=lr(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 Fr;var n=lr(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 Fr;var n=lr(e*2/Al,2),a=lr(e/2,2),o=lr(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 Fr;var n=lr(e*2/Al,2),a=lr(e/2,2),o=lr(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 Fr;var n=lr(e*2/Al,2),a=lr(e/2,2),o=lr(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 Fr;var n=lr(e*2/Al,2),a=lr(e/2,2),o=lr(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 Fr;var n=lr(e*.6,2),a=lr(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 Fr;var n=lr(e*.6,2),a=lr(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 Fr;var n=lr(e*.6,2),a=lr(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 Fr;var n=lr(e*.6,2),a=lr(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 Fr;var n=lr(e*.951,2),a=lr(e*.588,2),o=lr(-e,2),i=lr(e*-.309,2),l=lr(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 Fr;var n=lr(e,2),a=lr(e/2,2),o=lr(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 Fr;var n=lr(e,2),a=lr(e/2,2),o=lr(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 Fr;var n=lr(e*.924,2),a=lr(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 Fr;var n=e*1.4,a=lr(n*.225,2),o=lr(n*.951,2),i=lr(n*.363,2),l=lr(n*.588,2),u=lr(-n,2),s=lr(n*-.309,2),f=lr(n*.118,2),c=lr(n*.809,2),g=lr(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 Fr;var n=lr(e*.66,2),a=lr(e*.38,2),o=lr(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 Fr;var n=lr(e*Al*.8,2),a=lr(e*.8,2),o=lr(e*1.6,2),i=lr(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 Fr;var n=lr(e*Al*.8,2),a=lr(e*.8,2),o=lr(e*1.6,2),i=lr(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 Fr;var n=lr(e*1.1,2),a=lr(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 Fr;var n=lr(e*1.4,2),a=lr(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 Fr;var n=lr(e*.7,2),a=lr(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 Fr;var n=lr(e*1.4,2),a=lr(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 Fr;var n=lr(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 Fr;var n=lr(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 Fr;var n=lr(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 Fr;var n=lr(e,2),a=lr(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 Fr;var n=lr(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 Fr;var n=lr(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 Fr;var n=lr(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 Fr;var n=lr(e*1.3,2),a=lr(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 Fr;var n=lr(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 Fr;var n=lr(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 Fr;var n=lr(e*1.2,2),a=lr(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 Fr;var n=lr(e/2,2),a=lr(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 Fr;var n=lr(e*1.2,2),a=lr(e*1.6,2),o=lr(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 Fr;var n=lr(e*1.2,2),a=lr(e*1.6,2),o=lr(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 Fr;var n=lr(e*1.2,2),a=lr(e*1.6,2),o=lr(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 Fr;var n=lr(e*1.2,2),a=lr(e*1.6,2),o=lr(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 Fr;var n=lr(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 Fr;var n=lr(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 Fr;var n=lr(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 Fr;var n=lr(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 Fr;var n=lr(e,2),a=lr(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 Fr;var n=lr(e,2),a=lr(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 Fr;var n=lr(e*2,2),a=lr(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 Fr;var n=lr(e*2,2),a=lr(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 Fr;var n=lr(e,2),a=lr(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 Fr;var n=lr(e,2),a=lr(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 Fr;var n=lr(e*2,2),a=lr(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 Fr;var n=lr(e*2,2),a=lr(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 Fr;var n=c3/2.5,a=2*e*v3(n),o=2*e*h3(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 Fr;var n=c3/4,a=2*e*v3(n),o=2*e*h3(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=v3(T),S=h3(T),x=m[0],M=m[1]+(r||0);return[x*k-M*S,x*S+M*k]}for(var a=e/180*c3,o=0,i=0,l=Hne(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 d=n(a,[+f[6],+f[7]]);f[6]=d[0],f[7]=d[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 kt=xe((T6e,wS)=>{"use strict";var En=st(),xt=rr(),Vne=xt.numberFormat,kl=ft(),y1=Cr(),_n=Zr(),Gne=uo(),K0=xt.strTranslate,m1=Qn(),Yne=(wl(),or(_l)),Xne=(Kn(),or($n)),Wne=Xne.LINE_SPACING,vS=(Eh(),or(Ch)).DESELECTDIM,Zne=Ra(),Jne=s3(),$ne=fo().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(_n.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",d3(Qne(f))),u&&e.style("text-shadow",u==="auto"?m1.makeTextShadow(_n.contrast(o)):d3(u)),s&&e.style("text-decoration-line",d3(jne(s)))};function d3(e){return e==="none"?void 0:e}var Kne={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Qne(e){return Kne[e]}function jne(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",K0(a,o));else return!1;return!0};ur.translatePoints=function(e,r,t){e.each(function(n){var a=En.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,En.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||"";_n.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||"";En.select(this).call(_n.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 d=o.type,_="scatterfill-"+r.uid;if(n&&(_="legendfill-"+r.uid),!n&&(o.start!==void 0||o.stop!==void 0)){var T,m;d==="horizontal"?(T={x:o.start,y:0},m={x:o.stop,y:0}):d==="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 d==="horizontal"&&(d=d+"reversed"),e.call(ur.gradient,t,_,d,o.colorscale,"fill")}else r.fillcolor&&e.call(_n.fill,r.fillcolor)}ur.singleFillStyle=function(e,r){var t=En.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=En.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 eae=ur.symbolNames.length,rae="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>=eae||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?rae:"")}var aS=Vne("~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 d=r._fullLayout,_="g"+d._uid+"-"+t,T=d._defs.select(".gradients").selectAll("#"+_).data([n+g.join(";")],xt.identity);T.exit().remove(),T.enter().append(c.node).each(function(){var m=En.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){En.select(this).attr({offset:S[0]+"%","stop-color":_n.rgb(S[1]),"stop-opacity":_n.parse(S[1]).alpha})})}),e.style(o,b3(_,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=_n.contrast(s)):(s=void 0,f=l));var b=t._fullLayout,d="p"+b._uid+"-"+n,_,T,m=function(R,E,D,I,F){return I+(F-I)*(R-E)/(D-E)},k,S,x,M,h={},w=_n.rgb(f),y=_n.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",h={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",h={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",h={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",h={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",h={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",h={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",h={cx:_/2,cy:T/2,r:x,opacity:v,fill:w};break;default:_=o,T=o,M="path",h={d:a,opacity:v,fill:w};break}var A=[a||"noSh",s||"noBg",f||"noFg",o,i].join(";"),p=b._defs.select(".patterns").selectAll("#"+d).data([A],xt.identity);p.exit().remove(),p.enter().append("pattern").each(function(){var R=En.select(this);if(R.attr({id:d,width:_+"px",height:T+"px",patternUnits:"userSpaceOnUse",patternTransform:g?"scale(0.8)":""}),s){var E=_n.rgb(s),D=_n.parse(s).alpha,I=R.selectAll("rect").data([0]);I.exit().remove(),I.enter().append("rect").attr({width:_+"px",height:T+"px",fill:E,"fill-opacity":D})}var F=R.selectAll(M).data([0]);F.exit().remove(),F.enter().append(M).attr(h)}),e.style("fill",b3(d,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(),En.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(),En.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,En.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=_3(e,t),c=x3(e,t);r.attr("d",dS(s,u,f,c))}var g=!1,b,d,_;if(e.so)_=l.outlierwidth,d=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?d=e.mlcc=n.lineScale(e.mlc):xt.isArrayOrTypedArray(l.color)?d=_n.defaultLine:d=l.color,xt.isArrayOrTypedArray(i.color)&&(b=_n.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(_n.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,h=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(h){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),R=M(x.bgcolor,e.i,null),E=x.fgopacity,D=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 F=t.uid;v&&(F+="-"+e.i),ur.pattern(r,"point",a,F,h,D,I,e.mcc,x.fillmode,R,p,E)}else xt.isArrayOrTypedArray(b)?_n.fill(r,b[e.i]):_n.fill(r,b);_&&_n.stroke(r,d)}};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=Zne.isBubble(e)?Jne(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,d=i.color;(b||d)&&(r.selectedColorFn=function(x){var M=x.mcc||g;return x.selected?b||M:d||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:_n.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){_n.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,_3(i,r),x3(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=En.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 Gne.makeColorScaleFuncFromTrace(t)}return xt.identity};var p3={start:1,end:-1,middle:0,bottom:1,top:-1};function yS(e,r,t,n,a){var o=En.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)*Wne+1,f=p3[l]*u,c=t*.75+p3[i]*u+(p3[i]-1)*s*t/2;e.attr("text-anchor",l),a||o.attr("transform",K0(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=En.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={};$ne(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,d=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:d,color:_}).text(s).call(m1.convertToTspans,t).call(yS,b,d,l.mrc)})}};ur.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ur.makeSelectedTextStyleFns(r);e.each(function(n){var a=En.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=mS(n,r);_n.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 ef(e,r,t){return t&&(e=_S(e)),r?Ps(e[1]):Ds(e[0])}function Ds(e){var r=En.round(e,2);return bS=r,r}function Ps(e){var r=En.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)),Ps(r[1]+(g&&c/g))],[Ds(r[0]-(b&&f/b)),Ps(r[1]-(b&&c/b))]]}var tae={hv:function(e,r,t){return"H"+Ds(r[0])+"V"+ef(r,1,t)},vh:function(e,r,t){return"V"+Ps(r[1])+"H"+ef(r,0,t)},hvh:function(e,r,t){return"H"+Ds((e[0]+r[0])/2)+"V"+Ps(r[1])+"H"+ef(r,0,t)},vhv:function(e,r,t){return"V"+Ps((e[1]+r[1])/2)+"H"+Ds(r[0])+"V"+ef(r,1,t)}},nae=function(e,r,t){return"L"+ef(r,0,t)+","+ef(r,1,t)};ur.steps=function(e){var r=tae[e]||nae;return function(t){for(var n="M"+Ds(t[0][0])+","+Ps(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,d=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(d),M=c-_*Math.sin(d);(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(En.select("body"),"svg","js-plotly-tester",function(t){t.attr(Yne.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 g3=0,aae=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)),En.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 g3>=aae&&(ur.savedBBoxes={},g3=0),t&&(ur.savedBBoxes[t]=b),g3++,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",b3(r,t))};function b3(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+=K0(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 iae=/\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(iae,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var oae=/translate\([^)]*\)\s*$/;ur.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=En.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(oae);r===1&&t===1?n=[]:n=[K0(i,l),"scale("+r+","+t+")",K0(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function x3(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=x3;var $0=Math.atan2,Rs=Math.cos,rf=Math.sin;function lS(e,r){var t=r[0],n=r[1];return[t*Rs(e)-n*rf(e),t*rf(e)+n*Rs(e)]}var sS,uS,fS,cS,y3,m3;function _3(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=$0(g[1]-a,g[0]-n),d=$0(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=Rs(S)*rf(x),h=rf(S)*Rs(m)-Rs(S)*rf(m)*Rs(x);_=-$0(M,h)-Math.PI,sS=s,uS=f}var w=lS(b,[Rs(_),0]),y=lS(d,[rf(_),0]);t=$0(w[1]+y[1],w[0]+y[0])/Math.PI*180,o==="previous"&&!(m3===r.uid&&e.i===y3+1)&&(t=null)}if(o==="previous"&&!r._geo)if(m3===r.uid&&e.i===y3+1&&kl(n)&&kl(a)){var v=n-fS,A=a-cS,p=r.line&&r.line.shape||"",R=p.slice(p.length-1);R==="h"&&(A=0),R==="v"&&(v=0),t+=$0(A,v)/Math.PI*180+90}else t=null}return fS=n,cS=a,y3=e.i,m3=r.uid,t}ur.getMarkerAngle=_3});var Q0=xe((A6e,kS)=>{"use strict";var tf=st(),lae=ft(),sae=Cn(),w3=Cr(),Is=rr(),MS=Is.strTranslate,b1=kt(),x1=Zr(),nf=Qn(),TS=(Eh(),or(Ch)),uae=(Kn(),or($n)).OPPOSITE_SIDE,AS=/ [XY][0-9]* /,M3=1.6,T3=1.6;function fae(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,d=(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,h=T.variant,w=T.textcase,y=T.lineposition,v=T.shadow,A=t.subtitlePropName,p=!!A,R=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},D=(E.text||"").trim(),I=!1,F=1,P=E.font,L=P.family,z=P.size,O=P.color,B=P.weight,V=P.style,J=P.variant,Q=P.textcase,G=P.lineposition,q=P.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," % ")}d===""?g=0:$(d,i)&&(re||(d=""),g=.2,_=!0),p&&(D===""?F=0:$(D,R)&&(re||(D=""),F=.2,I=!0)),t._meta?d=Is.templateString(d,t._meta):n._meta&&(d=Is.templateString(d,n._meta));var ie=d||D||re,j;c||(c=Is.ensureSingle(n._infolayer,"g","g-"+r),j=n._hColorbarMoveTitle);var te=c.selectAll("text."+r).data(ie?[0]:[]);te.enter().append("text"),te.text(d).attr("class",r),te.exit().remove();var ue=null,ee=r+"-subtitle",ae=D||re;if(p&&(ue=c.selectAll("text."+ee).data(ae?[0]:[]),ue.enter().append("text"),ue.text(D).attr("class",ee),ue.exit().remove()),!ie)return c;function fe(Le,se){Is.syncOrAsync([we,Me],{title:Le,subtitle:se})}function we(Le){var se=Le.title,X=Le.subtitle,K;!f&&j&&(f={}),f?(K="",f.rotate&&(K+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||j)&&(K+=MS(0,(f.offset||0)-(j||0)))):K=null,se.attr("transform",K);function ye(ve){if(ve){var de=tf.select(ve.node().parentNode).select("."+ee);if(!de.empty()){var be=ve.node().getBBox();if(be.height){var Ae=be.y+be.height+M3*z;de.attr("y",Ae)}}}}if(se.style("opacity",g*x1.opacity(S)).call(b1.font,{color:x1.rgb(S),size:tf.round(k,2),family:m,weight:x,style:M,variant:h,textcase:w,shadow:v,lineposition:y}).attr(s).call(nf.convertToTspans,e,ye),X&&!X.empty()){var oe=c.select("."+r+"-math-group"),he=se.node().getBBox(),pe=oe.node()?oe.node().getBBox():void 0,me=pe?pe.y+pe.height+M3*z:he.y+he.height+T3*z,Se=Is.extendFlat({},s,{y:me});X.attr("transform",K),X.style("opacity",F*x1.opacity(O)).call(b1.font,{color:x1.rgb(O),size:tf.round(z,2),family:L,weight:B,style:V,variant:J,textcase:Q,shadow:q,lineposition:G}).attr(Se).call(nf.convertToTspans,e)}return sae.previousPromises(e)}function Me(Le){var se=Le.title,X=tf.select(se.node().parentNode);if(u&&u.selection&&u.side&&d){X.attr("transform",null);var K=uae[u.side],ye=u.side==="left"||u.side==="top"?-1:1,oe=lae(u.pad)?u.pad:2,he=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 de=me[Se][ve];pe[ve]=Math.max(pe[ve],de)}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]-he[u.side]),Pe=0;if(Ae<0)Pe=Ae;else{var Ie=u.offsetLeft||0,Ye=u.offsetTop||0;he.left-=Ie,he.right-=Ie,he.top-=Ye,he.bottom-=Ye,u.selection.each(function(){var Ve=b1.bBox(this);Is.bBoxIntersect(he,Ve,oe)&&(Pe=Math.max(Pe,ye*(Ve[u.side]-he[K])+oe))}),Pe=Math.min(Ae,Pe),a._titleScoot=Math.abs(Pe)}if(Pe>0||Ae<0){var qe={left:[-Pe,0],right:[Pe,0],top:[0,-Pe],bottom:[0,Pe]}[u.side];X.attr("transform",MS(qe[0],qe[1]))}}}te.call(fe,ue);function ke(Le,se){Le.text(se).on("mouseover.opacity",function(){tf.select(this).transition().duration(TS.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){tf.select(this).transition().duration(TS.HIDE_PLACEHOLDER).style("opacity",0)})}if(re&&(d?te.on(".opacity",null):(ke(te,i),_=!0),te.call(nf.makeEditable,{gd:e}).on("edit",function(Le){l!==void 0?w3.call("_guiRestyle",e,o,Le,l):w3.call("_guiRelayout",e,o,Le)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(fe)}).on("input",function(Le){this.text(Le||" ").call(nf.positionText,s.x,s.y)}),p)){if(p&&!d){var ge=te.node().getBBox(),Ee=ge.y+ge.height+T3*z;ue.attr("y",Ee)}D?ue.on(".opacity",null):(ke(ue,R),I=!0),ue.call(nf.makeEditable,{gd:e}).on("edit",function(Le){w3.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(nf.positionText,ue.attr("x"),ue.attr("y"))})}return te.classed("js-placeholder",_),ue&&!ue.empty()&&ue.classed("js-placeholder",I),c}kS.exports={draw:fae,SUBTITLE_PADDING_EM:T3,SUBTITLE_PADDING_MATHJAX_EM:M3}});var C1=xe((k6e,RS)=>{"use strict";var cae=st(),vae=Mu().utcFormat,St=rr(),hae=St.numberFormat,co=ft(),Sl=St.cleanNumber,dae=St.ms2DateTime,SS=St.dateTime2ms,vo=St.ensureNumber,CS=St.isArrayOrTypedArray,Cl=(Mn(),or(In)),_1=Cl.FP_SAFE,zi=Cl.BADNUM,pae=Cl.LOG_CLIP,gae=Cl.ONEWEEK,w1=Cl.ONEDAY,M1=Cl.ONEHOUR,ES=Cl.ONEMIN,LS=Cl.ONESEC,T1=xn(),S1=(Sn(),or(kn)),A1=S1.HOUR_PATTERN,k1=S1.WEEKDAY_PATTERN;function j0(e){return Math.pow(10,e)}function A3(e){return e!=null}var yae=2;function mae(e,r){if(e<=0)return 0;let t=Math.max(0,r-yae);return e>t?t/e:1}RS.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 h=r.range[0],w=r.range[1];return .5*(h+w-2*pae*Math.abs(h-w))}else return zi}function i(x,M,h,w){if((w||{}).msUTC&&co(x))return+x;var y=SS(x,h||r.calendar);if(y===zi)if(co(x)){x=+x;var v=Math.floor(St.mod(x+.05,1)*10),A=Math.round(x-v/10);y=SS(new Date(A))+v/10}else return zi;return y}function l(x,M,h){return dae(x,M,h||r.calendar)}function u(x){return r._categories[Math.round(x)]}function s(x){if(A3(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 zi}function f(x,M){for(var h=new Array(M),w=0;w<M;w++){var y=(x[0]||[])[w],v=(x[1]||[])[w];h[w]=c([y,v])}return h}function c(x){if(r._categoriesMap)return r._categoriesMap[x]}function g(x){var M=c(x);if(M!==void 0)return M;if(co(x))return+x}function b(x){return co(x)?+x:c(x)}function d(x,M,h){return cae.round(h+M*x,2)}function _(x,M,h){return(x-h)/M}var T=function(M){return co(M)?d(M,r._m,r._b):zi},m=function(x){return _(x,r._m,r._b)};if(r.rangebreaks){var k=a==="y";T=function(x){if(!co(x))return zi;var M=r._rangebreaks.length;if(!M)return d(x,r._m,r._b);var h=k;r.range[0]>r.range[1]&&(h=!h);for(var w=h?-1:1,y=w*x,v=0,A=0;A<M;A++){var p=w*r._rangebreaks[A].min,R=w*r._rangebreaks[A].max;if(y<p)break;if(y>R)v=A+1;else{v=y<(p+R)/2?A:A+1;break}}var E=r._B[v]||0;return isFinite(E)?d(x,r._m2,E):0},m=function(x){var M=r._rangebreaks.length;if(!M)return _(x,r._m,r._b);for(var h=0,w=0;w<M&&!(x<r._rangebreaks[w].pmin);w++)x>r._rangebreaks[w].pmax&&(h=w+1);return _(x,r._m2,r._B[h])}}r.c2l=r.type==="log"?o:vo,r.l2c=r.type==="log"?j0:vo,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 j0(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=vo,r.d2p=r.r2p=function(x){return r.l2p(Sl(x))},r.p2d=r.p2r=m,r.cleanPos=vo):r.type==="log"?(r.d2r=r.d2l=function(x,M){return o(Sl(x),M)},r.r2d=r.r2c=function(x){return j0(Sl(x))},r.d2c=r.r2l=Sl,r.c2d=r.l2r=vo,r.c2r=o,r.l2d=j0,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return j0(m(x))},r.r2p=function(x){return r.l2p(Sl(x))},r.p2r=m,r.cleanPos=vo):r.type==="date"?(r.d2r=r.r2d=St.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,h){return r.l2p(i(x,0,h))},r.p2d=r.p2r=function(x,M,h){return l(m(x),M,h)},r.cleanPos=function(x){return St.cleanDate(x,zi,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=vo,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:vo(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=vo,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:vo(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,h,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,{}]],R=[];for(h=0;h<M.length;h++){var E=x[M[h]];if(a in E){var D=E[a],I=E._length||St.minRowLength(D);if(CS(D[0])&&CS(D[1]))for(w=0;w<I;w++){var F=D[0][w],P=D[1][w];A3(F)&&A3(P)&&(R.push([F,P]),F in p[0][1]||(p[0][1][F]=p[0][0]++),P in p[1][1]||(p[1][1][P]=p[1][0]++))}}}for(R.sort(function(L,z){var O=p[0][1],B=O[L[0]]-O[z[0]];if(B)return B;var V=p[1][1];return V[L[1]]-V[z[1]]}),h=0;h<R.length;h++)s(R[h])}),r.fraction2r=function(x){var M=r.r2l(r.range[0]),h=r.r2l(r.range[1]);return r.l2r(M+x*(h-M))},r.r2fraction=function(x){var M=r.r2l(r.range[0]),h=r.r2l(r.range[1]);return(r.r2l(x)-M)/(h-M)},r.limitRange=function(x){var M=r.minallowed,h=r.maxallowed;if(!(M===void 0&&h===void 0)){x||(x="range");var w=St.nestedProperty(r,x).get(),y=St.simpleMap(w,r.r2l),v=y[1]<y[0];v&&y.reverse();var A=St.simpleMap([M,h],r.r2l);if(M!==void 0&&y[0]<A[0]&&(w[v?1:0]=M,y[0]=A[0]),h!==void 0&&y[1]>A[1]&&(w[v?0:1]=h,y[1]=A[1]),y[0]>=y[1])if(M!==void 0){var p=A[0]+1;h!==void 0&&(p=Math.min(p,A[1])),w[v?0:1]=r.l2r(p)}else h!==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 h=St.nestedProperty(r,x).get(),w,y;if(r.type==="date"?y=St.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),!h||h.length!==2){St.nestedProperty(r,x).set(y);return}var v=h[0]===null,A=h[1]===null;for(r.type==="date"&&!r.autorange&&(h[0]=St.cleanDate(h[0],zi,r.calendar),h[1]=St.cleanDate(h[1],zi,r.calendar)),w=0;w<2;w++)if(r.type==="date"){if(!St.isDateTime(h[w],r.calendar)){r[x]=y;break}if(r.r2l(h[0])===r.r2l(h[1])){var p=St.constrain(r.r2l(h[0]),St.MIN_MS+1e3,St.MAX_MS-1e3);h[0]=r.l2r(p-1e3),h[1]=r.l2r(p+1e3);break}}else{if(!co(h[w]))if(!(v||A)&&co(h[1-w]))h[w]=h[1-w]*(w?10:.1);else{r[x]=y;break}if(h[w]<-_1?h[w]=-_1:h[w]>_1&&(h[w]=_1),h[0]===h[1]){var R=Math.max(1,Math.abs(h[0]*1e-6));h[0]-=R,h[1]+=R}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var h=T1.getFromId({_fullLayout:t},r.overlaying);r.domain=h.domain,r.domainpad=h.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 R=(p?M.h:M.w)*(r.domain[1]-r.domain[0]),E=r.domainpad,D=0,I=0;if(E){D=(p?E.top:E.left)||0,I=(p?E.bottom:E.right)||0;let O=mae(D+I,R);D*=O,I*=O}if(r._length=R-D-I,r._padStart=D,r._padEnd=I,p?(r._offset=M.t+(1-r.domain[1])*M.h+D,r._m=r._length/(v-A),r._b=-r._m*A):(r._offset=M.l+r.domain[0]*M.w+D,r._m=r._length/(A-v),r._b=-r._m*v),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var F,P;if(r._rangebreaks=r.locateBreaks(Math.min(v,A),Math.max(v,A)),r._rangebreaks.length){for(F=0;F<r._rangebreaks.length;F++)P=r._rangebreaks[F],r._lBreaks+=Math.abs(P.max-P.min);var L=p;v>A&&(L=!L),L&&r._rangebreaks.reverse();var z=L?-1:1;for(r._m2=z*r._length/(Math.abs(A-v)-r._lBreaks),r._B.push(-r._m2*(p?A:v)),F=0;F<r._rangebreaks.length;F++)P=r._rangebreaks[F],r._B.push(r._B[r._B.length-1]-z*r._m2*(P.max-P.min));for(F=0;F<r._rangebreaks.length;F++)P=r._rangebreaks[F],P.pmin=T(P.min),P.pmax=T(P.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||[],h,w,y,v,A;M._cachedPatterns||(M._cachedPatterns=M.map(function(O){return O.enabled&&O.bounds?St.simpleMap(O.bounds,O.pattern?Sl:r.d2c):null})),M._cachedValues||(M._cachedValues=M.map(function(O){return O.enabled&&O.values?St.simpleMap(O.values,r.d2c).sort(St.sorterAsc):null}));for(var p=0;p<M.length;p++){var R=M[p];if(R.enabled){if(R.bounds){var E=R.pattern;switch(h=M._cachedPatterns[p],w=h[0],y=h[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 D=A.getUTCHours(),I=A.getUTCMinutes(),F=A.getUTCSeconds(),P=A.getUTCMilliseconds();v=D+(I/60+F/3600+P/36e5),w>y&&(y+=24,v<w&&(v+=24));break;case"":v=x;break}if(v>=w&&v<y)return zi}else for(var L=M._cachedValues[p],z=0;z<L.length;z++)if(w=L[z],y=w+R.dvalue,x>=w&&x<y)return zi}}return x},r.locateBreaks=function(x,M){var h,w,y,v,A=[];if(!r.rangebreaks)return A;var p=r.rangebreaks.slice().sort(function(V,J){return V.pattern===k1&&J.pattern===A1?-1:J.pattern===k1&&V.pattern===A1?1:0}),R=function(V,J){if(V=St.constrain(V,x,M),J=St.constrain(J,x,M),V===J)return;let Q;for(let G=0;G<A.length;G++){let q=A[G];V<q.max&&J>=q.min&&(Q?(Q.min=Math.min(Q.min,q.min),Q.max=Math.max(Q.max,q.max),A.splice(G,1),G--):(Q=q,Q.min=Math.min(Q.min,V),Q.max=Math.max(Q.max,J)))}Q||A.push({min:V,max:J})};for(h=0;h<p.length;h++){var E=p[h];if(E.enabled)if(E.bounds){var D=x,I=M;E.pattern&&(D=Math.floor(D)),w=St.simpleMap(E.bounds,E.pattern?Sl:r.r2l),y=w[0],v=w[1];var F=new Date(D),P,L;switch(E.pattern){case k1:L=gae,P=((v<y?7:0)+(v-y))*w1,D+=y*w1-(F.getUTCDay()*w1+F.getUTCHours()*M1+F.getUTCMinutes()*ES+F.getUTCSeconds()*LS+F.getUTCMilliseconds());break;case A1:L=w1,P=((v<y?24:0)+(v-y))*M1,D+=y*M1-(F.getUTCHours()*M1+F.getUTCMinutes()*ES+F.getUTCSeconds()*LS+F.getUTCMilliseconds());break;default:D=Math.min(w[0],w[1]),I=Math.max(w[0],w[1]),L=I-D,P=L}for(var z=D;z<I;z+=L)R(z,z+P)}else for(var O=St.simpleMap(E.values,r.d2c),B=0;B<O.length;B++)y=O[B],v=y+E.dvalue,R(y,v)}return A.sort(function(V,J){return V.min-J.min}),A},r.makeCalcdata=function(x,M,h){var w,y,v,A,p=r.type,R=p==="date"&&x[M+"calendar"];if(M in x){if(w=x[M],A=x._length||St.minRowLength(w),St.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,R,h)}else{var E=M+"0"in x?r.d2c(x[M+"0"],0,R):0,D=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*D}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||co(r.r2l(x[0])))&&(M&&x[1]===null||co(r.r2l(x[1])))},r.getAutorangeDflt=function(x,M){var h=!r.isValidRange(x,"nullOk");return h&&M&&M.reverseDflt?h="reversed":x&&(x[0]===null&&x[1]===null?h=!0:x[0]===null&&x[1]!==null?h="min":x[0]!==null&&x[1]===null&&(h="max")),h},r.isReversed=function(){var x=r.autorange;return x==="reversed"||x==="min reversed"||x==="max reversed"},r.isPtWithinRange=function(x,M){var h=r.c2l(x[a],null,M),w=r.r2l(r.range[0]),y=r.r2l(r.range[1]);return w<y?w<=h&&h<=y:y<=h&&h<=w},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var x=r._matchGroup;if(x){var M=null,h=null;for(var w in x){var y=t[T1.id2name(w)];if(y._categories){M=y._categories,h=y._categoriesMap;break}}M&&h?(r._categories=M,r._categoriesMap=h):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var v=0;v<r._initialCategories.length;v++)s(r._initialCategories[v])},r.sortByInitialCategories=function(){var 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 h=r._matchGroup;for(var w in h)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:vae,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=S?S.numberFormat:hae,delete r._minDtick,delete r._forceTick0}});var S3=xe((S6e,zS)=>{"use strict";var DS=ft(),k3=rr(),bae=(Mn(),or(In)).BADNUM,E1=k3.isArrayOrTypedArray,xae=k3.isDateTime,_ae=k3.cleanNumber,PS=Math.round;zS.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(E1(a)&&!a.length)return"-";if(!o&&kae(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(Tae(a,t))return"date";var s=n.autotypenumbers!=="strict";return Aae(a,s)?"category":Mae(a,s)?"linear":"-"};function wae(e,r){return r?DS(e):typeof e=="number"}function Mae(e,r){for(var t=e.length,n=0;n<t;n++)if(wae(e[n],r))return!0;return!1}function Tae(e,r){for(var t=e.length,n=IS(t),a=0,o=0,i={},l=0;l<t;l+=n){var u=PS(l),s=e[u],f=String(s);i[f]||(i[f]=1,xae(s,r)&&a++,DS(s)&&o++)}return a>o*2}function IS(e){return Math.max(1,(e-1)/1e3)}function Aae(e,r){for(var t=e.length,n=IS(t),a=0,o=0,i={},l=0;l<t;l+=n){var u=PS(l),s=e[u],f=String(s);if(!i[f]){i[f]=1;var c=typeof s;c==="boolean"?o++:(r?_ae(s)!==bae:c==="number")?a++:c==="string"&&o++}}return o>a*2}function kae(e){return E1(e[0])&&E1(e[1])}});var af=xe((C6e,VS)=>{"use strict";var Sae=st(),OS=ft(),El=rr(),L1=(Mn(),or(In)).FP_SAFE,Cae=Cr(),Eae=kt(),BS=xn(),Lae=BS.getFromId,Rae=BS.isLinked;VS.exports={applyAutorangeOptions:HS,getAutoRange:C3,makePadFn:E3,doAutoRange:Pae,findExtremes:Iae,concatExtremes:D3};function C3(e,r){var t,n,a=[],o=e._fullLayout,i=E3(o,r,0),l=E3(o,r,1),u=D3(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,d=b==="reversed"||b==="min reversed"||b==="max reversed";if(!d&&r.range){var _=El.simpleMap(r.range,r.r2l);d=_[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,h,w,y,v,A,p;for(t=0;t<s.length;t++)for(h=s[t],n=0;n<f.length;n++)w=f[n],p=w.val-h.val-FS(r,h.val,w.val),p>0&&(A=S-i(h)-l(w),A>x?p/A>M&&(y=h,v=w,M=p/A):p/S>M&&(y={val:h.val,nopad:1},v={val:w.val,nopad:1},M=p/S));function R(P,L){return Math.max(P,l(L))}if(c===g){var E=c-1,D=c+1;if(m)if(c===0)a=[0,1];else{var I=(c>0?f:s).reduce(R,0),F=c/(1-Math.min(.5,I/S));a=c>0?[0,F]:[F,0]}else k?a=[Math.max(0,E),Math.max(1,D)]:a=[E,D]}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-FS(r,h.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(),d&&a.reverse(),El.simpleMap(a,r.l2r||Number)}function FS(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 E3(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 Rae(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=Sae.select(this),x=S.select(".text-math-group");x.empty()&&(k.bb=Eae.bBox(S.node()))})}for(var b=0;b<l._vals.length;b++){var d=l._vals[b],_=d.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 D3(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],L3(i,f.val,f.pad,{extrapad:f.extrapad});for(s=0;s<S.max.length;s++)f=S.max[s],R3(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=Lae(e,g),d=D3(e,b,!0),_=r._length/b._length;for(s=0;s<d.min.length;s++)f=d.min[s],L3(i,f.val,f.pad*_,{extrapad:f.extrapad});for(s=0;s<d.max.length;s++)f=d.max[s],R3(l,f.val,f.pad*_,{extrapad:f.extrapad})}}return{min:i,max:l}}function Pae(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():C3(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,Cae.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=C3(e,r)),o._input.rangeslider[r._name]=El.extendFlat({},i)}}function Iae(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,d,_,T,m,k,S;function x(R){if(Array.isArray(R))return s=!0,function(D){return Math.max(Number(R[D]||0),0)};var E=Math.max(Number(R||0),0);return function(){return E}}var M=x((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),h=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(R){b=r[R],OS(b)&&(T=M(R),m=h(R),f?(d=e.c2l(b)-y(R),_=e.c2l(b)+w(R)):(k=b-y(R),S=b+w(R),u&&k<S/10&&(k=S/10),d=e.c2l(k),_=e.c2l(S)),l&&(d=Math.min(0,d),_=Math.max(0,_)),qS(d)&&L3(n,d,m,v),qS(_)&&R3(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 L3(e,r,t,n){US(e,r,t,n,zae)}function R3(e,r,t,n){US(e,r,t,n,Fae)}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 OS(e)&&Math.abs(e)<L1}function zae(e,r){return e<=r}function Fae(e,r){return e>=r}function Nae(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&R1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&R1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function qae(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&R1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&R1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function R1(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=Nae(t,r),n=qae(n,r),[t,n]}});var Bt=xe((L6e,cC)=>{"use strict";var ui=st(),fn=ft(),of=Cn(),rc=Cr(),Er=rr(),lf=Er.strTranslate,zs=Qn(),Oae=Q0(),tc=Zr(),Ga=kt(),Bae=si(),GS=$m(),E6e=(Sn(),or(kn)),Yn=(Mn(),or(In)),Uae=Yn.ONEMAXYEAR,I1=Yn.ONEAVGYEAR,z1=Yn.ONEMINYEAR,Hae=Yn.ONEMAXQUARTER,F3=Yn.ONEAVGQUARTER,F1=Yn.ONEMINQUARTER,Vae=Yn.ONEMAXMONTH,sf=Yn.ONEAVGMONTH,N1=Yn.ONEMINMONTH,Ya=Yn.ONEWEEK,ca=Yn.ONEDAY,Ll=ca/2,po=Yn.ONEHOUR,nc=Yn.ONEMIN,q1=Yn.ONESEC,Gae=Yn.ONEMILLI,Yae=Yn.ONEMICROSEC,Fs=Yn.MINUS_SIGN,B1=Yn.BADNUM,N3={K:"zeroline"},q3={K:"gridline",L:"path"},O3={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)),ec=U1.MID_SHIFT,Ns=U1.CAP_SHIFT,ac=U1.LINE_SPACING,Xae=U1.OPPOSITE_SIDE,O1=3,ar=cC.exports={};ar.setConvert=C1();var Wae=S3(),go=xn(),Zae=go.idSort,Jae=go.isLinked;ar.id2name=go.id2name;ar.name2id=go.name2id;ar.cleanId=go.cleanId;ar.list=go.list;ar.listIds=go.listIds;ar.getFromId=go.getFromId;ar.getFromTrace=go.getFromTrace;var tC=af();ar.getAutoRange=tC.getAutoRange;ar.findExtremes=tC.findExtremes;var $ae=1e-4;function V3(e){var r=(e[1]-e[0])*$ae;return[e[0]-r,e[1]+r]}function Kae(e,r,t){if(![t,e,r].every(fn)||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]=go.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=rc.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 d=g[b];if(!s[d]&&(u(e,d),s[d]=1,l))return}}n("annotations","drawOne","_annIndices"),n("shapes","drawOne","_shapeIndices"),n("images","draw","_imgIndices",!0),n("selections","drawOne","_selectionIndices")};var Qae=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:Wae(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 Qae(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)),fn(s)||(s=1)}ar.autoTicks(u,s)}var b=u.dtick,d=ar.tickIncrement(ar.tickFirst(u),b,"reverse",a),_,T;if(typeof b=="number")d=jae(d,e,u,i,l),T=1+Math.floor((l-d)/b),_=d+T*b;else for(u.dtick.charAt(0)==="M"&&(d=eie(d,e,b,i,a)),_=d,T=0;_<=l;)_=ar.tickIncrement(_,b,!1,a),T++;return{start:r.c2r(d,0,a),end:r.c2r(_,0,a),size:b,_dataSpan:l-i}};function jae(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++:fn(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 eie(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&&fn(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=fn(r.dtick),u=fn(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?P3(s,f)?s===2*Ya&&f===2*ca&&(e.dtick=Ya):s===2*Ya&&f===3*ca?e.dtick=Ya:s===Ya&&!(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":P3(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"?P3(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&&(G3(e),r.minor._tickround=e._tickround)};function P3(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"&&rie(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),G3(e)};function I3(e){return+e.substring(1)}function rie(e){var r;function t(){return!(fn(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=po,o&&!n&&e.dtick<po&&(e.dtick=po)):/%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=Ya,o&&!n&&e.dtick<Ya&&(e.dtick=Ya)):/%[Bbm]/.test(a)?(r=sf,o&&(n?I3(e.dtick)<1:e.dtick<N1)&&(e.dtick="M1")):/%[q]/.test(a)?(r=F3,o&&(n?I3(e.dtick)<3:e.dtick<F1)&&(e.dtick="M3")):/%[Yy]/.test(a)&&(r=I1,o&&(n?I3(e.dtick)<12:e.dtick<z1)&&(e.dtick="M12")))}n=t(),n&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function tie(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>=z1?s>=z1&&s<=Uae?c=s:c=I1:t===F3&&f>=F1?s>=F1&&s<=Hae?c=s:c=F3:f>=N1?s>=N1&&s<=Vae?c=s:c=sf:t===Ya&&f>=Ya?c=Ya:f>=ca?c=ca:t===Ll&&f>=Ll?c=Ll:t===po&&f>=po&&(c=po);var g;c>=s&&(c=s,g=!0);var b=a+c;if(r.rangebreaks&&c>0){for(var d=84,_=0,T=0;T<d;T++){var m=(T+.5)/d;r.maskBreaks(a*(1-m)+m*b)!==B1&&_++}c*=_/d,c||(e[n].drop=!0),g&&s>Ya&&(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;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),d=[],_=[],T=[],m=[],k=[],S=r.minor&&(r.minor.ticks||r.minor.showgrid),x=S||r._useTicklabelIndex;let M=0;if(i){let ae=r._useTicklabelIndex?Math.max(0,...Array.from(u,Math.abs)):0;M=Math.min(ae+1,Math.floor(b/2))}for(var h=1;h>=(x?0:1);h--){var w=!h;h?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var y=h?r:Er.extendFlat({},r,x?r.minor:{minor:{}});if(w?ar.prepMinorTicks(y,r,t):ar.prepTicks(y,t),y.tickmode==="array"){h?(T=[],d=$S(r,!w)):(m=[],_=$S(r,!w));continue}if(y.tickmode==="sync"){T=[],d=nie(r);continue}var v=V3(s),A=v[0],p=v[1];let ae=p;var R=y.dtick;let fe=fn(R),we=n==="log"&&!(fe||R.charAt(0)==="L");var E=ar.tickFirst(y,t);if(h){if(r._tmin=E,E<A!==f)break;(n==="category"||n==="multicategory")&&(p=f?Math.max(-.5,p):Math.min(r._categories.length-.5,p))}var D=null,I=E,F;if(h){var P;fe?P=r.dtick:n==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(P=sf*r.dtick.substring(1)):P=r._roughDTick,F=Math.round((r.r2l(I)-r.r2l(r.tick0))/P)-1}var L=n==="linear"?y.r2l(y.tick0):void 0;if(y.rangebreaks&&y._tick0Init!==y.tick0&&(I=z3(I,r),f||(I=ar.tickIncrement(I,R,!f,a))),h&&M){for(let Me=0;Me<M;Me++)I=ar.tickIncrement(I,R,!f,a),r._useTicklabelIndex&&(p=ar.tickIncrement(p,R,f,a));F-=M}else if(w&&M&&r._useTicklabelIndex&&T.length){let Me=T[0].value;for(;f?I<Me:I>Me;)I=ar.tickIncrement(I,R,!f,a);p=T[T.length-1].value}for(;f?I>=p:I<=p;I=ar.tickIncrement(I,R,f,a)){if(h&&F++,y.rangebreaks&&!f){if(I<A)continue;if(y.maskBreaks(I)===B1&&z3(I,y)>=g)break}if(T.length>b+2*M||I===D)break;D=I;var z={value:Kae(I,L,R)};(f?I>A||I<ae:I<A||I>ae)&&(z.noTick=!0),h?(I===E&&(z.first=!0),we&&I!==(I|0)&&(z.simpleLabel=!0),o>1&&F%o&&(z.skipLabel=!0),T.push(z)):(z.minor=!0,m.push(z))}}function O(ae,fe){let we=fe.find(ke=>ke.value===ae.value);if(we!=null)return we;let Me=1e7;for(let ke=0;ke<fe.length;ke++)if(Me+fe[ke].value===Me+ae.value)return fe[ke];return null}if(r._useTicklabelIndex){let ae=m.filter(fe=>!fe.noTick);if(ae.length<2)r._useTicklabelIndex=!1;else{let fe=(ae[1].value-ae[0].value)*(l?-1:1);Cie(fe,r.tickformat)||(r._useTicklabelIndex=!1)}}if(!r._useTicklabelIndex)k=T;else{let ae=m.filter(Me=>O(Me,T)==null),fe=T.concat(ae).sort((Me,ke)=>Me.value-ke.value),we=(Me,ke)=>{let ge=Me[ke],Ee=i?Me[ke+1]:void 0;ge.noTick&&!(Ee&&!Ee.noTick)||(k.push(ge),Ee&&(ge.periodEndTick=Ee))};T.forEach(function(Me){Me.skipLabel||(u.forEach(ke=>{if(ke<0){let ge=fe.filter(se=>se.value<=Me.value),Ee=Math.abs(ke),Le=ge.length-Ee-1;Ee<ge.length&&we(ge,Le)}else{let ge=fe.filter(Ee=>Ee.value>=Me.value);ke<ge.length&&we(ge,ke)}}),Me.skipLabel=!0)}),k.forEach(Me=>Me.skipLabel=!1)}if(S){var B=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!B){for(var V=[],J=0;J<m.length;J++)O(m[J],T)==null&&V.push(m[J]);m=V}}i&&tie(k,r,r._definedDelta);var Q;if(r.rangebreaks){var G=r._id.charAt(0)==="y",q=1;r.tickmode==="auto"&&(q=r.tickfont?r.tickfont.size:12);var Z=NaN;for(Q=T.length-1;Q>-1;Q--){if(T[Q].drop){T.splice(Q,1);continue}T[Q].value=z3(T[Q].value,r);var re=r.c2p(T[Q].value);(G?Z>re-q:Z<re+q)?T.splice(f?Q+1:Q,1):Z=re}}Z3(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 $,ie=function(ae){ae.text="",r._prevDateHead=$};T=T.concat(m);function j(ae,fe){var we=ar.tickText(ae,fe.value,!1,fe.simpleLabel,{first:fe.first,last:fe.last}),Me=fe.periodX;return Me!==void 0&&(we.periodX=Me,(Me>g||Me<c)&&(Me>g&&(we.periodX=g),Me<c&&(we.periodX=c),ie(we))),we}var te;for(Q=0;Q<T.length;Q++){var ue=T[Q].minor,ee=T[Q].value;ue?(r._useTicklabelIndex&&k.indexOf(T[Q])!==-1?te=j(r,T[Q]):te={x:ee,text:""},te.noTick=T[Q].noTick,te.minor=!0,_.push(te)):($=r._prevDateHead,te=j(r,T[Q]),T[Q].skipLabel&&ie(te),te.noTick=T[Q].noTick,d.push(te))}return r._inCalcTicks=!1,d=d.concat(_),d};function nC(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==B1})),r}function nie(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=V3(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 d=i(s[b]);d>a&&d<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 D1=[2,5,10],KS=[1,2,3,6,12],QS=[1,2,5,10,15,30],aie=[1,2,3,7,14],aC=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],iC=[-.301,0,.301,.699,1],iie=[15,30,45,90,180];function ho(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>I1)r/=I1,n=a(10),e.dtick="M"+12*ho(r,n,D1);else if(o>sf)r/=sf,e.dtick="M"+ho(r,1,KS);else if(o>ca){if(e.dtick=ho(r,ca,e._hasDayOfWeekBreaks?[1,2,7,14]:aie),!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>po?e.dtick=ho(r,po,KS):o>nc?e.dtick=ho(r,nc,QS):o>q1?e.dtick=ho(r,q1,QS):(n=a(10),e.dtick=ho(r,n,D1))}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"+ho(r,n,D1)}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))):Z3(e)?(e.tick0=0,n=1,e.dtick=ho(r,n,iie)):(e.tick0=0,n=a(10),e.dtick=ho(r,n,D1));if(e.dtick===0&&(e.dtick=1),!fn(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function G3(e){var r=e.dtick;if(e._tickexponent=0,!fn(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>=nc&&a<=16||r>=po)e._tickround="M";else if(r>=q1&&a<=19||r>=nc)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(fn(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);fn(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&&(uf(e.exponentformat)&&e.exponentformat!=="SI extended"&&!Y3(u)||uf(e.exponentformat)&&e.exponentformat==="SI extended"&&!X3(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(fn(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(ui.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=V3(n)[0],l=e.dtick,u=t(e.tick0);if(fn(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,d,_,T;g<10;){if(d=ar.tickIncrement(b,l,a,e.calendar),(d-i)*(b-i)<=0)return a?Math.min(b,d):Math.max(b,d);_=(i-(b+d)/2)/(d-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(ui.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 d=Er.simpleMap(e.range,e.r2l),_=(Math.abs(d[1]-d[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"?oie(e,l,t,s):f==="log"?lie(e,l,t,s,m):f==="category"?sie(e,l):f==="multicategory"?uie(e,l,t):Z3(e)?cie(e,l,t,s,m):fie(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":Fs+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 oie(e,r,t,n){var a=e._useTicklabelIndex?e.minor._tickround:e._tickround,o=t&&e.hoverformat||ar.getTickFormat(e);n=!o&&n,n&&(fn(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=oc(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="<br> ")}r.text=i}function lie(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=ic(Math.pow(10,i),e,a,n);else if(fn(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),d=e.exponentformat;d==="power"||uf(d)&&d!=="SI extended"&&Y3(g)||uf(d)&&d==="SI extended"&&X3(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?"":Fs)+b+"</sup>"),r.fontSize*=1.25):(d==="e"||d==="E")&&b>2?r.text=c[0]+d+(g>0?"+":Fs)+b:(r.text=ic(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 sie(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function uie(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 fie(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=ic(r.x,e,a,n)}function cie(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=vie(o);if(i[1]>=100)r.text=ic(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=Fs+r.text)}}}else r.text=ic(r.x,e,a,n)}function vie(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"],hie=["q","r","y","z","a",...lC,"P","E","Z","Y","R","Q"],uf=e=>["SI","SI extended","B"].includes(e);function Y3(e){return e>14||e<-15}function X3(e){return e>32||e<-30}function die(e,r){return uf(r)?!!(r==="SI extended"&&X3(e)||r!=="SI extended"&&Y3(e)):!1}function ic(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:fn(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};G3(f),o=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,Fs);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"){die(l,i)&&(i="power");var g;l<0?g=Fs+-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":uf(i)&&(e+=i==="SI extended"?hie[l/3+10]:lC[l/3+5])}return a?Fs+e:e}ar.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*sf}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(d){return d},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){ui.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&&H3(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 d=r.linewidth/2||0;r.ticks==="inside"&&(d+=r.ticklen),H3(r,d,n,!0),H3(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Sie(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 h(ge){var Ee=s+(ge||"tick");return M[Ee]||(M[Ee]=mie(r,Ee,m)),M[Ee]}if(r.visible){var w=ar.makeTransTickFn(r),y=ar.makeTransTickLabelFn(r),v,A,p=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var E=pie(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 D=r._gridVals=A,I=yie(r,S);if(!u._hasOnlyLargeSploms){var F=r._subplotsWith,P={};for(o=0;o<F.length;o++){i=F[o],l=u._plots[i];var L=l[c+"axis"],z=L._mainAxis._id;if(!P[z]){P[z]=1;var O=f==="x"?"M0,"+L._offset+"v"+L._length:"M"+L._offset+",0h"+L._length;ar.drawGrid(e,r,{vals:D,counterAxis:L,layer:l.gridlayer.select("."+s),minorLayer:l.minorGridlayer.select("."+s),path:O,transFn:w}),ar.drawZeroLine(e,r,{counterAxis:L,layer:b?l.zerolinelayerAbove:l.zerolinelayer,path:O,transFn:w})}}}var B,V=ar.getTickSigns(r),J=ar.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var Q=ar.makeTickPath(r,m,V[2]),G=ar.makeTickPath(r,m,J[2],{minor:!0}),q,Z,re,$;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?(q=ar.makeTickPath(r,k,V[3]),Z=ar.makeTickPath(r,k,J[3],{minor:!0}),re=Q+q,$=G+Z):(q="",Z="",re=Q,$=G),r.showdividers&&R&&r.tickson==="boundaries"){var ie={};for(o=0;o<I.length;o++)ie[I[o].x]=1;B=function(ge){return ie[ge.x]?q:re}}else B=function(ge){return ge.minor?$:re}}if(ar.drawTicks(e,r,{vals:v,layer:_,path:B,transFn:w}),r.mirror==="allticks"){var j=Object.keys(r._linepositions||{});for(o=0;o<j.length;o++){i=j[o],l=u._plots[i];var te=r._linepositions[i]||[],ue=te[0],ee=te[1],ae=te[2],fe=ar.makeTickPath(r,ue,ae?V[0]:J[0],{minor:ae})+ar.makeTickPath(r,ee,ae?V[1]:J[1],{minor:ae});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 Me={x:2,y:10}[f];we.push(function(){var ge={x:"height",y:"width"}[f],Ee=h()[ge]+Me+(r._tickAngles[s+"tick"]?r.tickfont.size*ac:0);return ar.drawLabels(e,r,{vals:gie(r,S),layer:_,cls:s+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:w,labelFns:ar.makeLabelFns(r,m+Ee*V[4])})}),we.push(function(){return r._depth=V[4]*(h("tick2")[r.side]-m),xie(e,r,{vals:I,layer:_,path:ar.makeTickPath(r,m,V[4],{len:r._depth}),transFn:w})})}else r.title.hasOwnProperty("standoff")&&we.push(function(){r._depth=V[4]*(h()[r.side]-m)});var ke=rc.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(ke&&r.side==="bottom")&&we.push(function(){return _ie(e,r)}),we.push(function(){var ge=r.side.charAt(0),Ee=Xae[r.side].charAt(0),Le=ar.getPxPosition(e,r),se=R?r.ticklen:0,X,K,ye,oe;(r.automargin||ke||r._shiftPusher)&&(r.type==="multicategory"?X=h("tick2"):(X=h(),f==="x"&&ge==="b"&&(r._depth=Math.max(X.width>0?X.bottom-Le:0,se))));var he=0,pe=0;if(r._shiftPusher&&(he=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(he,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 de=r._offset-X.left;de>0&&(K.xl=0,K.l=de)}}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=rc.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(jS(K,r.automargin),jS(ye,r.automargin)),of.autoMargin(e,W3(r),K),of.autoMargin(e,uC(r),ye),of.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 pie(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 gie(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 yie(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 mie(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=U3(this);if(u.node().style.display!=="none"){var s=Ga.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 lf(e._offset+e.l2p(r.x),0)}:function(r){return lf(0,e._offset+e.l2p(r.x))}};ar.makeTransTickLabelFn=function(e){var r=bie(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 lf(a+e._offset+e.l2p(B3(g))+t,o+n)}:function(g){return lf(o+n,a+e._offset+e.l2p(B3(g))+t)}};function B3(e){return e.periodX!==void 0?e.periodX:e.x}function bie(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(d){return r.indexOf(d)!==-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=O1,b=e.tickfont?e.tickfont.size:12;return(l||a)&&(c+=b*Ns,g+=(e.linewidth||0)/2),(o||i)&&(c+=(e.linewidth||0)/2,g+=O1),u&&f==="top"&&(g-=b*(1-Ns)),(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,d=0,_=g?e.ticklen:0;if(c?_*=-1:f&&(_=0),g&&(b+=_,t)){var T=Er.deg2rad(t);b=_*Math.cos(T)+1,d=_*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:d},k,S,x,M,h=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=d*M,S=r+b*M,x=A?1:-.2,Math.abs(v)===90&&(c?x+=ec:v===-90&&w==="bottom"?x=Ns:v===90&&w==="top"?x=ec:x=.5,h=ec/2*(v/90)),m.xFn=function(E){return E.dx+k+h*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*x},m.anchorFn=function(E,D){if(f){if(l)return"end";if(u)return"start"}return!fn(D)||D===0||D===180?"middle":D*M<0!==c?"end":"start"},m.heightFn=function(E,D,I){return D<-60||D>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=d*M,x=0,!c&&Math.abs(v)===90&&(v===-90&&w==="left"||v===90&&w==="right"?x=Ns:x=.5),c){var p=fn(v)?+v:0;if(p!==0){var R=Er.deg2rad(p);h=Math.abs(Math.sin(R))*Ns*M,x=0}}m.xFn=function(E){return E.dx+r-(k+E.fontSize*x)*M+h*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*ec},m.anchorFn=function(E,D){return fn(D)&&Math.abs(D)===90?"middle":A?"end":"start"},m.heightFn=function(E,D,I){return e.side==="right"&&(D*=-1),D<-30?-I:D<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 tc.stroke(ui.select(this),i.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(i){return Ga.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=Ga.crispRound(e,r.gridwidth,1);for(var c=a?Ga.crispRound(e,r.minor.gridwidth,1):0,g=t.layer,b=t.minorLayer,d=1;d>=0;d--){var _=d?g:b;if(_){var T=_.selectAll("path."+n).data(d?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 tc.stroke(ui.select(this),m.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(m){return Ga.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,[q3,O3])}};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 Zae(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(tc.stroke,r.zerolinecolor||tc.defaultLine).style("stroke-width",Ga.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),V1(r,[N3])};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(z){return z.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(z){var O=ui.select(this),B=e._promises.length;O.call(zs.positionText,u.xFn(z),u.yFn(z)).call(Ga.font,{family:z.font,size:z.fontSize,color:z.fontColor,weight:z.fontWeight,style:z.fontStyle,variant:z.fontVariant,textcase:z.fontTextcase,lineposition:z.fontLineposition,shadow:z.fontShadow}).text(z.text).call(zs.convertToTspans,e),e._promises[B]?g.push(e._promises.pop().then(function(){b(O,s)})):b(O,s)}),V1(r,[YS]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(z){ui.select(this).select("text").call(zs.positionText,u.xFn(z),u.yFn(z))});function b(z,O){z.each(function(B){var V=ui.select(this),J=V.select(".text-math-group"),Q=u.anchorFn(B,O),G=t.transFn.call(V.node(),B)+(fn(O)&&+O!=0?" rotate("+O+","+u.xFn(B)+","+(u.yFn(B)-B.fontSize/2)+")":""),q=zs.lineCount(V),Z=ac*B.fontSize,re=u.heightFn(B,fn(O)?+O:0,(q-1)*Z);if(re&&(G+=lf(0,re)),J.empty()){var $=V.select("text");$.attr({transform:G,"text-anchor":Q}),$.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ie=Ga.bBox(J.node()).width,j=ie*{end:-.5,start:.5}[Q];J.attr("transform",G+lf(j,0))}})}r._adjustTickLabelsOverflow=function(){var z=r.ticklabeloverflow;if(!(!z||z==="allow")){var O=z.indexOf("hide")!==-1,B=r._id.charAt(0)==="x",V=0,J=B?e._fullLayout.width:e._fullLayout.height;if(z.indexOf("domain")!==-1){var Q=Er.simpleMap(r.range,r.r2l);V=r.l2p(Q[0])+r._offset,J=r.l2p(Q[1])+r._offset}var G=Math.min(V,J),q=Math.max(V,J),Z=r.side,re=1/0,$=-1/0;c.each(function(ue){var ee=ui.select(this),ae=ee.select(".text-math-group");if(ae.empty()){var fe=Ga.bBox(ee.node()),we=0;B?(fe.right>q||fe.left<G)&&(we=1):(fe.bottom>q||fe.top+(r.tickangle?0:ue.fontSize/4)<G)&&(we=1);var Me=ee.select("text");we?O&&Me.style("display","none"):Me.node().style.display!=="none"&&(Me.style("display",null),Z==="bottom"||Z==="right"?re=Math.min(re,B?fe.top:fe.left):re=-1/0,Z==="top"||Z==="left"?$=Math.max($,B?fe.bottom:fe.right):$=1/0)}});for(var ie in n._plots){var j=n._plots[ie];if(!(r._id!==j.xaxis._id&&r._id!==j.yaxis._id)){var te=B?j.yaxis:j.xaxis;te&&(te["_visibleLabelMin_"+r._id]=re,te["_visibleLabelMax_"+r._id]=$)}}}},r._hideCounterAxisInsideTickLabels=function(z){var O=r._id.charAt(0)==="x",B=[];for(var V in n._plots){var J=n._plots[V];r._id!==J.xaxis._id&&r._id!==J.yaxis._id||B.push(O?J.yaxis:J.xaxis)}B.forEach(function(Q,G){Q&&oc(Q)&&(z||[N3,O3,q3,rC,YS]).forEach(function(q){var Z=q.K==="tick"&&q.L==="text"&&r.ticklabelmode==="period",re=n._plots[r._mainSubplot],$;if(q.K===N3.K){var ie=o?re.zerolinelayerAbove:re.zerolinelayer;$=ie.selectAll("."+r._id+"zl")}else q.K===O3.K?$=re.minorGridlayer.selectAll("."+r._id):q.K===q3.K?$=re.gridlayer.selectAll("."+r._id):$=re[r._id.charAt(0)+"axislayer"];$.each(function(){var j=ui.select(this);q.L&&(j=j.selectAll(q.L)),j.each(function(te){var ue=r.l2p(Z?B3(te):te.x)+r._offset,ee=ui.select(this);ue<r["_visibleLabelMax_"+Q._id]&&ue>r["_visibleLabelMin_"+Q._id]?ee.style("display","none"):q.K==="tick"&&!G&&ee.node().style.display!=="none"&&ee.style("display",null)})})})})},b(c,f+1?f:s);function d(){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 z=0,O=[],B,V=1;c.each(function(K){z=Math.max(z,K.fontSize);var ye=r.l2p(K.x),oe=U3(this),he=Ga.bBox(oe.node());V=Math.max(V,zs.lineCount(oe)),O.push({top:0,bottom:10,height:10,left:ye-he.width/2,right:ye+he.width/2+2,width:he.width+2})});var J=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Q=l.length,G=Math.abs((l[Q-1].x-l[0].x)*r._m)/(Q-1),q=J?G/2:G,Z=J?r.ticklen:z*1.25*V,re=Math.sqrt(Math.pow(q,2)+Math.pow(Z,2)),$=q/re,ie=r.autotickangles.map(function(K){return K*Math.PI/180}),j=ie.find(function(K){return Math.abs(Math.cos(K))<=$});j===void 0&&(j=ie.reduce(function(K,ye){return Math.abs(Math.cos(K))<Math.abs(Math.cos(ye))?K:ye},ie[0]));var te=j*(180/Math.PI);if(J){var ue=2;for(r.ticks&&(ue+=r.tickwidth/2),B=0;B<O.length;B++){var ee=l[B].xbnd,ae=O[B];if(ee[0]!==null&&ae.left-r.l2p(ee[0])<ue||ee[1]!==null&&r.l2p(ee[1])-ae.right<ue){_=te;break}}}else{var fe=r.ticklabelposition||"",we=r.tickson||"",Me=function(K){return fe.indexOf(K)!==-1},ke=Me("top"),ge=Me("left"),Ee=Me("right"),Le=Me("bottom"),se=we!=="boundaries"&&(Le||ge||ke||Ee),X=se?(r.tickwidth||0)+2*O1:0;for(B=0;B<O.length-1;B++)if(Er.bBoxIntersect(O[B],O[B+1],X)){_=te;break}}_&&b(c,_)}}r._selections&&(r._selections[i]=c);var m=[d];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?fn(s)?s:0:_});var k=function(){var z=0,O=0;return c.each(function(B,V){var J=U3(this),Q=J.select(".text-math-group");if(Q.empty()){var G;r._vals[V]&&(G=r._vals[V].bb||Ga.bBox(J.node()),r._vals[V].bb=G),z=Math.max(z,G.width),O=Math.max(O,G.height)}}),{labelsMaxW:z,labelsMaxH:O}},S=r._anchorAxis;if(S&&(S.autorange||S.insiderange)&&oc(r)&&!Jae(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*O1,r.ticklabelposition==="inside"&&(M+=r.ticklen||0);var h=r.side==="right"||r.side==="top"?1:-1,w=h===1?1:0,y=h===1?0:1,v=[];v[y]=S.range[y];var A=S.range,p=S.r2p(A[w]),R=S.r2p(A[y]),E=n._insideTickLabelsUpdaterange[S._name+".range"];if(E){var D=S.r2p(E[w]),I=S.r2p(E[y]),F=h*(r._id.charAt(0)==="y"?1:-1);F*p<F*D&&(p=D,v[w]=A[w]=E[w]),F*R>F*I&&(R=I,v[y]=A[y]=E[y])}var P=Math.abs(R-p);P-M>0?(P-=M,M*=1+M/P):M=0,r._id.charAt(0)!=="y"&&(M=-M),v[w]=S.p2r(S.r2p(A[w])+h*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 xie(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(tc.stroke,r.dividercolor).style("stroke-width",Ga.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(zs.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Ns+t*ac):t?r*(t+1)*ac:r}function _ie(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),o=r.title.font.size,i,l=(r.title.text.match(zs.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?i=r._depth+r.title.standoff+o*Ns:(r.side==="top"||r.side==="left")&&(i=r._depth+r.title.standoff+o*(ec+l*ac));else{var u=oc(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 d;if(r.type!=="multicategory"){var _=r._selections[r._id+"tick"];if(d={selection:_,side:r.side},_&&_.node()&&_.node().parentNode){var T=Ga.getTranslate(_.node().parentNode);d.offsetLeft=T.x,d.offsetTop=T.y}r.title.hasOwnProperty("standoff")&&(d.pad=0)}return r._titleStandoff=i,Oae.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:d,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)===B1)&&(sC(r,0)||!wie(e,r,t,n)||Mie(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 wie(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(d){if(!d.showline||!d.linewidth)return!1;var _=Math.max((d.linewidth+r.zerolinewidth)/2,1);function T(S){return typeof S=="number"&&Math.abs(S-u)<_}if(T(d._mainLinePosition)||T(d._mainMirrorPosition))return!0;var m=d._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 Mie(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&&(rc.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 U3(e){var r=ui.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&&(of.allowAutoMargin(e,W3(n)),n.mirror&&of.allowAutoMargin(e,uC(n))),rc.getComponentMethod("rangeslider","isVisible")(n)&&of.allowAutoMargin(e,fC(n))}};function W3(e){return e._id+".automargin"}function uC(e){return W3(e)+".mirror"}function fC(e){return e._id+".rangeslider"}ar.swap=function(e,r){for(var t=Tie(e,r),n=0;n<t.length;n++)Aie(e,t[n].x,t[n].y)};function Tie(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]],P1(u.x,s.x),P1(u.y,s.y);P1(u.x,[i]),P1(u.y,[l])}}return t}function P1(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function Aie(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],d=!0,_=!1,T=!1;if(!(c.charAt(0)==="_"||typeof g=="function"||s.indexOf(c)!==-1)){for(l=1;l<n.length&&d;l++){var m=n[l][c];c==="type"&&f.indexOf(g)!==-1&&f.indexOf(m)!==-1&&g!==m?_=!0:m!==g&&(d=!1)}for(l=1;l<a.length&&d;l++){var k=a[l][c];c==="type"&&f.indexOf(b)!==-1&&f.indexOf(k)!==-1&&b!==k?T=!0:a[l][c]!==b&&(d=!1)}d&&(_&&(o[n[0]._name].type="linear"),T&&(o[a[0]._name].type="linear"),kie(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 kie(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 Z3(e){return e._id==="angularaxis"}function z3(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 oc(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function V1(e,r){oc(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function H3(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 Sie(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function Cie(e,r){return/%f/.test(r)?e>=Yae:/%L/.test(r)?e>=Gae:/%[SX]/.test(r)?e>=q1:/%M/.test(r)?e>=nc:/%[HI]/.test(r)?e>=po:/%p/.test(r)?e>=Ll:/%[Aadejuwx]/.test(r)?e>=ca:/%[UVW]/.test(r)?e>=Ya:/%[Bbm]/.test(r)?e>=N1:/%[q]/.test(r)?e>=F1:/%[Yy]/.test(r)?e>=z1:!0}});var hC=xe((R6e,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 J3=xe((D6e,dC)=>{"use strict";var Eie=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&&(Eie(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var gC=xe((P6e,pC)=>{var Lie={left:0,top:0};pC.exports=Rie;function Rie(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?Lie:e.getBoundingClientRect()}});var G1=xe((I6e,yC)=>{"use strict";var Pie=_m();function Iie(){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=Pie&&Iie()});var bC=xe((z6e,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((F6e,_C)=>{"use strict";var xC=rr(),zie=[["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),zie[t][r]}});var TC=xe((N6e,MC)=>{"use strict";var Fie=V0(),Nie=Xh(),qie=z0().getGraphDiv,Oie=(g0(),or(p0)),$3=MC.exports={};$3.wrapped=function(e,r,t){var o;e=qie(e),e._fullLayout&&Nie.clear(e._fullLayout._uid+Oie.HOVERID);let n=e._hoverdata;$3.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:[]}))};$3.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&Fie.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 Fi=xe((q6e,CC)=>{"use strict";var Bie=gC(),K3=Mm(),Uie=G1(),Hie=rr().removeElement,Vie=(Sn(),or(kn)),qs=CC.exports={};qs.align=bC();qs.getCursor=wC();var kC=TC();qs.unhover=kC.wrapped;qs.unhoverRaw=kC.raw;qs.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,Uie?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=T,o.addEventListener("touchstart",T,{passive:!1})):o.ontouchstart=T;function d(S,x,M){return Math.abs(S)<M&&(S=0),Math.abs(x)<M&&(x=0),[S,x]}var _=r.clampFn||d;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),K3&&!b?(f=SC(),f.style.cursor=window.getComputedStyle(o).cursor):K3||(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||Vie.MINDRAG,h=_(x[0]-i,x[1]-l,M),w=h[0],y=h[1];(w||y)&&(t._dragged=!0,qs.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),K3?Hie(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 h=c[M];!x[M]&&typeof h!="function"&&(x[M]=h)})),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}qs.coverSlip=SC;function AC(e){return Bie(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Rl=xe((O6e,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 DC=xe((B6e,RC)=>{"use strict";var Q3=Rl(),lc="data-savedcursor",LC="!!";RC.exports=function(r,t){var n=r.attr(lc);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(lc,i.slice(7)).classed(i,!1)}r.attr(lc)||r.attr(lc,LC)}Q3(r,t)}else n&&(r.attr(lc,null),n===LC?Q3(r):Q3(r,n))}});var Y1={};Ot(Y1,{dfltFillHeight:()=>Kie,itemGap:()=>$ie,itemHeightPad:()=>jie,itemMinHeight:()=>Qie,scrollBarColor:()=>Xie,scrollBarEnterAttrs:()=>Zie,scrollBarMargin:()=>Wie,scrollBarMinHeight:()=>Yie,scrollBarWidth:()=>Gie,titlePad:()=>Jie});var Gie,Yie,Xie,Wie,Zie,Jie,$ie,Kie,Qie,jie,X1=qt(()=>{"use strict";Gie=6,Yie=20,Xie="#808BA4",Wie=4,Zie={rx:20,ry:3,width:0,height:0},Jie=2,$ie=5,Kie=6,Qie=16,jie=3});var e5=xe((U6e,IC)=>{"use strict";var j3=Wn(),eoe=ao(),{dfltFillHeight:PC}=(X1(),or(Y1));IC.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:eoe.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:j3({editType:"legend"}),grouptitlefont:j3({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:PC,dflt:PC,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:j3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var uc=xe(sc=>{"use strict";sc.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};sc.isVertical=function(r){return r.orientation!=="h"};sc.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};sc.getId=function(r){return r._id||"legend"}});var t5=xe((V6e,zC)=>{"use strict";var W1=Cr(),Xa=rr(),roe=At(),toe=Zn(),noe=e5(),aoe=Ou(),r5=uc();function ioe(e,r,t,n,a){var o=r[e]||{},i=roe.newContainer(t,e);function l(O,B){return Xa.coerce(o,i,noe,O,B)}var u=Xa.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(!s)return;var f,c=function(O,B){var V=f._input,J=f;return Xa.coerce(V,J,toe,O,B)},g=t.font||{},b=Xa.coerceFont(l,"grouptitlefont",g,{overrideDflt:{size:Math.round(g.size*1.1)}}),d=0,_=!1,T="normal",m=(t.shapes||[]).filter(function(O){return O.showlegend});function k(O){return W1.traceIs(O,"pie-like")&&O._length!=null&&(Array.isArray(O.legend)||Array.isArray(O.showlegend))}n.filter(k).forEach(function(O){O.visible&&d++;for(var B=0;B<O._length;B++){var V=(Array.isArray(O.legend)?O.legend[B]:O.legend)||"legend";V===e&&((Array.isArray(O.showlegend)?O.showlegend[B]:O.showlegend)||O._dfltShowLegend)&&(_=!0,d++)}if(e==="legend"&&O._length>O.legend.length)for(var J=O.legend.length;J<O._length;J++)_=!0,d++});for(var S=n.concat(m).filter(function(O){return!k(f)&&e===(O.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))&&(d++,f.showlegend&&(_=!0,(!M&&W1.traceIs(f,"pie-like")||f._input.showlegend===!0)&&d++),Xa.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 h=Xa.coerce(r,t,aoe,"showlegend",t.showlegend||_&&d>(e==="legend"?1:0));if(h===!1&&(t[e]=void 0),h===!1&&!o.uirevision||(l("uirevision",t.uirevision),h===!1))return;l("borderwidth");var w=l("orientation"),y=l("yref"),v=l("xref"),A=w==="h",p=y==="paper",R=v==="paper",E,D,I,F="left";A?(E=0,W1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?p?(D=1.1,I="bottom"):(D=1,I="top"):p?(D=-.1,I="top"):(D=0,I="bottom")):(D=1,I="auto",R?E=1.02:(E=1,F="right")),Xa.coerce(o,i,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:E}},"x"),Xa.coerce(o,i,{y:{valType:"number",editType:"legend",min:p?-2:0,max:p?3:1,dflt:D}},"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 P=l("groupclick");l("groupdoubleclick",P),l("xanchor",F),l("yanchor",I),l("maxheight"),l("valign"),Xa.noneOrAll(o,i,["x","y"]);var L=l("title.text");if(L){l("title.side",A?"left":"top");var z=Xa.extendFlat({},u,{size:Xa.bigFont(u.size)});Xa.coerceFont(l,"title.font",z);let O=a>1;l("titleclick",O?"toggle":!1),l("titledoubleclick",O?"toggleothers":!1)}}zC.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):Xa.pushUnique(s,o[a].legend);for(t._legends=[],a=0;a<s.length;a++){var f=s[a];ioe(f,r,t,o,s.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var i5=xe(a5=>{"use strict";var Dl=Cr(),n5=rr(),ooe=n5.pushUnique,loe=uc(),FC=!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"&&FC&&t.data&&t._context.showTips&&(n5.notifier(n5._(t,"Double-click on legend to isolate one trace"),"long",t),FC=!1);var s=u==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],c=t._fullData;let g=(i.shapes||[]).filter(Me=>Me.showlegend||Me.legendgroup);var b=c.concat(g),d=l.trace;d._isShape&&(d=i.shapes[d.index]);var _=d.legendgroup,T,m,k,S,x,M,h={},w=[],y=[],v=[];function A(Me,ke){var ge=w.indexOf(Me),Ee=h.visible;return Ee||(Ee=h.visible=[]),w.indexOf(Me)===-1&&(w.push(Me),ge=w.length-1),Ee[ge]=ke,ge}var p=(i.shapes||[]).map(function(Me){return Me._input}),R=!1;function E(Me,ke){p[Me].visible=ke,R=!0}function D(Me,ke){if(!(l.groupTitle&&!s)){var ge=Me._isShape,Ee=Me.index;Ee===void 0&&(Ee=Me._index);var Le=Me.visible===!1?!1:ke;ge?E(Ee,Le):A(Ee,Le)}}var I=d.legend;if(!d._isShape&&Dl.traceIs(d,"pie-like")){var F=l.label,P=f.indexOf(F);if(a==="toggle")P===-1?f.push(F):f.splice(P,1);else if(a==="toggleothers"){var L=P!==-1,z=[];for(T=0;T<t.calcdata.length;T++){var O=t.calcdata[T];for(m=0;m<O.length;m++){var B=O[m],V=B.label;I===O[0].trace.legend&&F!==V&&(f.indexOf(V)===-1&&(L=!0),ooe(f,V),z.push(V))}}if(!L)for(var J=0;J<z.length;J++){var Q=f.indexOf(z[J]);Q!==-1&&f.splice(Q,1)}}Dl.call("_guiRelayout",t,"hiddenlabels",f)}else{var G=_&&_.length,q=[],Z;if(G)for(T=0;T<b.length;T++)Z=b[T],Z.visible&&Z.legendgroup===_&&q.push(T);if(a==="toggle"){var re;switch(d.visible){case!0:re="legendonly";break;case!1:re=!1;break;case"legendonly":re=!0;break}if(G)if(s)for(T=0;T<b.length;T++){var $=b[T];$.visible!==!1&&$.legendgroup===_&&D($,re)}else D(d,re);else D(d,re)}else if(a==="toggleothers"){var ie,j,te,ue,ee,ae=!0;let Me=G&&s;for(T=0;T<b.length;T++)if(ee=b[T],ie=ee===d,te=ee.showlegend!==!0,!(ie||te)&&(j=Me&&ee.legendgroup===_,!j&&ee.legend===I&&ee.visible===!0&&!Dl.traceIs(ee,"notLegendIsolatable"))){ae=!1;break}for(T=0;T<b.length;T++)if(ee=b[T],!(ee.visible===!1||ee.legend!==I)&&!Dl.traceIs(ee,"notLegendIsolatable"))switch(d.visible){case"legendonly":D(ee,!0);break;case!0:ue=ae?!0:"legendonly",ie=ee===d,te=ee.showlegend!==!0&&!ee.legendgroup,j=ie||Me&&ee.legendgroup===_,D(ee,j||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=h[S]=h[S]||[],M[v[T]]=fe[S]}for(x=Object.keys(h),T=0;T<x.length;T++)for(S=x[T],m=0;m<w.length;m++)h[S].hasOwnProperty(m)||(h[S][m]=void 0);R?Dl.call("_guiUpdate",t,h,{shapes:p},w):Dl.call("_guiRestyle",t,h,w)}};a5.handleTitleClick=function(r,t,n){let a=r._fullLayout,o=r._fullData,i=loe.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=[],d=(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?(d[m._index].visible=x,_=!0):(b.push(m.index),g.visible.push(x)))}_?Dl.call("_guiUpdate",r,g,{shapes:d},b):b.length&&Dl.call("_guiRestyle",r,g,b)}});var OC=xe((Y6e,qC)=>{"use strict";var{isArrayOrTypedArray:o5}=ba(),NC=Cr(),l5=uc();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,d;function _(O,B,V){if(t.visible!==!1&&!(n&&O!==t._id))if(B===""||!l5.isGrouped(t)){var J="~~i"+c;u.push(J),l[J]=[V],c++}else u.indexOf(B)===-1?(u.push(B),s=!0,l[B]=[V]):l[B].push(V)}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),h=Array.isArray(k.showlegend);for(f[x]||(f[x]={}),d=0;d<T.length;d++)if(!(h&&k.showlegend[T[d].i]===!1)){M&&(S=k.legend[T[d].i]||"legend");var w=T[d].label;f[x][w]||(_(S,x,{label:w,color:T[d].color,i:T[d].i,trace:k,pts:T[d].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(d=0;d<v[b].length;d++){var R=v[b][d].trace.legendrank,E=o5(R)?Math.min(R):R;p>E&&(p=E)}v[b][0]._groupMinRank=p,v[b][0]._preGroupSort=b}var D=function(O,B){return O[0]._groupMinRank-B[0]._groupMinRank||O[0]._preGroupSort-B[0]._preGroupSort},I=function(O,B){var V=o5(O.trace.legendrank)?O.trace.legendrank[O.i]:O.trace.legendrank,J=o5(B.trace.legendrank)?B.trace.legendrank[B.i]:B.trace.legendrank;return V-J||O._preSort-B._preSort};for(v.forEach(function(O,B){O[0]._preGroupSort=B}),v.sort(D),b=0;b<v.length;b++){v[b].forEach(function(O,B){O._preSort=B}),v[b].sort(I);var F=v[b][0].trace,P=null;for(d=0;d<v[b].length;d++){var L=v[b][d].trace.legendgrouptitle;if(L&&L.text){P=L,a&&(L.font=t._groupTitleFont);break}}if(i&&v[b].reverse(),P){var z=!1;for(d=0;d<v[b].length;d++)if(NC.traceIs(v[b][d].trace,"pie-like")){z=!0;break}v[b].unshift({i:-1,groupTitle:P,noClick:z,trace:{showlegend:F.showlegend,legendgroup:F.legendgroup,legend:F.legend,visible:t.groupclick==="toggleitem"?!0:F.visible}})}for(d=0;d<v[b].length;d++)v[b][d]=[v[b][d]]}return t._lgroupsLength=v.length,t._maxNameLength=g,v}});var s5=xe(Os=>{"use strict";var Z1=rr();function BC(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Os.formatPiePercent=function(r,t){var n=BC((r*100).toPrecision(3));return Z1.numSeparate(n,t)+"%"};Os.formatPieValue=function(r,t){var n=BC(r.toPrecision(10));return Z1.numSeparate(n,t)};Os.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}};Os.castOption=function(r,t){if(Z1.isArrayOrTypedArray(r))return Os.getFirstFilled(r,t);if(r)return r};Os.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var HC=xe((W6e,UC)=>{"use strict";var soe=kt(),uoe=Zr();UC.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?soe.pointStyle(r,n,a,t):uoe.fill(r,t.color)}});var XC=xe((Z6e,YC)=>{"use strict";var VC=Zr(),GC=s5().castOption,foe=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(foe,t,n,a).style("stroke-width",l).call(VC.stroke,i)}});var h5=xe((J6e,KC)=>{"use strict";var va=st(),u5=Cr(),jn=rr(),f5=jn.strTranslate,Wa=kt(),fi=Zr(),c5=oo().extractOpts,$1=Ra(),coe=XC(),voe=s5().castOption,WC=(X1(),or(Y1)),ZC=12,JC=5,Bs=2,hoe=10,ff=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 R;if(y+1)R=y;else if(v&&v.width>0)R=v.width;else return 0;return o?p:Math.min(R,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,R=n.valign,E=y[0].lineHeight,D=y[0].height;if(R==="middle"&&p===0||!E||!D)A.attr("transform",null);else{var I={top:1,bottom:-1}[R],F=I*(.5*(E-D+3))||0,P=n.indentation;A.attr("transform",f5(P,F))}var L=A.selectAll("g.legendfill").data([y]);L.enter().append("g").classed("legendfill",!0);var z=A.selectAll("g.legendlines").data([y]);z.enter().append("g").classed("legendlines",!0);var O=A.selectAll("g.legendsymbols").data([y]);O.enter().append("g").classed("legendsymbols",!0),O.selectAll("g.legendpoints").data([y]).enter().append("g").classed("legendpoints",!0)}).each(w).each(b).each(_).each(d).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,R=v.showGradientLine,E=v.showGradientFill,D=v.anyFill,I=v.anyLine,F=y[0],P=F.trace,L,z,O=c5(P),B=O.colorscale,V=O.reversescale,J=function(j){if(j.size())if(A)Wa.fillGroupStyle(j,t,!0);else{var te="legendfill-"+P.uid;Wa.gradient(j,t,te,v5(V),B,"fill")}},Q=function(j){if(j.size()){var te="legendline-"+P.uid;Wa.lineGroupStyle(j),Wa.gradient(j,t,te,v5(V),B,"stroke")}},G=$1.hasMarkers(P)||!D?"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",G+"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||R){var $=f(void 0,P.line,hoe,JC);z=jn.minExtend(P,{line:{width:$}}),L=[jn.minExtend(F,{trace:z})]}var ie=q.select(".legendlines").selectAll("path").data(p||R?[L]:[]);ie.enter().append("path").classed("js-line",!0),ie.exit().remove(),ie.attr("d",G+(R?"l"+i+",0.0001":"h"+i)).call(p?Wa.lineGroupStyle:Q)}function g(y){var v=$C(y),A=v.anyFill,p=v.anyLine,R=v.showLine,E=v.showMarker,D=y[0],I=D.trace,F=!E&&!p&&!A&&$1.hasText(I),P,L;function z(re,$,ie,j){var te=jn.nestedProperty(I,re).get(),ue=jn.isArrayOrTypedArray(te)&&$?$(te):te;if(o&&ue&&j!==void 0&&(ue=j),ie){if(ue<ie[0])return ie[0];if(ue>ie[1])return ie[1]}return ue}function O(re){return D._distinct&&D.index&&re[D.index]?re[D.index]:re[0]}if(E||F||R){var B={},V={};if(E){B.mc=z("marker.color",O);var J=I.type==="scattermap";B.mx=J?"circle":z("marker.symbol",O),B.mo=z("marker.opacity",jn.mean,[.2,1]),B.mlc=z("marker.line.color",O),B.mlw=z("marker.line.width",jn.mean,[0,5],Bs),B.mld=z("marker.line.dash",O),V.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Q=z("marker.size",jn.mean,[2,16],ZC);B.ms=Q,V.marker.size=Q}R&&(V.line={width:z("line.width",O,[0,10],JC)}),F&&(B.tx="Aa",B.tp=z("textposition",O),B.ts=10,B.tc=z("textfont.color",O),B.tf=z("textfont.family",O),B.tw=z("textfont.weight",O),B.ty=z("textfont.style",O),B.tv=z("textfont.variant",O),B.tC=z("textfont.textcase",O),B.tE=z("textfont.lineposition",O),B.tS=z("textfont.shadow",O)),P=[jn.minExtend(D,B)],L=jn.minExtend(I,V),L.selectedpoints=null,L.texttemplate=null}var G=va.select(this).select("g.legendpoints"),q=G.selectAll("path.scatterpts").data(E?P:[]);q.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),q.exit().remove(),q.call(Wa.pointStyle,L,t),E&&(P[0].mrc=3);var Z=G.selectAll("g.pointtext").data(F?P:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Z.exit().remove(),Z.selectAll("text").call(Wa.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 R=[];v.visible&&A&&(R=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(R);E.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D){var I=va.select(this),F=v[D[0]].marker,P=f(void 0,F.line,ff,Bs);I.attr("d",D[1]).style("stroke-width",P+"px").call(fi.fill,F.color),P&&I.call(fi.stroke,F.line.color)})}function d(y){T(y,this)}function _(y){T(y,this,"funnel")}function T(y,v,A){var p=y[0].trace,R=p.marker||{},E=R.line||{},D=R.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"),F=va.select(v).select("g.legendpoints").selectAll("path.legend"+A).data(I?[y]:[]);F.enter().append("path").classed("legend"+A,!0).attr("d",D).attr("transform",s),F.exit().remove(),F.each(function(P){var L=va.select(this),z=P[0],O=f(z.mlw,R.line,ff,Bs);L.style("stroke-width",O+"px");var B=z.mcc;if(!n._inHover&&"mc"in z){var V=c5(R),J=V.mid;J===void 0&&(J=(V.max+V.min)/2),B=Wa.tryColorscale(R,"")(J)}var Q=B||z.mc||R.color,G=R.pattern,q=Wa.getPatternAttr;let Z=0;n._inHover&&z._distinct&&z.index!=null&&(Z=z.index);let re=G&&(q(G.shape,Z,"")||q(G.path,Z,""));if(re){let ie=q(G.bgcolor,Z,null),j=q(G.fgcolor,Z,null);var $=G.fgopacity;let te=n._inHover?J1(q(G.size,Z,8),8,10):J1(G.size,8,10),ue=n._inHover?J1(q(G.solidity,Z,.5),.5,1):J1(G.solidity,.5,1),ee=n._inHover?`hover-${p.uid}-${Z}`:`legend-${p.uid}`;L.call(Wa.pattern,"legend",t,ee,re,te,ue,B,G.fillmode,ie,j,$)}else L.call(fi.fill,Q);O&&fi.stroke(L,z.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")&&fi.opacity(v.fillcolor)===0&&fi.opacity((v.line||{}).color)===0){var R=jn.minExtend(v,{marker:{size:o?ZC:jn.constrain(v.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});A.call(Wa.pointStyle,R,t)}else{var E=f(void 0,v.line,ff,Bs);p.style("stroke-width",E+"px").call(fi.fill,v.fillcolor),E&&fi.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,R){return R?"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,R){var E=va.select(this),D=v[R?"increasing":"decreasing"],I=f(void 0,D.line,ff,Bs);E.style("stroke-width",I+"px").call(fi.fill,D.fillcolor),I&&fi.stroke(E,D.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,R){return R?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(p,R){var E=va.select(this),D=v[R?"increasing":"decreasing"],I=f(void 0,D.line,ff,Bs);E.style("fill","none").call(Wa.dashLine,D.line.dash,I),I&&fi.stroke(E,D.line.color)})}function x(y){h(y,this,"pie")}function M(y){h(y,this,"funnelarea")}function h(y,v,A){var p=y[0],R=p.trace,E=A?R.visible&&R.type===A:u5.traceIs(R,A),D=va.select(v).select("g.legendpoints").selectAll("path.legend"+A).data(E?[y]:[]);if(D.enter().append("path").classed("legend"+A,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.size()){var I=R.marker||{},F=f(voe(I.line.width,p.pts),I.line,ff,Bs),P="pieLike",L=jn.minExtend(R,{marker:{line:{width:F}}},P),z=jn.minExtend(p,{trace:L},P);coe(D,z,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 R=va.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(p);R.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(E,D){var I=va.select(this),F=c5(v),P=F.colorscale,L=F.reversescale,z=function(J){if(J.size()){var Q="legendfill-"+v.uid;Wa.gradient(J,t,Q,v5(L,A==="radial"),P,"fill")}},O;if(P){if(!A){var V=P.length;O=D===0?P[L?V-1:0][1]:D===1?P[L?0:V-1][1]:P[Math.floor((V-1)/2)][1]}}else{var B=v.vertexcolor||v.facecolor||v.color;O=jn.isArrayOrTypedArray(B)?B[D]||B[0]:B}I.attr("d",E[0]),O?I.call(fi.fill,O):I.call(z)})}};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(($6e,lE)=>{"use strict";var ha=st(),cn=rr(),p5=Cn(),Us=Cr(),j1=V0(),d5=Fi(),vn=kt(),fc=Zr(),Bo=Qn(),QC=i5().handleItemClick,jC=i5().handleTitleClick,Wt=(X1(),or(Y1)),g5=(Kn(),or($n)),iE=g5.LINE_SPACING,vf=g5.FROM_TL,eE=g5.FROM_BR,rE=OC(),doe=h5(),hf=uc(),cf=1,poe=/^legend[0-9]*$/;lE.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(poe)&&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 goe(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var n=r.title.font,a=n.size*iE,o=0,i=e.node(),l=vn.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),Bo.positionText(e,t+Wt.titlePad+o,t+a)}}function tE(e,r){var t=r||{},n=e._fullLayout,a=hf.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 d=n.hiddenlabels||[];if(!l&&(!n.showlegend||!u.length))return i.selectAll("."+a).remove(),n._topdefs.select("#"+o).remove(),p5.autoMargin(e,a);var _=cn.ensureSingle(i,"g",a,function(y){l||y.attr("pointer-events","all")}),T=cn.ensureSingleById(n._topdefs,"clipPath",o,function(y){y.append("rect")}),m=cn.ensureSingle(_,"rect","bg",function(y){y.attr("shape-rendering","crispEdges")});m.call(fc.stroke,t.bordercolor).call(fc.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=cn.ensureSingle(_,"g","scrollbox"),S=t.title;t._titleWidth=0,t._titleHeight=0;var x;S.text?(x=cn.ensureSingle(k,"text",a+"titletext"),x.attr("text-anchor","start").call(vn.font,S.font).text(S.text),Q1(x,k,e,t,cf),!l&&(t.titleclick||t.titledoubleclick)&&boe(k,e,t,a)):(k.selectAll("."+a+"titletext").remove(),k.selectAll("."+a+"titletoggle").remove());var M=cn.ensureSingle(_,"rect","scrollbar",function(y){y.attr(Wt.scrollBarEnterAttrs).call(fc.fill,Wt.scrollBarColor)}),h=k.selectAll("g.groups").data(u);h.enter().append("g").attr("class","groups"),h.exit().remove();var w=h.selectAll("g.traces").data(cn.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,R=(n.shapes||[]).filter(function(D){return D.showlegend});return e._fullData.concat(R).some(function(D){return D.legendgroup===p&&(D.legend||"legend")===a&&D.visible===!0})?1:.5}return Us.traceIs(A,"pie-like")?d.indexOf(y[0].label)!==-1?.5:1:A.visible==="legendonly"?.5:1}).each(function(){ha.select(this).call(yoe,e,t)}).call(doe,e,t).each(function(y){l||y[0].groupTitle&&t.groupclick==="toggleitem"||ha.select(this).call(moe,e,a)}),cn.syncOrAsync([p5.previousPromises,function(){return woe(e,h,w,t,k)},function(){var y=n._size,v=t.borderwidth,A=t.xref==="paper",p=t.yref==="paper";if(S.text){let ae=(n.shapes||[]).filter(function(we){return we.showlegend}),fe=e._fullData.concat(ae).some(function(we){let Me=we.legend||"legend";var ke=Array.isArray(Me)?Me.includes(a):Me===a;return ke&&we.visible===!0});x.style("opacity",fe?1:.5)}if(!l){var R,E;A?R=y.l+y.w*t.x-vf[ed(t)]*t._width:R=n.width*t.x-vf[ed(t)]*t._width,p?E=y.t+y.h*(1-t.y)-vf[rd(t)]*t._effHeight:E=n.height*(1-t.y)-vf[rd(t)]*t._effHeight;var D=Moe(e,a,R,E);if(D)return;if(n.margin.autoexpand){var I=R,F=E;R=A?cn.constrain(R,0,n.width-t._width):I,E=p?cn.constrain(E,0,n.height-t._effHeight):F,R!==I&&cn.log("Constrain "+a+".x to make legend fit inside graph"),E!==F&&cn.log("Constrain "+a+".y to make legend fit inside graph")}vn.setTranslate(_,R,E)}if(M.on(".drag",null),_.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var P=t._effHeight;l&&(P=t._height),m.attr({width:t._width-v,height:P-v,x:v/2,y:v/2}),vn.setTranslate(k,0,0),T.select("rect").attr({width:t._width-2*v,height:P-2*v,x:v,y:v}),vn.setClipUrl(k,o,e),vn.setRect(M,0,0,0,0),delete t._scrollY}else{var L=Math.max(Wt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),z=t._effHeight-L-2*Wt.scrollBarMargin,O=t._height-t._effHeight,B=z/O,V=Math.min(t._scrollY||0,O);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+V}),vn.setClipUrl(k,o,e),ie(V,L,B),_.on("wheel",function(){V=cn.constrain(t._scrollY+ha.event.deltaY/O*z,0,O),ie(V,L,B),V!==0&&V!==O&&ha.event.preventDefault()});var J,Q,G,q=function(ae,fe,we){var Me=(we-fe)/B+ae;return cn.constrain(Me,0,O)},Z=function(ae,fe,we){var Me=(fe-we)/B+ae;return cn.constrain(Me,0,O)},re=ha.behavior.drag().on("dragstart",function(){var ae=ha.event.sourceEvent;ae.type==="touchstart"?J=ae.changedTouches[0].clientY:J=ae.clientY,G=V}).on("drag",function(){var ae=ha.event.sourceEvent;ae.buttons===2||ae.ctrlKey||(ae.type==="touchmove"?Q=ae.changedTouches[0].clientY:Q=ae.clientY,V=q(G,J,Q),ie(V,L,B))});M.call(re);var $=ha.behavior.drag().on("dragstart",function(){var ae=ha.event.sourceEvent;ae.type==="touchstart"&&(J=ae.changedTouches[0].clientY,G=V)}).on("drag",function(){var ae=ha.event.sourceEvent;ae.type==="touchmove"&&(Q=ae.changedTouches[0].clientY,V=Z(G,J,Q),ie(V,L,B))});k.call($)}function ie(ae,fe,we){t._scrollY=e._fullLayout[a]._scrollY=ae,vn.setTranslate(k,0,-ae),vn.setRect(M,t._width,Wt.scrollBarMargin+ae*we,Wt.scrollBarWidth,fe),T.select("rect").attr("y",v+ae)}if(e._context.edits.legendPosition){var j,te,ue,ee;_.classed("cursor-move",!0),d5.init({element:_.node(),gd:e,prepFn:function(ae){if(ae.target!==M.node()){var fe=vn.getTranslate(_);ue=fe.x,ee=fe.y}},moveFn:function(ae,fe){if(ue!==void 0&&ee!==void 0){var we=ue+ae,Me=ee+fe;vn.setTranslate(_,we,Me),j=d5.align(we,t._width,y.l,y.l+y.w,t.xanchor),te=d5.align(Me+t._height,-t._height,y.t+y.h,y.t,t.yanchor)}},doneFn:function(){if(j!==void 0&&te!==void 0){var ae={};ae[a+".x"]=j,ae[a+".y"]=te,Us.call("_guiRelayout",e,ae)}},clickFn:function(ae,fe){var we=i.selectAll("g.traces").filter(function(){var Me=this.getBoundingClientRect();return fe.clientX>=Me.left&&fe.clientX<=Me.right&&fe.clientY>=Me.top&&fe.clientY<=Me.bottom});we.size()>0&&oE(e,t,we,ae,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 oE(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),Us.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 yoe(e,r,t){var n=hf.getId(t),a=e.data()[0][0],o=a.trace,i=Us.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=cn.templateString(s,o._meta))));var c=cn.ensureSingle(e,"text",n+"text");c.attr("text-anchor","start").call(vn.font,f).text(l?nE(s,u):s);var g=t.indentation+t.itemwidth+Wt.itemGap*2;Bo.positionText(c,g,0),l?c.call(Bo.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 d={};return d.name=b,a.trace._isShape?Us.call("_guiRelayout",r,"shapes["+o.index+"].name",d.name):Us.call("_guiRestyle",r,d,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 moe(e,r,t){var n=r._context.doubleClickDelay,a,o=1,i=cn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(fc.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)),oE(r,l,e,o,ha.event)}}))}function boe(e,r,t,n){if(r._fullData.some(function(s){let f=s.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&Us.traceIs(s,"pie-like")}))return;let o=r._context.doubleClickDelay;var i,l=1;let u=cn.ensureSingle(e,"rect",n+"titletoggle",function(s){r._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(fc.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",Bo.isPureTex(e.text())?null:!0),Bo.convertToTspans(e,t,function(){xoe(r,t,n,a)})}function xoe(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=hf.getId(t);t||(t=r._fullLayout[u]);var s=t.borderwidth,f;n===cf?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var c=f.size*iE,g,b;if(l){var d=vn.bBox(l);g=d.height,b=d.width,n===cf?vn.setTranslate(i,s,s+g*.75):vn.setTranslate(i,0,g*.25)}else{var _="."+u+(n===cf?"title":"")+"text",T=e.select(_),m=Bo.lineCount(T),k=T.node();if(g=c*m,b=k?vn.bBox(k).width:0,n===cf)t.title.side==="left"&&(b+=Wt.itemGap*2),Bo.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),Bo.positionText(T,S,-c*((m-1)/2-.3))}}if(n===cf)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 _oe(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 woe(e,r,t,n,a){var o=e._fullLayout,i=hf.getId(n);n||(n=o[i]);var l=o._size,u=hf.isVertical(n),s=hf.isGrouped(n),f=n.entrywidthmode==="fraction",c=n.borderwidth,g=2*c,b=Wt.itemGap,d=n.indentation+n.itemwidth+b*2,_=2*(c+b),T=rd(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:h}=n,{maxheight:w}=n,y=m||k||M!=="v"||h!=="paper";w||(w=y?.5:1);let v=y?o.height:l.h;if(n._maxHeight=Math.max(w>1?w:w*v,30),h==="container"){let ae=aE(n.y,T)*o.height;n._maxHeight=Math.max(Math.min(n._maxHeight,ae),30)}var A=0;n._width=0,n._height=0;var p=_oe(n);if(u)t.each(function(ae){var fe=ae[0].height;vn.setTranslate(this,c+p[0],c+p[1]+n._height+fe/2+b),n._height+=fe,n._width=Math.max(n._width,ae[0].width)}),A=d+n._width,n._width+=b+d+g,n._height+=_,s&&(r.each(function(ae,fe){vn.setTranslate(this,0,fe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var R=ed(n),E=n.x<0||n.x===0&&R==="right",D=n.x>1||n.x===1&&R==="left",I=k||m,F=o.width/2;if(n._maxWidth=Math.max(E?I&&R==="left"?l.l+l.w:F:D?I&&R==="right"?l.r+l.w:F:l.w,2*d),n.xref==="container"){let ae=aE(n.x,R)*o.width;n._maxWidth=Math.max(ae,2*d)}var P=0,L=0;t.each(function(ae){var fe=K1(ae,n,d);P=Math.max(P,fe),L+=fe}),A=null;var z=0;if(s){var O=0,B=0,V=0;r.each(function(){var ae=0,fe=0;ha.select(this).selectAll("g.traces").each(function(Me){var ke=K1(Me,n,d),ge=Me[0].height;vn.setTranslate(this,p[0],p[1]+c+b+ge/2+fe),fe+=ge,ae=Math.max(ae,ke),x[Me[0].trace.legendgroup]=ae});var we=ae+b;B>0&&we+c+B>n._maxWidth?(z=Math.max(z,B),B=0,V+=O+S,O=fe):O=Math.max(O,fe),vn.setTranslate(this,B,V),B+=we}),n._width=Math.max(z,B)+c,n._height=V+O+_}else{var J=t.size(),Q=L+g+(J-1)*b<n._maxWidth,G=0,q=0,Z=0,re=0;t.each(function(ae){var fe=ae[0].height,we=K1(ae,n,d,s),Me=Q?we:P;f||(Me+=b),Me+c+q-b>=n._maxWidth&&(z=Math.max(z,re),q=0,Z+=G,n._height+=G,G=0),vn.setTranslate(this,p[0]+c+q,p[1]+c+Z+fe/2+b),re=q+we+b,q+=Me,G=Math.max(G,fe)}),Q?(n._width=q+g,n._height=G+_):(n._width=Math.max(z,re)+g,n._height+=G+_)}}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,ie=$.legendText||$.legendPosition;if(t.each(function(ae){var fe=ha.select(this).select("."+i+"toggle"),we=ae[0].height,Me=ae[0].trace.legendgroup,ke=K1(ae,n,d);s&&Me!==""&&(ke=x[Me]);var ge=ie?d:A||ke;!u&&!f&&(ge+=b/2),vn.setRect(fe,0,-we/2,ge,we)}),n._inHover){let ae=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(Bo.positionText,ae)})}var j=a.select("."+i+"titletext");j.node()&&goe(j,n,c);var te=a.select("."+i+"titletoggle");if(te.size()&&j.node()){var ue=j.attr("x")||0,ee=Wt.titlePad;vn.setRect(te,ue-ee,c,n._titleWidth+2*ee,n._titleHeight+2*ee)}}function Moe(e,r,t,n){var a=e._fullLayout,o=a[r],i=ed(o),l=rd(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*vf[i],r:o._width*eE[i],b:o._effHeight*eE[l],t:o._effHeight*vf[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 ed(e){return cn.isRightAnchor(e)?"right":cn.isCenterAnchor(e)?"center":"left"}function rd(e){return cn.isBottomAnchor(e)?"bottom":cn.isMiddleAnchor(e)?"middle":"top"}function aE(e,r){switch(r){case"left":case"bottom":return 1-e;case"right":case"top":return e;default:return 2*Math.min(e,1-e)}}});var w5=xe(_5=>{"use strict";var Ho=st(),Uo=ft(),Zt=rr(),Toe=Zt.pushUnique,m5=Zt.strTranslate,Aoe=Zt.strRotate,koe=V0(),Ut=Qn(),Soe=DC(),yo=kt(),gn=Zr(),td=Fi(),Ni=Bt(),Coe=(Sn(),or(kn)).zindexSeparator,Hs=Cr(),Da=fo(),Vs=(g0(),or(p0)),Eoe=t5(),Loe=y5(),yE=Vs.YANGLE,x5=Math.PI*yE/180,Roe=1/Math.sin(x5),Doe=Math.cos(x5),Poe=Math.sin(x5),zt=Vs.HOVERARROWSIZE,nt=Vs.HOVERTEXTPAD,sE={box:!0,ohlc:!0,violin:!0,candlestick:!0},Ioe={scatter:!0,scattergl:!0,splom:!0};function uE(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+Vs.HOVERID,Vs.HOVERMINTIME,function(){Foe(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=_E(a),i=wE(a),l=r.map(function(d){var _=d._x0||d.x0||d.x||0,T=d._x1||d.x1||d.x||0,m=d._y0||d.y0||d.y||0,k=d._y1||d.y1||d.y||0,S=d.eventData;if(S){var x=Math.min(_,T),M=Math.max(_,T),h=Math.min(m,k),w=Math.max(m,k),y=d.trace;if(Hs.traceIs(y,"gl3d")){var v=a._fullLayout[y.scene]._scene.container,A=v.offsetLeft,p=v.offsetTop;x+=A,M+=A,h+=p,w+=p}S.bbox={x0:x+i,x1:M+i,y0:h+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:d.color||gn.defaultLine,x0:d.x0||d.x||0,x1:d.x1||d.x||0,y0:d.y0||d.y||0,y1:d.y1||d.y||0,xLabel:d.xLabel,yLabel:d.yLabel,zLabel:d.zLabel,text:d.text,name:d.name,idealAlign:d.idealAlign,borderColor:d.borderColor,fontFamily:d.fontFamily,fontSize:d.fontSize,fontColor:d.fontColor,fontWeight:d.fontWeight,fontStyle:d.fontStyle,fontVariant:d.fontVariant,nameLength:d.nameLength,textAlign:d.textAlign,trace:d.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:d.hovertemplate||!1,hovertemplateLabels:d.hovertemplateLabels||!1,eventData:S}}),u=!1,s=bE(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||gn.background,container:Ho.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels;function c(){var d=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-d<_?m.offset=_-S+d: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(),ad(f,u,g,b),s.mathjaxPromise&&s.mathjaxPromise.then(function(){c(),ad(f,u,g,b),f.each(function(){var d=Ho.select(this);Ut.repositionMathGroup(d.select("text.nums")),Ut.repositionMathGroup(d.select("text.name"))})}),n?f:f.node()};function zoe(e,r){return!!(e!=null&&e.showspikes&&e.spikesnap!=="hovered data"||r!=null&&r.showspikes&&r.spikesnap!=="hovered data")}function Foe(e,r,t,n,a){t||(t="xy"),typeof t=="string"&&(t=t.split(Coe)[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,d=(b||"").charAt(0)==="x",_=(b||"").charAt(0)==="y",T,m;if(c&&(d||_)&&u==="axis"){for(var k=o.length,S=0;S<k;S++)if(i=o[S],s[i]){T=Ni.getFromId(e,i,"x"),m=Ni.getFromId(e,i,"y");var x=(d?T:m)._subplotsWith;if(x&&x.length)for(var M=0;M<x.length;M++)Toe(o,x[M])}}if(f&&u!=="single"){var h=f.overlays.map(function(sr){return sr.id});o=o.concat(h)}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 R=l[i]._subplot;y[p]=R.xaxis,v[p]=R.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 td.unhoverRaw(e,r);var E=l.hoverdistance;E===-1&&(E=1/0);var D=l.spikedistance;D===-1&&(D=1/0);var I=[],F=[],P,L,z,O,B,V,J,Q,G,q,Z,re,$,ie={hLinePoint:null,vLinePoint:null};let j={};var te=!1;if(Array.isArray(r))for(b="array",z=0;z<r.length;z++)B=e.calcdata[r[z].curveNumber||0],B&&(V=B[0].trace,B[0].trace.hoverinfo!=="skip"&&(F.push(B),V.orientation==="h"&&(te=!0)));else{var ue=e.calcdata.slice();for(ue.sort(function(sr,Vr){var Rr=sr[0].trace.zorder||0,ot=Vr[0].trace.zorder||0;return Rr-ot}),O=0;O<ue.length;O++)B=ue[O],V=B[0].trace,V.hoverinfo!=="skip"&&Da.isTraceInSubplots(V,o)&&(F.push(B),V.orientation==="h"&&(te=!0));var ee=!a,ae,fe;if(ee)"xpx"in r?ae=r.xpx:ae=y[0]._length/2,"ypx"in r?fe=r.ypx:fe=v[0]._length/2;else{if(koe.triggerHandler(e,"plotly_beforehover",r)===!1)return;var we=a.getBoundingClientRect();ae=r.clientX-we.left,fe=r.clientY-we.top,l._calcInverseTransform(e);var Me=Zt.apply3DTransform(l._invTransform)(ae,fe);if(ae=Me[0],fe=Me[1],ae<0||ae>y[0]._length||fe<0||fe>v[0]._length)return td.unhoverRaw(e,r)}if(r.pointerX=ae+y[0]._offset,r.pointerY=fe+v[0]._offset,"xval"in r?P=Da.flat(o,r.xval):P=Da.p2c(y,ae),"yval"in r?L=Da.flat(o,r.yval):L=Da.p2c(v,fe),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Uo(P[0])||!Uo(L[0]))return Zt.warn("Fx.hover failed",r,e),td.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=P,e._hoverYVals=L,e._hoverXAxes=y,e._hoverYAxes=v);var ke=1/0;function ge(sr,Vr){for(O=0;O<F.length;O++)if(B=F[O],!(!B||!B[0]||!B[0].trace)&&(V=B[0].trace,!(V.visible!==!0||V._length===0)&&["carpet","contourcarpet"].indexOf(V._module.name)===-1)){if(G=b,Da.isUnifiedHover(G)&&(G=G.charAt(0)),V.type==="splom"?(Q=0,J=o[Q]):(J=Da.getSubplot(V),Q=o.indexOf(J)),re={cd:B,trace:V,xa:y[Q],ya:v[Q],maxHoverDistance:E,maxSpikeDistance:D,index:!1,distance:Math.min(ke,E),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:gn.defaultLine,name:V.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[V.uid]&&(re.scene=l._splomScenes[V.uid]),G==="array"){var Rr=r[O];if("pointNumber"in Rr){let ht=B[Rr.pointNumber];ht&&(re.index=Rr.pointNumber,ht.lonlat?(q=ht.lonlat[0],Z=ht.lonlat[1]):(q=ht.x,Z=ht.y)),G="closest"}else G="","xval"in Rr&&(q=Rr.xval,G="x"),"yval"in Rr&&(Z=Rr.yval,G=G?"closest":"y")}else sr!==void 0&&Vr!==void 0?(q=sr,Z=Vr):(q=P[Q],Z=L[Q]);if($=I.length,E!==0)if(V._module&&V._module.hoverPoints){var ot=V._module.hoverPoints(re,q,Z,G,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:u,gd:e});if(ot)for(var Xt,en=0;en<ot.length;en++)Xt=ot[en],Uo(Xt.x0)&&Uo(Xt.y0)&&I.push(Ooe(Xt,b))}else Zt.log("Unrecognized trace type in hover:",V);if(b==="closest"&&I.length>$&&(I.splice(0,$),ke=I[0].distance),Hs.traceIs(V,"ternary")&&D!==0){let ht=re.subplot;if(["aaxis","baxis","caxis"].some(rn=>ht[rn].showspikes&&ht[rn].spikesnap!=="hovered data")){let rn=ot==null?void 0:ot[0];if(!Number.isFinite(rn==null?void 0:rn.spikeDistance)){let Qi=Zt.extendFlat({},re,{distance:D,index:!1}),ts=V._module.hoverPoints(Qi,q,Z,"closest");rn=ts&&ts[0]}let Ba=j[J];rn&&rn.index!==void 0&&rn.index!==!1&&rn.spikeDistance<=D&&(!Ba||rn.spikeDistance<Ba.spikeDistance)&&(j[J]=rn)}}if(c&&I.length===0&&D!==0&&zoe(re.xa,re.ya)){re.distance=D,re.index=!1;var wt=V._module.hoverPoints(re,q,Z,"closest",{hoverLayer:l._hoverlayer});if(wt&&(wt=wt.filter(function(ht){return ht.spikeDistance<=D})),wt!=null&&wt.length){var Pn,Na=wt.filter(function(ht){return ht.xa.showspikes&&ht.xa.spikesnap!=="hovered data"});if(Na.length){var qa=Na[0];Uo(qa.x0)&&Uo(qa.y0)&&(Pn=se(qa),(!ie.vLinePoint||ie.vLinePoint.spikeDistance>Pn.spikeDistance)&&(ie.vLinePoint=Pn))}var ei=wt.filter(function(ht){return ht.ya.showspikes&&ht.ya.spikesnap!=="hovered data"});if(ei.length){var Oa=ei[0];Uo(Oa.x0)&&Uo(Oa.y0)&&(Pn=se(Oa),(!ie.hLinePoint||ie.hLinePoint.spikeDistance>Pn.spikeDistance)&&(ie.hLinePoint=Pn))}}}}}ge();function Ee(){if(l._hoverlayer.selectAll(".ternary-spikes").remove(),D!==0)for(let sr=0;sr<o.length;sr++){let Vr=o[sr],Rr=l[Vr]&&l[Vr]._subplot;if(Rr&&Rr.drawSpikelines){let ot=I.find(Xt=>Xt.trace.subplot===Vr&&Xt.index!==void 0&&Xt.index!==!1&&Xt.spikeDistance<=D);Rr.drawSpikelines(ot,j[Vr],P&&P[sr],L&&L[sr])}}}function Le(sr,Vr,Rr){for(var ot=null,Xt=1/0,en,wt=0;wt<sr.length;wt++)T&&T._id!==sr[wt].xa._id||m&&m._id!==sr[wt].ya._id||(en=sr[wt].spikeDistance,Rr&&wt===0&&(en=-1/0),en<=Xt&&en<=Vr&&(ot=sr[wt],Xt=en));return ot}function se(sr){return sr?{xa:sr.xa,ya:sr.ya,x:sr.xSpike!==void 0?sr.xSpike:(sr.x0+sr.x1)/2,y:sr.ySpike!==void 0?sr.ySpike:(sr.y0+sr.y1)/2,distance:sr.distance,spikeDistance:sr.spikeDistance,curveNumber:sr.trace.index,color:sr.color,pointNumber:sr.index}:null}var X={fullLayout:l,container:l._hoverlayer,event:r},K=e._spikepoints,ye={vLinePoint:ie.vLinePoint,hLinePoint:ie.hLinePoint};e._spikepoints=ye;var oe=function(){var sr=I.filter(function(Rr){return T&&T._id===Rr.xa._id&&m&&m._id===Rr.ya._id}),Vr=I.filter(function(Rr){return!(T&&T._id===Rr.xa._id&&m&&m._id===Rr.ya._id)});sr.sort(uE),Vr.sort(uE),I=sr.concat(Vr),I=Uoe(I,b)};oe();var he=b.charAt(0);let pe=sr=>sr&&["category","multicategory"].includes(sr.type),me=he==="x"?y:v,Se=he==="x"?P:L;if(Da.isXYhover(G)&&Se){let sr=I.filter(Vr=>{let Rr=Vr[he+"a"],ot=me.indexOf(Rr);return!pe(Rr)||ot===-1?!0:Vr[he+"LabelVal"]===Math.round(Se[ot])});sr.length&&(I=sr)}var ve=(he==="x"||he==="y")&&I[0]&&Ioe[I[0].trace.type];if(c&&D!==0&&I.length!==0){var de=I.filter(function(sr){return sr.ya.showspikes}),be=Le(de,D,ve);ie.hLinePoint=se(be);var Ae=I.filter(function(sr){return sr.xa.showspikes}),Pe=Le(Ae,D,ve);ie.vLinePoint=se(Pe)}if(I.length===0){var Ie=td.unhoverRaw(e,r);if(c&&(ie.hLinePoint!==null||ie.vLinePoint!==null)&&dE(K)&&hE(e,ie,X),l.hoveranywhere&&!n&&a){var Ye=e._hoverdata;Ye&&Ye.length&&(e.emit("plotly_unhover",{event:r,points:Ye}),e._hoverdata=[]),jt([]),e._hoverAnywhereActive=!0}return g&&Ee(),Ie}if(c&&dE(K)&&hE(e,ie,X),g&&Ee(),Da.isXYhover(G)&&I[0].length!==0&&I[0].trace.type!=="splom"){var qe=I[0];sE[qe.trace.type]?I=I.filter(sr=>sr.trace.index===qe.trace.index):I=[qe];var Ve=I.length,Oe=gE("x",qe,l),We=gE("y",qe,l);ge(Oe,We);var Ge=[],tr={},nr=0,er=function(sr){var Vr=sE[sr.trace.type]?mE(sr):sr.trace.index;if(!tr[Vr])nr++,tr[Vr]=nr,Ge.push(sr);else{var Rr=tr[Vr]-1,ot=Ge[Rr];Rr>0&&Math.abs(sr.distance)<Math.abs(ot.distance)&&(Ge[Rr]=sr)}},Qe;for(Qe=0;Qe<Ve;Qe++)er(I[Qe]);for(Qe=I.length-1;Qe>Ve-1;Qe--)er(I[Qe]);var Ce=qe[he+"a"];if(Ce&&(Ce.type==="category"||Ce.type==="multicategory")){var Fe=qe[he+"LabelVal"];Ge=Ge.filter(function(sr){var Vr=sr[he+"a"];return!Vr||Vr.type!=="category"&&Vr.type!=="multicategory"?!0:sr[he+"LabelVal"]===Fe})}I=Ge,oe()}var Ke=e._hoverdata,je=[],wr=_E(e),Jr=wE(e);for(let sr of I){var Tr=Da.makeEventData(sr,sr.trace,sr.cd);if(sr.hovertemplate!==!1){var Pr=!1;sr.cd[sr.index]&&sr.cd[sr.index].ht&&(Pr=sr.cd[sr.index].ht),sr.hovertemplate=Pr||sr.trace.hovertemplate||!1}if(sr.xa&&sr.ya){var rt=sr.x0+sr.xa._offset,Ar=sr.x1+sr.xa._offset,Ur=sr.y0+sr.ya._offset,ut=sr.y1+sr.ya._offset,zr=Math.min(rt,Ar),tt=Math.max(rt,Ar),pn=Math.min(Ur,ut),it=Math.max(Ur,ut);Tr.bbox={x0:zr+Jr,x1:tt+Jr,y0:pn+wr,y1:it+wr},Tr.xPixel=(rt+Ar)/2,Tr.yPixel=(Ur+ut)/2}sr.eventData=[Tr],je.push(Tr)}e._hoverdata=je;var Xr=b==="y"&&(F.length>1||I.length>1)||b==="closest"&&te&&I.length>1,Vt=gn.combine(l.plot_bgcolor||gn.background,l.paper_bgcolor),$r=bE(I,{gd:e,hovermode:b,rotateLabels:Xr,bgColor:Vt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Kr=$r.hoverLabels;if(Da.isUnifiedHover(b)||(cE(Kr,Xr,l,$r.commonLabelBoundingBox),ad(Kr,Xr,l._invScaleX,l._invScaleY),$r.mathjaxPromise&&$r.mathjaxPromise.then(function(){e._hoverdata===je&&(cE(Kr,Xr,l,$r.commonLabelBoundingBox),ad(Kr,Xr,l._invScaleX,l._invScaleY),Kr.each(function(){var sr=Ho.select(this);Ut.repositionMathGroup(sr.select("text.nums")),Ut.repositionMathGroup(sr.select("text.name"))}))})),a&&a.tagName){var Gt=Hs.getComponentMethod("annotations","hasClickToShow")(e,je);Soe(Ho.select(a),Gt?"pointer":"")}var Yt=Boe(e,r,Ke);if(!a||n||!Yt&&!l.hoveranywhere)return;Ke&&Yt&&e.emit("plotly_unhover",{event:r,points:Ke}),jt(e._hoverdata);function jt(sr){e.emit("plotly_hover",{event:r,points:sr,xaxes:y,yaxes:v,xvals:Da.c2dApply(y,P),yvals:Da.c2dApply(v,L),xPixel:r.pointerX,yPixel:r.pointerY})}}function mE(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 Noe=/<extra>([\s\S]*)<\/extra>/;function b5(e,r){return nd(e,Ut.getMathOrTextNode(r))}function bE(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||Vs.HOVERFONT,g=r.fontSize||Vs.HOVERFONTSIZE,b=r.fontWeight||n.font.weight,d=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,h=a.charAt(0),w=h+"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=nd(t,u),p=A.top,R=A.width,E=A.height,D=y!==void 0&&S.distance<=r.hoverdistance&&(a==="x"||a==="y");if(D){var I=!0,F,P;for(F=0;F<e.length;F++)if(I&&e[F].zLabel===void 0&&(I=!1),P=e[F].hoverinfo||e[F].trace.hoverinfo,P){var L=Array.isArray(P)?P:P.split("+");if(L.indexOf("all")===-1&&L.indexOf(a)===-1){D=!1;break}}I&&(D=!1)}var z=l.selectAll("g.axistext").data(D?[0]:[]);z.enter().append("g").classed("axistext",!0),z.exit().remove();var O={minX:0,maxX:0,minY:0,maxY:0};if(z.each(function(){var ve=Ho.select(this),de=Zt.ensureSingle(ve,"path","",function(Ge){Ge.style({"stroke-width":"1px"})}),be=Zt.ensureSingle(ve,"text",""),Ae=s.bgcolor||gn.defaultLine,Pe=s.bordercolor||gn.contrast(Ae),Ie=gn.contrast(Ae),Ye=s.font,qe={weight:Ye.weight||b,style:Ye.style||d,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||Ie};de.style({fill:Ae,stroke:Pe});var Ve=Ut.isPureTex(String(y)),Oe;Ve&&f.push(new Promise(function(Ge){Oe=function(){if(!be.node().parentNode){Ge();return}We(),Ut.repositionMathGroup(be),Ge()}})),be.text(y).call(yo.font,qe).attr("data-notex",Ve?null:1).call(Ut.positionText,0,0).call(Ut.convertToTspans,t,Oe),We();function We(){ve.attr("transform",""),Ut.positionText(be,0,0),Ut.repositionMathGroup(be);var Ge=b5(t,be),tr,nr;if(a==="x"){var er=x.side==="top"?"-":"";be.attr("text-anchor","middle").call(Ut.positionText,0,x.side==="top"?p-Ge.bottom-zt-nt:p-Ge.top+zt+nt),tr=x._offset+(S.x0+S.x1)/2,nr=M._offset+(x.side==="top"?0:M._length);var Qe=Ge.width/2+nt,Ce=tr;tr<Qe?Ce=Qe:tr>n.width-Qe&&(Ce=n.width-Qe),de.attr("d","M"+(tr-Ce)+",0L"+(tr-Ce+zt)+","+er+zt+"H"+Qe+"v"+er+(nt*2+Ge.height)+"H"+-Qe+"V"+er+zt+"H"+(tr-Ce-zt)+"Z"),tr=Ce,O.minX=tr-Qe,O.maxX=tr+Qe,x.side==="top"?(O.minY=nr-(nt*2+Ge.height),O.maxY=nr-nt):(O.minY=nr+nt,O.maxY=nr+(nt*2+Ge.height))}else{var Fe,Ke,je;M.side==="right"?(Fe="start",Ke=1,je="",tr=x._offset+x._length):(Fe="end",Ke=-1,je="-",tr=x._offset),nr=M._offset+(S.y0+S.y1)/2,be.attr("text-anchor",Fe),de.attr("d","M0,0L"+je+zt+","+zt+"V"+(nt+Ge.height/2)+"h"+je+(nt*2+Ge.width)+"V-"+(nt+Ge.height/2)+"H"+je+zt+"V-"+zt+"Z"),O.minY=nr-(nt+Ge.height/2),O.maxY=nr+(nt+Ge.height/2),M.side==="right"?(O.minX=tr+zt,O.maxX=tr+zt+(nt*2+Ge.width)):(O.minX=tr-zt-(nt*2+Ge.width),O.maxX=tr-zt);var wr=Ge.height/2,Jr=p-Ge.top-wr,Tr="clip"+n._uid+"commonlabel"+M._id,Pr;if(tr<Ge.width+2*nt+zt){Pr="M-"+(zt+nt)+"-"+wr+"h-"+(Ge.width-nt)+"V"+wr+"h"+(Ge.width-nt)+"Z";var rt=Ge.width-tr+nt;Ut.positionText(be,rt,Jr),Fe==="end"&&be.selectAll("tspan").each(function(){var Ur=Ho.select(this),ut=yo.tester.append("text").text(Ur.text()).call(yo.font,qe),zr=nd(t,ut.node());Math.round(zr.width)<Math.round(Ge.width)&&Ur.attr("x",rt-zr.width),ut.remove()})}else Ut.positionText(be,Ke*(nt+zt),Jr),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),yo.setClipUrl(be,Pr?Tr:null,t)}ve.attr("transform",m5(tr,nr))}}),Da.isUnifiedHover(a)){l.selectAll("g.hovertext").remove();let ve=e.filter(de=>de.hoverinfo!=="none");if(ve.length===0)return[];var B=n.hoverlabel,V=B.font,J=ve[0],Q=((a==="x unified"?J.xa:J.ya).unifiedhovertitle||{}).text,G=Q?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:Q}):y,q={showlegend:!0,legend:{title:{text:G,font:V},font:V,bgcolor:B.bgcolor,bordercolor:B.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},Z={font:V};Eoe(q,Z,t._fullData);var re=Z.legend;re.entries=[];for(var $=0;$<ve.length;$++){var ie=ve[$];if(ie.hoverinfo!=="none"){var j=fE(ie,!0,a,n,y),te=j[0],ue=j[1];ie.name=ue,ue!==""?ie.text=ue+" : "+te:ie.text=te;var ee=ie.cd[ie.index];ee&&(ee.mc&&(ie.mc=ee.mc),ee.mcc&&(ie.mc=ee.mcc),ee.mlc&&(ie.mlc=ee.mlc),ee.mlcc&&(ie.mlc=ee.mlcc),ee.mlw&&(ie.mlw=ee.mlw),ee.mrc&&(ie.mrc=ee.mrc),ee.dir&&(ie.dir=ee.dir)),ie._distinct=!0,re.entries.push([ie])}}re.entries.sort(function(de,be){var Ae=n.hoversort;if(Ae==="value descending"||Ae==="value ascending"){var Pe=a.charAt(0)==="x"?"y":"x",Ie=de[0][Pe+"LabelVal"],Ye=be[0][Pe+"LabelVal"];if(Ie!==Ye)return Ae==="value descending"?Ye-Ie:Ie-Ye}return de[0].trace.index-be[0].trace.index}),re.layer=l,re._inHover=!0,re._groupTitleFont=B.grouptitlefont,Loe(t,re);var ae=l.select("g.legend"),fe=nd(t,ae.node()),we=fe.width+2*nt,Me=fe.height+2*nt,ke=ve[0],ge=(ke.x0+ke.x1)/2,Ee=(ke.y0+ke.y1)/2,Le=!(Hs.traceIs(ke.trace,"bar-like")||Hs.traceIs(ke.trace,"box-violin")),se,X;h==="y"?Le?(X=Ee-nt,se=Ee+nt):(X=Math.min.apply(null,ve.map(function(de){return Math.min(de.y0,de.y1)})),se=Math.max.apply(null,ve.map(function(de){return Math.max(de.y0,de.y1)}))):X=se=Zt.mean(ve.map(function(de){return(de.y0+de.y1)/2}))-Me/2;var K,ye;h==="x"?Le?(K=ge+nt,ye=ge-nt):(K=Math.max.apply(null,ve.map(function(de){return Math.max(de.x0,de.x1)})),ye=Math.min.apply(null,ve.map(function(de){return Math.min(de.x0,de.x1)}))):K=ye=Zt.mean(ve.map(function(de){return(de.x0+de.x1)/2}))-we/2;var oe=x._offset,he=M._offset;se+=he,K+=oe,ye+=oe-we,X+=he-Me;var pe,me;return K+we<R&&K>=0?pe=K:ye+we<R&&ye>=0?pe=ye:oe+we<R?pe=oe:K-ge<ge-ye+we?pe=R-we:pe=0,pe+=nt,se+Me<E&&se>=0?me=se:X+Me<E&&X>=0?me=X:he+Me<E?me=he:se-Ee<Ee-X+Me?me=E-Me:me=0,me+=nt,ae.attr("transform",m5(pe-1,me-1)),ae}var Se=l.selectAll("g.hovertext").data(e,function(ve){return mE(ve)});return Se.enter().append("g").classed("hovertext",!0).each(function(){var ve=Ho.select(this);ve.append("rect").call(gn.fill,gn.addOpacity(i,.8)),ve.append("text").classed("name",!0),ve.append("path").style("stroke-width","1px"),ve.append("text").classed("nums",!0).call(yo.font,{weight:b,style:d,variant:_,textcase:T,lineposition:m,shadow:k,family:c,size:g})}),Se.exit().remove(),Se.each(function(ve){var de=Ho.select(this).attr("transform",""),be=ve.color;Array.isArray(be)&&(be=be[ve.eventData[0].pointNumber]);var Ae=ve.bgcolor||be,Pe=gn.combine(gn.opacity(Ae)?Ae:gn.defaultLine,i),Ie=gn.combine(gn.opacity(be)?be:gn.defaultLine,i),Ye=ve.borderColor||gn.contrast(Pe),qe=fE(ve,D,a,n,y,de),Ve=qe[0],Oe=qe[1],We=!!(Oe&&Oe!==Ve),Ge=Ut.isPureTex(Ve),tr=We&&Ut.isPureTex(Oe),nr=(Ge?1:0)+(tr?1:0),er;nr&&f.push(new Promise(function(Ke){er=function(){--nr===0&&(de.node().parentNode&&Fe(),Ke())}}));var Qe=de.select("text.nums").call(yo.font,{family:ve.fontFamily||c,size:ve.fontSize||g,color:ve.fontColor||Ye,weight:ve.fontWeight||b,style:ve.fontStyle||d,variant:ve.fontVariant||_,textcase:ve.fontTextcase||T,lineposition:ve.fontLineposition||m,shadow:ve.fontShadow||k}).text(Ve).attr("data-notex",Ge?null:1).call(Ut.positionText,0,0).call(Ut.convertToTspans,t,Ge?er:void 0),Ce=de.select("text.name");We?Ce.call(yo.font,{family:ve.fontFamily||c,size:ve.fontSize||g,color:Ie,weight:ve.fontWeight||b,style:ve.fontStyle||d,variant:ve.fontVariant||_,textcase:ve.fontTextcase||T,lineposition:ve.fontLineposition||m,shadow:ve.fontShadow||k}).text(Oe).attr("data-notex",tr?null:1).call(Ut.positionText,0,0).call(Ut.convertToTspans,t,tr?er:void 0):(Ce.remove(),de.select("rect").remove()),Fe();function Fe(){de.attr("transform",""),Qe.call(Ut.positionText,0,0),Ut.repositionMathGroup(Qe),We&&(Ce.call(Ut.positionText,0,0),Ut.repositionMathGroup(Ce)),de.select("path").style({fill:Pe,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),Jr=Math.abs(ve.y1-ve.y0),Tr=0,Pr=0;if(We){var rt=b5(t,Ce);Tr=rt.width+2*nt,Pr=rt.height+2*nt}var Ar=b5(t,Qe),Ur=Ar.width/n._invScaleX,ut=Ar.height/n._invScaleY;ve.ty0=(p-Ar.top)/n._invScaleY,ve.bx=Ur+2*nt,ve.by=Math.max(ut+2*nt,Pr),ve.anchor="start",ve.txwidth=Ur,ve.tx2width=Tr,ve.offset=0;var zr=(Ur+zt+nt+Tr)*n._invScaleX,tt,pn;if(o)ve.pos=Ke,tt=je+Jr/2+zr<=E,pn=je-Jr/2-zr>=0,(ve.idealAlign==="top"||!tt)&&pn?(je-=Jr/2,ve.anchor="end"):tt?(je+=Jr/2,ve.anchor="start"):ve.anchor="middle",ve.crossPos=je;else{if(ve.pos=je,tt=Ke+wr/2+zr<=R,pn=Ke-wr/2-zr>=0,(ve.idealAlign==="left"||!tt)&&pn)Ke-=wr/2,ve.anchor="end";else if(tt)Ke+=wr/2,ve.anchor="start";else{ve.anchor="middle";var it=zr/2,Xr=Ke+it-R,Vt=Ke-it;Xr>0&&(Ke-=Xr),Vt<0&&(Ke+=-Vt)}ve.crossPos=Ke}Qe.attr("text-anchor",ve.anchor),Tr&&Ce.attr("text-anchor",ve.anchor),de.attr("transform",m5(Ke,je)+(o?Aoe(yE):""))}}),{hoverLabels:Se,commonLabelBoundingBox:O,mathjaxPromise:f.length?Promise.all(f):null}}function fE(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=pE(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(Noe,(d,_)=>(i=pE(_,e.nameLength),""))}return[l,i]}function cE(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,d=n.maxY,_=function(F){return F*t._invScaleX},T=function(F){return F*t._invScaleY};e.each(function(F){var P=F[a],L=F[o],z=P._id.charAt(0)==="x",O=P.range;f===0&&O&&O[0]>O[1]!==z&&(l=-1);var B=0,V=z?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var J=xE(F,r),Q=F.anchor,G=Q==="end"?-1:1,q,Z;if(Q==="middle")q=F.crossPos+(z?T(J.y-F.by/2):_(F.bx/2+F.tx2width/2)),Z=q+(z?T(F.by):_(F.bx));else if(z)q=F.crossPos+T(zt+J.y)-T(F.by/2-zt),Z=q+T(F.by);else{var re=_(G*zt+J.x),$=re+_(G*F.bx);q=F.crossPos+Math.min(re,$),Z=F.crossPos+Math.max(re,$)}z?b!==void 0&&d!==void 0&&Math.min(Z,d)-Math.max(q,b)>1&&(L.side==="left"?(B=L._mainLinePosition,V=t.width):V=L._mainLinePosition):c!==void 0&&g!==void 0&&Math.min(Z,g)-Math.max(q,c)>1&&(L.side==="top"?(B=L._mainLinePosition,V=t.height):V=L._mainLinePosition)}s[f++]=[{datum:F,traceIndex:F.trace.index,dp:0,pos:F.pos,posref:F.posref,size:F.by*(z?Roe:1)/2,pmin:B,pmax:V}]}),s.sort(function(F,P){return F[0].posref-P[0].posref||l*(P[0].traceIndex-F[0].traceIndex)});var m,k,S,x,M,h,w;function y(F){var P=F[0],L=F[F.length-1];if(k=P.pmin-P.pos-P.dp+P.size,S=L.pos+L.dp+L.size-P.pmax,k>.01){for(M=F.length-1;M>=0;M--)F[M].dp+=k;m=!1}if(!(S<.01)){if(k<-.01){for(M=F.length-1;M>=0;M--)F[M].dp-=S;m=!1}if(m){var z=0;for(x=0;x<F.length;x++)h=F[x],h.pos+h.dp+h.size>P.pmax&&z++;for(x=F.length-1;x>=0&&!(z<=0);x--)h=F[x],h.pos>P.pmax-1&&(h.del=!0,z--);for(x=0;x<F.length&&!(z<=0);x++)if(h=F[x],h.pos<P.pmin+1)for(h.del=!0,z--,S=h.size*2,M=F.length-1;M>=0;M--)F[M].dp-=S;for(x=F.length-1;x>=0&&!(z<=0);x--)h=F[x],h.pos+h.dp+h.size>P.pmax&&(h.del=!0,z--)}}}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],R=A[0];if(k=p.pos+p.dp+p.size-R.pos-R.dp+R.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 D=E[M],I=D.datum;I.offset=D.dp,I.del=D.del}}}function xE(e,r){var t=0,n=e.offset;return r&&(n*=-Poe,t=e.offset*Doe),{x:t,y:n}}function qoe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(zt+nt),n=t+r*(e.txwidth+nt),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+nt),{alignShift:r,textShiftX:t,text2ShiftX:n}}function ad(e,r,t,n){var a=function(i){return i*t},o=function(i){return i*n};e.each(function(i){var l=Ho.select(this);if(i.del)return l.remove();var u=l.select("text.nums"),s=i.anchor,f=s==="end"?-1:1,c=qoe(i),g=xE(i,r),b=g.x,d=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(d-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+d)+"v"+o(i.by/2-zt)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*zt+b)+"V"+o(d-zt)+"Z":m="M"+a(f*zt+b)+","+o(d-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=d+i.ty0-i.by/2+nt,x=i.textAlign||"auto";x!=="auto"&&(x==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=_?-i.bx/2-i.tx2width/2+nt:-i.bx-nt):x==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=_?i.bx/2-i.tx2width/2-nt:i.bx+nt)),u.call(Ut.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(Ut.positionText,a(c.text2ShiftX+c.alignShift*nt+b),o(d+i.ty0-i.by/2+nt)),l.select("rect").call(yo.setRect,a(c.text2ShiftX+(c.alignShift-1)*i.tx2width/2+b),o(d-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function Ooe(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(g){return g||Uo(g)&&g===0}var l=Array.isArray(t)?function(g,b){var d=Zt.castOption(a,t,g);return i(d)?d:Zt.extractOption({},n,"",b)}:function(g,b){return Zt.extractOption(o,n,g,b)};function u(g,b,d){var _=l(b,d);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:Ni.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:Ni.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=Ni.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+Ni.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=Ni.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ni.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 vE(e,r,t){let n=r._id.charAt(0)==="y",a=1/0,o=-1/0;for(let i of r._counterAxes||[]){let l=Ni.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 hE(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=gn.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var g=r.hLinePoint,b,d;s=g&&g.xa,f=g&&g.ya;var _=f.spikesnap;_==="cursor"?(b=i.pointerX,d=i.pointerY):(b=s._offset+g.x,d=f._offset+g.y);var T=gn.wcagContrast(g.color,c)<1.5?gn.contrast(c):g.color,m=f.spikemode,k=f.spikethickness,S=f.spikecolor||T,x=Ni.getPxPosition(e,f),M,h;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(M=x,h=b),m.indexOf("across")!==-1){let L=vE(e,f,o);M=L[0],h=L[1]}n.insert("line",":first-child").attr({x1:M,x2:h,y1:d,y2:d,"stroke-width":k,stroke:S,"stroke-dasharray":yo.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:M,x2:h,y1:d,y2:d,"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:d,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=gn.wcagContrast(w.color,c)<1.5?gn.contrast(c):w.color,R=s.spikemode,E=s.spikethickness,D=s.spikecolor||p,I=Ni.getPxPosition(e,s),F,P;if(R.indexOf("toaxis")!==-1||R.indexOf("across")!==-1){if(R.indexOf("toaxis")!==-1&&(F=I,P=v),R.indexOf("across")!==-1){let L=vE(e,s,o);F=L[0],P=L[1]}n.insert("line",":first-child").attr({x1:y,x2:y,y1:F,y2:P,"stroke-width":E,stroke:D,"stroke-dasharray":yo.dashStyle(s.spikedash,E)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:y,x2:y,y1:F,y2:P,"stroke-width":E+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}R.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:y,cy:I-(s.side!=="top"?E:-E),r:E,fill:D}).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 dE(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function pE(e,r){return Ut.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Uoe(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;i<e.length;i++){var l=e[i];Hs.traceIs(l.trace,"bar-like")||Hs.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 gE(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 _E=e=>e.offsetTop+e.clientTop,wE=e=>e.offsetLeft+e.clientLeft;function nd(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 id=xe((Q6e,ME)=>{"use strict";var Hoe=rr(),Voe=Zr(),Goe=fo().isUnifiedHover;ME.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&&Goe(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=Voe.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),Hoe.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var AE=xe((j6e,TE)=>{"use strict";var Yoe=rr(),Xoe=id(),Woe=cs();TE.exports=function(r,t){function n(a,o){return Yoe.coerce(r,t,Woe,a,o)}Xoe(r,t,n)}});var CE=xe((e_e,SE)=>{"use strict";var kE=rr(),Zoe=eh(),Joe=id();SE.exports=function(r,t,n,a){function o(l,u){return kE.coerce(r,t,Zoe,l,u)}var i=kE.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),Joe(r,t,o,i)}});var M5=xe((r_e,EE)=>{"use strict";var $oe=rr(),Koe=cs();EE.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:$oe.coerce(r,t,Koe,a,o)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var DE=xe((t_e,RE)=>{"use strict";var LE=rr(),Qoe=cs(),joe=M5(),ele=id();RE.exports=function(r,t){function n(s,f){return LE.coerce(r,t,Qoe,s,f)}var a=joe(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"),ele(r,t,n),LE.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var zE=xe((n_e,IE)=>{"use strict";var T5=rr(),PE=Cr();IE.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(!PE.traceIs(l,"pie-like")){var u=PE.traceIs(l,"2dMap")?rle: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 rle(e,r,t,n){n=n||T5.identity,Array.isArray(e)&&(r[0][t]=n(e))}});var qE=xe((a_e,NE)=>{"use strict";var tle=Cr(),FE=fo(),nle=w5().hover;NE.exports=function(r,t,n){var a=tle.getComponentMethod("annotations","onClick")(r,r._hoverdata),o=r._fullLayout;n!==void 0&&nle(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&&FE.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&FE.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 mo=xe((i_e,UE)=>{"use strict";var ale=st(),od=rr(),ile=Fi(),cc=fo(),OE=cs(),BE=w5();UE.exports={moduleType:"component",name:"fx",constants:(g0(),or(p0)),schema:{layout:OE},attributes:eh(),layoutAttributes:OE,supplyLayoutGlobalDefaults:AE(),supplyDefaults:CE(),supplyLayoutDefaults:DE(),calc:zE(),getDistanceFunction:cc.getDistanceFunction,getClosest:cc.getClosest,inbox:cc.inbox,quadrature:cc.quadrature,appendArrayPointValue:cc.appendArrayPointValue,castHoverOption:lle,castHoverinfo:sle,hover:BE.hover,unhover:ile.unhover,loneHover:BE.loneHover,loneUnhover:ole,click:qE()};function ole(e){var r=od.isD3Selection(e)?e:ale.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function lle(e,r,t){return od.castOption(e,r,"hoverlabel."+t)}function sle(e,r,t){function n(a){return od.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return od.castOption(e,t,"hoverinfo",n)}});var df=xe(Vo=>{"use strict";Vo.selectMode=function(e){return e==="lasso"||e==="select"};Vo.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Vo.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Vo.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Vo.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Vo.selectingOrDrawing=function(e){return Vo.freeMode(e)||Vo.rectMode(e)}});var ld=xe((l_e,HE)=>{"use strict";HE.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 sd=xe((s_e,VE)=>{"use strict";VE.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 ud={};Ot(ud,{CIRCLE_SIDES:()=>ule,SQRT2:()=>gle,cos45:()=>dle,i000:()=>fle,i090:()=>cle,i180:()=>vle,i270:()=>hle,sin45:()=>ple});var ule,fle,cle,vle,hle,dle,ple,gle,fd=qt(()=>{"use strict";ule=32,fle=0,cle=8,vle=16,hle=24,dle=Math.cos(Math.PI/4),ple=Math.sin(Math.PI/4),gle=Math.sqrt(2)});var cd=xe((u_e,YE)=>{"use strict";var yle=rr().strTranslate;function GE(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 mle(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 ble(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return GE(e,t[r])}}function xle(e){return yle(e.xaxis._offset,e.yaxis._offset)}YE.exports={p2r:GE,r2p:mle,axValue:ble,getTransform:xle}});var Pl=xe(Go=>{"use strict";var _le=f3(),ZE=(fd(),or(ud)),pf=ZE.CIRCLE_SIDES,A5=ZE.SQRT2,JE=cd(),XE=JE.p2r,WE=JE.r2p,wle=[0,3,4,5,6,1,2],Mle=[0,3,4,1,2];Go.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=Mle[u]:i==="C"&&(s=wle[u]),t+=e[n][o][s],u>0&&u<l-1&&(t+=",")}}return t};Go.readPaths=function(e,r,t,n){var a=_le(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 d=0;d<a.length;d++){var _=[],T,m,k,S,x=a[d][0],M=x;switch(x){case"M":l(),s=+a[d][1],f=+a[d][2],_.push([M,s,f]),b();break;case"Q":case"S":T=+a[d][1],k=+a[d][2],s=+a[d][3],f=+a[d][4],_.push([M,s,f,T,k]);break;case"C":T=+a[d][1],k=+a[d][2],m=+a[d][3],S=+a[d][4],s=+a[d][5],f=+a[d][6],_.push([M,s,f,T,k,m,S]);break;case"T":case"L":s=+a[d][1],f=+a[d][2],_.push([M,s,f]);break;case"H":M="L",s=+a[d][1],_.push([M,s,f]);break;case"V":M="L",f=+a[d][1],_.push([M,s,f]);break;case"A":M="L";var h=+a[d][1],w=+a[d][2];+a[d][4]||(h=-h,w=-w);var y=s-h,v=f;for(u=1;u<=pf/2;u++){var A=2*Math.PI*u/pf;_.push([M,y+h*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,R=r._fullLayout._size,E=t&&t.xsizemode==="pixel",D=t&&t.ysizemode==="pixel",I=n===!1,F=0;F<_.length;F++){for(u=0;u+2<7;u+=2){var P=_[F][u+1],L=_[F][u+2];P===void 0||L===void 0||(s=P,f=L,t&&(t.xaxis&&t.xaxis.p2r?(I&&(P-=t.xaxis._offset),E?P=WE(t.xaxis,t.xanchor)+P:P=XE(t.xaxis,P)):(I&&(P-=R.l),p?P=p.x[0]+P/R.w:P=P/R.w),t.yaxis&&t.yaxis.p2r?(I&&(L-=t.yaxis._offset),D?L=WE(t.yaxis,t.yanchor)-L:L=XE(t.yaxis,L)):(I&&(L-=R.t),p?L=p.y[1]-L/R.h:L=1-L/R.h)),_[F][u+1]=P,_[F][u+2]=L)}o[i].push(_[F].slice())}}return o};function vc(e,r){return Math.abs(e-r)<=1e-6}function vd(e,r){var t=r[1]-e[1],n=r[2]-e[2];return Math.sqrt(t*t+n*n)}Go.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(!vc(n,a))return!1;var o=e[0][t]-e[3][t],i=e[1][t]-e[2][t];if(!vc(o,i))return!1}return!vc(e[0][1],e[1][1])&&!vc(e[0][1],e[3][1])?!1:!!(vd(e[0],e[1])*vd(e[0],e[3]))};Go.pointsOnEllipse=function(e){var r=e.length;if(r!==pf+1)return!1;r=pf;for(var t=0;t<r;t++){var n=(r*2-t)%r,a=(r/2+n)%r,o=(r/2+t)%r;if(!vc(vd(e[t],e[o]),vd(e[n],e[a])))return!1}return!0};Go.handleEllipse=function(e,r,t){if(!e)return[r,t];var n=Go.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<pf;s++){var f=s*2*Math.PI/pf;u.push([a+i*Math.cos(f),o+l*Math.sin(f)])}return u};Go.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}};Go.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 pd=xe((c_e,aL)=>{"use strict";var $E=xn(),rL=df(),Tle=rL.drawMode,Ale=rL.openMode,gf=(fd(),or(ud)),KE=gf.i000,QE=gf.i090,jE=gf.i180,eL=gf.i270,kle=gf.cos45,Sle=gf.sin45,tL=cd(),hd=tL.p2r,Il=tL.r2p,Cle=xl(),Ele=Cle.clearOutline,dd=Pl(),Lle=dd.readPaths,Rle=dd.writePaths,Dle=dd.ellipseOver,Ple=dd.fixDatesForPaths;function Ile(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(!Tle(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=nL(e,r,o);Ele(n);for(var f=r.editHelpers,c=(f||{}).modifyItem,g=[],b=0;b<i.length;b++){var d=n._fullLayout.shapes[b];if(g[b]=d._input,a!==void 0&&b===n._fullLayout._activeShapeIndex){var _=s;switch(d.type){case"line":case"rect":case"circle":var T=$E.getFromId(n,d.xref);d.xref.charAt(0)==="x"&&T.type.includes("category")?(c("x0",_.x0-(d.x0shift||0)),c("x1",_.x1-(d.x1shift||0))):(c("x0",_.x0),c("x1",_.x1));var m=$E.getFromId(n,d.yref);d.yref.charAt(0)==="y"&&m.type.includes("category")?(c("y0",_.y0-(d.y0shift||0)),c("y1",_.y1-(d.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 nL(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=Ale(t),d=Lle(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(d.length===1&&(T=d[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[KE][1],k=T[QE][1],S=T[jE][1],x=T[eL][1],M=T[KE][2],h=T[QE][2],w=T[jE][2],y=T[eL][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=Il(l.xaxis,m),k=Il(l.xaxis,k),S=Il(l.xaxis,S),x=Il(l.xaxis,x)),A&&(M=Il(l.yaxis,M),h=Il(l.yaxis,h),w=Il(l.yaxis,w),y=Il(l.yaxis,y));var p=(k+x)/2,R=(M+w)/2,E=(x-k+S-m)/2,D=(y-h+w-M)/2,I=Dle({x0:p,y0:R,x1:p+E*kle,y1:R+D*Sle});v&&(I.x0=hd(l.xaxis,I.x0),I.x1=hd(l.xaxis,I.x1)),A&&(I.y0=hd(l.yaxis,I.y0),I.y1=hd(l.yaxis,I.y1)),_.x0=I.x0,_.y0=I.y0,_.x1=I.x1,_.y1=I.y1}else _.type="path",s&&f&&Ple(d,s,f),_.path=Rle(d),T=null;return _}aL.exports={newShapes:Ile,createShapeObj:nL}});var S5=xe((v_e,iL)=>{"use strict";var zle=df(),Fle=zle.selectMode,Nle=xl(),qle=Nle.clearOutline,k5=Pl(),Ole=k5.readPaths,Ble=k5.writePaths,Ule=k5.fixDatesForPaths;iL.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(!Fle(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 d=Ole(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;d.length===1&&(T=d[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&&Ule(d,u,s),_.path=Ble(d),T=null),qle(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 h=_;switch(M.type){case"rect":k("x0",h.x0),k("x1",h.x1),k("y0",h.y0),k("y1",h.y1);break;case"path":k("path",h.path);break}}}return f===void 0?(S.push(_),S):m?m.getUpdateObj():{}}}}});var hc={};Ot(hc,{numParams:()=>Xle,paramIsX:()=>Gle,paramIsY:()=>Yle,paramRE:()=>Vle,segmentRE:()=>Hle});var Hle,Vle,Gle,Yle,Xle,dc=qt(()=>{"use strict";Hle=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Vle=/[^\s,]+/g,Gle={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:{}},Yle={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:{}},Xle={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Fl=xe(Fn=>{"use strict";var xo=(dc(),or(hc)),oL=rr(),zl=Bt();Fn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Fn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Fn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Fn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Fn.extractPathCoords=function(e,r,t){var n=[],a=e.match(xo.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.slice(1).match(xo.paramRE);if(!(!l||l.length<i)){var u=l[i],s=t?u:oL.cleanNumber(u);n.push(s)}}}),n};Fn.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let n=r.match(xo.segmentRE);if(!n)return 0;let a=t==="x"?xo.paramIsX:xo.paramIsY;return n.reduce((o,i)=>{let l=i.charAt(0),u=a[l].drawn!==void 0;return o+(u?1:0)},0)};Fn.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=Fn.shapePositionToRange(r);i=function(u){var s=bo(r,t);return r._offset+r.r2p(l(u,!0))+s},r.type==="date"&&(i=Fn.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};Fn.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=Fn.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};Fn.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};Fn.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}};Fn.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}};Fn.getPathString=function(e,r){let t=r.type,n=zl.getRefType(r.xref),a=zl.getRefType(r.yref),o=e._fullLayout._size;var i,l,u,s,f,c,g,b,d,_,T,m;function k(A,p,R,E){var D;if(A)if(p==="domain")E?D=function(I){return A._offset+A._length*(1-I)}:D=function(I){return A._offset+A._length*I};else{let I=Fn.shapePositionToRange(A);D=function(F){return A._offset+A.r2p(I(F,!0))},R==="path"&&A.type==="date"&&(D=Fn.decodeDate(D))}else E?D=function(I){return o.t+o.h*(1-I)}:D=function(I){return o.l+o.w*I};return D}if(n==="array"?(g=[],i=r.xref.map(function(A){return zl.getFromId(e,A)}),g=r.xref.map(function(A,p){return k(i[p],zl.getRefType(A),t,!1)})):(i=zl.getFromId(e,r.xref),g=k(i,n,t,!1)),a==="array"?(b=[],l=r.yref.map(function(A){return zl.getFromId(e,A)}),b=r.yref.map(function(A,p){return k(l[p],zl.getRefType(A),t,!0)})):(l=zl.getFromId(e,r.yref),b=k(l,a,t,!0)),t==="path")return Wle(r,g,b);if(n==="array")u=bo(i[0],r.x0shift),s=bo(i[1],r.x1shift),d=g[0](r.x0)+u,_=g[1](r.x1)+s;else if(u=bo(i,r.x0shift),s=bo(i,r.x1shift),r.xsizemode==="pixel"){let A=g(r.xanchor);d=A+r.x0+u,_=A+r.x1+s}else d=g(r.x0)+u,_=g(r.x1)+s;if(a==="array")f=bo(l[0],r.y0shift),c=bo(l[1],r.y1shift),T=b[0](r.y0)+f,m=b[1](r.y1)+c;else if(f=bo(l,r.y0shift),c=bo(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"+d+","+T+"L"+_+","+m;if(t==="rect")return"M"+d+","+T+"H"+_+"V"+m+"H"+d+"Z";var S=(d+_)/2,x=(T+m)/2,M=Math.abs(S-d),h=Math.abs(x-T),w="A"+M+","+h,y=S+M+","+x,v=S+","+(x-h);return"M"+y+w+" 0 1,1 "+v+w+" 0 0,1 "+y+"Z"};function Wle(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(xo.segmentRE,function(g){var b=0,d=g.charAt(0),_=xo.paramIsX[d],T=xo.paramIsY[d],m=xo.numParams[d];let k=_.drawn!==void 0,S=T.drawn!==void 0,x=u?r[f]:r,M=s?t[c]:t;var h=g.slice(1).replace(xo.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&&(h=h.replace(/[\s,]*X.*/,""),oL.log("Ignoring extra params in segment "+g)),k&&f++,S&&c++,d+h})}Fn.getPixelShift=bo;function bo(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((d_e,uL)=>{"use strict";var Zle=rr(),_o=Bt(),lL=Qn(),sL=kt(),Jle=Pl().readPaths,Gs=Fl(),$le=Gs.getPathString,pc=zh(),Kle=(Kn(),or($n)).FROM_TL;uL.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=_o.getFromId(r,n.xref),u=_o.getFromId(r,n.yref);let B=Array.isArray(n.xref),V=Array.isArray(n.yref);for(var s in pc){var f=typeof pc[s]=="function",c=!B||pc.simpleXVariables.includes(s),g=!V||pc.simpleYVariables.includes(s);if(f&&c&&g){var b=pc[s](n,l,u);b!==void 0&&(i[s]=b)}}}o=Zle.texttemplateStringForShapes({data:[i],fallback:n.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:n.label.texttemplate})}else o=n.label.text;var d={"data-index":t},_=n.label.font,T={"data-notex":1},m=a.append("g").attr(d).classed("shape-label",!0),k=m.append("text").attr(T).classed("shape-label-text",!0).text(o),S,x,M,h;if(n.path){var w=$le(r,n),y=Jle(w,r);S=1/0,M=1/0,x=-1/0,h=-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],R=1;R<p.length;R+=2){var E=p[R],D=p[R+1];S=Math.min(S,E),x=Math.max(x,E),M=Math.min(M,D),h=Math.max(h,D)}}else{let B=Array.isArray(n.xref),V=Array.isArray(n.yref),J=_o.getFromId(r,B?n.xref[0]:n.xref),Q=_o.getFromId(r,B?n.xref[1]:n.xref),G=_o.getFromId(r,V?n.yref[0]:n.yref),q=_o.getFromId(r,V?n.yref[1]:n.yref),Z=_o.getRefType(B?n.xref[0]:n.xref),re=_o.getRefType(B?n.xref[1]:n.xref),$=_o.getRefType(V?n.yref[0]:n.yref),ie=_o.getRefType(V?n.yref[1]:n.yref),j=(ue,ee,ae,fe)=>Gs.getDataToPixel(r,ae,ee,!1,fe)(ue),te=(ue,ee,ae,fe)=>Gs.getDataToPixel(r,ae,ee,!0,fe)(ue);if(n.xsizemode==="pixel"){let ue=j(n.xanchor,void 0,J,Z),ee=Gs.getPixelShift(J,n.x0shift),ae=Gs.getPixelShift(J,n.x1shift);S=ue+n.x0+ee,x=ue+n.x1+ae}else S=j(n.x0,n.x0shift,J,Z),x=j(n.x1,n.x1shift,Q,re);if(n.ysizemode==="pixel"){let ue=te(n.yanchor,void 0,G,$),ee=Gs.getPixelShift(G,n.y0shift),ae=Gs.getPixelShift(G,n.y1shift);M=ue-n.y0+ee,h=ue-n.y1+ae}else M=te(n.y0,n.y0shift,G,$),h=te(n.y1,n.y1shift,q,ie)}var I=n.label.textangle;I==="auto"&&(n.type==="line"?I=Qle(S,M,x,h):I=0),k.call(function(B){return B.call(sL.font,_).attr({}),lL.convertToTspans(B,r),B});var F=sL.bBox(k.node()),P=jle(S,M,x,h,n,I,F),L=P.textx,z=P.texty,O=P.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[O],y:z,x:L,transform:"rotate("+I+","+L+","+z+")"}).call(lL.positionText,L,z)}};function Qle(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 jle(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),d=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),d==="auto"&&(l==="start"?u==="auto"?t>e?d="left":t<e?d="right":d="center":t>e?d="right":t<e?d="left":d="center":l==="end"?u==="auto"?t>e?d="right":t<e?d="left":d="center":t>e?d="left":t<e?d="right":d="center":d="center");var x={left:1,center:0,right:-1},M={bottom:-1,middle:0,top:1};if(u==="auto"){var h=M[_];k=-s*g*h,S=s*b*h}else{var w=x[d],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,d==="auto"&&(d="right")):l.indexOf("left")!==-1?(T=Math.min(e,t)+k,d==="auto"&&(d="left")):(T=(e+t)/2,d==="auto"&&(d="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=Kle[_],A=a.label.font.size,p=i.height,R=(p*v-A)*g,E=-(p*v-A)*b;return{textx:T+R,texty:m+E,xanchor:d}}});var md=xe((p_e,yL)=>{"use strict";var ese=rr(),rse=ese.strTranslate,fL=Fi(),hL=df(),tse=hL.drawMode,dL=hL.selectMode,pL=Cr(),cL=Zr(),yd=(fd(),or(ud)),nse=yd.i000,ase=yd.i090,ise=yd.i180,ose=yd.i270,lse=xl(),gL=lse.clearOutlineControllers,L5=Pl(),gd=L5.pointsOnRectangle,E5=L5.pointsOnEllipse,sse=L5.writePaths,use=pd().newShapes,fse=pd().createShapeObj,cse=S5(),vse=C5();yL.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(P){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=use(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=cse(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&pL.call((P||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,c=tse(f),g=dL(f);(c||g)&&(o._fullLayout._outlining=!0),gL(o),t.attr("d",sse(r));var b,d,_,T,m;if(!a&&(n.isActiveShape||n.isActiveSelection)){m=hse([],r);var k=s.append("g").attr("class","outline-controllers");A(k),F()}if(c&&n.hasText){var S=s.select(".label-temp"),x=fse(t,n,n.dragmode);vse(o,"label-temp",x,S)}function M(P){_=+P.srcElement.getAttribute("data-i"),T=+P.srcElement.getAttribute("data-j"),b[_][T].moveFn=h}function h(P,L){if(r.length){var z=m[_][T][1],O=m[_][T][2],B=r[_],V=B.length;if(gd(B)){var J=P,Q=L;if(n.isActiveSelection){var G=vL(B,T);G[1]===B[T][1]?Q=0:J=0}for(var q=0;q<V;q++)if(q!==T){var Z=B[q];Z[1]===B[T][1]&&(Z[1]=z+J),Z[2]===B[T][2]&&(Z[2]=O+Q)}if(B[T][1]=z+J,B[T][2]=O+Q,!gd(B))for(var re=0;re<V;re++)for(var $=0;$<B[re].length;$++)B[re][$]=m[_][re][$]}else B[T][1]=z+P,B[T][2]=O+L;i()}}function w(){l()}function y(){if(r.length&&r[_]&&r[_].length){for(var P=[],L=0;L<r[_].length;L++)L!==T&&P.push(r[_][L]);P.length>1&&!(P.length===2&&P[1][0]==="Z")&&(T===0&&(P[0][0]="M"),r[_]=P,i(),l())}}function v(P,L){if(P===2){_=+L.srcElement.getAttribute("data-i"),T=+L.srcElement.getAttribute("data-j");var z=r[_];!gd(z)&&!E5(z)&&y()}}function A(P){b=[];for(var L=0;L<r.length;L++){var z=r[L],O=gd(z),B=!O&&E5(z);b[L]=[];for(var V=z.length,J=0;J<V;J++)if(z[J][0]!=="Z"&&!(B&&J!==nse&&J!==ase&&J!==ise&&J!==ose)){var Q=O&&n.isActiveSelection,G;Q&&(G=vL(z,J));var q=z[J][1],Z=z[J][2],re=P.append(Q?"rect":"circle").attr("data-i",L).attr("data-j",J).style({fill:cL.background,stroke:cL.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(Q){var $=G[1]-q,ie=G[2]-Z,j=ie?5:Math.max(Math.min(25,Math.abs($)-5),5),te=$?5:Math.max(Math.min(25,Math.abs(ie)-5),5);re.classed(ie?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",j).attr("height",te).attr("x",q-j/2).attr("y",Z-te/2).attr("transform",rse($/2,ie/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},fL.init(b[L][J])}}}function p(P,L){if(r.length)for(var z=0;z<r.length;z++)for(var O=0;O<r[z].length;O++)for(var B=0;B+2<r[z][O].length;B+=2)r[z][O][B+1]=m[z][O][B+1]+P,r[z][O][B+2]=m[z][O][B+2]+L}function R(P,L){p(P,L),i()}function E(P){_=+P.srcElement.getAttribute("data-i"),_||(_=0),d[_].moveFn=R}function D(){l()}function I(P){P===2&&dse(o)}function F(){if(d=[],!!r.length){var P=0;d[P]={element:t[0][0],gd:o,prepFn:E,doneFn:D,clickFn:I},fL.init(d[P])}}};function hse(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 vL(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 dse(e){if(dL(e._fullLayout.dragmode)){gL(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},pL.call("_guiRelayout",e,{selections:n})}}}});var Md=xe((g_e,SL)=>{"use strict";var pse=st(),ML=Cr(),D5=rr(),Ys=Bt(),gse=Pl().readPaths,yse=md(),xd=C5(),TL=xl().clearOutlineControllers,R5=Zr(),_d=kt(),mse=At().arrayEditor,mL=Fi(),bL=mo(),xL=Rl(),Xs=(dc(),or(hc)),Pa=Fl(),P5=Pa.getPathString;SL.exports={draw:I5,drawOne:AL,eraseActiveShape:Mse,drawLabel:xd};function I5(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&&AL(e,a)}function bd(e){return!!e._fullLayout._outlining}function wd(e){return!e._context.edits.shapePosition}function AL(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=Pa.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=P5(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)",d=n.line.width,_=n.line.dash;!d&&n.editable===!0&&(d=5,_="solid");var T=s[s.length-1]!=="Z",m=wd(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(R5.stroke,b).call(R5.fill,g).call(_d.dashLine,_,d);kL(k,e,n),xd(e,r,n,k);var x;if((m||e._context.edits.shapePosition)&&(x=mse(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},h=gse(s,e);yse(h,S,M)}else e._context.edits.shapePosition?_se(e,S,n,r,u,x):n.editable===!0&&S.style("pointer-events",T||R5.opacity(g)*c<=.5?"stroke":"all");S.node().addEventListener("click",function(){return wse(e,S)}),bse(e,S,a)}}function bse(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&&bL.hover(e,i,t.id)}}),n.addEventListener("click",o=>{if(!e._dragged&&e._fullLayout.clickanywhere){let i=a(o);i&&bL.click(e,i,t.id)}})}function kL(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=xse(r,n,a);D5.ensureSingleById(r._fullLayout._clips,"clipPath",o,function(l){l.append("rect")}).select("rect").attr(i),_d.setClipUrl(e,o,r)}else{let o=(n+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");_d.setClipUrl(e,o?"clip"+r._fullLayout._uid+o:null,r)}}function xse(e,r,t){let n=e._fullLayout._size;function a(l,u){let s=(Array.isArray(l)?l:[l]).map(g=>Ys.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 _se(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,d,_,T,m,k,S,x,M,h,w,y,v,A,p,R=pse.select(r.node().parentNode),E=Ys.getFromId(e,t.xref),D=Ys.getRefType(t.xref),I=Ys.getFromId(e,t.yref),F=Ys.getRefType(t.yref),P=t.x0shift,L=t.x1shift,z=t.y0shift,O=t.y1shift,B=function(ke,ge){var Ee=Pa.getDataToPixel(e,E,ge,!1,D);return Ee(ke)},V=function(ke,ge){var Ee=Pa.getDataToPixel(e,I,ge,!0,F);return Ee(ke)},J=Pa.getPixelToData(e,E,!1,D),Q=Pa.getPixelToData(e,I,!0,F),G=re(),q={element:G.node(),gd:e,prepFn:j,doneFn:te,clickFn:ue},Z;mL.init(q),G.node().onmousemove=ie;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?B(t.xanchor)+t.x0:B(t.x0,P),cy:s?V(t.yanchor)-t.y0:V(t.y0,z),r:se}).style(Le).classed("cursor-grab",!0),Ee.append("circle").attr({"data-line-point":"end-point",cx:u?B(t.xanchor)+t.x1:B(t.x1,L),cy:s?V(t.yanchor)-t.y1:V(t.y1,O),r:se}).style(Le).classed("cursor-grab",!0),Ee}function ie(ke){if(bd(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?mL.getCursor(se/Ee,1-X/Le):"move";xL(r,K),Z=K.split("-")[0]}}function j(ke){bd(e)||(u&&(m=B(t.xanchor)),s&&(k=V(t.yanchor)),t.type==="path"?p=t.path:(b=u?t.x0:B(t.x0),d=s?t.y0:V(t.y0),_=u?t.x1:B(t.x1),T=s?t.y1:V(t.y1)),b<_?(M=b,v="x0",h=_,A="x1"):(M=_,v="x1",h=b,A="x0"),!s&&d<T||s&&d>T?(S=d,w="y0",x=T,y="y1"):(S=T,w="y1",x=d,y="y0"),ie(ke),fe(a,t),Me(r,t,e),q.moveFn=Z==="move"?ee:ae,q.altKey=ke.altKey)}function te(){bd(e)||(xL(r),we(a),kL(r,e,t),ML.call("_guiRelayout",e,o.getUpdateObj()))}function ue(){bd(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(B(K)+ke)},E&&E.type==="date"&&(Le=Pa.encodeDate(Le))),s?g("yanchor",t.yanchor=Q(k+ge)):(se=function(K){return Q(V(K)+ge)},I&&I.type==="date"&&(se=Pa.encodeDate(se))),g("path",t.path=_L(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=Q(k+ge)):(g("y0",t.y0=Q(d+ge)),g("y1",t.y1=Q(T+ge)));r.attr("d",P5(e,t)),fe(a,t),xd(e,n,t,R)}function ae(ke,ge){if(c){var Ee=function(Ie){return Ie},Le=Ee,se=Ee;u?g("xanchor",t.xanchor=J(m+ke)):(Le=function(Ye){return J(B(Ye)+ke)},E&&E.type==="date"&&(Le=Pa.encodeDate(Le))),s?g("yanchor",t.yanchor=Q(k+ge)):(se=function(Ye){return Q(V(Ye)+ge)},I&&I.type==="date"&&(se=Pa.encodeDate(se))),g("path",t.path=_L(p,Le,se))}else if(f){if(Z==="resize-over-start-point"){var X=b+ke,K=s?d-ge:d+ge;g("x0",t.x0=u?X:J(X)),g("y0",t.y0=s?K:Q(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:Q(oe))}}else{var he=function(Ie){return Z.indexOf(Ie)!==-1},pe=he("n"),me=he("s"),Se=he("w"),ve=he("e"),de=pe?S+ge:S,be=me?x+ge:x,Ae=Se?M+ke:M,Pe=ve?h+ke:h;s&&(pe&&(de=S-ge),me&&(be=x-ge)),(!s&&be-de>l||s&&de-be>l)&&(g(w,t[w]=s?de:Q(de)),g(y,t[y]=s?be:Q(be))),Pe-Ae>i&&(g(v,t[v]=u?Ae:J(Ae)),g(A,t[A]=u?Pe:J(Pe)))}r.attr("d",P5(e,t)),fe(a,t),xd(e,n,t,R)}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=B(u?ge.xanchor:D5.midRange(Le?[ge.x0,ge.x1]:Pa.extractPathCoords(ge.path,Xs.paramIsX))),ye=V(s?ge.yanchor:D5.midRange(Le?[ge.y0,ge.y1]:Pa.extractPathCoords(ge.path,Xs.paramIsY)));if(K=Pa.roundPositionForSharpStrokeRendering(K,X),ye=Pa.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 he="M"+(K-1-X)+","+(ye-9-X)+"v18 h2 v-18 Z";se.attr("d",he)}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 Me(ke,ge,Ee){var Le=ge.xref,se=ge.yref,X=Ys.getFromId(Ee,Le),K=Ys.getFromId(Ee,se),ye="";Le!=="paper"&&!X.autorange&&(ye+=Le),se!=="paper"&&!K.autorange&&(ye+=se),_d.setClipUrl(ke,ye?"clip"+Ee._fullLayout._uid+ye:null,Ee)}}function _L(e,r,t){return e.replace(Xs.segmentRE,function(n){var a=0,o=n.charAt(0),i=Xs.paramIsX[o],l=Xs.paramIsY[o],u=Xs.numParams[o],s=n.slice(1).replace(Xs.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function wse(e,r){if(wd(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){wL(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=wL,I5(e)}}}function wL(e){if(wd(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(TL(e),delete e._fullLayout._activeShapeIndex,I5(e))}}function Mse(e){if(wd(e)){TL(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r<t.length){for(var n=[],a=0;a<t.length;a++)a!==r&&n.push(t[a]);return delete e._fullLayout._activeShapeIndex,ML.call("_guiRelayout",e,{shapes:n})}}}});var EL=xe((y_e,CL)=>{"use strict";var yf=rr()._,Tse=function(e){return{DIALOG_TITLE:yf(e,"Share chart"),DIALOG_MESSAGE_CLOUD:yf(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:yf(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:yf(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:yf(e,"Cancel"),DIALOG_CONFIRM:yf(e,"Share")}};CL.exports=Tse});var DL=xe((m_e,RL)=>{"use strict";var LL=st(),{dfltConfig:Ase}=ol(),kse=EL(),Sse=(e,r,t,n,a)=>{let o=kse(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===Ase.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],d=i.append("div").classed("plotly-cloud-dialog-message",!0);d.append("span").text(g),d.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(s),d.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)},Cse=(e,r,t)=>{let n=LL.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",()=>{LL.event.target===a.node()&&o()}),Sse(e,a,r,()=>{o(),t()},o)};RL.exports=Cse});var N5=xe((b_e,OL)=>{"use strict";var Za=Cr(),Ese=Cn(),IL=xn(),dt=sd(),Lse=Md().eraseActiveShape,Rse=DL(),mf=rr(),at=mf._,vt={};OL.exports=vt;vt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?at(e,"Download plot as a PNG"):at(e,"Download plot")},icon:dt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};mf.notifier(at(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Za.call("downloadImage",e,t).then(function(n){mf.notifier(at(e,"Image download succeeded")+" - "+n,"long",e)}).catch(function(){mf.notifier(at(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};vt.downloadJson={name:"downloadJson",title:function(e){return at(e,"Download plot as JSON")},icon:dt.curlybraces,click:function(e){Za.call("downloadImage",e,{format:"full-json"}).then(function(r){mf.notifier(at(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){mf.notifier(at(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};vt.sendChartToCloud={name:"sendChartToCloud",title:function(e){return at(e,"Share chart...")},icon:dt.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}Rse(e,r,function(){Ese.sendDataToCloud(e,r)})}};vt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return at(e,"Zoom")},attr:"dragmode",val:"zoom",icon:dt.zoombox,click:da};vt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return at(e,"Pan")},attr:"dragmode",val:"pan",icon:dt.pan,click:da};vt.select2d={name:"select2d",_cat:"select",title:function(e){return at(e,"Box Select")},attr:"dragmode",val:"select",icon:dt.selectbox,click:da};vt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return at(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:dt.lasso,click:da};vt.drawclosedpath={name:"drawclosedpath",title:function(e){return at(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:dt.drawclosedpath,click:da};vt.drawopenpath={name:"drawopenpath",title:function(e){return at(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:dt.drawopenpath,click:da};vt.drawline={name:"drawline",title:function(e){return at(e,"Draw line")},attr:"dragmode",val:"drawline",icon:dt.drawline,click:da};vt.drawrect={name:"drawrect",title:function(e){return at(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:dt.drawrect,click:da};vt.drawcircle={name:"drawcircle",title:function(e){return at(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:dt.drawcircle,click:da};vt.eraseshape={name:"eraseshape",title:function(e){return at(e,"Erase active shape")},icon:dt.eraseshape,click:Lse};vt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return at(e,"Zoom in")},attr:"zoom",val:"in",icon:dt.zoom_plus,click:da};vt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return at(e,"Zoom out")},attr:"zoom",val:"out",icon:dt.zoom_minus,click:da};vt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return at(e,"Autoscale")},attr:"zoom",val:"auto",icon:dt.autoscale,click:da};vt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return at(e,"Reset axes")},attr:"zoom",val:"reset",icon:dt.home,click:da};vt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return at(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:dt.tooltip_basic,gravity:"ne",click:da};vt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return at(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:dt.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=IL.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,d,_;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(d=s._name,a==="auto")i[d+".autorange"]=!0;else if(a==="reset")s._rangeInitial0===void 0&&s._rangeInitial1===void 0?i[d+".autorange"]=!0:s._rangeInitial0===void 0?(i[d+".autorange"]=s._autorangeInitial,i[d+".range"]=[null,s._rangeInitial1]):s._rangeInitial1===void 0?(i[d+".range"]=[s._rangeInitial0,null],i[d+".autorange"]=s._autorangeInitial):i[d+".range"]=[s._rangeInitial0,s._rangeInitial1],s._showSpikeInitial!==void 0&&(i[d+".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[d+".range[0]"]=s.l2r(m[0]),i[d+".range[1]"]=s.l2r(m[1])}}else n==="hovermode"&&(a==="x"||a==="y")&&(a=o._isHoriz?"y":"x",t.setAttribute("data-val",a)),i[n]=a;o._cartesianSpikesEnabled=u,Za.call("_guiRelayout",e,i)}vt.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return at(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:dt.zoombox,click:Ad};vt.pan3d={name:"pan3d",_cat:"pan",title:function(e){return at(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:dt.pan,click:Ad};vt.orbitRotation={name:"orbitRotation",title:function(e){return at(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:dt["3d_rotate"],click:Ad};vt.tableRotation={name:"tableRotation",title:function(e){return at(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:dt["z-axis"],click:Ad};function Ad(e,r){for(var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout._subplots.gl3d||[],i={},l=n.split("."),u=0;u<o.length;u++)i[o[u]+"."+l[1]]=a;var s=a==="pan"?a:"zoom";i.dragmode=s,Za.call("_guiRelayout",e,i)}vt.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return at(e,"Reset camera to default")},attr:"resetDefault",icon:dt.home,click:z5};vt.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return at(e,"Reset camera to last save")},attr:"resetLastSave",icon:dt.movie,click:z5};function z5(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",d=i[f]._scene,_;a?(u[c+".up"]=d.viewInitial.up,u[c+".eye"]=d.viewInitial.eye,u[c+".center"]=d.viewInitial.center,_=!0):o&&(u[c+".up"]=null,u[c+".eye"]=null,u[c+".center"]=null,_=!0),_&&(u[g+".x"]=d.viewInitial.aspectratio.x,u[g+".y"]=d.viewInitial.aspectratio.y,u[g+".z"]=d.viewInitial.aspectratio.z,u[b]=d.viewInitial.aspectmode)}Za.call("_guiRelayout",e,u)}vt.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return at(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:dt.tooltip_basic,gravity:"ne",click:Dse};function zL(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 d=i[b],_=f+"."+d+".showspikes";u[_]=!1,l[_]=c[d].showspikes}}t._previousVal=l}return u}function Dse(e,r){var t=zL(e,r);Za.call("_guiRelayout",e,t)}vt.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return at(e,"Zoom in")},attr:"zoom",val:"in",icon:dt.zoom_plus,click:F5};vt.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return at(e,"Zoom out")},attr:"zoom",val:"out",icon:dt.zoom_minus,click:F5};vt.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return at(e,"Reset")},attr:"reset",val:null,icon:dt.autoscale,click:F5};vt.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return at(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:dt.tooltip_basic,gravity:"ne",click:NL};var PL=2;function F5(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,d]=c.rotate().map(h=>-h),[_,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"?PL*g:1/PL*g;M>x?M=x:M<S&&(M=S),M!==g&&Za.call("_guiRelayout",e,{[u+".projection.scale"]:M,[u+".projection.rotation.lon"]:b,[u+".projection.rotation.lat"]:d,[u+".center.lon"]:_,[u+".center.lat"]:T,[u+".fitbounds"]:!1})}}n==="reset"&&Td(e,"geo")}vt.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return at(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:dt.tooltip_basic,gravity:"ne",click:NL};function FL(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function NL(e){var r=FL(e);Za.call("_guiRelayout",e,"hovermode",r)}vt.resetViewSankey={name:"resetSankeyGroup",title:function(e){return at(e,"Reset view")},icon:dt.home,click:function(e){for(var r={"node.groups":[],"node.x":[],"node.y":[]},t=0;t<e._fullData.length;t++){var n=e._fullData[t]._viewInitial;r["node.groups"].push(n.node.groups.slice()),r["node.x"].push(n.node.x.slice()),r["node.y"].push(n.node.y.slice())}Za.call("restyle",e,r)}};vt.toggleHover={name:"toggleHover",title:function(e){return at(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:dt.tooltip_basic,gravity:"ne",click:function(e,r){var t=zL(e,r);t.hovermode=FL(e),Za.call("_guiRelayout",e,t)}};vt.resetViews={name:"resetViews",title:function(e){return at(e,"Reset views")},icon:dt.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"),z5(e,r),Td(e,"geo"),Td(e,"map")}};vt.toggleSpikelines={name:"toggleSpikelines",title:function(e){return at(e,"Toggle Spike Lines")},icon:dt.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",Za.call("_guiRelayout",e,Pse(e))}};function Pse(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",n=IL.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}vt.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return at(e,"Reset view")},attr:"reset",icon:dt.home,click:function(e){Td(e,"map")}};vt.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return at(e,"Zoom in")},attr:"zoom",val:"in",icon:dt.zoom_plus,click:qL};vt.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return at(e,"Zoom out")},attr:"zoom",val:"out",icon:dt.zoom_minus,click:qL};function qL(e,r){Ise(e,r,"map")}function Ise(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}Za.call("_guiRelayout",e,u)}function Td(e,r){for(var t=e._fullLayout,n=t._subplots[r]||[],a={},o=0;o<n.length;o++)for(var i=n[o],l=t[i]._subplot,u=l.viewInitial,s=Object.keys(u),f=0;f<s.length;f++){var c=s[f];a[i+"."+c]=u[c]}Za.call("_guiRelayout",e,a)}});var q5=xe((x_e,VL)=>{"use strict";var BL=N5(),zse=Object.keys(BL),UL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],HL=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(UL,["downloadJson"]),bf=[],Fse=function(e){if(HL.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();bf.indexOf(r)===-1&&bf.push(r),bf.indexOf(t)===-1&&bf.push(t)}};zse.forEach(function(e){Fse(BL[e])});bf.sort();VL.exports={DRAW_MODES:UL,backButtons:HL,foreButtons:bf}});var B5={};Ot(B5,{default:()=>qse});var O5,Nse,qse,U5=qt(()=>{"use strict";O5=Q_(q5()),Nse={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 *${O5.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 *${O5.default.foreButtons.join("*, *")}*.`].join(" ")}},qse=Nse});var YL=xe((__e,GL)=>{"use strict";var Ose=rr(),gc=Zr(),Bse=At(),Use=(U5(),or(B5)).default;GL.exports=function(r,t){var n=r.modebar||{},a=Bse.newContainer(t,"modebar");function o(l,u){return Ose.coerce(n,a,Use,l,u)}o("orientation"),o("bgcolor",gc.addOpacity(t.paper_bgcolor,.5));var i=gc.contrast(gc.rgb(t.modebar.bgcolor));o("color",gc.addOpacity(i,.3)),o("activecolor",gc.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var JL=xe((w_e,ZL)=>{"use strict";var H5=st(),Hse=ft(),kd=rr(),XL=sd(),Vse=f0().version,Gse=new DOMParser;function WL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var wo=WL.prototype;wo.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(),kd.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};wo.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)})};wo.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};wo.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||XL.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};wo.createIcon=function(e){var r=Hse(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=Gse.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};wo.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,d=c.querySelector(".icon path");d&&(g||c.matches(":hover")?d.style.fill=b.activecolor:d.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:kd.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};wo.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 Yse(e){return e+" (v"+Vse+")"}wo.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",Yse(kd._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(XL.newplotlylogo)),e.appendChild(r),e};wo.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};wo.destroy=function(){kd.removeElement(this.container.querySelector(".modebar"))};function Xse(e,r){var t=e._fullLayout,n=new WL({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}ZL.exports=Xse});var QL=xe((M_e,KL)=>{"use strict";var Wse=xn(),$L=Ra(),V5=Cr(),Zse=fo().isUnifiedHover,Jse=JL(),Sd=N5(),$se=q5().DRAW_MODES,Kse=rr().extendDeep;KL.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=nue(o):!n.displayModeBar&&n.watermark?i=[]:i=Qse(r),a?a.update(r,i):t._modeBar=Jse(r,i)};function Qse(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(L,z){if(typeof z=="string"){if(z.toLowerCase()===L.toLowerCase())return!0}else{var O=z.name,B=z._cat||z.name;if(O===L||B===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 z=0;z<n.modeBarButtonsToRemove.length;z++)if(a(L,n.modeBarButtonsToRemove[z]))return!1;return!0})),u=n.modeBarButtonsToRemove.concat(i.filter(function(L){for(var z=0;z<n.modeBarButtonsToAdd.length;z++)if(a(L,n.modeBarButtonsToAdd[z]))return!1;return!0})),s=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),g=r._has("pie"),b=r._has("funnelarea"),d=r._has("ternary"),_=r._has("map"),T=r._has("polar"),m=r._has("smith"),k=r._has("sankey"),S=jse(r),x=Zse(r.hovermode),M=[];function h(L){if(L.length){for(var z=[],O=0;O<L.length;O++){for(var B=L[O],V=Sd[B],J=V.name.toLowerCase(),Q=(V._cat||V.name).toLowerCase(),G=!1,q=0;q<u.length;q++){var Z=u[q].toLowerCase();if(Z===J||Z===Q){G=!0;break}}G||z.push(Sd[B])}M.push(z)}}var w=!1,y=[],v=[],A=[],p=[];(s||g||b||d)+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"),(rue(t)||x)&&(v=[]),s&&!S&&(y=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),f?p=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!S||d?p=["zoom2d","pan2d"]:_||c?p=["pan2d"]:T&&(p=["zoom2d"]),eue(t)&&p.push("select2d","lasso2d");var R=[],E=function(L){R.indexOf(L)===-1&&v.indexOf(L)!==-1&&R.push(L)};if(Array.isArray(l)){for(var D=[],I=0;I<l.length;I++){var F=l[I];typeof F=="string"?(F=F.toLowerCase(),$se.indexOf(F)!==-1?(r._has("map")||r._has("cartesian"))&&p.push(F):F==="togglespikelines"?E("toggleSpikelines"):F==="togglehover"?E("toggleHover"):F==="hovercompare"?E("hoverCompareCartesian"):F==="hoverclosest"?(E("hoverClosestCartesian"),E("hoverClosestGeo"),E("hoverClosest3d"),E("hoverClosestPie")):F==="v1hovermode"?(E("hoverClosestCartesian"),E("hoverCompareCartesian"),E("hoverClosestGeo"),E("hoverClosest3d"),E("hoverClosestPie")):F==="downloadjson"&&(w=!0)):D.push(F)}l=D}var P=["toImage"];return w&&P.push("downloadJson"),n.showSendToCloud&&P.push("sendChartToCloud"),h(P),h(p),h(y.concat(A)),h(R),tue(M,l)}function jse(e){for(var r=Wse.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 eue(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"?($L.hasMarkers(n)||$L.hasText(n))&&(r=!0):V5.traceIs(n,"box-violin")?(n.boxpoints==="all"||n.points==="all")&&(r=!0):r=!0)}return r}function rue(e){for(var r=0;r<e.length;r++)if(!V5.traceIs(e[r],"noHover"))return!1;return!0}function tue(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 nue(e){for(var r=Kse([],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(Sd[o]!==void 0)r[t][a]=Sd[o];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var G5=xe((T_e,jL)=>{"use strict";jL.exports={moduleType:"component",name:"modebar",layoutAttributes:(U5(),or(B5)).default,supplyLayoutDefaults:YL(),manage:QL()}});var Y5=xe((A_e,eR)=>{"use strict";var aue=(Kn(),or($n)).FROM_BL;eR.exports=function(r,t,n){n===void 0&&(n=aue[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 mc=xe(yc=>{"use strict";var Ws=rr(),X5=af(),qi=xn().id2name,iue=si(),rR=Y5(),oue=C1(),lue=(Mn(),or(In)).ALMOST_EQUAL,sue=(Kn(),or($n)).FROM_BL;yc.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,d;for(l=0;l<n.length;l++)f=qi(n[l]),c=e[f],g=r[f],uue(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[qi(s)][v]=u}}for(_(i,"_matchGroup"),l=0;l<o.length;l++){u=o[l];for(s in u)if(g=r[qi(s)],g.fixedrange){for(var T in u){var m=qi(T);(e[m]||{}).fixedrange===!1&&Ws.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[qi(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(){d=g[b],b==="range"&&(S=!!(d&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null)),b==="rangebreaks"&&(x=g._hasDayOfWeekBreaks)}for(l=0;l<i.length;l++){u=i[l],S=!1;for(var h=0;h<k.length;h++){b=k[h],d=null;var w;for(s in u)if(f=qi(s),c=e[f],g=r[f],b in g){if(!g.matches&&(w=g,b in c)){M();break}d===null&&b in c&&M()}if(b==="autorange"&&d===null&&S&&(d=!1),d===null&&b in w&&(d=w[b]),d!==null)for(s in u)g=r[qi(s)],g[b]=b==="range"?d.slice():d,b==="rangebreaks"&&(g._hasDayOfWeekBreaks=x,oue(g,r))}}};function uue(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(R,E){return Ws.coerce(e,r,iue,R,E)}b("constrain",o?"domain":"range"),Ws.coerce(e,r,{constraintoward:{valType:"enumerated",values:g?["left","center","right"]:["bottom","middle","top"],dflt:g?"center":"middle"}},"constraintoward");var d=r.type,_,T,m=[];for(_=0;_<n.length;_++)if(T=n[_],T!==c){var k=a[qi(T)];k.type===d&&m.push(T)}var S=aR(i,c);if(S){var x=[];for(_=0;_<m.length;_++)T=m[_],S[T]||x.push(T);m=x}var M=m.length,h,w;M&&(e.matches||f.matches)&&(h=Ws.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&&!h&&(e.scaleanchor||y)&&(w=Ws.coerce(e,r,{scaleanchor:{valType:"enumerated",values:m.concat([!1])}},"scaleanchor",y)),h){r._matchGroup=W5(l,c,h,1);var v=a[qi(h)],A=tR(a,r)/tR(a,v);g!==(h.charAt(0)==="x")&&(A=(g?"x":"y")+A),W5(i,c,h,A)}else e.matches&&n.indexOf(e.matches)!==-1&&Ws.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&&Ws.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 tR(e,r){var t=r.domain;return t||(t=e[qi(r.overlaying)].domain),t[1]-t[0]}function aR(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=aR(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 fue(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}yc.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=fue(n[a],t);var g=Object.keys(i),b=1/0,d=0,_=1/0,T={},m={},k=!1;for(o=0;o<g.length;o++)l=g[o],m[l]=u=t[qi(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,d=Math.max(d,s),u.constrain==="domain"&&(k=!0);if(!(b>lue*d&&!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")rR(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(),rR(u,c);continue}if(M<1&&(u.range=u._input.range=u._inputRange.slice(),c*=M),u.autorange){var h=u.r2l(u.range[0]),w=u.r2l(u.range[1]),y=(h+w)/2,v=y,A=y,p=Math.abs(w-y),R=y-p*c*1.0001,E=y+p*c*1.0001,D=X5.makePadFn(t,u,0),I=X5.makePadFn(t,u,1);nR(u,c,t);var F=Math.abs(u._m),P=X5.concatExtremes(r,u),L=P.min,z=P.max,O,B;for(B=0;B<L.length;B++)O=L[B].val-D(L[B])/F,O>R&&O<v&&(v=O);for(B=0;B<z.length;B++)O=z[B].val+I(z[B])/F,O<E&&O>A&&(A=O);var V=(A-v)/(2*p);c/=V,v=u.l2r(v),A=u.l2r(A),u.range=u._input.range=h<w?[v,A]:[A,v]}nR(u,c,t)}}}};yc.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};yc.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 cue(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 nR(e,r,t){var n=e._inputDomain,a=sue[e.constraintoward],o=n[0]+(n[1]-n[0])*a;let i=r,l=cue(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 Ld=xe(Ln=>{"use strict";var Ed=st(),pa=Cr(),Ja=Cn(),ci=rr(),J5=Qn(),$5=ld(),bc=Zr(),xf=kt(),iR=Q0(),fR=G5(),xc=Bt(),Yo=(Kn(),or($n)),cR=mc(),vue=cR.enforce,hue=cR.clean,oR=af().doAutoRange,vR="start",due="middle",hR="end",pue=(Sn(),or(kn)).zindexSeparator;Ln.layoutStyles=function(e){return ci.syncOrAsync([Ja.doAutoMargin,yue],e)};function gue(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 yue(e){var r=e._fullLayout,t=r._size,n=t.p,a=xc.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(xf.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Ln.drawMainTitle(e),fR.manage(e),!r._has("cartesian"))return Ja.previousPromises(e);function c(j,te,ue){var ee=j._lw/2;if(j._id.charAt(0)==="x"){if(te){if(ue==="top")return te._offset-n-ee}else return t.t+t.h*(1-(j.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*(j.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=xf.crispRound(e,u.linewidth,1),u._mainLinePosition=c(u,g,u.side),u._mainMirrorPosition=u.mirror&&g?c(u,g,Yo.OPPOSITE_SIDE[u.side]):null}var b=[],d=[],_=[],T=bc.opacity(r.paper_bgcolor)===1&&bc.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(gue(m,k,_)&&i.indexOf(pue)===-1){var x=S.node(),M=l.bg=ci.ensureSingle(S,"rect","bg");x.insertBefore(M.node(),x.childNodes[0]),d.push(i)}else S.select("rect.bg").remove(),_.push([m,k]),T||(b.push(i),d.push(i))}var h=r._bgLayer.selectAll(".bg").data(b);for(h.enter().append("rect").classed("bg",!0),h.exit().remove(),h.each(function(j){r._plots[j].bg=Ed.select(this)}),o=0;o<d.length;o++)l=r._plots[d[o]],s=l.xaxis,f=l.yaxis,l.bg&&s._offset!==void 0&&f._offset!==void 0&&l.bg.call(xf.setRect,s._offset-n,f._offset-n,s._length+2*n,f._length+2*n).call(bc.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=ci.ensureSingleById(r._clips,"clipPath",w,function(j){j.classed("plotclip",!0).append("rect")});l.clipRect=y.select("rect").attr({width:s._length,height:f._length}),xf.setTranslate(l.plot,s._offset,f._offset);var v,A;l._hasClipOnAxisFalse?(v=null,A=w):(v=w,A=null),xf.setClipUrl(l.plot,v,e),l.layerClipId=A}var p,R,E,D,I,F,P,L,z,O,B,V,J;function Q(j){return"M"+p+","+j+"H"+R}function G(j){return"M"+s._offset+","+j+"h"+s._length}function q(j){return"M"+j+","+L+"V"+P}function Z(j){return f._shift!==void 0&&(j+=f._shift),"M"+j+","+f._offset+"v"+f._length}function re(j,te,ue){if(!j.showline||i!==j._mainSubplot)return"";if(!j._anchorAxis)return ue(j._mainLinePosition);var ee=te(j._mainLinePosition);return j.mirror&&(ee+=te(j._mainMirrorPosition)),ee}for(i in r._plots){l=r._plots[i],s=l.xaxis,f=l.yaxis;var $="M0,0";lR(s,i)&&(I=Cd(s,"left",f,a),p=s._offset-(I?n+I:0),F=Cd(s,"right",f,a),R=s._offset+s._length+(F?n+F:0),E=c(s,f,"bottom"),D=c(s,f,"top"),J=!s._anchorAxis||i!==s._mainSubplot,J&&(s.mirror==="allticks"||s.mirror==="all")&&(s._linepositions[i]=[E,D]),$=re(s,Q,G),J&&s.showline&&(s.mirror==="all"||s.mirror==="allticks")&&($+=Q(E)+Q(D)),l.xlines.style("stroke-width",s._lw+"px").call(bc.stroke,s.showline?s.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",$);var ie="M0,0";lR(f,i)&&(B=Cd(f,"bottom",s,a),P=f._offset+f._length+(B?n:0),V=Cd(f,"top",s,a),L=f._offset-(V?n:0),z=c(f,s,"left"),O=c(f,s,"right"),J=!f._anchorAxis||i!==f._mainSubplot,J&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[i]=[z,O]),ie=re(f,q,Z),J&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(ie+=q(z)+q(O)),l.ylines.style("stroke-width",f._lw+"px").call(bc.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ie)}return xc.makeClipPaths(e),Ja.previousPromises(e)}function lR(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function sR(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=Yo.FROM_BL[r];return t.side===r?n.domain[a]===e.domain[a]:t.mirror&&n.domain[1-a]===e.domain[1-a]}function Cd(e,r,t,n){if(sR(e,r,t))return t._lw;for(var a=0;a<n.length;a++){var o=n[a];if(o._mainAxis===t._mainAxis&&sR(e,r,o))return o._lw}return 0}Ln.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,n=Tue(t),a=Aue(t),o=Mue(t,a),i=wue(t,n);if(iR.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=Ed.select(e).selectAll(".gtitle"),u=xf.bBox(Ed.select(e).selectAll(".g-gtitle").node()).height,s=xue(e,r,u);if(s>0){_ue(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:uR(r.yanchor)}).call(J5.positionText,i,o);var f=(r.text.match(J5.BR_TAG_ALL)||[]).length;if(f){var c=Yo.LINE_SPACING*f+Yo.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=Ed.select(e).selectAll(".gtitle-subtitle");if(g.node()){var b=l.node().getBBox(),d=b.y+b.height,_=d+iR.SUBTITLE_PADDING_EM*r.subtitle.font.size;g.attr({x:i,y:_,"text-anchor":n,dy:uR(r.yanchor)}).call(J5.positionText,i,_)}}}};function mue(e,r,t,n,a){var o=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,i=ci.isTopAnchor(r)?n:n-a,l=t==="b"?o-i:i;return ci.isTopAnchor(r)&&t==="t"||ci.isBottomAnchor(r)&&t==="b"?!1:l<a}function bue(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 xue(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=bue(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function _ue(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"&&mue(e,o,i,r,n)?l[i]=t:o.yref==="container"&&(u[i]=t,e._fullLayout._reservedMargin[a]=u),Ja.allowAutoMargin(e,a),Ja.autoMargin(e,a,l)}function wue(e,r){var t=e.title,n=e._size,a=0;return r===vR?a=t.pad.l:r===hR&&(a=-t.pad.r),t.xref==="paper"?n.l+n.w*t.x+a:e.width*t.x+a}function Mue(e,r){var t=e.title,n=e._size,a=0;return r==="0em"||!r?a=-t.pad.b:r===Yo.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 uR(e){return e==="top"?Yo.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Yo.MID_SHIFT+"em"}function Tue(e){var r=e.title,t=due;return ci.isRightAnchor(r)?t=hR:ci.isLeftAnchor(r)&&(t=vR),t}function Aue(e){var r=e.title,t="0em";return ci.isTopAnchor(r)?t=Yo.CAP_SHIFT+"em":ci.isMiddleAnchor(r)&&(t=Yo.MID_SHIFT+"em"),t}Ln.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),Ln.redrawReglTraces(e)}return Ja.style(e),pa.getComponentMethod("legend","draw")(e),Ja.previousPromises(e)};Ln.doColorBars=function(e){return pa.getComponentMethod("colorbar","draw")(e),Ja.previousPromises(e)};Ln.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,pa.call("_doPlot",e,"",r)};Ln.doLegend=function(e){return pa.getComponentMethod("legend","draw")(e),Ja.previousPromises(e)};Ln.doTicksRelayout=function(e){var r=xc.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(pa.subplotsRegistry.splom.updateGrid(e),$5(e),Ln.redrawReglTraces(e)),Ln.drawMainTitle(e),Promise.resolve(r).then(function(){return Ja.previousPromises(e)})};Ln.doModeBar=function(e){var r=e._fullLayout;fR.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var n=r._basePlotModules[t].updateFx;n&&n(e)}return Ja.previousPromises(e)};Ln.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)}};Ln.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 Ln.redrawReglTraces(e),Ja.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,Ja.previousPromises(e)};Ln.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"?ci.pushUnique(n,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&ci.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()}};Ln.doAutoRangeAndConstraints=function(e){for(var r=xc.list(e,"",!0),t,n={},a=0;a<r.length;a++)if(t=r[a],!n[t._id]){n[t._id]=1,hue(e,t),oR(e,t);var o=t._matchGroup;if(o)for(var i in o){var l=xc.getFromId(e,i);oR(e,l,t.range),n[i]=1}}vue(e)};Ln.finalDraw=function(e){pa.getComponentMethod("rangeslider","draw")(e),pa.getComponentMethod("rangeselector","draw")(e)};Ln.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((C_e,mR)=>{"use strict";var kue=Pl().readPaths,Sue=md(),dR=xl().clearOutlineControllers,K5=Zr(),pR=kt(),Cue=At().arrayEditor,gR=Fl(),Eue=gR.getPathString;mR.exports={draw:Rd,drawOne:yR,activateLastSelection:Due};function Rd(e){var r=e._fullLayout;dR(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++)yR(e,a)}function Dd(e){return e._context.editSelection}function yR(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=gR.makeSelectionsOptionsAndPlotinfo(e,r),n=t.options,a=t.plotinfo;if(!n._input)return;o(e._fullLayout._selectionLayer);function o(i){var l=Eue(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 d=Dd(e)&&e._fullLayout._activeSelectionIndex===r;d&&(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(pR.dashLine,T?"solid":b,T?4+g:g);if(Lue(m,e,n),d){var k=Cue(e.layout,"selections",n);m.style({cursor:"move"});var S={element:m.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},x=kue(l,e);Sue(x,m,S)}else m.style("pointer-events",T?"all":"none");_[T]=m}var M=_[0],h=_[1];h.node().addEventListener("click",function(){return Rue(e,M)})}}function Lue(e,r,t){var n=t.xref+t.yref;pR.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function Rue(e,r){if(Dd(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,Rd(e)}}}function Due(e){if(Dd(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Q5,Rd(e)}}function Q5(e){if(Dd(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(dR(e),delete e._fullLayout._activeSelectionIndex,Rd(e))}}});var xR=xe((E_e,bR)=>{function Pue(){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}bR.exports=Pue});var wR=xe((L_e,_R)=>{function Iue(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,d=(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,d<=-e?_.alongB=-2:d<e?_.alongB=-1:d-1<=-e?_.alongB=0:d-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}_R.exports=Iue});var TR=xe((R_e,MR)=>{var zue={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}};MR.exports=zue});var kR=xe((D_e,AR)=>{var _c=TR();function Fue(e,r,t){function n(d,_){return{id:t?t.segmentId():-1,start:d,end:_,myFill:{above:null,below:null},otherFill:null}}function a(d,_,T){return{id:t?t.segmentId():-1,start:d,end:_,myFill:{above:T.myFill.above,below:T.myFill.below},otherFill:null}}var o=_c.create();function i(d,_,T,m,k,S){var x=r.pointsCompare(_,k);return x!==0?x:r.pointsSame(T,S)?0:d!==m?d?1:-1:r.pointAboveOrOnLine(T,m?k:S,m?S:k)?1:-1}function l(d,_){o.insertBefore(d,function(T){var m=i(d.isStart,d.pt,_,T.isStart,T.pt,T.other.pt);return m<0})}function u(d,_){var T=_c.node({isStart:!0,pt:d.start,seg:d,primary:_,other:null,status:null});return l(T,d.end),T}function s(d,_,T){var m=_c.node({isStart:!1,pt:_.end,seg:_,primary:T,other:d,status:null});d.other=m,l(m,d.pt)}function f(d,_){var T=u(d,_);return s(T,d,_),T}function c(d,_){t&&t.segmentChop(d.seg,_),d.other.remove(),d.seg.end=_,d.other.pt=_,l(d.other,d.pt)}function g(d,_){var T=a(_,d.seg.end,d.seg);return c(d,_),f(T,d.primary)}function b(d,_){var T=_c.create();function m(I,F){var P=I.seg.start,L=I.seg.end,z=F.seg.start,O=F.seg.end;return r.pointsCollinear(P,z,O)?r.pointsCollinear(L,z,O)||r.pointAboveOrOnLine(L,z,O)?1:-1:r.pointAboveOrOnLine(P,z,O)?1:-1}function k(I){return T.findTransition(function(F){var P=m(I,F.ev);return P>0})}function S(I,F){var P=I.seg,L=F.seg,z=P.start,O=P.end,B=L.start,V=L.end;t&&t.checkIntersection(P,L);var J=r.linesIntersect(z,O,B,V);if(J===!1){if(!r.pointsCollinear(z,O,B)||r.pointsSame(z,V)||r.pointsSame(O,B))return!1;var Q=r.pointsSame(z,B),G=r.pointsSame(O,V);if(Q&&G)return F;var q=!Q&&r.pointBetween(z,B,V),Z=!G&&r.pointBetween(O,B,V);if(Q)return Z?g(F,O):g(I,V),F;q&&(G||(Z?g(F,O):g(I,V)),g(F,z))}else J.alongA===0&&(J.alongB===-1?g(I,B):J.alongB===0?g(I,J.pt):J.alongB===1&&g(I,V)),J.alongB===0&&(J.alongA===-1?g(F,z):J.alongA===0?g(F,J.pt):J.alongA===1&&g(F,O));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 F=S(M,w);if(F)return F}return y?S(M,y):!1};var D=I;t&&t.segmentNew(M.seg,M.primary);var h=k(M),w=h.before?h.before.ev:null,y=h.after?h.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=d,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?_:d,M.seg.otherFill={above:p,below:p}}t&&t.status(M.seg,w?w.seg:!1,y?y.seg:!1),M.other.status=h.insert(_c.node({ev:M}))}else{var R=M.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(T.exists(R.prev)&&T.exists(R.next)&&S(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.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(d){for(var _,T=d[d.length-1],m=0;m<d.length;m++){_=T,T=d[m];var k=r.pointsCompare(_,T);k!==0&&f(n(k<0?_:T,k<0?T:_),!0)}},calculate:function(d){return b(d,!1)}}:{calculate:function(d,_,T,m){return d.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)}}}AR.exports=Fue});var CR=xe((P_e,SR)=>{function Nue(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(D,I,F){return f.index=D,f.matches_head=I,f.matches_pt1=F,f===u?(f=s,!1):(f=null,!0)}for(var g=0;g<n.length;g++){var b=n[g],d=b[0],_=b[1],T=b[b.length-1],m=b[b.length-2];if(r.pointsSame(d,i)){if(c(g,!0,!0))break}else if(r.pointsSame(d,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],h=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(h,M,S)&&(x?(t&&t.chainRemoveHead(u.index,S),b.shift()):(t&&t.chainRemoveTail(u.index,S),b.pop()),M=h),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(D){t&&t.chainReverse(D),n[D].reverse()}function A(D,I){var F=n[D],P=n[I],L=F[F.length-1],z=F[F.length-2],O=P[0],B=P[1];r.pointsCollinear(z,L,O)&&(t&&t.chainRemoveTail(D,L),F.pop(),L=z),r.pointsCollinear(L,O,B)&&(t&&t.chainRemoveHead(I,O),P.shift()),t&&t.chainJoin(D,I),n[D]=F.concat(P),n.splice(I,1)}var p=u.index,R=s.index;t&&t.chainConnect(p,R);var E=n[p].length<n[R].length;u.matches_head?s.matches_head?E?(v(p),A(p,R)):(v(R),A(R,p)):A(R,p):s.matches_head?A(p,R):E?(v(p),A(R,p)):(v(R),A(p,R))}),a}SR.exports=Nue});var LR=xe((I_e,ER)=>{function wc(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 que={union:function(e,r){return wc(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return wc(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return wc(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return wc(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return wc(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};ER.exports=que});var DR=xe((z_e,RR)=>{var Oue={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,d){return r.pointInsideRegion([(b[0][0]+b[1][0])*.5,(b[0][1]+b[1][1])*.5],d)}function a(b){return{region:b,children:[]}}var o=a(null);function i(b,d){for(var _=0;_<b.children.length;_++){var T=b.children[_];if(n(d,T.region)){i(T,d);return}}for(var m=a(d),_=0;_<b.children.length;_++){var T=b.children[_];n(T.region,d)&&(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,d){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 h=_<0;return h!==d&&k.reverse(),k.push([k[0][0],k[0][1]]),k}var f=[];function c(b){var d=[s(b.region,!1)];f.push(d);for(var _=0;_<b.children.length;_++)d.push(g(b.children[_]))}function g(b){for(var d=0;d<b.children.length;d++)c(b.children[d]);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}}};RR.exports=Oue});var FR=xe((F_e,zR)=>{var Bue=xR(),Uue=wR(),PR=kR(),Hue=CR(),Mc=LR(),IR=DR(),vi=!1,Tc=Uue(),Ia;Ia={buildLog:function(e){return e===!0?vi=Bue():e===!1&&(vi=!1),vi===!1?!1:vi.list},epsilon:function(e){return Tc.epsilon(e)},segments:function(e){var r=PR(!0,Tc,vi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=PR(!1,Tc,vi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Mc.union(e.combined,vi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Mc.intersect(e.combined,vi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Mc.difference(e.combined,vi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Mc.differenceRev(e.combined,vi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Mc.xor(e.combined,vi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Hue(e.segments,Tc,vi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return IR.toPolygon(Ia,e)},polygonToGeoJSON:function(e){return IR.fromPolygon(Ia,Tc,e)},union:function(e,r){return Ac(e,r,Ia.selectUnion)},intersect:function(e,r){return Ac(e,r,Ia.selectIntersect)},difference:function(e,r){return Ac(e,r,Ia.selectDifference)},differenceRev:function(e,r){return Ac(e,r,Ia.selectDifferenceRev)},xor:function(e,r){return Ac(e,r,Ia.selectXor)}};function Ac(e,r,t){var n=Ia.segments(e),a=Ia.segments(r),o=Ia.combine(n,a),i=t(o);return Ia.polygon(i)}typeof window=="object"&&(window.PolyBool=Ia);zR.exports=Ia});var qR=xe((N_e,NR)=>{NR.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],d=t[f+n][1],_=g>i!=d>i&&o<(b-c)*(i-g)/(d-g)+c;_&&(l=!l)}return l}});var rb=xe((q_e,OR)=>{"use strict";var eb=Dh().dot,Pd=(Mn(),or(In)).BADNUM,Id=OR.exports={};Id.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(d){return d[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(d){return d[1]===t[0][1]}));function f(d,_){var T=d[0],m=d[1];return!(T===Pd||T<n||T>a||m===Pd||m<o||m>i||_&&s(d))}function c(d,_){var T=d[0],m=d[1];if(T===Pd||T<n||T>a||m===Pd||m<o||m>i)return!1;var k=t.length,S=t[0][0],x=t[0][1],M=0,h,w,y,v,A;for(h=1;h<k;h++)if(w=S,y=x,S=t[h][0],x=t[h][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!(h===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}};Id.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};Id.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||Id.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 BR={};Ot(BR,{BENDPX:()=>Vue,MINSELECT:()=>Gue,SELECTDELAY:()=>Yue,SELECTID:()=>Xue});var Vue,Gue,Yue,Xue,UR=qt(()=>{"use strict";Vue=1.5,Gue=12,Yue=100,Xue="-select"});var uD=xe((O_e,sD)=>{"use strict";var HR=FR(),Wue=qR(),Cc=Cr(),Zue=kt().dashStyle,kc=Zr(),Jue=mo(),$ue=fo().makeEventData,Pc=df(),Kue=Pc.freeMode,Que=Pc.rectMode,Ec=Pc.drawMode,ib=Pc.openMode,ob=Pc.selectMode,VR=Fl(),GR=(dc(),or(hc)),JR=md(),$R=xl().clearOutline,KR=Pl(),tb=KR.handleEllipse,jue=KR.readPaths,efe=pd().newShapes,rfe=S5(),tfe=j5().activateLastSelection,Fd=rr(),nfe=Fd.sorterAsc,QR=rb(),Sc=Xh(),hi=xn().getFromId,afe=ld(),ife=Ld().redrawReglTraces,Nd=(UR(),or(BR)),Mo=Nd.MINSELECT,ofe=QR.filter,lb=QR.tester,sb=cd(),YR=sb.p2r,lfe=sb.axValue,sfe=sb.getTransform;function ub(e){return e.subplot!==void 0}function ufe(e,r,t,n,a){var o=!ub(n),i=Kue(a),l=Que(a),u=ib(a),s=Ec(a),f=ob(a),c=a==="drawline",g=a==="drawcircle",b=c||g,d=n.gd,_=d._fullLayout,T=f&&_.newselection.mode==="immediate"&&o,m=_._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,x=sfe(S),M=r-k.left,h=t-k.top;_._calcInverseTransform(d);var w=Fd.apply3DTransform(_._invTransform)(M,h);M=w[0],h=w[1];var y=_._invScaleX,v=_._invScaleY,A=M,p=h,R="M"+M+","+h,E=n.xaxes[0],D=n.yaxes[0],I=E._length,F=D._length,P=e.altKey&&!(Ec(a)&&u),L,z,O,B,V,J,Q;eD(e,d,n),i&&(L=ofe([[M,h]],Nd.BENDPX));var G=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?kc.contrast(d._fullLayout.plot_bgcolor):"#7f7f7f");G.enter().append("path").attr("class","select-outline select-outline-"+S.id).style({opacity:s?q.opacity/2:1,"stroke-dasharray":Zue(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(kc.stroke,re).call(kc.fill,Z).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",x).attr("d",R+"Z");var $=m.append("path").attr("class","zoombox-corners").style({fill:kc.background,stroke:kc.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(s&&n.hasText){var ie=m.select(".label-temp");ie.empty()&&(ie=m.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var j=_._uid+Nd.SELECTID,te=[],ue=qd(d,n.xaxes,n.yaxes,n.subplot);T&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var ae=E._id,fe=D._id;iD(d,ae,fe,ue);for(var we=(d.layout||{}).selections||[],Me=[],ke=!1,ge=0;ge<we.length;ge++){var Ee=_.selections[ge];!Ee||Ee.xref!==ae||Ee.yref!==fe?Me.push(we[ge]):ke=!0}ke&&(d._fullLayout._noEmitSelectedAtStart=!0,Cc.call("_guiRelayout",d,{selections:Me}))}});var ee=Mfe(n);n.moveFn=function(ae,fe){n._clearSubplotSelections&&(n._clearSubplotSelections(),n._clearSubplotSelections=void 0),A=Math.max(0,Math.min(I,y*ae+M)),p=Math.max(0,Math.min(F,v*fe+h));var we=Math.abs(A-M),Me=Math.abs(p-h);if(l){var ke,ge,Ee;if(f){var Le=_.selectdirection;switch(Le==="any"?Me<Math.min(we*.6,Mo)?ke="h":we<Math.min(Me*.6,Mo)?ke="v":ke="d":ke=Le,ke){case"h":ge=g?F/2:0,Ee=F;break;case"v":ge=g?I/2:0,Ee=I;break}}if(s)switch(_.newshape.drawdirection){case"vertical":ke="h",ge=g?F/2:0,Ee=F;break;case"horizontal":ke="v",ge=g?I/2:0,Ee=I;break;case"ortho":we<Me?(ke="h",ge=h,Ee=p):(ke="v",ge=M,Ee=A);break;default:ke="d"}ke==="h"?(B=b?tb(g,[A,ge],[A,Ee]):[[M,ge],[M,Ee],[A,Ee],[A,ge]],B.xmin=b?A:Math.min(M,A),B.xmax=b?A:Math.max(M,A),B.ymin=Math.min(ge,Ee),B.ymax=Math.max(ge,Ee),$.attr("d","M"+B.xmin+","+(h-Mo)+"h-4v"+2*Mo+"h4ZM"+(B.xmax-1)+","+(h-Mo)+"h4v"+2*Mo+"h-4Z")):ke==="v"?(B=b?tb(g,[ge,p],[Ee,p]):[[ge,h],[ge,p],[Ee,p],[Ee,h]],B.xmin=Math.min(ge,Ee),B.xmax=Math.max(ge,Ee),B.ymin=b?p:Math.min(h,p),B.ymax=b?p:Math.max(h,p),$.attr("d","M"+(M-Mo)+","+B.ymin+"v-4h"+2*Mo+"v4ZM"+(M-Mo)+","+(B.ymax-1)+"v4h"+2*Mo+"v-4Z")):ke==="d"&&(B=b?tb(g,[M,h],[A,p]):[[M,h],[M,p],[A,p],[A,h]],B.xmin=Math.min(M,A),B.xmax=Math.max(M,A),B.ymin=Math.min(h,p),B.ymax=Math.max(h,p),$.attr("d","M0,0Z"))}else i&&(L.addPt([A,p]),B=L.filtered);if(n.selectionDefs&&n.selectionDefs.length?(O=rD(n.mergedPolygons,B,P),B.subtract=P,z=fb(n.selectionDefs.concat([B]))):(O=[B],z=lb(B)),JR(nD(O,u),G,n),f){var se=ab(d,!1),X=se.eventData?se.eventData.points.slice():[];se=ab(d,!1,z,ue,n),z=se.selectionTesters,Q=se.eventData;var K;L?K=L.filtered:K=oD(O),Sc.throttle(j,Nd.SELECTDELAY,function(){te=aD(z,ue);for(var ye=te.slice(),oe=0;oe<X.length;oe++){for(var he=X[oe],pe=!1,me=0;me<ye.length;me++)if(ye[me].curveNumber===he.curveNumber&&ye[me].pointNumber===he.pointNumber){pe=!0;break}pe||ye.push(he)}ye.length&&(Q||(Q={}),Q.points=ye),ee(Q,K),Tfe(d,Q)})}},n.clickFn=function(ae,fe){if($.remove(),d._fullLayout._activeShapeIndex>=0){d._fullLayout._deactivateShape(d);return}if(!s){var we=_.clickmode;Sc.done(j).then(function(){if(Sc.clear(j),ae===2){for(G.remove(),V=0;V<ue.length;V++)J=ue[V],J._module.selectPoints(J,!1);if(Rc(d,ue),Lc(n),vb(d),ue.length){var Me=ue[0].xaxis,ke=ue[0].yaxis;if(Me&&ke){for(var ge=[],Ee=d._fullLayout.selections,Le=0;Le<Ee.length;Le++){var se=Ee[Le];se&&(se.xref!==Me._id||se.yref!==ke._id)&&ge.push(se)}ge.length<Ee.length&&(d._fullLayout._noEmitSelectedAtStart=!0,Cc.call("_guiRelayout",d,{selections:ge}))}}}else we.indexOf("select")>-1&&jR(fe,d,n.xaxes,n.yaxes,n.subplot,n,G),we==="event"&&Dc(d,void 0);Jue.click(d,fe,S.id)}).catch(Fd.error)}},n.doneFn=function(){$.remove(),Sc.done(j).then(function(){Sc.clear(j),!T&&B&&n.selectionDefs&&(B.subtract=P,n.selectionDefs.push(B),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,O)),(T||s)&&Lc(n,T),n.doneFnCompleted&&n.doneFnCompleted(te),f&&Dc(d,Q)}).catch(Fd.error)}}function jR(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,d,_,T,m,k,S,x,M;if(dfe(l)){eD(e,r,o),g=qd(r,t,n,a);var h=pfe(l,g),w=h.pointNumbers.length>0;if(w?gfe(g,h):yfe(g)&&(k=WR(h))){for(i&&i.remove(),M=0;M<g.length;M++)b=g[M],b._module.selectPoints(b,!1);Rc(r,g),Lc(o),f&&vb(r)}else{S=e.shiftKey&&(k!==void 0?k:WR(h)),d=ffe(h.pointNumber,h.searchInfo,S);var y=o.selectionDefs.concat([d]);for(_=fb(y,_),M=0;M<g.length;M++)if(T=g[M]._module.selectPoints(g[M],_),m=tD(T,g[M]),c.length)for(var v=0;v<m.length;v++)c.push(m[v]);else c=m;if(x={points:c},Rc(r,g,x),d&&o&&o.selectionDefs.push(d),i){var A=o.mergedPolygons,p=ib(o.dragmode);JR(nD(A,p),i,o)}f&&Dc(r,x)}}}function ffe(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function nb(e){return"pointNumber"in e&&"searchInfo"in e}function cfe(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(cfe(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,d=0;d<r.length;d++)r[d].contains(s,f,c,g)&&(b=!r[d].subtract);return b}return{xmin:t,xmax:n,ymin:a,ymax:o,pts:[],contains:u,isRect:!1,degenerate:!1}}function eD(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)&&!(Ec(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)&&Lc(t),i||($R(r),n._lastSelectedSubplot=a.id)}function vfe(e){return e._fullLayout._activeShapeIndex>=0}function hfe(e){return e._fullLayout._activeSelectionIndex>=0}function Lc(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;vfe(a)&&a._fullLayout._deactivateShape(a),hfe(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=Ec(t),u=ob(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=efe(s,e)),f&&Cc.call("_guiRelayout",a,{shapes:f});var c;u&&!ub(e)&&(c=rfe(s,e)),c&&(a._fullLayout._noEmitSelectedAtStart=!0,Cc.call("_guiRelayout",a,{selections:c}).then(function(){r&&tfe(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function XR(e){return e._id}function qd(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(XR),i=t.map(XR),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(zd(u._module,l,r[0],t[0]));else if(u.type==="splom"){if(u._xaxes[o[0]]&&u._yaxes[i[0]]){var f=zd(u._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[u.uid],a.push(f)}}else if(u.type==="sankey"){var c=zd(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(zd(u._module,l,hi(e,u.xaxis),hi(e,u.yaxis)))}return a}function zd(e,r,t,n){return{_module:e,cd:r,xaxis:t,yaxis:n}}function dfe(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function pfe(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 WR(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 gfe(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 yfe(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 Rc(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;mfe(e,r)}function mfe(e,r){for(var t=!1,n=0;n<r.length;n++){var a=r[n],o=a.cd;Cc.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&&(afe(e),ife(e))}function rD(e,r,t){for(var n=t?HR.difference:HR.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 tD(e,r){if(Array.isArray(e))for(var t=r.cd,n=r.cd[0].trace,a=0;a<e.length;a++)e[a]=$ue(e[a],n,t);return e}function nD(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 aD(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=tD(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=ZR(e),g=e._fullLayout;if(i){var b=g._zoomlayer,d=g.dragmode,_=Ec(d),T=ob(d);if(_||T){var m=hi(e,l,"x"),k=hi(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"),h=jue(M,e,i),w=[],y=0;y<h.length;y++){for(var v=h[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 R=l&&u?[l+u]:g._subplots.cartesian;bfe(e);for(var E={},D=0;D<R.length;D++){var I=R[D],F=I.indexOf("y"),P=I.slice(0,F),L=I.slice(F),z=l&&u?t:void 0;if(z=_fe(c,P,L,z),z){var O=n;if(!o){var B=hi(e,P,"x"),V=hi(e,L,"y");O=qd(e,[B],[V],I);for(var J=0;J<O.length;J++){var Q=O[J],G=Q.cd[0],q=G.trace;if(Q._module.name==="scattergl"&&!G.t.xpx){var Z=q.x,re=q.y,$=q._length;G.t.xpx=[],G.t.ypx=[];for(var ie=0;ie<$;ie++)G.t.xpx[ie]=B.c2p(Z[ie]),G.t.ypx[ie]=V.c2p(re[ie])}Q._module.name==="splom"&&(E[q.uid]||(E[q.uid]=!0))}}var j=aD(z,O);s=s.concat(j),f=f.concat(O)}}var te={points:s};Rc(e,f,te);var ue=g.clickmode,ee=ue.indexOf("event")>-1&&r;if(!i&&r){var ae=ZR(e,!0);if(ae.length){var fe=ae[0].xref,we=ae[0].yref;if(fe&&we){var Me=oD(ae),ke=lD([hi(e,fe,"x"),hi(e,we,"y")]);ke(te,Me)}}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,xfe(l,u,f)||iD(e,l,u,n),ee&&(te.points.length?Dc(e,te):vb(e)),g._deselect=!1}return{eventData:te,selectionTesters:t}}function bfe(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 xfe(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 iD(e,r,t,n){n=qd(e,[hi(e,r,"x")],[hi(e,t,"y")],r+t);for(var a=0;a<n.length;a++){var o=n[a];o._module.selectPoints(o,!1)}Rc(e,n)}function _fe(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=rD(a,i,l),n=fb(a)}else a=[i],n=lb(i)}return n}function ZR(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=hi(e,u,"x"),c=hi(e,s,"y"),g,b,d,_,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),d=Math.min(S,x),_=Math.max(S,x),T.xmin=g,T.xmax=b,T.ymin=d,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"),h=[],w=0;w<M.length;w++){var y=M[w];if(y){y+="Z";var v=VR.extractPathCoords(y,GR.paramIsX,"raw"),A=VR.extractPathCoords(y,GR.paramIsY,"raw");g=1/0,b=-1/0,d=1/0,_=-1/0,T=[];for(var p=0;p<v.length;p++){var R=Nl(f,v[p]),E=Nl(c,A[p]);T.push([R,E]),g=Math.min(R,g),b=Math.max(R,b),d=Math.min(E,d),_=Math.max(E,_)}T.xmin=g,T.xmax=b,T.ymin=d,T.ymax=_,T.xref=u,T.yref=s,T.subtract=cb(T,h),h.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(Wue(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 oD(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 wfe(t)}function wfe(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 lD(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]=[YR(i,s),YR(i,f)].sort(nfe))}else a||(a={}),a[l]=t.map(lfe(i))}n&&(r.range=n),a&&(r.lassoPoints=a)}}function Mfe(e){var r=e.plotinfo;return r.fillRangeItems||lD(e.xaxes.concat(e.yaxes))}function Tfe(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)}sD.exports={reselect:ab,prepSelect:ufe,clearOutline:$R,clearSelectionsCache:Lc,selectOnClick:jR}});var hb=xe((B_e,fD)=>{"use strict";fD.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 Ic={};Ot(Ic,{axisRefDescription:()=>Afe});function Afe(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 zc=qt(()=>{"use strict"});var _f=xe((H_e,hD)=>{"use strict";var cD=hb(),vD=Wn(),Od=(Sn(),or(kn)),kfe=At().templatedArray,U_e=(zc(),or(Ic));hD.exports=kfe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:vD({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:cD.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:cD.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",Od.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Od.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Od.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",Od.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:vD({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Bd={};Ot(Bd,{PTS_LINESONLY:()=>Sfe,eventDataKeys:()=>Rfe,maxScreensAway:()=>Lfe,minTolerance:()=>Cfe,toleranceGrowth:()=>Efe});var Sfe,Cfe,Efe,Lfe,Rfe,Ud=qt(()=>{"use strict";Sfe=20,Cfe=.2,Efe=10,Lfe=20,Rfe=[]});var pD=xe((V_e,dD)=>{"use strict";dD.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Zs=xe((G_e,MD)=>{"use strict";var gD=Oo().axisHoverFormat,{hovertemplateAttrs:Dfe,texttemplateAttrs:Pfe,templatefallbackAttrs:yD}=Ei(),mD=Pi(),Ife=Wn(),bD=fl().dash,zfe=fl().pattern,Ffe=kt(),Nfe=(Ud(),or(Bd)),Fc=Rt().extendFlat,qfe=pD();function xD(e){return{valType:"any",dflt:0,editType:"calc"}}function _D(e){return{valType:"any",editType:"calc"}}function wD(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}MD.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:xD("x"),yperiod:xD("y"),xperiod0:_D("x0"),yperiod0:_D("y0"),xperiodalignment:wD("x"),yperiodalignment:wD("y"),xhoverformat:gD("x"),yhoverformat:gD("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:Pfe(),texttemplatefallback:yD({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:Dfe({},{keys:Nfe.eventDataKeys}),hovertemplatefallback:yD(),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:Fc({},bD,{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:qfe(!0),fillgradient:Fc({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:zfe,marker:Fc({symbol:{valType:"enumerated",values:Ffe.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:Fc({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Fc({},bD,{arrayOk:!0}),editType:"calc"},mD("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"},mD("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:Ife({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var db=xe((X_e,kD)=>{"use strict";var TD=_f(),AD=Zs().line,Ofe=fl().dash,Hd=Rt().extendFlat,Bfe=ua().overrideAll,Ufe=At().templatedArray,Y_e=(zc(),or(Ic));kD.exports=Bfe(Ufe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Hd({},TD.xref,{}),yref:Hd({},TD.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:AD.color,width:Hd({},AD.width,{min:1,dflt:1}),dash:Hd({},Ofe,{dflt:"dot"})}}),"arraydraw","from-root")});var LD=xe((W_e,ED)=>{"use strict";var SD=rr(),Vd=Bt(),Hfe=Ii(),Vfe=db(),CD=Fl();ED.exports=function(r,t){Hfe(r,t,{name:"selections",handleItemDefaults:Gfe});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 Gfe(e,r,t){function n(h,w){return SD.coerce(e,r,Vfe,h,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,d,_=Vd.coerceRef(e,r,c,f);if(g=Vd.getFromId(c,_),g._selectionIndices.push(r._index),d=CD.rangeToShapePosition(g),b=CD.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),Vd.coercePosition(r,c,n,_,T),Vd.coercePosition(r,c,n,_,m);var x=r[T],M=r[m];x!==void 0&&M!==void 0&&(r[T]=d(x),r[m]=d(M),e[T]=k,e[m]=S)}}l&&SD.noneOrAll(e,r,["x0","x1","y0","y1"])}});var DD=xe((Z_e,RD)=>{"use strict";RD.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 Nc=xe((J_e,zD)=>{"use strict";var Yfe=Cr(),PD=rr(),ID=xn();zD.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=Yfe.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 d=o[b];if(PD.isPlainObject(d)){var _=ID.cleanId(d.xref,"x",!1),T=ID.cleanId(d.yref,"y",!1),m=l.x.test(_),k=l.y.test(T);if(m||k){g||PD.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 wf=xe(($_e,ND)=>{"use strict";var FD=j5(),qc=uD();ND.exports={moduleType:"component",name:"selections",layoutAttributes:db(),supplyLayoutDefaults:LD(),supplyDrawNewSelectionDefaults:DD(),includeBasePlot:Nc()("selections"),draw:FD.draw,drawOne:FD.drawOne,reselect:qc.reselect,prepSelect:qc.prepSelect,clearOutline:qc.clearOutline,clearSelectionsCache:qc.clearSelectionsCache,selectOnClick:qc.selectOnClick}});var nP=xe((K_e,tP)=>{"use strict";var xb=st(),di=rr(),qD=di.numberFormat,Xfe=G1(),Gd=Cr(),XD=di.strTranslate,Wfe=Qn(),gb=Zr(),ql=kt(),Zfe=mo(),OD=Bt(),Jfe=Rl(),$fe=Fi(),WD=df(),Yd=WD.selectingOrDrawing,Kfe=WD.freeMode,Qfe=(Kn(),or($n)).FROM_TL,jfe=ld(),e0e=Ld().redrawReglTraces,r0e=Cn(),yb=xn().getFromId,t0e=wf().prepSelect,n0e=wf().clearOutline,a0e=wf().selectOnClick,pb=Y5(),_b=(Sn(),or(kn)),BD=_b.MINDRAG,xa=_b.MINZOOM,UD=!0;function i0e(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,d,_,T,m,k,S,x,M,h,w,y,v,A,p,R,E,D,I,F,P;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,d={},d[g._id]=g,i&&l)for(var ve=r.overlays,de=0;de<ve.length;de++){var be=ve[de].xaxis;b[be._id]=be;var Ae=ve[de].yaxis;d[Ae._id]=Ae}_=YD(b),T=YD(d),w=HD(_,l),y=HD(T,i),v=!y&&!w,h=GD(e,e._fullLayout._axisMatchGroups,b,d),M=GD(e,e._fullLayout._axisConstraintGroups,b,d,h);var Pe=M.isSubplotConstrained||h.isSubplotConstrained;A=l||Pe,p=i||Pe;var Ie=e._fullLayout;R=Ie._has("scattergl"),E=Ie._has("splom"),D=Ie._has("svg")}L();var z=s0e(y+w,e._fullLayout.dragmode,s),O=JD(r,i+l+"drag",z,t,n,a,o);if(v&&!s)return O.onmousedown=null,O.style.pointerEvents="none",O;var B={element:O,gd:e,plotinfo:r};B.prepFn=function(ve,de,be){var Ae=B.dragmode,Pe=e._fullLayout.dragmode;Pe!==Ae&&(B.dragmode=Pe),L(),F=e._fullLayout._invScaleX,P=e._fullLayout._invScaleY,v||(s?ve.shiftKey?Pe==="pan"?Pe="zoom":Yd(Pe)||(Pe="pan"):ve.ctrlKey&&(Pe="pan"):Pe="pan"),Kfe(Pe)?B.minDrag=1:B.minDrag=void 0,Yd(Pe)?(B.xaxes=_,B.yaxes=T,t0e(ve,de,be,B,Pe)):(B.clickFn=J,Yd(Ae)&&V(),v||(Pe==="zoom"?(B.moveFn=ae,B.doneFn=we,B.minDrag=1,ee(ve,de,be)):Pe==="pan"&&(B.moveFn=se,B.doneFn=oe))),e._fullLayout._redrag=function(){var Ie=e._dragdata;if(Ie&&Ie.element===O){var Ye=e._fullLayout.dragmode;Yd(Ye)||(L(),he([0,0,S,x]),B.moveFn(Ie.dx,Ie.dy))}}};function V(){B.plotinfo.selection=!1,n0e(e)}function J(ve,de){var be=B.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&&a0e(de,be,_,T,r.id,B),Ae.indexOf("event")>-1&&Zfe.click(be,de,r.id);else if(ve===1&&f){var Pe=i?g:c,Ie=i==="s"||l==="w"?0:1,Ye=Pe._name+".range["+Ie+"]",qe=o0e(Pe,Ie),Ve="left",Oe="middle";if(Pe.fixedrange)return;i?(Oe=i==="n"?"top":"bottom",Pe.side==="right"&&(Ve="right")):l==="e"&&(Ve="right"),be._context.showAxisRangeEntryBoxes&&xb.select(O).call(Wfe.makeEditable,{gd:be,immediate:!0,background:be._fullLayout.paper_bgcolor,text:String(qe),fill:Pe.tickfont?Pe.tickfont.color:"#444",horizontalAlign:Ve,verticalAlign:Oe}).on("edit",function(We){var Ge=Pe.d2r(We);Ge!==void 0&&Gd.call("_guiRelayout",be,Ye,Ge)})}}$fe.init(B);var Q,G,q,Z,re,$,ie,j,te,ue;function ee(ve,de,be){var Ae=O.getBoundingClientRect();Q=de-Ae.left,G=be-Ae.top,e._fullLayout._calcInverseTransform(e);var Pe=di.apply3DTransform(e._fullLayout._invTransform)(Q,G);Q=Pe[0],G=Pe[1],q={l:Q,r:Q,w:0,t:G,b:G,h:0},Z=e._hmpixcount?e._hmlumcount/e._hmpixcount:gb.luminosity(e._fullLayout.plot_bgcolor),re="M0,0H"+S+"V"+x+"H0V0",$=!1,ie="xy",ue=!1,j=$D(u,Z,m,k,re),te=KD(u,m,k)}function ae(ve,de){if(e._transitioningWithDuration)return!1;var be=Math.max(0,Math.min(S,F*ve+Q)),Ae=Math.max(0,Math.min(x,P*de+G)),Pe=Math.abs(be-Q),Ie=Math.abs(Ae-G);q.l=Math.min(Q,be),q.r=Math.max(Q,be),q.t=Math.min(G,Ae),q.b=Math.max(G,Ae);function Ye(){ie="",q.r=q.l,q.t=q.b,te.attr("d","M0,0Z")}if(M.isSubplotConstrained)Pe>xa||Ie>xa?(ie="xy",Pe/S>Ie/x?(Ie=Pe*x/S,G>Ae?q.t=G-Ie:q.b=G+Ie):(Pe=Ie*S/x,Q>be?q.l=Q-Pe:q.r=Q+Pe),te.attr("d",Xd(q))):Ye();else if(h.isSubplotConstrained)if(Pe>xa||Ie>xa){ie="xy";var qe=Math.min(q.l/S,(x-q.b)/x),Ve=Math.max(q.r/S,(x-q.t)/x);q.l=qe*S,q.r=Ve*S,q.b=(1-qe)*x,q.t=(1-Ve)*x,te.attr("d",Xd(q))}else Ye();else!y||Ie<Math.min(Math.max(Pe*.6,BD),xa)?Pe<BD||!w?Ye():(q.t=0,q.b=x,ie="x",te.attr("d",u0e(q,G))):!w||Pe<Math.min(Ie*.6,xa)?(q.l=0,q.r=S,ie="y",te.attr("d",f0e(q,Q))):(ie="xy",te.attr("d",Xd(q)));q.w=q.r-q.l,q.h=q.b-q.t,ie&&(ue=!0),e._dragged=ue,QD(j,te,q,re,$,Z),fe(),e.emit("plotly_relayouting",I),$=!0}function fe(){I={},(ie==="xy"||ie==="x")&&(mb(_,q.l/S,q.r/S,I,M.xaxes),X("x",I)),(ie==="xy"||ie==="y")&&(mb(T,(x-q.b)/x,(x-q.t)/x,I,M.yaxes),X("y",I))}function we(){fe(),bb(e),oe(),eP(e)}var Me=[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(V(),e._transitioningWithDuration){ve.preventDefault(),ve.stopPropagation();return}L(),clearTimeout(ke);var de=-ve.deltaY;if(isFinite(de)||(de=ve.wheelDelta/10),!isFinite(de)){di.log("Did not find wheel motion attributes: ",ve);return}e._fullLayout._replotting=!0;var be=Math.exp(-Math.min(Math.max(de,-20),20)/200),Ae=Ee.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Pe=(ve.clientX-Ae.left)/Ae.width,Ie=(Ae.bottom-ve.clientY)/Ae.height,Ye;function qe(Ve,Oe,We){if(Ve.fixedrange)return;var Ge=di.simpleMap(Ve.range,Ve.r2l),tr=Ge[0]+(Ge[1]-Ge[0])*Oe;function nr(er){return Ve.l2r(tr+(er-tr)*We)}Ve.range=Ge.map(nr)}if(A){for(l||(Pe=.5),Ye=0;Ye<_.length;Ye++)qe(_[Ye],Pe,be);X("x"),Me[2]*=be,Me[0]+=Me[2]*Pe*(1/be-1)}if(p){for(i||(Ie=.5),Ye=0;Ye<T.length;Ye++)qe(T[Ye],Ie,be);X("y"),Me[3]*=be,Me[1]+=Me[3]*(1-Ie)*(1/be-1)}he(Me),K(),e.emit("plotly_relayouting",I),ke=setTimeout(function(){e._fullLayout&&(Me=[0,0,S,x],oe())},ge),ve.preventDefault()}i.length*l.length!==1&&rP(O,Le);function se(ve,de){if(ve=ve*F,de=de*P,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,w==="ew"||y==="ns"){var be=w?-ve:0,Ae=y?-de:0;if(h.isSubplotConstrained){if(w&&y){var Pe=(ve/S-de/x)/2;ve=Pe*S,de=-Pe*x,be=-ve,Ae=-de}y?be=-Ae*S/x:Ae=-be*x/S}w&&(VD(_,ve),X("x")),y&&(VD(T,de),X("y")),he([be,Ae,S,x]),K(),e.emit("plotly_relayouting",I);return}function Ie(nr,er,Qe){for(var Ce=1-er,Fe,Ke,je=0;je<nr.length;je++){var wr=nr[je];if(!wr.fixedrange){Fe=wr,Ke=wr._rl[Ce]+(wr._rl[er]-wr._rl[Ce])/l0e(Qe/wr._length);var Jr=wr.l2r(Ke);Jr!==!1&&Jr!==void 0&&(wr.range[er]=Jr)}}return Fe._length*(Fe._rl[er]-Ke)/(Fe._rl[er]-Fe._rl[Ce])}var Ye=w==="w"==(y==="n")?1:-1;if(w&&y&&(M.isSubplotConstrained||h.isSubplotConstrained)){var qe=(ve/S+Ye*de/x)/2;ve=qe*S,de=Ye*qe*x}var Ve,Oe;if(w==="w"?ve=Ie(_,0,ve):w==="e"?ve=Ie(_,1,-ve):w||(ve=0),y==="n"?de=Ie(T,1,de):y==="s"?de=Ie(T,0,-de):y||(de=0),Ve=w==="w"?ve:0,Oe=y==="n"?de:0,M.isSubplotConstrained&&!h.isSubplotConstrained||h.isSubplotConstrained&&w&&y&&Ye>0){var We;if(h.isSubplotConstrained||!w&&y.length===1){for(We=0;We<_.length;We++)_[We].range=_[We]._r.slice(),pb(_[We],1-de/x);ve=de*S/x,Ve=ve/2}if(h.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);de=ve*x/S,Oe=de/2}}(!h.isSubplotConstrained||!y)&&X("x"),(!h.isSubplotConstrained||!w)&&X("y");var Ge=S-ve,tr=x-de;h.isSubplotConstrained&&!(w&&y)&&(w?(Oe=Ve?0:ve*x/S,tr=Ge*x/S):(Ve=Oe?0:de*S/x,Ge=tr*S/x)),he([Ve,Oe,Ge,tr]),K(),e.emit("plotly_relayouting",I)}function X(ve,de){for(var be=h.isSubplotConstrained?{x:T,y:_}[ve]:h[ve+"axes"],Ae=h.isSubplotConstrained?{x:_,y:T}[ve]:[],Pe=0;Pe<be.length;Pe++){var Ie=be[Pe],Ye=Ie._id,qe=h.xLinks[Ye]||h.yLinks[Ye],Ve=Ae[0]||b[qe]||d[qe];Ve&&(de?(de[Ie._name+".range[0]"]=de[Ve._name+".range[0]"],de[Ie._name+".range[1]"]=de[Ve._name+".range[1]"]):Ie.range=Ve.range.slice())}}function K(){var ve=[],de;function be(Ye){for(de=0;de<Ye.length;de++)Ye[de].fixedrange||ve.push(Ye[de]._id)}function Ae(Ye,qe){for(de=0;de<Ye.length;de++){var Ve=Ye[de],Oe=Ve[qe],We=Oe._id;!Ve.fixedrange&&Oe.tickmode==="sync"&&!ve.includes(We)&&ve.push(We)}}for(A&&(be(_),be(M.xaxes),be(h.xaxes),Ae(r.overlays,"xaxis")),p&&(be(T),be(M.yaxes),be(h.yaxes),Ae(r.overlays,"yaxis")),I={},de=0;de<ve.length;de++){var Pe=ve[de],Ie=yb(e,Pe);OD.drawOne(e,Ie,{skipTitle:!0}),I[Ie._name+".range[0]"]=Ie.range[0],I[Ie._name+".range[1]"]=Ie.range[1]}OD.redrawComponents(e,ve)}function ye(){if(!e._transitioningWithDuration){var ve=e._context.doubleClick,de=[];w&&(de=de.concat(_)),y&&(de=de.concat(T)),h.xaxes&&(de=de.concat(h.xaxes)),h.yaxes&&(de=de.concat(h.yaxes));var be={},Ae,Pe;if(ve==="reset+autosize")for(ve="autosize",Pe=0;Pe<de.length;Pe++){Ae=de[Pe];var Ie=Ae._rangeInitial0,Ye=Ae._rangeInitial1,qe=Ie!==void 0||Ye!==void 0;if(qe&&(Ie!==void 0&&Ie!==Ae.range[0]||Ye!==void 0&&Ye!==Ae.range[1])||!qe&&Ae.autorange!==!0){ve="reset";break}}if(ve==="autosize")for(Pe=0;Pe<de.length;Pe++)Ae=de[Pe],Ae.fixedrange||(be[Ae._name+".autorange"]=!0);else if(ve==="reset"){for((w||M.isSubplotConstrained)&&(de=de.concat(M.xaxes)),y&&!M.isSubplotConstrained&&(de=de.concat(M.yaxes)),M.isSubplotConstrained&&(w?y||(de=de.concat(T)):de=de.concat(_)),Pe=0;Pe<de.length;Pe++)if(Ae=de[Pe],!Ae.fixedrange){var Ve=Ae._name,Oe=Ae._autorangeInitial;Ae._rangeInitial0===void 0&&Ae._rangeInitial1===void 0?be[Ve+".autorange"]=!0:Ae._rangeInitial0===void 0?(be[Ve+".autorange"]=Oe,be[Ve+".range"]=[null,Ae._rangeInitial1]):Ae._rangeInitial1===void 0?(be[Ve+".range"]=[Ae._rangeInitial0,null],be[Ve+".autorange"]=Oe):be[Ve+".range"]=[Ae._rangeInitial0,Ae._rangeInitial1]}}e.emit("plotly_doubleclick",null),Gd.call("_guiRelayout",e,be)}}function oe(){he([0,0,S,x]),di.syncOrAsync([r0e.previousPromises,function(){e._fullLayout._replotting=!1,Gd.call("_guiRelayout",e,I)}],e)}function he(ve){var de=e._fullLayout,be=de._plots,Ae=de._subplots.cartesian,Pe,Ie,Ye,qe;if(E&&Gd.subplotsRegistry.splom.drag(e),R){for(Pe=0;Pe<Ae.length;Pe++)if(Ie=be[Ae[Pe]],Ye=Ie.xaxis,qe=Ie.yaxis,Ie._scene){Ye.limitRange&&Ye.limitRange(),qe.limitRange&&qe.limitRange();var Ve=di.simpleMap(Ye.range,Ye.r2l),Oe=di.simpleMap(qe.range,qe.r2l);Ie._scene.update({range:[Ve[0],Oe[0],Ve[1],Oe[1]]})}}if((E||R)&&(jfe(e),e0e(e)),D){var We=ve[2]/c._length,Ge=ve[3]/g._length;for(Pe=0;Pe<Ae.length;Pe++){Ie=be[Ae[Pe]],Ye=Ie.xaxis,qe=Ie.yaxis;var tr=(A||h.isSubplotConstrained)&&!Ye.fixedrange&&b[Ye._id],nr=(p||h.isSubplotConstrained)&&!qe.fixedrange&&d[qe._id],er,Qe,Ce,Fe;if(tr?(er=We,Ce=l||h.isSubplotConstrained?ve[0]:Se(Ye,er)):h.xaHash[Ye._id]?(er=We,Ce=ve[0]*Ye._length/c._length):h.yaHash[Ye._id]?(er=Ge,Ce=y==="ns"?-ve[1]*Ye._length/g._length:Se(Ye,er,{n:"top",s:"bottom"}[y])):(er=pe(Ye,We,Ge),Ce=me(Ye,er)),er>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"))&&(er=1,Ce=0),nr?(Qe=Ge,Fe=i||h.isSubplotConstrained?ve[1]:Se(qe,Qe)):h.yaHash[qe._id]?(Qe=Ge,Fe=ve[1]*qe._length/g._length):h.xaHash[qe._id]?(Qe=We,Fe=w==="ew"?-ve[0]*qe._length/c._length:Se(qe,Qe,{e:"right",w:"left"}[w])):(Qe=pe(qe,We,Ge),Fe=me(qe,Qe)),Qe>1&&(qe.maxallowed!==void 0&&p===(qe.range[0]<qe.range[1]?"n":"s")||qe.minallowed!==void 0&&p===(qe.range[0]<qe.range[1]?"s":"n"))&&(Qe=1,Fe=0),!(!er&&!Qe)){er||(er=1),Qe||(Qe=1);var Ke=Ye._offset-Ce/er,je=qe._offset-Fe/Qe;Ie.clipRect.call(ql.setTranslate,Ce,Fe).call(ql.setScale,er,Qe),Ie.plot.call(ql.setTranslate,Ke,je).call(ql.setScale,1/er,1/Qe),(er!==Ie.xScaleFactor||Qe!==Ie.yScaleFactor)&&(ql.setPointGroupScale(Ie.zoomScalePts,er,Qe),ql.setTextPointsScale(Ie.zoomScaleTxt,er,Qe)),ql.hideOutsideRangePoints(Ie.clipOnAxisFalseTraces,Ie),Ie.xScaleFactor=er,Ie.yScaleFactor=Qe}}}}function pe(ve,de,be){return ve.fixedrange?0:A&&M.xaHash[ve._id]?de:p&&(M.isSubplotConstrained?M.xaHash:M.yaHash)[ve._id]?be:0}function me(ve,de){return de?(ve.range=ve._r.slice(),pb(ve,de),Se(ve,de)):0}function Se(ve,de,be){return ve._length*(1-de)*Qfe[be||ve.constraintoward||"middle"]}return O}function ZD(e,r,t,n){var a=di.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(Jfe,n),a.node()}function JD(e,r,t,n,a,o,i){var l=ZD(e,"rect",r,t);return xb.select(l).call(ql.setRect,n,a,o,i),l}function HD(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function o0e(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,qD("."+a+"g")(Math.pow(10,t))):(a=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(n)/Math.LN10)+4,qD("."+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 VD(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 l0e(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function s0e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function $D(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",XD(t,n)).attr("d",a+"Z")}function KD(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",XD(r,t)).attr("d","M0,0Z")}function QD(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"),jD(e,r,a,o)}function jD(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 eP(e){UD&&e.data&&e._context.showTips&&(di.notifier(di._(e,"Double-click to zoom back out"),"long",e),UD=!1)}function u0e(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 f0e(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 Xd(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 GD(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,c,g=(a||{}).xaHash,b=(a||{}).yaHash,d=0;d<r.length;d++){var _=r[d];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&&(di.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 rP(e,r){if(!Xfe)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 YD(e){var r=[];for(var t in e)r.push(e[t]);return r}tP.exports={makeDragBox:i0e,makeDragger:ZD,makeRectDragger:JD,makeZoombox:$D,makeCorners:KD,updateZoombox:QD,xyCorners:Xd,transitionZoombox:jD,removeZoombox:bb,showDoubleClickNotifier:eP,attachWheelEventHandler:rP}});var wb=xe(Zd=>{"use strict";var c0e=st(),Wd=mo(),v0e=Fi(),h0e=Rl(),Oi=nP().makeDragBox,Rn=(Sn(),or(kn)).DRAGGERSIZE;Zd.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){c0e.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=Oi(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]&&Wd.hover(r,g,o)},Wd.hover(r,g,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(g){r._dragging||(r._fullLayout._hoversubplot=null,v0e.unhover(r,g))},r._context.showAxisDragHandles&&(Oi(r,i,l._offset-Rn,u._offset-Rn,Rn,Rn,"n","w"),Oi(r,i,l._offset+l._length,u._offset-Rn,Rn,Rn,"n","e"),Oi(r,i,l._offset-Rn,u._offset+u._length,Rn,Rn,"s","w"),Oi(r,i,l._offset+l._length,u._offset+u._length,Rn,Rn,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Rn),Oi(r,i,l._offset+l._length*.1,f,l._length*.8,Rn,"","ew"),Oi(r,i,l._offset,f,l._length*.1,Rn,"","w"),Oi(r,i,l._offset+l._length*.9,f,l._length*.1,Rn,"","e")}if(o===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=Rn),Oi(r,i,c,u._offset+u._length*.1,Rn,u._length*.8,"ns",""),Oi(r,i,c,u._offset+u._length*.9,Rn,u._length*.1,"s",""),Oi(r,i,c,u._offset,Rn,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,Wd.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,Wd.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},Zd.updateFx(r)}};Zd.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";h0e(r._draggers,t)}});var oP=xe((j_e,iP)=>{"use strict";var aP=Cr();iP.exports=function(r){for(var t=aP.layoutArrayContainers,n=aP.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 sP=xe(Bc=>{"use strict";var d0e=us(),Mb=Rh(),Oc=ll(),p0e=fm().sorterAsc,Tb=Cr();Bc.containerArrayMatch=oP();var g0e=Bc.isAddVal=function(r){return r==="add"||d0e(r)},lP=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&&Oc.warn("Full array edits are incompatible with other edits",i);var b=n[""][""];if(lP(b))t.set(null);else if(Array.isArray(b))t.set(b);else return Oc.warn("Unrecognized full array edit value",i,b),!0;return f?!1:(l(c,g),u(r),!0)}var d=Object.keys(n).map(Number).sort(p0e),_=t.get(),T=_||[],m=o(g,i).get(),k=[],S=-1,x=T.length,M,h,w,y,v,A,p,R;for(M=0;M<d.length;M++){if(w=d[M],y=n[w],v=Object.keys(y),A=y[""],p=g0e(A),w<0||w>T.length-(p?0:1)){Oc.warn("index out of range",i,w);continue}if(A!==void 0)v.length>1&&Oc.warn("Insertion & removal are incompatible with edits to the same index.",i,w),lP(A)?k.push(w):p?(A==="add"&&(A={}),T.splice(w,0,A),m&&m.splice(w,0,{})):Oc.warn("Unrecognized full object edit value",i,w,A),S===-1&&(S=w);else for(h=0;h<v.length;h++)R=i+"["+w+"].",o(T[w],v[h],R).set(y[v[h]])}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=d;else{for(x=Math.max(T.length,x),E=[],M=0;M<d.length&&(w=d[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 pP=xe(pi=>{"use strict";var vP=ft(),hP=Cr(),ga=rr(),Uc=Cn(),dP=xn(),Hc=dP.cleanId,y0e=dP.getFromTrace,Ab=hP.traceIs,m0e=["x","y","z"];pi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ga.log("Clearing previous rejected promises from queue."),e._promises=[]};pi.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=(Uc.subplotsRegistry.cartesian||{}).attrRegex,a=(Uc.subplotsRegistry.polar||{}).attrRegex,o=(Uc.subplotsRegistry.ternary||{}).attrRegex,i=(Uc.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=Hc(s.anchor)),s.overlaying&&(s.overlaying=Hc(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,Jd(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)&&(Mf(c,"xref"),Mf(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)&&(Mf(b,"xref",!0),Mf(b,"yref",!0))}var d=Array.isArray(e.images)?e.images.length:0;for(r=0;r<d;r++){var _=e.images[r];ga.isPlainObject(_)&&(Mf(_,"xref"),Mf(_,"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&&pi.cleanLayout(e.template.layout),e};function Mf(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=Hc(n,a,!0))}pi.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"&&pi.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=Hc(t.xaxis,"x")),t.yaxis&&(t.yaxis=Hc(t.yaxis,"y")),Ab(t,"gl3d")&&t.scene&&(t.scene=Uc.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]=fP(t.textposition[n]);else t.textposition&&(t.textposition=fP(t.textposition));var a=hP.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=uP(t.increasing),g=uP(t.decreasing);if(c!==!1&&g!==!1){var b=b0e(c,g,s,f);b&&(t.name=b)}else(c||g)&&!t.name&&(t.name=c||g)}Jd(t,"line")&&delete t.line,"marker"in t&&(Jd(t.marker,"line")&&delete t.marker.line,Jd(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function uP(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 b0e(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 fP(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 Jd(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}pi.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("+")}};pi.coerceTraceIndices=function(e,r){if(vP(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};pi.manageArrayContainers=function(e,r,t){var n=e.obj,a=e.parts,o=a.length,i=a[o-1],l=vP(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 x0e=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function cP(e){var r=e.search(x0e);if(r>0)return e.slice(0,r)}pi.hasParent=function(e,r){for(var t=cP(r);t;){if(t in e)return!0;t=cP(t)}return!1};pi.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=y0e(e,a,m0e[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};pi.collectionsAreEqual=kb});var Rb=xe(lt=>{"use strict";var jd=st(),_0e=ft(),w0e=Mm(),vr=rr(),Ct=vr.nestedProperty,Cb=V0(),_a=nA(),gi=Cr(),op=Ju(),Dr=Cn(),ya=Bt(),M0e=J3(),T0e=si(),Kd=kt(),A0e=Zr(),k0e=wb().initInteractions,S0e=(wl(),or(_l)),C0e=wf().clearOutline,xP=ol().dfltConfig,$d=sP(),hn=pP(),_t=Ld(),Ol=ua(),E0e=(Sn(),or(kn)).AX_NAME_PATTERN,Sb=0,gP=5;function L0e(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 lt.addFrames(e,a)}wP(e,n),t||(t={}),jd.select(e).classed("js-plotly-plot",!0),Kd.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(hn.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=hn.cleanLayout(t)),Dr.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(ece(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),Kd.initGradients(e),Kd.initPatterns(e),u&&ya.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Dr.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)||Dr.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 R=e.offsetWidth,E=e.offsetHeight,D=Math.abs(R-v)>1||Math.abs(E-A)>1;v=R,A=E,D&&R&&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 d=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 R="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(_)vr.error(R);else return vr.log(R+" Clearing graph and plotting again."),Dr.cleanPlot([],{},e._fullData,s),Dr.supplyDefaults(e),s=e._fullLayout,Dr.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"),Dr.previousPromises(e)}function m(){if(Dr.clearAutoMarginIds(e),_t.drawMarginPushers(e),ya.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&Dr.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&&Dr.allowAutoMargin(e,"pie."+A.uid+".automargin")}return Dr.doAutoMargin(e),Dr.previousPromises(e)}function k(){if(Dr.didMarginChange(d,s._size))return m()}function S(){if(!c){x();return}return vr.syncOrAsync([gi.getComponentMethod("shapes","calcAutorange"),gi.getComponentMethod("annotations","calcAutorange"),x],e)}function x(){e._transitioning||(_t.doAutoRangeAndConstraints(e),u&&ya.saveRangeInitial(e),gi.getComponentMethod("rangeslider","calcAutorange")(e))}function M(){return ya.draw(e,u?"":"redraw")}var h=[Dr.previousPromises,l,T,m,k];f&&h.push(S),h.push(_t.layoutStyles),f&&h.push(M,function(v){var A=v._fullLayout._insideTickLabelsUpdaterange;if(A)return v._fullLayout._insideTickLabelsUpdaterange=void 0,Vc(v,A).then(function(){ya.saveRangeInitial(v,!0)})}),h.push(_t.drawData,_t.finalDraw,k0e,Dr.rehover,Dr.redrag,Dr.reselect,Dr.doAutoMargin,Dr.previousPromises);var w=vr.syncOrAsync(h,e);return(!w||!w.then)&&(w=Promise.resolve()),w.then(function(){return R0e(e,b),Gc(e),e})}function R0e(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,Kd.savedBBoxes={},lt._doPlot(e))})}function Gc(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function D0e(e){return vr.extendFlat(xP,e)}function _P(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){vr.error(t)}}function P0e(e,r){var t=A0e.combine(r,"white");_P(e,t)}function wP(e,r){if(!e._context){e._context=vr.extendDeep({},xP);var t=jd.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]=P0e: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"&&!w0e&&(n.displayModeBar=!0),(n.setBackground==="transparent"||typeof n.setBackground!="function")&&(n.setBackground=_P),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 I0e(e){if(e=vr.getGraphDiv(e),!vr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return hn.cleanData(e.data),hn.cleanLayout(e.layout),e.calcdata=void 0,lt._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function z0e(e,r,t,n){return e=vr.getGraphDiv(e),Dr.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),Dr.purge(e),lt._doPlot(e,r,t,n)}function ep(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 rp(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 MP(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]),rp(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&rp(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function F0e(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 N0e(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");rp(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 q0e(e,r,t,n){var a=vr.isPlainObject(n),o=[],i,l,u,s,f;Array.isArray(t)||(t=[t]),t=ep(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=Ct(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,_0e(f)||(f=-1),o.push({prop:u,target:l,insert:s,maxp:Math.floor(f)})}return o}function TP(e,r,t,n,a){N0e(e,r,t,n);for(var o=q0e(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 AP(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function kP(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),d=AP(u,s);f<0?(c=d,g=b):(c=b,g=d)}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=TP(e,r,t,n,a),i=lt.redraw(e),l=[e,o.update,t,o.maxPoints];return _a.add(e,lt.prependTraces,l,kP,arguments),i}function SP(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),d=AP(s,u);f<0?(c=d,g=b):(c=b,g=d)}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=TP(e,r,t,n,a),i=lt.redraw(e),l=[e,o.update,t,o.maxPoints];return _a.add(e,lt.extendTraces,l,SP,arguments),i}function CP(e,r,t){e=vr.getGraphDiv(e);var n=[],a=lt.deleteTraces,o=CP,i=[e,n],l=[e,r],u,s;for(F0e(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return vr.extendFlat({},f)}),hn.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=lt.redraw(e),_a.add(e,a,i,o,l),s;Array.isArray(t)||(t=[t]);try{MP(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=lt.moveTraces(e,n,t),_a.stopSequence(e),s}function EP(e,r){e=vr.getGraphDiv(e);var t=[],n=lt.addTraces,a=EP,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]),rp(e,r,"indices"),r=ep(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=lt.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(MP(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=ep(r,e.data.length-1),t=ep(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=lt.redraw(e);return _a.add(e,o,l,i,u),f}function tp(e,r,t,n){e=vr.getGraphDiv(e),hn.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=hn.coerceTraceIndices(e,n),i=LP(e,a,o),l=i.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&hn.clearAxisTypes(e,o,{});var u=[];l.fullReplot?u.push(lt._doPlot):(u.push(Dr.previousPromises),Dr.supplyDefaults(e),l.markerSize&&(Dr.doCalcdata(e),lp(u)),l.style&&u.push(_t.doTraceStyle),l.colorbars&&u.push(_t.doColorBars),u.push(Gc)),u.push(Dr.rehover,Dr.redrag,Dr.reselect),_a.add(e,tp,[e,i.undoit,i.traces],tp,[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 Xo(e){return e===void 0?null:e}function Qd(e,r){return r?function(t,n,a){var o=Ct(t,n),i=o.set;return o.set=function(l){var u=(a||"")+n;np(u,o.get(),l,e),i(l)},o}:Ct}function np(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++)np(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)np(e+"."+c,u[c],s[c],n)}else n[e]===void 0&&(n[e]=Xo(r))}function O0e(e,r,t){for(var n in t){var a=Ct(e,n);np(n,a.get(),t[n],r)}}function LP(e,r,t){var n=e._fullLayout,a=e._fullData,o=e.data,i=n._guiEditing,l=Qd(n._preGUI,i),u=vr.extendDeepAll({},r),s,f=Ol.traceFlags(),c={},g={},b;function d(){return t.map(function(){})}function _(j){var te=ya.id2name(j);b.indexOf(te)===-1&&b.push(te)}function T(j){return"LAYOUT"+j+".autorange"}function m(j){return"LAYOUT"+j+".range"}function k(j,te,ue){if(Array.isArray(j)){j.forEach(function(we){k(we,te,ue)});return}if(!(j in r||hn.hasParent(r,j))){var ee;if(j.slice(0,6)==="LAYOUT")ee=l(e.layout,j.replace("LAYOUT",""));else{var ae=t[ue],fe=n._tracePreGUI[a[ae].uid];ee=Qd(fe,i)(o[ae],j)}j in g||(g[j]=d()),g[j][ue]===void 0&&(g[j][ue]=Xo(ee.get())),te!==void 0&&ee.set(te)}}function S(j){return function(te){return a[te][j]}}function x(j){return function(te,ue){return te===!1?a[t[ue]][j]:null}}for(var M in r){if(hn.hasParent(r,M))throw new Error("cannot set "+M+" and a parent attribute simultaneously");var h=r[M],w,y,v,A,p,R;if((M==="autobinx"||M==="autobiny")&&(M=M.charAt(M.length-1)+"bins",Array.isArray(h)?h=h.map(x(M)):h===!1?h=t.map(S(M)):h=null),c[M]=h,M.slice(0,6)==="LAYOUT"){v=l(e.layout,M.replace("LAYOUT","")),g[M]=[Xo(v.get())],v.set(Array.isArray(h)?h[0]:h),f.calc=!0;continue}for(g[M]=d(),s=0;s<t.length;s++){w=o[t[s]],y=a[t[s]];var E=n._tracePreGUI[y.uid];if(v=Qd(E,i)(w,M),A=v.get(),p=Array.isArray(h)?h[s%h.length]:h,p!==void 0){var D=v.parts[v.parts.length-1],I=M.slice(0,M.length-D.length-1),F=I?I+".":"",P=I?Ct(y,I).get():y;if(R=op.getTraceValObject(y,v.parts),R&&R.impliedEdits&&p!==null)for(var L in R.impliedEdits)k(vr.relativeAttr(M,L),R.impliedEdits[L],s);else if((D==="thicknessmode"||D==="lenmode")&&A!==p&&(p==="fraction"||p==="pixels")&&P){var z=n._size,O=P.orient,B=O==="top"||O==="bottom";if(D==="thicknessmode"){var V=B?z.h:z.w;k(F+"thickness",P.thickness*(p==="fraction"?1/V:V),s)}else{var J=B?z.w:z.h;k(F+"len",P.len*(p==="fraction"?1/J:J),s)}}else if(M==="type"&&(p==="pie"!=(A==="pie")||p==="funnelarea"!=(A==="funnelarea"))){var Q="x",G="y";(p==="bar"||A==="bar")&&w.orientation==="h"&&(Q="y",G="x"),vr.swapAttrs(w,["?"],"labels",Q),vr.swapAttrs(w,["d?","?0"],"label",Q),vr.swapAttrs(w,["?"],"values",G),A==="pie"||A==="funnelarea"?(Ct(w,"marker.color").set(Ct(w,"marker.colors").get()),n._pielayer.selectAll("g.trace").remove()):gi.traceIs(w,"cartesian")&&Ct(w,"marker.colors").set(Ct(w,"marker.color").get())}g[M][s]=Xo(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]);hn.swapXYData(w),f.calc=f.clearAxisTypes=!0}else Dr.dataArrayContainers.indexOf(v.parts[0])!==-1?(hn.manageArrayContainers(v,p,g),f.calc=!0):(R?R.arrayOk&&!gi.traceIs(y,"regl")&&(vr.isArrayOrTypedArray(p)||vr.isArrayOrTypedArray(A))?f.calc=!0:Ol.update(f,R):f.calc=!0,v.set(p))}}if(["swapxyaxes","orientationaxes"].indexOf(M)!==-1&&ya.swap(e,t),M==="orientationaxes"){var re=Ct(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 ie=o[t[s]];gi.traceIs(ie,"cartesian")&&(_(ie.xaxis||"x"),_(ie.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 Vc(e,r,t){e=vr.getGraphDiv(e),hn.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=IP(e,n),o=a.flags;o.calc&&(e.calcdata=void 0);var i=[Dr.previousPromises];o.layoutReplot?i.push(_t.layoutReplot):Object.keys(n).length&&(RP(e,o,a)||Dr.supplyDefaults(e),o.legend&&i.push(_t.doLegend),o.layoutstyle&&i.push(_t.layoutStyles),o.axrange&&lp(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(Gc)),i.push(Dr.rehover,Dr.redrag,Dr.reselect),_a.add(e,Vc,[e,a.undoit],Vc,[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 RP(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,d){return vr.coerce(o,i,T0e,b,d)},u={};for(var s in t.rangesAltered){var f=ya.id2name(s);if(o=e.layout[f],i=n[f],M0e(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 lp(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(C0e,_t.doAutoRangeAndConstraints,t,_t.drawData,_t.finalDraw)}var DP=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,PP=/^[xyz]axis[0-9]*\.autorange$/,B0e=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function IP(e,r){var t=e.layout,n=e._fullLayout,a=n._guiEditing,o=Qd(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),d=b.indexOf("scene")!==-1?b+".":"",_=i[c].replace("allaxes",d+l[g]._name);r[_]||(r[_]=r[i[c]])}delete r[i[c]]}var T=Ol.layoutFlags(),m={},k={};function S(we,Me){if(Array.isArray(we)){we.forEach(function(ge){S(ge,Me)});return}if(!(we in r||hn.hasParent(r,we))){var ke=o(t,we);we in k||(k[we]=Xo(ke.get())),Me!==void 0&&ke.set(Me)}}var x={},M;function h(we){var Me=ya.name2id(we.split(".")[0]);return x[Me]=1,Me}for(var w in r){if(hn.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 R=y.parts[p],E=y.parts[p-1]+"."+R,D=y.parts.slice(0,p).join("."),I=Ct(e.layout,D).get(),F=Ct(n,D).get(),P=y.get();if(v!==void 0){m[w]=v,k[w]=R==="reverse"?v:Xo(P);var L=op.getLayoutValObject(n,y.parts);if(L&&L.impliedEdits&&v!==null)for(var z in L.impliedEdits)S(vr.relativeAttr(w,z),L.impliedEdits[z]);if(["width","height"].indexOf(w)!==-1)if(v){S("autosize",null);var O=w==="height"?"width":"height";S(O,n[O])}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(DP))h(E),Ct(n,D+"._inputRange").set(null);else if(E.match(PP)){h(E),Ct(n,D+"._inputRange").set(null);var B=Ct(n,D).get();B._inputDomain&&(B._input.domain=B._inputDomain.slice())}else E.match(B0e)&&Ct(n,D+"._inputDomain").set(null);if(R==="type"){M=I;var V=F.type==="linear"&&v==="log",J=F.type==="log"&&v==="linear";if(V||J){if(!M||!M.range)S(D+".autorange",!0);else if(F.autorange)V&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var Q=M.range[0],G=M.range[1];V?(Q<=0&&G<=0&&S(D+".autorange",!0),Q<=0?Q=G/1e6:G<=0&&(G=Q/1e6),S(D+".range[0]",Math.log(Q)/Math.LN10),S(D+".range[1]",Math.log(G)/Math.LN10)):(S(D+".range[0]",Math.pow(10,Q)),S(D+".range[1]",Math.pow(10,G)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[y.parts[0]]&&y.parts[1]==="radialaxis"&&delete n[y.parts[0]]._subplot.viewInitial["radialaxis.range"],gi.getComponentMethod("annotations","convertCoords")(e,F,v,S),gi.getComponentMethod("images","convertCoords")(e,F,v,S)}else S(D+".autorange",!0),S(D+".range",null);Ct(n,D+"._inputRange").set(null)}else if(R.match(E0e)){var q=Ct(n,w).get(),Z=(v||{}).type;(!Z||Z==="-")&&(Z="linear"),gi.getComponentMethod("annotations","convertCoords")(e,q,Z,S),gi.getComponentMethod("images","convertCoords")(e,q,Z,S),!D&&q&&v&&(v.range!==void 0||v.autorange!==void 0)&&(h(`${R}.range`),q._inputRange=null)}var re=$d.containerArrayMatch(w);if(re){f=re.array,c=re.index;var $=re.property,ie=L||{editType:"calc"};c!==""&&$===""&&($d.isAddVal(v)?k[w]=null:$d.isRemoveVal(v)?k[w]=(Ct(t,f).get()||[])[c]:vr.warn("unrecognized full object value",r)),Ol.update(T,ie),s[f]||(s[f]={});var j=s[f][c];j||(j=s[f][c]={}),j[$]=v,delete r[w]}else R==="reverse"?(I.range?I.range.reverse():(S(D+".autorange",!0),I.range=[1,0]),F.autorange?T.calc=!0:T.plot=!0):(w==="dragmode"&&(v===!1&&P!==!1||v!==!1&&P===!1)||n._has("scatter-like")&&n._has("regl")&&w==="dragmode"&&(v==="lasso"||v==="select")&&!(P==="lasso"||P==="select")?T.plot=!0:L?Ol.update(T,L):T.calc=!0,y.set(v))}}for(f in s){var te=$d.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 ae in ee)x[ae]||(ya.getFromId(e,ae)._constraintShrinkable=!0)}}(zP(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 zP(e){var r=e._fullLayout,t=r.width,n=r.height;return e.layout.autosize&&Dr.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==n}function ap(e,r,t,n){e=vr.getGraphDiv(e),hn.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=hn.coerceTraceIndices(e,n),o=LP(e,vr.extendFlat({},r),a),i=o.flags,l=IP(e,vr.extendFlat({},t)),u=l.flags;(i.calc||u.calc)&&(e.calcdata=void 0),i.clearAxisTypes&&hn.clearAxisTypes(e,a,t);var s=[];u.layoutReplot?s.push(_t.layoutReplot):i.fullReplot?s.push(lt._doPlot):(s.push(Dr.previousPromises),RP(e,u,l)||Dr.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&&lp(s,l.rangesAltered),u.ticks&&s.push(_t.doTicksRelayout),u.modebar&&s.push(_t.doModeBar),u.camera&&s.push(_t.doCamera),s.push(Gc)),s.push(Dr.rehover,Dr.redrag,Dr.reselect),_a.add(e,ap,[e,o.undoit,l.undoit,o.traces],ap,[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 U0e=[{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"}],H0e=[{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 yP(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 mP(e,r){var t=Ct(r,e).get();if(t!==void 0)return t;var n=e.split(".");for(n.pop();n.length>1;)if(n.pop(),t=Ct(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function V0e(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function G0e(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 bP(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 Y0e(e,r,t,n){var a=n._preGUI,o,i,l,u,s,f,c,g,b,d,_=[],T={},m={};for(o in a){if(s=yP(o,U0e),s){if(b=s.head,d=s.tail,i=s.attr||b+".uirevision",l=Ct(n,i).get(),u=l&&mP(i,r),u&&u===l){if(f=a[o],f===null&&(f=void 0),c=Ct(r,o),g=c.get(),bP(g,f)){g===void 0&&d==="autorange"&&_.push(b),c.set(Xo(Ct(n,o).get()));continue}else if(d==="autorange"||d.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=Ct(r,b).get();T[b]=M&&(M.autorange||M.autorange!==!1&&(!M.range||M.range.length!==2))}if(T[b]){c.set(Xo(Ct(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 h=0;h<_.length;h++){var w=_[h];if(m[w]){var y=Ct(r,w).get();y&&delete y.autorange}}var v=n._tracePreGUI;for(var A in v){var p=v[A],R=null,E;for(o in p){if(!R){var D=V0e(A,t);if(D<0){delete v[A];break}E=t[D];var I=G0e(A,e,E.index);if(I<0){delete v[A];break}R=e[I]}if(s=yP(o,H0e),s){if(s.attr?(l=Ct(n,s.attr).get(),u=l&&mP(s.attr,r)):(l=E.uirevision,u=R.uirevision,u===void 0&&(u=r.uirevision)),u&&u===l&&(f=p[o],f===null&&(f=void 0),c=Ct(R,o),g=c.get(),bP(g,f))){c.set(Xo(Ct(E,o).get()));continue}}else vr.warn("unrecognized GUI edit: "+o+" in trace uid "+A);delete p[o]}}}function X0e(e,r,t,n){var a,o;function i(){return lt.addFrames(e,a)}e=vr.getGraphDiv(e),hn.clearPromiseQueue(e);var l=e._fullData,u=e._fullLayout;if(!vr.isPlotDiv(e)||!l||!u)o=lt.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,wP(e,n),f=!hn.collectionsAreEqual(E,e._context)}if(f){let E=e._ev.eventNames().map(D=>[D,e._ev.listeners(D)]);o=lt.newPlot(e,r,t,n).then(()=>{for(let[D,I]of E)I.forEach(F=>e.on(D,F));return lt.react(e,r,t,n)})}else{e.data=r||[],hn.cleanData(e.data),e.layout=t||{},hn.cleanLayout(e.layout),Y0e(e.data,e.layout,l,u),Dr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,g=e._fullLayout,b=g.datarevision===void 0,d=g.transition,_=Z0e(e,u,g,b,d),T=_.newDataRevision,m=W0e(e,l,c,b,d,T);if(zP(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 h=g[x]._emptyCategories;h&&h()}}}else Dr.supplyDefaultsUpdateCalc(e.calcdata,c);var w=[];if(a&&(e._transitionData={},Dr.createTransitionData(e),w.push(i)),g.transition&&(m.anim||_.anim))_.ticks&&w.push(_t.doTicksRelayout),Dr.doCalcdata(e),_t.doAutoRangeAndConstraints(e),w.push(function(){return Dr.transitionFromReact(e,m,_,u)});else if(m.fullReplot||_.layoutReplot)e._fullLayout._skipDefaults=!0,w.push(lt._doPlot);else{for(var y in _.arrays){var v=_.arrays[y];if(v.length){var A=gi.getComponentMethod(y,"drawOne");if(A!==vr.noop)for(var p=0;p<v.length;p++)A(e,v[p]);else{var R=gi.getComponentMethod(y,"draw");if(R===vr.noop)throw new Error("cannot draw components: "+y);R(e)}}}w.push(Dr.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&&lp(w),_.ticks&&w.push(_t.doTicksRelayout),_.modebar&&w.push(_t.doModeBar),_.camera&&w.push(_t.doCamera),w.push(Gc)}w.push(Dr.rehover,Dr.redrag,Dr.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 W0e(e,r,t,n,a,o){var i=r.length===t.length;if(!a&&!i)return{fullReplot:!0,calc:!0};var l=Ol.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var u,s;function f(b){var d=op.getTraceValObject(s,b);return!s._module.animatable&&d.anim&&(d.anim=!1),d}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,ip(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 Z0e(e,r,t,n,a){var o=Ol.layoutFlags();o.arrays={},o.rangesAltered={},o.nChanges=0,o.nChangesAnim=0;function i(g){return op.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,d=r[l]._inputRange;if(d&&g&&b){let _=g[0]===d[0]&&g[1]===d[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 ip(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 ip(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 D=a.editType;if(f&&D.indexOf("arraydraw")!==-1){vr.pushUnique(u.arrays[f],c);return}Ol.update(u,a),D!=="none"&&u.nChanges++,n.transition&&a.anim&&u.nChangesAnim++,(DP.test(i)||PP.test(i))&&(u.rangesAltered[t[0]]=1),o==="datarevision"&&(u.newDataRevision=1)}function b(D){return D.valType==="data_array"||D.arrayOk}for(o in e){if(u.calc&&!n.transition)return;var d=e[o],_=r[o],T=t.concat(o);if(i=T.join("."),!(o.charAt(0)==="_"||typeof d=="function"||d===_)){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(d)===JSON.stringify(_)))){var k=a.valType,S,x=b(a),M=Array.isArray(d),h=Array.isArray(_);if(M&&h){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 R=Math.min(d.length,_.length),E=Math.max(d.length,_.length);if(R!==E)if(a.editType==="arraydraw")p=!0;else{g();continue}for(S=0;S<R;S++)ip(d[S],_[S],T.concat(S),vr.extendFlat({inArray:o,arrayIndex:S},n));if(p)for(S=R;S<E;S++)A.push(S)}else!k&&vr.isPlainObject(d)?ip(d,_,T,n):x?M&&h?(s&&(u.calc=!0),(s||n.newDataRevision)&&g()):M!==h?u.calc=!0:g():M&&h?(d.length!==_.length||String(d)!==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 J0e(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=Dr.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 R=n._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function g(R){if(R.length!==0){for(var E=0;E<R.length;E++){var D;R[E].type==="byname"?D=Dr.computeFrame(e,R[E].name):D=R[E].data;var I=l(E),F=i(E);F.duration=Math.min(F.duration,I.duration);var P={frame:D,name:R[E].name,frameOpts:I,transitionOpts:F};E===R.length-1&&(P.onComplete=u(s,2),P.onInterrupt=f),n._frameQueue.push(P)}t.mode==="immediate"&&(n._lastFrameAt=-1/0),n._animationRaf||_()}}function b(){e.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function d(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var R=n._currentFrame=n._frameQueue.shift();if(R){var E=R.name?R.name.toString():null;e._fullLayout._currentFrame=E,n._lastFrameAt=Date.now(),n._timeToNext=R.frameOpts.duration,Dr.transition(e,R.frame.data,R.frame.layout,hn.coerceTraceIndices(e,R.frame.traces),R.frameOpts,R.transitionOpts).then(function(){R.onComplete&&R.onComplete()}),e.emit("plotly_animatingframe",{name:E,frame:R.frame,animation:{frame:R.frameOpts,transition:R.transitionOpts}})}else b()}function _(){e.emit("plotly_animating"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var R=function(){n._animationRaf=window.requestAnimationFrame(R),Date.now()-n._lastFrameAt>n._timeToNext&&d()};R()}var T=0;function m(R){return Array.isArray(a)?T>=a.length?R.transitionOpts=a[T]:R.transitionOpts=a[0]:R.transitionOpts=a,T++,R}var k,S,x=[],M=r==null,h=Array.isArray(r),w=!M&&!h&&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(h)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 $0e(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,d=r[n].name,_=u[b]||c[b];b&&d&&typeof d=="number"&&_&&Sb<gP&&(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===gP&&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:Dr.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=Dr.modifyFrames,x=Dr.modifyFrames,M=[e,m],h=[e,T];return _a&&_a.add(e,S,M,x,h),Dr.modifyFrames(e,T)}function K0e(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=Dr.modifyFrames,u=Dr.modifyFrames,s=[e,i],f=[e,o];return _a&&_a.add(e,l,s,u,f),Dr.modifyFrames(e,o)}function Q0e(e){e=vr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Dr.cleanPlot([],{},t,r),Dr.purge(e),Cb.purge(e),r._container&&r._container.remove(),delete e._context,e}function j0e(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 ece(e){var r=jd.select(e),t=e._fullLayout;if(t._calcInverseTransform=j0e,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={};jd.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=vr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(S0e.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")}lt.animate=J0e;lt.addFrames=$0e;lt.deleteFrames=K0e;lt.addTraces=CP;lt.deleteTraces=EP;lt.extendTraces=kP;lt.moveTraces=Eb;lt.prependTraces=SP;lt.newPlot=z0e;lt._doPlot=L0e;lt.purge=Q0e;lt.react=X0e;lt.redraw=I0e;lt.relayout=Vc;lt.restyle=tp;lt.setPlotConfig=D0e;lt.update=ap;lt._guiRelayout=Lb(Vc);lt._guiRestyle=Lb(tp);lt._guiUpdate=Lb(ap);lt._storeDirectGUIEdit=O0e});var Js=xe(yi=>{"use strict";var rce=Cr();yi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};yi.getRedrawFunc=function(e){return function(){rce.getComponentMethod("colorbar","draw")(e)}};yi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};yi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var FP=window.URL||window.webkitURL;yi.createObjectURL=function(e){return FP.createObjectURL(e)};yi.revokeObjectURL=function(e){return FP.revokeObjectURL(e)};yi.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=tce(window.atob(e));return new window.Blob([t],{type:"image/"+r})};yi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};yi.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};yi.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 tce(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}yi.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var sp=xe((l7e,NP)=>{"use strict";var Pb=st(),i7e=rr(),nce=kt(),ace=Zr(),o7e=(wl(),or(_l)),Db=/"/g,$s="TOBESTRIPPED",ice=new RegExp(`("${$s})|(${$s}")|("${$s})|(${$s}")`,"g"),oce=["&","&","&",""",""",""","'","'","'"],lce=["<","<","<"],sce=[">",">",">"];function uce(e){let r=Pb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,n=>{let a=n.toLowerCase();return oce.includes(a)?n:lce.includes(a)?"<":sce.includes(a)?">":n.includes("<")||n.includes(">")?"":r.html(n).text()});return r.remove(),t}function fce(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}NP.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(nce.setRect,0,0,l,u).call(ace.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 d=b[s];d.childNodes.length&&o.node().appendChild(d)}}a._draggers&&a._draggers.remove(),o.node().style.background="",o.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var T=Pb.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(Db,$s));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=Pb.select(this),m=this.style.fill;m&&m.indexOf("url(")!==-1&&T.style("fill",m.replace(Db,$s));var k=this.style.stroke;k&&k.indexOf("url(")!==-1&&T.style("stroke",k.replace(Db,$s))}),(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 _=uce(_),_=fce(_),_=_.replace(ice,"'"),_}});var up=xe((s7e,qP)=>{"use strict";var cce=rr(),vce=e1().EventEmitter,Yc=Js();function hce(e){var r=e.emitter||new vce,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,d=u.getContext("2d",{willReadFrequently:!0}),_=new o,T,m;l==="svg"||cce.isSafari()?m=Yc.encodeSVG(i):(T=Yc.createBlob(i,"svg"),m=Yc.createObjectURL(T)),u.width=g,u.height=b,_.onload=function(){var k;switch(T=null,Yc.revokeObjectURL(m),l!=="svg"&&d.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,Yc.revokeObjectURL(m),a(k),!e.promise)return r.emit("error",k)},_.src=m});return e.promise?t:r}qP.exports=hce});var zb=xe((u7e,UP)=>{"use strict";var OP=ft(),BP=Rb(),dce=Cn(),To=rr(),Xc=Js(),pce=sp(),gce=up(),yce=f0().version,Ib=(Uy(),or(By)).default;function mce(e,r){r=r||{};var t,n,a,o;To.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=To.getGraphDiv(e),t=To.extendDeep([],e.data),n=To.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(h){return!(h in r)||To.validate(r[h],Ib[h])}if(!i("width")&&r.width!==null||!i("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!i("format"))throw new Error("Export format is not "+To.join2(Ib.format.values,", "," or ")+".");var l={};function u(h,w){return To.coerce(r,l,Ib,h,w)}var s=u("format"),f=u("width"),c=u("height"),g=u("scale"),b=u("setBackground"),d=u("imageDataOnly"),_=document.createElement("div");_.style.position="absolute",_.style.left="-5000px",document.body.appendChild(_);var T=To.extendFlat({},n);f?T.width=f:r.width===null&&OP(o.width)&&(T.width=o.width),c?T.height=c:r.height===null&&OP(o.height)&&(T.height=o.height);var m=To.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:b}),k=Xc.getRedrawFunc(_);function S(){return new Promise(function(h){setTimeout(h,Xc.getDelay(_._fullLayout))})}function x(){return new Promise(function(h,w){var y=pce(_,s,g),v=_._fullLayout.width,A=_._fullLayout.height;function p(){BP.purge(_),document.body.removeChild(_)}if(s==="full-json"){var R=dce.graphJson(_,!1,"object",!0,!0);return R.version=yce,R=JSON.stringify(R),p(),h(d?R:Xc.encodeJSON(R))}if(p(),s==="svg")return h(d?y:Xc.encodeSVG(y));var E=document.createElement("canvas");E.id=To.randstr(),gce({format:s,width:v,height:A,scale:g,canvas:E,svg:y,promise:!0}).then(h).catch(w)})}function M(h){return d?h.replace(Xc.IMAGE_URL_PREFIX,""):h}return new Promise(function(h,w){BP.newPlot(_,t,T,m).then(k).then(S).then(x).then(function(y){h(M(y))}).catch(function(y){w(y)})})}UP.exports=mce});var GP=xe((f7e,VP)=>{"use strict";var mi=rr(),bce=Cn(),xce=Ju(),_ce=ol().dfltConfig,Bi=mi.isPlainObject,Qs=Array.isArray,Fb=mi.isArrayOrTypedArray;VP.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=xce.get(),a=[],o={_context:mi.extendFlat({},_ce)},i,l;Qs(r)?(o.data=mi.extendDeep([],r),i=r):(o.data=[],i=[],a.push(Dn("array","data"))),Bi(t)?(o.layout=mi.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(Dn("object","layout"))),bce.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;f<s;f++){var c=i[f],g=["data",f];if(!Bi(c)){a.push(Dn("object",g));continue}var b=u[f],d=b.type,_=n.traces[d].attributes;_.type={valType:"enumerated",values:[d]},b.visible===!1&&c.visible!==!1&&a.push(Dn("invisible",g)),fp(c,b,_,a,g)}var T=o._fullLayout,m=wce(n,u);return fp(l,T,m,a,"layout"),a.length===0?void 0:a};function fp(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=Ace(t,u),b=(g||{}).valType,d=b==="info_array",_=b==="colorscale",T=(g||{}).items;if(!Tce(t,u))n.push(Dn("schema",a,s));else if(Bi(f)&&Bi(c)&&b!=="any")fp(f,c,g,n,a,s);else if(d&&Qs(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,h,w;if(g.dimensions===2)for(x=0;x<m;x++)if(Qs(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,h=f[x][S],w=c[x][S],mi.validate(h,M)?w!==h&&w!==+h&&n.push(Dn("dynamic",a,s.concat(x,S),h,w)):n.push(Dn("value",a,s.concat(x,S),h))}else n.push(Dn("array",a,s.concat(x),f[x]));else for(x=0;x<m;x++)M=k?T[x]:T,h=f[x],w=c[x],mi.validate(h,M)?w!==h&&w!==+h&&n.push(Dn("dynamic",a,s.concat(x),h,w)):n.push(Dn("value",a,s.concat(x),h))}else if(g.items&&!d&&Qs(f)){var v=T[Object.keys(T)[0]],A=[],p,R;for(p=0;p<c.length;p++){var E=c[p]._index||p;if(R=s.slice(),R.push(E),Bi(f[E])&&Bi(c[p])){A.push(E);var D=f[E],I=c[p];Bi(D)&&D.visible!==!1&&I.visible===!1?n.push(Dn("invisible",a,R)):fp(D,I,v,n,a,R)}}for(p=0;p<f.length;p++)R=s.slice(),R.push(p),Bi(f[p])?A.indexOf(p)===-1&&n.push(Dn("unused",a,R)):n.push(Dn("object",a,R,f[p]))}else!Bi(f)&&Bi(c)?n.push(Dn("object",a,s,f)):!Fb(f)&&Fb(c)&&!d&&!_?n.push(Dn("array",a,s,f)):u in r?mi.validate(f,g)?g.valType==="enumerated"&&(g.coerceNumber&&f!==+c||!Fb(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 wce(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?mi.extendFlat(t[o.attributes.subplot.dflt],i):mi.extendFlat(t,i))}return t}var Mce={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=Ks(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=Ks(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return Ks(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var n=Bi(t)?"container":"key";return Ks(e)+n+" "+r+" did not get coerced"},dynamic:function(e,r,t,n){return[Ks(e)+"key",r,"(set to '"+t+"')","got reset to","'"+n+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?Ks(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[Ks(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function Ks(e){return Qs(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Dn(e,r,t,n,a){t=t||"";var o,i;Qs(r)?(o=r[0],i=r[1]):(o=r,i=null);var l=Sce(t),u=Mce[e](r,l,n,a);return mi.log(u),{code:e,container:o,trace:i,path:t,astr:l,msg:u}}function Tce(e,r){var t=HP(r),n=t.keyMinusId,a=t.id;return n in e&&e[n]._isSubplotObj&&a?!0:r in e}function Ace(e,r){if(r in e)return e[r];var t=HP(r);return e[t.keyMinusId]}var kce=mi.counterRegex("([a-z]+)");function HP(e){var r=e.match(kce);return{keyMinusId:r&&r[1],id:r&&r[2]}}function Sce(e){if(!Qs(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 XP=xe((c7e,YP)=>{"use strict";var Cce=rr(),cp=Js();function Ece(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=cp.createBlob(e,t),s=cp.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),cp.revokeObjectURL(s),u=null,i(r);if(Cce.isSafari()){var f=t==="svg"?",":";base64,";return cp.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}YP.exports=Ece});var Nb=xe((v7e,$P)=>{"use strict";var vp=rr(),WP=Qn(),Lce=zb(),Rce=XP(),ZP=Js(),JP=40;function Dce(e,r){var t;return vp.isPlainObject(e)||(t=vp.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=Lce(e,r),i=r.filename||e.fn;if(!i){let u=ZP.getPlotTitle(e);if(u&&!WP.matchTex(u))i=vp.slugify(u,JP);else{let s=ZP.getPlotSubtitle(e);s&&!WP.matchTex(s)&&(i=vp.slugify(s,JP))}}var l=i||"plot-image";l+="."+r.format.replace("-","."),o.then(function(u){return t&&(t._snapshotInProgress=!1),Rce(u,l,r.format)}).then(function(u){n(u)}).catch(function(u){t&&(t._snapshotInProgress=!1),a(u)})})}$P.exports=Dce});var rI=xe(qb=>{"use strict";var za=rr(),Fa=za.isPlainObject,KP=Ju(),QP=Cn(),Pce=Zn(),jP=At(),eI=ol().dfltConfig;qb.makeTemplate=function(e){e=za.isPlainObject(e)?e:za.getGraphDiv(e),e=za.extendDeep({_context:eI},{data:e.data,layout:e.layout}),QP.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 d={};Wc(b,d,zce.bind(null,b));var _=za.coerce(b,{},Pce,"type"),T=n.data[_];T||(T=n.data[_]=[]),T.push(d)}),Wc(t,n.layout,Ice.bind(null,t)),delete n.layout.template;var a=t.template;if(Fa(a)){var o=a.layout,i,l,u,s,f,c;Fa(o)&&hp(o,n.layout);var g=a.data;if(Fa(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++)hp(u[i%s],f[i]);for(i=c;i<s;i++)f.push(za.extendDeep({},u[i]))}for(l in g)l in n.data||(n.data[l]=za.extendDeep([],g[l]))}}return n};function hp(e,r){e=za.extendDeep({},e);var t=Object.keys(e).sort(),n,a;function o(f,c,g){if(Fa(c)&&Fa(f))hp(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var b=jP.arrayTemplater({_template:e},g);for(a=0;a<c.length;a++){var d=c[a],_=b.newItem(d)._template;_&&hp(_,d)}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,dp(i)===i)for(var u in r){var s=dp(u);u!==s&&s===i&&!(u in e)&&o(l,r[u],i)}}}function dp(e){return e.replace(/[0-9]+$/,"")}function Wc(e,r,t,n,a){var o=a&&t(a);for(var i in e){var l=e[i],u=bi(e,i,n),s=bi(e,i,a),f=t(s);if(!f){var c=dp(i);c!==i&&(s=bi(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&&Fa(l))Wc(l,r,t,u,s);else if(f._isLinkedToArray&&Array.isArray(l))for(var g=!1,b=0,d={},_=0;_<l.length;_++){var T=l[_];if(Fa(T)){var m=T.name;if(m)d[m]||(Wc(T,r,t,bi(l,b,u),bi(l,b,s)),b++,d[m]=1);else if(!g){var k=jP.arrayDefaultKey(i),S=bi(e,k,n),x=bi(l,b,u);Wc(T,r,t,x,bi(l,b,s));var M=za.nestedProperty(r,x),h=za.nestedProperty(r,S);h.set(M.get()),M.set(null),g=!0}}}else{var w=za.nestedProperty(r,u);w.set(l)}}}function Ice(e,r){return KP.getLayoutValObject(e,za.nestedProperty({},r).parts)}function zce(e,r){return KP.getTraceValObject(e,za.nestedProperty({},r).parts)}function bi(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=za.extendDeep({},{_context:eI,data:e.data,layout:e.layout}),n=t.layout||{};Fa(r)||(r=n.template||{});var a=r.layout,o=r.data,i=[];t.layout=n,t.layout.template=r,QP.supplyDefaults(t);var l=t._fullLayout,u=t._fullData,s={};function f(S,x){for(var M in S)if(M.charAt(0)!=="_"&&Fa(S[M])){var h=dp(M),w=[],y;for(y=0;y<x.length;y++)w.push(bi(S,M,x[y])),h!==M&&w.push(bi(S,h,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&&Fa(S[M])){var h=bi(S,M,x);s[h]?c(S[M],h):i.push({code:"unused",path:h})}}if(Fa(a)?(f(l,["layout"]),c(a,"layout")):i.push({code:"layout"}),!Fa(o))i.push({code:"data"});else{for(var g={},b,d=0;d<u.length;d++){var _=u[d];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 h=S[M],w=bi(S,M,x);Fa(h)?(Array.isArray(S)&&h._template===!1&&h.templateitemname&&i.push({code:"missing",path:w,templateitemname:h.templateitemname}),k(h,w)):Array.isArray(h)&&Fce(h)&&k(h,w)}}if(k({data:u,layout:l},""),i.length)return i.map(Nce)};function Fce(e){for(var r=0;r<e.length;r++)if(Fa(e[r]))return!0}function Nce(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 nI=xe(Ft=>{"use strict";var wn=Rb();Ft._doPlot=wn._doPlot;Ft.newPlot=wn.newPlot;Ft.restyle=wn.restyle;Ft.relayout=wn.relayout;Ft.redraw=wn.redraw;Ft.update=wn.update;Ft._guiRestyle=wn._guiRestyle;Ft._guiRelayout=wn._guiRelayout;Ft._guiUpdate=wn._guiUpdate;Ft._storeDirectGUIEdit=wn._storeDirectGUIEdit;Ft.react=wn.react;Ft.extendTraces=wn.extendTraces;Ft.prependTraces=wn.prependTraces;Ft.addTraces=wn.addTraces;Ft.deleteTraces=wn.deleteTraces;Ft.moveTraces=wn.moveTraces;Ft.purge=wn.purge;Ft.addFrames=wn.addFrames;Ft.deleteFrames=wn.deleteFrames;Ft.animate=wn.animate;Ft.setPlotConfig=wn.setPlotConfig;var qce=z0().getGraphDiv,Oce=Md().eraseActiveShape;Ft.deleteActiveShape=function(e){return Oce(qce(e))};Ft.toImage=zb();Ft.validate=GP();Ft.downloadImage=Nb();var tI=rI();Ft.makeTemplate=tI.makeTemplate;Ft.validateTemplate=tI.validateTemplate});var iI=xe((p7e,aI)=>{"use strict";var Ob=rr(),Bce=Cr();aI.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=Ob.minRowLength(o);i?l=Math.min(s,Ob.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=Ob.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var uI=xe((g7e,sI)=>{"use strict";var oI=rr().dateTick0,Uce=(Mn(),or(In)),Hce=Uce.ONEWEEK;function lI(e,r){return e%Hce===0?oI(r,1):oI(r,0)}sI.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",lI(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",lI(l,t.ycalendar)),a("yperiodalignment"))}}});var vI=xe((y7e,cI)=>{"use strict";var fI=["orientation","groupnorm","stackgaps"];cI.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<fI.length;g++){var b=fI[g],d=b+"Found";if(!s[d]){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[d]=!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 Bb=xe((m7e,gI)=>{"use strict";var hI=Zr(),dI=oo().hasColorscale,pI=so(),Vce=Ra();gI.exports=function(r,t,n,a,o,i={}){var l=Vce.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),dI(r,"marker")&&pI(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=hI.background:s=hI.defaultLine,o("marker.line.color",s),dI(r,"marker.line")&&pI(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((b7e,yI)=>{"use strict";var Gce=rr().isArrayOrTypedArray,Yce=oo().hasColorscale,Xce=so();yI.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),Yce(r,"line"))Xce(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(Gce(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var bI=xe((x7e,mI)=>{"use strict";mI.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var Hb=xe((_7e,xI)=>{"use strict";var Wce=rr();xI.exports=function(e,r,t,n,a){a=a||{},n("textposition"),Wce.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var MI=xe((w7e,wI)=>{"use strict";var pp=Zr(),_I=rr().isArrayOrTypedArray;function Zce(e){for(var r=pp.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var n=pp.interpolate(e[t-1][1],e[t][1],.5);r=pp.interpolate(r,n,e[t-1][0]/e[t][0])}return r}wI.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&&!_I(l)?i=l:u&&!_I(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=Zce(c))}}a("fillcolor",pp.addOpacity((t.line||{}).color||i||s||n,.5))}});var SI=xe((M7e,kI)=>{"use strict";var TI=rr(),Jce=Cr(),$ce=Zs(),Kce=(Ud(),or(Bd)),Tf=Ra(),Qce=iI(),jce=uI(),eve=vI(),rve=Bb(),tve=Ub(),AI=bI(),nve=Hb(),ave=MI(),ive=rr().coercePattern;kI.exports=function(r,t,n,a){function o(b,d){return TI.coerce(r,t,$ce,b,d)}var i=Qce(r,t,a,o);if(i||(t.visible=!1),!!t.visible){jce(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=eve(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i<Kce.PTS_LINESONLY?"lines+markers":"lines";o("text"),o("hovertext"),o("mode",u),Tf.hasMarkers(t)&&rve(r,t,n,a,o,{gradient:!0}),Tf.hasLines(t)&&(tve(r,t,n,a,o,{backoff:!0}),AI(r,t,o),o("connectgaps"),o("line.simplify")),Tf.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),nve(r,t,a,o));var s=[];(Tf.hasMarkers(t)||Tf.hasText(t))&&(o("cliponaxis"),o("marker.maxdisplayed"),s.push("points")),o("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(ave(r,t,n,o,{moduleHasFillgradient:!0}),Tf.hasLines(t)||AI(r,t,o),ive(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=Jce.getComponentMethod("errorbars","supplyDefaults");g(r,t,f||c||n,{axis:"y"}),g(r,t,f||c||n,{axis:"x",inherit:"y"}),TI.coerceSelectionMarkerOpacity(t,o)}}});var EI=xe((T7e,CI)=>{"use strict";var ove=mc().getAxisGroup;CI.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=ove(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")||"",d=g.offsetGroups,_=d[b];t._offsetIndex=0,(o!=="group"||b)&&(_||(_=d[b]={offsetIndex:Object.keys(d).length}),t._offsetIndex=_.offsetIndex)}});var RI=xe((A7e,LI)=>{"use strict";var lve=rr(),sve=EI(),uve=Zs();LI.exports=function(r,t){var n,a,o,i=t.scattermode;function l(g){return lve.coerce(a._input,a,uve,g)}if(t.scattermode==="group")for(o=0;o<r.length;o++)a=r[o],a.type==="scatter"&&(n=a._input,sve(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 PI=xe((k7e,DI)=>{"use strict";var fve=rr(),cve=i1();DI.exports=function(e,r){function t(a,o){return fve.coerce(e,r,cve,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var FI=xe((S7e,zI)=>{"use strict";var vve=ft(),II=rr(),hve=II.dateTime2ms,gp=II.incrementMonth,dve=(Mn(),or(In)),pve=dve.ONEAVGMONTH;zI.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(vve(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=hve(g,s)||0,d=[],_=[],T=[],m=a.length,k=0;k<m;k++){var S=a[k],x,M,h;if(l){for(x=Math.round((S-b)/(l*pve)),h=gp(b,l*x,s);h>S;)h=gp(h,-l,s);for(;h<=S;)h=gp(h,l,s);M=gp(h,-l,s)}else{for(x=Math.round((S-b)/i),h=b+x*i;h>S;)h-=i;for(;h<=S;)h+=i;M=h-i}d[k]=f?M:c?h:(M+h)/2,_[k]=M,T[k]=h}return{vals:d,starts:_,ends:T}}});var Yb=xe((C7e,qI)=>{"use strict";var Vb=oo().hasColorscale,Gb=Tl(),NI=Ra();qI.exports=function(r,t){NI.hasLines(t)&&Vb(t,"line")&&Gb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),NI.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 yp=xe((E7e,OI)=>{"use strict";var Qt=rr();OI.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 HI=xe((L7e,UI)=>{"use strict";var BI=rr();UI.exports=function(r,t){BI.isArrayOrTypedArray(t.selectedpoints)&&BI.tagSelected(r,t)}});var $b=xe((R7e,JI)=>{"use strict";var VI=ft(),Wb=rr(),Zc=Bt(),GI=FI(),Xb=(Mn(),or(In)).BADNUM,Zb=Ra(),gve=Yb(),yve=yp(),mve=HI();function bve(e,r){var t=e._fullLayout,n=r._xA=Zc.getFromId(e,r.xaxis||"x","x"),a=r._yA=Zc.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=GI(r,n,"x",o),u=GI(r,a,"y",i),s=l.vals,f=u.vals,c=r._length,g=new Array(c),b=r.ids,d=Jb(r,t,n,a),_=!1,T,m,k,S,x,M;WI(t,r);var h="x",w="y",y;if(d)Wb.pushUnique(d.traceIndices,r.index),T=d.orientation==="v",T?(w="s",y="x"):(h="s",y="y"),x=d.stackgaps==="interpolate";else{var v=XI(r,c);YI(e,r,n,a,s,f,v)}var A=!!r.xperiodalignment,p=!!r.yperiodalignment;for(m=0;m<c;m++){var R=g[m]={},E=VI(s[m]),D=VI(f[m]);E&&D?(R[h]=s[m],R[w]=f[m],A&&(R.orig_x=o[m],R.xEnd=l.ends[m],R.xStart=l.starts[m]),p&&(R.orig_y=i[m],R.yEnd=u.ends[m],R.yStart=u.starts[m])):d&&(T?E:D)?(R[y]=T?s[m]:f[m],R.gap=!0,x?(R.s=Xb,_=!0):R.s=0):R[h]=R[w]=Xb,b&&(R.id=String(b[m]))}if(yve(g,r),gve(e,r),mve(g,r),d){for(m=0;m<g.length;)g[m][y]===Xb?g.splice(m,1):m++;if(Wb.sort(g,function(L,z){return L[y]-z[y]||L.i-z.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],F=g[m-1].s,P=(g[k].s-F)/(g[k][y]-I);m<k;)g[m].s=F+(g[m][y]-I)*P,m++}}}return g}function YI(e,r,t,n,a,o,i){var l=r._length,u=e._fullLayout,s=t._id,f=n._id,c=u._firstScatter[ZI(r)]===r.uid,g=(Jb(r,u,t,n)||{}).orientation,b=r.fill;t._minDtick=0,n._minDtick=0;var d={padded:!0},_={padded:!0};i&&(d.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"))?d.tozero=!0:!(r.error_y||{}).visible&&(b==="tonexty"||b==="tozeroy"||!Zb.hasMarkers(r)&&!Zb.hasText(r))&&(d.padded=!1,d.ppad=0),T&&(b==="tozeroy"||b==="tonexty"&&(c||g==="v"))?_.tozero=!0:(b==="tonextx"||b==="tozerox")&&(_.padded=!1),s&&(r._extremes[s]=Zc.findExtremes(t,a,d)),f&&(r._extremes[f]=Zc.findExtremes(n,o,_))}function XI(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"};Zc.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 WI(e,r){var t=ZI(r),n=e._firstScatter;n[t]||(n[t]=r.uid)}function ZI(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}}JI.exports={calc:bve,calcMarkerSize:XI,calcAxisExpansion:YI,setFirstScatter:WI,getStackOpts:Jb}});var KI=xe((D7e,$I)=>{"use strict";$I.exports=mp;var xve=rr().distinctVals;function mp(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=xve(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={}}mp.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};mp.prototype.get=function(r,t,n){var a=this.getLabel(r,t,n);return this.bins[a]||0};mp.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 QI={};Ot(QI,{TEXTPAD:()=>_ve,eventDataKeys:()=>wve});var _ve,wve,jI=qt(()=>{"use strict";_ve=3,wve=["value","label"]});var az=xe((P7e,nz)=>{"use strict";var xi=ft(),{isArrayOrTypedArray:Wo}=rr(),{BADNUM:Af}=(Mn(),or(In)),Mve=Cr(),Jc=Bt(),{getAxisGroup:Tve}=mc(),bp=KI(),{TEXTPAD:Ave}=(jI(),or(QI)),{LINE_SPACING:kve}=(Kn(),or($n)),{BR_TAG_ALL:Sve}=Qn();function Cve(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&&Mve.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(Rve(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);Lve(i),i.length&&Pve(e,r,t,i,a),o.length&&Kb(e,r,t,o,a);break}Eve(n),Ove(n,r)}}function Eve(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=xi(o)?+o:+o.slice(0,-1),l=xi(o)?"px":"%",a.cornerradiusvalue=i,a.cornerradiusform=l))}function Lve(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=xi(o)?+o:+o.slice(0,-1),l=xi(o)?"px":"%",r=0;r<e.length;r++)t=e[r],a=t[0].t,a.cornerradiusvalue=i,a.cornerradiusform=l}}function Rve(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(Wo(i)){for(n=0;n<Math.min(i.length,a.length);n++)l=s(i[n],0,u),xi(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=xi(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 bp([i],{posAxis:r,sepNegVal:!1,overlapNoMerge:!a.norm});jb(e,r,l,a),a.norm?(tz(l),ex(t,l,a)):rz(t,l)}}function Dve(e,r,t,n,a){var o=new bp(n,{posAxis:r,sepNegVal:!1,overlapNoMerge:!a.norm});jb(e,r,o,a),Nve(o,r),a.norm?(tz(o),ex(t,o,a)):rz(t,o)}function Pve(e,r,t,n,a){var o=new bp(n,{posAxis:r,sepNegVal:a.mode==="relative",overlapNoMerge:!(a.norm||a.mode==="stack"||a.mode==="relative")});jb(e,r,o,a),Fve(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!==Af){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,d,_;if(r._id==="angularaxis")g=c,b=g*(1-(n.groupgap||0)),d=-b/2;else{var T=Tve(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?d=((2*S._offsetIndex+1-M)*g-b)/2:d=f?((2*m+1-s)*g-b)/2:-b/2}var h=k[0].t;h.barwidth=b,h.offsetindex=S._offsetIndex||0,h.poffset=d,h.bargroupwidth=c,h.bardelta=l}t.binWidth=u[0][0].t.barwidth/100,Ive(t),zve(r,t),r._id==="angularaxis"?ez(r,t):ez(r,t,f)}function Ive(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(Wo(u)){for(f=Array.prototype.slice.call(u,0,a.length),n=0;n<f.length;n++)xi(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(Wo(c)){var b=Array.prototype.slice.call(c,0,a.length);for(n=0;n<b.length;n++)xi(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 zve(e,r){for(var t=r.traces,n=kf(e),a=0;a<t.length;a++)for(var o=t[a],i=o[0].t,l=i.poffset,u=Wo(l),s=i.barwidth,f=Wo(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 d=(u?l[c]:l)+b/2;g[n]=g.p+d}}function ez(e,r,t){var n=r.traces,a=r.minDiff,o=a/2;Jc.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,d;for(d=0;d<l.length;d++)c=l[d],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=Wo(T),S=Wo(m);for(d=0;d<l.length;d++){c=l[d];var x=k?T[d]:T,M=S?m[d]:m;g=c.p+x,b=g+M,f.push(g,b)}}s._extremes[e._id]=Jc.findExtremes(e,f,{padded:!1})}}function rz(e,r){for(var t=r.traces,n=kf(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,d=l?u?g.y:g.x:b+g.s;g[n]=d,s.push(d),g.hasB&&s.push(b),(!g.hasB||!g.b)&&(f=!0)}let{ppadminus:_,ppadplus:T}=rx(i,o);i._extremes[e._id]=Jc.findExtremes(e,s,{tozero:f,padded:!0,ppadplus:T,ppadminus:_})}}function Fve(e,r,t){var n=kf(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!==Af&&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!==Af){var b;l?b=f.s:b=f.s+f.b;var d=r.put(f.p,c,b),_=d+b;f.b=d,f[n]=_,t.norm||(g.push(_),f.hasB&&g.push(d))}if(!t.norm){let{ppadminus:T,ppadplus:m}=rx(i,o);i._extremes[e._id]=Jc.findExtremes(e,g,{tozero:!0,padded:!0,ppadplus:m,ppadminus:T})}}}function tz(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!==Af&&e.put(i.p,a,i.b+i.s)}}function Nve(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 bp([a],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),u=0;u<a.length;u++){var s=a[u];if(s.p!==Af){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=kf(e),o=t.norm==="fraction"?1:100,i=o/1e9,l=e.l2c(e.c2l(0)),u=t.mode==="stack"?o:l;function s(h){return xi(e.c2l(h))&&(h<l-i||h>u+i||!xi(l))}for(var f=0;f<n.length;f++){for(var c=n[f],g=c[0].t.offsetindex,b=c[0].trace,d=[],_=!1,T=!1,m=0;m<c.length;m++){var k=c[m];if(k.s!==Af){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,d.push(M),T=T||s(M),k.hasB&&(d.push(x),T=T||s(x)),(!k.hasB||!k.b)&&(_=!0)}}let{ppadminus:h,ppadplus:w}=rx(b,c);b._extremes[e._id]=Jc.findExtremes(e,d,{tozero:_,padded:T,ppadplus:w,ppadminus:h})}}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(Sve)||[]).length+1};var t;e.texttemplate?t=n(e.texttemplate):t=Wo(e.text)?Math.max(...e.text.map(o=>n(o))):n(e.text);let a=e.outsidetextfont.size*kve*t+Ave;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 qve(e,r,t,n){for(var a=kf(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 Ove(e,r){var t=kf(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;xi(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={},d=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=Wo(_);for(o=0;o<i.length;o++){var m=i[o],k=m[t]-m.w/2;if(xi(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,d){var M=Math.min(m.s0,m.s1)||0,h=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],h):h}}}d&&qve(e,g,b,r)}function kf(e){return e._id.charAt(0)}nz.exports={crossTraceCalc:Cve,setGroupPositions:Qb}});var sz=xe((I7e,lz)=>{"use strict";var iz=$b(),oz=az().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};oz(e,t,n,u,c),oz(e,n,t,l,c)}lz.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,d,_,T,m,k,S,x,M,h;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"),h=new Array(y.length),u=0;u<h.length;u++)h[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(d=g[s][x];d>v[f]&&f<v.length;f++)tx(g,s,v[f],u,h,k,x),s++;if(d!==v[f]){for(c=0;c<u;c++)tx(l[y[c]],f,d,c,h,k,x);v.splice(f,0,d)}f++}for(;f<v.length;f++)tx(g,s,v[f],u,h,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 R=g[0].trace,E=iz.calcMarkerSize(R,R._rawLength),D=Array.isArray(E);if(E&&h[u]||D){var I=E;for(E=new Array(A),s=0;s<A;s++)E[s]=g[s].gap?0:D?I[g[s].i]:I}var F=new Array(A),P=new Array(A);for(s=0;s<A;s++)F[s]=g[s].x,P[s]=g[s].y;iz.calcAxisExpansion(r,R,n,a,F,P,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=Uve(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 Uve(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 pz=xe((z7e,dz)=>{"use strict";var Hve=kt(),vz=(Mn(),or(In)),$c=vz.BADNUM,hz=vz.LOG_CLIP,uz=hz+.5,fz=hz-.5,xp=rr(),Vve=xp.segmentsIntersect,cz=xp.constrain,nx=(Ud(),or(Bd));dz.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,d=t.shape,_=d==="linear",T=n.fill&&n.fill!=="none",m=[],k=nx.minTolerance,S=r.length,x=new Array(S),M=0,h,w,y,v,A,p,R,E,D,I,F,P,L,z,O,B;function V(Oe){var We=r[Oe];if(!We)return!1;var Ge=t.linearized?a.l2p(We.x):a.c2p(We.x),tr=t.linearized?o.l2p(We.y):o.c2p(We.y);if(Ge===$c){if(i&&(Ge=a.c2p(We.x,!0)),Ge===$c)return!1;l&&tr===$c&&(Ge*=Math.abs(a._m*s*(a._m>0?uz:fz)/(o._m*u*(o._m>0?uz:fz)))),Ge*=1e3}if(tr===$c){if(l&&(tr=o.c2p(We.y,!0)),tr===$c)return!1;tr*=1e3}return[Ge,tr]}function J(Oe,We,Ge,tr){var nr=Ge-Oe,er=tr-We,Qe=.5-Oe,Ce=.5-We,Fe=nr*nr+er*er,Ke=nr*Qe+er*Ce;if(Ke>0&&Ke<Fe){var je=Qe*er-Ce*nr;if(je*je<Fe)return!0}}var Q,G;function q(Oe,We){var Ge=Oe[0]/u,tr=Oe[1]/s,nr=Math.max(0,-Ge,Ge-1,-tr,tr-1);return nr&&Q!==void 0&&J(Ge,tr,Q,G)&&(nr=0),nr&&We&&J(Ge,tr,We[0]/u,We[1]/s)&&(nr=0),(1+nx.toleranceGrowth*nr)*b}function Z(Oe,We){var Ge=Oe[0]-We[0],tr=Oe[1]-We[1];return Math.sqrt(Ge*Ge+tr*tr)}var re=nx.maxScreensAway,$=-u*re,ie=u*(1+re),j=-s*re,te=s*(1+re),ue=[[$,j,ie,j],[ie,j,ie,te],[ie,te,$,te],[$,te,$,j]],ee,ae,fe,we,Me,ke;function ge(Oe,We){for(var Ge=[],tr=0,nr=0;nr<4;nr++){var er=ue[nr],Qe=Vve(Oe[0],Oe[1],We[0],We[1],er[0],er[1],er[2],er[3]);Qe&&(!tr||Math.abs(Qe.x-Ge[0][0])>1||Math.abs(Qe.y-Ge[0][1])>1)&&(Qe=[Qe.x,Qe.y],tr&&Z(Qe,Oe)<Z(Ge[0],Oe)?Ge.unshift(Qe):Ge.push(Qe),tr++)}return Ge}function Ee(Oe){if(Oe[0]<$||Oe[0]>ie||Oe[1]<j||Oe[1]>te)return[cz(Oe[0],$,ie),cz(Oe[1],j,te)]}function Le(Oe,We){if(Oe[0]===We[0]&&(Oe[0]===$||Oe[0]===ie)||Oe[1]===We[1]&&(Oe[1]===j||Oe[1]===te))return!0}function se(Oe,We){var Ge=[],tr=Ee(Oe),nr=Ee(We);return tr&&nr&&Le(tr,nr)||(tr&&Ge.push(tr),nr&&Ge.push(nr)),Ge}function X(Oe,We,Ge){return function(tr,nr){var er=Ee(tr),Qe=Ee(nr),Ce=[];if(er&&Qe&&Le(er,Qe))return Ce;er&&Ce.push(er),Qe&&Ce.push(Qe);var Fe=2*xp.constrain((tr[Oe]+nr[Oe])/2,We,Ge)-((er||tr)[Oe]+(Qe||nr)[Oe]);if(Fe){var Ke;er&&Qe?Ke=Fe>0==er[Oe]>Qe[Oe]?er:Qe:Ke=er||Qe,Ke[Oe]+=Fe}return Ce}}var K;d==="linear"||d==="spline"?K=ge:d==="hv"||d==="vh"?K=se:d==="hvh"?K=X(0,$,ie):d==="vhv"&&(K=X(1,j,te));function ye(Oe,We){var Ge=We[0]-Oe[0],tr=(We[1]-Oe[1])/Ge,nr=(Oe[1]*We[0]-We[1]*Oe[0])/Ge;return nr>0?[tr>0?$:ie,te]:[tr>0?ie:$,j]}function oe(Oe){var We=Oe[0],Ge=Oe[1],tr=We===x[M-1][0],nr=Ge===x[M-1][1];if(!(tr&&nr))if(M>1){var er=We===x[M-2][0],Qe=Ge===x[M-2][1];tr&&(We===$||We===ie)&&er?Qe?M--:x[M-1]=Oe:nr&&(Ge===j||Ge===te)&&Qe?er?M--:x[M-1]=Oe:x[M++]=Oe}else x[M++]=Oe}function he(Oe){x[M-1][0]!==Oe[0]&&x[M-1][1]!==Oe[1]&&oe([fe,we]),oe(Oe),Me=null,fe=we=0}var pe=xp.isArrayOrTypedArray(c);function me(Oe){if(Oe&&f&&(Oe.i=h,Oe.d=r,Oe.trace=n,Oe.marker=pe?c[Oe.i]:c,Oe.backoff=f),Q=Oe[0]/u,G=Oe[1]/s,ee=Oe[0]<$?$:Oe[0]>ie?ie:0,ae=Oe[1]<j?j:Oe[1]>te?te:0,ee||ae){if(!M)x[M++]=[ee||Oe[0],ae||Oe[1]];else if(Me){var We=K(Me,Oe);We.length>1&&(he(We[0]),x[M++]=We[1])}else ke=K(x[M-1],Oe)[0],x[M++]=ke;var Ge=x[M-1];ee&&ae&&(Ge[0]!==ee||Ge[1]!==ae)?(Me&&(fe!==ee&&we!==ae?oe(fe&&we?ye(Me,Oe):[fe||ee,we||ae]):fe&&we&&oe([fe,we])),oe([ee,ae])):fe-ee&&we-ae&&oe([ee||fe,ae||we]),Me=Oe,fe=ee,we=ae}else Me&&he(K(Me,Oe)[0]),x[M++]=Oe}for(h=0;h<S;h++)if(w=V(h),!!w){for(M=0,Me=null,me(w),h++;h<S;h++){if(v=V(h),!v){if(g)continue;break}if(!_||!t.simplify){me(v);continue}var Se=V(h+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,F=I,P=z=O=0,R=!1,y=v,h++;h<r.length;h++){if(p=Se,Se=V(h+1),!p){if(g)continue;break}if(D=[p[0]-w[0],p[1]-w[1]],B=D[0]*E[1]-D[1]*E[0],z=Math.min(z,B),O=Math.max(O,B),O-z>q(p,Se))break;y=p,L=D[0]*E[0]+D[1]*E[1],L>F?(F=L,v=p,R=!1):L<P&&(P=L,A=p,R=!0)}if(R?(me(v),y!==A&&me(A)):(A!==w&&me(A),y!==v&&me(v)),me(y),h>=r.length||!p)break;me(p),w=p}}Me&&oe([fe||Me[0],we||Me[1]]),m.push(x.slice(0,M))}var ve=d.slice(d.length-1);if(f&&ve!=="h"&&ve!=="v"){for(var de=!1,be=-1,Ae=[],Pe=0;Pe<m.length;Pe++)for(var Ie=0;Ie<m[Pe].length-1;Ie++){var Ye=m[Pe][Ie],qe=m[Pe][Ie+1],Ve=Hve.applyBackoff(qe,Ye);(Ve[0]!==qe[0]||Ve[1]!==qe[1])&&(de=!0),Ae[be+1]||(be++,Ae[be]=[Ye,[Ve[0],Ve[1]]])}return de?Ae:m}return m}});var mz=xe((F7e,yz)=>{"use strict";var gz={tonextx:1,tonexty:1,tonext:1};yz.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 gz&&b>=0?u=b:(u=b=g,g++),u<c&&(f=!0),a._groupIndex=c=u;var d=n.slice();f&&d.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<d.length;o++)a=d[o][0].trace,i=a.stackgroup||"",a.visible===!0?(a._nexttrace=null,a.fill in gz&&(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 d}});var wz=xe((N7e,_z)=>{"use strict";var Ui=st(),Gve=Cr(),Kc=rr(),Sf=Kc.ensureSingle,xz=Kc.identity,nn=kt(),Cf=Ra(),Yve=pz(),Xve=mz(),_p=rb().tester;_z.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,c=Xve(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(),Wve(r,l,t),f){i&&(u=i());var g=Ui.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,d){bz(r,d,t,b,c,this,o)})})}else l.each(function(b,d){bz(r,d,t,b,c,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function Wve(e,r,t){r.each(function(n){var a=Sf(Ui.select(this),"g","fills");nn.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,xz);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){o[u]=Sf(Ui.select(this),"path","js-fill")})})}function bz(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;Zve(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,d=b.line,_=Ui.select(o),T=Sf(_,"g","errorbars"),m=Sf(_,"g","lines"),k=Sf(_,"g","points"),S=Sf(_,"g","text");if(Gve.getComponentMethod("errorbars","plot")(e,T,t,i),b.visible!==!0)return;f(_).style("opacity",b.opacity);var x,M,h=b.fill.charAt(b.fill.length-1);h!=="x"&&h!=="y"&&(h="");var w,y;h==="y"?(w=1,y=g.c2p(0,!0)):h==="x"&&(w=0,y=c.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=_;var v="",A=[],p=b._prevtrace,R=null,E=null;p&&(v=p._prevRevpath||"",M=p._nextFill,A=p._ownPolygons,R=p._fillsegments,E=p._fillElement);var D,I,F="",P="",L,z,O,B,V,J,Q=[];b._polygons=[];var G=[],q=[],Z=Kc.noop;if(x=b._ownFill,Cf.hasLines(b)||b.fill!=="none"){M&&M.datum(n),["hv","vh","hvh","vhv"].indexOf(d.shape)!==-1?(L=nn.steps(d.shape),z=nn.steps(d.shape.split("").reverse().join(""))):d.shape==="spline"?L=z=function(X){var K=X[X.length-1];return X.length>1&&X[0][0]===K[0]&&X[0][1]===K[1]?nn.smoothclosed(X.slice(1),d.smoothing):nn.smoothopen(X,d.smoothing)}:L=z=function(X){return"M"+X.join("L")},O=function(X){return z(X.reverse())},q=Yve(n,{xaxis:c,yaxis:g,trace:b,connectGaps:b.connectgaps,baseTolerance:Math.max(d.width||1,3)/4,shape:d.shape,backoff:d.backoff,simplify:d.simplify,fill:b.fill}),G=new Array(q.length);var re=0;for(u=0;u<q.length;u++){var $,ie=q[u];!$||!h?($=ie.slice(),G[re]=$,re++):$.push.apply($,ie)}b._fillElement=null,b._fillExclusionElement=E,b._fillsegments=G.slice(0,re),G=b._fillsegments,q.length&&(B=q[0][0].slice(),V=q[q.length-1],J=V[V.length-1].slice()),Z=function(X){return function(K){if(D=L(K),I=O(K),F?h?(F+="L"+D.slice(1),P=I+("L"+P.slice(1))):(F+="Z"+D,P=I+"Z"+P):(F=D,P=I),Cf.hasLines(b)){var ye=Ui.select(this);if(ye.datum(n),X)f(ye.style("opacity",0).attr("d",D).call(nn.lineGroupStyle)).style("opacity",1);else{var oe=f(ye);oe.attr("d",D),nn.singleLineStyle(n,oe)}}}}}var j=m.selectAll(".js-line").data(q);f(j.exit()).style("opacity",0).remove(),j.each(Z(!1)),j.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(nn.lineGroupStyle).each(Z(!0)),nn.setClipUrl(j,t.layerClipId,e);function te(X){f(X).attr("d","M0,0Z")}var ue=function(){var X=new Array(G.length);for(u=0;u<G.length;u++)X[u]=_p(G[u]);return X},ee=function(X){var K,ye;if(!X||X.length===0)for(K=new Array(G.length),ye=0;ye<G.length;ye++){var oe=G[ye][0].slice(),he=G[ye][G[ye].length-1].slice();oe[w]=he[w]=y;var pe=[he,oe],me=pe.concat(G[ye]);K[ye]=_p(me)}else{for(K=new Array(X.length-1+G.length),ye=0;ye<X.length-1;ye++)K[ye]=_p(X[ye]);var Se=X[X.length-1].slice();for(Se.reverse(),ye=0;ye<G.length;ye++)K[X.length-1+ye]=_p(G[ye].concat(Se))}return K};q.length?(x?(x.datum(n),B&&J&&(h?(B[w]=J[w]=y,f(x).attr("d","M"+J+"L"+B+"L"+F.slice(1)).call(nn.singleFillStyle,e),Q=ee(null)):(f(x).attr("d",F+"Z").call(nn.singleFillStyle,e),Q=ue())),b._polygons=Q,b._fillElement=x):M&&(b.fill.slice(0,6)==="tonext"&&F&&v?(b.fill==="tonext"?(f(M).attr("d",F+"Z"+v+"Z").call(nn.singleFillStyle,e),Q=ue(),b._polygons=Q.concat(A)):(f(M).attr("d",F+"L"+v.slice(1)+"Z").call(nn.singleFillStyle,e),Q=ee(R),b._polygons=Q),b._fillElement=M):te(M)),b._prevRevpath=P):(x?te(x):M&&te(M),b._prevRevpath=null),b._ownPolygons=Q;function ae(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 Me(X){return X.id}function ke(X){if(X.ids)return Me}function ge(){return!1}function Ee(X,K,ye){var oe,he,pe,me=ye[0].trace,Se=Cf.hasMarkers(me),ve=Cf.hasText(me),de=ke(me),be=ge,Ae=ge;if(Se||ve){var Pe=xz,Ie=me.stackgroup,Ye=Ie&&e._fullLayout._scatterStackOpts[c._id+g._id][Ie].stackgaps==="infer zero";me.marker.maxdisplayed||me._needsCull?Pe=Ye?fe:ae:Ie&&!Ye&&(Pe=we),Se&&(be=Pe),ve&&(Ae=Pe)}he=X.selectAll("path.point"),oe=he.data(be,de);var qe=oe.enter().append("path").classed("point",!0);s&&qe.call(nn.pointStyle,me,e).call(nn.translatePoints,c,g).style("opacity",0).transition().style("opacity",1),oe.order();var Ve;Se&&(Ve=nn.makePointStyleFns(me)),oe.each(function(Oe){var We=Ui.select(this),Ge=f(We);pe=nn.translatePoint(Oe,Ge,c,g),pe?(nn.singlePointStyle(Oe,Ge,me,Ve,e),t.layerClipId&&nn.hideOutsideRangePoint(Oe,Ge,c,g,me.xcalendar,me.ycalendar),me.customdata&&We.classed("plotly-customdata",Oe.data!==null&&Oe.data!==void 0)):Ge.remove()}),s?oe.exit().transition().style("opacity",0).remove():oe.exit().remove(),he=K.selectAll("g"),oe=he.data(Ae,de),oe.enter().append("g").classed("textpoint",!0).append("text"),oe.order(),oe.each(function(Oe){var We=Ui.select(this),Ge=f(We.select("text"));pe=nn.translatePoint(Oe,Ge,c,g),pe?t.layerClipId&&nn.hideOutsideRangePoint(Oe,We,c,g,me.xcalendar,me.ycalendar):We.remove()}),oe.selectAll("text").call(nn.textPointStyle,me,e).each(function(Oe){var We=c.c2p(Oe.x),Ge=g.c2p(Oe.y);Ui.select(this).selectAll("tspan.line").each(function(){f(Ui.select(this)).attr({x:We,y:Ge})})}),oe.exit().remove()}k.datum(n),S.datum(n),Ee(k,S,n);var Le=b.cliponaxis===!1,se=Le?null:t.layerClipId;nn.setClipUrl(k,se,e),nn.setClipUrl(S,se,e)}function Zve(e,r,t,n,a){var o=t.xaxis,i=t.yaxis,l=Ui.extent(Kc.simpleMap(o.range,o.r2c)),u=Ui.extent(Kc.simpleMap(i.range,i.r2c)),s=n[0].trace;if(Cf.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;Cf.hasMarkers(m)&&m.marker.maxdisplayed>0&&T<r&&b++});var d=Math.round(b*g/3+Math.floor(b/3)*g/7.1);n.forEach(function(_){delete _.vis}),c.forEach(function(_,T){Math.round((T+d)%g)===0&&(_.vis=!0)})}}}});var Tz=xe((q7e,Mz)=>{"use strict";Mz.exports={container:"marker",min:"cmin",max:"cmax"}});var kz=xe((O7e,Az)=>{"use strict";var wp=Bt();Az.exports=function(r,t,n){var a={},o={_fullLayout:n},i=wp.getFromTrace(o,t,"x"),l=wp.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=wp.tickText(i,i.c2l(u),!0).text,a.yLabel=wp.tickText(l,l.c2l(s),!0).text,a}});var lx=xe((B7e,Sz)=>{"use strict";var ax=st(),Ef=kt(),Jve=Cr();function $ve(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(Ef.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Ef.fillGroupStyle,e,!1),Jve.getComponentMethod("errorbars","style")(r)}function ix(e,r,t){Ef.pointStyle(e.selectAll("path.point"),r,t)}function ox(e,r,t){Ef.textPointStyle(e.selectAll("text"),r,t)}function Kve(e,r,t){var n=r[0].trace;n.selectedpoints?(Ef.selectedPointStyle(t.selectAll("path.point"),n),Ef.selectedTextStyle(t.selectAll("text"),n)):(ix(t,n,e),ox(t,n,e))}Sz.exports={style:$ve,stylePoints:ix,styleText:ox,styleOnSelect:Kve}});var Ez=xe((U7e,Cz)=>{"use strict";var Lf=Zr(),Qve=Ra();Cz.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Lf.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&&Lf.opacity(o)?o:i&&Lf.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?Lf.opacity(a)<.3?Lf.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Lf.opacity(n)&&Qve.hasLines(r)&&r.line.width?n:r.fillcolor)}});var Dz=xe((H7e,Rz)=>{"use strict";var Mp=rr(),Lz=mo(),jve=Cr(),ehe=Ez(),sx=Zr(),rhe=Mp.fillText;Rz.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,d=!!i.xperiodalignment,_=!!i.yperiodalignment;if(g.indexOf("points")!==-1){var T=function(P){if(d){var L=l.c2p(P.xStart),z=l.c2p(P.xEnd);return s>=Math.min(L,z)&&s<=Math.max(L,z)?0:1/0}var O=Math.max(3,P.mrc||0),B=1-1/O,V=Math.abs(l.c2p(P.x)-s);return V<O?B*V/O:V-O+B},m=function(P){if(_){var L=u.c2p(P.yStart),z=u.c2p(P.yEnd);return f>=Math.min(L,z)&&f<=Math.max(L,z)?0:1/0}var O=Math.max(3,P.mrc||0),B=1-1/O,V=Math.abs(u.c2p(P.y)-f);return V<O?B*V/O:V-O+B},k=function(P){var L=Math.max(b,P.mrc||0),z=l.c2p(P.x)-s,O=u.c2p(P.y)-f;return Math.max(Math.sqrt(z*z+O*O)-L,1-b/L)},S=Lz.getDistanceFunction(a,T,m,k);if(Lz.getClosest(o,S,r),r.index!==!1){var x=o[r.index],M=l.c2p(x.x,!0),h=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 Mp.extendFlat(r,{color:ehe(i,x),x0:M-w,x1:M+w,xLabelVal:A,y0:h-w,y1:h+w,yLabelVal:p,spikeDistance:k(x),hovertemplate:i.hovertemplate}),rhe(x,i,r),jve.getComponentMethod("errorbars","hoverInfo")(x,i,r),[r]}}function R(P){if(!P)return!1;var L=P.node();try{var z=new DOMPoint(c[0],c[1]);return L.isPointInFill(z)}catch(B){var O=L.ownerSVGElement.createSVGPoint();return O.x=c[0],O.y=c[1],L.isPointInFill(O)}}function E(P){var L,z=[],O=1/0,B=-1/0,V=1/0,J=-1/0,Q;for(L=0;L<P.length;L++){var G=P[L];G.contains(c)&&(z.push(G),V=Math.min(V,G.ymin),J=Math.max(J,G.ymax))}if(z.length===0)return null;V=Math.max(V,0),J=Math.min(J,u._length),Q=(V+J)/2;var q,Z,re,$,ie,j,te;for(L=0;L<z.length;L++)for(Z=z[L].pts,q=1;q<Z.length;q++)j=Z[q-1][1],te=Z[q][1],j>Q!=te>=Q&&($=Z[q-1][0],ie=Z[q][0],te-j&&(re=$+(ie-$)*(Q-j)/(te-j),O=Math.min(O,re),B=Math.max(B,re)));return O=Math.max(O,0),B=Math.min(B,l._length),{x0:O,x1:B,y0:Q,y1:Q}}if(g.indexOf("fills")!==-1&&i._fillElement){var D=R(i._fillElement)&&!R(i._fillExclusionElement);if(D){var I=E(i._polygons);I===null&&(I={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var F=sx.defaultLine;return sx.opacity(i.fillcolor)?F=i.fillcolor:sx.opacity((i.line||{}).color)&&(F=i.line.color),Mp.extendFlat(r,{distance:r.maxHoverDistance,x0:I.x0,x1:I.x1,y0:I.y0,y1:I.y1,color:F,hovertemplate:!1}),delete r.index,i.text&&!Mp.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var zz=xe((V7e,Iz)=>{"use strict";var Pz=Ra();Iz.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&&!Pz.hasMarkers(l)&&!Pz.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 Nz=xe((G7e,Fz)=>{"use strict";Fz.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var fx=xe((Y7e,Bz)=>{"use strict";var Tp=Cr().traceIs,ux=S3();Bz.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(the(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function the(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=nhe(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:!Tp(o,"cartesian")||Tp(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,Oz(o,n)){var s=qz(o),f=[];for(a=0;a<r.length;a++){var c=r[a];!Tp(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 nhe(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(Oz(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function qz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Oz(e,r){var t=qz(e),n=Tp(e,"box-violin");return n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var Hz=xe((X7e,Uz)=>{"use strict";var ahe=ba().isTypedArraySpec;function ihe(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)}Uz.exports=function(r,t,n,a){if(t.type==="category"){var o=r.categoryarray,i=Array.isArray(o)&&o.length>0||ahe(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=ihe(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var Yz=xe((W7e,Gz)=>{"use strict";var Vz=Zr(),ohe=ao(),lhe=rr();Gz.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(y,v){return lhe.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=Vz.mix(o,a.bgColor,a.blend||ohe.lightFraction),c=i("gridcolor",f),g=i("gridwidth"),b=i("griddash"),d=n("showgrid",a.showGrid||!!c||!!g||!!b);if(d||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var _=Vz.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),h=i("zerolinewidth"),w=n("zeroline",a.showGrid||!!M||!!h);w||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var kp=xe((Z7e,Kz)=>{"use strict";var Xz=ft(),she=Cr(),Qc=rr(),uhe=At(),fhe=Ii(),cx=si(),Wz=Km(),Zz=jm(),che=t3(),vhe=n3(),hhe=Hz(),dhe=Yz(),phe=J3(),Jz=C1(),Ap=(Sn(),or(kn)).WEEKDAY_PATTERN,ghe=(Sn(),or(kn)).HOUR_PATTERN;Kz.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=she.getComponentMethod("calendars","handleDefaults");b(r,t,"calendar",a.calendar),a.noTicklabelmode||(g=n("ticklabelmode"))}!a.noTicklabelindex&&(c==="date"||c==="linear")&&n("ticklabelindex");var d="";(!a.noTicklabelposition||c==="multicategory")&&(d=Qc.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",d.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),Jz(t,o),phe(r,t,n,a),hhe(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(vhe(r,t,n,c,a),!s)return t;n("title.text",m),Qc.coerceFont(n,"title.font",l,{overrideDflt:{size:Qc.bigFont(l.size),color:T}}),Wz(r,t,n,c);var k=a.hasMinor;if(k&&(uhe.newContainer(t,"minor"),Wz(r,t,n,c,{isMinor:!0})),che(r,t,n,c,a),Zz(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,Zz(r,t,n,a),a.isMinor=S}dhe(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(fhe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:yhe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var h=0;h<t.rangebreaks.length;h++)if(t.rangebreaks[h].pattern===Ap){t._hasDayOfWeekBreaks=!0;break}if(Jz(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,Qc.warn(y.type+" traces do not work on axes with rangebreaks. Setting trace "+y.index+" to `visible: false`."))}}return t};function yhe(e,r,t){function n(g,b){return Qc.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=$z(o[l]),u){i=Ap;break}}var s=n("pattern",i);if(s===Ap)for(l=0;l<2;l++)u=$z(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case Ap:if(!Xz(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 ghe:if(!Xz(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 mhe={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function $z(e){if(typeof e=="string")return mhe[e.slice(0,3).toLowerCase()]}});var vx=xe((J7e,Qz)=>{"use strict";var bhe=ft(),Sp=rr();Qz.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,d,_;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||(bhe(r.position)?"free":o[0]||"free"),g=g||(l==="x"?"bottom":"left"),b=b||0,d=0,_=!1;var T=Sp.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),m=Sp.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,d=m==="left"?-3:3),n("shift",d)}n("position",b)}n("automargin",_);var S=!1;if(i.length&&(S=Sp.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),Sp.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 lF=xe(($7e,oF)=>{"use strict";var js=rr(),jz=Zr(),xhe=fo().isUnifiedHover,_he=M5(),eF=At(),whe=Ou(),rF=si(),Mhe=fx(),tF=kp(),The=mc(),nF=vx(),dx=xn(),Ao=dx.id2name,aF=dx.name2id,Ahe=(Sn(),or(kn)).AX_ID_PATTERN,iF=Cr(),Cp=iF.traceIs,hx=iF.getComponentMethod;function Ep(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}oF.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},c={},g={},b={},d={},_,T;for(_=0;_<n.length;_++){var m=n[_];if(Cp(m,"cartesian")){var k;if(m.xaxis)k=Ao(m.xaxis),Ep(o,k,m);else if(m.xaxes)for(T=0;T<m.xaxes.length;T++)Ep(o,Ao(m.xaxes[T]),m);var S;if(m.yaxis)S=Ao(m.yaxis),Ep(o,S,m);else if(m.yaxes)for(T=0;T<m.yaxes.length;T++)Ep(o,Ao(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),(!Cp(m,"carpet")||m.type==="carpet"&&!m._cheater)&&k&&(u[k]=!0)),m.type==="carpet"&&m._cheater&&k&&(i[k]=!0),Cp(m,"2dMap")&&(b[k]=!0,b[S]=!0),Cp(m,"oriented")){var x=m.orientation==="h"?S:k;d[x]=!0}}}var M=t._subplots,h=M.xaxis,w=M.yaxis,y=js.simpleMap(h,Ao),v=js.simpleMap(w,Ao),A=y.concat(v),p=jz.background;h.length&&w.length&&(p=js.coerce(r,t,whe,"plot_bgcolor"));var R=jz.combine(p,t.paper_bgcolor),E,D,I,F,P;function L(){var he=o[E]||[];P._traceIndices=he.map(function(pe){return pe.index}),P._annIndices=[],P._shapeIndices=[],P._selectionIndices=[],P._imgIndices=[],P._subplotsWith=[],P._counterAxes=[],P._name=P._attr=E,P._id=D}function z(he,pe){return js.coerce(F,P,rF,he,pe)}function O(he,pe){return js.coerce2(F,P,rF,he,pe)}function B(he){return he==="x"?w:h}function V(he,pe){for(var me=he==="x"?y:v,Se=[],ve=0;ve<me.length;ve++){var de=me[ve];de!==pe&&!(r[de]||{}).overlaying&&Se.push(aF(de))}return Se}var J={x:B("x"),y:B("y")},Q=J.x.concat(J.y),G={},q=[];function Z(){var he=F.matches;Ahe.test(he)&&Q.indexOf(he)===-1&&(G[he]=F.type,q=Object.keys(G))}var re=_he(r,t),$=xhe(re);for(_=0;_<A.length;_++){E=A[_],D=aF(E),I=E.charAt(0),js.isPlainObject(r[E])||(r[E]={}),F=r[E],P=eF.newContainer(t,E,I+"axis"),L();var ie=I==="x"&&!u[E]&&i[E]||I==="y"&&!s[E]&&l[E],j=I==="y"&&(!f[E]&&c[E]||g[E]),te={hasMinor:!0,letter:I,font:t.font,outerTicks:b[E],showGrid:!d[E],data:o[E]||[],bgColor:R,calendar:t.calendar,automargin:!0,visibleDflt:ie,reverseDflt:j,autotypenumbersDflt:a,splomStash:((t._splomAxes||{})[I]||{})[D],noAutotickangles:I==="y"};z("uirevision",t.uirevision),Mhe(F,P,z,te),tF(F,P,z,te,t);var ue=$&&I===re.charAt(0),ee=O("spikecolor",$?P.color:void 0),ae=O("spikethickness",$?1.5:void 0),fe=O("spikedash",$?"dot":void 0),we=O("spikemode",$?"across":void 0),Me=O("spikesnap"),ke=z("showspikes",!!ue||!!ee||!!ae||!!fe||!!we||!!Me);ke||(delete P.spikecolor,delete P.spikethickness,delete P.spikedash,delete P.spikemode,delete P.spikesnap);var ge=Ao(F.overlaying),Ee=[0,1];if(t[ge]!==void 0){var Le=Ao(t[ge].anchor);t[Le]!==void 0&&(Ee=t[Le].domain)}nF(F,P,z,{letter:I,counterAxes:J[I],overlayableAxes:V(I,E),grid:t.grid,overlayingDomain:Ee}),z("title.standoff"),Z(),P._input=F}for(_=0;_<q.length;){D=q[_++],E=Ao(D),I=E.charAt(0),js.isPlainObject(r[E])||(r[E]={}),F=r[E],P=eF.newContainer(t,E,I+"axis"),L();var se={letter:I,font:t.font,outerTicks:b[E],showGrid:!d[E],data:[],bgColor:R,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:a,splomStash:((t._splomAxes||{})[I]||{})[D]};z("uirevision",t.uirevision),P.type=G[D]||"linear",tF(F,P,z,se,t),nF(F,P,z,{letter:I,counterAxes:J[I],overlayableAxes:V(I,E),grid:t.grid}),z("fixedrange"),z("modebardisable"),Z(),P._input=F}var X=hx("rangeslider","handleDefaults"),K=hx("rangeselector","handleDefaults");for(_=0;_<y.length;_++)E=y[_],F=r[E],P=t[E],X(r,t,E),P.type==="date"&&K(F,P,t,v,P.calendar),z("fixedrange"),z("modebardisable");for(_=0;_<v.length;_++){E=v[_],F=r[E],P=t[E];var ye=t[Ao(P.anchor)],oe=hx("rangeslider","isVisible")(ye);z("fixedrange",oe),z("modebardisable")}The.handleDefaults(r,t,{axIds:Q.concat(q).sort(dx.idSort),axHasImage:g})}});var fF=xe((K7e,uF)=>{"use strict";var khe=st(),sF=Cr(),Lp=rr(),$a=kt(),Rp=Bt();uF.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){Rp.redrawComponents(r);return}function i(T){var m=T.xaxis,k=T.yaxis;o._defs.select("#"+T.clipId+"> rect").call($a.setTranslate,0,0).call($a.setScale,1,1),T.plot.call($a.setTranslate,m._offset,k._offset).call($a.setScale,1,1);var S=T.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call($a.setPointGroupScale,1,1),S.selectAll(".textpoint").call($a.setTextPointsScale,1,1),S.call($a.hideOutsideRangePoints,T)}function l(T,m){var k=T.plotinfo,S=k.xaxis,x=k.yaxis,M=S._length,h=x._length,w=!!T.xr1,y=!!T.yr1,v=[];if(w){var A=Lp.simpleMap(T.xr0,S.r2l),p=Lp.simpleMap(T.xr1,S.r2l),R=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/R),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 D=Lp.simpleMap(T.yr0,x.r2l),I=Lp.simpleMap(T.yr1,x.r2l),F=D[1]-D[0],P=I[1]-I[0];v[1]=(D[1]*(1-m)+m*I[1]-D[1])/(D[0]-D[1])*h,v[3]=h*(1-m+m*P/F),x.range[0]=S.l2r(D[0]*(1-m)+m*I[0]),x.range[1]=x.l2r(D[1]*(1-m)+m*I[1])}else v[1]=0,v[3]=h;Rp.drawOne(r,S,{skipTitle:!0}),Rp.drawOne(r,x,{skipTitle:!0}),Rp.redrawComponents(r,[S._id,x._id]);var L=w?M/v[2]:1,z=y?h/v[3]:1,O=w?v[0]:0,B=y?v[1]:0,V=w?v[0]/v[2]*M:0,J=y?v[1]/v[3]*h:0,Q=S._offset-V,G=x._offset-J;k.clipRect.call($a.setTranslate,O,B).call($a.setScale,1/L,1/z),k.plot.call($a.setTranslate,Q,G).call($a.setScale,L,z),$a.setPointGroupScale(k.zoomScalePts,1/L,1/z),$a.setTextPointsScale(k.zoomScaleTxt,1/L,1/z)}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(),sF.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 sF.call("relayout",r,T).then(function(){for(var M=0;M<t.length;M++)i(t[M].plotinfo)})}var c,g,b,d=khe.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=d(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 Pp=st(),cF=Cr(),eu=rr(),She=Cn(),Che=kt(),vF=Y0().getModuleCalcData,Bl=xn(),Hi=(Sn(),or(kn)),Ehe=(wl(),or(_l)),pt=eu.ensureSingle;function Dp(e,r,t){return eu.ensureSingle(e,r,t,function(n){n.datum(t)})}var ru=Hi.zindexSeparator;ea.name="cartesian";ea.attr=["xaxis","yaxis"];ea.idRoot=["x","y"];ea.idRegex=Hi.idRegex;ea.attrRegex=Hi.attrRegex;ea.attributes=Nz();ea.layoutAttributes=si();ea.supplyLayoutDefaults=lF();ea.transitionAxes=fF();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[Bl.id2name(f)]||{}).anchor,Hi.idRegex.y.test(c)||(c="y"),o.push(f+c),i.push(f+c),u[c]||(u[c]=1,eu.pushUnique(a,c)));for(s=0;s<a.length;s++)c=a[s],u[c]||(f=(e[Bl.id2name(c)]||{}).anchor,Hi.idRegex.x.test(f)||(f="x"),o.push(f+c),i.push(f+c),l[f]||(l[f]=1,eu.pushUnique(n,f)));if(!i.length){f="",c="";for(var b in e)if(Hi.attrRegex.test(b)){var d=b.charAt(0);d==="x"?(!f||+b.slice(5)<+f.slice(5))&&(f=b):(!c||+b.slice(5)<+c.slice(5))&&(c=b)}f=f?Bl.name2id(f):"x",c=c?Bl.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(ru)!==-1)continue;b+=ru+(s+1),g=eu.extendFlat({},g,{id:b,plot:a._cartesianlayer.selectAll(".subplot").select("."+b)})}for(var d=[],_,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&&d.indexOf(_)===-1&&d.push(_),d.push(m)),_=m)}hF(e,g,d,t,n)}}};function hF(e,r,t,n,a){for(var o=Hi.traceLayerClasses,i=e._fullLayout,l=i._zindices,u=i._modules,s,f,c,g=[],b=[],d=0;d<l.length;d++)for(var _=l[d],T=0;T<u.length;T++){s=u[T];var m=s.name,k=cF.modules[m].categories;if(k.svg){var S=s.layerName||m+"layer",x=S+(d?Number(d)+1:""),M=s.plot;f=vF(t,M,_),c=f[0],t=f[1],c.length&&g.push({i:o.indexOf(S),zindex:d,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 h=r.plot.selectAll("g.mlayer").data(g,function(y){return y.className});if(h.enter().append("g").attr("class",function(y){return y.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),h.exit().remove(),h.order(),h.each(function(y){var v=Pp.select(this),A=y.className;y.plotMethod(e,r,y.cdModule,v,n,a),Hi.clipOnAxisFalseQuery.indexOf("."+A)===-1&&Che.setClipUrl(v,r.layerClipId,e)}),i._has("scattergl")&&(s=cF.getModule("scattergl"),c=vF(t,s)[0],s.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(Hi.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=Bl.listIds({_fullLayout:n});for(u=0;u<g.length;u++){var b=g[u];r[Bl.id2name(b)]||n._infolayer.selectAll(".g-"+b+"title").remove()}}var d=n._has&&n._has("cartesian"),_=r._has&&r._has("cartesian");if(d&&!_)pF(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(ru)===-1&&!o[T]){var m="."+T+",."+T+"-x,."+T+"-y";n._cartesianlayer.selectAll(m).remove(),gF(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(eu.sorterAsc);u.length||(u=[0]),r._zindices=u;var s=Lhe(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]+=ru+(g+1);c=c.concat(b)}var d=r._cartesianlayer.selectAll(".subplot").data(c,String);d.enter().append("g").attr("class",function(_){return"subplot "+_[0]}),d.order(),d.exit().call(pF,r),d.each(function(_){var T=_[0],m=T.indexOf(ru),k=m!==-1,S=k?T.slice(0,m):T,x=r._plots[T];x||(x=eu.extendFlat({},r._plots[S]),x&&(x.id=T,r._plots[T]=x,r._subplots.cartesian.push(T))),x&&(x.plotgroup=Pp.select(this),dF(e,x),k||(x.draglayer=pt(r._draggers,"g",T)))})};ea.rangePlot=function(e,r,t){dF(e,r),hF(e,r,t),She.style(e)};function Lhe(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,d=f._mainAxis,_=b._id+d._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+=ru+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 dF(e,r){var t=e._fullLayout,n=r.plotgroup,a=r.id,o=a.indexOf(ru),i=o!==-1,l=Hi.layerValue2layerClass[r.xaxis.layer],u=Hi.layerValue2layerClass[r.yaxis.layer],s=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=pt(n,"path","xlines-above"),r.ylines=pt(n,"path","ylines-above"),r.xaxislayer=pt(n,"g","xaxislayer-above"),r.yaxislayer=pt(n,"g","yaxislayer-above");else{if(!i){var g=pt(n,"g","layer-subplot");r.shapelayer=pt(g,"g","shapelayer"),r.imagelayer=pt(g,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=pt(n,"g","minor-gridlayer"),r.gridlayer=pt(n,"g","gridlayer"),r.zerolinelayer=pt(n,"g","zerolinelayer"));var b=pt(n,"g","layer-between");r.shapelayerBetween=pt(b,"g","shapelayer"),r.imagelayerBetween=pt(b,"g","imagelayer"),pt(n,"path","xlines-below"),pt(n,"path","ylines-below"),r.overlinesBelow=pt(n,"g","overlines-below"),pt(n,"g","xaxislayer-below"),pt(n,"g","yaxislayer-below"),r.overaxesBelow=pt(n,"g","overaxes-below")}r.overplot=pt(n,"g","overplot"),r.plot=pt(r.overplot,"g",a),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=pt(n,"g","zerolinelayer-above"),i||(r.xlines=pt(n,"path","xlines-above"),r.ylines=pt(n,"path","ylines-above"),r.overlinesAbove=pt(n,"g","overlines-above"),pt(n,"g","xaxislayer-above"),pt(n,"g","yaxislayer-above"),r.overaxesAbove=pt(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 d=c.plotgroup,_=a+"-x",T=a+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,pt(c.overlinesBelow,"path",_),pt(c.overlinesBelow,"path",T),pt(c.overaxesBelow,"g",_),pt(c.overaxesBelow,"g",T),r.plot=pt(c.overplot,"g",a),pt(c.overlinesAbove,"path",_),pt(c.overlinesAbove,"path",T),pt(c.overaxesAbove,"g",_),pt(c.overaxesAbove,"g",T),r.xlines=d.select(".overlines-"+l).select("."+_),r.ylines=d.select(".overlines-"+u).select("."+T),r.xaxislayer=d.select(".overaxes-"+l).select("."+_),r.yaxislayer=d.select(".overaxes-"+u).select("."+T)}i||(s||(Dp(r.minorGridlayer,"g",r.xaxis._id),Dp(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(m){return m[0]}).sort(Bl.idSort),Dp(r.gridlayer,"g",r.xaxis._id),Dp(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(m){return m[0]}).sort(Bl.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function pF(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=Pp.select(this);f.remove(),gF(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 gF(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=Pp.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:Ehe.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 mF=xe((j7e,yF)=>{"use strict";var Ip=Ra();yF.exports={hasLines:Ip.hasLines,hasMarkers:Ip.hasMarkers,hasText:Ip.hasText,isBubble:Ip.isBubble,attributes:Zs(),layoutAttributes:i1(),supplyDefaults:SI(),crossTraceDefaults:RI(),supplyLayoutDefaults:PI(),calc:$b().calc,crossTraceCalc:sz(),arraysToCalcdata:yp(),plot:wz(),colorbar:Tz(),formatLabels:kz(),style:lx().style,styleOnSelect:lx().styleOnSelect,hoverPoints:Dz(),selectPoints:zz(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:px(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var _F=xe((ewe,xF)=>{"use strict";var Rhe=st(),Dhe=Zr(),bF=hb(),gx=rr(),Phe=gx.strScale,Ihe=gx.strRotate,zhe=gx.strTranslate;xF.exports=function(r,t,n){var a=r.node(),o=bF[n.arrowhead||0],i=bF[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,d,_,T;if(a.nodeName==="line"){b={x:+r.attr("x1"),y:+r.attr("y1")},d={x:+r.attr("x2"),y:+r.attr("y2")};var m=b.x-d.x,k=b.y-d.y;if(_=Math.atan2(k,m),T=_+Math.PI,c&&g&&c+g>Math.sqrt(m*m+k*k)){D();return}if(c){if(c*c>m*m+k*k){D();return}var S=c*Math.cos(_),x=c*Math.sin(_);d.x+=S,d.y+=x,r.attr({x2:d.x,y2:d.y})}if(g){if(g*g>m*m+k*k){D();return}var M=g*Math.cos(_),h=g*Math.sin(_);b.x-=M,b.y-=h,r.attr({x1:b.x,y1:b.y})}}else if(a.nodeName==="path"){var w=a.getTotalLength(),y="";if(w<c+g){D();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),R=a.getPointAtLength(w-.1);T=Math.atan2(p.y-R.y,p.x-R.x),d=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 D(){r.style("stroke-dasharray","0px,100px")}function I(F,P,L,z){F.path&&(F.noRotate&&(L=0),Rhe.select(a.parentNode).append("path").attr({class:r.attr("class"),d:F.path,transform:zhe(P.x,P.y)+Ihe(L*180/Math.PI)+Phe(z)}).style({fill:Dhe.rgb(n.arrowcolor),"stroke-width":0}))}s&&I(i,b,_,u),f&&I(o,d,T,l)}});var zp=xe((rwe,kF)=>{"use strict";var wF=st(),yx=Cr(),Fhe=Cn(),Hl=rr(),mx=Hl.strTranslate,ev=Bt(),tu=Zr(),Zo=kt(),MF=mo(),bx=Qn(),xx=Rl(),jc=Fi(),Nhe=At().arrayEditor,qhe=_F();kF.exports={draw:Ohe,drawOne:TF,drawRaw:AF};function Ohe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&TF(e,t);return Fhe.previousPromises(e)}function TF(e,r){var t=e._fullLayout,n=t.annotations[r]||{},a=ev.getFromId(e,n.xref),o=ev.getFromId(e,n.yref);a&&a.setScale(),o&&o.setScale(),AF(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=ev.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 AF(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=Nhe(e.layout,f,r),g=c.modifyBase,b=c.modifyItem,d=c.getUpdateObj;i._infolayer.selectAll("."+s+'[data-index="'+t+'"]').remove();var _="clip"+i._uid+"_ann"+t;if(!r._input||r.visible===!1){wF.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 h(z){var O={index:t,annotation:r._input,fullAnnotation:r,event:z};return n&&(O.subplotId=n),O}var w=S.append("g").style("pointer-events",M?"all":null).call(xx,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",h(wF.event))});r.hovertext&&w.on("mouseover",function(){var z=r.hoverlabel,O=z.font,B=this.getBoundingClientRect(),V=e.getBoundingClientRect();MF.loneHover({x0:B.left-V.left,x1:B.right-V.left,y:(B.top+B.bottom)/2-V.top,text:r.hovertext,color:z.bgcolor,borderColor:z.bordercolor,fontFamily:O.family,fontSize:O.size,fontColor:O.color,fontWeight:O.weight,fontStyle:O.style,fontVariant:O.variant,fontShadow:O.fontShadow,fontLineposition:O.fontLineposition,fontTextcase:O.fontTextcase},{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:e})}).on("mouseout",function(){MF.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(tu.stroke,r.bordercolor).call(tu.fill,r.bgcolor),R=r.width||r.height,E=i._topclips.selectAll("#"+_).data(R?[0]:[]);E.enter().append("clipPath").classed("annclip",!0).attr("id",_).append("rect"),E.exit().remove();var D=r.font,I=i._meta?Hl.templateString(r.text,i._meta):r.text,F=w.append("text").classed("annotation-text",!0).text(I);function P(z){return z.call(Zo.font,D).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),bx.convertToTspans(z,e,L),z}function L(){var z=F.selectAll("a");if(z.size()===1&&z.text()===F.text()){var O=w.insert("a",":first-child").attr({"xlink:xlink:href":z.attr("xlink:href"),"xlink:xlink:show":z.attr("xlink:show")}).style({cursor:"pointer"});O.node().appendChild(p.node())}var B=w.select(".annotation-text-math-group"),V=!B.empty(),J=Zo.bBox((V?B:F).node()),Q=J.width,G=J.height,q=r.width||Q,Z=r.height||G,re=Math.round(q+2*A),$=Math.round(Z+2*A);function ie(tr,nr){return nr==="auto"&&(tr<1/3?nr="left":tr>2/3?nr="right":nr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nr]}for(var j=!1,te=["x","y"],ue=0;ue<te.length;ue++){var ee=te[ue],ae=r[ee+"ref"]||ee,fe=r["a"+ee+"ref"],we={x:a,y:o}[ee],Me=(m+(ee==="x"?0:-90))*Math.PI/180,ke=re*Math.cos(Me),ge=$*Math.sin(Me),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,he,pe,me=ev.getRefType(ae);if(we&&me!=="domain"){var Se=we.r2fraction(r[ee]);(Se<0||Se>1)&&(fe===ae?(Se=we.r2fraction(r["a"+ee]),(Se<0||Se>1)&&(j=!0)):j=!0),K=we._offset+we.r2p(r[ee]),he=.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),he=r.showarrow?.5:oe}if(r.showarrow){X.head=K;var de=r["a"+ee];if(pe=ke*ie(.5,r.xanchor)-ge*ie(.5,r.yanchor),fe===ae){var be=ev.getRefType(fe);be==="domain"?(ee==="y"&&(de=1-de),X.tail=we._offset+we._length*de):be==="paper"?ee==="y"?(de=1-de,X.tail=l.t+l.h*de):X.tail=l.l+l.w*de:X.tail=we._offset+we.r2p(de),ye=pe}else X.tail=K+de,ye=pe+de;X.text=X.tail+pe;var Ae=i[ee==="x"?"width":"height"];if(ae==="paper"&&(X.head=Hl.constrain(X.head,1,Ae-1)),fe==="pixel"){var Pe=-Math.max(X.tail-3,X.text),Ie=Math.min(X.tail+3,X.text)-Ae;Pe>0?(X.tail+=Pe,X.text+=Pe):Ie>0&&(X.tail-=Ie,X.text-=Ie)}X.tail+=se,X.head+=se}else pe=Ee*ie(he,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(j){w.remove();return}var Ye=0,qe=0;if(r.align!=="left"&&(Ye=(q-Q)*(r.align==="center"?.5:1)),r.valign!=="top"&&(qe=(Z-G)*(r.valign==="middle"?.5:1)),V)B.select("svg").attr({x:A+Ye-1,y:A+qe}).call(Zo.setClipUrl,R?_:null,e);else{var Ve=A+qe-J.top,Oe=A+Ye-J.left;F.call(bx.positionText,Oe,Ve).call(Zo.setClipUrl,R?_:null,e)}E.select("rect").call(Zo.setRect,A,A,q,Z),p.call(Zo.setRect,y/2,y/2,re-y,$-y),w.call(Zo.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(tr,nr){k.selectAll(".annotation-arrow-g").remove();var er=T.x.head,Qe=T.y.head,Ce=T.x.tail+tr,Fe=T.y.tail+nr,Ke=T.x.text+tr,je=T.y.text+nr,wr=Hl.rotationXYMatrix(m,Ke,je),Jr=Hl.apply2DTransform(wr),Tr=Hl.apply2DTransform2(wr),Pr=+p.attr("width"),rt=+p.attr("height"),Ar=Ke-.5*Pr,Ur=Ar+Pr,ut=je-.5*rt,zr=ut+rt,tt=[[Ar,ut,Ar,zr],[Ar,zr,Ur,zr],[Ur,zr,Ur,ut],[Ur,ut,Ar,ut]].map(Tr);if(!tt.reduce(function(Rr,ot){return Rr^!!Hl.segmentsIntersect(er,Qe,er+1e6,Qe+1e6,ot[0],ot[1],ot[2],ot[3])},!1)){tt.forEach(function(Rr){var ot=Hl.segmentsIntersect(Ce,Fe,er,Qe,Rr[0],Rr[1],Rr[2],Rr[3]);ot&&(Ce=ot.x,Fe=ot.y)});var pn=r.arrowwidth,it=r.arrowcolor,Xr=r.arrowside,Vt=k.append("g").style({opacity:tu.opacity(it)}).classed("annotation-arrow-g",!0),$r=Vt.append("path").attr("d","M"+Ce+","+Fe+"L"+er+","+Qe).style("stroke-width",pn+"px").call(tu.stroke,tu.rgb(it));if(qhe($r,Xr,r),u.annotationPosition&&$r.node().parentNode&&!n){var Kr=er,Gt=Qe;if(r.standoff){var Yt=Math.sqrt(Math.pow(er-Ce,2)+Math.pow(Qe-Fe,2));Kr+=r.standoff*(Ce-er)/Yt,Gt+=r.standoff*(Fe-Qe)/Yt}var jt=Vt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ce-Kr)+","+(Fe-Gt),transform:mx(Kr,Gt)}).style("stroke-width",pn+6+"px").call(tu.stroke,"rgba(0,0,0,0)").call(tu.fill,"rgba(0,0,0,0)"),sr,Vr;jc.init({element:jt.node(),gd:e,prepFn:function(){var Rr=Zo.getTranslate(w);sr=Rr.x,Vr=Rr.y,a&&a.autorange&&g(a._name+".autorange",!0),o&&o.autorange&&g(o._name+".autorange",!0)},moveFn:function(Rr,ot){var Xt=Jr(sr,Vr),en=Xt[0]+Rr,wt=Xt[1]+ot;w.call(Zo.setTranslate,en,wt),b("x",Ul(a,Rr,"x",l,r)),b("y",Ul(o,ot,"y",l,r)),r.axref===r.xref&&b("ax",Ul(a,Rr,"ax",l,r)),r.ayref===r.yref&&b("ay",Ul(o,ot,"ay",l,r)),Vt.attr("transform",mx(Rr,ot)),S.attr({transform:"rotate("+m+","+en+","+wt+")"})},doneFn:function(){yx.call("_guiRelayout",e,d());var Rr=document.querySelector(".js-notes-box-panel");Rr&&Rr.redraw(Rr.selectedObj)}})}}};if(r.showarrow&&We(0,0),x){var Ge;jc.init({element:w.node(),gd:e,prepFn:function(){Ge=S.attr("transform")},moveFn:function(tr,nr){var er="pointer";if(r.showarrow)r.axref===r.xref?b("ax",Ul(a,tr,"ax",l,r)):b("ax",r.ax+tr),r.ayref===r.yref?b("ay",Ul(o,nr,"ay",l.w,r)):b("ay",r.ay+nr),We(tr,nr);else{if(n)return;var Qe,Ce;if(a)Qe=Ul(a,tr,"x",l,r);else{var Fe=r._xsize/l.w,Ke=r.x+(r._xshift-r.xshift)/l.w-Fe/2;Qe=jc.align(Ke+tr/l.w,Fe,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=jc.align(wr-nr/l.h,je,0,1,r.yanchor)}b("x",Qe),b("y",Ce),(!a||!o)&&(er=jc.getCursor(a?.5:Qe,o?.5:Ce,r.xanchor,r.yanchor))}S.attr({transform:mx(tr,nr)+Ge}),xx(w,er)},clickFn:function(tr,nr){r.captureevents&&e.emit("plotly_clickannotation",h(nr))},doneFn:function(){xx(w),yx.call("_guiRelayout",e,d());var tr=document.querySelector(".js-notes-box-panel");tr&&tr.redraw(tr.selectedObj)}})}}u.annotationText?F.call(bx.makeEditable,{delegate:w,gd:e}).call(P).on("edit",function(z){r.text=z,this.call(P),b("text",z),a&&a.autorange&&g(a._name+".autorange",!0),o&&o.autorange&&g(o._name+".autorange",!0),yx.call("_guiRelayout",e,d())}):F.call(P)}});var DF=xe((twe,RF)=>{"use strict";var SF=rr(),Bhe=Cr(),CF=At().arrayEditor;RF.exports={hasClickToShow:Uhe,onClick:Hhe};function Uhe(e,r){var t=LF(e,r);return t.on.length>0||t.explicitOff.length>0}function Hhe(e,r){var t=LF(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=CF(e.layout,"annotations",i[n[l]]),u.modifyItem("visible",!0),SF.extendFlat(o,u.getUpdateObj());for(l=0;l<a.length;l++)u=CF(e.layout,"annotations",i[a[l]]),u.modifyItem("visible",!1),SF.extendFlat(o,u.getUpdateObj());return Bhe.call("update",e,{},o)}}function LF(e,r){var t=e._fullLayout.annotations,n=[],a=[],o=[],i=(r||[]).length,l,u,s,f,c,g,b,d;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)===EF(s._xclick,g)&&b.d2r(c.y)===EF(s._yclick,b)){s.visible?f==="onout"?d=a:d=o:d=n,d.push(l);break}u===i&&s.visible&&f==="onout"&&a.push(l)}return{on:n,off:a,explicitOff:o}}function EF(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var wx=xe((nwe,PF)=>{"use strict";var _x=rr(),Rf=Zr();PF.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=Rf.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:Rf.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var d=a("hovertext"),_=n.hoverlabel||{};if(d){var T=a("hoverlabel.bgcolor",_.bgcolor||(Rf.opacity(o)?Rf.rgb(o):Rf.defaultLine)),m=a("hoverlabel.bordercolor",_.bordercolor||Rf.contrast(T)),k=_x.extendFlat({},_.font);k.color||(k.color=m),_x.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!d)}});var zF=xe((awe,IF)=>{"use strict";var Mx=rr(),nu=Bt(),Vhe=Ii(),Ghe=wx(),Yhe=_f();IF.exports=function(r,t){Vhe(r,t,{name:"annotations",handleItemDefaults:Xhe})};function Xhe(e,r,t){function n(S,x){return Mx.coerce(e,r,Yhe,S,x)}var a=n("visible"),o=n("clicktoshow");if(a||o){Ghe(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=nu.coerceRef(e,r,s,c,"","paper");if(g!=="paper"){var b=nu.getFromId(s,g);b._annIndices.push(r._index)}if(nu.coercePosition(r,s,n,g,c,.5),i){var d="a"+c,_=nu.coerceRef(e,r,s,d,"pixel",["pixel","paper"]);_!=="pixel"&&_!==g&&(_=r[d]="pixel");var T=_==="pixel"?u[f]:.4;nu.coercePosition(r,s,n,_,d,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:nu.cleanPosition(m,s,r.xref),r._yclick=k===void 0?r.y:nu.cleanPosition(k,s,r.yref)}}}});var qF=xe((iwe,NF)=>{"use strict";var Tx=rr(),au=Bt(),Whe=zp().draw;NF.exports=function(r){var t=r._fullLayout,n=Tx.filterVisible(t.annotations);if(n.length&&r._fullData.length)return Tx.syncOrAsync([Whe,Zhe],r)};function Zhe(e){var r=e._fullLayout;Tx.filterVisible(r.annotations).forEach(function(t){var n=au.getFromId(e,t.xref),a=au.getFromId(e,t.yref),o=au.getRefType(t.xref),i=au.getRefType(t.yref);t._extremes={},o==="range"&&FF(t,n),i==="range"&&FF(t,a)})}function FF(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,d=3*e.startarrowsize*e.arrowwidth||0,_=d+f,T=d-f,m;if(l===i){var k=au.findExtremes(r,[r.r2c(a)],{ppadplus:g,ppadminus:b}),S=au.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=au.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,g,_),ppadminus:Math.max(s,b,T)});e._extremes[t]=m}});var BF=xe((owe,OF)=>{"use strict";var Jhe=ft(),$he=jv();OF.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 d=s[b],_=null;o?_=$he(d,t.range):_=Math.pow(10,d),Jhe(_)||(_=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 VF=xe((lwe,HF)=>{"use strict";var Ax=zp(),UF=DF();HF.exports={moduleType:"component",name:"annotations",layoutAttributes:_f(),supplyLayoutDefaults:zF(),includeBasePlot:Nc()("annotations"),calcAutorange:qF(),draw:Ax.draw,drawOne:Ax.drawOne,drawRaw:Ax.drawRaw,hasClickToShow:UF.hasClickToShow,onClick:UF.onClick,convertCoords:BF()}});var Fp=xe((swe,GF)=>{"use strict";var Et=_f(),Khe=ua().overrideAll,Qhe=At().templatedArray;GF.exports=Khe(Qhe("annotation",{visible:Et.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Et.xanchor,xshift:Et.xshift,yanchor:Et.yanchor,yshift:Et.yshift,text:Et.text,textangle:Et.textangle,font:Et.font,width:Et.width,height:Et.height,opacity:Et.opacity,align:Et.align,valign:Et.valign,bgcolor:Et.bgcolor,bordercolor:Et.bordercolor,borderpad:Et.borderpad,borderwidth:Et.borderwidth,showarrow:Et.showarrow,arrowcolor:Et.arrowcolor,arrowhead:Et.arrowhead,startarrowhead:Et.startarrowhead,arrowside:Et.arrowside,arrowsize:Et.arrowsize,startarrowsize:Et.startarrowsize,arrowwidth:Et.arrowwidth,standoff:Et.standoff,startstandoff:Et.startstandoff,hovertext:Et.hovertext,hoverlabel:Et.hoverlabel,captureevents:Et.captureevents}),"calc","from-root")});var XF=xe((uwe,YF)=>{"use strict";var kx=rr(),jhe=Bt(),e1e=Ii(),r1e=wx(),t1e=Fp();YF.exports=function(r,t,n){e1e(r,t,{name:"annotations",handleItemDefaults:n1e,fullLayout:n.fullLayout})};function n1e(e,r,t,n){function a(l,u){return kx.coerce(e,r,t1e,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],jhe.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(r1e(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 $F=xe((fwe,JF)=>{"use strict";var WF=rr(),ZF=Bt();JF.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a<n.length;a++)a1e(n[a],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function a1e(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={},WF.extendFlat(e._xa,o),ZF.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={},WF.extendFlat(e._ya,o),ZF.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((cwe,KF)=>{"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 i1e(e,r){var t=Sx(e.projection,Sx(e.view,Sx(e.model,[r[0],r[1],r[2],1])));return t}KF.exports=i1e});var jF=xe((vwe,QF)=>{"use strict";var o1e=zp().drawRaw,l1e=Cx(),s1e=["x","y","z"];QF.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=s1e[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=l1e(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),o1e(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var tN=xe((hwe,rN)=>{"use strict";var u1e=Cr(),eN=rr();rN.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Fp()}}},layoutAttributes:Fp(),handleDefaults:XF(),includeBasePlot:f1e,convert:$F(),draw:jF()};function f1e(e,r){var t=u1e.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&&(eN.pushUnique(r._basePlotModules,t),eN.pushUnique(r._subplots.gl3d,i))}}});var Ex=xe((gwe,oN)=>{"use strict";var dwe=(Sn(),or(kn)),nN=Wn(),aN=Zs().line,c1e=fl().dash,Vi=Rt().extendFlat,v1e=At().templatedArray,pwe=(zc(),or(Ic)),Df=Zn(),iN=_f(),{shapeTexttemplateAttrs:h1e,templatefallbackAttrs:d1e}=Ei(),p1e=zh();oN.exports=v1e("shape",{visible:Vi({},Df.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Vi({},Df.legend,{editType:"calc+arraydraw"}),legendgroup:Vi({},Df.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Vi({},Df.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:nN({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Vi({},Df.legendrank,{editType:"calc+arraydraw"}),legendwidth:Vi({},Df.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:Vi({},iN.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:Vi({},iN.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:Vi({},aN.color,{editType:"arraydraw"}),width:Vi({},aN.width,{editType:"calc+arraydraw"}),dash:Vi({},c1e,{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:h1e({},{keys:Object.keys(p1e)}),texttemplatefallback:d1e({editType:"arraydraw"}),font:nN({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 sN=xe((ywe,lN)=>{"use strict";var Pf=rr(),Ka=Bt(),g1e=Ii(),y1e=Ex(),rv=Fl();lN.exports=function(r,t){g1e(r,t,{name:"shapes",handleItemDefaults:b1e})};function m1e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function b1e(e,r,t){function n(S,x){return Pf.coerce(e,r,y1e,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"),Pf.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],d=[0,10];["x","y"].forEach(S=>{var x=S+"anchor",M=S==="x"?c:g,h={_fullLayout:t},w,y,v,A;let p=S+"ref",R=e[p];if(Array.isArray(R)&&R.length>0){let E=rv.countDefiningCoords(u,i,S);A=Ka.coerceRefArray(e,r,h,S,void 0,"paper",E),r["_"+S+"refArray"]=!0}else A=Ka.coerceRef(e,r,h,S,void 0,"paper");if(Array.isArray(A))A.forEach(function(E){Ka.getRefType(E)==="range"&&(w=Ka.getFromId(h,E),w&&w._shapeIndices.indexOf(r._index)===-1&&w._shapeIndices.push(r._index))}),s&&[0,1].forEach(function(E){let D=A[E];Ka.getRefType(D)==="range"?(w=Ka.getFromId(h,D),y=rv.shapePositionToRange(w),v=rv.rangeToShapePosition(w),(w.type==="category"||w.type==="multicategory")&&n(S+E+"shift")):y=v=Pf.identity;let F=S+E,P=e[F];if(e[F]=y(e[F],!0),M==="pixel"?n(F,d[E]):Ka.coercePosition(r,h,n,D,F,b[E]),r[F]=v(r[F]),e[F]=P,E===0&&M==="pixel"){let L=e[x];e[x]=y(e[x],!0),Ka.coercePosition(r,h,n,D,x,.25),r[x]=v(r[x]),e[x]=L}});else{if(Ka.getRefType(A)==="range"?(w=Ka.getFromId(h,A),w._shapeIndices.push(r._index),v=rv.rangeToShapePosition(w),y=rv.shapePositionToRange(w),s&&(w.type==="category"||w.type==="multicategory")&&(n(S+"0shift"),n(S+"1shift"))):y=v=Pf.identity,s){let D=S+"0",I=S+"1",F=e[D],P=e[I];e[D]=y(e[D],!0),e[I]=y(e[I],!0),M==="pixel"?(n(D,d[0]),n(I,d[1])):(Ka.coercePosition(r,h,n,A,D,b[0]),Ka.coercePosition(r,h,n,A,I,b[1])),r[D]=v(r[D]),r[I]=v(r[I]),e[D]=F,e[I]=P}if(M==="pixel"){let D=e[x];e[x]=y(e[x],!0),Ka.coercePosition(r,h,n,A,x,.25),r[x]=v(r[x]),e[x]=D}}}),s&&Pf.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",m1e(_,k)),n("label.padding"),Pf.coerceFont(n,"label.font",t.font)}}});var cN=xe((mwe,fN)=>{"use strict";var x1e=Zr(),uN=rr();function _1e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}fN.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"),uN.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",x1e.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",_1e(i,s)),n("newshape.label.padding"),uN.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var mN=xe((bwe,yN)=>{"use strict";var Lx=rr(),_i=Bt(),ko=(dc(),or(hc)),Rx=Fl();yN.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=_i.getRefType(o.xref),s=_i.getRefType(o.yref);if(u==="array"){let f=vN(r,o,"x");Object.entries(f).forEach(([c,g])=>{i=_i.getFromId(r,c),o._extremes[i._id]=_i.findExtremes(i,g,hN(o))})}else o.xref!=="paper"&&u!=="domain"&&(i=_i.getFromId(r,o.xref),l=pN(i,o,ko.paramIsX),l&&(o._extremes[i._id]=_i.findExtremes(i,l,hN(o))));if(s==="array"){let f=vN(r,o,"y");Object.entries(f).forEach(([c,g])=>{i=_i.getFromId(r,c),o._extremes[i._id]=_i.findExtremes(i,g,dN(o))})}else o.yref!=="paper"&&s!=="domain"&&(i=_i.getFromId(r,o.yref),l=pN(i,o,ko.paramIsY),l&&(o._extremes[i._id]=_i.findExtremes(i,l,dN(o))))}};function vN(e,r,t){let n=r[t+"ref"],a=t==="x"?ko.paramIsX:ko.paramIsY;function o(c,g){c==="paper"||_i.getRefType(c)==="domain"||(i[c]||(i[c]=[]),i[c].push(g))}let i={};if(r.type==="path"&&r.path){let c=r.path.match(ko.segmentRE)||[];for(var l=0,u=0;u<c.length;u++){let g=c[u],b=g.charAt(0),d=a[b].drawn;if(d===void 0)continue;let _=g.slice(1).match(ko.paramRE);_&&_.length>d&&(o(n[l],_[d]),l++)}}else o(n[0],r[t+"0"]),o(n[1],r[t+"1"]);let s={};for(let c in i){let g=_i.getFromId(e,c);if(g){var f=g.type==="category"||g.type==="multicategory"?g.r2c:g.d2c;g.type==="date"&&(f=Rx.decodeDate(f)),s[g._id]=i[c].map(f)}}return s}function hN(e){return gN(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function dN(e){return gN(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function gN(e,r,t,n,a,o){var i=e/2,l=o;if(r==="pixel"){var u=a?Rx.extractPathCoords(a,o?ko.paramIsY:ko.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 pN(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(ko.segmentRE),d,_,T,m,k;for(e.type==="date"&&(s=Rx.decodeDate(s)),d=0;d<b.length;d++)_=b[d],T=t[_.charAt(0)].drawn,T!==void 0&&(m=b[d].slice(1).match(ko.paramRE),!(!m||m.length<T)&&(k=s(m[T]),k<c&&(c=k),k>g&&(g=k)));if(g>=c)return[c,g]}}});var _N=xe((xwe,xN)=>{"use strict";var bN=Md();xN.exports={moduleType:"component",name:"shapes",layoutAttributes:Ex(),supplyLayoutDefaults:sN(),supplyDrawNewShapeDefaults:cN(),includeBasePlot:Nc()("shapes"),calcAutorange:mN(),draw:bN.draw,drawOne:bN.drawOne}});var Dx=xe((wwe,MN)=>{"use strict";var wN=(Sn(),or(kn)),w1e=At().templatedArray,_we=(zc(),or(Ic));MN.exports=w1e("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",wN.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",wN.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var AN=xe((Mwe,TN)=>{"use strict";var M1e=rr(),Px=Bt(),T1e=Ii(),A1e=Dx(),k1e="images";TN.exports=function(r,t){var n={name:k1e,handleItemDefaults:S1e};T1e(r,t,n)};function S1e(e,r,t){function n(g,b){return M1e.coerce(e,r,A1e,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=Px.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var c=Px.getFromId(i,f);c._imgIndices.push(r._index)}Px.coercePosition(r,i,n,f,s,0)}return r}});var EN=xe((Twe,CN)=>{"use strict";var kN=st(),C1e=kt(),If=Bt(),SN=xn(),E1e=(wl(),or(_l));CN.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=SN.ref2id(u.xref)+SN.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=kN.select(this);if(this._imgSrc!==x.source)if(M.attr("xmlns",E1e.svg),!r._context.staticPlot||x.source&&x.source.slice(0,5)==="data:")M.attr("xlink:href",x.source),this._imgSrc=x.source;else{var h=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 R=A.toDataURL("image/png");M.attr("xlink:href",R),w()},M.on("error",v),y.src=x.source,this._imgSrc=x.source;function v(){M.remove(),w()}}.bind(this));r._promises.push(h)}}function g(x){var M=kN.select(this),h=If.getFromId(r,x.xref),w=If.getFromId(r,x.yref),y=If.getRefType(x.xref)==="domain",v=If.getRefType(x.yref)==="domain",A=t._size,p,R;h!==void 0?p=typeof x.xref=="string"&&y?h._length*x.sizex:Math.abs(h.l2p(x.sizex)-h.l2p(0)):p=x.sizex*A.w,w!==void 0?R=typeof x.yref=="string"&&v?w._length*x.sizey:Math.abs(w.l2p(x.sizey)-w.l2p(0)):R=x.sizey*A.h;var E=p*f.x[x.xanchor].offset,D=R*f.y[x.yanchor].offset,I=f.x[x.xanchor].sizing+f.y[x.yanchor].sizing,F,P;switch(h!==void 0?F=typeof x.xref=="string"&&y?h._length*x.x+h._offset:h.r2p(x.x)+h._offset:F=x.x*A.w+A.l,F+=E,w!==void 0?P=typeof x.yref=="string"&&v?w._length*(1-x.y)+w._offset:w.r2p(x.y)+w._offset:P=A.h-x.y*A.h+A.t,P+=D,x.sizing){case"fill":I+=" slice";break;case"stretch":I="none";break}M.attr({x:F,y:P,width:p,height:R,preserveAspectRatio:I,opacity:x.opacity});var L=h&&If.getRefType(x.xref)!=="domain"?h._id:"",z=w&&If.getRefType(x.yref)!=="domain"?w._id:"",O=L+z;C1e.setClipUrl(M,O?"clip"+t._uid+O:null,r)}function b(x){return[x.xref,x.x,x.sizex,x.yref,x.y,x.sizey].join("_")}function d(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(d),T.sort(d);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(d)}}}});var DN=xe((Awe,RN)=>{"use strict";var LN=ft(),L1e=jv();RN.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],d=null,_=null;if(o){d=L1e(g,t.range);var T=b/Math.pow(10,d)/2;_=2*Math.log(T+Math.sqrt(1+T*T))/Math.LN10}else d=Math.pow(10,g),_=d*(Math.pow(10,b/2)-Math.pow(10,-b/2));LN(d)?LN(_)||(_=null):(d=null,_=null),a(f+u,d),a(f+"size"+u,_)}}}});var IN=xe((kwe,PN)=>{"use strict";PN.exports={moduleType:"component",name:"images",layoutAttributes:Dx(),supplyLayoutDefaults:AN(),includeBasePlot:Nc()("images"),draw:EN(),convertCoords:DN()}});var Np={};Ot(Np,{activeColor:()=>rde,arrowOffsetX:()=>Q1e,arrowPadX:()=>W1e,arrowSymbol:()=>nde,autoMarginIdRoot:()=>H1e,blankHeaderOpts:()=>V1e,buttonClassName:()=>q1e,containerClassName:()=>D1e,dropdownButtonClassName:()=>N1e,dropdownButtonGroupClassName:()=>F1e,gapButton:()=>ede,gapButtonHeader:()=>j1e,headerArrowClassName:()=>z1e,headerClassName:()=>I1e,headerGroupClassName:()=>P1e,hoverColor:()=>tde,itemRectClassName:()=>O1e,itemTextClassName:()=>B1e,menuIndexAttrName:()=>U1e,minHeight:()=>Y1e,minWidth:()=>G1e,name:()=>R1e,rx:()=>Z1e,ry:()=>J1e,textOffsetX:()=>$1e,textOffsetY:()=>K1e,textPadX:()=>X1e});var R1e,D1e,P1e,I1e,z1e,F1e,N1e,q1e,O1e,B1e,U1e,H1e,V1e,G1e,Y1e,X1e,W1e,Z1e,J1e,$1e,K1e,Q1e,j1e,ede,rde,tde,nde,qp=qt(()=>{"use strict";R1e="updatemenus",D1e="updatemenu-container",P1e="updatemenu-header-group",I1e="updatemenu-header",z1e="updatemenu-header-arrow",F1e="updatemenu-dropdown-button-group",N1e="updatemenu-dropdown-button",q1e="updatemenu-button",O1e="updatemenu-item-rect",B1e="updatemenu-item-text",U1e="updatemenu-active-index",H1e="updatemenu-",V1e={label:" "},G1e=30,Y1e=30,X1e=24,W1e=16,Z1e=2,J1e=2,$1e=12,K1e=3,Q1e=4,j1e=5,ede=2,rde="#F4FAFF",tde="#F4FAFF",nde={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var Ix=xe((Swe,FN)=>{"use strict";var ade=Wn(),ide=ao(),ode=Rt().extendFlat,lde=ua().overrideAll,sde=Fh(),zN=At().templatedArray,ude=zN("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}});FN.exports=lde(zN("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:ude,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:ode(sde({editType:"arraydraw"}),{}),font:ade({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:ide.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var BN=xe((Cwe,ON)=>{"use strict";var Op=rr(),NN=Ii(),qN=Ix(),fde=(qp(),or(Np)),cde=fde.name,vde=qN.buttons;ON.exports=function(r,t){var n={name:cde,handleItemDefaults:hde};NN(r,t,n)};function hde(e,r,t){function n(i,l){return Op.coerce(e,r,qN,i,l)}var a=NN(e,r,{name:"buttons",handleItemDefaults:dde}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),Op.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Op.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function dde(e,r){function t(a,o){return Op.coerce(e,r,vde,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 VN=xe((Ewe,HN)=>{"use strict";HN.exports=Jt;var Gi=st(),UN=Zr(),zf=kt(),Bp=rr();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",d=c==="right",_=c==="up",T=u,m=f,k,S,x,M;!g&&!b&&!d&&!_&&(this.position.direction="down",g=!0);var h=g||_;h?(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 R=this.container.selectAll("rect.scrollbar-horizontal").data(w?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(UN.fill,Jt.barColor),w?(this.hbar=R.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,D=Jt.barWidth+2*Jt.barPad,I=Jt.barLength+2*Jt.barPad,F=l+u,P=s;F+D>o&&(F=o-D);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(UN.fill,Jt.barColor),E?(this.vbar=L.attr({rx:Jt.barRadius,ry:Jt.barRadius,x:F,y:P,width:D,height:I}),this._vbarYMin=P+I/2,this._vbarTranslateMax=m-I):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var z=this.id,O=k-.5,B=E?S+D+.5:S+.5,V=x-.5,J=w?M+v+.5:M+.5,Q=a._topdefs.selectAll("#"+z).data(w||E?[0]:[]);if(Q.exit().remove(),Q.enter().append("clipPath").attr("id",z).append("rect"),w||E?(this._clipRect=Q.select("rect").attr({x:Math.floor(O),y:Math.floor(V),width:Math.ceil(B)-Math.floor(O),height:Math.ceil(J)-Math.floor(V)}),this.container.call(zf.setClipUrl,z,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(zf.setClipUrl,null),delete this._clipRect),w||E){var G=Gi.behavior.drag().on("dragstart",function(){Gi.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(G);var q=Gi.behavior.drag().on("dragstart",function(){Gi.event.sourceEvent.preventDefault(),Gi.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(zf.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-=Gi.event.dx),this.vbar&&(t-=Gi.event.dy),this.setTranslate(r,t)};Jt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Gi.event.deltaY),this.vbar&&(t+=Gi.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=Bp.constrain(Gi.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=Bp.constrain(Gi.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=Bp.constrain(r||0,0,n),t=Bp.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(zf.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(zf.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(zf.setTranslate,r,t+i*this._vbarTranslateMax)}}});var jN=xe((Lwe,QN)=>{"use strict";var Ff=st(),tv=Cn(),nv=Zr(),Nf=kt(),Qa=rr(),Up=Qn(),pde=At().arrayEditor,YN=(Kn(),or($n)).LINE_SPACING,Lr=(qp(),or(Np)),gde=VN();QN.exports=function(r){var t=r._fullLayout,n=Qa.filterVisible(t[Lr.name]);function a(g){tv.autoMargin(r,$N(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(){Ff.select(this).selectAll("g."+Lr.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+Lr.headerGroupClassName).data(n,yde);i.enter().append("g").classed(Lr.headerGroupClassName,!0);for(var l=Qa.ensureSingle(o,"g",Lr.dropdownButtonGroupClassName,function(g){g.style("pointer-events","all")}),u=0;u<n.length;u++){var s=n[u];Mde(r,s)}var f="updatemenus"+t._uid,c=new gde(r,l,f);i.enter().size()&&(l.node().parentNode.appendChild(l.node()),l.call(Fx)),i.exit().each(function(g){l.call(Fx),a(g)}).remove(),i.each(function(g){var b=Ff.select(this),d=g.type==="dropdown"?l:null;tv.manageCommandObserver(r,g,g.buttons,function(_){zx(r,g,g.buttons[_.index],b,d,c,_.index,!0)}),g.type==="dropdown"?(WN(r,b,l,c,g),XN(l,g)&&av(r,b,l,c,g)):av(r,b,null,null,g)})}};function yde(e){return e._index}function mde(e){return+e.attr(Lr.menuIndexAttrName)==-1}function XN(e,r){return+e.attr(Lr.menuIndexAttrName)===r._index}function zx(e,r,t,n,a,o,i,l){r.active=i,pde(e.layout,Lr.name,r).applyUpdate("active",i),r.type==="buttons"?av(e,n,null,null,r):r.type==="dropdown"&&(a.attr(Lr.menuIndexAttrName,"-1"),WN(e,n,a,o,r),l||av(e,n,a,o,r))}function WN(e,r,t,n,a){var o=Qa.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(KN,a,s,f);var c=Qa.ensureSingle(r,"text",Lr.headerArrowClassName,function(g){g.attr("text-anchor","end").call(Nf.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(Fx,String(XN(t,a)?-1:a._index)),av(e,r,t,n,a)}),o.on("mouseover",function(){o.call(ZN)}),o.on("mouseout",function(){o.call(JN,a)}),Nf.setTranslate(r,i.lx,i.ly)}function av(e,r,t,n,a){t||(t=r,t.attr("pointer-events","all"));var o=!mde(t)||a.type==="buttons"?a.buttons:[],i=a.type==="dropdown"?Lr.dropdownButtonClassName:Lr.buttonClassName,l=t.selectAll("g."+i).data(Qa.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 d={x:g.lx+f+a.pad.l,y:g.ly+c+a.pad.t,yPad:Lr.gapButton,xPad:Lr.gapButton,index:0},_={l:d.x+a.borderwidth,t:d.y+a.borderwidth};l.each(function(T,m){var k=Ff.select(this);k.call(Nx,a,T,e).call(KN,a,d),k.on("click",function(){Ff.event.defaultPrevented||(T.execute&&(T.args2&&a.active===m?(zx(e,a,T,r,t,n,-1),tv.executeAPICommand(e,T.method,T.args2)):(zx(e,a,T,r,t,n,m),tv.executeAPICommand(e,T.method,T.args))),e.emit("plotly_buttonclicked",{menu:a,button:T,active:a.active}))}),k.on("mouseover",function(){k.call(ZN)}),k.on("mouseout",function(){k.call(JN,a),l.call(GN,a)})}),l.call(GN,a),b?(_.w=Math.max(g.openWidth,g.headerWidth),_.h=d.y-_.t):(_.w=d.x-_.l,_.h=Math.max(g.openHeight,g.headerHeight)),_.direction=a.direction,n&&(l.size()?bde(e,r,t,n,a,_):xde(n))}function bde(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 xde(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(_de,r).call(wde,r,t,n)}function _de(e,r){var t=Qa.ensureSingle(e,"rect",Lr.itemRectClassName,function(n){n.attr({rx:Lr.rx,ry:Lr.ry,"shape-rendering":"crispEdges"})});t.call(nv.stroke,r.bordercolor).call(nv.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function wde(e,r,t,n){var a=Qa.ensureSingle(e,"text",Lr.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),o=t.label,i=n._fullLayout._meta;i&&(o=Qa.templateString(o,i)),a.call(Nf.font,r.font).text(o).call(Up.convertToTspans,n)}function GN(e,r){var t=r.active;e.each(function(n,a){var o=Ff.select(this);a===t&&r.showactive&&o.select("rect."+Lr.itemRectClassName).call(nv.fill,Lr.activeColor)})}function ZN(e){e.select("rect."+Lr.itemRectClassName).call(nv.fill,Lr.hoverColor)}function JN(e,r){e.select("rect."+Lr.itemRectClassName).call(nv.fill,r.bgcolor)}function Mde(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=Nf.tester.selectAll("g."+Lr.dropdownButtonClassName).data(Qa.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=Ff.select(this);g.call(Nx,r,f,e);var b=g.select("."+Lr.itemTextClassName),d=b.node()&&Nf.bBox(b.node()).width,_=Math.max(d+Lr.textPadX,Lr.minWidth),T=r.font.size*YN,m=Up.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";Qa.isRightAnchor(r)&&(t.lx-=o,u="right"),Qa.isCenterAnchor(r)&&(t.lx-=o/2,u="center");var s="top";Qa.isBottomAnchor(r)&&(t.ly-=i,s="bottom"),Qa.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),tv.autoMargin(e,$N(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 $N(e){return Lr.autoMarginIdRoot+e._index}function KN(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;Nf.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*YN,g=Up.lineCount(o),b=(g-1)*c/2;Up.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 Fx(e,r){e.attr(Lr.menuIndexAttrName,r||"-1").selectAll("g."+Lr.dropdownButtonClassName).remove()}});var rq=xe((Rwe,eq)=>{"use strict";var Tde=(qp(),or(Np));eq.exports={moduleType:"component",name:Tde.name,layoutAttributes:Ix(),supplyLayoutDefaults:BN(),draw:jN()}});var iv={};Ot(iv,{arrowOffsetX:()=>Gde,autoMarginIdRoot:()=>Bde,containerClassName:()=>kde,currentValueClass:()=>Nde,currentValueInset:()=>ype,currentValuePadding:()=>gpe,gripBgActiveColor:()=>ope,gripBgColor:()=>ipe,gripBorder:()=>tpe,gripBorderColor:()=>ape,gripBorderWidth:()=>npe,gripHeight:()=>rpe,gripRadius:()=>jde,gripRectClass:()=>Rde,gripWidth:()=>epe,groupClassName:()=>Sde,inputAreaClass:()=>Cde,inputProxyClass:()=>Pde,labelClass:()=>Fde,labelGroupClass:()=>zde,labelOffset:()=>spe,labelPadding:()=>lpe,labelsClass:()=>Ide,menuIndexAttrName:()=>Ode,minHeight:()=>Hde,minWidth:()=>Ude,minorTickColor:()=>dpe,minorTickLength:()=>ppe,minorTickOffset:()=>hpe,name:()=>Ade,railBgColor:()=>$de,railBorder:()=>Wde,railBorderColor:()=>Jde,railBorderWidth:()=>Zde,railHeight:()=>qde,railInset:()=>Kde,railRadius:()=>Yde,railRectClass:()=>Ede,railTouchRectClass:()=>Lde,railWidth:()=>Xde,stepInset:()=>Qde,textPadX:()=>Vde,tickColor:()=>fpe,tickLength:()=>vpe,tickOffset:()=>cpe,tickRectClass:()=>Dde,tickWidth:()=>upe});var Ade,kde,Sde,Cde,Ede,Lde,Rde,Dde,Pde,Ide,zde,Fde,Nde,qde,Ode,Bde,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,vpe,hpe,dpe,ppe,gpe,ype,ov=qt(()=>{"use strict";Ade="sliders",kde="slider-container",Sde="slider-group",Cde="slider-input-area",Ede="slider-rail-rect",Lde="slider-rail-touch-rect",Rde="slider-grip-rect",Dde="slider-tick-rect",Pde="slider-input-proxy",Ide="slider-labels",zde="slider-label-group",Fde="slider-label",Nde="slider-current-value",qde=5,Ode="slider-active-index",Bde="slider-",Ude=30,Hde=30,Vde=40,Gde=4,Yde=2,Xde=5,Wde=4,Zde=1,Jde="#bec8d9",$de="#f8fafc",Kde=8,Qde=10,jde=10,epe=20,rpe=20,tpe=20,npe=1,ape="#bec8d9",ipe="#f6f8fa",ope="#dbdde0",lpe=8,spe=0,upe=1,fpe="#333",cpe=25,vpe=7,hpe=25,dpe="#333",ppe=4,gpe=8,ype=0});var qx=xe((Dwe,aq)=>{"use strict";var tq=Wn(),mpe=Fh(),bpe=Rt().extendDeepAll,xpe=ua().overrideAll,_pe=F0(),nq=At().templatedArray,iu=(ov(),or(iv)),wpe=nq("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}});aq.exports=xpe(nq("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:wpe,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:bpe(mpe({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:_pe.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:tq({})},font:tq({}),activebgcolor:{valType:"color",dflt:iu.gripBgActiveColor},bgcolor:{valType:"color",dflt:iu.railBgColor},bordercolor:{valType:"color",dflt:iu.railBorderColor},borderwidth:{valType:"number",min:0,dflt:iu.railBorderWidth},ticklen:{valType:"number",min:0,dflt:iu.tickLength},tickcolor:{valType:"color",dflt:iu.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:iu.minorTickLength}}),"arraydraw","from-root")});var sq=xe((Pwe,lq)=>{"use strict";var qf=rr(),iq=Ii(),oq=qx(),Mpe=(ov(),or(iv)),Tpe=Mpe.name,Ape=oq.steps;lq.exports=function(r,t){iq(r,t,{name:Tpe,handleItemDefaults:kpe})};function kpe(e,r,t){function n(c,g){return qf.coerce(e,r,oq,c,g)}for(var a=iq(e,r,{name:"steps",handleItemDefaults:Spe}),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=qf.filterVisible(a),s=n("active");(a[s]||{}).visible||(r.active=u[0]._index),n("x"),n("y"),qf.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"),qf.coerceFont(n,"font",t.font);var f=n("currentvalue.visible");f&&(n("currentvalue.xanchor"),n("currentvalue.prefix"),n("currentvalue.suffix"),n("currentvalue.offset"),qf.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 Spe(e,r){function t(o,i){return qf.coerce(e,r,Ape,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 mq=xe((Iwe,yq)=>{"use strict";var Yi=st(),Hp=Cn(),Vl=Zr(),Xi=kt(),ja=rr(),Cpe=ja.strTranslate,lv=Qn(),Epe=At().arrayEditor,Yr=(ov(),or(iv)),Ux=(Kn(),or($n)),cq=Ux.LINE_SPACING,Ox=Ux.FROM_TL,Bx=Ux.FROM_BR;yq.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Lpe(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),Hp.autoMargin(r,vq(f))}if(o.exit().each(function(){Yi.select(this).selectAll("g."+Yr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Yr.groupClassName).data(a,Rpe);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];Dpe(r,s)}l.each(function(f){var c=Yi.select(this);Npe(f),Hp.manageCommandObserver(r,f,f._visibleSteps,function(g){var b=c.data()[0];b.active!==g.index&&(b._dragging||dq(r,c,b,g.index,!1,!0))}),Ppe(r,Yi.select(this),f)})}};function vq(e){return Yr.autoMarginIdRoot+e._index}function Lpe(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 Rpe(e){return e._index}function Dpe(e,r){var t=Xi.tester.selectAll("g."+Yr.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Yr.labelGroupClass,!0);var n=0,a=0;t.each(function(d){var _=Yi.select(this),T=hq(_,{step:d},r),m=T.node();if(m){var k=Xi.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=Xi.tester.append("g");t.each(function(d){var _=Vp(f,r,d.label),T=_.node()&&Xi.bBox(_.node())||{width:0,height:0},m=lv.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*Bx[g],t:o.height*Ox[g]};r.lenmode==="fraction"?(b.l=0,b.xl=r.x-r.len*Ox[c],b.r=0,b.xr=r.x+r.len*Bx[c]):(b.x=r.x,b.l=o.outerLength*Ox[c],b.r=o.outerLength*Bx[c]),Hp.autoMargin(e,vq(r),b)}function Ppe(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(Vp,t).call(Ope,t).call(zpe,t).call(Fpe,t).call(qpe,e,t).call(Ipe,e,t);var n=t._dims;Xi.setTranslate(r,n.lx+t.pad.l,n.ly+t.pad.t),r.call(gq,t,!1),r.call(Vp,t)}function Vp(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(Xi.font,r.currentvalue.font).text(l).call(lv.convertToTspans,r._gd);var f=lv.lineCount(i),c=(n.currentValueMaxLines+1-f)*r.currentvalue.font.size*cq;return lv.positionText(i,a,c),i}}function Ipe(e,r,t){var n=ja.ensureSingle(e,"rect",Yr.gripRectClass,function(a){a.call(pq,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 hq(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(Xi.font,t.font).text(a).call(lv.convertToTspans,t._gd),n}function zpe(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=Yi.select(this);i.call(hq,o,r),Xi.setTranslate(i,Hx(r,o.fraction),Yr.tickOffset+r.ticklen+r.font.size*cq+Yr.labelOffset+n.currentValueTotalHeight)})}function uq(e,r,t,n,a){var o=Math.round(n*(t._stepCount-1)),i=t._visibleSteps[o]._index;i!==t.active&&dq(e,r,t,i,!0,a)}function dq(e,r,t,n,a,o){var i=t.active;t.active=n,Epe(e.layout,Yr.name,t).applyUpdate("active",n);var l=t.steps[t.active];r.call(gq,t,o),r.call(Vp,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&&Hp.executeAPICommand(e,u.method,u.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function pq(e,r,t){if(r._context.staticPlot)return;var n=t.node(),a=Yi.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);Yi.event.stopPropagation(),Yi.event.preventDefault(),u.call(Vl.fill,l.activebgcolor);var s=fq(l,Yi.mouse(n)[0]);uq(r,t,l,s,!0),l._dragging=!0;function f(){var g=o(),b=fq(g,Yi.mouse(n)[0]);uq(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 Fpe(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=Yi.select(this);l.attr({height:i?r.ticklen:r.minorticklen}).call(Vl.fill,r.tickcolor),Xi.setTranslate(l,Hx(r,o/(r._stepCount-1))-.5*r.tickwidth,(i?Yr.tickOffset:Yr.minorTickOffset)+n.currentValueTotalHeight)})}function Npe(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 gq(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",Cpe(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 fq(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 qpe(e,r,t){var n=t._dims,a=ja.ensureSingle(e,"rect",Yr.railTouchRectClass,function(o){o.call(pq,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),Xi.setTranslate(a,0,n.currentValueTotalHeight)}function Ope(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"),Xi.setTranslate(a,Yr.railInset,(t.inputAreaWidth-Yr.railWidth)*.5+t.currentValueTotalHeight)}});var xq=xe((zwe,bq)=>{"use strict";var Bpe=(ov(),or(iv));bq.exports={moduleType:"component",name:Bpe.name,layoutAttributes:qx(),supplyLayoutDefaults:sq(),draw:mq()}});var Gp=xe((Fwe,wq)=>{"use strict";var _q=ao();wq.exports={bgcolor:{valType:"color",dflt:_q.background,editType:"plot"},bordercolor:{valType:"color",dflt:_q.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((Nwe,Mq)=>{"use strict";Mq.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 Yp={};Ot(Yp,{bgClassName:()=>Vpe,containerClassName:()=>Hpe,extraPad:()=>vge,grabAreaCursor:()=>lge,grabAreaFill:()=>oge,grabAreaMaxClassName:()=>Qpe,grabAreaMinClassName:()=>Jpe,grabAreaWidth:()=>sge,grabberMaxClassName:()=>Kpe,grabberMinClassName:()=>Zpe,handleMaxClassName:()=>jpe,handleMinClassName:()=>$pe,handleRadius:()=>fge,handleStrokeWidth:()=>cge,handleWidth:()=>uge,maskColor:()=>tge,maskMaxClassName:()=>Xpe,maskMaxOppAxisClassName:()=>rge,maskMinClassName:()=>Ype,maskMinOppAxisClassName:()=>ege,maskOppAxisColor:()=>nge,name:()=>Upe,rangePlotClassName:()=>Gpe,slideBoxClassName:()=>Wpe,slideBoxCursor:()=>ige,slideBoxFill:()=>age});var Upe,Hpe,Vpe,Gpe,Ype,Xpe,Wpe,Zpe,Jpe,$pe,Kpe,Qpe,jpe,ege,rge,tge,nge,age,ige,oge,lge,sge,uge,fge,cge,vge,Xp=qt(()=>{"use strict";Upe="rangeslider",Hpe="rangeslider-container",Vpe="rangeslider-bg",Gpe="rangeslider-rangeplot",Ype="rangeslider-mask-min",Xpe="rangeslider-mask-max",Wpe="rangeslider-slidebox",Zpe="rangeslider-grabber-min",Jpe="rangeslider-grabarea-min",$pe="rangeslider-handle-min",Kpe="rangeslider-grabber-max",Qpe="rangeslider-grabarea-max",jpe="rangeslider-handle-max",ege="rangeslider-mask-min-opp-axis",rge="rangeslider-mask-max-opp-axis",tge="rgba(0,0,0,0.4)",nge="rgba(0,0,0,0.2)",age="transparent",ige="ew-resize",oge="transparent",lge="col-resize",sge=10,uge=4,fge=1,cge=1,vge=15});var kq=xe(Zp=>{"use strict";var hge=xn(),dge=Qn(),Tq=(Xp(),or(Yp)),pge=(Kn(),or($n)).LINE_SPACING,Wp=Tq.name;function Aq(e){var r=e&&e[Wp];return r&&r.visible}Zp.isVisible=Aq;Zp.makeData=function(e){for(var r=hge.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a<r.length;a++){var o=r[a];if(Aq(o)){n.push(o);var i=o[Wp];i._id=Wp+o._id,i._height=(e.height-t.b-t.t)*i.thickness,i._offsetShift=Math.floor(i.borderwidth/2)}}e._rangeSliderData=n};Zp.autoMarginOpts=function(e,r){var t=e._fullLayout,n=r[Wp],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(dge.BR_TAG_ALL)||[]).length;i+=l*r.title.font.size*pge}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:n._height+o+Math.max(t.margin.b,i),pad:Tq.extraPad+n._offsetShift*2}}});var Lq=xe((Owe,Eq)=>{"use strict";var Jp=rr(),Sq=At(),Cq=xn(),gge=Gp(),yge=Vx();Eq.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;Jp.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=Sq.newContainer(o,"rangeslider");function u(M,h){return Jp.coerce(i,l,gge,M,h)}var s,f;function c(M,h){return Jp.coerce(s,f,yge,M,h)}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 d=b.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===Cq.name2id(n)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),_=Jp.simpleMap(d,Cq.id2name),T=0;T<_.length;T++){var m=_[T];s=i[m]||{},f=Sq.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,Rq)=>{"use strict";var mge=xn().list,bge=af().getAutoRange,xge=(Xp(),or(Yp));Rq.exports=function(r){for(var t=mge(r,"x",!0),n=0;n<t.length;n++){var a=t[n],o=a[xge.name];o&&o.visible&&o.autorange&&(o._input.autorange=!0,o._input.range=o.range=bge(r,a))}}});var Fq=xe((Uwe,zq)=>{"use strict";var $p=st(),_ge=Cr(),wge=Cn(),an=rr(),Kp=an.strTranslate,Iq=kt(),Gl=Zr(),Mge=Q0(),Tge=px(),Gx=xn(),Age=Fi(),kge=Rl(),et=(Xp(),or(Yp));zq.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n<t.length;n++){var a=t[n][et.name];a._clipId=a._id+"-"+r._uid}function o(l){return l._name}var i=r._infolayer.selectAll("g."+et.containerClassName).data(t,o);i.exit().each(function(l){var u=l[et.name];r._topdefs.select("#"+u._clipId).remove()}).remove(),t.length!==0&&(i.enter().append("g").classed(et.containerClassName,!0).attr("pointer-events","all"),i.each(function(l){var u=$p.select(this),s=l[et.name],f=r[Gx.id2name(l.anchor)],c=s[Gx.id2name(l.anchor)];if(s.range){var g=an.simpleMap(s.range,l.r2l),b=an.simpleMap(l.range,l.r2l),d;b[0]<b[1]?d=[Math.min(g[0],b[0]),Math.max(g[1],b[1])]:d=[Math.max(g[0],b[0]),Math.min(g[1],b[1])],s.range=s._input.range=an.simpleMap(d,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+et.extraPad);u.attr("transform",Kp(T,m)),s._rl=an.simpleMap(s.range,l.r2l);var k=s._rl[0],S=s._rl[1],x=S-k;if(s.p2d=function(D){return D/s._width*x+k},s.d2p=function(D){return(D-k)/x*s._width},l.rangebreaks){var M=l.locateBreaks(k,S);if(M.length){var h,w,y=0;for(h=0;h<M.length;h++)w=M[h],y+=w.max-w.min;var v=s._width/(S-k-y),A=[-v*k];for(h=0;h<M.length;h++)w=M[h],A.push(A[A.length-1]-v*(w.max-w.min));for(s.d2p=function(D){for(var I=A[0],F=0;F<M.length;F++){var P=M[F];if(D>=P.max)I=A[F+1];else if(D<P.min)break}return I+v*D},h=0;h<M.length;h++)w=M[h],w.pmin=s.d2p(w.min),w.pmax=s.d2p(w.max);s.p2d=function(D){for(var I=A[0],F=0;F<M.length;F++){var P=M[F];if(D>=P.pmax)I=A[F+1];else if(D<P.pmin)break}return(D-I)/v}}}if(c.rangemode!=="match"){var p=f.r2l(c.range[0]),R=f.r2l(c.range[1]),E=R-p;s.d2pOppAxis=function(D){return(D-p)/E*s._height}}u.call(Lge,e,l,s).call(Rge,e,l,s).call(Dge,e,l,s).call(Ige,e,l,s,c).call(zge,e,l,s).call(Fge,e,l,s),Sge(u,e,l,s),Ege(u,e,l,s,f,c),l.side==="bottom"&&Mge.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 Pq(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function Sge(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+et.slideBoxClassName).node(),o=e.select("rect."+et.grabAreaMinClassName).node(),i=e.select("rect."+et.grabAreaMaxClassName).node();function l(){var u=$p.event,s=u.target,f=Pq(u),c=f-e.node().getBoundingClientRect().left,g=n.d2p(t._rl[0]),b=n.d2p(t._rl[1]),d=Age.coverSlip();this.addEventListener("touchmove",_),this.addEventListener("touchend",T),d.addEventListener("mousemove",_),d.addEventListener("mouseup",T);function _(m){var k=Pq(m),S=+k-f,x,M,h;switch(s){case a:if(h="ew-resize",g+S>t._length||b+S<0)return;x=g+S,M=b+S;break;case o:if(h="col-resize",g+S>t._length)return;x=g+S,M=b;break;case i:if(h="col-resize",b+S<0)return;x=g,M=b+S;break;default:h="ew-resize",x=c,M=c+S;break}if(M<x){var w=M;M=x,x=w}n._pixelMin=x,n._pixelMax=M,kge($p.select(d),h),Cge(e,r,t,n)}function T(){d.removeEventListener("mousemove",_),d.removeEventListener("mouseup",T),this.removeEventListener("touchmove",_),this.removeEventListener("touchend",T),an.removeElement(d)}}e.on("mousedown",l),e.on("touchstart",l)}function Cge(e,r,t,n){function a(l){return t.l2r(an.constrain(l,n._rl[0],n._rl[1]))}var o=a(n.p2d(n._pixelMin)),i=a(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){_ge.call("_guiRelayout",r,t._name+".range",[o,i])})}function Ege(e,r,t,n,a,o){var i=et.handleWidth/2;function l(m){return an.constrain(m,0,n._width)}function u(m){return an.constrain(m,0,n._height)}function s(m){return an.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."+et.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+et.maskMinClassName).attr("width",f),e.select("rect."+et.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."+et.maskMinOppAxisClassName).attr("x",f).attr("height",g).attr("width",c-f),e.select("rect."+et.maskMaxOppAxisClassName).attr("x",f).attr("y",b).attr("height",n._height-b).attr("width",c-f),e.select("rect."+et.slideBoxClassName).attr("y",g).attr("height",b-g)}var d=.5,_=Math.round(s(f-i))-d,T=Math.round(s(c-i))+d;e.select("g."+et.grabberMinClassName).attr("transform",Kp(_,d)),e.select("g."+et.grabberMaxClassName).attr("transform",Kp(T,d))}function Lge(e,r,t,n){var a=an.ensureSingle(e,"rect",et.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=Iq.crispRound(r,n.borderwidth);a.attr({width:n._width+o,height:n._height+o,transform:Kp(i,i),"stroke-width":l}).call(Gl.stroke,n.bordercolor).call(Gl.fill,n.bgcolor)}function Rge(e,r,t,n){var a=r._fullLayout,o=an.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 Dge(e,r,t,n){var a=r.calcdata,o=e.selectAll("g."+et.rangePlotClassName).data(t._subplotsWith,an.identity);o.enter().append("g").attr("class",function(l){return et.rangePlotClassName+" "+l}).call(Iq.setClipUrl,n._clipId,r),o.order(),o.exit().remove();var i;o.each(function(l,u){var s=$p.select(this),f=u===0,c=Gx.getFromId(r,l,"y"),g=c._name,b=n[g],d={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&&(d.layout.xaxis.rangebreaks=t.rangebreaks),d.layout[g]={type:c.type,domain:[0,1],range:b.rangemode!=="match"?b.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(d.layout[g].rangebreaks=c.rangebreaks),wge.supplyDefaults(d);var _=d._fullLayout.xaxis,T=d._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),Tge.rangePlot(r,m,Pge(a,l))})}function Pge(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 Ige(e,r,t,n,a){var o=an.ensureSingle(e,"rect",et.maskMinClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})});o.attr("height",n._height).call(Gl.fill,et.maskColor);var i=an.ensureSingle(e,"rect",et.maskMaxClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});if(i.attr("height",n._height).call(Gl.fill,et.maskColor),a.rangemode!=="match"){var l=an.ensureSingle(e,"rect",et.maskMinOppAxisClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",n._width).call(Gl.fill,et.maskOppAxisColor);var u=an.ensureSingle(e,"rect",et.maskMaxOppAxisClassName,function(s){s.attr({y:0,"shape-rendering":"crispEdges"})});u.attr("width",n._width).style("border-top",et.maskOppBorder).call(Gl.fill,et.maskOppAxisColor)}}function zge(e,r,t,n){if(!r._context.staticPlot){var a=an.ensureSingle(e,"rect",et.slideBoxClassName,function(o){o.attr({y:0,cursor:et.slideBoxCursor,"shape-rendering":"crispEdges"})});a.attr({height:n._height,fill:et.slideBoxFill})}}function Fge(e,r,t,n){var a=an.ensureSingle(e,"g",et.grabberMinClassName),o=an.ensureSingle(e,"g",et.grabberMaxClassName),i={x:0,width:et.handleWidth,rx:et.handleRadius,fill:Gl.background,stroke:Gl.defaultLine,"stroke-width":et.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(n._height/4),height:Math.round(n._height/2)},u=an.ensureSingle(a,"rect",et.handleMinClassName,function(b){b.attr(i)});u.attr(l);var s=an.ensureSingle(o,"rect",et.handleMaxClassName,function(b){b.attr(i)});s.attr(l);var f={width:et.grabAreaWidth,x:0,y:0,fill:et.grabAreaFill,cursor:r._context.staticPlot?void 0:et.grabAreaCursor},c=an.ensureSingle(a,"rect",et.grabAreaMinClassName,function(b){b.attr(f)});c.attr("height",n._height);var g=an.ensureSingle(o,"rect",et.grabAreaMaxClassName,function(b){b.attr(f)});g.attr("height",n._height)}});var qq=xe((Hwe,Nq)=>{"use strict";var Nge=rr(),qge=Gp(),Oge=Vx(),Yx=kq();Nq.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Nge.extendFlat({},qge,{yaxis:Oge})}}},layoutAttributes:Gp(),handleDefaults:Lq(),calcAutorange:Dq(),draw:Fq(),isVisible:Yx.isVisible,makeData:Yx.makeData,autoMarginOpts:Yx.autoMarginOpts}});var Qp=xe((Vwe,Bq)=>{"use strict";var Bge=Wn(),Oq=ao(),Uge=At().templatedArray,Hge=Uge("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:Hge,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:Bge({editType:"plot"}),bgcolor:{valType:"color",dflt:Oq.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Oq.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var Xx={};Ot(Xx,{darkAmount:()=>Zge,lightAmount:()=>Wge,minButtonWidth:()=>Gge,rx:()=>Yge,ry:()=>Xge,yPad:()=>Vge});var Vge,Gge,Yge,Xge,Wge,Zge,Wx=qt(()=>{"use strict";Vge=.02,Gge=30,Yge=3,Xge=3,Wge=25,Zge=10});var Vq=xe((Gwe,Hq)=>{"use strict";var jp=rr(),Jge=Zr(),$ge=At(),Kge=Ii(),Uq=Qp(),Zx=(Wx(),or(Xx));Hq.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=$ge.newContainer(t,"rangeselector");function u(b,d){return jp.coerce(i,l,Uq,b,d)}var s=Kge(i,l,{name:"buttons",handleItemDefaults:Qge,calendar:o}),f=u("visible",s.length>0);if(f){var c=jge(t,n,a);u("x",c[0]),u("y",c[1]),jp.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),jp.coerceFont(u,"font",n.font);var g=u("bgcolor");u("activecolor",Jge.contrast(g,Zx.lightAmount,Zx.darkAmount)),u("bordercolor"),u("borderwidth")}};function Qge(e,r,t,n){var a=n.calendar;function o(u,s){return jp.coerce(e,r,Uq.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 jge(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 Yq=xe((Ywe,Gq)=>{"use strict";var e2e=u2(),r2e=rr().titleCase;Gq.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=t2e(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function t2e(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=e2e["utc"+r2e(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 jq=xe((Xwe,Qq)=>{"use strict";var rg=st(),n2e=Cr(),a2e=Cn(),Xq=Zr(),Kq=kt(),Jo=rr(),Wq=Jo.strTranslate,eg=Qn(),i2e=xn(),Kx=(Kn(),or($n)),Zq=Kx.LINE_SPACING,Jq=Kx.FROM_TL,$q=Kx.FROM_BR,$x=(Wx(),or(Xx)),o2e=Yq();Qq.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(l2e(r),s2e);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=rg.select(this),i=a,l=i.rangeselector,u=o.selectAll("g.button").data(Jo.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=rg.select(this),c=o2e(i,s);s._isActive=u2e(i,s,c),f.call(Jx,l,s),f.call(c2e,l,s,r),f.on("click",function(){r._dragged||n2e.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)})}),h2e(r,u,l,i._name,o)})};function l2e(e){for(var r=i2e.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 s2e(e){return e._id}function u2e(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=Jo.ensureSingle(e,"rect","selector-rect",function(a){a.attr("shape-rendering","crispEdges")});n.attr({rx:$x.rx,ry:$x.ry}),n.call(Xq.stroke,r.bordercolor).call(Xq.fill,f2e(r,t)).style("stroke-width",r.borderwidth+"px")}function f2e(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function c2e(e,r,t,n){function a(i){eg.convertToTspans(i,n)}var o=Jo.ensureSingle(e,"text","selector-text",function(i){i.attr("text-anchor","middle")});o.call(Kq.font,r.font).text(v2e(t,n._fullLayout._meta)).call(a)}function v2e(e,r){return e.label?r?Jo.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function h2e(e,r,t,n,a){var o=0,i=0,l=t.borderwidth;r.each(function(){var b=rg.select(this),d=b.select(".selector-text"),_=t.font.size*Zq,T=Math.max(_*eg.lineCount(d),16)+3;i=Math.max(i,T)}),r.each(function(){var b=rg.select(this),d=b.select(".selector-rect"),_=b.select(".selector-text"),T=_.node()&&Kq.bBox(_.node()).width,m=t.font.size*Zq,k=eg.lineCount(_),S=Math.max(T+10,$x.minButtonWidth);b.attr("transform",Wq(l+o,l)),d.attr({x:0,y:0,width:S,height:i}),eg.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";Jo.isRightAnchor(t)&&(s-=o,c="right"),Jo.isCenterAnchor(t)&&(s-=o/2,c="center");var g="top";Jo.isBottomAnchor(t)&&(f-=i,g="bottom"),Jo.isMiddleAnchor(t)&&(f-=i/2,g="middle"),o=Math.ceil(o),i=Math.ceil(i),s=Math.round(s),f=Math.round(f),a2e.autoMargin(e,n+"-range-selector",{x:t.x,y:t.y,l:o*Jq[c],r:o*$q[c],b:i*$q[g],t:i*Jq[g]}),a.attr("transform",Wq(s,f))}});var rO=xe((Wwe,eO)=>{"use strict";eO.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Qp()}}},layoutAttributes:Qp(),handleDefaults:Vq(),draw:jq()}});var tg=xe(Qx=>{"use strict";var tO=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:tO({},t,{}),y:tO({},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 lO=xe((Jwe,oO)=>{"use strict";var d2e=rr(),p2e=(Fu(),or(I0)).counter,g2e=tg().attributes,nO=(Sn(),or(kn)).idRegex,y2e=At(),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:[p2e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nO.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nO.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:g2e({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 ng(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 m2e(e,r){var t=e.grid||{},n=ng(r,t,"x"),a=ng(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=y2e.newContainer(r,"grid");function g(h,w){return d2e.coerce(t,c,jx,h,w)}var b=g("rows",s),d=g("columns",f);if(!(b*d>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:aO("x",g,k,x,d),y:aO("y",g,S,M,b,m)}}function aO(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 b2e(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,d,_,T=t._axisMap={};if(o){var m=n.subplots||[];d=t.subplots=new Array(i);var k=1;for(s=0;s<i;s++){var S=d[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=ng(r,n,"x"),h=ng(r,n,"y");t.xaxes=iO(M,a.xaxis,l,T,"x"),t.yaxes=iO(h,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"],R,E,D;if(p.length<8)w[v]="free";else if(A==="x"){if(p.charAt(0)==="t"===y?(R=0,E=1,D=i):(R=i-1,E=-1,D=-1),o){var I=T[v];for(s=R;s!==D;s+=E)if(b=d[s][I],!!b&&(_=b.indexOf("y"),b.slice(0,_)===v)){w[v]=b.slice(_);break}}else for(s=R;s!==D;s+=E)if(g=t.yaxes[s],a.cartesian.indexOf(v+g)!==-1){w[v]=g;break}}else if(p.charAt(0)==="l"?(R=0,E=1,D=l):(R=l-1,E=-1,D=-1),o){var F=T[v];for(s=R;s!==D;s+=E)if(b=d[F][s],!!b&&(_=b.indexOf("y"),b.slice(_)===v)){w[v]=b.slice(0,_);break}}else for(s=R;s!==D;s+=E)if(c=t.xaxes[s],a.cartesian.indexOf(c+v)!==-1){w[v]=c;break}}}}function iO(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}oO.exports={moduleType:"component",name:"grid",schema:{layout:{grid:jx}},layoutAttributes:jx,sizeDefaults:m2e,contentDefaults:b2e}});var e4=xe(($we,sO)=>{"use strict";sO.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 cO=xe((Kwe,fO)=>{"use strict";var uO=ft(),x2e=Cr(),_2e=rr(),w2e=At(),M2e=e4();fO.exports=function(e,r,t,n){var a="error_"+n.axis,o=w2e.newContainer(r,a),i=e[a]||{};function l(d,_){return _2e.coerce(i,o,M2e,d,_)}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||uO(i.thickness)||uO(i.width)))}(!n.inherit||!o[g])&&(l("color",t),l("thickness"),l("width",x2e.traceIs(r,"gl3d")?0:4))}}});var r4=xe((Qwe,hO)=>{"use strict";hO.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=vO(t,r.value),l=vO(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 vO(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 gO=xe((jwe,pO)=>{"use strict";var t4=ft(),T2e=Cr(),n4=Bt(),A2e=rr(),k2e=r4();pO.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&&T2e.traceIs(o,"errorBarsOK")){var i=n4.getFromId(r,o.xaxis),l=n4.getFromId(r,o.yaxis);dO(a,o,i,"x"),dO(a,o,l,"y")}}};function dO(e,r,t,n){var a=r["error_"+n]||{},o=a.visible&&["linear","log"].indexOf(t.type)!==-1,i=[];if(o){for(var l=k2e(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],d=s[n+"h"]=c+g[1];i.push(b,d)}}}var _=t._id,T=r._extremes[_],m=n4.findExtremes(t,i,A2e.extendFlat({tozero:T.opts.tozero},{padded:!0}));T.min=T.min.concat(m.min),T.max=T.max.concat(m.max)}}});var bO=xe((e8e,mO)=>{"use strict";var yO=st(),Yl=ft(),S2e=kt(),C2e=Ra();mO.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||{},d;c.ids&&(d=function(k){return k.id});var _=C2e.hasMarkers(c)&&c.marker.maxdisplayed>0;!b.visible&&!g.visible&&(f=[]);var T=yO.select(this).selectAll("g.errorbar").data(f,d);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),S2e.setClipUrl(T,n.layerClipId,r),T.each(function(k){var S=yO.select(this),x=E2e(k,i,l);if(!(_&&!k.vis)){var M,h=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=!h.size(),o?h=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(h=h.transition().duration(a.duration).ease(a.easing)),h.attr("d",M)}else h.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 E2e(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 wO=xe((r8e,_O)=>{"use strict";var L2e=st(),xO=Zr();_O.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=L2e.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(xO.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(xO.stroke,o.color)})}});var AO=xe((t8e,TO)=>{"use strict";var sv=rr(),MO=ua().overrideAll,uv=e4(),ou={error_x:sv.extendFlat({},uv),error_y:sv.extendFlat({},uv)};delete ou.error_x.copy_zstyle;delete ou.error_y.copy_zstyle;delete ou.error_y.copy_ystyle;var fv={error_x:sv.extendFlat({},uv),error_y:sv.extendFlat({},uv),error_z:sv.extendFlat({},uv)};delete fv.error_x.copy_ystyle;delete fv.error_y.copy_ystyle;delete fv.error_z.copy_ystyle;delete fv.error_z.copy_zstyle;TO.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:ou,bar:ou,histogram:ou,scatter3d:MO(fv,"calc","nested"),scattergl:MO(ou,"calc","nested")}},supplyDefaults:cO(),calc:gO(),makeComputeError:r4(),plot:bO(),style:wO(),hoverInfo:R2e};function R2e(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 kO={};Ot(kO,{cn:()=>D2e});var D2e,SO=qt(()=>{"use strict";D2e={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 zO=xe((n8e,IO)=>{"use strict";var Xl=st(),ig=Cn(),CO=Cr(),$o=Bt(),ag=Fi(),wi=rr(),Zi=wi.strTranslate,PO=Rt().extendFlat,a4=Rl(),Wi=kt(),Of=Zr(),P2e=Q0(),I2e=Qn(),z2e=oo().flipScale,F2e=kp(),N2e=vx(),q2e=si(),o4=(Kn(),or($n)),EO=o4.LINE_SPACING,LO=o4.FROM_TL,RO=o4.FROM_BR,Ht=(SO(),or(kO)).cn;function O2e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Ht.colorbar).data(B2e(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Ht.colorbar,!0),t.each(function(n){var a=Xl.select(this);wi.ensureSingle(a,"rect",Ht.cbbg),wi.ensureSingle(a,"g",Ht.cbfills),wi.ensureSingle(a,"g",Ht.cblines),wi.ensureSingle(a,"g",Ht.cbaxis,function(i){i.classed(Ht.crisp,!0)}),wi.ensureSingle(a,"g",Ht.cbtitleunshift,function(i){i.append("g").classed(Ht.cbtitle,!0)}),wi.ensureSingle(a,"rect",Ht.cboutline);var o=U2e(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&H2e(a,n,e)}),t.exit().each(function(n){ig.autoMargin(e,n._id)}).remove(),t.order()}function B2e(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return PO(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?z2e(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),d=b?g:[g],_=0;_<d.length;_++){l=d[_];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]],DO=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function U2e(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,d=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,h=r._line,w=r.title,y=w.side,v=r._zrange||Xl.extent((typeof M=="function"?M:h.color).domain()),A=typeof h.color=="function"?h.color:function(){return h.color},p=typeof M=="function"?M:function(){return M},R=r._levels,E=V2e(t,r,v),D=E.fill,I=E.line,F=Math.round(i*(l==="fraction"?n?x.w:x.h:1)),P=F/(n?x.w:x.h),L=Math.round(a*(o==="fraction"?n?x.h:x.w:1)),z=L/(n?x.h:x.w),O=k?x.w:t._fullLayout.width,B=m?x.h:t._fullLayout.height,V=Math.round(n?_*O+b:T*B+d),J={center:.5,right:1}[c]||0,Q={top:1,middle:.5}[g]||0,G=n?_-J*P:T-Q*P,q=n?T-Q*z:_-J*z,Z=Math.round(n?B*(1-q):O*q);r._lenFrac=z,r._thickFrac=P,r._uFrac=G,r._vFrac=q;var re=r._axis=G2e(t,r,v);re.position=P+(n?_+b/x.w:T+d/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"?z-d/x.h:d/x.h)),!n&&!$&&(re.title.side=y,re.titley=T+d/x.h,re.titlex=q+b/x.w),h.color&&r.tickmode==="auto"){re.tickmode="linear",re.tick0=R.start;var ie=R.size,j=wi.constrain(L/50,4,15)+1,te=(v[1]-v[0])/((r.nticks||j)*ie);if(te>1){var ue=Math.pow(10,Math.floor(Math.log(te)/Math.LN10));ie*=ue*wi.roundUp(te/ue,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(re.tick0=0)}re.dtick=ie}var ee=n?d/x.h:b/x.w;re.domain=DO(i4([q,q+z],ee),ee),re.setScale(),e.attr("transform",Zi(Math.round(x.l),Math.round(x.t)));var ae=e.select("."+Ht.cbtitleunshift).attr("transform",Zi(-Math.round(x.l),-Math.round(x.t))),fe=re.ticklabelposition,we=re.title.font.size,Me=e.select("."+Ht.cbaxis),ke,ge=0,Ee=0;function Le(oe,he){var pe={propContainer:re,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Ht.cbtitle)},me=oe.charAt(0)==="h"?oe.slice(1):"h"+oe;e.selectAll("."+me+",."+me+"-math-group").remove(),P2e.draw(t,oe,PO(pe,he||{}))}function se(){if(n&&$||!n&&!$){var oe,he;y==="top"&&(oe=b+x.l+O*_,he=d+x.t+B*(1-q-z)+3+we*.75),y==="bottom"&&(oe=b+x.l+O*_,he=d+x.t+B*(1-q)-3-we*.25),y==="right"&&(he=d+x.t+B*T+3+we*.75,oe=b+x.l+O*q),Le(re._id+"title",{attributes:{x:oe,y:he,"text-anchor":n?"start":"middle"}})}}function X(){if(n&&!$||!n&&$){var oe=re.position||0,he=re._offset+re._length/2,pe,me;if(y==="right")me=he,pe=x.l+O*oe+10+we*(re.showticklabels?1:.5);else if(pe=he,y==="bottom"&&(me=x.t+B*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+B*oe+10-F-EO*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("."+Ht.cbtitle),he=oe.select("text"),pe=[-u/2,u/2],me=oe.select(".h"+re._id+"title-math-group").node(),Se=15.6;he.node()&&(Se=parseInt(he.node().style.fontSize,10)*EO);var ve;if(me?(ve=Wi.bBox(me),Ee=ve.width,ge=ve.height,ge>Se&&(pe[1]-=(ge-Se)/2)):he.node()&&!he.classed(Ht.jsPlaceholder)&&(ve=Wi.bBox(he.node()),Ee=ve.width,ge=ve.height),n){if(ge){if(ge+=5,y==="top")re.domain=DO(re.domain,ge/x.h),pe[1]*=-1;else{re.domain=i4(re.domain,ge/x.h);var de=I2e.lineCount(he);pe[1]+=(1-de)*Se}oe.attr("transform",Zi(pe[0],pe[1])),re.setScale()}}else Ee&&(y==="right"&&(re.domain=i4(re.domain,(Ee+we/2)/x.w)),oe.attr("transform",Zi(pe[0],pe[1])),re.setScale())}e.selectAll("."+Ht.cbfills+",."+Ht.cblines).attr("transform",n?Zi(0,Math.round(x.h*(1-re.domain[1]))):Zi(Math.round(x.w*re.domain[0]),0)),Me.attr("transform",n?Zi(0,Math.round(-x.t)):Zi(Math.round(-x.l),0));var be=e.select("."+Ht.cbfills).selectAll("rect."+Ht.cbfill).attr("style","").data(D);be.enter().append("rect").classed(Ht.cbfill,!0).attr("style",""),be.exit().remove();var Ae=v.map(re.c2p).map(Math.round).sort(function(Ve,Oe){return Ve-Oe});be.each(function(Ve,Oe){var We=[Oe===0?v[0]:(D[Oe]+D[Oe-1])/2,Oe===D.length-1?v[1]:(D[Oe]+D[Oe+1])/2].map(re.c2p).map(Math.round);n&&(We[1]=wi.constrain(We[1]+(We[1]>We[0])?1:-1,Ae[0],Ae[1]));var Ge=Xl.select(this).attr(n?"x":"y",V).attr(n?"y":"x",Xl.min(We)).attr(n?"width":"height",Math.max(F,2)).attr(n?"height":"width",Math.max(Xl.max(We)-Xl.min(We),2));if(r._fillgradient)Wi.gradient(Ge,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var tr=p(Ve).replace("e-","");Ge.attr("fill",Of.hexString(tr))}});var Pe=e.select("."+Ht.cblines).selectAll("path."+Ht.cbline).data(h.color&&h.width?I:[]);Pe.enter().append("path").classed(Ht.cbline,!0),Pe.exit().remove(),Pe.each(function(Ve){var Oe=V,We=Math.round(re.c2p(Ve))+h.width/2%1;Xl.select(this).attr("d","M"+(n?Oe+","+We:We+","+Oe)+(n?"h":"v")+F).call(Wi.lineGroupStyle,h.width,A(Ve),h.dash)}),Me.selectAll("g."+re._id+"tick,path").remove();var Ie=V+F+(u||0)/2-(r.ticks==="outside"?1:0),Ye=$o.calcTicks(re),qe=$o.getTickSigns(re)[2];return $o.drawTicks(t,re,{vals:re.ticks==="inside"?$o.clipEnds(re,Ye):Ye,layer:Me,path:$o.makeTickPath(re,Ie,qe),transFn:$o.makeTransTickFn(re)}),$o.drawLabels(t,re,{vals:Ye,layer:Me,transFn:$o.makeTransTickLabelFn(re),labelFns:$o.makeLabelFns(re,Ie)})}function ye(){var oe,he=F+u/2;fe.indexOf("inside")===-1&&(oe=Wi.bBox(Me.node()),he+=n?oe.width:oe.height),ke=ae.select("text");var pe=0,me=n&&y==="top",Se=!n&&y==="right",ve=0;if(ke.node()&&!ke.classed(Ht.jsPlaceholder)){var de,be=ae.select(".h"+re._id+"title-math-group").node();be&&(n&&$||!n&&!$)?(oe=Wi.bBox(be),pe=oe.width,de=oe.height):(oe=Wi.bBox(ae.node()),pe=oe.right-x.l-(n?V:Z),de=oe.bottom-x.t-(n?Z:V),!n&&y==="top"&&(he+=oe.height,ve=oe.height)),Se&&(ke.attr("transform",Zi(pe/2+we/2,0)),pe*=2),he=Math.max(he,n?pe:de)}var Ae=(n?b:d)*2+he+s+u/2,Pe=0;!n&&w.text&&g==="bottom"&&T<=0&&(Pe=Ae/2,Ae+=Pe,ve+=Pe),S._hColorbarMoveTitle=Pe,S._hColorbarMoveCBTitle=ve;var Ie=s+u,Ye=(n?V:Z)-Ie/2-(n?b:0),qe=(n?Z:V)-(n?L:d+ve-Pe);e.select("."+Ht.cbbg).attr("x",Ye).attr("y",qe).attr(n?"width":"height",Math.max(Ae-Pe,2)).attr(n?"height":"width",Math.max(L+Ie,2)).call(Of.fill,f).call(Of.stroke,r.bordercolor).style("stroke-width",s);var Ve=Se?Math.max(pe-10,0):0;e.selectAll("."+Ht.cboutline).attr("x",(n?V:Z+b)+Ve).attr("y",(n?Z+d-L:V)+(me?ge:0)).attr(n?"width":"height",Math.max(F,2)).attr(n?"height":"width",Math.max(L-(n?2*d+ge:2*b+Ve),2)).call(Of.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var Oe=n?J*Ae:0,We=n?0:(1-Q)*Ae-ve;if(Oe=k?x.l-Oe:-Oe,We=m?x.t-We:-We,e.attr("transform",Zi(Oe,We)),!n&&(s||Of.opacity(f)&&!Of.equals(S.paper_bgcolor,f))){var Ge=Me.selectAll("text"),tr=Ge[0].length,nr=e.select("."+Ht.cbbg).node(),er=Wi.bBox(nr),Qe=Wi.getTranslate(e),Ce=2;Ge.each(function(Ur,ut){var zr=0,tt=tr-1;if(ut===zr||ut===tt){var pn=Wi.bBox(this),it=Wi.getTranslate(this),Xr;if(ut===tt){var Vt=pn.right+it.x,$r=er.right+Qe.x+Z-s-Ce+_;Xr=$r-Vt,Xr>0&&(Xr=0)}else if(ut===zr){var Kr=pn.left+it.x,Gt=er.left+Qe.x+Z+s+Ce;Xr=Gt-Kr,Xr<0&&(Xr=0)}Xr&&(tr<3?this.setAttribute("transform","translate("+Xr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Fe={},Ke=LO[c],je=RO[c],wr=LO[g],Jr=RO[g],Tr=Ae-F;n?(o==="pixels"?(Fe.y=T,Fe.t=L*wr,Fe.b=L*Jr):(Fe.t=Fe.b=0,Fe.yt=T+a*wr,Fe.yb=T-a*Jr),l==="pixels"?(Fe.x=_,Fe.l=Ae*Ke,Fe.r=Ae*je):(Fe.l=Tr*Ke,Fe.r=Tr*je,Fe.xl=_-i*Ke,Fe.xr=_+i*je)):(o==="pixels"?(Fe.x=_,Fe.l=L*Ke,Fe.r=L*je):(Fe.l=Fe.r=0,Fe.xl=_+a*Ke,Fe.xr=_-a*je),l==="pixels"?(Fe.y=1-T,Fe.t=Ae*wr,Fe.b=Ae*Jr):(Fe.t=Tr*wr,Fe.b=Tr*Jr,Fe.yt=T-i*wr,Fe.yb=T+i*Jr));var Pr=r.y<.5?"b":"t",rt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Ar={r:S.width-Ye-Oe,l:Ye+Fe.r,b:S.height-qe-We,t:qe+Fe.b};k&&m?ig.autoMargin(t,r._id,Fe):k?t._fullLayout._reservedMargin[r._id][Pr]=Ar[Pr]:m||n?t._fullLayout._reservedMargin[r._id][rt]=Ar[rt]:t._fullLayout._reservedMargin[r._id][Pr]=Ar[Pr]}return wi.syncOrAsync([ig.previousPromises,se,K,X,ig.previousPromises,ye],t)}function H2e(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;ag.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),a4(e)},moveFn:function(s,f){e.attr("transform",i+Zi(s,f)),l=ag.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=ag.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=ag.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?CO.call("_guiRestyle",t,s,r._traceIndex):CO.call("_guiRelayout",t,s)}}})}function V2e(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 G2e(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 wi.coerce(o,l,q2e,f,c)}return F2e(o,l,s,u,n),N2e(o,l,s,u),l}IO.exports={draw:O2e}});var NO=xe((a8e,FO)=>{"use strict";FO.exports={moduleType:"component",name:"colorbar",attributes:v1(),supplyDefaults:a3(),draw:zO().draw,hasColorbar:Wm()}});var OO=xe((i8e,qO)=>{"use strict";qO.exports={moduleType:"component",name:"legend",layoutAttributes:e5(),supplyLayoutDefaults:t5(),draw:y5(),style:h5()}});var UO=xe((o8e,BO)=>{"use strict";BO.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 VO=xe((l8e,HO)=>{"use strict";HO.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((s8e,WO)=>{"use strict";var Y2e=Cr(),XO=rr(),l4=XO.extendFlat,GO=XO.extendDeep;function YO(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 X2e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}WO.exports=function(r,t){var n,a=r.data,o=r.layout,i=GO([],a),l=GO({},o,YO(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++)X2e(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),Y2e.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 d=document.createElement("div");t.tileClass&&(d.className=t.tileClass);var _={gd:d,td:d,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=YO(t.tileClass),_}});var $O=xe((u8e,JO)=>{"use strict";var W2e=e1().EventEmitter,Z2e=Cr(),J2e=rr(),ZO=Js(),$2e=s4(),K2e=sp(),Q2e=up();function j2e(e,r){var t=new W2e,n=$2e(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=ZO.getDelay(a._fullLayout);setTimeout(function(){var u=K2e(a),s=document.createElement("canvas");s.id=J2e.randstr(),t=Q2e({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=ZO.getRedrawFunc(a);return Z2e.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}JO.exports=j2e});var jO=xe((f8e,QO)=>{"use strict";var KO=Js(),eye={getDelay:KO.getDelay,getRedrawFunc:KO.getRedrawFunc,clone:s4(),toSVG:sp(),svgToImg:up(),toImage:$O(),downloadImage:Nb()};QO.exports=eye});var rB=xe(Ko=>{"use strict";Ko.version=f0().version;t7();UT();var rye=Cr(),cv=Ko.register=rye.register,f4=nI(),eB=Object.keys(f4);for(og=0;og<eB.length;og++)Bf=eB[og],Bf.charAt(0)!=="_"&&(Ko[Bf]=f4[Bf]),cv({moduleType:"apiMethod",name:Bf,fn:f4[Bf]});var Bf,og;cv(mF());cv([VF(),tN(),wf(),_N(),IN(),rq(),xq(),qq(),rO(),lO(),AO(),uo(),NO(),OO(),mo(),G5()]);cv([UO(),VO()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(cv(window.PlotlyLocales),delete window.PlotlyLocales);Ko.Icons=sd();var lg=mo(),u4=Cn();Ko.Plots={resize:u4.resize,graphJson:u4.graphJson,sendDataToCloud:u4.sendDataToCloud};Ko.Fx={hover:lg.hover,unhover:lg.unhover,loneHover:lg.loneHover,loneUnhover:lg.loneUnhover};Ko.Snapshot=jO();Ko.PlotSchema=Ju()});var nB=xe((v8e,tB)=>{"use strict";tB.exports=rB()});var Nn=xe((h8e,aB)=>{"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,d){this._controllerNames=Object.keys(b),this._controllerList=this._controllerNames.map(function(_){return b[_]}),this._mode=d,this._active=b[d],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 d=this._controllerList,_=0;_<d.length;++_)d[_].flush(b)},c.idle=function(b){for(var d=this._controllerList,_=0;_<d.length;++_)d[_].idle(b)},c.lookAt=function(b,d,_,T){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].lookAt(b,d,_,T)},c.rotate=function(b,d,_,T){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].rotate(b,d,_,T)},c.pan=function(b,d,_,T){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].pan(b,d,_,T)},c.translate=function(b,d,_,T){for(var m=this._controllerList,k=0;k<m.length;++k)m[k].translate(b,d,_,T)},c.setMatrix=function(b,d){for(var _=this._controllerList,T=0;T<_.length;++T)_[T].setMatrix(b,d)},c.setDistanceLimits=function(b,d){for(var _=this._controllerList,T=0;T<_.length;++T)_[T].setDistanceLimits(b,d)},c.setDistance=function(b,d){for(var _=this._controllerList,T=0;T<_.length;++T)_[T].setDistance(b,d)},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 d=this._controllerNames.indexOf(b);if(!(d<0)){var _=this._active,T=this._controllerList[d],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 d=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,d,_,T),x.setDistanceLimits(m[0],m[1]),x.lookAt(0,d,_,T),M.setDistanceLimits(m[0],m[1]),M.lookAt(0,d,_,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),d=b&&(b._triangleBuffer.handle||b._triangleBuffer.buffer);if(!d||!g.isBuffer(d)){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(d,_){var T=_+f,m=String(T).length,k=l(T,b-m);return k+c+d}).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 d=f.length;d<=c;++d){for(var _=new Array(c),T=0;T<c;++T)_[T]=Math.pow(d+1-b,T);g[d]=_}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]],d=[0],_=1;_<c;++_){if(b.push(f[_]),!u(b,g)){b.pop();continue}if(d.push(_),d.length===g+1)return d}return d}},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),d=0;d<g.length;++d)b[d]=c[g[d]];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),d=0;d<g;++d){for(var _=new Array(g+1),T=0;T<=g;++T)_[T]=f[T][d];b[d]=_}b[g]=new Array(g+1);for(var d=0;d<=g;++d)b[g][d]=1;for(var m=new Array(g+1),d=0;d<g;++d)m[d]=c[d];m[g]=1;var k=l(b,m),S=u(k[g+1]);S===0&&(S=1);for(var x=new Array(g+1),d=0;d<=g;++d)x[d]=u(k[d])/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 h=M===x?0:4-M%4;return[M,h]}function b(S){var x=g(S),M=x[0],h=x[1];return(M+h)*3/4-h}function d(S,x,M){return(x+M)*3/4-M}function _(S){var x,M=g(S),h=M[0],w=M[1],y=new u(d(S,h,w)),v=0,A=w>0?h-4:h,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 h,w=[],y=x;y<M;y+=3)h=(S[y]<<16&16711680)+(S[y+1]<<8&65280)+(S[y+2]&255),w.push(T(h));return w.join("")}function k(S){for(var x,M=S.length,h=M%3,w=[],y=16383,v=0,A=M-h;v<A;v+=y)w.push(m(S,v,v+y>A?A:v+y));return h===1?(x=S[M-1],w.push(i[x>>2]+i[x<<4&63]+"==")):h===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(d,_){if(l(d))return _?g(d,b(_)):[d[0].clone(),d[1].clone()];var T=0,m,k;if(u(d))m=d.clone();else if(typeof d=="string")m=f(d);else{if(d===0)return[s(0),s(1)];if(d===Math.floor(d))m=s(d);else{for(;d!==Math.floor(d);)d=d*Math.pow(2,256),T-=256;m=s(d)}}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 d=c[b];g+=d*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 d=f.gcd(c);return d.cmpn(1)?[f.div(d),c.div(d)]:[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()),d=b.div,_=l(d),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,d,_){for(var T=_+1;d<=_;){var m=d+_>>>1,k=c[m],S=b!==void 0?b(k,g):k-g;S>=0?(T=m,_=m-1):d=m+1}return T}function i(c,g,b,d,_){for(var T=_+1;d<=_;){var m=d+_>>>1,k=c[m],S=b!==void 0?b(k,g):k-g;S>0?(T=m,_=m-1):d=m+1}return T}function l(c,g,b,d,_){for(var T=d-1;d<=_;){var m=d+_>>>1,k=c[m],S=b!==void 0?b(k,g):k-g;S<0?(T=m,d=m+1):_=m-1}return T}function u(c,g,b,d,_){for(var T=d-1;d<=_;){var m=d+_>>>1,k=c[m],S=b!==void 0?b(k,g):k-g;S<=0?(T=m,d=m+1):_=m-1}return T}function s(c,g,b,d,_){for(;d<=_;){var T=d+_>>>1,m=c[T],k=b!==void 0?b(m,g):m-g;if(k===0)return T;k<=0?d=T+1:_=T-1}return-1}function f(c,g,b,d,_,T){return typeof b=="function"?T(c,g,b,d===void 0?0:d|0,_===void 0?c.length-1:_|0):T(c,g,void 0,b===void 0?0:b|0,d===void 0?c.length-1:d|0)}a.exports={ge:function(c,g,b,d,_){return f(c,g,b,d,_,o)},gt:function(c,g,b,d,_){return f(c,g,b,d,_,i)},lt:function(c,g,b,d,_){return f(c,g,b,d,_,l)},le:function(c,g,b,d,_){return f(c,g,b,d,_,u)},eq:function(c,g,b,d,_){return f(c,g,b,d,_,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(P,L){if(!P)throw new Error(L||"Assertion failed")}function f(P,L){P.super_=L;var z=function(){};z.prototype=L.prototype,P.prototype=new z,P.prototype.constructor=P}function c(P,L,z){if(c.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((L==="le"||L==="be")&&(z=L,L=10),this._init(P||0,L||10,z||"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(P){}c.isBN=function(L){return L instanceof c?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===c.wordSize&&Array.isArray(L.words)},c.max=function(L,z){return L.cmp(z)>0?L:z},c.min=function(L,z){return L.cmp(z)<0?L:z},c.prototype._init=function(L,z,O){if(typeof L=="number")return this._initNumber(L,z,O);if(typeof L=="object")return this._initArray(L,z,O);z==="hex"&&(z=16),s(z===(z|0)&&z>=2&&z<=36),L=L.toString().replace(/\s+/g,"");var B=0;L[0]==="-"&&(B++,this.negative=1),B<L.length&&(z===16?this._parseHex(L,B,O):(this._parseBase(L,z,B),O==="le"&&this._initArray(this.toArray(),z,O)))},c.prototype._initNumber=function(L,z,O){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),O==="le"&&this._initArray(this.toArray(),z,O)},c.prototype._initArray=function(L,z,O){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 B=0;B<this.length;B++)this.words[B]=0;var V,J,Q=0;if(O==="be")for(B=L.length-1,V=0;B>=0;B-=3)J=L[B]|L[B-1]<<8|L[B-2]<<16,this.words[V]|=J<<Q&67108863,this.words[V+1]=J>>>26-Q&67108863,Q+=24,Q>=26&&(Q-=26,V++);else if(O==="le")for(B=0,V=0;B<L.length;B+=3)J=L[B]|L[B+1]<<8|L[B+2]<<16,this.words[V]|=J<<Q&67108863,this.words[V+1]=J>>>26-Q&67108863,Q+=24,Q>=26&&(Q-=26,V++);return this.strip()};function b(P,L){var z=P.charCodeAt(L);return z>=65&&z<=70?z-55:z>=97&&z<=102?z-87:z-48&15}function d(P,L,z){var O=b(P,z);return z-1>=L&&(O|=b(P,z-1)<<4),O}c.prototype._parseHex=function(L,z,O){this.length=Math.ceil((L.length-z)/6),this.words=new Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var V=0,J=0,Q;if(O==="be")for(B=L.length-1;B>=z;B-=2)Q=d(L,z,B)<<V,this.words[J]|=Q&67108863,V>=18?(V-=18,J+=1,this.words[J]|=Q>>>26):V+=8;else{var G=L.length-z;for(B=G%2===0?z+1:z;B<L.length;B+=2)Q=d(L,z,B)<<V,this.words[J]|=Q&67108863,V>=18?(V-=18,J+=1,this.words[J]|=Q>>>26):V+=8}this.strip()};function _(P,L,z,O){for(var B=0,V=Math.min(P.length,z),J=L;J<V;J++){var Q=P.charCodeAt(J)-48;B*=O,Q>=49?B+=Q-49+10:Q>=17?B+=Q-17+10:B+=Q}return B}c.prototype._parseBase=function(L,z,O){this.words=[0],this.length=1;for(var B=0,V=1;V<=67108863;V*=z)B++;B--,V=V/z|0;for(var J=L.length-O,Q=J%B,G=Math.min(J,J-Q)+O,q=0,Z=O;Z<G;Z+=B)q=_(L,Z,Z+B,z),this.imuln(V),this.words[0]+q<67108864?this.words[0]+=q:this._iaddn(q);if(Q!==0){var re=1;for(q=_(L,Z,L.length,z),Z=0;Z<Q;Z++)re*=z;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 z=0;z<this.length;z++)L.words[z]=this.words[z];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,z){L=L||10,z=z|0||1;var O;if(L===16||L==="hex"){O="";for(var B=0,V=0,J=0;J<this.length;J++){var Q=this.words[J],G=((Q<<B|V)&16777215).toString(16);V=Q>>>24-B&16777215,B+=2,B>=26&&(B-=26,J--),V!==0||J!==this.length-1?O=T[6-G.length]+G+O:O=G+O}for(V!==0&&(O=V.toString(16)+O);O.length%z!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(L===(L|0)&&L>=2&&L<=36){var q=m[L],Z=k[L];O="";var re=this.clone();for(re.negative=0;!re.isZero();){var $=re.modn(Z).toString(L);re=re.idivn(Z),re.isZero()?O=$+O:O=T[q-$.length]+$+O}for(this.isZero()&&(O="0"+O);O.length%z!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}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,z){return s(typeof g!="undefined"),this.toArrayLike(g,L,z)},c.prototype.toArray=function(L,z){return this.toArrayLike(Array,L,z)},c.prototype.toArrayLike=function(L,z,O){var B=this.byteLength(),V=O||Math.max(1,B);s(B<=V,"byte array longer than desired length"),s(V>0,"Requested array length <= 0"),this.strip();var J=z==="le",Q=new L(V),G,q,Z=this.clone();if(J){for(q=0;!Z.isZero();q++)G=Z.andln(255),Z.iushrn(8),Q[q]=G;for(;q<V;q++)Q[q]=0}else{for(q=0;q<V-B;q++)Q[q]=0;for(q=0;!Z.isZero();q++)G=Z.andln(255),Z.iushrn(8),Q[V-q-1]=G}return Q},Math.clz32?c.prototype._countBits=function(L){return 32-Math.clz32(L)}:c.prototype._countBits=function(L){var z=L,O=0;return z>=4096&&(O+=13,z>>>=13),z>=64&&(O+=7,z>>>=7),z>=8&&(O+=4,z>>>=4),z>=2&&(O+=2,z>>>=2),O+z},c.prototype._zeroBits=function(L){if(L===0)return 26;var z=L,O=0;return(z&8191)===0&&(O+=13,z>>>=13),(z&127)===0&&(O+=7,z>>>=7),(z&15)===0&&(O+=4,z>>>=4),(z&3)===0&&(O+=2,z>>>=2),(z&1)===0&&O++,O},c.prototype.bitLength=function(){var L=this.words[this.length-1],z=this._countBits(L);return(this.length-1)*26+z};function S(P){for(var L=new Array(P.bitLength()),z=0;z<L.length;z++){var O=z/26|0,B=z%26;L[z]=(P.words[O]&1<<B)>>>B}return L}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,z=0;z<this.length;z++){var O=this._zeroBits(this.words[z]);if(L+=O,O!==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 z=0;z<L.length;z++)this.words[z]=this.words[z]|L.words[z];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 z;this.length>L.length?z=L:z=this;for(var O=0;O<z.length;O++)this.words[O]=this.words[O]&L.words[O];return this.length=z.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 z,O;this.length>L.length?(z=this,O=L):(z=L,O=this);for(var B=0;B<O.length;B++)this.words[B]=z.words[B]^O.words[B];if(this!==z)for(;B<z.length;B++)this.words[B]=z.words[B];return this.length=z.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 z=Math.ceil(L/26)|0,O=L%26;this._expand(z),O>0&&z--;for(var B=0;B<z;B++)this.words[B]=~this.words[B]&67108863;for(O>0&&(this.words[B]=~this.words[B]&67108863>>26-O,B++);B<this.length;B++)this.words[B]=0;return this.strip()},c.prototype.notn=function(L){return this.clone().inotn(L)},c.prototype.setn=function(L,z){s(typeof L=="number"&&L>=0);var O=L/26|0,B=L%26;return this._expand(O+1),z?this.words[O]=this.words[O]|1<<B:this.words[O]=this.words[O]&~(1<<B),this.strip()},c.prototype.iadd=function(L){var z;if(this.negative!==0&&L.negative===0)return this.negative=0,z=this.isub(L),this.negative^=1,this._normSign();if(this.negative===0&&L.negative!==0)return L.negative=0,z=this.isub(L),L.negative=1,z._normSign();var O,B;this.length>L.length?(O=this,B=L):(O=L,B=this);for(var V=0,J=0;J<B.length;J++)z=(O.words[J]|0)+(B.words[J]|0)+V,this.words[J]=z&67108863,V=z>>>26;for(;V!==0&&J<O.length;J++)z=(O.words[J]|0)+V,this.words[J]=z&67108863,V=z>>>26;if(this.length=O.length,V!==0)this.words[this.length]=V,this.length++;else if(O!==this)for(;J<O.length;J++)this.words[J]=O.words[J];return this},c.prototype.add=function(L){var z;return L.negative!==0&&this.negative===0?(L.negative=0,z=this.sub(L),L.negative^=1,z):L.negative===0&&this.negative!==0?(this.negative=0,z=L.sub(this),this.negative=1,z):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 z=this.iadd(L);return L.negative=1,z._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var O=this.cmp(L);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var B,V;O>0?(B=this,V=L):(B=L,V=this);for(var J=0,Q=0;Q<V.length;Q++)z=(B.words[Q]|0)-(V.words[Q]|0)+J,J=z>>26,this.words[Q]=z&67108863;for(;J!==0&&Q<B.length;Q++)z=(B.words[Q]|0)+J,J=z>>26,this.words[Q]=z&67108863;if(J===0&&Q<B.length&&B!==this)for(;Q<B.length;Q++)this.words[Q]=B.words[Q];return this.length=Math.max(this.length,Q),B!==this&&(this.negative=1),this.strip()},c.prototype.sub=function(L){return this.clone().isub(L)};function x(P,L,z){z.negative=L.negative^P.negative;var O=P.length+L.length|0;z.length=O,O=O-1|0;var B=P.words[0]|0,V=L.words[0]|0,J=B*V,Q=J&67108863,G=J/67108864|0;z.words[0]=Q;for(var q=1;q<O;q++){for(var Z=G>>>26,re=G&67108863,$=Math.min(q,L.length-1),ie=Math.max(0,q-P.length+1);ie<=$;ie++){var j=q-ie|0;B=P.words[j]|0,V=L.words[ie]|0,J=B*V+re,Z+=J/67108864|0,re=J&67108863}z.words[q]=re|0,G=Z|0}return G!==0?z.words[q]=G|0:z.length--,z.strip()}var M=function(L,z,O){var B=L.words,V=z.words,J=O.words,Q=0,G,q,Z,re=B[0]|0,$=re&8191,ie=re>>>13,j=B[1]|0,te=j&8191,ue=j>>>13,ee=B[2]|0,ae=ee&8191,fe=ee>>>13,we=B[3]|0,Me=we&8191,ke=we>>>13,ge=B[4]|0,Ee=ge&8191,Le=ge>>>13,se=B[5]|0,X=se&8191,K=se>>>13,ye=B[6]|0,oe=ye&8191,he=ye>>>13,pe=B[7]|0,me=pe&8191,Se=pe>>>13,ve=B[8]|0,de=ve&8191,be=ve>>>13,Ae=B[9]|0,Pe=Ae&8191,Ie=Ae>>>13,Ye=V[0]|0,qe=Ye&8191,Ve=Ye>>>13,Oe=V[1]|0,We=Oe&8191,Ge=Oe>>>13,tr=V[2]|0,nr=tr&8191,er=tr>>>13,Qe=V[3]|0,Ce=Qe&8191,Fe=Qe>>>13,Ke=V[4]|0,je=Ke&8191,wr=Ke>>>13,Jr=V[5]|0,Tr=Jr&8191,Pr=Jr>>>13,rt=V[6]|0,Ar=rt&8191,Ur=rt>>>13,ut=V[7]|0,zr=ut&8191,tt=ut>>>13,pn=V[8]|0,it=pn&8191,Xr=pn>>>13,Vt=V[9]|0,$r=Vt&8191,Kr=Vt>>>13;O.negative=L.negative^z.negative,O.length=19,G=Math.imul($,qe),q=Math.imul($,Ve),q=q+Math.imul(ie,qe)|0,Z=Math.imul(ie,Ve);var Gt=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,G=Math.imul(te,qe),q=Math.imul(te,Ve),q=q+Math.imul(ue,qe)|0,Z=Math.imul(ue,Ve),G=G+Math.imul($,We)|0,q=q+Math.imul($,Ge)|0,q=q+Math.imul(ie,We)|0,Z=Z+Math.imul(ie,Ge)|0;var Yt=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,G=Math.imul(ae,qe),q=Math.imul(ae,Ve),q=q+Math.imul(fe,qe)|0,Z=Math.imul(fe,Ve),G=G+Math.imul(te,We)|0,q=q+Math.imul(te,Ge)|0,q=q+Math.imul(ue,We)|0,Z=Z+Math.imul(ue,Ge)|0,G=G+Math.imul($,nr)|0,q=q+Math.imul($,er)|0,q=q+Math.imul(ie,nr)|0,Z=Z+Math.imul(ie,er)|0;var jt=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(jt>>>26)|0,jt&=67108863,G=Math.imul(Me,qe),q=Math.imul(Me,Ve),q=q+Math.imul(ke,qe)|0,Z=Math.imul(ke,Ve),G=G+Math.imul(ae,We)|0,q=q+Math.imul(ae,Ge)|0,q=q+Math.imul(fe,We)|0,Z=Z+Math.imul(fe,Ge)|0,G=G+Math.imul(te,nr)|0,q=q+Math.imul(te,er)|0,q=q+Math.imul(ue,nr)|0,Z=Z+Math.imul(ue,er)|0,G=G+Math.imul($,Ce)|0,q=q+Math.imul($,Fe)|0,q=q+Math.imul(ie,Ce)|0,Z=Z+Math.imul(ie,Fe)|0;var sr=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(sr>>>26)|0,sr&=67108863,G=Math.imul(Ee,qe),q=Math.imul(Ee,Ve),q=q+Math.imul(Le,qe)|0,Z=Math.imul(Le,Ve),G=G+Math.imul(Me,We)|0,q=q+Math.imul(Me,Ge)|0,q=q+Math.imul(ke,We)|0,Z=Z+Math.imul(ke,Ge)|0,G=G+Math.imul(ae,nr)|0,q=q+Math.imul(ae,er)|0,q=q+Math.imul(fe,nr)|0,Z=Z+Math.imul(fe,er)|0,G=G+Math.imul(te,Ce)|0,q=q+Math.imul(te,Fe)|0,q=q+Math.imul(ue,Ce)|0,Z=Z+Math.imul(ue,Fe)|0,G=G+Math.imul($,je)|0,q=q+Math.imul($,wr)|0,q=q+Math.imul(ie,je)|0,Z=Z+Math.imul(ie,wr)|0;var Vr=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,G=Math.imul(X,qe),q=Math.imul(X,Ve),q=q+Math.imul(K,qe)|0,Z=Math.imul(K,Ve),G=G+Math.imul(Ee,We)|0,q=q+Math.imul(Ee,Ge)|0,q=q+Math.imul(Le,We)|0,Z=Z+Math.imul(Le,Ge)|0,G=G+Math.imul(Me,nr)|0,q=q+Math.imul(Me,er)|0,q=q+Math.imul(ke,nr)|0,Z=Z+Math.imul(ke,er)|0,G=G+Math.imul(ae,Ce)|0,q=q+Math.imul(ae,Fe)|0,q=q+Math.imul(fe,Ce)|0,Z=Z+Math.imul(fe,Fe)|0,G=G+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,G=G+Math.imul($,Tr)|0,q=q+Math.imul($,Pr)|0,q=q+Math.imul(ie,Tr)|0,Z=Z+Math.imul(ie,Pr)|0;var Rr=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,G=Math.imul(oe,qe),q=Math.imul(oe,Ve),q=q+Math.imul(he,qe)|0,Z=Math.imul(he,Ve),G=G+Math.imul(X,We)|0,q=q+Math.imul(X,Ge)|0,q=q+Math.imul(K,We)|0,Z=Z+Math.imul(K,Ge)|0,G=G+Math.imul(Ee,nr)|0,q=q+Math.imul(Ee,er)|0,q=q+Math.imul(Le,nr)|0,Z=Z+Math.imul(Le,er)|0,G=G+Math.imul(Me,Ce)|0,q=q+Math.imul(Me,Fe)|0,q=q+Math.imul(ke,Ce)|0,Z=Z+Math.imul(ke,Fe)|0,G=G+Math.imul(ae,je)|0,q=q+Math.imul(ae,wr)|0,q=q+Math.imul(fe,je)|0,Z=Z+Math.imul(fe,wr)|0,G=G+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,G=G+Math.imul($,Ar)|0,q=q+Math.imul($,Ur)|0,q=q+Math.imul(ie,Ar)|0,Z=Z+Math.imul(ie,Ur)|0;var ot=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(ot>>>26)|0,ot&=67108863,G=Math.imul(me,qe),q=Math.imul(me,Ve),q=q+Math.imul(Se,qe)|0,Z=Math.imul(Se,Ve),G=G+Math.imul(oe,We)|0,q=q+Math.imul(oe,Ge)|0,q=q+Math.imul(he,We)|0,Z=Z+Math.imul(he,Ge)|0,G=G+Math.imul(X,nr)|0,q=q+Math.imul(X,er)|0,q=q+Math.imul(K,nr)|0,Z=Z+Math.imul(K,er)|0,G=G+Math.imul(Ee,Ce)|0,q=q+Math.imul(Ee,Fe)|0,q=q+Math.imul(Le,Ce)|0,Z=Z+Math.imul(Le,Fe)|0,G=G+Math.imul(Me,je)|0,q=q+Math.imul(Me,wr)|0,q=q+Math.imul(ke,je)|0,Z=Z+Math.imul(ke,wr)|0,G=G+Math.imul(ae,Tr)|0,q=q+Math.imul(ae,Pr)|0,q=q+Math.imul(fe,Tr)|0,Z=Z+Math.imul(fe,Pr)|0,G=G+Math.imul(te,Ar)|0,q=q+Math.imul(te,Ur)|0,q=q+Math.imul(ue,Ar)|0,Z=Z+Math.imul(ue,Ur)|0,G=G+Math.imul($,zr)|0,q=q+Math.imul($,tt)|0,q=q+Math.imul(ie,zr)|0,Z=Z+Math.imul(ie,tt)|0;var Xt=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,G=Math.imul(de,qe),q=Math.imul(de,Ve),q=q+Math.imul(be,qe)|0,Z=Math.imul(be,Ve),G=G+Math.imul(me,We)|0,q=q+Math.imul(me,Ge)|0,q=q+Math.imul(Se,We)|0,Z=Z+Math.imul(Se,Ge)|0,G=G+Math.imul(oe,nr)|0,q=q+Math.imul(oe,er)|0,q=q+Math.imul(he,nr)|0,Z=Z+Math.imul(he,er)|0,G=G+Math.imul(X,Ce)|0,q=q+Math.imul(X,Fe)|0,q=q+Math.imul(K,Ce)|0,Z=Z+Math.imul(K,Fe)|0,G=G+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,G=G+Math.imul(Me,Tr)|0,q=q+Math.imul(Me,Pr)|0,q=q+Math.imul(ke,Tr)|0,Z=Z+Math.imul(ke,Pr)|0,G=G+Math.imul(ae,Ar)|0,q=q+Math.imul(ae,Ur)|0,q=q+Math.imul(fe,Ar)|0,Z=Z+Math.imul(fe,Ur)|0,G=G+Math.imul(te,zr)|0,q=q+Math.imul(te,tt)|0,q=q+Math.imul(ue,zr)|0,Z=Z+Math.imul(ue,tt)|0,G=G+Math.imul($,it)|0,q=q+Math.imul($,Xr)|0,q=q+Math.imul(ie,it)|0,Z=Z+Math.imul(ie,Xr)|0;var en=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(en>>>26)|0,en&=67108863,G=Math.imul(Pe,qe),q=Math.imul(Pe,Ve),q=q+Math.imul(Ie,qe)|0,Z=Math.imul(Ie,Ve),G=G+Math.imul(de,We)|0,q=q+Math.imul(de,Ge)|0,q=q+Math.imul(be,We)|0,Z=Z+Math.imul(be,Ge)|0,G=G+Math.imul(me,nr)|0,q=q+Math.imul(me,er)|0,q=q+Math.imul(Se,nr)|0,Z=Z+Math.imul(Se,er)|0,G=G+Math.imul(oe,Ce)|0,q=q+Math.imul(oe,Fe)|0,q=q+Math.imul(he,Ce)|0,Z=Z+Math.imul(he,Fe)|0,G=G+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,G=G+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,G=G+Math.imul(Me,Ar)|0,q=q+Math.imul(Me,Ur)|0,q=q+Math.imul(ke,Ar)|0,Z=Z+Math.imul(ke,Ur)|0,G=G+Math.imul(ae,zr)|0,q=q+Math.imul(ae,tt)|0,q=q+Math.imul(fe,zr)|0,Z=Z+Math.imul(fe,tt)|0,G=G+Math.imul(te,it)|0,q=q+Math.imul(te,Xr)|0,q=q+Math.imul(ue,it)|0,Z=Z+Math.imul(ue,Xr)|0,G=G+Math.imul($,$r)|0,q=q+Math.imul($,Kr)|0,q=q+Math.imul(ie,$r)|0,Z=Z+Math.imul(ie,Kr)|0;var wt=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(wt>>>26)|0,wt&=67108863,G=Math.imul(Pe,We),q=Math.imul(Pe,Ge),q=q+Math.imul(Ie,We)|0,Z=Math.imul(Ie,Ge),G=G+Math.imul(de,nr)|0,q=q+Math.imul(de,er)|0,q=q+Math.imul(be,nr)|0,Z=Z+Math.imul(be,er)|0,G=G+Math.imul(me,Ce)|0,q=q+Math.imul(me,Fe)|0,q=q+Math.imul(Se,Ce)|0,Z=Z+Math.imul(Se,Fe)|0,G=G+Math.imul(oe,je)|0,q=q+Math.imul(oe,wr)|0,q=q+Math.imul(he,je)|0,Z=Z+Math.imul(he,wr)|0,G=G+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,G=G+Math.imul(Ee,Ar)|0,q=q+Math.imul(Ee,Ur)|0,q=q+Math.imul(Le,Ar)|0,Z=Z+Math.imul(Le,Ur)|0,G=G+Math.imul(Me,zr)|0,q=q+Math.imul(Me,tt)|0,q=q+Math.imul(ke,zr)|0,Z=Z+Math.imul(ke,tt)|0,G=G+Math.imul(ae,it)|0,q=q+Math.imul(ae,Xr)|0,q=q+Math.imul(fe,it)|0,Z=Z+Math.imul(fe,Xr)|0,G=G+Math.imul(te,$r)|0,q=q+Math.imul(te,Kr)|0,q=q+Math.imul(ue,$r)|0,Z=Z+Math.imul(ue,Kr)|0;var Pn=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,G=Math.imul(Pe,nr),q=Math.imul(Pe,er),q=q+Math.imul(Ie,nr)|0,Z=Math.imul(Ie,er),G=G+Math.imul(de,Ce)|0,q=q+Math.imul(de,Fe)|0,q=q+Math.imul(be,Ce)|0,Z=Z+Math.imul(be,Fe)|0,G=G+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,G=G+Math.imul(oe,Tr)|0,q=q+Math.imul(oe,Pr)|0,q=q+Math.imul(he,Tr)|0,Z=Z+Math.imul(he,Pr)|0,G=G+Math.imul(X,Ar)|0,q=q+Math.imul(X,Ur)|0,q=q+Math.imul(K,Ar)|0,Z=Z+Math.imul(K,Ur)|0,G=G+Math.imul(Ee,zr)|0,q=q+Math.imul(Ee,tt)|0,q=q+Math.imul(Le,zr)|0,Z=Z+Math.imul(Le,tt)|0,G=G+Math.imul(Me,it)|0,q=q+Math.imul(Me,Xr)|0,q=q+Math.imul(ke,it)|0,Z=Z+Math.imul(ke,Xr)|0,G=G+Math.imul(ae,$r)|0,q=q+Math.imul(ae,Kr)|0,q=q+Math.imul(fe,$r)|0,Z=Z+Math.imul(fe,Kr)|0;var Na=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(Na>>>26)|0,Na&=67108863,G=Math.imul(Pe,Ce),q=Math.imul(Pe,Fe),q=q+Math.imul(Ie,Ce)|0,Z=Math.imul(Ie,Fe),G=G+Math.imul(de,je)|0,q=q+Math.imul(de,wr)|0,q=q+Math.imul(be,je)|0,Z=Z+Math.imul(be,wr)|0,G=G+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,G=G+Math.imul(oe,Ar)|0,q=q+Math.imul(oe,Ur)|0,q=q+Math.imul(he,Ar)|0,Z=Z+Math.imul(he,Ur)|0,G=G+Math.imul(X,zr)|0,q=q+Math.imul(X,tt)|0,q=q+Math.imul(K,zr)|0,Z=Z+Math.imul(K,tt)|0,G=G+Math.imul(Ee,it)|0,q=q+Math.imul(Ee,Xr)|0,q=q+Math.imul(Le,it)|0,Z=Z+Math.imul(Le,Xr)|0,G=G+Math.imul(Me,$r)|0,q=q+Math.imul(Me,Kr)|0,q=q+Math.imul(ke,$r)|0,Z=Z+Math.imul(ke,Kr)|0;var qa=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(qa>>>26)|0,qa&=67108863,G=Math.imul(Pe,je),q=Math.imul(Pe,wr),q=q+Math.imul(Ie,je)|0,Z=Math.imul(Ie,wr),G=G+Math.imul(de,Tr)|0,q=q+Math.imul(de,Pr)|0,q=q+Math.imul(be,Tr)|0,Z=Z+Math.imul(be,Pr)|0,G=G+Math.imul(me,Ar)|0,q=q+Math.imul(me,Ur)|0,q=q+Math.imul(Se,Ar)|0,Z=Z+Math.imul(Se,Ur)|0,G=G+Math.imul(oe,zr)|0,q=q+Math.imul(oe,tt)|0,q=q+Math.imul(he,zr)|0,Z=Z+Math.imul(he,tt)|0,G=G+Math.imul(X,it)|0,q=q+Math.imul(X,Xr)|0,q=q+Math.imul(K,it)|0,Z=Z+Math.imul(K,Xr)|0,G=G+Math.imul(Ee,$r)|0,q=q+Math.imul(Ee,Kr)|0,q=q+Math.imul(Le,$r)|0,Z=Z+Math.imul(Le,Kr)|0;var ei=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(ei>>>26)|0,ei&=67108863,G=Math.imul(Pe,Tr),q=Math.imul(Pe,Pr),q=q+Math.imul(Ie,Tr)|0,Z=Math.imul(Ie,Pr),G=G+Math.imul(de,Ar)|0,q=q+Math.imul(de,Ur)|0,q=q+Math.imul(be,Ar)|0,Z=Z+Math.imul(be,Ur)|0,G=G+Math.imul(me,zr)|0,q=q+Math.imul(me,tt)|0,q=q+Math.imul(Se,zr)|0,Z=Z+Math.imul(Se,tt)|0,G=G+Math.imul(oe,it)|0,q=q+Math.imul(oe,Xr)|0,q=q+Math.imul(he,it)|0,Z=Z+Math.imul(he,Xr)|0,G=G+Math.imul(X,$r)|0,q=q+Math.imul(X,Kr)|0,q=q+Math.imul(K,$r)|0,Z=Z+Math.imul(K,Kr)|0;var Oa=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(Oa>>>26)|0,Oa&=67108863,G=Math.imul(Pe,Ar),q=Math.imul(Pe,Ur),q=q+Math.imul(Ie,Ar)|0,Z=Math.imul(Ie,Ur),G=G+Math.imul(de,zr)|0,q=q+Math.imul(de,tt)|0,q=q+Math.imul(be,zr)|0,Z=Z+Math.imul(be,tt)|0,G=G+Math.imul(me,it)|0,q=q+Math.imul(me,Xr)|0,q=q+Math.imul(Se,it)|0,Z=Z+Math.imul(Se,Xr)|0,G=G+Math.imul(oe,$r)|0,q=q+Math.imul(oe,Kr)|0,q=q+Math.imul(he,$r)|0,Z=Z+Math.imul(he,Kr)|0;var ht=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(ht>>>26)|0,ht&=67108863,G=Math.imul(Pe,zr),q=Math.imul(Pe,tt),q=q+Math.imul(Ie,zr)|0,Z=Math.imul(Ie,tt),G=G+Math.imul(de,it)|0,q=q+Math.imul(de,Xr)|0,q=q+Math.imul(be,it)|0,Z=Z+Math.imul(be,Xr)|0,G=G+Math.imul(me,$r)|0,q=q+Math.imul(me,Kr)|0,q=q+Math.imul(Se,$r)|0,Z=Z+Math.imul(Se,Kr)|0;var Eo=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(Eo>>>26)|0,Eo&=67108863,G=Math.imul(Pe,it),q=Math.imul(Pe,Xr),q=q+Math.imul(Ie,it)|0,Z=Math.imul(Ie,Xr),G=G+Math.imul(de,$r)|0,q=q+Math.imul(de,Kr)|0,q=q+Math.imul(be,$r)|0,Z=Z+Math.imul(be,Kr)|0;var rn=(Q+G|0)+((q&8191)<<13)|0;Q=(Z+(q>>>13)|0)+(rn>>>26)|0,rn&=67108863,G=Math.imul(Pe,$r),q=Math.imul(Pe,Kr),q=q+Math.imul(Ie,$r)|0,Z=Math.imul(Ie,Kr);var Ba=(Q+G|0)+((q&8191)<<13)|0;return Q=(Z+(q>>>13)|0)+(Ba>>>26)|0,Ba&=67108863,J[0]=Gt,J[1]=Yt,J[2]=jt,J[3]=sr,J[4]=Vr,J[5]=Rr,J[6]=ot,J[7]=Xt,J[8]=en,J[9]=wt,J[10]=Pn,J[11]=Na,J[12]=qa,J[13]=ei,J[14]=Oa,J[15]=ht,J[16]=Eo,J[17]=rn,J[18]=Ba,Q!==0&&(J[19]=Q,O.length++),O};Math.imul||(M=x);function h(P,L,z){z.negative=L.negative^P.negative,z.length=P.length+L.length;for(var O=0,B=0,V=0;V<z.length-1;V++){var J=B;B=0;for(var Q=O&67108863,G=Math.min(V,L.length-1),q=Math.max(0,V-P.length+1);q<=G;q++){var Z=V-q,re=P.words[Z]|0,$=L.words[q]|0,ie=re*$,j=ie&67108863;J=J+(ie/67108864|0)|0,j=j+Q|0,Q=j&67108863,J=J+(j>>>26)|0,B+=J>>>26,J&=67108863}z.words[V]=Q,O=J,J=B}return O!==0?z.words[V]=O:z.length--,z.strip()}function w(P,L,z){var O=new y;return O.mulp(P,L,z)}c.prototype.mulTo=function(L,z){var O,B=this.length+L.length;return this.length===10&&L.length===10?O=M(this,L,z):B<63?O=x(this,L,z):B<1024?O=h(this,L,z):O=w(this,L,z),O};function y(P,L){this.x=P,this.y=L}y.prototype.makeRBT=function(L){for(var z=new Array(L),O=c.prototype._countBits(L)-1,B=0;B<L;B++)z[B]=this.revBin(B,O,L);return z},y.prototype.revBin=function(L,z,O){if(L===0||L===O-1)return L;for(var B=0,V=0;V<z;V++)B|=(L&1)<<z-V-1,L>>=1;return B},y.prototype.permute=function(L,z,O,B,V,J){for(var Q=0;Q<J;Q++)B[Q]=z[L[Q]],V[Q]=O[L[Q]]},y.prototype.transform=function(L,z,O,B,V,J){this.permute(J,L,z,O,B,V);for(var Q=1;Q<V;Q<<=1)for(var G=Q<<1,q=Math.cos(2*Math.PI/G),Z=Math.sin(2*Math.PI/G),re=0;re<V;re+=G)for(var $=q,ie=Z,j=0;j<Q;j++){var te=O[re+j],ue=B[re+j],ee=O[re+j+Q],ae=B[re+j+Q],fe=$*ee-ie*ae;ae=$*ae+ie*ee,ee=fe,O[re+j]=te+ee,B[re+j]=ue+ae,O[re+j+Q]=te-ee,B[re+j+Q]=ue-ae,j!==G&&(fe=q*$-Z*ie,ie=q*ie+Z*$,$=fe)}},y.prototype.guessLen13b=function(L,z){var O=Math.max(z,L)|1,B=O&1,V=0;for(O=O/2|0;O;O=O>>>1)V++;return 1<<V+1+B},y.prototype.conjugate=function(L,z,O){if(!(O<=1))for(var B=0;B<O/2;B++){var V=L[B];L[B]=L[O-B-1],L[O-B-1]=V,V=z[B],z[B]=-z[O-B-1],z[O-B-1]=-V}},y.prototype.normalize13b=function(L,z){for(var O=0,B=0;B<z/2;B++){var V=Math.round(L[2*B+1]/z)*8192+Math.round(L[2*B]/z)+O;L[B]=V&67108863,V<67108864?O=0:O=V/67108864|0}return L},y.prototype.convert13b=function(L,z,O,B){for(var V=0,J=0;J<z;J++)V=V+(L[J]|0),O[2*J]=V&8191,V=V>>>13,O[2*J+1]=V&8191,V=V>>>13;for(J=2*z;J<B;++J)O[J]=0;s(V===0),s((V&-8192)===0)},y.prototype.stub=function(L){for(var z=new Array(L),O=0;O<L;O++)z[O]=0;return z},y.prototype.mulp=function(L,z,O){var B=2*this.guessLen13b(L.length,z.length),V=this.makeRBT(B),J=this.stub(B),Q=new Array(B),G=new Array(B),q=new Array(B),Z=new Array(B),re=new Array(B),$=new Array(B),ie=O.words;ie.length=B,this.convert13b(L.words,L.length,Q,B),this.convert13b(z.words,z.length,Z,B),this.transform(Q,J,G,q,B,V),this.transform(Z,J,re,$,B,V);for(var j=0;j<B;j++){var te=G[j]*re[j]-q[j]*$[j];q[j]=G[j]*$[j]+q[j]*re[j],G[j]=te}return this.conjugate(G,q,B),this.transform(G,q,ie,J,B,V),this.conjugate(ie,J,B),this.normalize13b(ie,B),O.negative=L.negative^z.negative,O.length=L.length+z.length,O.strip()},c.prototype.mul=function(L){var z=new c(null);return z.words=new Array(this.length+L.length),this.mulTo(L,z)},c.prototype.mulf=function(L){var z=new c(null);return z.words=new Array(this.length+L.length),w(this,L,z)},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 z=0,O=0;O<this.length;O++){var B=(this.words[O]|0)*L,V=(B&67108863)+(z&67108863);z>>=26,z+=B/67108864|0,z+=V>>>26,this.words[O]=V&67108863}return z!==0&&(this.words[O]=z,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 z=S(L);if(z.length===0)return new c(1);for(var O=this,B=0;B<z.length&&z[B]===0;B++,O=O.sqr());if(++B<z.length)for(var V=O.sqr();B<z.length;B++,V=V.sqr())z[B]!==0&&(O=O.mul(V));return O},c.prototype.iushln=function(L){s(typeof L=="number"&&L>=0);var z=L%26,O=(L-z)/26,B=67108863>>>26-z<<26-z,V;if(z!==0){var J=0;for(V=0;V<this.length;V++){var Q=this.words[V]&B,G=(this.words[V]|0)-Q<<z;this.words[V]=G|J,J=Q>>>26-z}J&&(this.words[V]=J,this.length++)}if(O!==0){for(V=this.length-1;V>=0;V--)this.words[V+O]=this.words[V];for(V=0;V<O;V++)this.words[V]=0;this.length+=O}return this.strip()},c.prototype.ishln=function(L){return s(this.negative===0),this.iushln(L)},c.prototype.iushrn=function(L,z,O){s(typeof L=="number"&&L>=0);var B;z?B=(z-z%26)/26:B=0;var V=L%26,J=Math.min((L-V)/26,this.length),Q=67108863^67108863>>>V<<V,G=O;if(B-=J,B=Math.max(0,B),G){for(var q=0;q<J;q++)G.words[q]=this.words[q];G.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>=B);q--){var re=this.words[q]|0;this.words[q]=Z<<26-V|re>>>V,Z=re&Q}return G&&Z!==0&&(G.words[G.length++]=Z),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(L,z,O){return s(this.negative===0),this.iushrn(L,z,O)},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 z=L%26,O=(L-z)/26,B=1<<z;if(this.length<=O)return!1;var V=this.words[O];return!!(V&B)},c.prototype.imaskn=function(L){s(typeof L=="number"&&L>=0);var z=L%26,O=(L-z)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(z!==0&&O++,this.length=Math.min(O,this.length),z!==0){var B=67108863^67108863>>>z<<z;this.words[this.length-1]&=B}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 z=0;z<this.length&&this.words[z]>=67108864;z++)this.words[z]-=67108864,z===this.length-1?this.words[z+1]=1:this.words[z+1]++;return this.length=Math.max(this.length,z+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 z=0;z<this.length&&this.words[z]<0;z++)this.words[z]+=67108864,this.words[z+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,z,O){var B=L.length+O,V;this._expand(B);var J,Q=0;for(V=0;V<L.length;V++){J=(this.words[V+O]|0)+Q;var G=(L.words[V]|0)*z;J-=G&67108863,Q=(J>>26)-(G/67108864|0),this.words[V+O]=J&67108863}for(;V<this.length-O;V++)J=(this.words[V+O]|0)+Q,Q=J>>26,this.words[V+O]=J&67108863;if(Q===0)return this.strip();for(s(Q===-1),Q=0,V=0;V<this.length;V++)J=-(this.words[V]|0)+Q,Q=J>>26,this.words[V]=J&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(L,z){var O=this.length-L.length,B=this.clone(),V=L,J=V.words[V.length-1]|0,Q=this._countBits(J);O=26-Q,O!==0&&(V=V.ushln(O),B.iushln(O),J=V.words[V.length-1]|0);var G=B.length-V.length,q;if(z!=="mod"){q=new c(null),q.length=G+1,q.words=new Array(q.length);for(var Z=0;Z<q.length;Z++)q.words[Z]=0}var re=B.clone()._ishlnsubmul(V,1,G);re.negative===0&&(B=re,q&&(q.words[G]=1));for(var $=G-1;$>=0;$--){var ie=(B.words[V.length+$]|0)*67108864+(B.words[V.length+$-1]|0);for(ie=Math.min(ie/J|0,67108863),B._ishlnsubmul(V,ie,$);B.negative!==0;)ie--,B.negative=0,B._ishlnsubmul(V,1,$),B.isZero()||(B.negative^=1);q&&(q.words[$]=ie)}return q&&q.strip(),B.strip(),z!=="div"&&O!==0&&B.iushrn(O),{div:q||null,mod:B}},c.prototype.divmod=function(L,z,O){if(s(!L.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var B,V,J;return this.negative!==0&&L.negative===0?(J=this.neg().divmod(L,z),z!=="mod"&&(B=J.div.neg()),z!=="div"&&(V=J.mod.neg(),O&&V.negative!==0&&V.iadd(L)),{div:B,mod:V}):this.negative===0&&L.negative!==0?(J=this.divmod(L.neg(),z),z!=="mod"&&(B=J.div.neg()),{div:B,mod:J.mod}):(this.negative&L.negative)!==0?(J=this.neg().divmod(L.neg(),z),z!=="div"&&(V=J.mod.neg(),O&&V.negative!==0&&V.isub(L)),{div:J.div,mod:V}):L.length>this.length||this.cmp(L)<0?{div:new c(0),mod:this}:L.length===1?z==="div"?{div:this.divn(L.words[0]),mod:null}:z==="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,z)},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 z=this.divmod(L);if(z.mod.isZero())return z.div;var O=z.mod.abs(),B=L.abs().iushrn(1),V=L.words[0]&1,J=O.cmp(B);if(J<0||V===1&&J===0)return z.div;var Q=new c(1);return Q.negative=this.negative^L.negative,z.div.iadd(Q)},c.prototype.modn=function(L){s(L<=67108863);for(var z=(1<<26)%L,O=0,B=this.length-1;B>=0;B--)O=(z*O+(this.words[B]|0))%L;return O},c.prototype.idivn=function(L){s(L<=67108863);for(var z=0,O=this.length-1;O>=0;O--){var B=(this.words[O]|0)+z*67108864;this.words[O]=B/L|0,z=B%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 z=this,O=L.clone();z.negative!==0?z=z.umod(L):z=z.clone();for(var B=new c(1),V=new c(0),J=new c(0),Q=new c(1),G=0;z.isEven()&&O.isEven();)z.iushrn(1),O.iushrn(1),++G;for(var q=O.clone(),Z=z.clone();!z.isZero();){for(var re=0,$=1;(z.words[0]&$)===0&&re<26;++re,$<<=1);if(re>0)for(z.iushrn(re);re-- >0;)(B.isOdd()||V.isOdd())&&(B.iadd(q),V.isub(Z)),B.iushrn(1),V.iushrn(1);for(var ie=0,j=1;(O.words[0]&j)===0&&ie<26;++ie,j<<=1);if(ie>0)for(O.iushrn(ie);ie-- >0;)(J.isOdd()||Q.isOdd())&&(J.iadd(q),Q.isub(Z)),J.iushrn(1),Q.iushrn(1);z.cmp(O)>=0?(z.isub(O),B.isub(J),V.isub(Q)):(O.isub(z),J.isub(B),Q.isub(V))}return{a:J,b:Q,gcd:O.iushln(G)}},c.prototype._invmp=function(L){s(L.negative===0),s(!L.isZero());var z=this,O=L.clone();z.negative!==0?z=z.umod(L):z=z.clone();for(var B=new c(1),V=new c(0),J=O.clone();z.cmpn(1)>0&&O.cmpn(1)>0;){for(var Q=0,G=1;(z.words[0]&G)===0&&Q<26;++Q,G<<=1);if(Q>0)for(z.iushrn(Q);Q-- >0;)B.isOdd()&&B.iadd(J),B.iushrn(1);for(var q=0,Z=1;(O.words[0]&Z)===0&&q<26;++q,Z<<=1);if(q>0)for(O.iushrn(q);q-- >0;)V.isOdd()&&V.iadd(J),V.iushrn(1);z.cmp(O)>=0?(z.isub(O),B.isub(V)):(O.isub(z),V.isub(B))}var re;return z.cmpn(1)===0?re=B:re=V,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 z=this.clone(),O=L.clone();z.negative=0,O.negative=0;for(var B=0;z.isEven()&&O.isEven();B++)z.iushrn(1),O.iushrn(1);do{for(;z.isEven();)z.iushrn(1);for(;O.isEven();)O.iushrn(1);var V=z.cmp(O);if(V<0){var J=z;z=O,O=J}else if(V===0||O.cmpn(1)===0)break;z.isub(O)}while(!0);return O.iushln(B)},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 z=L%26,O=(L-z)/26,B=1<<z;if(this.length<=O)return this._expand(O+1),this.words[O]|=B,this;for(var V=B,J=O;V!==0&&J<this.length;J++){var Q=this.words[J]|0;Q+=V,V=Q>>>26,Q&=67108863,this.words[J]=Q}return V!==0&&(this.words[J]=V,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(L){var z=L<0;if(this.negative!==0&&!z)return-1;if(this.negative===0&&z)return 1;this.strip();var O;if(this.length>1)O=1;else{z&&(L=-L),s(L<=67108863,"Number is too big");var B=this.words[0]|0;O=B===L?0:B<L?-1:1}return this.negative!==0?-O|0:O},c.prototype.cmp=function(L){if(this.negative!==0&&L.negative===0)return-1;if(this.negative===0&&L.negative!==0)return 1;var z=this.ucmp(L);return this.negative!==0?-z|0:z},c.prototype.ucmp=function(L){if(this.length>L.length)return 1;if(this.length<L.length)return-1;for(var z=0,O=this.length-1;O>=0;O--){var B=this.words[O]|0,V=L.words[O]|0;if(B!==V){B<V?z=-1:B>V&&(z=1);break}}return z},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(P,L){this.name=P,this.p=new c(L,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}A.prototype._tmp=function(){var L=new c(null);return L.words=new Array(Math.ceil(this.n/13)),L},A.prototype.ireduce=function(L){var z=L,O;do this.split(z,this.tmp),z=this.imulK(z),z=z.iadd(this.tmp),O=z.bitLength();while(O>this.n);var B=O<this.n?-1:z.ucmp(this.p);return B===0?(z.words[0]=0,z.length=1):B>0?z.isub(this.p):z.strip!==void 0?z.strip():z._strip(),z},A.prototype.split=function(L,z){L.iushrn(this.n,0,z)},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,z){for(var O=4194303,B=Math.min(L.length,9),V=0;V<B;V++)z.words[V]=L.words[V];if(z.length=B,L.length<=9){L.words[0]=0,L.length=1;return}var J=L.words[9];for(z.words[z.length++]=J&O,V=10;V<L.length;V++){var Q=L.words[V]|0;L.words[V-10]=(Q&O)<<4|J>>>22,J=Q}J>>>=22,L.words[V-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 z=0,O=0;O<L.length;O++){var B=L.words[O]|0;z+=B*977,L.words[O]=z&67108863,z=B*64+(z/67108864|0)}return L.words[L.length-1]===0&&(L.length--,L.words[L.length-1]===0&&L.length--),L};function R(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}f(R,A);function E(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}f(E,A);function D(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}f(D,A),D.prototype.imulK=function(L){for(var z=0,O=0;O<L.length;O++){var B=(L.words[O]|0)*19+z,V=B&67108863;B>>>=26,L.words[O]=V,z=B}return z!==0&&(L.words[L.length++]=z),L},c._prime=function(L){if(v[L])return v[L];var z;if(L==="k256")z=new p;else if(L==="p224")z=new R;else if(L==="p192")z=new E;else if(L==="p25519")z=new D;else throw new Error("Unknown prime "+L);return v[L]=z,z};function I(P){if(typeof P=="string"){var L=c._prime(P);this.m=L.p,this.prime=L}else s(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}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,z){s((L.negative|z.negative)===0,"red works only with positives"),s(L.red&&L.red===z.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,z){this._verify2(L,z);var O=L.add(z);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},I.prototype.iadd=function(L,z){this._verify2(L,z);var O=L.iadd(z);return O.cmp(this.m)>=0&&O.isub(this.m),O},I.prototype.sub=function(L,z){this._verify2(L,z);var O=L.sub(z);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},I.prototype.isub=function(L,z){this._verify2(L,z);var O=L.isub(z);return O.cmpn(0)<0&&O.iadd(this.m),O},I.prototype.shl=function(L,z){return this._verify1(L),this.imod(L.ushln(z))},I.prototype.imul=function(L,z){return this._verify2(L,z),this.imod(L.imul(z))},I.prototype.mul=function(L,z){return this._verify2(L,z),this.imod(L.mul(z))},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 z=this.m.andln(3);if(s(z%2===1),z===3){var O=this.m.add(new c(1)).iushrn(2);return this.pow(L,O)}for(var B=this.m.subn(1),V=0;!B.isZero()&&B.andln(1)===0;)V++,B.iushrn(1);s(!B.isZero());var J=new c(1).toRed(this),Q=J.redNeg(),G=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new c(2*q*q).toRed(this);this.pow(q,G).cmp(Q)!==0;)q.redIAdd(Q);for(var Z=this.pow(q,B),re=this.pow(L,B.addn(1).iushrn(1)),$=this.pow(L,B),ie=V;$.cmp(J)!==0;){for(var j=$,te=0;j.cmp(J)!==0;te++)j=j.redSqr();s(te<ie);var ue=this.pow(Z,new c(1).iushln(ie-te-1));re=re.redMul(ue),Z=ue.redSqr(),$=$.redMul(Z),ie=te}return re},I.prototype.invm=function(L){var z=L._invmp(this.m);return z.negative!==0?(z.negative=0,this.imod(z).redNeg()):this.imod(z)},I.prototype.pow=function(L,z){if(z.isZero())return new c(1).toRed(this);if(z.cmpn(1)===0)return L.clone();var O=4,B=new Array(1<<O);B[0]=new c(1).toRed(this),B[1]=L;for(var V=2;V<B.length;V++)B[V]=this.mul(B[V-1],L);var J=B[0],Q=0,G=0,q=z.bitLength()%26;for(q===0&&(q=26),V=z.length-1;V>=0;V--){for(var Z=z.words[V],re=q-1;re>=0;re--){var $=Z>>re&1;if(J!==B[0]&&(J=this.sqr(J)),$===0&&Q===0){G=0;continue}Q<<=1,Q|=$,G++,!(G!==O&&(V!==0||re!==0))&&(J=this.mul(J,B[Q]),G=0,Q=0)}q=26}return J},I.prototype.convertTo=function(L){var z=L.umod(this.m);return z===L?z.clone():z},I.prototype.convertFrom=function(L){var z=L.clone();return z.red=null,z},c.mont=function(L){return new F(L)};function F(P){I.call(this,P),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(F,I),F.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},F.prototype.convertFrom=function(L){var z=this.imod(L.mul(this.rinv));return z.red=null,z},F.prototype.imul=function(L,z){if(L.isZero()||z.isZero())return L.words[0]=0,L.length=1,L;var O=L.imul(z),B=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),V=O.isub(B).iushrn(this.shift),J=V;return V.cmp(this.m)>=0?J=V.isub(this.m):V.cmpn(0)<0&&(J=V.iadd(this.m)),J._forceRed(this)},F.prototype.mul=function(L,z){if(L.isZero()||z.isZero())return new c(0)._forceRed(this);var O=L.mul(z),B=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),V=O.isub(B).iushrn(this.shift),J=V;return V.cmp(this.m)>=0?J=V.isub(this.m):V.cmpn(0)<0&&(J=V.iadd(this.m)),J._forceRed(this)},F.prototype.invm=function(L){var z=this.imod(L._invmp(this.m).mul(this.r2));return z._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 d=i[l],_=d.length;for(u=0;u<_;++u){var T=g[b++]=new Array(_-1),m=0;for(s=0;s<_;++s)s!==u&&(T[m++]=d[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 h=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[h++]=A[p];M[w++]=y}}return w}function g(k,S,x,M){var h=k.length,w=S.length;if(!(h<=0||w<=0)){var y=k[0].length>>>1;if(!(y<=0)){var v,A=l.mallocDouble(2*y*h),p=l.mallocInt32(h);if(h=c(k,y,A,p),h>0){if(y===1&&M)u.init(h),v=u.sweepComplete(y,x,0,h,A,p,0,h,A,p);else{var R=l.mallocDouble(2*y*w),E=l.mallocInt32(w);w=c(S,y,R,E),w>0&&(u.init(h+w),y===1?v=u.sweepBipartite(y,x,0,h,A,p,0,w,R,E):v=s(y,x,M,h,A,p,w,R,E),l.free(R),l.free(E))}l.free(A),l.free(p)}return v}}}var b;function d(k,S){b.push([k,S])}function _(k){return b=[],g(k,k,d,!0),b}function T(k,S){return b=[],g(k,S,d,!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,d,_,T,m,k,S,x,M,h){for(var w=2*g,y=_,v=w*_;y<T;++y,v+=w){var A=m[b+v],p=m[b+v+g],R=k[y];e:for(var E=S,D=w*S;E<x;++E,D+=w){var I=M[b+D],F=M[b+D+g],P=h[E];if(!(F<A||p<I)){for(var L=b+1;L<g;++L){var z=m[L+v],O=m[L+g+v],B=M[L+D],V=M[L+g+D];if(O<B||V<z)continue e}var J=d(R,P);if(J!==void 0)return J}}}}function f(g,b,d,_,T,m,k,S,x,M,h){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],R=h[y];e:for(var E=_,D=w*_;E<T;++E,D+=w){var I=m[b+D],F=m[b+D+g],P=k[E];if(!(p<I||F<A)){for(var L=b+1;L<g;++L){var z=m[L+D],O=m[L+g+D],B=M[L+v],V=M[L+g+v];if(O<B||V<z)continue e}var J=d(P,R);if(J!==void 0)return J}}}}function c(g,b,d,_,T,m,k,S,x,M,h){return T-_>x-S?s(g,b,d,_,T,m,k,S,x,M,h):f(g,b,d,_,T,m,k,S,x,M,h)}return c}function l(){function s(d,_,T,m,k,S,x,M,h,w,y){for(var v=2*d,A=m,p=v*m;A<k;++A,p+=v){var R=S[_+p],E=S[_+p+d],D=x[A];e:for(var I=M,F=v*M;I<h;++I,F+=v){var P=w[_+F],L=y[I];if(!(P<=R||E<P)){for(var z=_+1;z<d;++z){var O=S[z+p],B=S[z+d+p],V=w[z+F],J=w[z+d+F];if(B<V||J<O)continue e}var Q=T(L,D);if(Q!==void 0)return Q}}}}function f(d,_,T,m,k,S,x,M,h,w,y){for(var v=2*d,A=m,p=v*m;A<k;++A,p+=v){var R=S[_+p],E=S[_+p+d],D=x[A];e:for(var I=M,F=v*M;I<h;++I,F+=v){var P=w[_+F],L=y[I];if(!(P<R||E<P)){for(var z=_+1;z<d;++z){var O=S[z+p],B=S[z+d+p],V=w[z+F],J=w[z+d+F];if(B<V||J<O)continue e}var Q=T(D,L);if(Q!==void 0)return Q}}}}function c(d,_,T,m,k,S,x,M,h,w,y){for(var v=2*d,A=M,p=v*M;A<h;++A,p+=v){var R=w[_+p],E=y[A];e:for(var D=m,I=v*m;D<k;++D,I+=v){var F=S[_+I],P=S[_+I+d],L=x[D];if(!(R<=F||P<R)){for(var z=_+1;z<d;++z){var O=S[z+I],B=S[z+d+I],V=w[z+p],J=w[z+d+p];if(B<V||J<O)continue e}var Q=T(E,L);if(Q!==void 0)return Q}}}}function g(d,_,T,m,k,S,x,M,h,w,y){for(var v=2*d,A=M,p=v*M;A<h;++A,p+=v){var R=w[_+p],E=y[A];e:for(var D=m,I=v*m;D<k;++D,I+=v){var F=S[_+I],P=S[_+I+d],L=x[D];if(!(R<F||P<R)){for(var z=_+1;z<d;++z){var O=S[z+I],B=S[z+d+I],V=w[z+p],J=w[z+d+p];if(B<V||J<O)continue e}var Q=T(L,E);if(Q!==void 0)return Q}}}}function b(d,_,T,m,k,S,x,M,h,w,y,v){return S-k>w-h?m?s(d,_,T,k,S,x,M,h,w,y,v):f(d,_,T,k,S,x,M,h,w,y,v):m?c(d,_,T,k,S,x,M,h,w,y,v):g(d,_,T,k,S,x,M,h,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=P;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,c=s.full,g=i(855),b=i(3545),d=i(8105),_=128,T=1<<22,m=1<<22,k=d("!(lo>=p0)&&!(p1>=hi)"),S=d("lo===p0"),x=d("lo<p0"),M=d("hi<=p0"),h=d("lo<=p0&&p0<=hi"),w=d("lo<p0&&p0<=hi"),y=6,v=2,A=1024,p=l.mallocInt32(A),R=l.mallocDouble(A);function E(L,z){var O=8*u.log2(z+1)*(L+1)|0,B=u.nextPow2(y*O);p.length<B&&(l.free(p),p=l.mallocInt32(B));var V=u.nextPow2(v*O);R.length<V&&(l.free(R),R=l.mallocDouble(V))}function D(L,z,O,B,V,J,Q,G,q){var Z=y*L;p[Z]=z,p[Z+1]=O,p[Z+2]=B,p[Z+3]=V,p[Z+4]=J,p[Z+5]=Q;var re=v*L;R[re]=G,R[re+1]=q}function I(L,z,O,B,V,J,Q,G,q,Z,re){var $=2*L,ie=q*$,j=Z[ie+z];e:for(var te=V,ue=V*$;te<J;++te,ue+=$){var ee=Q[ue+z],ae=Q[ue+z+L];if(!(j<ee||ae<j)&&!(B&&j===ee)){for(var fe=G[te],we=z+1;we<L;++we){var ee=Q[ue+we],ae=Q[ue+we+L],Me=Z[ie+we],ke=Z[ie+we+L];if(ae<Me||ke<ee)continue e}var ge;if(B?ge=O(re,fe):ge=O(fe,re),ge!==void 0)return ge}}}function F(L,z,O,B,V,J,Q,G,q,Z){var re=2*L,$=G*re,ie=q[$+z];e:for(var j=B,te=B*re;j<V;++j,te+=re){var ue=Q[j];if(ue!==Z){var ee=J[te+z],ae=J[te+z+L];if(!(ie<ee||ae<ie)){for(var fe=z+1;fe<L;++fe){var ee=J[te+fe],ae=J[te+fe+L],we=q[$+fe],Me=q[$+fe+L];if(ae<we||Me<ee)continue e}var ke=O(ue,Z);if(ke!==void 0)return ke}}}}function P(L,z,O,B,V,J,Q,G,q){E(L,B+Q);var Z=0,re=2*L,$;for(D(Z++,0,0,B,0,Q,O?16:0,-1/0,1/0),O||D(Z++,0,0,Q,0,B,1,-1/0,1/0);Z>0;){Z-=1;var ie=Z*y,j=p[ie],te=p[ie+1],ue=p[ie+2],ee=p[ie+3],ae=p[ie+4],fe=p[ie+5],we=Z*v,Me=R[we],ke=R[we+1],ge=fe&1,Ee=!!(fe&16),Le=V,se=J,X=G,K=q;if(ge&&(Le=G,se=q,X=V,K=J),!(fe&2&&(ue=x(L,j,te,ue,Le,se,ke),te>=ue))&&!(fe&4&&(te=M(L,j,te,ue,Le,se,Me),te>=ue))){var ye=ue-te,oe=ae-ee;if(Ee){if(L*ye*(ye+oe)<m){if($=g.scanComplete(L,j,z,te,ue,Le,se,ee,ae,X,K),$!==void 0)return $;continue}}else if(L*Math.min(ye,oe)<_){if($=f(L,j,z,ge,te,ue,Le,se,ee,ae,X,K),$!==void 0)return $;continue}else if(L*ye*oe<T){if($=g.scanBipartite(L,j,z,ge,te,ue,Le,se,ee,ae,X,K),$!==void 0)return $;continue}var he=k(L,j,te,ue,Le,se,Me,ke);if(te<he)if(L*(he-te)<_){if($=c(L,j+1,z,te,he,Le,se,ee,ae,X,K),$!==void 0)return $}else if(j===L-2){if(ge?$=g.sweepBipartite(L,z,ee,ae,X,K,te,he,Le,se):$=g.sweepBipartite(L,z,te,he,Le,se,ee,ae,X,K),$!==void 0)return $}else D(Z++,j+1,te,he,ee,ae,ge,-1/0,1/0),D(Z++,j+1,ee,ae,te,he,ge^1,-1/0,1/0);if(he<ue){var pe=b(L,j,ee,ae,X,K),me=X[re*pe+j],Se=S(L,j,pe,ae,X,K,me);if(Se<ae&&D(Z++,j,he,ue,Se,ae,(ge|4)+(Ee?16:0),me,ke),ee<pe&&D(Z++,j,he,ue,ee,pe,(ge|2)+(Ee?16:0),Me,me),pe+1===Se){if(Ee?$=F(L,j,z,he,ue,Le,se,pe,X,K[pe]):$=I(L,j,z,ge,he,ue,Le,se,pe,X,K[pe]),$!==void 0)return $}else if(pe<Se){var ve;if(Ee){if(ve=h(L,j,he,ue,Le,se,me),he<ve){var de=S(L,j,he,ve,Le,se,me);if(j===L-2){if(he<de&&($=g.sweepComplete(L,z,he,de,Le,se,pe,Se,X,K),$!==void 0)||de<ve&&($=g.sweepBipartite(L,z,de,ve,Le,se,pe,Se,X,K),$!==void 0))return $}else he<de&&D(Z++,j+1,he,de,pe,Se,16,-1/0,1/0),de<ve&&(D(Z++,j+1,de,ve,pe,Se,0,-1/0,1/0),D(Z++,j+1,pe,Se,de,ve,1,-1/0,1/0))}}else ge?ve=w(L,j,he,ue,Le,se,me):ve=h(L,j,he,ue,Le,se,me),he<ve&&(j===L-2?ge?$=g.sweepBipartite(L,z,pe,Se,X,K,he,ve,Le,se):$=g.sweepBipartite(L,z,he,ve,Le,se,pe,Se,X,K):(D(Z++,j+1,he,ve,pe,Se,ge,-1/0,1/0),D(Z++,j+1,pe,Se,he,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,d,_,T,m){for(var k=2*g,S=k*(d+1)+b,x=d+1;x<_;++x,S+=k)for(var M=T[S],h=x,w=k*(x-1);h>d&&T[w+b]>M;--h,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 R=m[h];m[h]=m[h-1],m[h-1]=R}}function c(g,b,d,_,T,m){if(_<=d+1)return d;for(var k=d,S=_,x=_+d>>>1,M=2*g,h=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,R=T[M*p+b],E=Math.random()*y+k|0,D=T[M*E+b];A<=R?D>=R?(h=p,w=R):A>=D?(h=v,w=A):(h=E,w=D):R>=D?(h=p,w=R):D>=A?(h=v,w=A):(h=E,w=D);for(var P=M*(S-1),L=M*h,I=0;I<M;++I,++P,++L){var F=T[P];T[P]=T[L],T[L]=F}var z=m[S-1];m[S-1]=m[h],m[h]=z,h=u(g,b,k,S-1,T,m,w);for(var P=M*(S-1),L=M*h,I=0;I<M;++I,++P,++L){var F=T[P];T[P]=T[L],T[L]=F}var z=m[S-1];if(m[S-1]=m[h],m[h]=z,x<h){for(S=h-1;k<S&&T[M*(S-1)+b]===w;)S-=1;S+=1}else if(h<x)for(k=h+1;k<S&&T[M*k+b]===w;)k+=1;else break}return u(g,b,d,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(d){return o[d]}function l(d,_,T,m,k,S,x){for(var M=2*d,h=M*T,w=h,y=T,v=_,A=d+_,p=T;m>p;++p,h+=M){var R=k[h+v];if(R===x)if(y===p)y+=1,w+=M;else{for(var E=0;M>E;++E){var D=k[h+E];k[h+E]=k[w],k[w++]=D}var I=S[p];S[p]=S[y],S[y++]=I}}return y}function u(d,_,T,m,k,S,x){for(var M=2*d,h=M*T,w=h,y=T,v=_,A=d+_,p=T;m>p;++p,h+=M){var R=k[h+v];if(R<x)if(y===p)y+=1,w+=M;else{for(var E=0;M>E;++E){var D=k[h+E];k[h+E]=k[w],k[w++]=D}var I=S[p];S[p]=S[y],S[y++]=I}}return y}function s(d,_,T,m,k,S,x){for(var M=2*d,h=M*T,w=h,y=T,v=_,A=d+_,p=T;m>p;++p,h+=M){var R=k[h+A];if(R<=x)if(y===p)y+=1,w+=M;else{for(var E=0;M>E;++E){var D=k[h+E];k[h+E]=k[w],k[w++]=D}var I=S[p];S[p]=S[y],S[y++]=I}}return y}function f(d,_,T,m,k,S,x){for(var M=2*d,h=M*T,w=h,y=T,v=_,A=d+_,p=T;m>p;++p,h+=M){var R=k[h+A];if(R<=x)if(y===p)y+=1,w+=M;else{for(var E=0;M>E;++E){var D=k[h+E];k[h+E]=k[w],k[w++]=D}var I=S[p];S[p]=S[y],S[y++]=I}}return y}function c(d,_,T,m,k,S,x){for(var M=2*d,h=M*T,w=h,y=T,v=_,A=d+_,p=T;m>p;++p,h+=M){var R=k[h+v],E=k[h+A];if(R<=x&&x<=E)if(y===p)y+=1,w+=M;else{for(var D=0;M>D;++D){var I=k[h+D];k[h+D]=k[w],k[w++]=I}var F=S[p];S[p]=S[y],S[y++]=F}}return y}function g(d,_,T,m,k,S,x){for(var M=2*d,h=M*T,w=h,y=T,v=_,A=d+_,p=T;m>p;++p,h+=M){var R=k[h+v],E=k[h+A];if(R<x&&x<=E)if(y===p)y+=1,w+=M;else{for(var D=0;M>D;++D){var I=k[h+D];k[h+D]=k[w],k[w++]=I}var F=S[p];S[p]=S[y],S[y++]=F}}return y}function b(d,_,T,m,k,S,x,M){for(var h=2*d,w=h*T,y=w,v=T,A=_,p=d+_,R=T;m>R;++R,w+=h){var E=k[w+A],D=k[w+p];if(!(E>=x)&&!(M>=D))if(v===R)v+=1,y+=h;else{for(var I=0;h>I;++I){var F=k[w+I];k[w+I]=k[y],k[y++]=F}var P=S[R];S[R]=S[v],S[v++]=P}}return v}},4192(a){"use strict";a.exports=i;var o=32;function i(_,T){T<=4*o?l(0,T-1,_):d(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++],h=S,w=k-2;h-- >_;){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 d(_,T,m){var k=(T-_+1)/6|0,S=_+k,x=T-k,M=_+T>>1,h=M-k,w=M+k,y=S,v=h,A=M,p=w,R=x,E=_+1,D=T-1,I=0;g(y,v,m)&&(I=y,y=v,v=I),g(p,R,m)&&(I=p,p=R,R=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,R,m)&&(I=v,v=R,R=I),g(v,A,m)&&(I=v,v=A,A=I),g(p,R,m)&&(I=p,p=R,R=I);for(var F=m[2*v],P=m[2*v+1],L=m[2*p],z=m[2*p+1],O=2*y,B=2*A,V=2*R,J=2*S,Q=2*M,G=2*x,q=0;q<2;++q){var Z=m[O+q],re=m[B+q],$=m[V+q];m[J+q]=Z,m[Q+q]=re,m[G+q]=$}s(h,_,m),s(w,T,m);for(var ie=E;ie<=D;++ie)if(b(ie,F,P,m))ie!==E&&u(ie,E,m),++E;else if(!b(ie,L,z,m))for(;;)if(b(D,L,z,m)){b(D,F,P,m)?(f(ie,E,D,m),++E,--D):(u(ie,D,m),--D);break}else{if(--D<ie)break;continue}c(_,E-1,F,P,m),c(T,D+1,L,z,m),E-2-_<=o?l(_,E-2,m):d(_,E-2,m),T-(D+2)<=o?l(D+2,T,m):d(D+2,T,m),D-E<=o?l(E,D,m):d(E,D,m)}},855(a,o,i){"use strict";a.exports={init:S,sweepBipartite:h,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),d=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)),d.length<p&&(l.free(d),d=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 R=8*p;k.length<R&&(l.free(k),k=l.mallocDouble(R))}function x(A,p,R,E){var D=p[E],I=A[R-1];A[D]=I,p[I]=D}function M(A,p,R,E){A[R]=E,p[E]=R}function h(A,p,R,E,D,I,F,P,L,z){for(var O=0,B=2*A,V=A-1,J=B-1,Q=R;Q<E;++Q){var G=I[Q],q=B*Q;k[O++]=D[q+V],k[O++]=-(G+1),k[O++]=D[q+J],k[O++]=G}for(var Q=F;Q<P;++Q){var G=z[Q]+f,Z=B*Q;k[O++]=L[Z+V],k[O++]=-G,k[O++]=L[Z+J],k[O++]=G}var re=O>>>1;s(k,re);for(var $=0,ie=0,Q=0;Q<re;++Q){var j=k[2*Q+1]|0;if(j>=f)j=j-f|0,x(d,_,ie--,j);else if(j>=0)x(g,b,$--,j);else if(j<=-f){j=-j-f|0;for(var te=0;te<$;++te){var ue=p(g[te],j);if(ue!==void 0)return ue}M(d,_,ie++,j)}else{j=-j-1|0;for(var te=0;te<ie;++te){var ue=p(j,d[te]);if(ue!==void 0)return ue}M(g,b,$++,j)}}}function w(A,p,R,E,D,I,F,P,L,z){for(var O=0,B=2*A,V=A-1,J=B-1,Q=R;Q<E;++Q){var G=I[Q]+1<<1,q=B*Q;k[O++]=D[q+V],k[O++]=-G,k[O++]=D[q+J],k[O++]=G}for(var Q=F;Q<P;++Q){var G=z[Q]+1<<1,Z=B*Q;k[O++]=L[Z+V],k[O++]=-G|1,k[O++]=L[Z+J],k[O++]=G|1}var re=O>>>1;s(k,re);for(var $=0,ie=0,j=0,Q=0;Q<re;++Q){var te=k[2*Q+1]|0,ue=te&1;if(Q<re-1&&te>>1===k[2*Q+3]>>1&&(ue=2,Q+=1),te<0){for(var ee=-(te>>1)-1,ae=0;ae<j;++ae){var fe=p(T[ae],ee);if(fe!==void 0)return fe}if(ue!==0)for(var ae=0;ae<$;++ae){var fe=p(g[ae],ee);if(fe!==void 0)return fe}if(ue!==1)for(var ae=0;ae<ie;++ae){var fe=p(d[ae],ee);if(fe!==void 0)return fe}ue===0?M(g,b,$++,ee):ue===1?M(d,_,ie++,ee):ue===2&&M(T,m,j++,ee)}else{var ee=(te>>1)-1;ue===0?x(g,b,$--,ee):ue===1?x(d,_,ie--,ee):ue===2&&x(T,m,j--,ee)}}}function y(A,p,R,E,D,I,F,P,L,z,O,B){var V=0,J=2*A,Q=p,G=p+A,q=1,Z=1;E?Z=f:q=f;for(var re=D;re<I;++re){var $=re+q,ie=J*re;k[V++]=F[ie+Q],k[V++]=-$,k[V++]=F[ie+G],k[V++]=$}for(var re=L;re<z;++re){var $=re+Z,j=J*re;k[V++]=O[j+Q],k[V++]=-$}var te=V>>>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,ae=!1;if($>=f?(ae=!E,$-=f):(ae=!!E,$-=1),ae)M(g,b,ue++,$);else{var fe=B[$],we=J*$,Me=O[we+p+1],ke=O[we+p+1+A];e:for(var ge=0;ge<ue;++ge){var Ee=g[ge],Le=J*Ee;if(!(ke<F[Le+p+1]||F[Le+p+1+A]<Me)){for(var se=p+2;se<A;++se)if(O[we+se+A]<F[Le+se]||F[Le+se+A]<O[we+se])continue e;var X=P[Ee],K;if(E?K=R(fe,X):K=R(X,fe),K!==void 0)return K}}}}else x(g,b,ue--,ee-q)}}function v(A,p,R,E,D,I,F,P,L,z,O){for(var B=0,V=2*A,J=p,Q=p+A,G=E;G<D;++G){var q=G+f,Z=V*G;k[B++]=I[Z+J],k[B++]=-q,k[B++]=I[Z+Q],k[B++]=q}for(var G=P;G<L;++G){var q=G+1,re=V*G;k[B++]=z[re+J],k[B++]=-q}var $=B>>>1;s(k,$);for(var ie=0,G=0;G<$;++G){var j=k[2*G+1]|0;if(j<0){var q=-j;if(q>=f)g[ie++]=q-f;else{q-=1;var te=O[q],ue=V*q,ee=z[ue+p+1],ae=z[ue+p+1+A];e:for(var fe=0;fe<ie;++fe){var we=g[fe],Me=F[we];if(Me===te)break;var ke=V*we;if(!(ae<I[ke+p+1]||I[ke+p+1+A]<ee)){for(var ge=p+2;ge<A;++ge)if(z[ue+ge+A]<I[ke+ge]||I[ke+ge+A]<z[ue+ge])continue e;var Ee=R(Me,te);if(Ee!==void 0)return Ee}}}}else{for(var q=j-f,fe=ie-1;fe>=0;--fe)if(g[fe]===q){for(var ge=fe+1;ge<ie;++ge)g[ge-1]=g[ge];break}--ie}}}},5500(a,o,i){"use strict";var l;var u=i(7507),s=i(3778),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;o.hp=d,l=v,o.IS=50;var c=2147483647;l=c,d.TYPED_ARRAY_SUPPORT=g(),!d.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(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.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,d.prototype),X}function d(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)}d.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 h(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 d.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 d.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)}d.from=function(se,X,K){return _(se,X,K)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,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)}d.alloc=function(se,X,K){return m(se,X,K)};function k(se){return T(se),b(se<0?0:y(se)|0)}d.allocUnsafe=function(se){return k(se)},d.allocUnsafeSlow=function(se){return k(se)};function S(se,X){if((typeof X!="string"||X==="")&&(X="utf8"),!d.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 h(X.buffer,X.byteOffset,X.byteLength)}return x(se)}function h(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,d.prototype),ye}function w(se){if(d.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),d.alloc(+se)}d.isBuffer=function(X){return X!=null&&X._isBuffer===!0&&X!==d.prototype},d.compare=function(X,K){if(ge(X,Uint8Array)&&(X=d.from(X,X.offset,X.byteLength)),ge(K,Uint8Array)&&(K=d.from(K,K.offset,K.byteLength)),!d.isBuffer(X)||!d.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,he=0,pe=Math.min(ye,oe);he<pe;++he)if(X[he]!==K[he]){ye=X[he],oe=K[he];break}return ye<oe?-1:oe<ye?1:0},d.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}},d.concat=function(X,K){if(!Array.isArray(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return d.alloc(0);var ye;if(K===void 0)for(K=0,ye=0;ye<X.length;++ye)K+=X[ye].length;var oe=d.allocUnsafe(K),he=0;for(ye=0;ye<X.length;++ye){var pe=X[ye];if(ge(pe,Uint8Array))he+pe.length>oe.length?d.from(pe).copy(oe,he):Uint8Array.prototype.set.call(oe,pe,he);else if(d.isBuffer(pe))pe.copy(oe,he);else throw new TypeError('"list" argument must be an Array of Buffers');he+=pe.length}return oe};function A(se,X){if(d.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 ae(se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K*2;case"hex":return K>>>1;case"base64":return Me(se).length;default:if(oe)return ye?-1:ae(se).length;X=(""+X).toLowerCase(),oe=!0}}d.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 B(this,X,K);case"ascii":return Q(this,X,K);case"latin1":case"binary":return G(this,X,K);case"base64":return O(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}}d.prototype._isBuffer=!0;function R(se,X,K){var ye=se[X];se[X]=se[K],se[K]=ye}d.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)R(this,K,K+1);return this},d.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)R(this,K,K+3),R(this,K+1,K+2);return this},d.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)R(this,K,K+7),R(this,K+1,K+6),R(this,K+2,K+5),R(this,K+3,K+4);return this},d.prototype.toString=function(){var X=this.length;return X===0?"":arguments.length===0?B(this,0,X):p.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(X){if(!d.isBuffer(X))throw new TypeError("Argument must be a Buffer");return this===X?!0:d.compare(this,X)===0},d.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&&(d.prototype[f]=d.prototype.inspect),d.prototype.compare=function(X,K,ye,oe,he){if(ge(X,Uint8Array)&&(X=d.from(X,X.offset,X.byteLength)),!d.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),he===void 0&&(he=this.length),K<0||ye>X.length||oe<0||he>this.length)throw new RangeError("out of range index");if(oe>=he&&K>=ye)return 0;if(oe>=he)return-1;if(K>=ye)return 1;if(K>>>=0,ye>>>=0,oe>>>=0,he>>>=0,this===X)return 0;for(var pe=he-oe,me=ye-K,Se=Math.min(pe,me),ve=this.slice(oe,he),de=X.slice(K,ye),be=0;be<Se;++be)if(ve[be]!==de[be]){pe=ve[be],me=de[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=d.from(X,ye)),d.isBuffer(X))return X.length===0?-1:D(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):D(se,[X],K,ye,oe);throw new TypeError("val must be string, number or Buffer")}function D(se,X,K,ye,oe){var he=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;he=2,pe/=2,me/=2,K/=2}function Se(Pe,Ie){return he===1?Pe[Ie]:Pe.readUInt16BE(Ie*he)}var ve;if(oe){var de=-1;for(ve=K;ve<pe;ve++)if(Se(se,ve)===Se(X,de===-1?0:ve-de)){if(de===-1&&(de=ve),ve-de+1===me)return de*he}else de!==-1&&(ve-=ve-de),de=-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}d.prototype.includes=function(X,K,ye){return this.indexOf(X,K,ye)!==-1},d.prototype.indexOf=function(X,K,ye){return E(this,X,K,ye,!0)},d.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 he=X.length;ye>he/2&&(ye=he/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 F(se,X,K,ye){return ke(ae(X,se.length-K),se,K,ye)}function P(se,X,K,ye){return ke(fe(X),se,K,ye)}function L(se,X,K,ye){return ke(Me(X),se,K,ye)}function z(se,X,K,ye){return ke(we(X,se.length-K),se,K,ye)}d.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 he=this.length-K;if((ye===void 0||ye>he)&&(ye=he),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 F(this,X,K,ye);case"ascii":case"latin1":case"binary":return P(this,X,K,ye);case"base64":return L(this,X,K,ye);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,X,K,ye);default:if(pe)throw new TypeError("Unknown encoding: "+oe);oe=(""+oe).toLowerCase(),pe=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(se,X,K){return X===0&&K===se.length?u.fromByteArray(se):u.fromByteArray(se.slice(X,K))}function B(se,X,K){K=Math.min(se.length,K);for(var ye=[],oe=X;oe<K;){var he=se[oe],pe=null,me=he>239?4:he>223?3:he>191?2:1;if(oe+me<=K){var Se,ve,de,be;switch(me){case 1:he<128&&(pe=he);break;case 2:Se=se[oe+1],(Se&192)===128&&(be=(he&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=(he&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],de=se[oe+3],(Se&192)===128&&(ve&192)===128&&(de&192)===128&&(be=(he&15)<<18|(Se&63)<<12|(ve&63)<<6|de&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 V=4096;function J(se){var X=se.length;if(X<=V)return String.fromCharCode.apply(String,se);for(var K="",ye=0;ye<X;)K+=String.fromCharCode.apply(String,se.slice(ye,ye+=V));return K}function Q(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 G(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="",he=X;he<K;++he)oe+=Le[se[he]];return oe}function Z(se,X,K){for(var ye=se.slice(X,K),oe="",he=0;he<ye.length-1;he+=2)oe+=String.fromCharCode(ye[he]+ye[he+1]*256);return oe}d.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,d.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")}d.prototype.readUintLE=d.prototype.readUIntLE=function(X,K,ye){X=X>>>0,K=K>>>0,ye||re(X,K,this.length);for(var oe=this[X],he=1,pe=0;++pe<K&&(he*=256);)oe+=this[X+pe]*he;return oe},d.prototype.readUintBE=d.prototype.readUIntBE=function(X,K,ye){X=X>>>0,K=K>>>0,ye||re(X,K,this.length);for(var oe=this[X+--K],he=1;K>0&&(he*=256);)oe+=this[X+--K]*he;return oe},d.prototype.readUint8=d.prototype.readUInt8=function(X,K){return X=X>>>0,K||re(X,1,this.length),this[X]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(X,K){return X=X>>>0,K||re(X,2,this.length),this[X]|this[X+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(X,K){return X=X>>>0,K||re(X,2,this.length),this[X]<<8|this[X+1]},d.prototype.readUint32LE=d.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},d.prototype.readUint32BE=d.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])},d.prototype.readIntLE=function(X,K,ye){X=X>>>0,K=K>>>0,ye||re(X,K,this.length);for(var oe=this[X],he=1,pe=0;++pe<K&&(he*=256);)oe+=this[X+pe]*he;return he*=128,oe>=he&&(oe-=Math.pow(2,8*K)),oe},d.prototype.readIntBE=function(X,K,ye){X=X>>>0,K=K>>>0,ye||re(X,K,this.length);for(var oe=K,he=1,pe=this[X+--oe];oe>0&&(he*=256);)pe+=this[X+--oe]*he;return he*=128,pe>=he&&(pe-=Math.pow(2,8*K)),pe},d.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]},d.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},d.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},d.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},d.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]},d.prototype.readFloatLE=function(X,K){return X=X>>>0,K||re(X,4,this.length),s.read(this,X,!0,23,4)},d.prototype.readFloatBE=function(X,K){return X=X>>>0,K||re(X,4,this.length),s.read(this,X,!1,23,4)},d.prototype.readDoubleLE=function(X,K){return X=X>>>0,K||re(X,8,this.length),s.read(this,X,!0,52,8)},d.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,he){if(!d.isBuffer(se))throw new TypeError('"buffer" argument must be a Buffer instance');if(X>oe||X<he)throw new RangeError('"value" argument is out of bounds');if(K+ye>se.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(X,K,ye,oe){if(X=+X,K=K>>>0,ye=ye>>>0,!oe){var he=Math.pow(2,8*ye)-1;$(this,X,K,ye,he,0)}var pe=1,me=0;for(this[K]=X&255;++me<ye&&(pe*=256);)this[K+me]=X/pe&255;return K+ye},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(X,K,ye,oe){if(X=+X,K=K>>>0,ye=ye>>>0,!oe){var he=Math.pow(2,8*ye)-1;$(this,X,K,ye,he,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},d.prototype.writeUint8=d.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},d.prototype.writeUint16LE=d.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},d.prototype.writeUint16BE=d.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},d.prototype.writeUint32LE=d.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},d.prototype.writeUint32BE=d.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},d.prototype.writeIntLE=function(X,K,ye,oe){if(X=+X,K=K>>>0,!oe){var he=Math.pow(2,8*ye-1);$(this,X,K,ye,he-1,-he)}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},d.prototype.writeIntBE=function(X,K,ye,oe){if(X=+X,K=K>>>0,!oe){var he=Math.pow(2,8*ye-1);$(this,X,K,ye,he-1,-he)}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},d.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},d.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},d.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},d.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},d.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 ie(se,X,K,ye,oe,he){if(K+ye>se.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("Index out of range")}function j(se,X,K,ye,oe){return X=+X,K=K>>>0,oe||ie(se,X,K,4,34028234663852886e22,-34028234663852886e22),s.write(se,X,K,ye,23,4),K+4}d.prototype.writeFloatLE=function(X,K,ye){return j(this,X,K,!0,ye)},d.prototype.writeFloatBE=function(X,K,ye){return j(this,X,K,!1,ye)};function te(se,X,K,ye,oe){return X=+X,K=K>>>0,oe||ie(se,X,K,8,17976931348623157e292,-17976931348623157e292),s.write(se,X,K,ye,52,8),K+8}d.prototype.writeDoubleLE=function(X,K,ye){return te(this,X,K,!0,ye)},d.prototype.writeDoubleBE=function(X,K,ye){return te(this,X,K,!1,ye)},d.prototype.copy=function(X,K,ye,oe){if(!d.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 he=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),he},d.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"&&!d.isEncoding(oe))throw new TypeError("Unknown encoding: "+oe);if(X.length===1){var he=X.charCodeAt(0);(oe==="utf8"&&he<128||oe==="latin1")&&(X=he)}}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=d.isBuffer(X)?X:d.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 ae(se,X){X=X||1/0;for(var K,ye=se.length,oe=null,he=[],pe=0;pe<ye;++pe){if(K=se.charCodeAt(pe),K>55295&&K<57344){if(!oe){if(K>56319){(X-=3)>-1&&he.push(239,191,189);continue}else if(pe+1===ye){(X-=3)>-1&&he.push(239,191,189);continue}oe=K;continue}if(K<56320){(X-=3)>-1&&he.push(239,191,189),oe=K;continue}K=(oe-55296<<10|K-56320)+65536}else oe&&(X-=3)>-1&&he.push(239,191,189);if(oe=null,K<128){if((X-=1)<0)break;he.push(K)}else if(K<2048){if((X-=2)<0)break;he.push(K>>6|192,K&63|128)}else if(K<65536){if((X-=3)<0)break;he.push(K>>12|224,K>>6&63|128,K&63|128)}else if(K<1114112){if((X-=4)<0)break;he.push(K>>18|240,K>>12&63|128,K>>6&63|128,K&63|128)}else throw new Error("Invalid code point")}return he}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,he=[],pe=0;pe<se.length&&!((X-=2)<0);++pe)K=se.charCodeAt(pe),ye=K>>8,oe=K%256,he.push(oe),he.push(ye);return he}function Me(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 d(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=!!d(k,"delaunay",!0),x=!!d(k,"interior",!0),M=!!d(k,"exterior",!0),h=!!d(k,"infinity",!1);if(!x&&!M||T.length===0)return[];var w=l(T,m);if(S||x!==M||h){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?h?f(y,0,h):y.cells():f(y,1,h):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,d,_,T){var m=g.opposite(d,_);if(!(m<0)){if(_<d){var k=d;d=_,_=k,k=T,T=m,m=k}g.isConstraint(d,_)||l(c[d],c[_],c[T],c[m])<0&&b.push(d,_)}}function f(c,g){for(var b=[],d=c.length,_=g.stars,T=0;T<d;++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,h=1;h<m.length;h+=2)if(m[h-1]===S){M=m[h];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(d,_,T,m,k,S,x){this.cells=d,this.neighbor=_,this.flags=m,this.constraint=T,this.active=k,this.next=S,this.boundary=x}var s=u.prototype;function f(d,_){return d[0]-_[0]||d[1]-_[1]||d[2]-_[2]}s.locate=(function(){var d=[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:(d[0]=k,d[1]=S,d[2]=x,l.eq(this.cells,d,f))}})();function c(d,_){for(var T=d.cells(),m=T.length,k=0;k<m;++k){var S=T[k],x=S[0],M=S[1],h=S[2];M<h?M<x&&(S[0]=M,S[1]=h,S[2]=x):h<x&&(S[0]=h,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),R=null;_&&(R=[]);for(var E=new u(T,A,p,w,y,v,R),k=0;k<m;++k)for(var S=T[k],D=0;D<3;++D){var x=S[D],M=S[(D+1)%3],I=A[3*k+D]=E.locate(M,x,d.opposite(M,x)),F=p[3*k+D]=d.isConstraint(x,M);I<0&&(F?v.push(k):(y.push(k),w[k]=1),_&&R.push([M,x,-1]))}return E}function g(d,_,T){for(var m=0,k=0;k<d.length;++k)_[k]===T&&(d[m++]=d[k]);return d.length=m,d}function b(d,_,T){var m=c(d,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,h=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=h[v],p=0;p<3;++p){var R=y[3*v+p];R>=0&&M[R]===0&&(w[3*v+p]?x.push(R):(S.push(R),M[R]=k))}}}var E=x;x=S,S=E,x.length=0,k=-k}var D=g(h,M,_);return T?D.concat(m.boundary):D}},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,h,w,y,v){this.a=M,this.b=h,this.idx=w,this.lowerIds=y,this.upperIds=v}function b(M,h,w,y){this.a=M,this.b=h,this.type=w,this.idx=y}function d(M,h){var w=M.a[0]-h.a[0]||M.a[1]-h.a[1]||M.type-h.type;return w||M.type!==s&&(w=u(M.a,M.b,h.b),w)?w:M.idx-h.idx}function _(M,h){return u(M.a,M.b,h)}function T(M,h,w,y,v){for(var A=l.lt(h,y,_),p=l.gt(h,y,_),R=A;R<p;++R){for(var E=h[R],D=E.lowerIds,F=D.length;F>1&&u(w[D[F-2]],w[D[F-1]],y)>0;)M.push([D[F-1],D[F-2],v]),F-=1;D.length=F,D.push(v);for(var I=E.upperIds,F=I.length;F>1&&u(w[I[F-2]],w[I[F-1]],y)<0;)M.push([I[F-2],I[F-1],v]),F-=1;I.length=F,I.push(v)}}function m(M,h){var w;return M.a[0]<h.a[0]?w=u(M.a,M.b,h.a):w=u(h.b,h.a,M.a),w||(h.b[0]<M.b[0]?w=u(M.a,M.b,h.b):w=u(h.b,h.a,M.b),w||M.idx-h.idx)}function k(M,h,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,h,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,h){for(var w=M.length,y=h.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=h[A],R=M[p[0]],E=M[p[1]];R[0]<E[0]?v.push(new b(R,E,c,A),new b(E,R,f,A)):R[0]>E[0]&&v.push(new b(E,R,c,A),new b(R,E,f,A))}v.sort(d);for(var D=v[0].a[0]-(1+Math.abs(v[0].a[0]))*Math.pow(2,-52),I=[new g([D,1],[D,0],-1,[],[],[],[])],F=[],A=0,P=v.length;A<P;++A){var L=v[A],z=L.type;z===s?T(F,I,M,L.a,L.idx):z===c?k(I,M,L):S(I,M,L)}return F}},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,d){for(var _=1,T=g.length;_<T;_+=2)if(g[_-1]===b&&g[_]===d){g[_-1]=g[T-2],g[_]=g[T-1],g.length=T-2;return}}s.isConstraint=(function(){var g=[0,0];function b(d,_){return d[0]-_[0]||d[1]-_[1]}return function(d,_){return g[0]=Math.min(d,_),g[1]=Math.max(d,_),l.eq(this.edges,g,b)>=0}})(),s.removeTriangle=function(g,b,d){var _=this.stars;f(_[g],b,d),f(_[b],d,g),f(_[d],g,b)},s.addTriangle=function(g,b,d){var _=this.stars;_[g].push(b,d),_[b].push(d,g),_[d].push(g,b)},s.opposite=function(g,b){for(var d=this.stars[b],_=1,T=d.length;_<T;_+=2)if(d[_]===g)return d[_-1];return-1},s.flip=function(g,b){var d=this.opposite(g,b),_=this.opposite(b,g);this.removeTriangle(g,b,d),this.removeTriangle(b,g,_),this.addTriangle(g,_,d),this.addTriangle(b,d,_)},s.edges=function(){for(var g=this.stars,b=[],d=0,_=g.length;d<_;++d)for(var T=g[d],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=[],d=0,_=g.length;d<_;++d)for(var T=g[d],m=0,k=T.length;m<k;m+=2){var S=T[m],x=T[m+1];d<Math.min(S,x)&&b.push([d,S,x])}return b};function c(g,b){for(var d=new Array(g),_=0;_<g;++_)d[_]=[];return new u(d,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 d=0,_=g.length,T=0;T<_;++T)d+=g[T]*b[T];return d}function f(g){var b=g.length;if(b===0)return[];var d=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 h=new Array(b),m=0;m<b;++m){for(var M=S[m],w=0,k=0;k<M.length;++k)w+=M[k];h[m]=w/x}return h}function c(g){if(g.length===0)return[];for(var b=g[0].length,d=l([b]),_=f(g),T=0;T<g.length;++T)for(var m=0;m<b;++m)d[m]+=g[T][m]*_[T];return d}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],d=0;d<f.length;++d)c+=Math.pow(b[d]-f[d],2);return Math.sqrt(c/s.length)}},332(a,o,i){"use strict";a.exports=R;var l=i(1755),u=i(6867),s=i(1125),f=i(7842),c=i(1318),g=i(946),b=i(5838),d=i(1278),_=i(3637);function T(E){var D=g(E);return[d(D,-1/0),d(D,1/0)]}function m(E,D){for(var I=new Array(D.length),F=0;F<D.length;++F){var P=D[F],L=E[P[0]],z=E[P[1]];I[F]=[d(Math.min(L[0],z[0]),-1/0),d(Math.min(L[1],z[1]),-1/0),d(Math.max(L[0],z[0]),1/0),d(Math.max(L[1],z[1]),1/0)]}return I}function k(E){for(var D=new Array(E.length),I=0;I<E.length;++I){var F=E[I];D[I]=[d(F[0],-1/0),d(F[1],-1/0),d(F[0],1/0),d(F[1],1/0)]}return D}function S(E,D,I){var F=[];return u(I,function(P,L){var z=D[P],O=D[L];if(!(z[0]===O[0]||z[0]===O[1]||z[1]===O[0]||z[1]===O[1])){var B=E[z[0]],V=E[z[1]],J=E[O[0]],Q=E[O[1]];s(B,V,J,Q)&&F.push([P,L])}}),F}function x(E,D,I,F){var P=[];return u(I,F,function(L,z){var O=D[L];if(!(O[0]===z||O[1]===z)){var B=E[z],V=E[O[0]],J=E[O[1]];s(V,J,B,B)&&P.push([L,z])}}),P}function M(E,D,I,F,P){var L,z,O=E.map(function(we){return[f(we[0]),f(we[1])]});for(L=0;L<I.length;++L){var B=I[L];z=B[0];var V=B[1],J=D[z],Q=D[V],G=_(b(E[J[0]]),b(E[J[1]]),b(E[Q[0]]),b(E[Q[1]]));if(G){var q=E.length;E.push([g(G[0]),g(G[1])]),O.push(G),F.push([z,q],[V,q])}}for(F.sort(function(we,Me){if(we[0]!==Me[0])return we[0]-Me[0];var ke=O[we[1]],ge=O[Me[1]];return c(ke[0],ge[0])||c(ke[1],ge[1])}),L=F.length-1;L>=0;--L){var Z=F[L];z=Z[0];var re=D[z],$=re[0],ie=re[1],j=E[$],te=E[ie];if((j[0]-te[0]||j[1]-te[1])<0){var ue=$;$=ie,ie=ue}re[0]=$;var ee=re[1]=Z[1],ae;for(P&&(ae=re[2]);L>0&&F[L-1][0]===z;){var Z=F[--L],fe=Z[1];P?D.push([ee,fe,ae]):D.push([ee,fe]),ee=fe}P?D.push([ee,ie,ae]):D.push([ee,ie])}return O}function h(E,D,I){for(var F=D.length,P=new l(F),L=[],z=0;z<D.length;++z){var O=D[z],B=T(O[0]),V=T(O[1]);L.push([d(B[0],-1/0),d(V[0],-1/0),d(B[1],1/0),d(V[1],1/0)])}u(L,function(Z,re){P.link(Z,re)});for(var J=!0,Q=new Array(F),z=0;z<F;++z){var G=P.find(z);G!==z&&(J=!1,E[G]=[Math.min(E[z][0],E[G][0]),Math.min(E[z][1],E[G][1])])}if(J)return null;for(var q=0,z=0;z<F;++z){var G=P.find(z);G===z?(Q[z]=q,E[q++]=E[z]):Q[z]=-1}E.length=q;for(var z=0;z<F;++z)Q[z]<0&&(Q[z]=Q[P.find(z)]);return Q}function w(E,D){return E[0]-D[0]||E[1]-D[1]}function y(E,D){var I=E[0]-D[0]||E[1]-D[1];return I||(E[2]<D[2]?-1:E[2]>D[2]?1:0)}function v(E,D,I){if(E.length!==0){if(D)for(var F=0;F<E.length;++F){var P=E[F],L=D[P[0]],z=D[P[1]];P[0]=Math.min(L,z),P[1]=Math.max(L,z)}else for(var F=0;F<E.length;++F){var P=E[F],L=P[0],z=P[1];P[0]=Math.min(L,z),P[1]=Math.max(L,z)}I?E.sort(y):E.sort(w);for(var O=1,F=1;F<E.length;++F){var B=E[F-1],V=E[F];V[0]===B[0]&&V[1]===B[1]&&(!I||V[2]===B[2])||(E[O++]=V)}E.length=O}}function A(E,D,I){var F=h(E,[],k(E));return v(D,F,I),!!F}function p(E,D,I){var F=m(E,D),P=S(E,D,F),L=k(E),z=x(E,D,F,L),O=M(E,D,P,z,I),B=h(E,O,L);return v(D,B,I),B?!0:P.length>0||z.length>0}function R(E,D,I){var F;if(I){F=D;for(var P=new Array(D.length),L=0;L<D.length;++L){var z=D[L];P[L]=[z[0],z[1],I[L]]}D=P}for(var O=A(E,D,!!I);p(E,D,!!I);)O=!0;if(I&&O){F.length=0,I.length=0;for(var L=0;L<D.length;++L){var z=D[L];F.push([z[0],z[1]]),I.push(z[2])}}return O}},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 d(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),h=d(x,M);if(f(h)===0)return null;var w=c(T,k),y=d(M,w),v=u(y,h),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 d,_,T,m,k,S,x,M,v,h,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?h=[1,1]:h=b.alpha.slice():typeof b.alpha=="number"?h=[b.alpha,b.alpha]:h=[1,1],d=k.map(function(R){return Math.round(R.index*M)}),h[0]=Math.min(Math.max(h[0],0),1),h[1]=Math.min(Math.max(h[1],0),1);var y=k.map(function(R,E){var D=k[E].index,I=k[E].rgb.slice();return I.length===4&&I[3]>=0&&I[3]<=1||(I[3]=h[0]+(h[1]-h[0])*D),I}),v=[];for(w=0;w<d.length-1;++w){m=d[w+1]-d[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(h[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 d,_="#",T=0;T<3;++T)d=b[T],d=d.toString(16),_+=("00"+d).substr(d.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(d,_,T){var m=s(d[0],-_[0]),k=s(d[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(d,_,T,m){var k=l(_,T,m);if(k===0){var S=u(l(d,_,T)),x=u(l(d,_,m));if(S===x){if(S===0){var M=g(d,_,T),h=g(d,_,m);return M===h?0:M?1:-1}return 0}else{if(x===0)return S>0||g(d,_,m)?-1:1;if(S===0)return x>0||g(d,_,T)?1:-1}return u(x-S)}var w=l(d,_,T);if(w>0)return k>0&&l(d,_,m)>0?1:-1;if(w<0)return k>0||l(d,_,m)>0?1:-1;var y=l(d,_,m);return y>0||g(d,_,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 d=o(u[0],u[1]),_=o(s[0],s[1]);return o(d,u[2])-o(_,s[2])||o(d+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],h=s[2],w=s[3];return T+m+k+S-(x+M+h+w)||o(T,m,k,S)-o(x,M,h,w,x)||o(T+m,T+k,T+S,m+k,m+S,k+S)-o(x+M,x+h,x+w,M+h,M+w,h+w)||o(T+m+k,T+m+S,T+k+S,m+k+S)-o(x+M+h,x+M+w,x+h+w,M+h+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],d=0;d<c;++d){var _=f[d];g[d]=[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 d=g.length,_=new Array(d),T=0;T<b.length;++T)_[T]=g[b[T]];for(var m=b.length,T=0;T<d;++T)b.indexOf(T)<0&&(_[m++]=g[T]);return _}function f(g,b){for(var d=g.length,_=b.length,T=0;T<d;++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 d=u(g);if(d.length<=b)return[];var _=s(g,d),T=l(_,!0);return f(T,d)}}},4769(a){"use strict";function o(l,u,s,f,c,g){var b=6*c*c-6*c,d=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]+d*u[m]+_*s[m]+T*f[m];return g}return b*l+d*u+_*s[m]+T*f}function i(l,u,s,f,c,g){var b=c-1,d=c*c,_=b*b,T=(1+2*c)*_,m=c*_,k=d*(3-2*c),S=d*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,d){this.point=b,this.index=d}function f(b,d){for(var _=b.point,T=d.point,m=_.length,k=0;k<m;++k){var S=T[k]-_[k];if(S)return S}return 0}function c(b,d,_){if(b===1)return _?[[-1,0]]:[];var T=d.map(function(M,h){return[M[0],h]});T.sort(function(M,h){return M[0]-h[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,d){var _=b.length;if(_===0)return[];var T=b[0].length;if(T<1)return[];if(T===1)return c(_,b,d);for(var m=new Array(_),k=1,S=0;S<_;++S){for(var x=b[S],M=new Array(T+1),h=0,w=0;w<T;++w){var y=x[w];M[w]=y,h+=y*y}M[T]=h,m[S]=new s(M,S),k=Math.max(h,k)}u(m,f),_=m.length;for(var v=new Array(_+T+1),A=new Array(_+T+1),p=(T+1)*(T+1)*k,R=new Array(T+1),S=0;S<=T;++S)R[S]=0;R[T]=p,v[0]=R.slice(),A[0]=-1;for(var S=0;S<=T;++S){var M=R.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 D=l(v,!1);if(d?D=D.filter(function(I){for(var F=0,P=0;P<=T;++P){var L=A[I[P]];if(L<0&&++F>=2)return!1;I[P]=L}return!0}):D=D.filter(function(I){for(var F=0;F<=T;++F){var P=A[I[F]];if(P<0)return!1;I[F]=P}return!0}),T&1)for(var S=0;S<D.length;++S){var E=D[S],M=E[0];E[0]=E[1],E[1]=M}return D}},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,h){return l[0]=M,l[1]=h,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(h){return i[0]=h,[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,h){return l[1]=M,l[0]=h,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,d=x;a.exports=function(h){return i[0]=h,[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,h){return u.writeUInt32LE(M,0,!0),u.writeUInt32LE(h,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(h){return u.writeDoubleLE(h,0,!0),[u.readUInt32LE(0,!0),u.readUInt32LE(4,!0)]},a.exports.pack=k,a.exports.lo=S,a.exports.hi=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 d=new Array(f),g=0;g<f;++g)d[g]=[];for(var g=0;g<c;++g){var b=s[g];d[b[0]].push(b[1]),d[b[1]].push(b[0])}for(var _=0;_<f;++_)l(d[_],function(T,m){return T-m});return d}},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(d,_,T){return Math.min(_,Math.max(d,T))}function f(d,_,T){this.dimension=d.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=d.slice().reverse(),this._velocity=_.slice().reverse(),this._time=[T],this._scratch=[d.slice(),d.slice(),d.slice(),d.slice(),d.slice()]}var c=f.prototype;c.flush=function(d){var _=u.gt(this._time,d)-1;_<=0||(this._time.splice(0,_),this._state.splice(0,_*this.dimension),this._velocity.splice(0,_*this.dimension))},c.curve=function(d){var _=this._time,T=_.length,m=u.le(_,d),k=this._scratch[0],S=this._state,x=this._velocity,M=this.dimension,h=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=d-_[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],R=p-A||1,E=this._scratch[1],D=this._scratch[2],I=this._scratch[3],F=this._scratch[4],P=!0,y=0;y<M;++y,--w)E[y]=S[w],I[y]=x[w]*R,D[y]=S[w+M],F[y]=x[w+M]*R,P=P&&E[y]===D[y]&&I[y]===F[y]&&I[y]===0;if(P)for(var y=0;y<M;++y)k[y]=E[y];else l(E,I,D,F,(d-A)/R,k)}for(var L=h[0],z=h[1],y=0;y<M;++y)k[y]=s(L[y],z[y],k[y]);return k},c.dcurve=function(d){var _=this._time,T=_.length,m=u.le(_,d),k=this._scratch[0],S=this._state,x=this._velocity,M=this.dimension;if(m>=T-1)for(var h=S.length-1,w=d-_[T-1],y=0;y<M;++y,--h)k[y]=x[h];else{for(var h=M*(m+1)-1,v=_[m],A=_[m+1],p=A-v||1,R=this._scratch[1],E=this._scratch[2],D=this._scratch[3],I=this._scratch[4],F=!0,y=0;y<M;++y,--h)R[y]=S[h],D[y]=x[h]*p,E[y]=S[h+M],I[y]=x[h+M]*p,F=F&&R[y]===E[y]&&D[y]===I[y]&&D[y]===0;if(F)for(var y=0;y<M;++y)k[y]=0;else{l.derivative(R,D,E,I,(d-v)/p,k);for(var y=0;y<M;++y)k[y]/=p}}return k},c.lastT=function(){var d=this._time;return d[d.length-1]},c.stable=function(){for(var d=this._velocity,_=d.length,T=this.dimension-1;T>=0;--T)if(d[--_])return!1;return!0},c.jump=function(d){var _=this.lastT(),T=this.dimension;if(!(d<_||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,x=this.bounds,M=x[0],h=x[1];this._time.push(_,d);for(var w=0;w<2;++w)for(var y=0;y<T;++y)m.push(m[S++]),k.push(0);this._time.push(d);for(var y=T;y>0;--y)m.push(s(M[y-1],h[y-1],arguments[y])),k.push(0)}},c.push=function(d){var _=this.lastT(),T=this.dimension;if(!(d<_||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,x=d-_,M=this.bounds,h=M[0],w=M[1],y=x>1e-6?1/x:0;this._time.push(d);for(var v=T;v>0;--v){var A=s(h[v-1],w[v-1],arguments[v]);m.push(A),k.push((A-m[S++])*y)}}},c.set=function(d){var _=this.dimension;if(!(d<this.lastT()||arguments.length!==_+1)){var T=this._state,m=this._velocity,k=this.bounds,S=k[0],x=k[1];this._time.push(d);for(var M=_;M>0;--M)T.push(s(S[M-1],x[M-1],arguments[M])),m.push(0)}},c.move=function(d){var _=this.lastT(),T=this.dimension;if(!(d<=_||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,x=this.bounds,M=x[0],h=x[1],w=d-_,y=w>1e-6?1/w:0;this._time.push(d);for(var v=T;v>0;--v){var A=arguments[v];m.push(s(M[v-1],h[v-1],m[S++]+A)),k.push(A*y)}}},c.idle=function(d){var _=this.lastT();if(!(d<_)){var T=this.dimension,m=this._state,k=this._velocity,S=m.length-T,x=this.bounds,M=x[0],h=x[1],w=d-_;this._time.push(d);for(var y=T-1;y>=0;--y)m.push(s(M[y],h[y],m[S]+w*k[S])),k.push(0),S+=1}};function g(d){for(var _=new Array(d),T=0;T<d;++T)_[T]=0;return _}function b(d,_,T){switch(arguments.length){case 0:return new f([0],[0],0);case 1:if(typeof d=="number"){var m=g(d);return new f(m,m,0)}else return new f(d,g(d.length),0);case 2:if(typeof _=="number"){var m=g(d.length);return new f(d,m,+_)}else T=0;case 3:if(d.length!==_.length)throw new Error("state and velocity lengths must match");return new f(d,_,T)}}},3840(a){"use strict";a.exports=M;var o=0,i=1;function l(h,w,y,v,A,p){this._color=h,this.key=w,this.value=y,this.left=v,this.right=A,this._count=p}function u(h){return new l(h._color,h.key,h.value,h.left,h.right,h._count)}function s(h,w){return new l(h,w.key,w.value,w.left,w.right,w._count)}function f(h){h._count=1+(h.left?h.left._count:0)+(h.right?h.right._count:0)}function c(h,w){this._compare=h,this.root=w}var g=c.prototype;Object.defineProperty(g,"keys",{get:function(){var h=[];return this.forEach(function(w,y){h.push(w)}),h}}),Object.defineProperty(g,"values",{get:function(){var h=[];return this.forEach(function(w,y){h.push(y)}),h}}),Object.defineProperty(g,"length",{get:function(){return this.root?this.root._count:0}}),g.insert=function(h,w){for(var y=this._compare,v=this.root,A=[],p=[];v;){var R=y(h,v.key);A.push(v),p.push(R),R<=0?v=v.left:v=v.right}A.push(new l(o,h,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 D=A[E-1],v=A[E];if(D._color===i||v._color===i)break;var I=A[E-2];if(I.left===D)if(D.left===v){var F=I.right;if(F&&F._color===o)D._color=i,I.right=s(i,F),I._color=o,E-=1;else{if(I._color=o,I.left=D.right,D._color=i,D.right=I,A[E-2]=D,A[E-1]=v,f(I),f(D),E>=3){var P=A[E-3];P.left===I?P.left=D:P.right=D}break}}else{var F=I.right;if(F&&F._color===o)D._color=i,I.right=s(i,F),I._color=o,E-=1;else{if(D.right=v.left,I._color=o,I.left=v.right,v._color=i,v.left=D,v.right=I,A[E-2]=v,A[E-1]=D,f(I),f(D),f(v),E>=3){var P=A[E-3];P.left===I?P.left=v:P.right=v}break}}else if(D.right===v){var F=I.left;if(F&&F._color===o)D._color=i,I.left=s(i,F),I._color=o,E-=1;else{if(I._color=o,I.right=D.left,D._color=i,D.left=I,A[E-2]=D,A[E-1]=v,f(I),f(D),E>=3){var P=A[E-3];P.right===I?P.right=D:P.left=D}break}}else{var F=I.left;if(F&&F._color===o)D._color=i,I.left=s(i,F),I._color=o,E-=1;else{if(D.left=v.right,I._color=o,I.right=v.left,v._color=i,v.right=D,v.left=I,A[E-2]=v,A[E-1]=D,f(I),f(D),f(v),E>=3){var P=A[E-3];P.right===I?P.right=v:P.left=v}break}}}return A[0]._color=i,new c(y,A[0])};function b(h,w){if(w.left){var y=b(h,w.left);if(y)return y}var y=h(w.key,w.value);if(y)return y;if(w.right)return b(h,w.right)}function d(h,w,y,v){var A=w(h,v.key);if(A<=0){if(v.left){var p=d(h,w,y,v.left);if(p)return p}var p=y(v.key,v.value);if(p)return p}if(v.right)return d(h,w,y,v.right)}function _(h,w,y,v,A){var p=y(h,A.key),R=y(w,A.key),E;if(p<=0&&(A.left&&(E=_(h,w,y,v,A.left),E)||R>0&&(E=v(A.key,A.value),E)))return E;if(R>0&&A.right)return _(h,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 d(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 h=[],w=this.root;w;)h.push(w),w=w.left;return new T(this,h)}}),Object.defineProperty(g,"end",{get:function(){for(var h=[],w=this.root;w;)h.push(w),w=w.right;return new T(this,h)}}),g.at=function(h){if(h<0)return new T(this,[]);for(var w=this.root,y=[];;){if(y.push(w),w.left){if(h<w.left._count){w=w.left;continue}h-=w.left._count}if(!h)return new T(this,y);if(h-=1,w.right){if(h>=w.right._count)break;w=w.right}else break}return new T(this,[])},g.ge=function(h){for(var w=this._compare,y=this.root,v=[],A=0;y;){var p=w(h,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(h){for(var w=this._compare,y=this.root,v=[],A=0;y;){var p=w(h,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(h){for(var w=this._compare,y=this.root,v=[],A=0;y;){var p=w(h,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(h){for(var w=this._compare,y=this.root,v=[],A=0;y;){var p=w(h,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(h){for(var w=this._compare,y=this.root,v=[];y;){var A=w(h,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(h){var w=this.find(h);return w?w.remove():this},g.get=function(h){for(var w=this._compare,y=this.root;y;){var v=w(h,y.key);if(v===0)return y.value;v<=0?y=y.left:y=y.right}};function T(h,w){this.tree=h,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(h,w){h.key=w.key,h.value=w.value,h.left=w.left,h.right=w.right,h._color=w._color,h._count=w._count}function S(h){for(var w,y,v,A,p=h.length-1;p>=0;--p){if(w=h[p],p===0){w._color=i;return}if(y=h[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 R=h[p-2];R.left===y?R.left=v:R.right=v}h[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 R=h[p-2];R.left===y?R.left=A:R.right=A}h[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 R=h[p-2];R.left===y?R.left=v:R.right=v}h[p-1]=v,h[p]=y,p+1<h.length?h[p+1]=w:h.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 R=h[p-2];R.right===y?R.right=v:R.left=v}h[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 R=h[p-2];R.right===y?R.right=A:R.left=A}h[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 R=h[p-2];R.right===y?R.right=v:R.left=v}h[p-1]=v,h[p]=y,p+1<h.length?h[p+1]=w:h.push(w),p=p+2}}}}m.remove=function(){var h=this._stack;if(h.length===0)return this.tree;var w=new Array(h.length),y=h[h.length-1];w[w.length-1]=new l(y._color,y.key,y.value,y.left,y.right,y._count);for(var v=h.length-2;v>=0;--v){var y=h[v];y.left===h[v+1]?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 R=w[w.length-2];R.left===y?R.left=null:R.right===y&&(R.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 h=0,w=this._stack;if(w.length===0){var y=this.tree.root;return y?y._count:0}else w[w.length-1].left&&(h=w[w.length-1].left._count);for(var v=w.length-2;v>=0;--v)w[v+1]===w[v].right&&(++h,w[v].left&&(h+=w[v].left._count));return h},enumerable:!0}),m.next=function(){var h=this._stack;if(h.length!==0){var w=h[h.length-1];if(w.right)for(w=w.right;w;)h.push(w),w=w.left;else for(h.pop();h.length>0&&h[h.length-1].right===w;)w=h[h.length-1],h.pop()}},Object.defineProperty(m,"hasNext",{get:function(){var h=this._stack;if(h.length===0)return!1;if(h[h.length-1].right)return!0;for(var w=h.length-1;w>0;--w)if(h[w-1].left===h[w])return!0;return!1}}),m.update=function(h){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,h,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 h=this._stack;if(h.length!==0){var w=h[h.length-1];if(w.left)for(w=w.left;w;)h.push(w),w=w.right;else for(h.pop();h.length>0&&h[h.length-1].left===w;)w=h[h.length-1],h.pop()}},Object.defineProperty(m,"hasPrev",{get:function(){var h=this._stack;if(h.length===0)return!1;if(h[h.length-1].left)return!0;for(var w=h.length-1;w>0;--w)if(h[w-1].right===h[w])return!0;return!1}});function x(h,w){return h<w?-1:h>w?1:0}function M(h){return new c(h||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,d=DataView;function _(D){return b.isView(D)&&!(D instanceof d)}function T(D){return Array.isArray(D)||_(D)}function m(D,I){return D[0]=I[0],D[1]=I[1],D[2]=I[2],D}function k(D){this.gl=D,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(D)}var S=k.prototype;S.update=function(D){D=D||{};function I($,ie,j){if(j in D){var te=D[j],ue=this[j],ee;($?T(te)&&T(te[0]):T(te))?this[j]=ee=[ie(te[0]),ie(te[1]),ie(te[2])]:this[j]=ee=[ie(te),ie(te),ie(te)];for(var ae=0;ae<3;++ae)if(ee[ae]!==ue[ae])return!0}return!1}var F=I.bind(this,!1,Number),P=I.bind(this,!1,Boolean),L=I.bind(this,!1,String),z=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]}),O,B=!1,V=!1;if("bounds"in D)for(var J=D.bounds,Q=0;Q<2;++Q)for(var G=0;G<3;++G)J[Q][G]!==this.bounds[Q][G]&&(V=!0),this.bounds[Q][G]=J[Q][G];if("ticks"in D){O=D.ticks,B=!0,this.autoTicks=!1;for(var Q=0;Q<3;++Q)this.tickSpacing[Q]=0}else F("tickSpacing")&&(this.autoTicks=!0,V=!0);if(this._firstInit&&("ticks"in D||"tickSpacing"in D||(this.autoTicks=!0),V=!0,B=!0,this._firstInit=!1),V&&this.autoTicks&&(O=c.create(this.bounds,this.tickSpacing),B=!0),B){for(var Q=0;Q<3;++Q)O[Q].sort(function(ie,j){return ie.x-j.x});c.equal(O,this.ticks)?B=!1:this.ticks=O}P("tickEnable"),L("tickFont")&&(B=!0),L("tickFontStyle")&&(B=!0),L("tickFontWeight")&&(B=!0),L("tickFontVariant")&&(B=!0),F("tickSize"),F("tickAngle"),F("tickPad"),z("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),P("labelEnable"),F("labelSize"),F("labelPad"),z("labelColor"),P("lineEnable"),P("lineMirror"),F("lineWidth"),z("lineColor"),P("lineTickEnable"),P("lineTickMirror"),F("lineTickLength"),F("lineTickWidth"),z("lineTickColor"),P("gridEnable"),F("gridWidth"),z("gridColor"),P("zeroEnable"),z("zeroLineColor"),F("zeroLineWidth"),P("backgroundEnable"),z("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||B)&&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&&B&&(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 h(D,I,F,P,L){for(var z=D.primalOffset,O=D.primalMinor,B=D.mirrorOffset,V=D.mirrorMinor,J=P[I],Q=0;Q<3;++Q)if(I!==Q){var G=z,q=B,Z=O,re=V;J&1<<Q&&(G=B,q=z,Z=V,re=O),G[Q]=F[0][Q],q[Q]=F[1][Q],L[Q]>0?(Z[Q]=-1,re[Q]=0):(Z[Q]=0,re[Q]=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(D){};var v=0,A=[0,0,0],p=[0,0,0],R=[0,0,0];S.draw=function(D){D=D||y;for(var j=this.gl,I=D.model||g,F=D.view||g,P=D.projection||g,L=this.bounds,z=D._ortho||!1,O=f(I,F,P,L,z),B=O.cubeEdges,V=O.axis,J=F[12],Q=F[13],G=F[14],q=F[15],Z=z?2:1,re=Z*this.pixelRatio*(P[3]*J+P[7]*Q+P[11]*G+P[15]*q)/j.drawingBufferHeight,$=0;$<3;++$)this.lastCubeProps.cubeEdges[$]=B[$],this.lastCubeProps.axis[$]=V[$];for(var ie=M,$=0;$<3;++$)h(M[$],$,this.bounds,B,V);for(var j=this.gl,te=w,$=0;$<3;++$)this.backgroundEnable[$]?te[$]=V[$]:te[$]=0;this._background.draw(I,F,P,L,te,this.backgroundColor),this._lines.bind(I,F,P,this);for(var $=0;$<3;++$){var ue=[0,0,0];V[$]>0?ue[$]=L[1][$]:ue[$]=L[0][$];for(var ee=0;ee<2;++ee){var ae=($+1+ee)%3,fe=($+1+(ee^1))%3;this.gridEnable[ae]&&this._lines.drawGrid(ae,fe,this.bounds,ue,this.gridColor[ae],this.gridWidth[ae]*this.pixelRatio)}for(var ee=0;ee<2;++ee){var ae=($+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(ae,fe,this.bounds,ue,this.zeroLineColor[fe],this.zeroLineWidth[fe]*this.pixelRatio)}}for(var $=0;$<3;++$){this.lineEnable[$]&&this._lines.drawAxisLine($,this.bounds,ie[$].primalOffset,this.lineColor[$],this.lineWidth[$]*this.pixelRatio),this.lineMirror[$]&&this._lines.drawAxisLine($,this.bounds,ie[$].mirrorOffset,this.lineColor[$],this.lineWidth[$]*this.pixelRatio);for(var we=m(A,ie[$].primalMinor),Me=m(p,ie[$].mirrorMinor),ke=this.lineTickLength,ee=0;ee<3;++ee){var ge=re/I[5*ee];we[ee]*=ke[ee]*ge,Me[ee]*=ke[ee]*ge}this.lineTickEnable[$]&&this._lines.drawAxisTicks($,ie[$].primalOffset,we,this.lineTickColor[$],this.lineTickWidth[$]*this.pixelRatio),this.lineTickMirror[$]&&this._lines.drawAxisTicks($,ie[$].mirrorOffset,Me,this.lineTickColor[$],this.lineTickWidth[$]*this.pixelRatio)}this._lines.unbind(),this._text.bind(I,F,P,this.pixelRatio);var Ee,Le=.5,se,X;function K(Se){X=[0,0,0],X[Se]=1}function ye(Se,ve,de){var be=(Se+1)%3,Ae=(Se+2)%3,Pe=ve[be],Ie=ve[Ae],Ye=de[be],qe=de[Ae];if(Pe>0&&qe>0){K(be);return}else if(Pe>0&&qe<0){K(be);return}else if(Pe<0&&qe>0){K(be);return}else if(Pe<0&&qe<0){K(be);return}else if(Ie>0&&Ye>0){K(Ae);return}else if(Ie>0&&Ye<0){K(Ae);return}else if(Ie<0&&Ye>0){K(Ae);return}else if(Ie<0&&Ye<0){K(Ae);return}}for(var $=0;$<3;++$){for(var oe=ie[$].primalMinor,he=ie[$].mirrorMinor,pe=m(R,ie[$].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,he);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(D,I){var F=new k(D);return F.update(I),F}},5304(a,o,i){"use strict";a.exports=g;var l=i(2762),u=i(8116),s=i(1879).bg;function f(b,d,_,T){this.gl=b,this.buffer=d,this.vao=_,this.shader=T}var c=f.prototype;c.draw=function(b,d,_,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:d,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 d=[],_=[],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],h=-1;h<=1;h+=2){_.push(T,T+2,T+1,T+1,T+2,T+3),x[m]=h,M[m]=h;for(var w=-1;w<=1;w+=2){x[k]=w;for(var y=-1;y<=1;y+=2)x[S]=y,d.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(d)),p=l(b,new Uint16Array(_),b.ELEMENT_ARRAY_BUFFER),R=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,R,E)}},6429(a,o,i){"use strict";a.exports=h;var l=i(8828),u=i(6760),s=i(5202),f=i(3250),c=new Array(16),g=new Array(8),b=new Array(8),d=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],R=0,y=1;y+1<w.length;++y){var E=w[y],D=w[y+1],I=E[0]/E[3],F=E[1]/E[3],P=D[0]/D[3],L=D[1]/D[3],z=I-A,O=F-p,B=P-A,V=L-p;R+=Math.abs(z*V-O*B)}return R}var S=[1,1,1],x=[0,0,0],M={cubeEdges:S,axis:x};function h(w,y,v,A,p){u(c,y,w),u(c,v,c);for(var R=0,E=0;E<2;++E){d[2]=A[E][2];for(var D=0;D<2;++D){d[1]=A[D][1];for(var I=0;I<2;++I)d[0]=A[I][0],T(g[R],d,c),R+=1}}for(var F=-1,E=0;E<8;++E){for(var P=g[E][3],L=0;L<3;++L)b[E][L]=g[E][L]/P;p&&(b[E][2]*=-1),P<0&&(F<0||b[E][2]<b[F][2])&&(F=E)}if(F<0){F=0;for(var z=0;z<3;++z){for(var O=(z+2)%3,B=(z+1)%3,V=-1,J=-1,Q=0;Q<2;++Q){var G=Q<<z,q=G+(Q<<O)+(1-Q<<B),Z=G+(1-Q<<O)+(Q<<B);f(b[G],b[q],b[Z],_)<0||(Q?V=1:J=1)}if(V<0||J<0){J>V&&(F|=1<<z);continue}for(var Q=0;Q<2;++Q){var G=Q<<z,q=G+(Q<<O)+(1-Q<<B),Z=G+(1-Q<<O)+(Q<<B),re=k([g[G],g[q],g[Z],g[G+(1<<O)+(1<<B)]]);Q?V=re:J=re}if(J>V){F|=1<<z;continue}}}for(var $=7^F,ie=-1,E=0;E<8;++E)E===F||E===$||(ie<0||b[ie][1]>b[E][1])&&(ie=E);for(var j=-1,E=0;E<3;++E){var te=ie^1<<E;if(!(te===F||te===$)){j<0&&(j=te);var B=b[te];B[0]<b[j][0]&&(j=te)}}for(var ue=-1,E=0;E<3;++E){var te=ie^1<<E;if(!(te===F||te===$||te===j)){ue<0&&(ue=te);var B=b[te];B[0]>b[ue][0]&&(ue=te)}}var ee=S;ee[0]=ee[1]=ee[2]=0,ee[l.log2(j^ie)]=ie&j,ee[l.log2(ie^ue)]=ie&ue;var ae=ue^7;ae===F||ae===$?(ae=j^7,ee[l.log2(ue^ae)]=ae&ue):ee[l.log2(j^ae)]=ae&j;for(var fe=x,we=F,z=0;z<3;++z)we&1<<z?fe[z]=-1:fe[z]=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],d=[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,h,w,y,v,A,p){this.gl=x,this.vertBuffer=M,this.vao=h,this.shader=w,this.tickCount=y,this.tickOffset=v,this.gridCount=A,this.gridOffset=p}var k=m.prototype;k.bind=function(x,M,h){this.shader.bind(),this.shader.uniforms.model=x,this.shader.uniforms.view=M,this.shader.uniforms.projection=h,d[0]=this.gl.drawingBufferWidth,d[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=d,this.vao.bind()},k.unbind=function(){this.vao.unbind()},k.drawAxisLine=function(x,M,h,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,h);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,h,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=h,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,h,w,y,v){if(this.gridCount[x]){var A=_(c);A[M]=h[1][M]-h[0][M],this.shader.uniforms.minorAxis=A;var p=T(b,w);p[M]+=h[0][M],this.shader.uniforms.offset=p;var R=_(f);R[x]=1,this.shader.uniforms.majorAxis=R;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,h,w,y,v){var A=_(c);this.shader.uniforms.majorAxis=A,A[x]=h[1][x]-h[0][x],this.shader.uniforms.minorAxis=A;var p=T(b,w);p[x]+=h[0][x],this.shader.uniforms.offset=p;var R=_(g);R[M]=1,this.shader.uniforms.screenAxis=R,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,h){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 R=0;R<3;++R){for(var I=w.length/3|0,E=0;E<h[R].length;++E){var D=+h[R][E].x;w.push(D,0,1,D,1,1,D,0,-1,D,0,-1,D,1,1,D,1,-1)}var P=w.length/3|0;y[R]=I,v[R]=P-I;for(var I=w.length/3|0,F=0;F<h[R].length;++F){var D=+h[R][F].x;w.push(D,0,1,D,1,1,D,0,-1,D,0,-1,D,1,1,D,1,-1)}var P=w.length/3|0;A[R]=I,p[R]=P-I}var L=l(x,new Float32Array(w)),z=u(x,[{buffer:L,type:x.FLOAT,size:3,stride:0,offset:0}]),O=s(x);return O.attributes.position.location=0,new m(x,L,z,O,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);
}
`]),d=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,d,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 d(S,x,M,h){this.gl=S,this.shader=x,this.buffer=M,this.vao=h,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var _=d.prototype,T=[0,0];_.bind=function(S,x,M,h){this.vao.bind(),this.shader.bind();var w=this.shader.uniforms;w.model=S,w.view=x,w.projection=M,w.pixelScale=h,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,h,w){var y=[];function v(z,O,B,V,J,Q){var G=[B.style,B.weight,B.variant,B.family].join("_"),q=g[G];q||(q=g[G]={});var Z=q[O];Z||(Z=q[O]=m(O,{triangles:!0,font:B.family,fontStyle:B.style,fontWeight:B.weight,fontVariant:B.variant,textAlign:"center",textBaseline:"middle",lineSpacing:J,styletags:Q}));for(var re=(V||12)/12,$=Z.positions,ie=Z.cells,j=0,te=ie.length;j<te;++j)for(var ue=ie[j],ee=2;ee>=0;--ee){var ae=$[ue[ee]];y.push(re*ae[0],-re*ae[1],z)}}for(var A=[0,0,0],p=[0,0,0],R=[0,0,0],E=[0,0,0],D=1.25,I={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},F=0;F<3;++F){R[F]=y.length/b|0,v(.5*(S[0][F]+S[1][F]),x[F],M[F],12,D,I),E[F]=(y.length/b|0)-R[F],A[F]=y.length/b|0;for(var P=0;P<h[F].length;++P)if(h[F][P].text){var L={family:h[F][P].font||w[F].family,style:w[F].fontStyle||w[F].style,weight:w[F].fontWeight||w[F].weight,variant:w[F].fontVariant||w[F].variant};v(h[F][P].x,h[F][P].text,L,h[F][P].fontSize||12,D,I)}p[F]=(y.length/b|0)-A[F]}this.buffer.update(y),this.tickOffset=A,this.tickCount=p,this.labelOffset=R,this.labelCount=E},_.drawTicks=function(S,x,M,h,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=h,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,h,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=h,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,h,w,y){var v=l(S),A=u(S,[{buffer:v,size:3}]),p=f(S);p.attributes.position.location=0;var R=new d(S,p,v,A);return R.update(x,M,h,w,y),R}},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 d=Math.pow(10,b),_=Math.round(s*f*d),T=_+"";if(T.indexOf("e")>=0)return T;var m=_/d,k=_%d;_<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=[],d=.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],d=f[c][g];if(b.x!==d.x||b.text!==d.text||b.font!==d.font||b.fontColor!==d.fontColor||b.fontSize!==d.fontSize||b.dx!==d.dx||b.dy!==d.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]),d=new Float32Array(16);function _(h,w,y){this.lo=h,this.hi=w,this.pixelsPerDataUnit=y}var T=[0,0,0,1],m=[0,0,0,1];function k(h,w,y,v,A){for(var p=0;p<3;++p){for(var R=T,E=m,D=0;D<3;++D)E[D]=R[D]=y[D];E[3]=R[3]=1,E[p]+=1,g(E,E,w),E[3]<0&&(h[p]=1/0),R[p]-=1,g(R,R,w),R[3]<0&&(h[p]=1/0);var I=(R[0]/R[3]-E[0]/E[3])*v,F=(R[1]/R[3]-E[1]/E[3])*A;h[p]=.25*Math.sqrt(I*I+F*F)}return h}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(h,w,y,v,F){var p=w.model||b,R=w.view||b,E=w.projection||b,D=w._ortho||!1,I=h.bounds,F=F||s(p,R,E,I,D),P=F.axis;f(d,R,p),f(d,E,d);for(var L=S,z=0;z<3;++z)L[z].lo=1/0,L[z].hi=-1/0,L[z].pixelsPerDataUnit=1/0;var O=l(c(d,d));c(d,d);for(var B=0;B<3;++B){var V=(B+1)%3,J=(B+2)%3,Q=x;e:for(var z=0;z<2;++z){var G=[];if(P[B]<0!=!!z){Q[B]=I[z][B];for(var q=0;q<2;++q){Q[V]=I[q^z][V];for(var Z=0;Z<2;++Z)Q[J]=I[Z^q^z][J],G.push(Q.slice())}for(var re=D?5:4,q=re;q===re;++q){if(G.length===0)continue e;G=u.positive(G,O[q])}for(var q=0;q<G.length;++q)for(var J=G[q],$=k(x,d,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!==B&&(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,h){var w=M.length*M.BYTES_PER_ELEMENT;if(h<0)return m.bufferData(k,M,x),w;if(w+h>S)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return m.bufferSubData(k,h,M),S}function d(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),h=s(M,m.shape);u.assign(h,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=d(m,"uint16"):w=d(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(),h=new c(m,S,M,0,x);return h.update(k),h}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 d=0,_=1/0,T=-1/0,m=1/0,k=-1/0,S=1/0,x=-1/0,M=null,h=null,w=[],y=1/0,v=!1,A=s.coneSizemode==="raw",p=0;p<c.length;p++){var R=c[p];_=Math.min(R[0],_),T=Math.max(R[0],T),m=Math.min(R[1],m),k=Math.max(R[1],k),S=Math.min(R[2],S),x=Math.max(R[2],x);var E=g[p];if(l.length(E)>d&&(d=l.length(E)),p&&!A){var D=2*l.distance(M,R)/(l.length(h)+l.length(E));D?(y=Math.min(y,D),v=!1):v=!0}v||(M=R,h=E),w.push(E)}var I=[_,m,S],F=[T,k,x];f&&(f[0]=I,f[1]=F),d===0&&(d=1);var P=1/d;isFinite(y)||(y=1),b.vectorScale=y;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*P),b.coneScale=L;for(var p=0,z=0;p<c.length;p++)for(var R=c[p],O=R[0],B=R[1],V=R[2],J=w[p],Q=l.length(J)*P,G=0,q=8;G<q;G++){b.positions.push([O,B,V,z++]),b.positions.push([O,B,V,z++]),b.positions.push([O,B,V,z++]),b.positions.push([O,B,V,z++]),b.positions.push([O,B,V,z++]),b.positions.push([O,B,V,z++]),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(Q,Q,Q),b.vertexIntensity.push(Q,Q,Q);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),d=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,R,E,D,I,F,P){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=R,this.triangleColors=D,this.triangleUVs=I,this.triangleIds=E,this.triangleVAO=F,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=P,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=_,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=d({colormap:w,nshades:256,format:"rgba"}),v=new Uint8Array(256*4),A=0;A<256;++A){for(var p=y[A],R=0;R<3;++R)v[4*A+R]=p[R];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 R=[],E=[],D=[],I=[],F=[];this.cells=v,this.positions=A,this.vectors=p;var P=w.meshColor||[1,1,1,1],L=w.vertexIntensity,z=1/0,O=-1/0;if(L)if(w.vertexIntensityBounds)z=+w.vertexIntensityBounds[0],O=+w.vertexIntensityBounds[1];else for(var B=0;B<L.length;++B){var V=L[B];z=Math.min(z,V),O=Math.max(O,V)}else for(var B=0;B<A.length;++B){var V=A[B][2];z=Math.min(z,V),O=Math.max(O,V)}L?this.intensity=L:this.intensity=S(A),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(var B=0;B<A.length;++B)for(var J=A[B],Q=0;Q<3;++Q)isNaN(J[Q])||!isFinite(J[Q])||(this.bounds[0][Q]=Math.min(this.bounds[0][Q],J[Q]),this.bounds[1][Q]=Math.max(this.bounds[1][Q],J[Q]));var G=0;e:for(var B=0;B<v.length;++B){var q=v[B];switch(q.length){case 3:for(var Q=0;Q<3;++Q)for(var Z=q[Q],J=A[Z],re=0;re<3;++re)if(isNaN(J[re])||!isFinite(J[re]))continue e;for(var Q=0;Q<3;++Q){var Z=q[2-Q],J=A[Z];R.push(J[0],J[1],J[2],J[3]);var $=p[Z];E.push($[0],$[1],$[2],$[3]||0);var ie=P;ie.length===3?D.push(ie[0],ie[1],ie[2],1):D.push(ie[0],ie[1],ie[2],ie[3]);var j;L?j=[(L[Z]-z)/(O-z),0]:j=[(J[2]-z)/(O-z),0],I.push(j[0],j[1]),F.push(B)}G+=1;break;default:break}}this.triangleCount=G,this.trianglePositions.update(R),this.triangleVectors.update(E),this.triangleColors.update(D),this.triangleUVs.update(I),this.triangleIds.update(new Uint32Array(F))}},m.drawTransparent=m.draw=function(w){w=w||{};for(var y=this.gl,v=w.model||_,A=w.view||_,p=w.projection||_,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)R[0][E]=Math.max(R[0][E],this.clipBounds[0][E]),R[1][E]=Math.min(R[1][E],this.clipBounds[1][E]);var D={model:v,view:A,projection:p,inverseModel:_.slice(),clipBounds:R,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};D.inverseModel=g(D.inverseModel,D.model),y.disable(y.CULL_FACE),this.texture.bind(0);var I=new Array(16);c(I,D.view,D.model),c(I,D.projection,I),g(I,I);for(var E=0;E<3;++E)D.eyePosition[E]=I[12+E]/I[15];for(var F=I[15],E=0;E<3;++E)F+=this.lightPosition[E]*I[4*E+3];for(var E=0;E<3;++E){for(var P=I[12+E],L=0;L<3;++L)P+=I[4*L+E]*this.lightPosition[L];D.lightPosition[E]=P/F}if(this.triangleCount>0){var z=this.triShader;z.bind(),z.uniforms=D,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||_,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)R[0][E]=Math.max(R[0][E],this.clipBounds[0][E]),R[1][E]=Math.min(R[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 D={model:v,view:A,projection:p,clipBounds:R,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},I=this.pickShader;I.bind(),I.uniforms=D,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 h(w,y,v){var A=v.shaders;arguments.length===1&&(y=w,w=y.gl);var p=x(w,A),R=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 D=u(w),I=u(w),F=u(w),P=u(w),L=u(w),z=s(w,[{buffer:D,type:w.FLOAT,size:4},{buffer:L,type:w.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:F,type:w.FLOAT,size:4},{buffer:P,type:w.FLOAT,size:2},{buffer:I,type:w.FLOAT,size:4}]),O=new T(w,E,p,R,D,I,L,F,P,z,v.traceType||"cone");return O.update(y),O}a.exports=h},614(a,o,i){var l=i(3236),u=l([`precision highp float;
precision highp float;
#define GLSLIFY 1
vec3 getOrthogonalVector(vec3 v) {
// Return up-vector for only-z vector.
// Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).
// From the above if-statement we have ||a|| > 0 U ||b|| > 0.
// Assign z = 0, x = -b, y = a:
// a*-b + b*a + c*0 = -ba + ba + 0 = 0
if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {
return normalize(vec3(-v.y, v.x, 0.0));
} else {
return normalize(vec3(0.0, v.z, -v.y));
}
}
// Calculate the cone vertex and normal at the given index.
//
// The returned vertex is for a cone with its top at origin and height of 1.0,
// pointing in the direction of the vector attribute.
//
// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.
// These vertices are used to make up the triangles of the cone by the following:
// segment + 0 top vertex
// segment + 1 perimeter vertex a+1
// segment + 2 perimeter vertex a
// segment + 3 center base vertex
// segment + 4 perimeter vertex a
// segment + 5 perimeter vertex a+1
// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.
// To go from index to segment, floor(index / 6)
// To go from segment to angle, 2*pi * (segment/segmentCount)
// To go from index to segment index, index - (segment*6)
//
vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {
const float segmentCount = 8.0;
float index = rawIndex - floor(rawIndex /
(segmentCount * 6.0)) *
(segmentCount * 6.0);
float segment = floor(0.001 + index/6.0);
float segmentIndex = index - (segment*6.0);
normal = -normalize(d);
if (segmentIndex > 2.99 && segmentIndex < 3.01) {
return mix(vec3(0.0), -d, coneOffset);
}
float nextAngle = (
(segmentIndex > 0.99 && segmentIndex < 1.01) ||
(segmentIndex > 4.99 && segmentIndex < 5.01)
) ? 1.0 : 0.0;
float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);
vec3 v1 = mix(d, vec3(0.0), coneOffset);
vec3 v2 = v1 - d;
vec3 u = getOrthogonalVector(d);
vec3 v = normalize(cross(u, d));
vec3 x = u * cos(angle) * length(d)*0.25;
vec3 y = v * sin(angle) * length(d)*0.25;
vec3 v3 = v2 + x + y;
if (segmentIndex < 3.0) {
vec3 tx = u * sin(angle);
vec3 ty = v * -cos(angle);
vec3 tangent = tx + ty;
normal = normalize(cross(v3 - v1, tangent));
}
if (segmentIndex == 0.0) {
return mix(d, vec3(0.0), coneOffset);
}
return v3;
}
attribute vec3 vector;
attribute vec4 color, position;
attribute vec2 uv;
uniform float vectorScale, coneScale, coneOffset;
uniform mat4 model, view, projection, inverseModel;
uniform vec3 eyePosition, lightPosition;
varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;
varying vec4 f_color;
varying vec2 f_uv;
void main() {
// Scale the vector magnitude to stay constant with
// model & view changes.
vec3 normal;
vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);
vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);
//Lighting geometry parameters
vec4 cameraCoordinate = view * conePosition;
cameraCoordinate.xyz /= cameraCoordinate.w;
f_lightDirection = lightPosition - cameraCoordinate.xyz;
f_eyeDirection = eyePosition - cameraCoordinate.xyz;
f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);
// vec4 m_position = model * vec4(conePosition, 1.0);
vec4 t_position = view * conePosition;
gl_Position = projection * t_position;
f_color = color;
f_data = conePosition.xyz;
f_position = position.xyz;
f_uv = uv;
}
`]),s=l([`#extension GL_OES_standard_derivatives : enable
precision highp float;
#define GLSLIFY 1
float beckmannDistribution(float x, float roughness) {
float NdotH = max(x, 0.0001);
float cos2Alpha = NdotH * NdotH;
float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;
float roughness2 = roughness * roughness;
float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;
return exp(tan2Alpha / roughness2) / denom;
}
float cookTorranceSpecular(
vec3 lightDirection,
vec3 viewDirection,
vec3 surfaceNormal,
float roughness,
float fresnel) {
float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);
float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);
//Half angle vector
vec3 H = normalize(lightDirection + viewDirection);
//Geometric term
float NdotH = max(dot(surfaceNormal, H), 0.0);
float VdotH = max(dot(viewDirection, H), 0.000001);
float LdotH = max(dot(lightDirection, H), 0.000001);
float G1 = (2.0 * NdotH * VdotN) / VdotH;
float G2 = (2.0 * NdotH * LdotN) / LdotH;
float G = min(1.0, min(G1, G2));
//Distribution term
float D = beckmannDistribution(NdotH, roughness);
//Fresnel term
float F = pow(1.0 - VdotN, fresnel);
//Multiply terms and done
return G * F * D / max(3.14159265 * VdotN, 0.000001);
}
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 clipBounds[2];
uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;
uniform sampler2D texture;
varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;
varying vec4 f_color;
varying vec2 f_uv;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;
vec3 N = normalize(f_normal);
vec3 L = normalize(f_lightDirection);
vec3 V = normalize(f_eyeDirection);
if(gl_FrontFacing) {
N = -N;
}
float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));
float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);
vec4 surfaceColor = f_color * texture2D(texture, f_uv);
vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);
gl_FragColor = litColor * opacity;
}
`]),f=l([`precision highp float;
precision highp float;
#define GLSLIFY 1
vec3 getOrthogonalVector(vec3 v) {
// Return up-vector for only-z vector.
// Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).
// From the above if-statement we have ||a|| > 0 U ||b|| > 0.
// Assign z = 0, x = -b, y = a:
// a*-b + b*a + c*0 = -ba + ba + 0 = 0
if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {
return normalize(vec3(-v.y, v.x, 0.0));
} else {
return normalize(vec3(0.0, v.z, -v.y));
}
}
// Calculate the cone vertex and normal at the given index.
//
// The returned vertex is for a cone with its top at origin and height of 1.0,
// pointing in the direction of the vector attribute.
//
// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.
// These vertices are used to make up the triangles of the cone by the following:
// segment + 0 top vertex
// segment + 1 perimeter vertex a+1
// segment + 2 perimeter vertex a
// segment + 3 center base vertex
// segment + 4 perimeter vertex a
// segment + 5 perimeter vertex a+1
// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.
// To go from index to segment, floor(index / 6)
// To go from segment to angle, 2*pi * (segment/segmentCount)
// To go from index to segment index, index - (segment*6)
//
vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {
const float segmentCount = 8.0;
float index = rawIndex - floor(rawIndex /
(segmentCount * 6.0)) *
(segmentCount * 6.0);
float segment = floor(0.001 + index/6.0);
float segmentIndex = index - (segment*6.0);
normal = -normalize(d);
if (segmentIndex > 2.99 && segmentIndex < 3.01) {
return mix(vec3(0.0), -d, coneOffset);
}
float nextAngle = (
(segmentIndex > 0.99 && segmentIndex < 1.01) ||
(segmentIndex > 4.99 && segmentIndex < 5.01)
) ? 1.0 : 0.0;
float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);
vec3 v1 = mix(d, vec3(0.0), coneOffset);
vec3 v2 = v1 - d;
vec3 u = getOrthogonalVector(d);
vec3 v = normalize(cross(u, d));
vec3 x = u * cos(angle) * length(d)*0.25;
vec3 y = v * sin(angle) * length(d)*0.25;
vec3 v3 = v2 + x + y;
if (segmentIndex < 3.0) {
vec3 tx = u * sin(angle);
vec3 ty = v * -cos(angle);
vec3 tangent = tx + ty;
normal = normalize(cross(v3 - v1, tangent));
}
if (segmentIndex == 0.0) {
return mix(d, vec3(0.0), coneOffset);
}
return v3;
}
attribute vec4 vector;
attribute vec4 position;
attribute vec4 id;
uniform mat4 model, view, projection;
uniform float vectorScale, coneScale, coneOffset;
varying vec3 f_position;
varying vec4 f_id;
void main() {
vec3 normal;
vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);
vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);
gl_Position = projection * (view * conePosition);
f_id = id;
f_position = position.xyz;
}
`]),c=l([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 clipBounds[2];
uniform float pickId;
varying vec3 f_position;
varying vec4 f_id;
void main() {
if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;
gl_FragColor = vec4(pickId, f_id.xyz);
}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},o.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737(a){a.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171(a,o,i){var l=i(737);a.exports=function(s){return l[s]}},9165(a,o,i){"use strict";a.exports=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 h=x[12],w=x[13],y=x[14],v=x[15],A=m._ortho||!1,p=A?2:1,R=p*this.pixelRatio*(M[3]*h+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]*R,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 d=(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 h=(x+k)%3,w=[0,0,0];w[h]=M,S.push(w)}m[k]=S}return m})();function _(m,k,S,x){for(var M=d[x],h=0;h<M.length;++h){var w=M[h];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=[],h=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<h;++v){for(var A=S[v],p=0;p<3;++p)if(isNaN(A[p])||!isFinite(A[p]))continue e;var R=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(R[0][y])||isNaN(R[1][y]))){if(R[0][y]<0){var D=A.slice();D[y]+=R[0][y],M.push(A[0],A[1],A[2],E[0],E[1],E[2],E[3],0,0,0,D[0],D[1],D[2],E[0],E[1],E[2],E[3],0,0,0),b(this.bounds,D),w+=2+_(M,D,E,y)}if(R[1][y]>0){var D=A.slice();D[y]+=R[1][y],M.push(A[0],A[1],A[2],E[0],E[1],E[2],E[3],0,0,0,D[0],D[1],D[2],E[0],E[1],E[2],E[3],0,0,0),b(this.bounds,D),w+=2+_(M,D,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 h=new c(k,S,x,M);return h.update(m),h}},3436(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`precision highp float;
#define GLSLIFY 1
attribute vec3 position, offset;
attribute vec4 color;
uniform mat4 model, view, projection;
uniform float capSize;
varying vec4 fragColor;
varying vec3 fragPosition;
void main() {
vec4 worldPosition = model * vec4(position, 1.0);
worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);
gl_Position = projection * (view * worldPosition);
fragColor = color;
fragPosition = position;
}`]),f=l([`precision highp float;
#define GLSLIFY 1
bool outOfRange(float a, float b, float p) {
return ((p > max(a, b)) ||
(p < min(a, b)));
}
bool outOfRange(vec2 a, vec2 b, vec2 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y));
}
bool outOfRange(vec3 a, vec3 b, vec3 p) {
return (outOfRange(a.x, b.x, p.x) ||
outOfRange(a.y, b.y, p.y) ||
outOfRange(a.z, b.z, p.z));
}
bool outOfRange(vec4 a, vec4 b, vec4 p) {
return outOfRange(a.xyz, b.xyz, p.xyz);
}
uniform vec3 clipBounds[2];
uniform float opacity;
varying vec3 fragPosition;
varying vec4 fragColor;
void main() {
if (
outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||
fragColor.a * opacity == 0.
) discard;
gl_FragColor = opacity * fragColor;
}`]);a.exports=function(c){return u(c,s,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260(a,o,i){"use strict";var l=i(7766);a.exports=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 d(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 R=new Array(A),E=0;E<p;++E)R[E]=y.COLOR_ATTACHMENT0+E;for(var E=p;E<A;++E)R[E]=y.NONE;u[p]=R}}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,R,E){if(!p)return null;var D=l(y,v,A,R,p);return D.magFilter=y.NEAREST,D.minFilter=y.NEAREST,D.mipSamples=1,D.bind(),y.framebufferTexture2D(y.FRAMEBUFFER,E,y.TEXTURE_2D,D.handle,0),D}function k(y,v,A,p,R){var E=y.createRenderbuffer();return y.bindRenderbuffer(y.RENDERBUFFER,E),y.renderbufferStorage(y.RENDERBUFFER,p,v,A),y.framebufferRenderbuffer(y.FRAMEBUFFER,R,y.RENDERBUFFER,E),E}function S(y){var v=b(y.gl),A=y.gl,p=y.handle=A.createFramebuffer(),R=y._shape[0],E=y._shape[1],D=y.color.length,I=y._ext,F=y._useStencil,P=y._useDepth,L=y._colorType;A.bindFramebuffer(A.FRAMEBUFFER,p);for(var z=0;z<D;++z)y.color[z]=m(A,R,E,L,A.RGBA,A.COLOR_ATTACHMENT0+z);D===0?(y._color_rb=k(A,R,E,A.RGBA4,A.COLOR_ATTACHMENT0),I&&I.drawBuffersWEBGL(u[0])):D>1&&I.drawBuffersWEBGL(u[D]);var O=A.getExtension("WEBGL_depth_texture");O?F?y.depth=m(A,R,E,O.UNSIGNED_INT_24_8_WEBGL,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):P&&(y.depth=m(A,R,E,A.UNSIGNED_SHORT,A.DEPTH_COMPONENT,A.DEPTH_ATTACHMENT)):P&&F?y._depth_rb=k(A,R,E,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):P?y._depth_rb=k(A,R,E,A.DEPTH_COMPONENT16,A.DEPTH_ATTACHMENT):F&&(y._depth_rb=k(A,R,E,A.STENCIL_INDEX,A.STENCIL_ATTACHMENT));var B=A.checkFramebufferStatus(A.FRAMEBUFFER);if(B!==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 z=0;z<y.color.length;++z)y.color[z].dispose(),y.color[z]=null;y._color_rb&&(A.deleteRenderbuffer(y._color_rb),y._color_rb=null),d(A,v),T(B)}d(A,v)}function x(y,v,A,p,R,E,D,I){this.gl=y,this._shape=[v|0,A|0],this._destroyed=!1,this._ext=I,this.color=new Array(R);for(var F=0;F<R;++F)this.color[F]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=p,this._useDepth=E,this._useStencil=D;var P=this,L=[v|0,A|0];Object.defineProperties(L,{0:{get:function(){return P._shape[0]},set:function(z){return P.width=z}},1:{get:function(){return P._shape[1]},set:function(z){return P.height=z}}}),this._shapeVector=L,S(this)}var M=x.prototype;function h(y,v,A){if(y._destroyed)throw new Error("gl-fbo: Can't resize destroyed FBO");if(!(y._shape[0]===v&&y._shape[1]===A)){var p=y.gl,R=p.getParameter(p.MAX_RENDERBUFFER_SIZE);if(v<0||v>R||A<0||A>R)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");y._shape[0]=v,y._shape[1]=A;for(var E=b(p),D=0;D<y.color.length;++D)y.color[D].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(),d(p,E),T(I)),d(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 h(this,v,A),[v,A]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(y){return y=y|0,h(this,y,this._shape[1]),y},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(y){return y=y|0,h(this,this._shape[0],y),y},enumerable:!1}}),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 R=y.getExtension("WEBGL_draw_buffers");if(!u&&R&&_(y,R),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 D=1;if("color"in p){if(D=Math.max(p.color|0,0),D<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(D>1)if(R){if(D>y.getParameter(R.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+D+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var I=y.UNSIGNED_BYTE,F=y.getExtension("OES_texture_float");if(p.float&&D>0){if(!F)throw new Error("gl-fbo: Context does not support floating point textures");I=y.FLOAT}else p.preferFloat&&D>0&&F&&(I=y.FLOAT);var P=!0;"depth"in p&&(P=!!p.depth);var L=!1;return"stencil"in p&&(L=!!p.stencil),new x(y,v,A,I,D,P,L,R)}},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,d){"use strict";var _=s(b)||"of unknown name (see npm glsl-shader-name)",T="unknown type";d!==void 0&&(T=d===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 h=S[M];if(!(h===""||h==="\0")){var w=parseInt(h.split(":")[2]);if(isNaN(w))throw new Error(l("Could not parse error: %s",h));x[w]=h}}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,R){return f[0]=R,f[1]=p,f[2]=A,f[3]=v,c[0]}var b=i(2478),d=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,R=0;R<3;++R){var E=v[R]-A[R];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,R){this.arcLength=v,this.position=A,this.index=p,this.dataCoordinate=R}function h(v,A,p,R,E,D){this.gl=v,this.shader=A,this.pickShader=p,this.buffer=R,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=D,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var w=h.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,R=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},R.bind(),R.draw(A.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},w.drawPick=function(v){if(this.vertexCount){var A=this.gl,p=this.pickShader,R=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},R.bind(),R.draw(A.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},w.update=function(v){var A,p;this.dirty=!0;var R=!!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=[],D=[],I=[],F=0,P=0,L=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],z=v.position||v.positions;if(z){var O=v.color||v.colors||[0,0,0,1],B=v.lineWidth||1,V=!1;e:for(A=1;A<z.length;++A){var J=z[A-1],Q=z[A];for(D.push(F),I.push(J.slice()),p=0;p<3;++p){if(isNaN(J[p])||isNaN(Q[p])||!isFinite(J[p])||!isFinite(Q[p])){if(!R&&E.length>0){for(var G=0;G<24;++G)E.push(E[E.length-12]);P+=2,V=!0}continue e}L[0][p]=Math.min(L[0][p],J[p],Q[p]),L[1][p]=Math.max(L[1][p],J[p],Q[p])}var q,Z;Array.isArray(O[0])?(q=O.length>A-1?O[A-1]:O.length>0?O[O.length-1]:[0,0,0,1],Z=O.length>A?O[A]:O.length>0?O[O.length-1]:[0,0,0,1]):q=Z=O,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(B)?re=B.length>A-1?B[A-1]:B.length>0?B[B.length-1]:[0,0,0,1]:re=B;var $=F;if(F+=S(J,Q),V){for(p=0;p<2;++p)E.push(J[0],J[1],J[2],Q[0],Q[1],Q[2],$,re,q[0],q[1],q[2],q[3]);P+=2,V=!1}E.push(J[0],J[1],J[2],Q[0],Q[1],Q[2],$,re,q[0],q[1],q[2],q[3],J[0],J[1],J[2],Q[0],Q[1],Q[2],$,-re,q[0],q[1],q[2],q[3],Q[0],Q[1],Q[2],J[0],J[1],J[2],F,-re,Z[0],Z[1],Z[2],Z[3],Q[0],Q[1],Q[2],J[0],J[1],J[2],F,re,Z[0],Z[1],Z[2],Z[3]),P+=4}}if(this.buffer.update(E),D.push(F),I.push(z[z.length-1].slice()),this.bounds=L,this.vertexCount=P,this.points=I,this.arcLength=D,"dashes"in v){var ie=v.dashes,j=ie.slice();for(j.unshift(0),A=1;A<j.length;++A)j[A]=j[A-1]+j[A];var te=d(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(j,j[j.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 R=this.points[p],E=this.points[Math.min(p+1,this.points.length-1)],D=(A-this.arcLength[p])/(this.arcLength[p+1]-this.arcLength[p]),I=1-D,F=[0,0,0],P=0;P<3;++P)F[P]=I*R[P]+D*E[P];var L=Math.min(D<.5?p:p+1,this.points.length-1);return new M(A,F,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 R=m(A);R.attributes.position.location=0,R.attributes.nextPosition.location=1,R.attributes.arcLength.location=2,R.attributes.lineWidth.location=3,R.attributes.color.location=4;for(var E=l(A),D=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=d(new Array(256*4),[256,1,4]),F=0;F<1024;++F)I.data[F]=255;var P=s(A,I);P.wrap=A.REPEAT;var L=new h(A,p,R,E,D,P);return L.update(v),L}},1903(a){a.exports=o;function o(i){var l=new Float32Array(16);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l[4]=i[4],l[5]=i[5],l[6]=i[6],l[7]=i[7],l[8]=i[8],l[9]=i[9],l[10]=i[10],l[11]=i[11],l[12]=i[12],l[13]=i[13],l[14]=i[14],l[15]=i[15],l}},6864(a){a.exports=o;function o(){var i=new Float32Array(16);return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}},9921(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3],c=i[4],g=i[5],b=i[6],d=i[7],_=i[8],T=i[9],m=i[10],k=i[11],S=i[12],x=i[13],M=i[14],h=i[15],w=l*g-u*c,y=l*b-s*c,v=l*d-f*c,A=u*b-s*g,p=u*d-f*g,R=s*d-f*b,E=_*x-T*S,D=_*M-m*S,I=_*h-k*S,F=T*M-m*x,P=T*h-k*x,L=m*h-k*M;return w*L-y*P+v*F+A*I-p*D+R*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,d=f+f,_=u*g,T=s*g,m=s*b,k=f*g,S=f*b,x=f*d,M=c*g,h=c*b,w=c*d;return i[0]=1-m-x,i[1]=T+w,i[2]=k-h,i[3]=0,i[4]=T-w,i[5]=1-_-x,i[6]=S+M,i[7]=0,i[8]=k+h,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,d=f+f,_=c+c,T=s*b,m=s*d,k=s*_,S=f*d,x=f*_,M=c*_,h=g*b,w=g*d,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+h,i[7]=0,i[8]=k+w,i[9]=x-h,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],d=l[6],_=l[7],T=l[8],m=l[9],k=l[10],S=l[11],x=l[12],M=l[13],h=l[14],w=l[15],y=u*b-s*g,v=u*d-f*g,A=u*_-c*g,p=s*d-f*b,R=s*_-c*b,E=f*_-c*d,D=T*M-m*x,I=T*h-k*x,F=T*w-S*x,P=m*h-k*M,L=m*w-S*M,z=k*w-S*h,O=y*z-v*L+A*P+p*F-R*I+E*D;return O?(O=1/O,i[0]=(b*z-d*L+_*P)*O,i[1]=(f*L-s*z-c*P)*O,i[2]=(M*E-h*R+w*p)*O,i[3]=(k*R-m*E-S*p)*O,i[4]=(d*F-g*z-_*I)*O,i[5]=(u*z-f*F+c*I)*O,i[6]=(h*A-x*E-w*v)*O,i[7]=(T*E-k*A+S*v)*O,i[8]=(g*L-b*F+_*D)*O,i[9]=(s*F-u*L-c*D)*O,i[10]=(x*R-M*A+w*y)*O,i[11]=(m*A-T*R-S*y)*O,i[12]=(b*I-g*P-d*D)*O,i[13]=(u*P-s*I+f*D)*O,i[14]=(M*v-x*p-h*y)*O,i[15]=(T*p-m*v+k*y)*O,i):null}},6582(a,o,i){var l=i(7894);a.exports=u;function u(s,f,c,g){var b,d,_,T,m,k,S,x,M,h,w=f[0],y=f[1],v=f[2],A=g[0],p=g[1],R=g[2],E=c[0],D=c[1],I=c[2];return Math.abs(w-E)<1e-6&&Math.abs(y-D)<1e-6&&Math.abs(v-I)<1e-6?l(s):(S=w-E,x=y-D,M=v-I,h=1/Math.sqrt(S*S+x*x+M*M),S*=h,x*=h,M*=h,b=p*M-R*x,d=R*S-A*M,_=A*x-p*S,h=Math.sqrt(b*b+d*d+_*_),h?(h=1/h,b*=h,d*=h,_*=h):(b=0,d=0,_=0),T=x*_-M*d,m=M*b-S*_,k=S*d-x*b,h=Math.sqrt(T*T+m*m+k*k),h?(h=1/h,T*=h,m*=h,k*=h):(T=0,m=0,k=0),s[0]=b,s[1]=T,s[2]=S,s[3]=0,s[4]=d,s[5]=m,s[6]=x,s[7]=0,s[8]=_,s[9]=k,s[10]=M,s[11]=0,s[12]=-(b*w+d*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],d=l[5],_=l[6],T=l[7],m=l[8],k=l[9],S=l[10],x=l[11],M=l[12],h=l[13],w=l[14],y=l[15],v=u[0],A=u[1],p=u[2],R=u[3];return i[0]=v*s+A*b+p*m+R*M,i[1]=v*f+A*d+p*k+R*h,i[2]=v*c+A*_+p*S+R*w,i[3]=v*g+A*T+p*x+R*y,v=u[4],A=u[5],p=u[6],R=u[7],i[4]=v*s+A*b+p*m+R*M,i[5]=v*f+A*d+p*k+R*h,i[6]=v*c+A*_+p*S+R*w,i[7]=v*g+A*T+p*x+R*y,v=u[8],A=u[9],p=u[10],R=u[11],i[8]=v*s+A*b+p*m+R*M,i[9]=v*f+A*d+p*k+R*h,i[10]=v*c+A*_+p*S+R*w,i[11]=v*g+A*T+p*x+R*y,v=u[12],A=u[13],p=u[14],R=u[15],i[12]=v*s+A*b+p*m+R*M,i[13]=v*f+A*d+p*k+R*h,i[14]=v*c+A*_+p*S+R*w,i[15]=v*g+A*T+p*x+R*y,i}},4040(a){a.exports=o;function o(i,l,u,s,f,c,g){var b=1/(l-u),d=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*d,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)*d,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),d,_,T,m,k,S,x,M,h,w,y,v,A,p,R,E,D,I,F,P,L,z,O,B;return Math.abs(b)<1e-6?null:(b=1/b,f*=b,c*=b,g*=b,d=Math.sin(u),_=Math.cos(u),T=1-_,m=l[0],k=l[1],S=l[2],x=l[3],M=l[4],h=l[5],w=l[6],y=l[7],v=l[8],A=l[9],p=l[10],R=l[11],E=f*f*T+_,D=c*f*T+g*d,I=g*f*T-c*d,F=f*c*T-g*d,P=c*c*T+_,L=g*c*T+f*d,z=f*g*T+c*d,O=c*g*T-f*d,B=g*g*T+_,i[0]=m*E+M*D+v*I,i[1]=k*E+h*D+A*I,i[2]=S*E+w*D+p*I,i[3]=x*E+y*D+R*I,i[4]=m*F+M*P+v*L,i[5]=k*F+h*P+A*L,i[6]=S*F+w*P+p*L,i[7]=x*F+y*P+R*L,i[8]=m*z+M*O+v*B,i[9]=k*z+h*O+A*B,i[10]=S*z+w*O+p*B,i[11]=x*z+y*O+R*B,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],d=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]=d*f+k*s,i[8]=_*f-c*s,i[9]=T*f-g*s,i[10]=m*f-b*s,i[11]=k*f-d*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],d=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]=d*f-k*s,i[8]=c*s+_*f,i[9]=g*s+T*f,i[10]=b*s+m*f,i[11]=d*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],d=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]=d*f+k*s,i[4]=_*f-c*s,i[5]=T*f-g*s,i[6]=m*f-b*s,i[7]=k*f-d*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,d,_,T,m,k,S,x,M,h,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],d=l[2],_=l[3],T=l[4],m=l[5],k=l[6],S=l[7],x=l[8],M=l[9],h=l[10],w=l[11],i[0]=g,i[1]=b,i[2]=d,i[3]=_,i[4]=T,i[5]=m,i[6]=k,i[7]=S,i[8]=x,i[9]=M,i[10]=h,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]=d*s+k*f+h*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(d,_){for(var T=[0,0,0,0],m=0;m<4;++m)for(var k=0;k<4;++k)T[k]+=d[4*m+k]*_[m];return T}function f(d,_,T,m,k){for(var S=s(m,s(T,s(_,[d[0],d[1],d[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(d,_){if(d.length===2){for(var T=0,m=0,k=0;k<2;++k)T+=Math.pow(_[k]-d[0][k],2),m+=Math.pow(_[k]-d[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(d.length===3){var S=[0,0];return u(d[0],d[1],d[2],_,S),l(d,S)}return[]}function g(d,_){for(var T=[0,0,0],m=0;m<d.length;++m)for(var k=d[m],S=_[m],x=0;x<3;++x)T[x]+=S*k[x];return T}function b(d,_,T,m,k,S){if(d.length===1)return[0,d[0].slice()];for(var x=new Array(d.length),M=0;M<d.length;++M)x[M]=f(d[M],T,m,k,S);for(var h=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,h=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:[h,g(d,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;
}`]),d=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:d,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),d=i(6760),_=i(7608),T=i(9618),m=i(6729),k=i(7765),S=i(1888),x=i(840),M=i(7626),h=x.meshShader,w=x.wireShader,y=x.pointShader,v=x.pickShader,A=x.pointPickShader,p=x.contourShader,R=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(G,q,Z,re,$,ie,j,te,ue,ee,ae,fe,we,Me,ke,ge,Ee,Le,se,X,K,ye,oe,he,pe,me,Se){this.gl=G,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=ie,this.pointPickShader=j,this.contourShader=te,this.trianglePositions=ue,this.triangleColors=ae,this.triangleNormals=we,this.triangleUVs=fe,this.triangleIds=ee,this.triangleVAO=Me,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=he,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=R,this._view=R,this._projection=R,this._resolution=[1,1]}var D=E.prototype;D.isOpaque=function(){return!this.hasAlpha},D.isTransparent=function(){return this.hasAlpha},D.pickSlots=1,D.setPickBase=function(G){this.pickId=G};function I(G,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]===G)return q[Z][1];if(q[Z][0]>G&&Z>0){var re=(q[Z][0]-G)/(q[Z][0]-q[Z-1][0]);return q[Z][1]*(1-re)+re*q[Z-1][1]}}return 1}function F(G,q){for(var Z=m({colormap:G,nshades:256,format:"rgba"}),re=new Uint8Array(256*4),$=0;$<256;++$){for(var ie=Z[$],j=0;j<3;++j)re[4*$+j]=ie[j];q?re[4*$+3]=255*I($/255,q):re[4*$+3]=255*ie[3]}return T(re,[256,256,4],[4,0,1])}function P(G){for(var q=G.length,Z=new Array(q),re=0;re<q;++re)Z[re]=G[re][2];return Z}D.highlight=function(G){if(!G||!this.contourEnable){this.contourCount=0;return}for(var q=k(this.cells,this.intensity,G.intensity),Z=q.cells,re=q.vertexIds,$=q.vertexWeights,ie=Z.length,j=S.mallocFloat32(6*ie),te=0,ue=0;ue<ie;++ue)for(var ee=Z[ue],ae=0;ae<2;++ae){var fe=ee[0];ee.length===2&&(fe=ee[ae]);for(var we=re[fe][0],Me=re[fe][1],ke=$[fe],ge=1-ke,Ee=this.positions[we],Le=this.positions[Me],se=0;se<3;++se)j[te++]=ke*Ee[se]+ge*Le[se]}this.contourCount=te/3|0,this.contourPositions.update(j.subarray(0,te)),S.free(j)},D.update=function(G){G=G||{};var q=this.gl;this.dirty=!0,"contourEnable"in G&&(this.contourEnable=G.contourEnable),"contourColor"in G&&(this.contourColor=G.contourColor),"lineWidth"in G&&(this.lineWidth=G.lineWidth),"lightPosition"in G&&(this.lightPosition=G.lightPosition),this.hasAlpha=!1,"opacity"in G&&(this.opacity=G.opacity,this.opacity<1&&(this.hasAlpha=!0)),"opacityscale"in G&&(this.opacityscale=G.opacityscale,this.hasAlpha=!0),"ambient"in G&&(this.ambientLight=G.ambient),"diffuse"in G&&(this.diffuseLight=G.diffuse),"specular"in G&&(this.specularLight=G.specular),"roughness"in G&&(this.roughness=G.roughness),"fresnel"in G&&(this.fresnel=G.fresnel),G.texture?(this.texture.dispose(),this.texture=g(q,G.texture)):G.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=q.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=q.LINEAR,this.texture.setPixels(F(G.colormap,this.opacityscale)),this.texture.generateMipmap());var Z=G.cells,re=G.positions;if(!(!re||!Z)){var $=[],ie=[],j=[],te=[],ue=[],ee=[],ae=[],fe=[],we=[],Me=[],ke=[],ge=[],Ee=[],Le=[];this.cells=Z,this.positions=re;var se=G.vertexNormals,X=G.cellNormals,K=G.vertexNormalsEpsilon===void 0?l:G.vertexNormalsEpsilon,ye=G.faceNormalsEpsilon===void 0?u:G.faceNormalsEpsilon;G.useFacetNormals&&!X&&(X=b.faceNormals(Z,re,ye)),!X&&!se&&(se=b.vertexNormals(Z,re,K));var oe=G.vertexColors,he=G.cellColors,pe=G.meshColor||[1,1,1,1],me=G.vertexUVs,Se=G.vertexIntensity,ve=G.cellUVs,de=G.cellIntensity,be=1/0,Ae=-1/0;if(!me&&!ve)if(Se)if(G.vertexIntensityBounds)be=+G.vertexIntensityBounds[0],Ae=+G.vertexIntensityBounds[1];else for(var Pe=0;Pe<Se.length;++Pe){var Ie=Se[Pe];be=Math.min(be,Ie),Ae=Math.max(Ae,Ie)}else if(de)if(G.cellIntensityBounds)be=+G.cellIntensityBounds[0],Ae=+G.cellIntensityBounds[1];else for(var Pe=0;Pe<de.length;++Pe){var Ie=de[Pe];be=Math.min(be,Ie),Ae=Math.max(Ae,Ie)}else for(var Pe=0;Pe<re.length;++Pe){var Ie=re[Pe][2];be=Math.min(be,Ie),Ae=Math.max(Ae,Ie)}Se?this.intensity=Se:de?this.intensity=de:this.intensity=P(re),this.pickVertex=!(de||he);var Ye=G.pointSizes,qe=G.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(var Pe=0;Pe<re.length;++Pe)for(var Ve=re[Pe],Oe=0;Oe<3;++Oe)isNaN(Ve[Oe])||!isFinite(Ve[Oe])||(this.bounds[0][Oe]=Math.min(this.bounds[0][Oe],Ve[Oe]),this.bounds[1][Oe]=Math.max(this.bounds[1][Oe],Ve[Oe]));var We=0,Ge=0,tr=0;e:for(var Pe=0;Pe<Z.length;++Pe){var nr=Z[Pe];switch(nr.length){case 1:for(var er=nr[0],Ve=re[er],Oe=0;Oe<3;++Oe)if(isNaN(Ve[Oe])||!isFinite(Ve[Oe]))continue e;Me.push(Ve[0],Ve[1],Ve[2]);var Qe;oe?Qe=oe[er]:he?Qe=he[Pe]:Qe=pe,this.opacityscale&&Se?ie.push(Qe[0],Qe[1],Qe[2],this.opacity*I((Se[er]-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[er]:Se?Ce=[(Se[er]-be)/(Ae-be),0]:ve?Ce=ve[Pe]:de?Ce=[(de[Pe]-be)/(Ae-be),0]:Ce=[(Ve[2]-be)/(Ae-be),0],ge.push(Ce[0],Ce[1]),Ye?Ee.push(Ye[er]):Ee.push(qe),Le.push(Pe),tr+=1;break;case 2:for(var Oe=0;Oe<2;++Oe)for(var er=nr[Oe],Ve=re[er],Fe=0;Fe<3;++Fe)if(isNaN(Ve[Fe])||!isFinite(Ve[Fe]))continue e;for(var Oe=0;Oe<2;++Oe){var er=nr[Oe],Ve=re[er];ee.push(Ve[0],Ve[1],Ve[2]);var Qe;oe?Qe=oe[er]:he?Qe=he[Pe]:Qe=pe,this.opacityscale&&Se?ie.push(Qe[0],Qe[1],Qe[2],this.opacity*I((Se[er]-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));var Ce;me?Ce=me[er]:Se?Ce=[(Se[er]-be)/(Ae-be),0]:ve?Ce=ve[Pe]:de?Ce=[(de[Pe]-be)/(Ae-be),0]:Ce=[(Ve[2]-be)/(Ae-be),0],fe.push(Ce[0],Ce[1]),we.push(Pe)}Ge+=1;break;case 3:for(var Oe=0;Oe<3;++Oe)for(var er=nr[Oe],Ve=re[er],Fe=0;Fe<3;++Fe)if(isNaN(Ve[Fe])||!isFinite(Ve[Fe]))continue e;for(var Oe=0;Oe<3;++Oe){var er=nr[2-Oe],Ve=re[er];$.push(Ve[0],Ve[1],Ve[2]);var Qe;oe?Qe=oe[er]:he?Qe=he[Pe]:Qe=pe,Qe?this.opacityscale&&Se?ie.push(Qe[0],Qe[1],Qe[2],this.opacity*I((Se[er]-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)):ie.push(.5,.5,.5,1);var Ce;me?Ce=me[er]:Se?Ce=[(Se[er]-be)/(Ae-be),0]:ve?Ce=ve[Pe]:de?Ce=[(de[Pe]-be)/(Ae-be),0]:Ce=[(Ve[2]-be)/(Ae-be),0],te.push(Ce[0],Ce[1]);var Ke;se?Ke=se[er]:Ke=X[Pe],j.push(Ke[0],Ke[1],Ke[2]),ue.push(Pe)}We+=1;break;default:break}}this.pointCount=tr,this.edgeCount=Ge,this.triangleCount=We,this.pointPositions.update(Me),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(ae),this.edgeUVs.update(fe),this.edgeIds.update(new Uint32Array(we)),this.trianglePositions.update($),this.triangleColors.update(ie),this.triangleUVs.update(te),this.triangleNormals.update(j),this.triangleIds.update(new Uint32Array(ue))}},D.drawTransparent=D.draw=function(G){G=G||{};for(var q=this.gl,Z=G.model||R,re=G.view||R,$=G.projection||R,ie=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],j=0;j<3;++j)ie[0][j]=Math.max(ie[0][j],this.clipBounds[0][j]),ie[1][j]=Math.min(ie[1][j],this.clipBounds[1][j]);var te={model:Z,view:re,projection:$,inverseModel:R.slice(),clipBounds:ie,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};te.inverseModel=_(te.inverseModel,te.model),q.disable(q.CULL_FACE),this.texture.bind(0);var ue=new Array(16);d(ue,te.view,te.model),d(ue,te.projection,ue),_(ue,ue);for(var j=0;j<3;++j)te.eyePosition[j]=ue[12+j]/ue[15];for(var ee=ue[15],j=0;j<3;++j)ee+=this.lightPosition[j]*ue[4*j+3];for(var j=0;j<3;++j){for(var ae=ue[12+j],fe=0;fe<3;++fe)ae+=ue[4*fe+j]*this.lightPosition[fe];te.lightPosition[j]=ae/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()}},D.drawPick=function(G){G=G||{};for(var q=this.gl,Z=G.model||R,re=G.view||R,$=G.projection||R,ie=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],j=0;j<3;++j)ie[0][j]=Math.max(ie[0][j],this.clipBounds[0][j]),ie[1][j]=Math.min(ie[1][j],this.clipBounds[1][j]);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:ie,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()}},D.pick=function(G){if(!G||G.id!==this.pickId)return null;for(var q=G.value[0]+256*G.value[1]+65536*G.value[2],Z=this.cells[q],re=this.positions,$=new Array(Z.length),ie=0;ie<Z.length;++ie)$[ie]=re[Z[ie]];var j=G.coord[0],te=G.coord[1];if(!this.pickVertex){var ue=this.positions[Z[0]],ee=this.positions[Z[1]],ae=this.positions[Z[2]],fe=[(ue[0]+ee[0]+ae[0])/3,(ue[1]+ee[1]+ae[1])/3,(ue[2]+ee[2]+ae[2])/3];return{_cellCenter:!0,position:[j,te],index:q,cell:Z,cellId:q,intensity:this.intensity[q],dataCoordinate:fe}}var we=M($,[j*this.pixelRatio,this._resolution[1]-te*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!we)return null;for(var Me=we[2],ke=0,ie=0;ie<Z.length;++ie)ke+=Me[ie]*this.intensity[Z[ie]];return{position:we[1],index:Z[we[0]],cell:Z,cellId:q,intensity:ke,dataCoordinate:this.positions[Z[we[0]]]}},D.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()};function L(G){var q=s(G,h.vertex,h.fragment);return q.attributes.position.location=0,q.attributes.color.location=2,q.attributes.uv.location=3,q.attributes.normal.location=4,q}function z(G){var q=s(G,w.vertex,w.fragment);return q.attributes.position.location=0,q.attributes.color.location=2,q.attributes.uv.location=3,q}function O(G){var q=s(G,y.vertex,y.fragment);return q.attributes.position.location=0,q.attributes.color.location=2,q.attributes.uv.location=3,q.attributes.pointSize.location=4,q}function B(G){var q=s(G,v.vertex,v.fragment);return q.attributes.position.location=0,q.attributes.id.location=1,q}function V(G){var q=s(G,A.vertex,A.fragment);return q.attributes.position.location=0,q.attributes.id.location=1,q.attributes.pointSize.location=4,q}function J(G){var q=s(G,p.vertex,p.fragment);return q.attributes.position.location=0,q}function Q(G,q){arguments.length===1&&(q=G,G=q.gl);var Z=G.getExtension("OES_standard_derivatives")||G.getExtension("MOZ_OES_standard_derivatives")||G.getExtension("WEBKIT_OES_standard_derivatives");if(!Z)throw new Error("derivatives not supported");var re=L(G),$=z(G),ie=O(G),j=B(G),te=V(G),ue=J(G),ee=g(G,T(new Uint8Array([255,255,255,255]),[1,1,4]));ee.generateMipmap(),ee.minFilter=G.LINEAR_MIPMAP_LINEAR,ee.magFilter=G.LINEAR;var ae=f(G),fe=f(G),we=f(G),Me=f(G),ke=f(G),ge=c(G,[{buffer:ae,type:G.FLOAT,size:3},{buffer:ke,type:G.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:fe,type:G.FLOAT,size:4},{buffer:we,type:G.FLOAT,size:2},{buffer:Me,type:G.FLOAT,size:3}]),Ee=f(G),Le=f(G),se=f(G),X=f(G),K=c(G,[{buffer:Ee,type:G.FLOAT,size:3},{buffer:X,type:G.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Le,type:G.FLOAT,size:4},{buffer:se,type:G.FLOAT,size:2}]),ye=f(G),oe=f(G),he=f(G),pe=f(G),me=f(G),Se=c(G,[{buffer:ye,type:G.FLOAT,size:3},{buffer:me,type:G.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:oe,type:G.FLOAT,size:4},{buffer:he,type:G.FLOAT,size:2},{buffer:pe,type:G.FLOAT,size:1}]),ve=f(G),de=c(G,[{buffer:ve,type:G.FLOAT,size:3}]),be=new E(G,ee,re,$,ie,j,te,ue,ae,ke,fe,we,Me,ge,Ee,X,Le,se,K,ye,me,oe,he,pe,Se,ve,de);return be.update(q),be}a.exports=Q},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(d,_){d=d||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=d.clientWidth,M=d.clientHeight,h={keyBindingMode:"rotate",enableWheel:!0,view:m,element:d,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,R=0;R<16;++R)A=A&&k[R]===p[R],k[R]=p[R];var E=d.clientWidth===x&&d.clientHeight===M;return x=d.clientWidth,M=d.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(h,{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}}),d.addEventListener("contextmenu",function(w){return w.preventDefault(),!1}),h._lastX=-1,h._lastY=-1,h._lastMods={shift:!1,control:!1,alt:!1,meta:!1},h.enableMouseListeners=function(){h.mouseListener=s(d,w),d.addEventListener("touchstart",function(y){var v=c(y.changedTouches[0],d);w(0,v[0],v[1],h._lastMods),w(1,v[0],v[1],h._lastMods)},g?{passive:!0}:!1),d.addEventListener("touchmove",function(y){var v=c(y.changedTouches[0],d);w(1,v[0],v[1],h._lastMods),y.preventDefault()},g?{passive:!1}:!1),d.addEventListener("touchend",function(y){w(0,h._lastX,h._lastY,h._lastMods)},g?{passive:!0}:!1);function w(y,v,A,p){var R=h.keyBindingMode;if(R!==!1){var E=R==="rotate",D=R==="pan",I=R==="zoom",F=!!p.control,P=!!p.alt,L=!!p.shift,z=!!(y&1),O=!!(y&2),B=!!(y&4),V=1/d.clientHeight,J=V*(v-h._lastX),Q=V*(A-h._lastY),G=h.flipX?1:-1,q=h.flipY?1:-1,Z=Math.PI*h.rotateSpeed,re=l();if(h._lastX!==-1&&h._lastY!==-1&&((E&&z&&!F&&!P&&!L||z&&!F&&!P&&L)&&m.rotate(re,G*Z*J,-q*Z*Q,0),(D&&z&&!F&&!P&&!L||O||z&&F&&!P&&!L)&&m.pan(re,-h.translateSpeed*J*S,h.translateSpeed*Q*S,0),I&&z&&!F&&!P&&!L||B||z&&!F&&P&&!L)){var $=-h.zoomSpeed*Q/window.innerHeight*(re-m.lastT())*100;m.pan(re,0,0,S*(Math.exp($)-1))}return h._lastX=v,h._lastY=A,h._lastMods=p,!0}}h.wheelListener=f(d,function(y,v){if(h.keyBindingMode!==!1&&h.enableWheel){var A=h.flipX?1:-1,p=h.flipY?1:-1,R=l();if(Math.abs(y)>Math.abs(v))m.rotate(R,0,0,-y*A*Math.PI*h.rotateSpeed/window.innerWidth);else if(!h._ortho){var E=-h.zoomSpeed*p*v/window.innerHeight*(R-m.lastT())/20;m.pan(R,0,0,S*(Math.exp(E)-1))}}},!0)},h.enableMouseListeners(),h}},799(a,o,i){var l=i(3236),u=i(9405),s=l([`precision mediump float;
#define GLSLIFY 1
attribute vec2 position;
varying vec2 uv;
void main() {
uv = position;
gl_Position = vec4(position, 0, 1);
}`]),f=l([`precision mediump float;
#define GLSLIFY 1
uniform sampler2D accumBuffer;
varying vec2 uv;
void main() {
vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));
gl_FragColor = min(vec4(1,1,1,1), accum);
}`]);a.exports=function(c){return u(c,s,f,null,[{name:"position",type:"vec2"}])}},4100(a,o,i){"use strict";var l=i(4437),u=i(3837),s=i(5445),f=i(4449),c=i(3589),g=i(2260),b=i(7169),d=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(R){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 h(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 R=v.gl;if(R||(v.glOptions&&(k=!!v.glOptions.preserveDrawingBuffer),R=x(A,v.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!R)throw new Error("webgl not supported");var E=v.bounds||[[-10,-10,-10],[10,10,10]],D=new S,I=g(R,R.drawingBufferWidth,R.drawingBufferHeight,{preferFloat:!k}),F=m(R),P=v.cameraObject&&v.cameraObject._ortho===!0||v.camera.projection&&v.camera.projection.type==="orthographic"||!1,L={eye:v.camera.eye||[2,0,0],center:v.camera.center||[0,0,0],up:v.camera.up||[0,1,0],zoomMin:v.camera.zoomMax||.1,zoomMax:v.camera.zoomMin||100,mode:v.camera.mode||"turntable",_ortho:P},z=v.axes||{},O=u(R,z);O.enable=!z.disable;var B=v.spikes||{},V=f(R,B),J=[],Q=[],G=[],q=[],Z=!0,j=!0,re=new Array(16),$=new Array(16),ie={view:null,projection:re,model:$,_ortho:!1},j=!0,te=[R.drawingBufferWidth,R.drawingBufferHeight],ue=v.cameraObject||l(A,L),ee={gl:R,contextLost:!1,pixelRatio:v.pixelRatio||1,canvas:A,selection:D,camera:ue,axes:O,axesPixels:null,spikes:V,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:h(v.autoResize),autoBounds:h(v.autoBounds),autoScale:!!v.autoScale,autoCenter:h(v.autoCenter),clipToBounds:h(v.clipToBounds),snapToData:!!v.snapToData,onselect:v.onselect||null,onrender:v.onrender||null,onclick:v.onclick||null,cameraParams:ie,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(X){this.aspect[0]=X.x,this.aspect[1]=X.y,this.aspect[2]=X.z,j=!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)}},ae=[R.drawingBufferWidth/ee.pixelRatio|0,R.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,he=Math.ceil(ye*ee.pixelRatio)|0;if(oe!==A.width||he!==A.height){A.width=oe,A.height=he;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)G[ye]=0;e:for(var ye=0;ye<X;++ye){var oe=J[ye],he=oe.pickSlots;if(!he){Q[ye]=-1;continue}for(var pe=0;pe<K;++pe)if(G[pe]+he<255){Q[ye]=pe,oe.setPickBase(G[pe]+1),G[pe]+=he;continue e}var me=c(R,te);Q[ye]=K,q.push(me),G.push(he),oe.setPickBase(1),K+=1}for(;K>0&&G[K-1]===0;)G.pop(),q.pop().dispose()}ee.update=function(X){ee._stopped||(X=X||{},Z=!0,j=!0)},ee.add=function(X){ee._stopped||(X.axes=O,J.push(X),Q.push(-1),Z=!0,j=!0,we())},ee.remove=function(X){if(!ee._stopped){var K=J.indexOf(X);K<0||(J.splice(K,1),Q.pop(),Z=!0,j=!0,we())}},ee.dispose=function(){if(!ee._stopped&&(ee._stopped=!0,window.removeEventListener("resize",fe),A.removeEventListener("webglcontextlost",Me),ee.mouseListener.enabled=!1,!ee.contextLost)){O.dispose(),V.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();F.dispose(),R=null,O=null,V=null,J=[]}},ee._mouseRotating=!1,ee._prevButtons=0,ee.enableMouseListeners=function(){ee.mouseListener=d(A,function(X,K,ye){if(!ee._stopped){var oe=q.length,he=J.length,pe=D.object;D.distance=1/0,D.mouse[0]=K,D.mouse[1]=ye,D.object=null,D.screen=null,D.dataCoordinate=D.dataPosition=null;var me=!1;if(X&&ee._prevButtons)ee._mouseRotating=!0;else{ee._mouseRotating&&(j=!0),ee._mouseRotating=!1;for(var Se=0;Se<oe;++Se){var ve=q[Se].query(K,ae[1]-ye-1,ee.pickRadius);if(ve){if(ve.distance>D.distance)continue;for(var de=0;de<he;++de){var be=J[de];if(Q[de]===Se){var Ae=be.pick(ve);Ae&&(D.buttons=X,D.screen=ve.coord,D.distance=ve.distance,D.object=be,D.index=Ae.distance,D.dataPosition=Ae.position,D.dataCoordinate=Ae.dataCoordinate,D.data=Ae,me=!0)}}}}}pe&&pe!==D.object&&(pe.highlight&&pe.highlight(null),Z=!0),D.object&&(D.object.highlight&&D.object.highlight(D.data),Z=!0),me=me||D.object!==pe,me&&ee.onselect&&ee.onselect(D),X&1&&!(ee._prevButtons&1)&&ee.onclick&&ee.onclick(D),ee._prevButtons=X}})};function Me(){if(ee.contextLost)return!0;R.isContextLost()&&(ee.contextLost=!0,ee.mouseListener.enabled=!1,ee.selection.object=null,ee.oncontextloss&&ee.oncontextloss())}A.addEventListener("webglcontextlost",Me);function ke(){if(!Me()){R.colorMask(!0,!0,!0,!0),R.depthMask(!0),R.disable(R.BLEND),R.enable(R.DEPTH_TEST),R.depthFunc(R.LEQUAL);for(var X=J.length,K=q.length,ye=0;ye<K;++ye){var oe=q[ye];oe.shape=ae,oe.begin();for(var he=0;he<X;++he)if(Q[he]===ye){var pe=J[he];pe.drawPick&&(pe.pixelRatio=1,pe.drawPick(ie))}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(!Me()){fe();var X=ee.camera.tick();ie.view=ee.camera.matrix,Z=Z||X,j=j||X,O.pixelRatio=ee.pixelRatio,V.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 he=0;he<K;++he){var pe=J[he];pe.pixelRatio=ee.pixelRatio,pe.axes=ee.axes,Z=Z||!!pe.dirty,j=j||!!pe.dirty;var me=pe.bounds;if(me)for(var Se=me[0],ve=me[1],de=0;de<3;++de)ye[de]=Math.min(ye[de],Se[de]),oe[de]=Math.max(oe[de],ve[de])}var be=ee.bounds;if(ee.autoBounds)for(var de=0;de<3;++de){if(oe[de]<ye[de])ye[de]=-1,oe[de]=1;else{ye[de]===oe[de]&&(ye[de]-=1,oe[de]+=1);var Ae=.05*(oe[de]-ye[de]);ye[de]=ye[de]-Ae,oe[de]=oe[de]+Ae}be[0][de]=ye[de],be[1][de]=oe[de]}for(var Pe=!1,de=0;de<3;++de)Pe=Pe||Ee[0][de]!==be[0][de]||Ee[1][de]!==be[1][de],Ee[0][de]=be[0][de],Ee[1][de]=be[1][de];if(j=j||Pe,Z=Z||Pe,!!Z){if(Pe){for(var Ie=[0,0,0],he=0;he<3;++he)Ie[he]=M((be[1][he]-be[0][he])/10);O.autoTicks?O.update({bounds:be,tickSpacing:Ie}):O.update({bounds:be})}var Ye=R.drawingBufferWidth,qe=R.drawingBufferHeight;te[0]=Ye,te[1]=qe,ae[0]=Math.max(Ye/ee.pixelRatio,1)|0,ae[1]=Math.max(qe/ee.pixelRatio,1)|0,y(ee,P);for(var he=0;he<K;++he){var pe=J[he];pe.axesBounds=be,ee.clipToBounds&&(pe.clipBounds=be)}D.object&&(ee.snapToData?V.position=D.dataCoordinate:V.position=D.dataPosition,V.bounds=be),j&&(j=!1,ke()),ee.axesPixels=s(ee.axes,ie,Ye,qe),ee.onrender&&ee.onrender(),R.bindFramebuffer(R.FRAMEBUFFER,null),R.viewport(0,0,Ye,qe),ee.clearRGBA(),R.depthMask(!0),R.colorMask(!0,!0,!0,!0),R.enable(R.DEPTH_TEST),R.depthFunc(R.LEQUAL),R.disable(R.BLEND),R.disable(R.CULL_FACE);var Ve=!1;O.enable&&(Ve=Ve||O.isTransparent(),O.draw(ie)),V.axes=O,D.object&&V.draw(ie),R.disable(R.CULL_FACE);for(var he=0;he<K;++he){var pe=J[he];pe.axes=O,pe.pixelRatio=ee.pixelRatio,pe.isOpaque&&pe.isOpaque()&&pe.draw(ie),pe.isTransparent&&pe.isTransparent()&&(Ve=!0)}if(Ve){I.shape=te,I.bind(),R.clear(R.DEPTH_BUFFER_BIT),R.colorMask(!1,!1,!1,!1),R.depthMask(!0),R.depthFunc(R.LESS),O.enable&&O.isTransparent()&&O.drawTransparent(ie);for(var he=0;he<K;++he){var pe=J[he];pe.isOpaque&&pe.isOpaque()&&pe.draw(ie)}R.enable(R.BLEND),R.blendEquation(R.FUNC_ADD),R.blendFunc(R.ONE,R.ONE_MINUS_SRC_ALPHA),R.colorMask(!0,!0,!0,!0),R.depthMask(!1),R.clearColor(0,0,0,0),R.clear(R.COLOR_BUFFER_BIT),O.isTransparent()&&O.drawTransparent(ie);for(var he=0;he<K;++he){var pe=J[he];pe.isTransparent&&pe.isTransparent()&&pe.drawTransparent(ie)}R.bindFramebuffer(R.FRAMEBUFFER,null),R.blendFunc(R.ONE,R.ONE_MINUS_SRC_ALPHA),R.disable(R.DEPTH_TEST),F.bind(),I.color[0].bind(0),F.uniforms.accumBuffer=0,b(R),R.disable(R.BLEND)}Z=!1;for(var he=0;he<K;++he)J[he].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,R=v.cameraParams,E=R.projection,D=R.model,I=v.gl.drawingBufferWidth,F=v.gl.drawingBufferHeight,P=v.zNear,L=v.zFar,z=v.fovy,O=I/F;A?(T(E,-O,O,-1,1,P,L),R._ortho=!0):(_(E,z,O,P,L),R._ortho=!1);for(var B=0;B<16;++B)D[B]=0;D[15]=1;for(var V=0,B=0;B<3;++B)V=Math.max(V,p[1][B]-p[0][B]);for(var B=0;B<3;++B)v.autoScale?D[5*B]=v.aspect[B]/(p[1][B]-p[0][B]):D[5*B]=1/V,v.autoCenter&&(D[12+B]=-D[5*B]*.5*(p[0][B]+p[1][B]))}},783(a){a.exports=o;function o(i,l,u,s){var f=l[0],c=l[1],g=l[2],b=l[3],d=u[0],_=u[1],T=u[2],m=u[3],k,S,x,M,h;return S=f*d+c*_+g*T+b*m,S<0&&(S=-S,d=-d,_=-_,T=-T,m=-m),1-S>1e-6?(k=Math.acos(S),x=Math.sin(k),M=Math.sin((1-s)*k)/x,h=Math.sin(s*k)/x):(M=1-s,h=s),i[0]=M*f+h*d,i[1]=M*c+h*_,i[2]=M*g+h*T,i[3]=M*b+h*m,i}},5964(a){"use strict";a.exports=function(o){return!o&&o!==0?"":o.toString()}},9366(a,o,i){"use strict";var l=i(4359);a.exports=s;var u={};function s(f,c,g){var b=[c.style,c.weight,c.variant,c.family].join("_"),d=u[b];if(d||(d=u[b]={}),f in d)return d[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 h=m.positions[k];for(S=0;S<2;++S)x[0][S]=Math.min(x[0][S],h[S]),x[1][S]=Math.max(x[1][S],h[S])}return d[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);
}`]),d=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],_={vertex:s,fragment:g,attributes:d},T={vertex:f,fragment:g,attributes:d},m={vertex:c,fragment:g,attributes:d},k={vertex:s,fragment:b,attributes:d},S={vertex:f,fragment:b,attributes:d},x={vertex:c,fragment:b,attributes:d};function M(h,w){var y=l(h,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(h){return M(h,_)},o.createOrtho=function(h){return M(h,T)},o.createProject=function(h){return M(h,m)},o.createPickPerspective=function(h){return M(h,k)},o.createPickOrtho=function(h){return M(h,S)},o.createPickProject=function(h){return M(h,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),d=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($,ie){var j=$[0],te=$[1],ue=$[2],ee=$[3];return $[0]=ie[0]*j+ie[4]*te+ie[8]*ue+ie[12]*ee,$[1]=ie[1]*j+ie[5]*te+ie[9]*ue+ie[13]*ee,$[2]=ie[2]*j+ie[6]*te+ie[10]*ue+ie[14]*ee,$[3]=ie[3]*j+ie[7]*te+ie[11]*ue+ie[15]*ee,$}function M($,ie,j,te){return x(te,te,j),x(te,te,ie),x(te,te,$)}function h($,ie){this.index=$,this.dataCoordinate=this.position=ie}function w($){return $===!0||$>1?1:$}function y($,ie,j,te,ue,ee,ae,fe,we,Me,ke,ge){this.gl=$,this.pixelRatio=1,this.shader=ie,this.orthoShader=j,this.projectShader=te,this.pointBuffer=ue,this.colorBuffer=ee,this.glyphBuffer=ae,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=Me,this.pickOrthoShader=ke,this.pickProjectShader=ge,this.points=[],this._selectResult=new h(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var v=y.prototype;v.pickSlots=1,v.setPickBase=function($){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],R=[0,0,0],E=[0,0,0,1],D=[0,0,0,1],I=_.slice(),F=[0,0,0],P=[[0,0,0],[0,0,0]];function L($){return $[0]=$[1]=$[2]=0,$}function z($,ie){return $[0]=ie[0],$[1]=ie[1],$[2]=ie[2],$[3]=1,$}function O($,ie,j,te){return $[0]=ie[0],$[1]=ie[1],$[2]=ie[2],$[j]=te,$}function B($){for(var ie=P,j=0;j<2;++j)for(var te=0;te<3;++te)ie[j][te]=Math.max(Math.min($[j][te],1e8),-1e8);return ie}function V($,ie,j,te){var ue=ie.axesProject,ee=ie.gl,ae=$.uniforms,fe=j.model||_,we=j.view||_,Me=j.projection||_,ke=ie.axesBounds,ge=B(ie.clipBounds),Ee;ie.axes&&ie.axes.lastCubeProps?Ee=ie.axes.lastCubeProps.axis:Ee=[1,1,1],A[0]=2/ee.drawingBufferWidth,A[1]=2/ee.drawingBufferHeight,$.bind(),ae.view=we,ae.projection=Me,ae.screenSize=A,ae.highlightId=ie.highlightId,ae.highlightScale=ie.highlightScale,ae.clipBounds=ge,ae.pickGroup=ie.pickId/255,ae.pixelRatio=te;for(var Le=0;Le<3;++Le)if(ue[Le]){ae.scale=ie.projectScale[Le],ae.opacity=ie.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),ae.model=se;var K=(Le+1)%3,ye=(Le+2)%3,oe=L(p),he=L(R);oe[K]=1,he[ye]=1;var pe=M(Me,we,fe,z(E,oe)),me=M(Me,we,fe,z(D,he));if(Math.abs(pe[1])>Math.abs(me[1])){var Se=pe;pe=me,me=Se,Se=oe,oe=he,he=Se;var ve=K;K=ye,ye=ve}pe[0]<0&&(oe[K]=-1),me[1]>0&&(he[ye]=-1);for(var de=0,be=0,X=0;X<4;++X)de+=Math.pow(fe[4*K+X],2),be+=Math.pow(fe[4*ye+X],2);oe[K]/=Math.sqrt(de),he[ye]/=Math.sqrt(be),ae.axes[0]=oe,ae.axes[1]=he,ae.fragClipBounds[0]=O(F,ge[0],Le,-1e8),ae.fragClipBounds[1]=O(F,ge[1],Le,1e8),ie.vao.bind(),ie.vao.draw(ee.TRIANGLES,ie.vertexCount),ie.lineWidth>0&&(ee.lineWidth(ie.lineWidth*te),ie.vao.draw(ee.LINES,ie.lineVertexCount,ie.vertexCount)),ie.vao.unbind()}}var J=[-1e8,-1e8,-1e8],Q=[1e8,1e8,1e8],G=[J,Q];function q($,ie,j,te,ue,ee,ae){var fe=j.gl;if((ee===j.projectHasAlpha||ae)&&V(ie,j,te,ue),ee===j.hasAlpha||ae){$.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=j.highlightId,we.highlightScale=j.highlightScale,we.fragClipBounds=G,we.clipBounds=j.axes.bounds,we.opacity=j.opacity,we.pickGroup=j.pickId/255,we.pixelRatio=ue,j.vao.bind(),j.vao.draw(fe.TRIANGLES,j.vertexCount),j.lineWidth>0&&(fe.lineWidth(j.lineWidth*ue),j.vao.draw(fe.LINES,j.lineVertexCount,j.vertexCount)),j.vao.unbind()}}v.draw=function($){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,$,this.pixelRatio,!1,!1)},v.drawTransparent=function($){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,$,this.pixelRatio,!0,!1)},v.drawPick=function($){var ie=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(ie,this.pickProjectShader,this,$,1,!0,!0)},v.pick=function($){if(!$||$.id!==this.pickId)return null;var ie=$.value[2]+($.value[1]<<8)+($.value[0]<<16);if(ie>=this.pointCount||ie<0)return null;var j=this.points[ie],te=this._selectResult;te.index=ie;for(var ue=0;ue<3;++ue)te.position[ue]=te.dataCoordinate[ue]=j[ue];return te},v.highlight=function($){if(!$)this.highlightId=[1,1,1,1];else{var ie=$.index,j=ie&255,te=ie>>8&255,ue=ie>>16&255;this.highlightId=[j/255,te/255,ue/255,0]}};function Z($,ie,j,te){var ue;S($)?ie<$.length?ue=$[ie]:ue=void 0:ue=$,ue=d(ue);var ee=!0;l(ue)&&(ue="\u25BC",ee=!1),j||(j={});var ae=j.family;S(ae)&&(ae=ae[ie]),ae||(ae="normal");var fe=j.weight;S(fe)&&(fe=fe[ie]),fe||(fe="normal");var we=j.style;S(we)&&(we=we[ie]),we||(we="normal");var Me=j.variant;S(Me)&&(Me=Me[ie]),Me||(Me="normal");var ke=b(ue,{family:ae,weight:fe,style:we,variant:Me},te),ke=b(ue,j,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 ie=!!$.project;this.axesProject=[ie,ie,ie]}if("projectScale"in $)if(S($.projectScale))this.projectScale=$.projectScale.slice();else{var j=+$.projectScale;this.projectScale=[j,j,j]}if(this.projectHasAlpha=!1,"projectOpacity"in $){if(S($.projectOpacity))this.projectOpacity=$.projectOpacity.slice();else{var j=+$.projectOpacity;this.projectOpacity=[j,j,j]}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"},ae=$.alignment||[0,0],fe,we;if(ae.length===2)fe=ae[0],we=ae[1];else{fe=[],we=[];for(var te=0;te<ae.length;++te)fe[te]=ae[te][0],we[te]=ae[te][1]}var Me=[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,he=0;if(ue.length){he=ue.length;e:for(var te=0;te<he;++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,de=Se.lines,be=Se.bounds;ye+=ve.cells.length*3,oe+=de.edges.length*2}}var Ae=ye+oe,Pe=f.mallocFloat(3*Ae),Ie=f.mallocFloat(4*Ae),Ye=f.mallocFloat(2*Ae),qe=f.mallocUint32(Ae);if(Ae>0){var Ve=0,Oe=ye,We=[0,0,0,1],Ge=[0,0,0,1],tr=S(Ee)&&S(Ee[0]),nr=S(X)&&S(X[0]);e:for(var te=0;te<he;++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]),Me[me]=Math.min(Me[me],pe[me])}var Se=Z(ge,te,ee,this.pixelRatio),ve=Se.mesh,de=Se.lines,be=Se.bounds,er=Se.visible;if(!er)We=[1,1,1,0];else if(S(Ee)){var Qe;if(tr?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(!er)Ge=[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)Ge[me]=Qe[me];Ge[me]=1}else if(Qe.length===4){for(var me=0;me<4;++me)Ge[me]=Qe[me];!this.hasAlpha&&Qe[3]<1&&(this.hasAlpha=!0)}}else Ge[0]=Ge[1]=Ge[2]=0,Ge[3]=1;var Ce=.5;er?S(Le)?te<Le.length?Ce=+Le[te]:Ce=12:Le?Ce=+Le:this.useOrtho&&(Ce=12):Ce=0;var Fe=0;S(se)?te<se.length?Fe=+se[te]:Fe=0:se&&(Fe=+se);for(var Ke=Math.cos(Fe),je=Math.sin(Fe),pe=ue[te],me=0;me<3;++me)ke[me]=Math.max(ke[me],pe[me]),Me[me]=Math.min(Me[me],pe[me]);var wr=fe,Jr=we,wr=0;S(fe)?te<fe.length?wr=fe[te]:wr=0:fe&&(wr=fe);var Jr=0;S(we)?te<we.length?Jr=we[te]:Jr=0:we&&(Jr=we),wr*=wr>0?1-be[0][0]:wr<0?1+be[1][0]:1,Jr*=Jr>0?1-be[0][1]:Jr<0?1+be[1][1]:1;for(var Tr=[wr,Jr],ut=ve.cells||[],zr=ve.positions||[],me=0;me<ut.length;++me)for(var Pr=ut[me],rt=0;rt<3;++rt){for(var Ar=0;Ar<3;++Ar)Pe[3*Ve+Ar]=pe[Ar];for(var Ar=0;Ar<4;++Ar)Ie[4*Ve+Ar]=We[Ar];qe[Ve]=K;var Ur=zr[Pr[rt]];Ye[2*Ve]=Ce*(Ke*Ur[0]-je*Ur[1]+Tr[0]),Ye[2*Ve+1]=Ce*(je*Ur[0]+Ke*Ur[1]+Tr[1]),Ve+=1}for(var ut=de.edges,zr=de.positions,me=0;me<ut.length;++me)for(var Pr=ut[me],rt=0;rt<2;++rt){for(var Ar=0;Ar<3;++Ar)Pe[3*Oe+Ar]=pe[Ar];for(var Ar=0;Ar<4;++Ar)Ie[4*Oe+Ar]=Ge[Ar];qe[Oe]=K;var Ur=zr[Pr[rt]];Ye[2*Oe]=Ce*(Ke*Ur[0]-je*Ur[1]+Tr[0]),Ye[2*Oe+1]=Ce*(je*Ur[0]+Ke*Ur[1]+Tr[1]),Oe+=1}}}this.bounds=[Me,ke],this.points=ue,this.pointCount=ue.length,this.vertexCount=ye,this.lineVertexCount=oe,this.pointBuffer.update(Pe),this.colorBuffer.update(Ie),this.glyphBuffer.update(Ye),this.idBuffer.update(qe),f.free(Pe),f.free(Ie),f.free(Ye),f.free(qe)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()};function re($){var ie=$.gl,j=g.createPerspective(ie),te=g.createOrtho(ie),ue=g.createProject(ie),ee=g.createPickPerspective(ie),ae=g.createPickOrtho(ie),fe=g.createPickProject(ie),we=u(ie),Me=u(ie),ke=u(ie),ge=u(ie),Ee=s(ie,[{buffer:we,size:3,type:ie.FLOAT},{buffer:Me,size:4,type:ie.FLOAT},{buffer:ke,size:2,type:ie.FLOAT},{buffer:ge,size:4,type:ie.UNSIGNED_BYTE,normalized:!0}]),Le=new y(ie,j,te,ue,we,Me,ke,ge,Ee,ee,ae,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,h=T.shape[0],w=T.shape[1],y=0;y<h;y++)for(var v=0;v<w;v++){var A=T.get(y,v,0),p=T.get(y,v,1),R=T.get(y,v,2),E=T.get(y,v,3);if(A<255||p<255||R<255||E<255){var D=m-y,I=k-v,F=D*D+I*I;F<S&&(S=F,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 d=b.prototype;Object.defineProperty(d,"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}}}),d.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))},d.end=function(){var T=this.gl;T&&(T.bindFramebuffer(T.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},d.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,h=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<=h)return null;var y=[M-x,w-h],v=s(this.buffer,[y[0],y[1],4],[4,S[0]*4,1],4*(x+S[0]*h)),A=c(v.hi(y[0],y[1],1),k,k),p=A[0],R=A[1];if(p<0||Math.pow(this.radius,2)<A[2])return null;var E=v.get(p,R,0),D=v.get(p,R,1),I=v.get(p,R,2),F=v.get(p,R,3);return new g(p+x|0,R+h|0,E,[D,I,F],Math.sqrt(A[2]))},d.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),h=u.mallocUint8(k*S*4);return new b(T,M,h)}},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 d=b.prototype;d.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)},d.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}d.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 h=this,w=h.gl,y=h._vref;h._vref=f.shader(w,w.VERTEX_SHADER,m),y&&y.dispose(),h.vertShader=h._vref.shader;var v=this._fref;if(h._fref=f.shader(w,w.FRAGMENT_SHADER,k),v&&v.dispose(),h.fragShader=h._fref.shader,!S||!x){var A=w.createProgram();if(w.attachShader(A,h.fragShader),w.attachShader(A,h.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 R=[],E=[],D=[],I;for(I=0;I<x.length;++I){var F=x[I];if(F.type.indexOf("mat")>=0){for(var P=F.type.charAt(F.type.length-1)|0,L=new Array(P),z=0;z<P;++z)L[z]=D.length,E.push(F.name+"["+z+"]"),typeof F.location=="number"?D.push(F.location+z):Array.isArray(F.location)&&F.location.length===P&&typeof F.location[z]=="number"?D.push(F.location[z]|0):D.push(-1);R.push({name:F.name,type:F.type,locations:L})}else R.push({name:F.name,type:F.type,locations:[D.length]}),E.push(F.name),typeof F.location=="number"?D.push(F.location|0):D.push(-1)}var O=0;for(I=0;I<D.length;++I)if(D[I]<0){for(;D.indexOf(O)>=0;)O+=1;D[I]=O}var B=new Array(S.length);function V(){h.program=f.program(w,h._vref,h._fref,E,D);for(var J=0;J<S.length;++J)B[J]=w.getUniformLocation(h.program,S[J].name)}V(),h._relink=V,h.types={uniforms:s(S),attributes:s(x)},h.attributes=u(w,h,R,D),Object.defineProperty(h,"uniforms",l(w,h,S,B))};function T(m,k,S,x,M){var h=new b(m);return h.update(k,S,x,M),h}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(d,_,T,m,k,S){this._gl=d,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(d,_,T,m){return this._constFunc(this._locations[this._index],d,_,T,m)},Object.defineProperty(s,"location",{get:function(){return this._locations[this._index]},set:function(d){return d!==this._locations[this._index]&&(this._locations[this._index]=d|0,this._wrapper.program=null),d|0}});var f=[function(d,_,T){return T.length===void 0?d.vertexAttrib1f(_,T):d.vertexAttrib1fv(_,T)},function(d,_,T,m){return T.length===void 0?d.vertexAttrib2f(_,T,m):d.vertexAttrib2fv(_,T)},function(d,_,T,m,k){return T.length===void 0?d.vertexAttrib3f(_,T,m,k):d.vertexAttrib3fv(_,T)},function(d,_,T,m,k,S){return T.length===void 0?d.vertexAttrib4f(_,T,m,k,S):d.vertexAttrib4fv(_,T)}];function c(d,_,T,m,k,S,x){var M=f[k],h=new u(d,_,T,m,k,M);Object.defineProperty(S,x,{set:function(w){return d.disableVertexAttribArray(m[T]),M(d,m[T],w),w},get:function(){return h},enumerable:!0})}function g(d,_,T,m,k,S,x){for(var M=new Array(k),h=new Array(k),w=0;w<k;++w)c(d,_,T[w],m,k,M,w),h[w]=M[w];Object.defineProperty(M,"location",{set:function(A){if(Array.isArray(A))for(var p=0;p<k;++p)h[p].location=A[p];else for(var p=0;p<k;++p)h[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,R,E){A=A||d.FLOAT,p=!!p,R=R||k*k,E=E||0;for(var D=0;D<k;++D){var I=m[T[D]];d.vertexAttribPointer(I,k,A,p,R,E+D*k),d.enableVertexAttribArray(I)}};var y=new Array(k),v=d["vertexAttrib"+k+"fv"];Object.defineProperty(S,x,{set:function(A){for(var p=0;p<k;++p){var R=m[T[p]];if(d.disableVertexAttribArray(R),Array.isArray(A[0]))v.call(d,R,A[p]);else{for(var E=0;E<k;++E)y[E]=A[k*p+E];v.call(d,R,y)}}return A},get:function(){return M},enumerable:!0})}function b(d,_,T,m){for(var k={},S=0,x=T.length;S<x;++S){var M=T[S],h=M.name,w=M.type,y=M.locations;switch(w){case"bool":case"int":case"float":c(d,_,y[0],m,1,k,h);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 "+h+": "+w);c(d,_,y[0],m,v,k,h)}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 "+h+": "+w);g(d,_,y,m,v,k,h)}else throw new l("","Unknown data type for attribute "+h+": "+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 d=new Array(g),_=0;_<g;++_)d[_]=b;return d}function c(g,b,d,_){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 R=A[p],E=R[0],D=R[1];if(_[D]){var I=v;if(typeof E=="string"&&(E.indexOf(".")===0||E.indexOf("[")===0)){var F=E;if(E.indexOf(".")===0&&(F=E.slice(1)),F.indexOf("]")===F.length-1){var P=F.indexOf("["),L=F.slice(0,P),z=F.slice(P+1,F.length-1);I=L?v[L][z]:v[z]}else I=v[F]}var O=d[D].type,B;switch(O){case"bool":case"int":case"sampler2D":case"samplerCube":g.uniform1i(_[D],I);break;case"float":g.uniform1f(_[D],I);break;default:var V=O.indexOf("vec");if(0<=V&&V<=1&&O.length===4+V){if(B=O.charCodeAt(O.length-1)-48,B<2||B>4)throw new u("","Invalid data type");switch(O.charAt(0)){case"b":case"i":g["uniform"+B+"iv"](_[D],I);break;case"v":g["uniform"+B+"fv"](_[D],I);break;default:throw new u("","Unrecognized data type for vector "+name+": "+O)}}else if(O.indexOf("mat")===0&&O.length===4){if(B=O.charCodeAt(O.length-1)-48,B<2||B>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+O);g["uniformMatrix"+B+"fv"](_[D],!1,I);break}else throw new u("","Unknown uniform data type for "+name+": "+O)}}}}}function k(w,y){if(typeof y!="object")return[[w,y]];var v=[];for(var A in y){var p=y[A],R=w;parseInt(A)+""===A?R+="["+A+"]":R+="."+A,typeof p=="object"?v.push.apply(v,k(R,p)):v.push([R,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(d[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 h=l(d,!0);return{get:s(M(h)),set:m(h),enumerable:!0,configurable:!0}}},216(a){"use strict";a.exports=o;function o(i,l){for(var u={},s=0;s<i.length;++s)for(var f=i[s].name,c=f.split("."),g=u,b=0;b<c.length;++b){var d=c[b].split("[");if(d.length>1){d[0]in g||(g[d[0]]=[]),g=g[d[0]];for(var _=1;_<d.length;++_){var T=parseInt(d[_]);_<d.length-1||b<c.length-1?(T in g||(_<d.length-1?g[T]=[]:g[T]={}),g=g[T]):l?g[T]=s:g[T]=i[s].type}}else b<c.length-1?(d[0]in g||(g[d[0]]={}),g=g[d[0]]):l?g[d[0]]=s:g[d[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 d=0;d<b.length;++d){var _=b[d];l[c[_]]=i[_]}}return l[g]}function s(c,g){for(var b=c.getProgramParameter(g,c.ACTIVE_UNIFORMS),d=[],_=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)d.push({name:T.name.replace("[0]","["+k+"]"),type:m});else d.push({name:T.name,type:m})}}return d}function f(c,g){for(var b=c.getProgramParameter(g,c.ACTIVE_ATTRIBUTES),d=[],_=0;_<b;++_){var T=c.getActiveAttrib(g,_);T&&d.push({name:T.name,type:u(c,T.type)})}return d}},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,h,w,y,v,A){this.id=x,this.src=M,this.type=h,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,h=this.programs,w=0,y=h.length;w<y;++w){var v=x.programs[h[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 d=b.prototype;function _(x,M,h){var w=x.createShader(M);if(x.shaderSource(w,h),x.compileShader(w),!x.getShaderParameter(w,x.COMPILE_STATUS)){var y=x.getShaderInfoLog(w);try{var v=u(y,h,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}d.getShaderReference=function(x,M){var h=this.gl,w=this.shaders[x===h.FRAGMENT_SHADER|0],y=w[M];if(!y||!h.isShader(y.shader)){var v=_(h,x,M);y=w[M]=new g(c++,M,x,v,[],1,this)}else y.count+=1;return y};function T(x,M,h,w,y){var v=x.createProgram();x.attachShader(v,M),x.attachShader(v,h);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}d.getProgram=function(x,M,h,w){var y=[x.id,M.id,h.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,h,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,h){return m(x).getShaderReference(M,h)}function S(x,M,h,w,y){return m(x).getProgram(M,h,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],d=[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,h=m.view||f,w=m.projection||f,y;this.axes&&(y=this.axes.lastCubeProps.axis);for(var v=b,A=d,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=h,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,R,E,D){var I=[v,A,p,0,0,0,1];I[R+3]=1,I[R]=E,S.push.apply(S,I),I[6]=-1,S.push.apply(S,I),I[R]=D,S.push.apply(S,I),S.push.apply(S,I),I[6]=1,S.push.apply(S,I),I[R]=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),h=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,h,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,h,w){for(var y=x.points,v=x.velocities,A=x.divergences,p=[],R=[],E=[],D=[],I=[],F=[],P=0,L=0,z=u.create(),O=u.create(),B=8,V=0;V<y.length;V++){var J=y[V],Q=v[V],G=A[V];M===0&&(G=h*.05),L=l.length(Q)/w,z=u.create(),l.copy(z,Q),z[3]=G;for(var q=0;q<B;q++)I[q]=[J[0],J[1],J[2],q];if(D.length>0)for(var q=0;q<B;q++){var Z=(q+1)%B;p.push(D[q],I[q],I[Z],I[Z],D[Z],D[q]),E.push(O,z,z,z,O,O),F.push(P,L,L,L,P,P);var re=p.length;R.push([re-6,re-5,re-4],[re-3,re-2,re-1])}var $=D;D=I,I=$;var ie=O;O=z,z=ie;var j=P;P=L,L=j}return{positions:p,cells:R,vectors:E,vertexIntensity:F}},c=function(x,M,h,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 R=x.map(function(V){return f(V,h,w,y)}),E=[],D=[],I=[],F=[],v=0;v<R.length;v++){var P=R[v],L=E.length;E=E.concat(P.positions),I=I.concat(P.vectors),F=F.concat(P.vertexIntensity);for(var p=0;p<P.cells.length;p++){var z=P.cells[p],O=[];D.push(O);for(var B=0;B<z.length;B++)O.push(z[B]+L)}}return{positions:E,cells:D,vectors:I,vertexIntensity:F,colormap:M}},g=function(x,M){var h=x.length,w;for(w=0;w<h;w++){var y=x[w];if(y===M)return w;if(y>M)return w-1}return w},b=function(x,M,h){return x<M?M:x>h?h:x},d=function(x,M,h){var w=M.vectors,y=M.meshgrid,v=x[0],A=x[1],p=x[2],R=y[0].length,E=y[1].length,D=y[2].length,I=g(y[0],v),F=g(y[1],A),P=g(y[2],p),L=I+1,z=F+1,O=P+1;if(I=b(I,0,R-1),L=b(L,0,R-1),F=b(F,0,E-1),z=b(z,0,E-1),P=b(P,0,D-1),O=b(O,0,D-1),I<0||F<0||P<0||L>R-1||z>E-1||O>D-1)return l.create();var B=y[0][I],V=y[0][L],J=y[1][F],Q=y[1][z],G=y[2][P],q=y[2][O],Z=(v-B)/(V-B),re=(A-J)/(Q-J),$=(p-G)/(q-G);isFinite(Z)||(Z=.5),isFinite(re)||(re=.5),isFinite($)||($=.5);var ie,j,te,ue,ee,ae;switch(h.reversedX&&(I=R-1-I,L=R-1-L),h.reversedY&&(F=E-1-F,z=E-1-z),h.reversedZ&&(P=D-1-P,O=D-1-O),h.filled){case 5:ee=P,ae=O,te=F*D,ue=z*D,ie=I*D*E,j=L*D*E;break;case 4:ee=P,ae=O,ie=I*D,j=L*D,te=F*D*R,ue=z*D*R;break;case 3:te=F,ue=z,ee=P*E,ae=O*E,ie=I*E*D,j=L*E*D;break;case 2:te=F,ue=z,ie=I*E,j=L*E,ee=P*E*R,ae=O*E*R;break;case 1:ie=I,j=L,ee=P*R,ae=O*R,te=F*R*D,ue=z*R*D;break;default:ie=I,j=L,te=F*R,ue=z*R,ee=P*R*E,ae=O*R*E;break}var fe=w[ie+te+ee],we=w[ie+te+ae],Me=w[ie+ue+ee],ke=w[ie+ue+ae],ge=w[j+te+ee],Ee=w[j+te+ae],Le=w[j+ue+ee],se=w[j+ue+ae],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,Me,Le,Z),l.lerp(oe,ke,se,Z);var he=l.create(),pe=l.create();l.lerp(he,X,ye,re),l.lerp(pe,K,oe,re);var me=l.create();return l.lerp(me,he,pe,$),me},_=function(x,M){var h=M[0],w=M[1],y=M[2];return x[0]=h<0?-h:h,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 h=x.length,w=1;w<h;w++){var y=Math.abs(x[w]-x[w-1]);y<M&&(M=y)}return M},m=function(x){for(var M=[],h=[],w=[],y={},v={},A={},p=x.length,R=0;R<p;R++){var E=x[R],D=E[0],I=E[1],F=E[2];y[D]||(M.push(D),y[D]=!0),v[I]||(h.push(I),v[I]=!0),A[F]||(w.push(F),A[F]=!0)}var P=T(M),L=T(h),z=T(w),O=Math.min(P,L,z);return isFinite(O)?O:1};a.exports=function(x,M){var h=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 R=x.getVelocity||function(Ee){return d(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=R(se);l.subtract(K,K,Le),l.scale(K,K,1/X),l.add(se,Ee,[0,X,0]);var ye=R(se);l.subtract(ye,ye,Le),l.scale(ye,ye,1/X),l.add(se,Ee,[0,0,X]);var oe=R(se);return l.subtract(oe,oe,Le),l.scale(oe,oe,1/X),l.add(se,K,ye),l.add(se,se,oe),se},D=[],I=M[0][0],F=M[0][1],P=M[0][2],L=M[1][0],z=M[1][1],O=M[1][2],B=function(Ee){var Le=Ee[0],se=Ee[1],X=Ee[2];return!(Le<I||Le>L||se<F||se>z||X<P||X>O)},V=l.distance(M[0],M[1]),J=10*V/w,Q=J*J,G=1,q=0,Z=h.length;Z>1&&(G=m(h));for(var re=0;re<Z;re++){var $=l.create();l.copy($,h[re]);var ie=[$],j=[],te=R($),ue=$;j.push(te);var ee=[],ae=E($,te),fe=l.length(ae);isFinite(fe)&&fe>q&&(q=fe),ee.push(fe),D.push({points:ie,velocities:j,divergences:ee});for(var we=0;we<w*100&&ie.length<w&&B($);){we++;var Me=l.clone(te),ke=l.squaredLength(Me);if(ke===0)break;if(ke>Q&&l.scale(Me,Me,J/Math.sqrt(ke)),l.add(Me,Me,$),te=R(Me),l.squaredDistance(ue,Me)-Q>-1e-4*Q){ie.push(Me),ue=Me,j.push(te);var ae=E(Me,te),fe=l.length(ae);isFinite(fe)&&fe>q&&(q=fe),ee.push(fe)}$=Me}}var ge=c(D,x.colormap,q,G);return v?ge.tubeScale=v:(q===0&&(q=1),ge.tubeScale=y*.5*G/q),ge};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(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 d=l(b,s,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return d.attributes.uv.location=0,d.attributes.f.location=1,d.attributes.normal.location=2,d},o.createPickShader=function(b){var d=l(b,s,g,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return d.attributes.uv.location=0,d.attributes.f.location=1,d.attributes.normal.location=2,d},o.createContourShader=function(b){var d=l(b,c,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return d.attributes.uv.location=0,d.attributes.f.location=1,d},o.createPickContourShader=function(b){var d=l(b,c,g,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return d.attributes.uv.location=0,d.attributes.f.location=1,d}},9499(a,o,i){"use strict";a.exports=ie;var l=i(8828),u=i(2762),s=i(8116),f=i(7766),c=i(1888),g=i(6729),b=i(5298),d=i(9994),_=i(9618),T=i(3711),m=i(6760),k=i(7608),S=i(2478),x=i(6199),M=i(990),h=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],R=[[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 j=0;j<3;++j){var te=E[j],ue=(j+1)%3,ee=(j+2)%3;te[ue+0]=1,te[ee+3]=1,te[j+6]=1}})();function D(j,te,ue,ee,ae){this.position=j,this.index=te,this.uv=ue,this.level=ee,this.dataCoordinate=ae}var I=256;function F(j,te,ue,ee,ae,fe,we,Me,ke,ge,Ee,Le,se,X,K){this.gl=j,this.shape=te,this.bounds=ue,this.objectOffset=K,this.intensityBounds=[],this._shader=ee,this._pickShader=ae,this._coordinateBuffer=fe,this._vao=we,this._colorMap=Me,this._contourShader=ke,this._contourPickShader=ge,this._contourBuffer=Ee,this._contourVAO=Le,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new D([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 P=F.prototype;P.genColormap=function(j,te){var ue=!1,ee=d([g({colormap:j,nshades:I,format:"rgba"}).map(function(ae,fe){var we=te?L(fe/255,te):ae[3];return we<1&&(ue=!0),[ae[0],ae[1],ae[2],255*we]})]);return b.divseq(ee,255),this.hasAlphaScale=ue,ee},P.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},P.isOpaque=function(){return!this.isTransparent()},P.pickSlots=1,P.setPickBase=function(j){this.pickId=j};function L(j,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]===j)return te[ue][1];if(te[ue][0]>j&&ue>0){var ee=(te[ue][0]-j)/(te[ue][0]-te[ue-1][0]);return te[ue][1]*(1-ee)+ee*te[ue-1][1]}}return 1}var z=[0,0,0],O={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 B(j,te){var ue,ee,ae,fe=te.axes&&te.axes.lastCubeProps.axis||z,we=te.showSurface,Me=te.showContour;for(ue=0;ue<3;++ue)for(we=we||te.surfaceProject[ue],ee=0;ee<3;++ee)Me=Me||te.contourProject[ue][ee];for(ue=0;ue<3;++ue){var ke=O.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,j.model,ke);var ge=O.clipBounds[ue];for(ae=0;ae<2;++ae)for(ee=0;ee<3;++ee)ge[ae][ee]=j.clipBounds[ae][ee];ge[0][ue]=-1e8,ge[1][ue]=1e8}return O.showSurface=we,O.showContour=Me,O}var V={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(),Q=[1,0,0,0,1,0,0,0,1];function G(j,te){j=j||{};var ue=this.gl;ue.disable(ue.CULL_FACE),this._colorMap.bind(0);var ee=V;ee.model=j.model||p,ee.view=j.view||p,ee.projection=j.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 ae=0;ae<2;++ae)for(var fe=ee.clipBounds[ae],we=0;we<3;++we)fe[we]=Math.min(Math.max(this.clipBounds[ae][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=Q,ee.vertexColor=this.vertexColor;var Me=J;for(m(Me,ee.view,ee.model),m(Me,ee.projection,Me),k(Me,Me),ae=0;ae<3;++ae)ee.eyePosition[ae]=Me[12+ae]/Me[15];var ke=Me[15];for(ae=0;ae<3;++ae)ke+=this.lightPosition[ae]*Me[4*ae+3];for(ae=0;ae<3;++ae){var ge=Me[12+ae];for(we=0;we<3;++we)ge+=Me[4*we+ae]*this.lightPosition[we];ee.lightPosition[ae]=ge/ke}var Ee=B(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),ae=0;ae<3;++ae)!this.surfaceProject[ae]||!this.vertexCount||(this._shader.uniforms.model=Ee.projections[ae],this._shader.uniforms.clipBounds=Ee.clipBounds[ae],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(),ae=0;ae<3;++ae)for(Le.uniforms.permutation=E[ae],ue.lineWidth(this.contourWidth[ae]*this.pixelRatio),we=0;we<this.contourLevels[ae].length;++we)we===this.highlightLevel[ae]?(Le.uniforms.contourColor=this.highlightColor[ae],Le.uniforms.contourTint=this.highlightTint[ae]):(we===0||we-1===this.highlightLevel[ae])&&(Le.uniforms.contourColor=this.contourColor[ae],Le.uniforms.contourTint=this.contourTint[ae]),this._contourCounts[ae][we]&&(Le.uniforms.height=this.contourLevels[ae][we],se.draw(ue.LINES,this._contourCounts[ae][we],this._contourOffsets[ae][we]));for(ae=0;ae<3;++ae)for(Le.uniforms.model=Ee.projections[ae],Le.uniforms.clipBounds=Ee.clipBounds[ae],we=0;we<3;++we)if(this.contourProject[ae][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(),ae=0;ae<3;++ae)if(this._dynamicCounts[ae]!==0)for(Le.uniforms.model=ee.model,Le.uniforms.clipBounds=ee.clipBounds,Le.uniforms.permutation=E[ae],ue.lineWidth(this.dynamicWidth[ae]*this.pixelRatio),Le.uniforms.contourColor=this.dynamicColor[ae],Le.uniforms.contourTint=this.dynamicTint[ae],Le.uniforms.height=this.dynamicLevel[ae],se.draw(ue.LINES,this._dynamicCounts[ae],this._dynamicOffsets[ae]),we=0;we<3;++we)this.contourProject[we][ae]&&(Le.uniforms.model=Ee.projections[we],Le.uniforms.clipBounds=Ee.clipBounds[we],se.draw(ue.LINES,this._dynamicCounts[ae],this._dynamicOffsets[ae]));se.unbind()}}P.draw=function(j){return G.call(this,j,!1)},P.drawTransparent=function(j){return G.call(this,j,!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]};P.drawPick=function(j){j=j||{};var te=this.gl;te.disable(te.CULL_FACE);var ue=q;ue.model=j.model||p,ue.view=j.view||p,ue.projection=j.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=Q;for(var ee=0;ee<2;++ee)for(var ae=ue.clipBounds[ee],fe=0;fe<3;++fe)ae[fe]=Math.min(Math.max(this.clipBounds[ee][fe],-1e8),1e8);var we=B(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 Me=this._contourPickShader;Me.bind(),Me.uniforms=ue;var ke=this._contourVAO;for(ke.bind(),fe=0;fe<3;++fe)for(te.lineWidth(this.contourWidth[fe]*this.pixelRatio),Me.uniforms.permutation=E[fe],ee=0;ee<this.contourLevels[fe].length;++ee)this._contourCounts[fe][ee]&&(Me.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(Me.uniforms.model=we.projections[ee],Me.uniforms.clipBounds=we.clipBounds[ee],fe=0;fe<3;++fe)if(this.contourProject[ee][fe]){Me.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]&&(Me.uniforms.height=this.contourLevels[fe][ge],ke.draw(te.LINES,this._contourCounts[fe][ge],this._contourOffsets[fe][ge]))}ke.unbind()}},P.pick=function(j){if(!j||j.id!==this.pickId)return null;var te=this._field[2].shape,ue=this._pickResult,ee=te[0]*(j.value[0]+(j.value[2]>>4)/16)/255,ae=Math.floor(ee),fe=ee-ae,we=te[1]*(j.value[1]+(j.value[2]&15)/16)/255,Me=Math.floor(we),ke=we-Me;ae+=1,Me+=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=ae+Ee,ye=Me+se,oe=Le*X,he=0;he<3;++he)ge[he]+=this._field[he].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?ae:ae+1,ue.index[1]=ke<.5?Me:Me+1,ue.uv[0]=ee/te[0],ue.uv[1]=we/te[1],he=0;he<3;++he)ue.dataCoordinate[he]=this._field[he].get(ue.index[0],ue.index[1]);return ue},P.padField=function(j,te){var ue=te.shape.slice(),ee=j.shape.slice();b.assign(j.lo(1,1).hi(ue[0],ue[1]),te),b.assign(j.lo(1).hi(ue[0],1),te.hi(ue[0],1)),b.assign(j.lo(1,ee[1]-1).hi(ue[0],1),te.lo(0,ue[1]-1).hi(ue[0],1)),b.assign(j.lo(0,1).hi(1,ue[1]),te.hi(1)),b.assign(j.lo(ee[0]-1,1).hi(1,ue[1]),te.lo(ue[0]-1)),j.set(0,0,te.get(0,0)),j.set(0,ee[1]-1,te.get(0,ue[1]-1)),j.set(ee[0]-1,0,te.get(ue[0]-1,0)),j.set(ee[0]-1,ee[1]-1,te.get(ue[0]-1,ue[1]-1))};function Z(j,te){return Array.isArray(j)?[te(j[0]),te(j[1]),te(j[2])]:[te(j),te(j),te(j)]}function re(j){return Array.isArray(j)?j.length===3?[j[0],j[1],j[2],1]:[j[0],j[1],j[2],j[3]]:[0,0,0,1]}function $(j){if(Array.isArray(j)){if(Array.isArray(j))return[re(j[0]),re(j[1]),re(j[2])];var te=re(j);return[te.slice(),te.slice(),te.slice()]}}P.update=function(j){j=j||{},this.objectOffset=j.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in j&&(this.contourWidth=Z(j.contourWidth,Number)),"showContour"in j&&(this.showContour=Z(j.showContour,Boolean)),"showSurface"in j&&(this.showSurface=!!j.showSurface),"contourTint"in j&&(this.contourTint=Z(j.contourTint,Boolean)),"contourColor"in j&&(this.contourColor=$(j.contourColor)),"contourProject"in j&&(this.contourProject=Z(j.contourProject,function(Pn){return Z(Pn,Boolean)})),"surfaceProject"in j&&(this.surfaceProject=j.surfaceProject),"dynamicColor"in j&&(this.dynamicColor=$(j.dynamicColor)),"dynamicTint"in j&&(this.dynamicTint=Z(j.dynamicTint,Number)),"dynamicWidth"in j&&(this.dynamicWidth=Z(j.dynamicWidth,Number)),"opacity"in j&&(this.opacity=j.opacity),"opacityscale"in j&&(this.opacityscale=j.opacityscale),"colorBounds"in j&&(this.colorBounds=j.colorBounds),"vertexColor"in j&&(this.vertexColor=j.vertexColor?1:0),"colormap"in j&&this._colorMap.setPixels(this.genColormap(j.colormap,this.opacityscale));var te=j.field||j.coords&&j.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 j||"coords"in j){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 ae=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,[ae[0]+2,ae[1]+2]);if(j.coords){var we=j.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 Me=we[fe];for(se=0;se<2;++se)if(Me.shape[se]!==ae[se])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[fe],Me)}}else if(j.ticks){var ke=j.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]!==ae[fe])throw new Error("gl-surface: invalid tick length");var Ee=_(ge.data,ae);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,[ae[0]+2,ae[1]+2],Le,0)}this._field[0].set(0,0,0);for(var se=0;se<ae[0];++se)this._field[0].set(se+1,0,se);for(this._field[0].set(ae[0]+1,0,ae[0]-1),this._field[1].set(0,0,0),se=0;se<ae[1];++se)this._field[1].set(0,se+1,se);this._field[1].set(0,ae[1]+1,ae[1]-1)}var X=this._field,K=_(c.mallocFloat(X[2].size*3*2),[3,ae[0]+2,ae[1]+2,2]);for(fe=0;fe<3;++fe)x(K.pick(fe),X[fe],"mirror");var ye=_(c.mallocFloat(X[2].size*3),[ae[0]+2,ae[1]+2,3]);for(fe=0;fe<ae[0]+2;++fe)for(se=0;se<ae[1]+2;++se){var oe=K.get(0,fe,se,0),he=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),de=pe*ve-me*Se,be=Se*he-ve*oe,Ae=oe*me-he*pe,Pe=Math.sqrt(de*de+be*be+Ae*Ae);Pe<1e-8?(Pe=Math.max(Math.abs(de),Math.abs(be),Math.abs(Ae)),Pe<1e-8?(Ae=1,be=de=0,Pe=1):Pe=1/Pe):Pe=1/Math.sqrt(Pe),ye.set(fe,se,0,de*Pe),ye.set(fe,se,1,be*Pe),ye.set(fe,se,2,Ae*Pe)}c.free(K.data);var Ie=[1/0,1/0,1/0],Ye=[-1/0,-1/0,-1/0],qe=1/0,Ve=-1/0,Oe=(ae[0]-1)*(ae[1]-1)*6,We=c.mallocFloat(l.nextPow2(10*Oe)),Ge=0,tr=0;for(fe=0;fe<ae[0]-1;++fe)e:for(se=0;se<ae[1]-1;++se){for(var nr=0;nr<2;++nr)for(var er=0;er<2;++er)for(var Qe=0;Qe<3;++Qe){var Ce=this._field[Qe].get(1+fe+nr,1+se+er);if(isNaN(Ce)||!isFinite(Ce))continue e}for(Qe=0;Qe<6;++Qe){var Fe=fe+R[Qe][0],Ke=se+R[Qe][1],je=this._field[0].get(Fe+1,Ke+1),wr=this._field[1].get(Fe+1,Ke+1);Ce=this._field[2].get(Fe+1,Ke+1),de=ye.get(Fe+1,Ke+1,0),be=ye.get(Fe+1,Ke+1,1),Ae=ye.get(Fe+1,Ke+1,2),j.intensity&&(Jr=j.intensity.get(Fe,Ke));var Jr=j.intensity?j.intensity.get(Fe,Ke):Ce+this.objectOffset[2];We[Ge++]=Fe,We[Ge++]=Ke,We[Ge++]=je,We[Ge++]=wr,We[Ge++]=Ce,We[Ge++]=0,We[Ge++]=Jr,We[Ge++]=de,We[Ge++]=be,We[Ge++]=Ae,Ie[0]=Math.min(Ie[0],je+this.objectOffset[0]),Ie[1]=Math.min(Ie[1],wr+this.objectOffset[1]),Ie[2]=Math.min(Ie[2],Ce+this.objectOffset[2]),qe=Math.min(qe,Jr),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]),Ve=Math.max(Ve,Jr),tr+=1}}for(j.intensityBounds&&(qe=+j.intensityBounds[0],Ve=+j.intensityBounds[1]),fe=6;fe<Ge;fe+=10)We[fe]=(We[fe]-qe)/(Ve-qe);this._vertexCount=tr,this._coordinateBuffer.update(We.subarray(0,Ge)),c.freeFloat(We),c.free(ye.data),this.bounds=[Ie,Ye],this.intensity=j.intensity||this._field[2],(this.intensityBounds[0]!==qe||this.intensityBounds[1]!==Ve)&&(ue=!0),this.intensityBounds=[qe,Ve]}if("levels"in j){var Tr=j.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(Pn,Na){return Pn-Na});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,ae=this.shape;for(var Pr=[],rt=0;rt<3;++rt){var Ar=this.contourLevels[rt],Ur=[],ut=[],zr=[0,0,0];for(fe=0;fe<Ar.length;++fe){var tt=T(this._field[rt],Ar[fe]);Ur.push(Pr.length/5|0),tr=0;e:for(se=0;se<tt.cells.length;++se){var pn=tt.cells[se];for(Qe=0;Qe<2;++Qe){var it=tt.positions[pn[Qe]],Xr=it[0],Vt=Math.floor(Xr)|0,$r=Xr-Vt,Kr=it[1],Gt=Math.floor(Kr)|0,Yt=Kr-Gt,jt=!1;r:for(var sr=0;sr<3;++sr){zr[sr]=0;var Vr=(rt+sr+1)%3;for(nr=0;nr<2;++nr){var Rr=nr?$r:1-$r;for(Fe=Math.min(Math.max(Vt+nr,0),ae[0])|0,er=0;er<2;++er){var ot=er?Yt:1-Yt;if(Ke=Math.min(Math.max(Gt+er,0),ae[1])|0,sr<2?Ce=this._field[Vr].get(Fe,Ke):Ce=(this.intensity.get(Fe,Ke)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(Ce)||isNaN(Ce)){jt=!0;break r}var Xt=Rr*ot;zr[sr]+=Xt*Ce}}}if(!jt)Pr.push(zr[0],zr[1],it[0],it[1],zr[2]),tr+=1;else{if(Qe>0){for(var en=0;en<5;++en)Pr.pop();tr-=1}continue e}}}ut.push(tr)}this._contourOffsets[rt]=Ur,this._contourCounts[rt]=ut}var wt=c.mallocFloat(Pr.length);for(fe=0;fe<Pr.length;++fe)wt[fe]=Pr[fe];this._contourBuffer.update(wt),c.freeFloat(wt)}},P.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var j=0;j<3;++j)c.freeFloat(this._field[j].data)},P.highlight=function(j){var te;if(!j){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]=j.level[te]:this.highlightLevel[te]=-1;var ue;for(this.snapToData?ue=j.dataCoordinate:ue=j.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,ae=this.shape,fe=c.mallocFloat(12*ae[0]*ae[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 Me=(we+1)%3,ke=(we+2)%3,ge=this._field[we],Ee=this._field[Me],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 he=K[ye[oe]],pe=+he[0],me=pe|0,Se=Math.min(me+1,ae[0])|0,ve=pe-me,de=1-ve,be=+he[1],Ae=be|0,Pe=Math.min(Ae+1,ae[1])|0,Ie=be-Ae,Ye=1-Ie,qe=de*Ye,Ve=de*Ie,Oe=ve*Ye,We=ve*Ie,Ge=qe*Ee.get(me,Ae)+Ve*Ee.get(me,Pe)+Oe*Ee.get(Se,Ae)+We*Ee.get(Se,Pe),tr=qe*Le.get(me,Ae)+Ve*Le.get(me,Pe)+Oe*Le.get(Se,Ae)+We*Le.get(Se,Pe);if(isNaN(Ge)||isNaN(tr)){oe&&(ee-=1);break}fe[2*ee+0]=Ge,fe[2*ee+1]=tr,ee+=1}this._dynamicCounts[we]=ee-this._dynamicOffsets[we]}this._dynamicBuffer.update(fe.subarray(0,2*ee)),c.freeFloat(fe)}};function ie(j){var te=j.gl,ue=h(te),ee=y(te),ae=w(te),fe=v(te),we=u(te),Me=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 F(te,[0,0],[[0,0,0],[0,0,0]],ue,ee,we,Me,se,ae,fe,ke,ge,Ee,Le,[0,0,0]),K={levels:[[],[],[]]};for(var ye in j)K[ye]=j[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 d(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,R){var E=A.gl,D=E.getParameter(E.MAX_TEXTURE_SIZE);if(p<0||p>D||R<0||R>D)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[p,R],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,p,R,0,A.format,A.type,null),A._mipLevels=[0],A}function m(A,p,R,E,D,I){this.gl=A,this.handle=p,this.format=D,this.type=I,this._shape=[R,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 F=this,P=[this._wrapS,this._wrapT];Object.defineProperties(P,[{get:function(){return F._wrapS},set:function(z){return F.wrapS=z}},{get:function(){return F._wrapT},set:function(z){return F.wrapT=z}}]),this._wrapVector=P;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return F._shape[0]},set:function(z){return F.width=z}},{get:function(){return F._shape[1]},set:function(z){return F.height=z}}]),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 R=this.gl.getExtension("EXT_texture_filter_anisotropic");R&&this.gl.texParameterf(this.gl.TEXTURE_2D,R.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(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 R=this.gl;return this.bind(),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_S,this._wrapS),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_T,this._wrapT),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,R,E){var D=this.gl;this.bind(),Array.isArray(p)?(E=R,R=p[1]|0,p=p[0]|0):(p=p||0,R=R||0),E=E||0;var I=d(A)?A:A.raw;if(I){var F=this._mipLevels.indexOf(E)<0;F?(D.texImage2D(D.TEXTURE_2D,0,this.format,this.format,this.type,I),this._mipLevels.push(E)):D.texSubImage2D(D.TEXTURE_2D,E,p,R,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||R+A.shape[0]>this._shape[0]>>>E||p<0||R<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");x(D,p,R,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,R,E,D,I,F,P){var L=P.dtype,z=P.shape.slice();if(z.length<2||z.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var O=0,B=0,V=S(z,P.stride.slice());L==="float32"?O=A.FLOAT:L==="float64"?(O=A.FLOAT,V=!1,L="float32"):L==="uint8"?O=A.UNSIGNED_BYTE:(O=A.UNSIGNED_BYTE,V=!1,L="uint8");var J=1;if(z.length===2)B=A.LUMINANCE,z=[z[0],z[1],1],P=l(P.data,z,[P.stride[0],P.stride[1],1],P.offset);else if(z.length===3){if(z[2]===1)B=A.ALPHA;else if(z[2]===2)B=A.LUMINANCE_ALPHA;else if(z[2]===3)B=A.RGB;else if(z[2]===4)B=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");J=z[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((B===A.LUMINANCE||B===A.ALPHA)&&(D===A.LUMINANCE||D===A.ALPHA)&&(B=D),B!==D)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var Q=P.size,G=F.indexOf(E)<0;if(G&&F.push(E),O===I&&V)P.offset===0&&P.data.length===Q?G?A.texImage2D(A.TEXTURE_2D,E,D,z[0],z[1],0,D,I,P.data):A.texSubImage2D(A.TEXTURE_2D,E,p,R,z[0],z[1],D,I,P.data):G?A.texImage2D(A.TEXTURE_2D,E,D,z[0],z[1],0,D,I,P.data.subarray(P.offset,P.offset+Q)):A.texSubImage2D(A.TEXTURE_2D,E,p,R,z[0],z[1],D,I,P.data.subarray(P.offset,P.offset+Q));else{var q;I===A.FLOAT?q=s.mallocFloat32(Q):q=s.mallocUint8(Q);var Z=l(q,z,[z[2],z[2]*z[0],1]);O===A.FLOAT&&I===A.UNSIGNED_BYTE?_(Z,P):u.assign(Z,P),G?A.texImage2D(A.TEXTURE_2D,E,D,z[0],z[1],0,D,I,q.subarray(0,Q)):A.texSubImage2D(A.TEXTURE_2D,E,p,R,z[0],z[1],D,I,q.subarray(0,Q)),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 h(A,p,R,E,D){var I=A.getParameter(A.MAX_TEXTURE_SIZE);if(p<0||p>I||R<0||R>I)throw new Error("gl-texture2d: Invalid texture shape");if(D===A.FLOAT&&!A.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var F=M(A);return A.texImage2D(A.TEXTURE_2D,0,E,p,R,0,E,D,null),new m(A,F,p,R,E,D)}function w(A,p,R,E,D,I){var F=M(A);return A.texImage2D(A.TEXTURE_2D,0,D,D,I,p),new m(A,F,R,E,D,I)}function y(A,p){var R=p.dtype,E=p.shape.slice(),D=A.getParameter(A.MAX_TEXTURE_SIZE);if(E[0]<0||E[0]>D||E[1]<0||E[1]>D)throw new Error("gl-texture2d: Invalid texture size");var I=S(E,p.stride.slice()),F=0;R==="float32"?F=A.FLOAT:R==="float64"?(F=A.FLOAT,I=!1,R="float32"):R==="uint8"?F=A.UNSIGNED_BYTE:(F=A.UNSIGNED_BYTE,I=!1,R="uint8");var P=0;if(E.length===2)P=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)P=A.ALPHA;else if(E[2]===2)P=A.LUMINANCE_ALPHA;else if(E[2]===3)P=A.RGB;else if(E[2]===4)P=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");F===A.FLOAT&&!A.getExtension("OES_texture_float")&&(F=A.UNSIGNED_BYTE,I=!1);var L,z,O=p.size;if(I)p.offset===0&&p.data.length===O?L=p.data:L=p.data.subarray(p.offset,p.offset+O);else{var B=[E[2],E[2]*E[0],1];z=s.malloc(O,R);var V=l(z,E,B,0);(R==="float32"||R==="float64")&&F===A.UNSIGNED_BYTE?_(V,p):u.assign(V,p),L=z.subarray(0,O)}var J=M(A);return A.texImage2D(A.TEXTURE_2D,0,P,E[0],E[1],0,P,F,L),I||s.free(z),new m(A,J,E[0],E[1],P,F)}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 h(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return h(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var p=arguments[1],R=d(p)?p:p.raw;if(R)return w(A,R,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,d=c.type||i.FLOAT,_=!!c.normalized,T=c.stride||0,m=c.offset||0;g.bind(),i.enableVertexAttribArray(f),i.vertexAttribPointer(f,b,d,_,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,d,_,T){this.location=c,this.dimension=g,this.a=b,this.b=d,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 d=0;d<c.length;++d){var _=c[d];typeof _=="number"?this._attribs.push(new u(d,1,_)):Array.isArray(_)&&this._attribs.push(new u(d,_.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 d=this.gl;this._useElements?d.drawElements(c,g,this._elementsType,b):d.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,d){var _=c.createVertexArray?new s(c):c.getExtension("OES_vertex_array_object"),T;return _?T=l(c,_):T=u(c),T.update(g,b,d),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]),d=l(g[0],g[1],g[2]);u(b,b),u(d,d);var _=s(b,d);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],d=u[2];return i[0]=f*d-c*b,i[1]=c*g-s*d,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],d=f[0],_=f[1],T=f[2];return Math.abs(c-d)<=l*Math.max(1,Math.abs(c),Math.abs(d))&&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,d){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,d),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,d=Math.sin(s),_=Math.cos(s);return i[0]=l[0],i[1]=f+g*_-b*d,i[2]=c+g*d+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,d=Math.sin(s),_=Math.cos(s);return i[0]=f+b*d+g*_,i[1]=l[1],i[2]=c+b*_-g*d,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,d=Math.sin(s),_=Math.cos(s);return i[0]=f+g*_-b*d,i[1]=c+g*d+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],d=u[2],_=u[3],T=b*c-d*f,m=d*s-g*c,k=g*f-b*s;return T*=2,m*=2,k*=2,i[0]=s+_*T+b*k-d*m,i[1]=f+_*m+d*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],d=u[2],_=u[3],T=_*s+b*c-d*f,m=_*f+d*s-g*c,k=_*c+g*f-b*s,S=-g*s-b*f-d*c;return i[0]=T*_+S*-g+m*-d-k*-b,i[1]=m*_+S*-b+k*-g-T*-d,i[2]=k*_+S*-d+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 d=b.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(d&&d[2]){var _=d[1],T=d[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,d=0,_=1,T=2,m=3,k=4,S=5,x=6,M=7,h=8,w=9,y=10,v=11,A=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"];function p(R){var E=0,D=0,I=g,F,P,L=[],z=[],O=0,B=0,V=1,J=0,Q=0,G=!1,q=!1,Z="",re;R=R||{};var $=s,ie=l;R.version==="300 es"&&($=c,ie=f);for(var j={},te={},E=0;E<$.length;E++)j[$[E]]=!0;for(var E=0;E<ie.length;E++)te[ie[E]]=!0;return function(oe){return z=[],oe!==null?ee(oe):ae()};function ue(oe){oe.length&&z.push({type:A[I],data:oe,position:Q,line:V,column:J})}function ee(oe){E=0,oe.toString&&(oe=oe.toString()),Z+=oe.replace(/\r\n/g,`
`),re=Z.length;for(var he;F=Z[E],E<re;){switch(he=E,I){case d:E=ge();break;case _:E=ke();break;case T:E=Me();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}he!==E&&(Z[he]===`
`?(J=0,++V):++J)}return D+=E,Z=Z.slice(E),z}function ae(oe){return L.length&&ue(L.join("")),I=y,ue("(eof)"),z}function fe(){return L=L.length?[]:L,P==="/"&&F==="*"?(Q=D+E-1,I=d,P=F,E+1):P==="/"&&F==="/"?(Q=D+E-1,I=_,P=F,E+1):F==="#"?(I=T,Q=D+E,E):/\s/.test(F)?(I=w,Q=D+E,E):(G=/\d/.test(F),q=/[^\w_]/.test(F),Q=D+E,I=G?k:q?m:b,E)}function we(){return/[^\s]/g.test(F)?(ue(L.join("")),I=g,E):(L.push(F),P=F,E+1)}function Me(){return(F==="\r"||F===`
`)&&P!=="\\"?(ue(L.join("")),I=g,E):(L.push(F),P=F,E+1)}function ke(){return Me()}function ge(){return F==="/"&&P==="*"?(L.push(F),ue(L.join("")),I=g,E+1):(L.push(F),P=F,E+1)}function Ee(){if(P==="."&&/\d/.test(F))return I=S,E;if(P==="/"&&F==="*")return I=d,E;if(P==="/"&&F==="/")return I=_,E;if(F==="."&&L.length){for(;Le(L););return I=S,E}if(F===";"||F===")"||F==="("){if(L.length)for(;Le(L););return ue(F),I=g,E+1}var oe=L.length===2&&F!=="=";if(/[\w_\d\s]/.test(F)||oe){for(;Le(L););return I=g,E}return L.push(F),P=F,E+1}function Le(oe){var he=0,pe,me;do{if(pe=u.indexOf(oe.slice(0,oe.length+he).join("")),me=u[pe],pe===-1){if(he--+oe.length>0)continue;me=oe.slice(0,1).join("")}return ue(me),Q+=me.length,L=L.slice(me.length),L.length}while(!0)}function se(){return/[^a-fA-F0-9]/.test(F)?(ue(L.join("")),I=g,E):(L.push(F),P=F,E+1)}function X(){return F==="."||/[eE]/.test(F)?(L.push(F),I=S,P=F,E+1):F==="x"&&L.length===1&&L[0]==="0"?(I=v,L.push(F),P=F,E+1):/[^\d]/.test(F)?(ue(L.join("")),I=g,E):(L.push(F),P=F,E+1)}function K(){return F==="f"&&(L.push(F),P=F,E+=1),/[eE]/.test(F)||(F==="-"||F==="+")&&/[eE]/.test(P)?(L.push(F),P=F,E+1):/[^\d]/.test(F)?(ue(L.join("")),I=g,E):(L.push(F),P=F,E+1)}function ye(){if(/[^\d\w_]/.test(F)){var oe=L.join("");return te[oe]?I=h:j[oe]?I=M:I=x,ue(L.join("")),I=g,E}return L.push(F),P=F,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,d=(1<<b)-1,_=d>>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===d)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,d,_=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*(d=Math.pow(2,-g))<1&&(g--,d*=2),g+m>=1?l+=k/d:l+=k*Math.pow(2,1-m),l*d>=2&&(g++,d/=2),g+m>=T?(b=0,g=T):g+m>=1?(b=(l*d-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 d=[];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 h=d[k];h||(h=d[k]=b(k)),this.orient=h}var T=_.prototype;T.handleBoundaryDegeneracy=function(k,S){var x=this.dimension,M=this.vertices.length-1,h=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 R=p.vertices,E=0;E<=x;++E){var D=R[E];D<0?h[E]=S:h[E]=w[D]}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,h=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,R=0;R<=M;++R)w[R]=h[A[R]];v.lastVisited=x;for(var R=0;R<=M;++R){var E=p[R];if(!(E.lastVisited>=x)){var D=w[R];w[R]=k;var I=this.orient();if(w[R]=D,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,h=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(),R=S.vertices,E=S.adjacent,D=R.indexOf(x);if(!(D<0)){for(var I=0;I<=M;++I)if(I!==D){var F=E[I];if(!(!F.boundary||F.lastVisited>=x)){var P=F.vertices;if(F.lastVisited!==-x){for(var L=0,z=0;z<=M;++z)P[z]<0?(L=z,w[z]=k):w[z]=h[P[z]];var O=this.orient();if(O>0){P[L]=x,F.boundary=!1,y.push(F),A.push(F),F.lastVisited=x;continue}else F.lastVisited=-x}var B=F.adjacent,V=R.slice(),J=E.slice(),Q=new s(V,J,!0);v.push(Q);var G=B.indexOf(S);if(!(G<0)){B[G]=Q,J[D]=F,V[I]=-1,J[I]=S,E[I]=Q,Q.flip();for(var z=0;z<=M;++z){var q=V[z];if(!(q<0||q===x)){for(var Z=new Array(M-1),re=0,$=0;$<=M;++$){var ie=V[$];ie<0||$===z||(Z[re++]=ie)}p.push(new f(Z,Q,z))}}}}}}}p.sort(c);for(var I=0;I+1<p.length;I+=2){var j=p[I],te=p[I+1],ue=j.index,ee=te.index;ue<0||ee<0||(j.cell.adjacent[j.index]=te.cell,te.cell.adjacent[te.index]=j.cell)}},T.insert=function(k,S){var x=this.vertices;x.push(k);var M=this.walk(k,S);if(M){for(var h=this.dimension,w=this.tuple,y=0;y<=h;++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,h=0;h<M;++h){var w=x[h];if(w.boundary){for(var y=new Array(k),v=w.vertices,A=0,p=0,R=0;R<=k;++R)v[R]>=0?y[A++]=v[R]:p=R&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 h=k.slice(0,M+1),w=l.apply(void 0,h);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,R=new Array(M+2),v=0;v<=M;++v){for(var E=y.slice(),D=0;D<=M;++D)D===v&&(E[D]=-1);var I=E[0];E[0]=E[1],E[1]=I;var F=new s(E,new Array(M+1),!0);p[v]=F,R[v]=F}R[M+1]=A;for(var v=0;v<=M;++v)for(var E=p[v].vertices,P=p[v].adjacent,D=0;D<=M;++D){var L=E[D];if(L<0){P[D]=A;continue}for(var z=0;z<=M;++z)p[z].vertices.indexOf(L)<0&&(P[D]=p[z])}for(var O=new _(M,h,R),B=!!S,v=M+1;v<x;++v)O.insert(k[v],B);return O.boundary()}},3352(a,o,i){"use strict";var l=i(2478),u=0,s=1,f=2;a.exports=A;function c(p,R,E,D,I){this.mid=p,this.left=R,this.right=E,this.leftPoints=D,this.rightPoints=I,this.count=(R?R.count:0)+(E?E.count:0)+D.length}var g=c.prototype;function b(p,R){p.mid=R.mid,p.left=R.left,p.right=R.right,p.leftPoints=R.leftPoints,p.rightPoints=R.rightPoints,p.count=R.count}function d(p,R){var E=w(R);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,R){var E=p.intervals([]);E.push(R),d(p,E)}function T(p,R){var E=p.intervals([]),D=E.indexOf(R);return D<0?u:(E.splice(D,1),d(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 R=this.count-this.leftPoints.length;if(this.count+=1,p[1]<this.mid)this.left?4*(this.left.count+1)>3*(R+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*(R+1)?_(this,p):this.right.insert(p):this.right=w([p]);else{var E=l.ge(this.leftPoints,p,M),D=l.ge(this.rightPoints,p,h);this.leftPoints.splice(E,0,p),this.rightPoints.splice(D,0,p)}},g.remove=function(p){var R=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*(R-1))return T(this,p);var D=this.left.remove(p);return D===f?(this.left=null,this.count-=1,s):(D===s&&(this.count-=1),D)}else if(p[0]>this.mid){if(!this.right)return u;var I=this.left?this.left.count:0;if(4*I>3*(R-1))return T(this,p);var D=this.right.remove(p);return D===f?(this.right=null,this.count-=1,s):(D===s&&(this.count-=1),D)}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 F=this,P=this.left;P.right;)F=P,P=P.right;if(F===this)P.right=this.right;else{var L=this.left,D=this.right;F.count-=P.count,F.right=P.left,P.left=L,P.right=D}b(this,P),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 D=l.ge(this.rightPoints,p,h);D<this.rightPoints.length&&this.rightPoints[D][1]===p[1];++D)if(this.rightPoints[D]===p)return this.rightPoints.splice(D,1),s}return u}};function m(p,R,E){for(var D=0;D<p.length&&p[D][0]<=R;++D){var I=E(p[D]);if(I)return I}}function k(p,R,E){for(var D=p.length-1;D>=0&&p[D][1]>=R;--D){var I=E(p[D]);if(I)return I}}function S(p,R){for(var E=0;E<p.length;++E){var D=R(p[E]);if(D)return D}}g.queryPoint=function(p,R){if(p<this.mid){if(this.left){var E=this.left.queryPoint(p,R);if(E)return E}return m(this.leftPoints,p,R)}else if(p>this.mid){if(this.right){var E=this.right.queryPoint(p,R);if(E)return E}return k(this.rightPoints,p,R)}else return S(this.leftPoints,R)},g.queryInterval=function(p,R,E){if(p<this.mid&&this.left){var D=this.left.queryInterval(p,R,E);if(D)return D}if(R>this.mid&&this.right){var D=this.right.queryInterval(p,R,E);if(D)return D}return R<this.mid?m(this.leftPoints,R,E):p>this.mid?k(this.rightPoints,p,E):S(this.leftPoints,E)};function x(p,R){return p-R}function M(p,R){var E=p[0]-R[0];return E||p[1]-R[1]}function h(p,R){var E=p[1]-R[1];return E||p[0]-R[0]}function w(p){if(p.length===0)return null;for(var R=[],E=0;E<p.length;++E)R.push(p[E][0],p[E][1]);R.sort(x);for(var D=R[R.length>>1],I=[],F=[],P=[],E=0;E<p.length;++E){var L=p[E];L[1]<D?I.push(L):D<L[0]?F.push(L):P.push(L)}var z=P,O=P.slice();return z.sort(M),O.sort(h),new c(D,w(I),w(F),z,O)}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 R=this.root.remove(p);return R===f&&(this.root=null),R!==u}return!1},v.queryPoint=function(p,R){if(this.root)return this.root.queryPoint(p,R)},v.queryInterval=function(p,R,E){if(p<=R&&this.root)return this.root.queryInterval(p,R,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)},d=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,R){if(y||(y=[0,0,0]),v||(v=[0,0,0]),A||(A=[0,0,0]),p||(p=[0,0,0,1]),R||(R=[0,0,0,1]),!l(d,w)||(s(_,d),_[3]=0,_[7]=0,_[11]=0,_[15]=1,Math.abs(f(_)<1e-8)))return!1;var E=d[3],D=d[7],I=d[11],F=d[12],P=d[13],L=d[14],z=d[15];if(E!==0||D!==0||I!==0){T[0]=E,T[1]=D,T[2]=I,T[3]=z;var O=c(_,_);if(!O)return!1;g(_,_),S(p,T,_)}else p[0]=p[1]=p[2]=0,p[3]=1;if(y[0]=F,y[1]=P,y[2]=L,x(m,d),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 B=0;B<3;B++)v[B]*=-1,m[B][0]*=-1,m[B][1]*=-1,m[B][2]*=-1;return R[0]=.5*Math.sqrt(Math.max(1+m[0][0]-m[1][1]-m[2][2],0)),R[1]=.5*Math.sqrt(Math.max(1-m[0][0]+m[1][1]-m[2][2],0)),R[2]=.5*Math.sqrt(Math.max(1-m[0][0]-m[1][1]+m[2][2],0)),R[3]=.5*Math.sqrt(Math.max(1+m[0][0]+m[1][1]+m[2][2],0)),m[2][1]>m[1][2]&&(R[0]=-R[0]),m[0][2]>m[2][0]&&(R[1]=-R[1]),m[1][0]>m[0][1]&&(R[2]=-R[2]),!0};function S(h,w,y){var v=w[0],A=w[1],p=w[2],R=w[3];return h[0]=y[0]*v+y[4]*A+y[8]*p+y[12]*R,h[1]=y[1]*v+y[5]*A+y[9]*p+y[13]*R,h[2]=y[2]*v+y[6]*A+y[10]*p+y[14]*R,h[3]=y[3]*v+y[7]*A+y[11]*p+y[15]*R,h}function x(h,w){h[0][0]=w[0],h[0][1]=w[1],h[0][2]=w[2],h[1][0]=w[4],h[1][1]=w[5],h[1][2]=w[6],h[2][0]=w[8],h[2][1]=w[9],h[2][2]=w[10]}function M(h,w,y,v,A){h[0]=w[0]*v+y[0]*A,h[1]=w[1]*v+y[1]*A,h[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(),d=T();a.exports=_;function _(S,x,M,h){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(d.translate,g.translate,b.translate,h),l(d.skew,g.skew,b.skew,h),l(d.scale,g.scale,b.scale,h),l(d.perspective,g.perspective,b.perspective,h),c(d.quaternion,g.quaternion,b.quaternion,h),u(S,d.translate,d.scale,d.skew,d.perspective,d.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,d,_,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),d[2]!==0&&(s[9]=d[2],l.multiply(c,c,s)),d[1]!==0&&(s[9]=0,s[8]=d[1],l.multiply(c,c,s)),d[0]!==0&&(s[8]=0,s[4]=d[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),d=i(7656),_=i(2504),T=i(3536),m=[0,0,0];a.exports=M;function k(h){this._components=h.slice(),this._time=[0],this.prevMatrix=h.slice(),this.nextMatrix=h.slice(),this.computedMatrix=h.slice(),this.computedInverse=h.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var S=k.prototype;S.recalcMatrix=function(h){var w=this._time,y=l.le(w,h),v=this.computedMatrix;if(!(y<0)){var A=this._components;if(y===w.length-1)for(var p=16*y,R=0;R<16;++R)v[R]=A[p++];else{for(var E=w[y+1]-w[y],p=16*y,D=this.prevMatrix,I=!0,R=0;R<16;++R)D[R]=A[p++];for(var F=this.nextMatrix,R=0;R<16;++R)F[R]=A[p++],I=I&&D[R]===F[R];if(E<1e-6||I)for(var R=0;R<16;++R)v[R]=D[R];else u(v,D,F,(h-w[y])/E)}var P=this.computedUp;P[0]=v[1],P[1]=v[5],P[2]=v[9],T(P,P);var L=this.computedInverse;s(L,v);var z=this.computedEye,O=L[15];z[0]=L[12]/O,z[1]=L[13]/O,z[2]=L[14]/O;for(var B=this.computedCenter,V=Math.exp(this.computedRadius[0]),R=0;R<3;++R)B[R]=z[R]-v[2+4*R]*V}},S.idle=function(h){if(!(h<this.lastT())){for(var w=this._components,y=w.length-16,v=0;v<16;++v)w.push(w[y++]);this._time.push(h)}},S.flush=function(h){var w=l.gt(this._time,h)-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(h,w,y,v){this.recalcMatrix(h),w=w||this.computedEye,y=y||m,v=v||this.computedUp,this.setMatrix(h,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(h,w,y,v){this.recalcMatrix(h);var A=this.computedInverse;w&&c(A,A,w),y&&f(A,A,y),v&&g(A,A,v),this.setMatrix(h,s(this.computedMatrix,A))};var x=[0,0,0];S.pan=function(h,w,y,v){x[0]=-(w||0),x[1]=-(y||0),x[2]=-(v||0),this.recalcMatrix(h);var A=this.computedInverse;d(A,A,x),this.setMatrix(h,s(A,A))},S.translate=function(h,w,y,v){x[0]=w||0,x[1]=y||0,x[2]=v||0,this.recalcMatrix(h);var A=this.computedMatrix;d(A,A,x),this.setMatrix(h,A)},S.setMatrix=function(h,w){if(!(h<this.lastT())){this._time.push(h);for(var y=0;y<16;++y)this._components.push(w[y])}},S.setDistance=function(h,w){this.computedRadius[0]=w},S.setDistanceLimits=function(h,w){var y=this._limits;y[0]=h,y[1]=w},S.getDistanceLimits=function(h){var w=this._limits;return h?(h[0]=w[0],h[1]=w[1],h):w};function M(h){h=h||{};var w=h.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(h,w){var y=s[h][0]-s[w][0];return y||s[h][1]-s[w][1]});for(var b=[g[0],g[1]],d=[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=d.length;m>1&&l(s[d[m-2]],s[d[m-1]],T)>=0;)m-=1,d.pop();d.push(_)}for(var k=new Array(d.length+b.length-2),S=0,c=0,x=b.length;c<x;++c)k[S++]=b[c];for(var M=d.length-2;M>0;--M)k[S++]=d[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,d={shift:!1,alt:!1,control:!1,meta:!1},_=!1;function T(p){var R=!1;return"altKey"in p&&(R=R||p.altKey!==d.alt,d.alt=!!p.altKey),"shiftKey"in p&&(R=R||p.shiftKey!==d.shift,d.shift=!!p.shiftKey),"ctrlKey"in p&&(R=R||p.ctrlKey!==d.control,d.control=!!p.ctrlKey),"metaKey"in p&&(R=R||p.metaKey!==d.meta,d.meta=!!p.metaKey),R}function m(p,R){var E=l.x(R),D=l.y(R);"buttons"in R&&(p=R.buttons|0),(p!==c||E!==g||D!==b||T(R))&&(c=p|0,g=E||0,b=D||0,f&&f(c,g,b,d))}function k(p){m(0,p)}function S(){(c||g||b||d.shift||d.alt||d.meta||d.control)&&(g=b=0,c=0,d.shift=d.alt=d.control=d.meta=!1,f&&f(0,0,0,d))}function x(p){T(p)&&f&&f(c,g,b,d)}function M(p){l.buttons(p)===0?m(0,p):m(c,p)}function h(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",h),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",h),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 d},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 d=l(getComputedStyle(g).getPropertyValue(b));return d[0]*c(d[1],g)}function f(g,b){var d=document.createElement("div");d.style["font-size"]="128"+g,b.appendChild(d);var _=s(d,"font-size")/128;return b.removeChild(d),_}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(d){c&&d.preventDefault();var _=d.deltaX||0,T=d.deltaY||0,m=d.deltaZ||0,k=d.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,d)};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,d,_,T){return function(k,S,x,M){var h=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,R=v,E,D=-A|0,I=0,F=-p|0,P=0,L=-A-p|0,z=0,O=A|0,B=p-A*h|0,V=0,J=0,Q=0,G=2*h|0,q=_(G),Z=_(G),re=0,$=0,ie=-1,j=-1,te=0,ue=-h|0,ee=h|0,ae=0,fe=-h-1|0,we=h-1|0,Me=0,ke=0,ge=0;for(V=0;V<h;++V)q[re++]=d(y[R],S,x,M),R+=O;if(R+=B,w>0){if(J=1,q[re++]=d(y[R],S,x,M),R+=O,h>0)for(V=1,E=y[R],$=q[re]=d(E,S,x,M),te=q[re+ie],ae=q[re+ue],Me=q[re+fe],($!==te||$!==ae||$!==Me)&&(I=y[R+D],P=y[R+F],z=y[R+L],g(V,J,E,I,P,z,$,te,ae,Me,S,x,M),ke=Z[re]=Q++),re+=1,R+=O,V=2;V<h;++V)E=y[R],$=q[re]=d(E,S,x,M),te=q[re+ie],ae=q[re+ue],Me=q[re+fe],($!==te||$!==ae||$!==Me)&&(I=y[R+D],P=y[R+F],z=y[R+L],g(V,J,E,I,P,z,$,te,ae,Me,S,x,M),ke=Z[re]=Q++,Me!==te&&b(Z[re+ie],ke,z,I,Me,te,S,x,M)),re+=1,R+=O;for(R+=B,re=0,ge=ie,ie=j,j=ge,ge=ue,ue=ee,ee=ge,ge=fe,fe=we,we=ge,J=2;J<w;++J){if(q[re++]=d(y[R],S,x,M),R+=O,h>0)for(V=1,E=y[R],$=q[re]=d(E,S,x,M),te=q[re+ie],ae=q[re+ue],Me=q[re+fe],($!==te||$!==ae||$!==Me)&&(I=y[R+D],P=y[R+F],z=y[R+L],g(V,J,E,I,P,z,$,te,ae,Me,S,x,M),ke=Z[re]=Q++,Me!==ae&&b(Z[re+ue],ke,P,z,ae,Me,S,x,M)),re+=1,R+=O,V=2;V<h;++V)E=y[R],$=q[re]=d(E,S,x,M),te=q[re+ie],ae=q[re+ue],Me=q[re+fe],($!==te||$!==ae||$!==Me)&&(I=y[R+D],P=y[R+F],z=y[R+L],g(V,J,E,I,P,z,$,te,ae,Me,S,x,M),ke=Z[re]=Q++,Me!==ae&&b(Z[re+ue],ke,P,z,ae,Me,S,x,M),Me!==te&&b(Z[re+ie],ke,z,I,Me,te,S,x,M)),re+=1,R+=O;J&1&&(re=0),ge=ie,ie=j,j=ge,ge=ue,ue=ee,ee=ge,ge=fe,fe=we,we=ge,R+=B}}T(Z),T(q)}},"false,1,0":function(g,b,d,_,T){return function(k,S,x,M){var h=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,R=v,E,D=-A|0,I=0,F=-p|0,P=0,L=-A-p|0,z=0,O=p|0,B=A-p*w|0,V=0,J=0,Q=0,G=2*w|0,q=_(G),Z=_(G),re=0,$=0,ie=-1,j=-1,te=0,ue=-w|0,ee=w|0,ae=0,fe=-w-1|0,we=w-1|0,Me=0,ke=0,ge=0;for(J=0;J<w;++J)q[re++]=d(y[R],S,x,M),R+=O;if(R+=B,h>0){if(V=1,q[re++]=d(y[R],S,x,M),R+=O,w>0)for(J=1,E=y[R],$=q[re]=d(E,S,x,M),ae=q[re+ue],te=q[re+ie],Me=q[re+fe],($!==ae||$!==te||$!==Me)&&(I=y[R+D],P=y[R+F],z=y[R+L],g(V,J,E,I,P,z,$,ae,te,Me,S,x,M),ke=Z[re]=Q++),re+=1,R+=O,J=2;J<w;++J)E=y[R],$=q[re]=d(E,S,x,M),ae=q[re+ue],te=q[re+ie],Me=q[re+fe],($!==ae||$!==te||$!==Me)&&(I=y[R+D],P=y[R+F],z=y[R+L],g(V,J,E,I,P,z,$,ae,te,Me,S,x,M),ke=Z[re]=Q++,Me!==te&&b(Z[re+ie],ke,P,z,te,Me,S,x,M)),re+=1,R+=O;for(R+=B,re=0,ge=ue,ue=ee,ee=ge,ge=ie,ie=j,j=ge,ge=fe,fe=we,we=ge,V=2;V<h;++V){if(q[re++]=d(y[R],S,x,M),R+=O,w>0)for(J=1,E=y[R],$=q[re]=d(E,S,x,M),ae=q[re+ue],te=q[re+ie],Me=q[re+fe],($!==ae||$!==te||$!==Me)&&(I=y[R+D],P=y[R+F],z=y[R+L],g(V,J,E,I,P,z,$,ae,te,Me,S,x,M),ke=Z[re]=Q++,Me!==ae&&b(Z[re+ue],ke,z,I,Me,ae,S,x,M)),re+=1,R+=O,J=2;J<w;++J)E=y[R],$=q[re]=d(E,S,x,M),ae=q[re+ue],te=q[re+ie],Me=q[re+fe],($!==ae||$!==te||$!==Me)&&(I=y[R+D],P=y[R+F],z=y[R+L],g(V,J,E,I,P,z,$,ae,te,Me,S,x,M),ke=Z[re]=Q++,Me!==te&&b(Z[re+ie],ke,P,z,te,Me,S,x,M),Me!==ae&&b(Z[re+ue],ke,z,I,Me,ae,S,x,M)),re+=1,R+=O;V&1&&(re=0),ge=ue,ue=ee,ee=ge,ge=ie,ie=j,j=ge,ge=fe,fe=we,we=ge,R+=B}}T(Z),T(q)}}};function s(c,g,b,d,_,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 d=c.arrayArguments||1;d<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(d),k=0;k<d;++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,h,w,y){var v=M[0],A=w[0];y|=0;var p=0,R=A;for(p=0;p<v;++p)h[y]=0,y+=R},fdTemplate1:function(M,h,w,y,v,A,p){var R=M[0],E=w[0],D=A[0],I=-1*E,F=E;y|=0,p|=0;var P=0,L=E,z=D;for(P=0;P<R;++P)v[p]=.5*(h[y+I]-h[y+F]),y+=L,p+=z},fdTemplate2:function(M,h,w,y,v,A,p,R,E,D){var I=M[0],F=M[1],P=w[0],L=w[1],z=A[0],O=A[1],B=E[0],V=E[1],J=-1*P,Q=P,G=-1*L,q=L;y|=0,p|=0,D|=0;var Z=0,re=0,$=L,ie=P-F*L,j=O,te=z-F*O,ue=V,ee=B-F*V;for(re=0;re<I;++re){for(Z=0;Z<F;++Z)v[p]=.5*(h[y+J]-h[y+Q]),R[D]=.5*(h[y+G]-h[y+q]),y+=$,p+=j,D+=ue;y+=ie,p+=te,D+=ee}}},s={cdiff:function(M){var h={};return function(y,v,A){var p=y.dtype,R=y.order,E=v.dtype,D=v.order,I=A.dtype,F=A.order,P=[p,R.join(),E,D.join(),I,F.join()].join(),L=h[P];return L||(h[P]=L=M([p,R,E,D,I,F])),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 h={};return function(y){var v=y.dtype,A=y.order,p=[v,A.join()].join(),R=h[p];return R||(h[p]=R=M([v,A])),R(y.shape.slice(0),y.data,y.stride,y.offset|0)}},fdTemplate1:function(M){var h={};return function(y,v){var A=y.dtype,p=y.order,R=v.dtype,E=v.order,D=[A,p.join(),R,E.join()].join(),I=h[D];return I||(h[D]=I=M([A,p,R,E])),I(y.shape.slice(0),y.data,y.stride,y.offset|0,v.data,v.stride,v.offset|0)}},fdTemplate2:function(M){var h={};return function(y,v,A){var p=y.dtype,R=y.order,E=v.dtype,D=v.order,I=A.dtype,F=A.order,P=[p,R.join(),E,D.join(),I,F.join()].join(),L=h[P];return L||(h[P]=L=M([p,R,E,D,I,F])),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 h=s[M.funcName];return h(c.bind(void 0,M))}function c(M){return u[M.funcName]}function g(M){return f({funcName:M.funcName})}var b={},d={},_=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,h,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)),h(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)),h(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)),h(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)),h(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 h=M.join(),p=d[h];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 d[h]=p,p}a.exports=function(h,w,y){if(Array.isArray(y)||(typeof y=="string"?y=l(w.dimension,y):y=l(w.dimension,"clamp")),w.size===0)return h;if(w.dimension===0)return h.set(0),h;var v=x(y);return v(h,w)}},4317(a){"use strict";function o(f,c){var g=Math.floor(c),b=c-g,d=0<=g&&g<f.shape[0],_=0<=g+1&&g+1<f.shape[0],T=d?+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),d=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,h=_&&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-d)*M+d*w)+k*((1-d)*h+d*y)}function l(f,c,g,b){var d=Math.floor(c),_=c-d,T=0<=d&&d<f.shape[0],m=0<=d+1&&d+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],h=Math.floor(b),w=b-h,y=0<=h&&h<f.shape[2],v=0<=h+1&&h+1<f.shape[2],A=T&&x&&y?f.get(d,k,h):0,p=T&&M&&y?f.get(d,k+1,h):0,R=m&&x&&y?f.get(d+1,k,h):0,E=m&&M&&y?f.get(d+1,k+1,h):0,D=T&&x&&v?f.get(d,k,h+1):0,I=T&&M&&v?f.get(d,k+1,h+1):0,F=m&&x&&v?f.get(d+1,k,h+1):0,P=m&&M&&v?f.get(d+1,k+1,h+1):0;return(1-w)*((1-S)*((1-_)*A+_*R)+S*((1-_)*p+_*E))+w*((1-S)*((1-_)*D+_*F)+S*((1-_)*I+_*P))}function u(f){var c=f.shape.length|0,g=new Array(c),b=new Array(c),d=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],d[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(!d[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(d,_,T,m,k){var S=d[0],x=d[1],M=d[2],h=T[0],w=T[1],y=T[2];m|=0;var v=0,A=0,p=0,R=y,E=w-M*y,D=h-x*w;for(p=0;p<S;++p){for(A=0;A<x;++A){for(v=0;v<M;++v)_[m]/=k,m+=R;m+=E}m+=D}}},"uint8,2,0,1,float64,2,1,0":function(){return function(d,_,T,m,k,S,x,M){var h=d[0],w=d[1],y=d[2],v=T[0],A=T[1],p=T[2],R=S[0],E=S[1],D=S[2];m|=0,x|=0;for(var I=m,F=x,P=d[0]|0;P>0;){P<64?(h=P,P=0):(h=64,P-=64);for(var L=d[1]|0;L>0;){L<64?(w=L,L=0):(w=64,L-=64),m=I+P*v+L*A,x=F+P*R+L*E;var z=0,O=0,B=0,V=p,J=v-y*p,Q=A-h*v,G=D,q=R-y*D,Z=E-h*R;for(B=0;B<w;++B){for(O=0;O<h;++O){for(z=0;z<y;++z)_[m]=k[x]*M,m+=V,x+=G;m+=J,x+=q}m+=Q,x+=Z}}}}},"float32,1,0,float32,1,0":function(){return function(d,_,T,m,k,S,x){var M=d[0],h=d[1],w=T[0],y=T[1],v=S[0],A=S[1];m|=0,x|=0;var p=0,R=0,E=y,D=w-h*y,I=A,F=v-h*A;for(R=0;R<M;++R){for(p=0;p<h;++p)_[m]=k[x],m+=E,x+=I;m+=D,x+=F}}},"float32,1,0,float32,0,1":function(){return function(d,_,T,m,k,S,x){var M=d[0],h=d[1],w=T[0],y=T[1],v=S[0],A=S[1];m|=0,x|=0;for(var p=m,R=x,E=d[1]|0;E>0;){E<64?(h=E,E=0):(h=64,E-=64);for(var D=d[0]|0;D>0;){D<64?(M=D,D=0):(M=64,D-=64),m=p+E*y+D*w,x=R+E*A+D*v;var I=0,F=0,P=y,L=w-h*y,z=A,O=v-h*A;for(F=0;F<M;++F){for(I=0;I<h;++I)_[m]=k[x],m+=P,x+=z;m+=L,x+=O}}}}},"uint8,2,0,1,uint8,1,2,0":function(){return function(d,_,T,m,k,S,x){var M=d[0],h=d[1],w=d[2],y=T[0],v=T[1],A=T[2],p=S[0],R=S[1],E=S[2];m|=0,x|=0;for(var D=m,I=x,F=d[2]|0;F>0;){F<64?(w=F,F=0):(w=64,F-=64);for(var P=d[0]|0;P>0;){P<64?(M=P,P=0):(M=64,P-=64);for(var L=d[1]|0;L>0;){L<64?(h=L,L=0):(h=64,L-=64),m=D+F*A+P*y+L*v,x=I+F*E+P*p+L*R;var z=0,O=0,B=0,V=A,J=y-w*A,Q=v-M*y,G=E,q=p-w*E,Z=R-M*p;for(B=0;B<h;++B){for(O=0;O<M;++O){for(z=0;z<w;++z)_[m]=k[x],m+=V,x+=G;m+=J,x+=q}m+=Q,x+=Z}}}}}},"uint8,2,0,1,array,2,0,1":function(){return function(d,_,T,m,k,S,x){var M=d[0],h=d[1],w=d[2],y=T[0],v=T[1],A=T[2],p=S[0],R=S[1],E=S[2];m|=0,x|=0;var D=0,I=0,F=0,P=A,L=y-w*A,z=v-M*y,O=E,B=p-w*E,V=R-M*p;for(F=0;F<h;++F){for(I=0;I<M;++I){for(D=0;D<w;++D)_[m]=k[x],m+=P,x+=O;m+=L,x+=B}m+=z,x+=V}}}};function l(b,d){var _=d.join(","),T=i[_];return T()}var u=l,s={mul:function(b){var d={};return function(T,m,k){var S=T.dtype,x=T.order,M=m.dtype,h=m.order,w=k.dtype,y=k.order,v=[S,x.join(),M,h.join(),w,y.join()].join(),A=d[v];return A||(d[v]=A=b([S,x,M,h,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 d={};return function(T,m,k){var S=T.dtype,x=T.order,M=m.dtype,h=m.order,w=[S,x.join(),M,h.join()].join(),y=d[w];return y||(d[w]=y=b([S,x,M,h])),y(T.shape.slice(0),T.data,T.stride,T.offset|0,m.data,m.stride,m.offset|0,k)}},mulseq:function(b){var d={};return function(T,m){var k=T.dtype,S=T.order,x=[k,S.join()].join(),M=d[x];return M||(d[x]=M=b([k,S])),M(T.shape.slice(0),T.data,T.stride,T.offset|0,m)}},div:function(b){var d={};return function(T,m,k){var S=T.dtype,x=T.order,M=m.dtype,h=m.order,w=k.dtype,y=k.order,v=[S,x.join(),M,h.join(),w,y.join()].join(),A=d[v];return A||(d[v]=A=b([S,x,M,h,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 d={};return function(T,m,k){var S=T.dtype,x=T.order,M=m.dtype,h=m.order,w=[S,x.join(),M,h.join()].join(),y=d[w];return y||(d[w]=y=b([S,x,M,h])),y(T.shape.slice(0),T.data,T.stride,T.offset|0,m.data,m.stride,m.offset|0,k)}},divseq:function(b){var d={};return function(T,m){var k=T.dtype,S=T.order,x=[k,S.join()].join(),M=d[x];return M||(d[x]=M=b([k,S])),M(T.shape.slice(0),T.data,T.stride,T.offset|0,m)}},assign:function(b){var d={};return function(T,m){var k=T.dtype,S=T.order,x=m.dtype,M=m.order,h=[k,S.join(),x,M.join()].join(),w=d[h];return w||(d[h]=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 d=s[b.funcName];return d(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,d=1;Array.isArray(b);)g.push(b.length),d*=b.length,b=b[0];return g.length===0?l():(c||(c=l(new Float64Array(d),g)),u(c,f),c)}},8277(a){"use strict";function o(){return function(c,g,b,d,_){var T=c[0],m=c[1],k=c[2],S=b[0],x=b[1],M=b[2],h=[0,0,0];d|=0;var w=0,y=0,v=0,A=M,p=x-k*M,R=S-m*x;for(v=0;v<T;++v){for(y=0;y<m;++y){for(w=0;w<k;++w){{var E=_,D;for(D=0;D<h.length-1;++D)E=E[h[D]];g[d]=E[h[h.length-1]]}d+=A,++h[2]}d+=p,h[2]-=k,++h[1]}d+=R,h[1]-=m,++h[0]}}}function i(){return o()}var l=i;function u(c){var g={};return function(d,_){var T=d.dtype,m=d.order,k=[T,m.join()].join(),S=g[k];return S||(g[k]=S=c([T,m])),S(d.shape.slice(0),d.data,d.stride,d.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,h,w,y,v,A,p,R){var E,D,I,F=k*h+M,P,L=_(v),z,O,B,V;for(E=k+1;E<=S;++E){for(D=E,F+=h,I=F,z=0,O=F,P=0;P<v;++P)L[z++]=x[O],O+=A;e:for(;D-- >k;){z=0,O=I-h;r:for(P=0;P<v;++P){if(B=x[O],V=L[z],B<V)break e;if(B>V)break r;O+=p,z+=R}for(z=I,O=I-h,P=0;P<v;++P)x[z]=x[O],z+=A,O+=A;I-=h}for(z=I,O=0,P=0;P<v;++P)x[z]=L[O++],z+=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,h,w,y,v,A,p,R,E){var D=(x-S+1)/6|0,I=S+D,F=x-D,P=S+x>>1,L=P-D,z=P+D,O=I,B=L,V=P,J=z,Q=F,G=S+1,q=x-1,Z=!0,re,$,ie,j,te,ue,ee,ae,fe,we=0,Me=0,ke=0,ge,Ee,Le,se,X,K,ye,oe,he,pe,me,Se,ve,de,be,Ae,Pe=A,Ie=T(Pe),Ye=T(Pe);Ee=w*O,Le=w*B,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ae=Le+Ae,ke=M[ee]-M[ae],ke>0){$=O,O=B,B=$;break e}if(ke<0)break e;Ae+=R}Ee=w*J,Le=w*Q,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ae=Le+Ae,ke=M[ee]-M[ae],ke>0){$=J,J=Q,Q=$;break e}if(ke<0)break e;Ae+=R}Ee=w*O,Le=w*V,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ae=Le+Ae,ke=M[ee]-M[ae],ke>0){$=O,O=V,V=$;break e}if(ke<0)break e;Ae+=R}Ee=w*B,Le=w*V,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ae=Le+Ae,ke=M[ee]-M[ae],ke>0){$=B,B=V,V=$;break e}if(ke<0)break e;Ae+=R}Ee=w*O,Le=w*J,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ae=Le+Ae,ke=M[ee]-M[ae],ke>0){$=O,O=J,J=$;break e}if(ke<0)break e;Ae+=R}Ee=w*V,Le=w*J,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ae=Le+Ae,ke=M[ee]-M[ae],ke>0){$=V,V=J,J=$;break e}if(ke<0)break e;Ae+=R}Ee=w*B,Le=w*Q,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ae=Le+Ae,ke=M[ee]-M[ae],ke>0){$=B,B=Q,Q=$;break e}if(ke<0)break e;Ae+=R}Ee=w*B,Le=w*V,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ae=Le+Ae,ke=M[ee]-M[ae],ke>0){$=B,B=V,V=$;break e}if(ke<0)break e;Ae+=R}Ee=w*J,Le=w*Q,Ae=h;e:for(ge=0;ge<A;++ge){if(ee=Ee+Ae,ae=Le+Ae,ke=M[ee]-M[ae],ke>0){$=J,J=Q,Q=$;break e}if(ke<0)break e;Ae+=R}for(Ee=w*O,Le=w*B,se=w*V,X=w*J,K=w*Q,ye=w*I,oe=w*P,he=w*F,be=0,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,fe=se+Ae,pe=X+Ae,me=K+Ae,Se=ye+Ae,ve=oe+Ae,de=he+Ae,Ie[be]=M[ae],Ye[be]=M[pe],Z=Z&&Ie[be]===Ye[be],ie=M[ee],j=M[fe],te=M[me],M[Se]=ie,M[ve]=j,M[de]=te,++be,Ae+=p;for(Ee=w*L,Le=w*S,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,M[ee]=M[ae],Ae+=p;for(Ee=w*z,Le=w*x,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,M[ee]=M[ae],Ae+=p;if(Z)for(ue=G;ue<=q;++ue){ee=h+ue*w,be=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Ie[be],ke!==0)break e;be+=E,ee+=R}if(ke!==0)if(ke<0){if(ue!==G)for(Ee=w*ue,Le=w*G,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,re=M[ee],M[ee]=M[ae],M[ae]=re,Ae+=p;++G}else for(;;){ee=h+q*w,be=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Ie[be],ke!==0)break e;be+=E,ee+=R}if(ke>0)q--;else if(ke<0){for(Ee=w*ue,Le=w*G,se=w*q,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,fe=se+Ae,re=M[ee],M[ee]=M[ae],M[ae]=M[fe],M[fe]=re,Ae+=p;++G,--q;break}else{for(Ee=w*ue,Le=w*q,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,re=M[ee],M[ee]=M[ae],M[ae]=re,Ae+=p;--q;break}}}else for(ue=G;ue<=q;++ue){ee=h+ue*w,be=0;e:for(ge=0;ge<A;++ge){if(we=M[ee]-Ie[be],we!==0)break e;be+=E,ee+=R}if(we<0){if(ue!==G)for(Ee=w*ue,Le=w*G,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,re=M[ee],M[ee]=M[ae],M[ae]=re,Ae+=p;++G}else{ee=h+ue*w,be=0;e:for(ge=0;ge<A;++ge){if(Me=M[ee]-Ye[be],Me!==0)break e;be+=E,ee+=R}if(Me>0)for(;;){ee=h+q*w,be=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Ye[be],ke!==0)break e;be+=E,ee+=R}if(ke>0){if(--q<ue)break;continue}else{ee=h+q*w,be=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Ie[be],ke!==0)break e;be+=E,ee+=R}if(ke<0){for(Ee=w*ue,Le=w*G,se=w*q,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,fe=se+Ae,re=M[ee],M[ee]=M[ae],M[ae]=M[fe],M[fe]=re,Ae+=p;++G,--q}else{for(Ee=w*ue,Le=w*q,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,re=M[ee],M[ee]=M[ae],M[ae]=re,Ae+=p;--q}break}}}}for(Ee=w*S,Le=w*(G-1),be=0,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,M[ee]=M[ae],M[ae]=Ie[be],++be,Ae+=p;for(Ee=w*x,Le=w*(q+1),be=0,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,M[ee]=M[ae],M[ae]=Ye[be],++be,Ae+=p;if(G-2-S<=32?_(S,G-2,M,h,w,y,v,A,p,R,E):k(S,G-2,M,h,w,y,v,A,p,R,E),x-(q+2)<=32?_(q+2,x,M,h,w,y,v,A,p,R,E):k(q+2,x,M,h,w,y,v,A,p,R,E),Z){m(Ie),m(Ye);return}if(G<I&&q>F){e:for(;;){for(ee=h+G*w,be=0,Ae=h,ge=0;ge<A;++ge){if(M[ee]!==Ie[be])break e;++be,ee+=p}++G}e:for(;;){for(ee=h+q*w,be=0,Ae=h,ge=0;ge<A;++ge){if(M[ee]!==Ye[be])break e;++be,ee+=p}--q}for(ue=G;ue<=q;++ue){ee=h+ue*w,be=0;e:for(ge=0;ge<A;++ge){if(we=M[ee]-Ie[be],we!==0)break e;be+=E,ee+=R}if(we===0){if(ue!==G)for(Ee=w*ue,Le=w*G,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,re=M[ee],M[ee]=M[ae],M[ae]=re,Ae+=p;++G}else{ee=h+ue*w,be=0;e:for(ge=0;ge<A;++ge){if(Me=M[ee]-Ye[be],Me!==0)break e;be+=E,ee+=R}if(Me===0)for(;;){ee=h+q*w,be=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Ye[be],ke!==0)break e;be+=E,ee+=R}if(ke===0){if(--q<ue)break;continue}else{ee=h+q*w,be=0;e:for(ge=0;ge<A;++ge){if(ke=M[ee]-Ie[be],ke!==0)break e;be+=E,ee+=R}if(ke<0){for(Ee=w*ue,Le=w*G,se=w*q,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,fe=se+Ae,re=M[ee],M[ee]=M[ae],M[ae]=M[fe],M[fe]=re,Ae+=p;++G,--q}else{for(Ee=w*ue,Le=w*q,Ae=h,ge=0;ge<A;++ge)ee=Ee+Ae,ae=Le+Ae,re=M[ee],M[ee]=M[ae],M[ae]=re,Ae+=p;--q}break}}}}}m(Ie),m(Ye),q-G<=32?_(G,q,M,h,w,y,v,A,p,R,E):k(G,q,M,h,w,y,v,A,p,R,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,h=M[0]|0,w=x[0]|0,y=M[1]|0,v=x[1]|0,A=y,p=y,R=1;w<=32?_(0,w-1,k,S,h,y,w,v,A,p,R):T(0,w-1,k,S,h,y,w,v,A,p,R)}}};function d(_,T){var m=[T,_].join(","),k=b[m],S=f(_,T),x=g(_,T,S);return k(S,x)}a.exports=d},446(a,o,i){"use strict";var l=i(7640),u={};function s(f){var c=f.order,g=f.dtype,b=[c,g],d=b.join(":"),_=u[d];return _||(u[d]=_=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,h,w,y){return new k(M,y)}},1:function(T,m,k){function S(M,h,w,y){this.data=M,this.shape=[h],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(h,w){return T==="generic"?this.data.set(this.offset+this.stride[0]*h,w):this.data[this.offset+this.stride[0]*h]=w},x.get=function(h){return T==="generic"?this.data.get(this.offset+this.stride[0]*h):this.data[this.offset+this.stride[0]*h]},x.index=function(h){return this.offset+this.stride[0]*h},x.hi=function(h){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,this.stride[0],this.offset)},x.lo=function(h){var w=this.offset,y=0,v=this.shape[0],A=this.stride[0];return typeof h=="number"&&h>=0&&(y=h|0,w+=A*y,v-=y),new S(this.data,v,A,w)},x.step=function(h){var w=this.shape[0],y=this.stride[0],v=this.offset,A=0,p=Math.ceil;return typeof h=="number"&&(A=h|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(h){h=h===void 0?0:h|0;var w=this.shape,y=this.stride;return new S(this.data,w[h],y[h],this.offset)},x.pick=function(h){var w=[],y=[],v=this.offset;typeof h=="number"&&h>=0?v=v+this.stride[0]*h|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(h,w,y,v){return new S(h,w[0],y[0],v)}},2:function(T,m,k){function S(M,h,w,y,v,A){this.data=M,this.shape=[h,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(h,w,y){return T==="generic"?this.data.set(this.offset+this.stride[0]*h+this.stride[1]*w,y):this.data[this.offset+this.stride[0]*h+this.stride[1]*w]=y},x.get=function(h,w){return T==="generic"?this.data.get(this.offset+this.stride[0]*h+this.stride[1]*w):this.data[this.offset+this.stride[0]*h+this.stride[1]*w]},x.index=function(h,w){return this.offset+this.stride[0]*h+this.stride[1]*w},x.hi=function(h,w){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,typeof w!="number"||w<0?this.shape[1]:w|0,this.stride[0],this.stride[1],this.offset)},x.lo=function(h,w){var y=this.offset,v=0,A=this.shape[0],p=this.shape[1],R=this.stride[0],E=this.stride[1];return typeof h=="number"&&h>=0&&(v=h|0,y+=R*v,A-=v),typeof w=="number"&&w>=0&&(v=w|0,y+=E*v,p-=v),new S(this.data,A,p,R,E,y)},x.step=function(h,w){var y=this.shape[0],v=this.shape[1],A=this.stride[0],p=this.stride[1],R=this.offset,E=0,D=Math.ceil;return typeof h=="number"&&(E=h|0,E<0?(R+=A*(y-1),y=D(-y/E)):y=D(y/E),A*=E),typeof w=="number"&&(E=w|0,E<0?(R+=p*(v-1),v=D(-v/E)):v=D(v/E),p*=E),new S(this.data,y,v,A,p,R)},x.transpose=function(h,w){h=h===void 0?0:h|0,w=w===void 0?1:w|0;var y=this.shape,v=this.stride;return new S(this.data,y[h],y[w],v[h],v[w],this.offset)},x.pick=function(h,w){var y=[],v=[],A=this.offset;typeof h=="number"&&h>=0?A=A+this.stride[0]*h|0:(y.push(this.shape[0]),v.push(this.stride[0])),typeof 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(h,w,y,v){return new S(h,w[0],w[1],y[0],y[1],v)}},3:function(T,m,k){function S(M,h,w,y,v,A,p,R){this.data=M,this.shape=[h,w,y],this.stride=[v,A,p],this.offset=R|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 h=Math.abs(this.stride[0]),w=Math.abs(this.stride[1]),y=Math.abs(this.stride[2]);return h>w?w>y?[2,1,0]:h>y?[1,2,0]:[1,0,2]:h>y?[2,0,1]:y>w?[0,1,2]:[0,2,1]}}),x.set=function(h,w,y,v){return T==="generic"?this.data.set(this.offset+this.stride[0]*h+this.stride[1]*w+this.stride[2]*y,v):this.data[this.offset+this.stride[0]*h+this.stride[1]*w+this.stride[2]*y]=v},x.get=function(h,w,y){return T==="generic"?this.data.get(this.offset+this.stride[0]*h+this.stride[1]*w+this.stride[2]*y):this.data[this.offset+this.stride[0]*h+this.stride[1]*w+this.stride[2]*y]},x.index=function(h,w,y){return this.offset+this.stride[0]*h+this.stride[1]*w+this.stride[2]*y},x.hi=function(h,w,y){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|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(h,w,y){var v=this.offset,A=0,p=this.shape[0],R=this.shape[1],E=this.shape[2],D=this.stride[0],I=this.stride[1],F=this.stride[2];return typeof h=="number"&&h>=0&&(A=h|0,v+=D*A,p-=A),typeof w=="number"&&w>=0&&(A=w|0,v+=I*A,R-=A),typeof y=="number"&&y>=0&&(A=y|0,v+=F*A,E-=A),new S(this.data,p,R,E,D,I,F,v)},x.step=function(h,w,y){var v=this.shape[0],A=this.shape[1],p=this.shape[2],R=this.stride[0],E=this.stride[1],D=this.stride[2],I=this.offset,F=0,P=Math.ceil;return typeof h=="number"&&(F=h|0,F<0?(I+=R*(v-1),v=P(-v/F)):v=P(v/F),R*=F),typeof w=="number"&&(F=w|0,F<0?(I+=E*(A-1),A=P(-A/F)):A=P(A/F),E*=F),typeof y=="number"&&(F=y|0,F<0?(I+=D*(p-1),p=P(-p/F)):p=P(p/F),D*=F),new S(this.data,v,A,p,R,E,D,I)},x.transpose=function(h,w,y){h=h===void 0?0:h|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[h],v[w],v[y],A[h],A[w],A[y],this.offset)},x.pick=function(h,w,y){var v=[],A=[],p=this.offset;typeof h=="number"&&h>=0?p=p+this.stride[0]*h|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 R=m[v.length+1];return R(this.data,v,A,p)},function(h,w,y,v){return new S(h,w[0],w[1],w[2],y[0],y[1],y[2],v)}},4:function(T,m,k){function S(M,h,w,y,v,A,p,R,E,D){this.data=M,this.shape=[h,w,y,v],this.stride=[A,p,R,E],this.offset=D|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(h,w,y,v,A){return T==="generic"?this.data.set(this.offset+this.stride[0]*h+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v,A):this.data[this.offset+this.stride[0]*h+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v]=A},x.get=function(h,w,y,v){return T==="generic"?this.data.get(this.offset+this.stride[0]*h+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v):this.data[this.offset+this.stride[0]*h+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v]},x.index=function(h,w,y,v){return this.offset+this.stride[0]*h+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v},x.hi=function(h,w,y,v){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|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(h,w,y,v){var A=this.offset,p=0,R=this.shape[0],E=this.shape[1],D=this.shape[2],I=this.shape[3],F=this.stride[0],P=this.stride[1],L=this.stride[2],z=this.stride[3];return typeof h=="number"&&h>=0&&(p=h|0,A+=F*p,R-=p),typeof w=="number"&&w>=0&&(p=w|0,A+=P*p,E-=p),typeof y=="number"&&y>=0&&(p=y|0,A+=L*p,D-=p),typeof v=="number"&&v>=0&&(p=v|0,A+=z*p,I-=p),new S(this.data,R,E,D,I,F,P,L,z,A)},x.step=function(h,w,y,v){var A=this.shape[0],p=this.shape[1],R=this.shape[2],E=this.shape[3],D=this.stride[0],I=this.stride[1],F=this.stride[2],P=this.stride[3],L=this.offset,z=0,O=Math.ceil;return typeof h=="number"&&(z=h|0,z<0?(L+=D*(A-1),A=O(-A/z)):A=O(A/z),D*=z),typeof w=="number"&&(z=w|0,z<0?(L+=I*(p-1),p=O(-p/z)):p=O(p/z),I*=z),typeof y=="number"&&(z=y|0,z<0?(L+=F*(R-1),R=O(-R/z)):R=O(R/z),F*=z),typeof v=="number"&&(z=v|0,z<0?(L+=P*(E-1),E=O(-E/z)):E=O(E/z),P*=z),new S(this.data,A,p,R,E,D,I,F,P,L)},x.transpose=function(h,w,y,v){h=h===void 0?0:h|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[h],A[w],A[y],A[v],p[h],p[w],p[y],p[v],this.offset)},x.pick=function(h,w,y,v){var A=[],p=[],R=this.offset;typeof h=="number"&&h>=0?R=R+this.stride[0]*h|0:(A.push(this.shape[0]),p.push(this.stride[0])),typeof w=="number"&&w>=0?R=R+this.stride[1]*w|0:(A.push(this.shape[1]),p.push(this.stride[1])),typeof y=="number"&&y>=0?R=R+this.stride[2]*y|0:(A.push(this.shape[2]),p.push(this.stride[2])),typeof v=="number"&&v>=0?R=R+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,R)},function(h,w,y,v){return new S(h,w[0],w[1],w[2],w[3],y[0],y[1],y[2],y[3],v)}},5:function(m,k,S){function x(h,w,y,v,A,p,R,E,D,I,F,P){this.data=h,this.shape=[w,y,v,A,p],this.stride=[R,E,D,I,F],this.offset=P|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,R){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,R):this.data[this.offset+this.stride[0]*w+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p]=R},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 R=this.offset,E=0,D=this.shape[0],I=this.shape[1],F=this.shape[2],P=this.shape[3],L=this.shape[4],z=this.stride[0],O=this.stride[1],B=this.stride[2],V=this.stride[3],J=this.stride[4];return typeof w=="number"&&w>=0&&(E=w|0,R+=z*E,D-=E),typeof y=="number"&&y>=0&&(E=y|0,R+=O*E,I-=E),typeof v=="number"&&v>=0&&(E=v|0,R+=B*E,F-=E),typeof A=="number"&&A>=0&&(E=A|0,R+=V*E,P-=E),typeof p=="number"&&p>=0&&(E=p|0,R+=J*E,L-=E),new x(this.data,D,I,F,P,L,z,O,B,V,J,R)},M.step=function(w,y,v,A,p){var R=this.shape[0],E=this.shape[1],D=this.shape[2],I=this.shape[3],F=this.shape[4],P=this.stride[0],L=this.stride[1],z=this.stride[2],O=this.stride[3],B=this.stride[4],V=this.offset,J=0,Q=Math.ceil;return typeof w=="number"&&(J=w|0,J<0?(V+=P*(R-1),R=Q(-R/J)):R=Q(R/J),P*=J),typeof y=="number"&&(J=y|0,J<0?(V+=L*(E-1),E=Q(-E/J)):E=Q(E/J),L*=J),typeof v=="number"&&(J=v|0,J<0?(V+=z*(D-1),D=Q(-D/J)):D=Q(D/J),z*=J),typeof A=="number"&&(J=A|0,J<0?(V+=O*(I-1),I=Q(-I/J)):I=Q(I/J),O*=J),typeof p=="number"&&(J=p|0,J<0?(V+=B*(F-1),F=Q(-F/J)):F=Q(F/J),B*=J),new x(this.data,R,E,D,I,F,P,L,z,O,B,V)},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 R=this.shape,E=this.stride;return new x(this.data,R[w],R[y],R[v],R[A],R[p],E[w],E[y],E[v],E[A],E[p],this.offset)},M.pick=function(w,y,v,A,p){var R=[],E=[],D=this.offset;typeof w=="number"&&w>=0?D=D+this.stride[0]*w|0:(R.push(this.shape[0]),E.push(this.stride[0])),typeof y=="number"&&y>=0?D=D+this.stride[1]*y|0:(R.push(this.shape[1]),E.push(this.stride[1])),typeof v=="number"&&v>=0?D=D+this.stride[2]*v|0:(R.push(this.shape[2]),E.push(this.stride[2])),typeof A=="number"&&A>=0?D=D+this.stride[3]*A|0:(R.push(this.shape[3]),E.push(this.stride[3])),typeof p=="number"&&p>=0?D=D+this.stride[4]*p|0:(R.push(this.shape[4]),E.push(this.stride[4]));var I=k[R.length+1];return I(this.data,R,E,D)},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,d[T][0]):S(T,d[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 d={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=d.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,h=1;M>=0;--M)k[M]=h,h*=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=d[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),d=l.lo(c);return g>c==c>0?d===s?(b+=1,d=0):d+=1:d===0?(d=s,b-=1):d-=1,l.pack(d,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,d=0;d<c;++d)g[d]=[0,0,0];for(var d=0;d<u.length;++d)for(var _=u[d],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],h=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]=h[p]-M[p],A+=v[p]*v[p];if(y*A>b)for(var R=g[m],E=1/Math.sqrt(y*A),p=0;p<3;++p){var D=(p+1)%3,I=(p+2)%3;R[p]+=E*(v[D]*w[I]-v[I]*w[D])}}for(var d=0;d<c;++d){for(var R=g[d],F=0,p=0;p<3;++p)F+=R[p]*R[p];if(F>b)for(var E=1/Math.sqrt(F),p=0;p<3;++p)R[p]*=E;else for(var p=0;p<3;++p)R[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,d=0;d<c;++d){for(var _=u[d],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 h=(m+1)%3,w=(m+2)%3;x[m]=k[h]*S[w]-k[w]*S[h],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[d]=x}return g}},4081(a){"use strict";a.exports=o;function o(i,l,u,s,f,c,g,b,d,_){var T=l+c+_;if(m>0){var m=Math.sqrt(T+1);i[0]=.5*(g-d)/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-d)/m):c>=k?(i[0]=.5*(u+f)/m,i[1]=.5*m,i[2]=.5*(d+g)/m,i[3]=.5*(b-s)/m):(i[0]=.5*(s+b)/m,i[1]=.5*(g+d)/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 d(k,S){var x=S[0],M=S[1],h=S[2],w=S[3],y=b(x,M,h,w);y>1e-6?(k[0]=x/y,k[1]=M/y,k[2]=h/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;d(S,S);var x=this.computedMatrix;s(x,S);var M=this.computedCenter,h=this.computedEye,w=this.computedUp,y=Math.exp(this.computedRadius[0]);h[0]=M[0]+y*x[2],h[1]=M[1]+y*x[6],h[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]*h[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 h=this.computedMatrix,w=h[1],y=h[5],v=h[9],A=g(w,y,v);w/=A,y/=A,v/=A;var p=h[0],R=h[4],E=h[8],D=p*w+R*y+E*v;p-=w*D,R-=y*D,E-=v*D;var I=g(p,R,E);p/=I,R/=I,E/=I;var F=h[2],P=h[6],L=h[10],z=F*w+P*y+L*v,O=F*p+P*R+L*E;F-=z*w+O*p,P-=z*y+O*R,L-=z*v+O*E;var B=g(F,P,L);F/=B,P/=B,L/=B;var V=p*S+w*x,J=R*S+y*x,Q=E*S+v*x;this.center.move(k,V,J,Q);var G=Math.exp(this.computedRadius[0]);G=Math.max(1e-4,G+M),this.radius.set(k,Math.log(G))},T.rotate=function(k,S,x,M){this.recalcMatrix(k),S=S||0,x=x||0;var h=this.computedMatrix,w=h[0],y=h[4],v=h[8],A=h[1],p=h[5],R=h[9],E=h[2],D=h[6],I=h[10],F=S*w+x*A,P=S*y+x*p,L=S*v+x*R,z=-(D*L-I*P),O=-(I*F-E*L),B=-(E*P-D*F),V=Math.sqrt(Math.max(0,1-Math.pow(z,2)-Math.pow(O,2)-Math.pow(B,2))),J=b(z,O,B,V);J>1e-6?(z/=J,O/=J,B/=J,V/=J):(z=O=B=0,V=1);var Q=this.computedRotation,G=Q[0],q=Q[1],Z=Q[2],re=Q[3],$=G*V+re*z+q*B-Z*O,ie=q*V+re*O+Z*z-G*B,j=Z*V+re*B+G*O-q*z,te=re*V-G*z-q*O-Z*B;if(M){z=E,O=D,B=I;var ue=Math.sin(M)/g(z,O,B);z*=ue,O*=ue,B*=ue,V=Math.cos(S),$=$*V+te*z+ie*B-j*O,ie=ie*V+te*O+j*z-$*B,j=j*V+te*B+$*O-ie*z,te=te*V-$*z-ie*O-j*B}var ee=b($,ie,j,te);ee>1e-6?($/=ee,ie/=ee,j/=ee,te/=ee):($=ie=j=0,te=1),this.rotation.set(k,$,ie,j,te)},T.lookAt=function(k,S,x,M){this.recalcMatrix(k),x=x||this.computedCenter,S=S||this.computedEye,M=M||this.computedUp;var h=this.computedMatrix;u(h,S,x,M);var w=this.computedRotation;c(w,h[0],h[1],h[2],h[4],h[5],h[6],h[8],h[9],h[10]),d(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]),d(x,x),this.rotation.set(k,x[0],x[1],x[2],x[3]);var M=this.computedMatrix;f(M,S);var h=M[15];if(Math.abs(h)>1e-6){var w=M[12]/h,y=M[13]/h,v=M[14]/h;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 h=k.distance;h&&h>0&&this.radius.set(S,Math.log(h)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function m(k){k=k||{};var S=k.center||[0,0,0],x=k.rotation||[0,0,0,1],M=k.radius||1;S=[].slice.call(S,0,3),x=[].slice.call(x,0,4),d(x,x);var h=new _(x,S,Math.log(M));return h.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&h.lookAt(0,k.eye,k.center,k.up),h}},1371(a,o,i){"use strict";var l=i(3233);a.exports=function(s,f,c){return c=typeof c!="undefined"?c+"":" ",l(c,f)+s}},3202(a){a.exports=function(i,l){l||(l=[0,""]),i=String(i);var u=parseFloat(i,10);return l[0]=u,l[1]=i.match(/[\d.\-\+]*\s*(.*)/)[1]||"",l}},3088(a,o,i){"use strict";a.exports=u;var l=i(3140);function u(s,f){for(var c=f.length|0,g=s.length,b=[new Array(c),new Array(c)],d=0;d<c;++d)b[0][d]=[],b[1][d]=[];for(var d=0;d<g;++d){var _=s[d];b[0][_[0]].push(_),b[1][_[1]].push(_)}for(var T=[],d=0;d<c;++d)b[0][d].length+b[1][d].length===0&&T.push([d]);function m(v,A){var p=b[A][v[A]];p.splice(p.indexOf(v),1)}function k(v,A,p){for(var R,E,D,I=0;I<2;++I)if(b[I][A].length>0){R=b[I][A][0],D=I;break}E=R[D^1];for(var F=0;F<2;++F)for(var P=b[F][A],L=0;L<P.length;++L){var z=P[L],O=z[F^1],B=l(f[v],f[A],f[E],f[O]);B>0&&(R=z,E=O,D=F)}return p||R&&m(R,D),E}function S(v,A){var p=b[A][v][0],R=[v];m(p,A);for(var E=p[A^1],D=A;;){for(;E!==v;)R.push(E),E=k(R[R.length-2],E,!1);if(b[0][v].length+b[1][v].length===0)break;var I=R[R.length-1],F=v,P=R[1],L=k(I,F,!0);if(l(f[I],f[F],f[P],f[L])<0)break;R.push(v),E=k(I,F)}return R}function x(v,A){return A[1]===A[A.length-1]}for(var d=0;d<c;++d)for(var M=0;M<2;++M){for(var h=[];b[M][d].length>0;){var w=b[0][d].length,y=S(d,M);x(h,y)?h.push.apply(h,y):(h.length>0&&T.push(h),h=y)}h.length>0&&T.push(h)}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),d=[],_=0;_<f.length;++_){var T=c[_].length;b[_]=T,g[_]=!0,T<=1&&d.push(_)}for(;d.length>0;){var m=d.pop();g[m]=!1;for(var k=c[m],_=0;_<k.length;++_){var S=k[_];--b[S]===0&&d.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 h=[],_=0;_<s.length;++_){var w=s[_];g[w[0]]&&g[w[1]]&&h.push([x[w[0]],x[w[1]]])}return[h,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 d(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),h=0;h<S;++h)if(M[h].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]),he=f(K[0],X[1]),pe=f(K[0],K[1]);Le=c(Le,c(c(ye,oe),c(he,pe)))}return Le[Le.length-1]>0}w=w.filter(y);for(var v=w.length,A=new Array(v),p=new Array(v),h=0;h<v;++h){A[h]=h;var R=new Array(v),E=w[h].map(function(Ee){return k[Ee]}),D=s([E]),I=0;e:for(var F=0;F<v;++F)if(R[F]=0,h!==F){for(var P=w[F],L=P.length,z=0;z<L;++z){var O=D(k[P[z]]);if(O!==0){O<0&&(R[F]=1,I+=1);continue e}}R[F]=1,I+=1}p[h]=[I,h,R]}p.sort(function(ge,Ee){return Ee[0]-ge[0]});for(var h=0;h<v;++h)for(var R=p[h],B=R[1],V=R[2],F=0;F<v;++F)V[F]&&(A[F]=B);for(var J=_(v),h=0;h<v;++h)J[h].push(A[h]),J[A[h]].push(h);for(var Q={},G=d(S,!1),h=0;h<v;++h)for(var P=w[h],L=P.length,F=0;F<L;++F){var q=P[F],Z=P[(F+1)%L],re=Math.min(q,Z)+":"+Math.max(q,Z);if(re in Q){var $=Q[re];J[$].push(h),J[h].push($),G[q]=G[Z]=!0}else Q[re]=h}function ie(ge){for(var Ee=ge.length,Le=0;Le<Ee;++Le)if(!G[ge[Le]])return!1;return!0}for(var j=[],te=d(v,-1),h=0;h<v;++h)A[h]===h&&!ie(w[h])?(j.push(h),te[h]=0):te[h]=-1;for(var ue=[];j.length>0;){var ee=j.pop(),ae=J[ee];g(ae,function(ge,Ee){return ge-Ee});var fe=ae.length,we=te[ee],Me;if(we===0){var P=w[ee];Me=[P]}for(var h=0;h<fe;++h){var ke=ae[h];if(!(te[ke]>=0)&&(te[ke]=we^1,j.push(ke),we===0)){var P=w[ke];ie(P)||(P.reverse(),Me.push(P))}}we===0&&ue.push(Me)}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 h=S[x];return h?!!h.queryPoint(M,c):!1}}function b(S){for(var x={},M=0;M<S.length;++M){var h=S[M],w=h[0][0],y=h[0][1],v=h[1][1],A=[Math.min(y,v),Math.max(y,v)];w in x?x[w].push(A):x[w]=[A]}for(var p={},R=Object.keys(x),M=0;M<R.length;++M){var E=x[R[M]];p[R[M]]=s(E)}return g(p)}function d(S,x){return function(M){var h=f.le(x,M[0]);if(h<0)return 1;var w=S[h];if(!w)if(h>0&&x[h]===M[0])w=S[h-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(h){return S(h[0],h[1])?0:x(h)}}function k(S){for(var x=S.length,M=[],h=[],w=0,y=0;y<x;++y)for(var v=S[y],A=v.length,p=A-1,R=0;R<A;p=R++){var E=v[p],D=v[R];E[0]===D[0]?h.push([E,D]):M.push([E,D])}if(M.length===0)return h.length===0?_:T(b(h));var I=u(M),F=d(I.slabs,I.coordinates);return h.length===0?F:m(b(h),F)}},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 d=0;d<g.length;++d)o[d]=s[d]-g[d],i[d]=f[d]-s[d],l[d]=c[d]-s[d];for(var _=0,T=0,m=0,k=0,S=0,x=0,d=0;d<g.length;++d){var M=i[d],h=l[d],w=o[d];_+=M*M,T+=M*h,m+=h*h,k+=w*M,S+=w*h,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 R=1/y;v*=R,A*=R,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+x}else{var E,D,I,F;v<0?(E=T+k,D=m+S,D>E?(I=D-E,F=_-2*T+m,I>=F?(v=1,A=0,p=_+2*k+x):(v=I/F,A=1-v,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+x)):(v=0,D<=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,D=_+k,D>E?(I=D-E,F=_-2*T+m,I>=F?(A=1,v=0,p=m+2*S+x):(A=I/F,v=1-A,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+x)):(A=0,D<=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):(F=_-2*T+m,I>=F?(v=1,A=0,p=_+2*k+x):(v=I/F,A=1-v,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+x)))}for(var P=1-v-A,d=0;d<g.length;++d)b[d]=P*s[d]+v*f[d]+A*c[d];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,d=new Array(b),_=0;_<b;++_)d[_]=u(f[_],g);return d}},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,d=0;d<g;++d){var _=c[d],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,d=g-b;d&&(i[--s]=u,u=d)}for(var _=0,f=s;f<l;++f){var c=i[f],g=u;u=c+g;var b=u-c,d=g-b;d&&(i[_++]=d)}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,h,w){return function(v){return w(x(h(v[0][0],v[1][1]),h(-v[0][1],v[1][0])))}}function b(x,M,h,w){return function(v){return w(x(M(x(h(v[1][1],v[2][2]),h(-v[1][2],v[2][1])),v[0][0]),x(M(x(h(v[1][0],v[2][2]),h(-v[1][2],v[2][0])),-v[0][1]),M(x(h(v[1][0],v[2][1]),h(-v[1][1],v[2][0])),v[0][2]))))}}function d(x,M,h,w){return function(v){return w(x(x(M(x(M(x(h(v[2][2],v[3][3]),h(-v[2][3],v[3][2])),v[1][1]),x(M(x(h(v[2][1],v[3][3]),h(-v[2][3],v[3][1])),-v[1][2]),M(x(h(v[2][1],v[3][2]),h(-v[2][2],v[3][1])),v[1][3]))),v[0][0]),M(x(M(x(h(v[2][2],v[3][3]),h(-v[2][3],v[3][2])),v[1][0]),x(M(x(h(v[2][0],v[3][3]),h(-v[2][3],v[3][0])),-v[1][2]),M(x(h(v[2][0],v[3][2]),h(-v[2][2],v[3][0])),v[1][3]))),-v[0][1])),x(M(x(M(x(h(v[2][1],v[3][3]),h(-v[2][3],v[3][1])),v[1][0]),x(M(x(h(v[2][0],v[3][3]),h(-v[2][3],v[3][0])),-v[1][1]),M(x(h(v[2][0],v[3][1]),h(-v[2][1],v[3][0])),v[1][3]))),v[0][2]),M(x(M(x(h(v[2][1],v[3][2]),h(-v[2][2],v[3][1])),v[1][0]),x(M(x(h(v[2][0],v[3][2]),h(-v[2][2],v[3][0])),-v[1][1]),M(x(h(v[2][0],v[3][1]),h(-v[2][1],v[3][0])),v[1][2]))),-v[0][3]))))}}function _(x,M,h,w){return function(v){return w(x(x(M(x(x(M(x(M(x(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][2]),x(M(x(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),-v[2][3]),M(x(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][4]))),v[1][1]),M(x(M(x(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][1]),x(M(x(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),-v[2][3]),M(x(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),v[2][4]))),-v[1][2])),x(M(x(M(x(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),v[2][1]),x(M(x(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),-v[2][2]),M(x(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][4]))),v[1][3]),M(x(M(x(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][1]),x(M(x(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),-v[2][2]),M(x(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][3]))),-v[1][4]))),v[0][0]),M(x(x(M(x(M(x(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][2]),x(M(x(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),-v[2][3]),M(x(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][4]))),v[1][0]),M(x(M(x(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][0]),x(M(x(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][3]),M(x(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),v[2][4]))),-v[1][2])),x(M(x(M(x(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),v[2][0]),x(M(x(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][2]),M(x(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),v[2][4]))),v[1][3]),M(x(M(x(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][0]),x(M(x(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),-v[2][2]),M(x(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),v[2][3]))),-v[1][4]))),-v[0][1])),x(M(x(x(M(x(M(x(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][1]),x(M(x(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),-v[2][3]),M(x(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),v[2][4]))),v[1][0]),M(x(M(x(h(v[3][3],v[4][4]),h(-v[3][4],v[4][3])),v[2][0]),x(M(x(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][3]),M(x(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),v[2][4]))),-v[1][1])),x(M(x(M(x(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),v[2][0]),x(M(x(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][1]),M(x(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][4]))),v[1][3]),M(x(M(x(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),v[2][0]),x(M(x(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),-v[2][1]),M(x(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][3]))),-v[1][4]))),v[0][2]),x(M(x(x(M(x(M(x(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),v[2][1]),x(M(x(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),-v[2][2]),M(x(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][4]))),v[1][0]),M(x(M(x(h(v[3][2],v[4][4]),h(-v[3][4],v[4][2])),v[2][0]),x(M(x(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][2]),M(x(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),v[2][4]))),-v[1][1])),x(M(x(M(x(h(v[3][1],v[4][4]),h(-v[3][4],v[4][1])),v[2][0]),x(M(x(h(v[3][0],v[4][4]),h(-v[3][4],v[4][0])),-v[2][1]),M(x(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][4]))),v[1][2]),M(x(M(x(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][0]),x(M(x(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),-v[2][1]),M(x(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][2]))),-v[1][4]))),-v[0][3]),M(x(x(M(x(M(x(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][1]),x(M(x(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),-v[2][2]),M(x(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][3]))),v[1][0]),M(x(M(x(h(v[3][2],v[4][3]),h(-v[3][3],v[4][2])),v[2][0]),x(M(x(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),-v[2][2]),M(x(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),v[2][3]))),-v[1][1])),x(M(x(M(x(h(v[3][1],v[4][3]),h(-v[3][3],v[4][1])),v[2][0]),x(M(x(h(v[3][0],v[4][3]),h(-v[3][3],v[4][0])),-v[2][1]),M(x(h(v[3][0],v[4][1]),h(-v[3][1],v[4][0])),v[2][3]))),v[1][2]),M(x(M(x(h(v[3][1],v[4][2]),h(-v[3][2],v[4][1])),v[2][0]),x(M(x(h(v[3][0],v[4][2]),h(-v[3][2],v[4][0])),-v[2][1]),M(x(h(v[3][0],v[4][1]),h(-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?d: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,h,w,y,v,A,p){return function(E){switch(E.length){case 0:return x(E);case 1:return M(E);case 2:return h(E);case 3:return w(E);case 4:return y(E);case 5:return v(E)}var D=A[E.length];return D||(D=A[E.length]=p(E.length)),D(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 d(){return 0}function _(){return 0}function T(y,v,A,p){function R(E,D,I){var F=A(E[0],E[0]),P=p(F,D[0]),L=p(F,I[0]),z=A(D[0],D[0]),O=p(z,E[0]),B=p(z,I[0]),V=A(I[0],I[0]),J=p(V,E[0]),Q=p(V,D[0]),G=y(v(Q,B),v(O,P)),q=v(J,L),Z=v(G,q);return Z[Z.length-1]}return R}function m(y,v,A,p){function R(E,D,I,F){var P=y(A(E[0],E[0]),A(E[1],E[1])),L=p(P,D[0]),z=p(P,I[0]),O=p(P,F[0]),B=y(A(D[0],D[0]),A(D[1],D[1])),V=p(B,E[0]),J=p(B,I[0]),Q=p(B,F[0]),G=y(A(I[0],I[0]),A(I[1],I[1])),q=p(G,E[0]),Z=p(G,D[0]),re=p(G,F[0]),$=y(A(F[0],F[0]),A(F[1],F[1])),ie=p($,E[0]),j=p($,D[0]),te=p($,I[0]),ue=y(y(p(v(te,re),D[1]),y(p(v(j,Q),-I[1]),p(v(Z,J),F[1]))),y(p(v(j,Q),E[1]),y(p(v(ie,O),-D[1]),p(v(V,L),F[1])))),ee=y(y(p(v(te,re),E[1]),y(p(v(ie,O),-I[1]),p(v(q,z),F[1]))),y(p(v(Z,J),E[1]),y(p(v(q,z),-D[1]),p(v(V,L),I[1])))),ae=v(ue,ee);return ae[ae.length-1]}return R}function k(y,v,A,p){function R(E,D,I,F,P){var L=y(A(E[0],E[0]),y(A(E[1],E[1]),A(E[2],E[2]))),z=p(L,D[0]),O=p(L,I[0]),B=p(L,F[0]),V=p(L,P[0]),J=y(A(D[0],D[0]),y(A(D[1],D[1]),A(D[2],D[2]))),Q=p(J,E[0]),G=p(J,I[0]),q=p(J,F[0]),Z=p(J,P[0]),re=y(A(I[0],I[0]),y(A(I[1],I[1]),A(I[2],I[2]))),$=p(re,E[0]),ie=p(re,D[0]),j=p(re,F[0]),te=p(re,P[0]),ue=y(A(F[0],F[0]),y(A(F[1],F[1]),A(F[2],F[2]))),ee=p(ue,E[0]),ae=p(ue,D[0]),fe=p(ue,I[0]),we=p(ue,P[0]),Me=y(A(P[0],P[0]),y(A(P[1],P[1]),A(P[2],P[2]))),ke=p(Me,E[0]),ge=p(Me,D[0]),Ee=p(Me,I[0]),Le=p(Me,F[0]),se=y(y(y(p(y(p(v(Le,we),I[1]),y(p(v(Ee,te),-F[1]),p(v(fe,j),P[1]))),D[2]),y(p(y(p(v(Le,we),D[1]),y(p(v(ge,Z),-F[1]),p(v(ae,q),P[1]))),-I[2]),p(y(p(v(Ee,te),D[1]),y(p(v(ge,Z),-I[1]),p(v(ie,G),P[1]))),F[2]))),y(p(y(p(v(fe,j),D[1]),y(p(v(ae,q),-I[1]),p(v(ie,G),F[1]))),-P[2]),y(p(y(p(v(Le,we),D[1]),y(p(v(ge,Z),-F[1]),p(v(ae,q),P[1]))),E[2]),p(y(p(v(Le,we),E[1]),y(p(v(ke,V),-F[1]),p(v(ee,B),P[1]))),-D[2])))),y(y(p(y(p(v(ge,Z),E[1]),y(p(v(ke,V),-D[1]),p(v(Q,z),P[1]))),F[2]),y(p(y(p(v(ae,q),E[1]),y(p(v(ee,B),-D[1]),p(v(Q,z),F[1]))),-P[2]),p(y(p(v(fe,j),D[1]),y(p(v(ae,q),-I[1]),p(v(ie,G),F[1]))),E[2]))),y(p(y(p(v(fe,j),E[1]),y(p(v(ee,B),-I[1]),p(v($,O),F[1]))),-D[2]),y(p(y(p(v(ae,q),E[1]),y(p(v(ee,B),-D[1]),p(v(Q,z),F[1]))),I[2]),p(y(p(v(ie,G),E[1]),y(p(v($,O),-D[1]),p(v(Q,z),I[1]))),-F[2]))))),X=y(y(y(p(y(p(v(Le,we),I[1]),y(p(v(Ee,te),-F[1]),p(v(fe,j),P[1]))),E[2]),p(y(p(v(Le,we),E[1]),y(p(v(ke,V),-F[1]),p(v(ee,B),P[1]))),-I[2])),y(p(y(p(v(Ee,te),E[1]),y(p(v(ke,V),-I[1]),p(v($,O),P[1]))),F[2]),p(y(p(v(fe,j),E[1]),y(p(v(ee,B),-I[1]),p(v($,O),F[1]))),-P[2]))),y(y(p(y(p(v(Ee,te),D[1]),y(p(v(ge,Z),-I[1]),p(v(ie,G),P[1]))),E[2]),p(y(p(v(Ee,te),E[1]),y(p(v(ke,V),-I[1]),p(v($,O),P[1]))),-D[2])),y(p(y(p(v(ge,Z),E[1]),y(p(v(ke,V),-D[1]),p(v(Q,z),P[1]))),I[2]),p(y(p(v(ie,G),E[1]),y(p(v($,O),-D[1]),p(v(Q,z),I[1]))),-P[2])))),K=v(se,X);return K[K.length-1]}return R}function S(y,v,A,p){function R(E,D,I,F,P,L){var z=y(y(A(E[0],E[0]),A(E[1],E[1])),y(A(E[2],E[2]),A(E[3],E[3]))),O=p(z,D[0]),B=p(z,I[0]),V=p(z,F[0]),J=p(z,P[0]),Q=p(z,L[0]),G=y(y(A(D[0],D[0]),A(D[1],D[1])),y(A(D[2],D[2]),A(D[3],D[3]))),q=p(G,E[0]),Z=p(G,I[0]),re=p(G,F[0]),$=p(G,P[0]),ie=p(G,L[0]),j=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(j,E[0]),ue=p(j,D[0]),ee=p(j,F[0]),ae=p(j,P[0]),fe=p(j,L[0]),we=y(y(A(F[0],F[0]),A(F[1],F[1])),y(A(F[2],F[2]),A(F[3],F[3]))),Me=p(we,E[0]),ke=p(we,D[0]),ge=p(we,I[0]),Ee=p(we,P[0]),Le=p(we,L[0]),se=y(y(A(P[0],P[0]),A(P[1],P[1])),y(A(P[2],P[2]),A(P[3],P[3]))),X=p(se,E[0]),K=p(se,D[0]),ye=p(se,I[0]),oe=p(se,F[0]),he=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,D[0]),ve=p(pe,I[0]),de=p(pe,F[0]),be=p(pe,P[0]),Ae=y(y(y(p(y(y(p(y(p(v(be,he),F[1]),y(p(v(de,Le),-P[1]),p(v(oe,Ee),L[1]))),I[2]),p(y(p(v(be,he),I[1]),y(p(v(ve,fe),-P[1]),p(v(ye,ae),L[1]))),-F[2])),y(p(y(p(v(de,Le),I[1]),y(p(v(ve,fe),-F[1]),p(v(ge,ee),L[1]))),P[2]),p(y(p(v(oe,Ee),I[1]),y(p(v(ye,ae),-F[1]),p(v(ge,ee),P[1]))),-L[2]))),D[3]),y(p(y(y(p(y(p(v(be,he),F[1]),y(p(v(de,Le),-P[1]),p(v(oe,Ee),L[1]))),D[2]),p(y(p(v(be,he),D[1]),y(p(v(Se,ie),-P[1]),p(v(K,$),L[1]))),-F[2])),y(p(y(p(v(de,Le),D[1]),y(p(v(Se,ie),-F[1]),p(v(ke,re),L[1]))),P[2]),p(y(p(v(oe,Ee),D[1]),y(p(v(K,$),-F[1]),p(v(ke,re),P[1]))),-L[2]))),-I[3]),p(y(y(p(y(p(v(be,he),I[1]),y(p(v(ve,fe),-P[1]),p(v(ye,ae),L[1]))),D[2]),p(y(p(v(be,he),D[1]),y(p(v(Se,ie),-P[1]),p(v(K,$),L[1]))),-I[2])),y(p(y(p(v(ve,fe),D[1]),y(p(v(Se,ie),-I[1]),p(v(ue,Z),L[1]))),P[2]),p(y(p(v(ye,ae),D[1]),y(p(v(K,$),-I[1]),p(v(ue,Z),P[1]))),-L[2]))),F[3]))),y(y(p(y(y(p(y(p(v(de,Le),I[1]),y(p(v(ve,fe),-F[1]),p(v(ge,ee),L[1]))),D[2]),p(y(p(v(de,Le),D[1]),y(p(v(Se,ie),-F[1]),p(v(ke,re),L[1]))),-I[2])),y(p(y(p(v(ve,fe),D[1]),y(p(v(Se,ie),-I[1]),p(v(ue,Z),L[1]))),F[2]),p(y(p(v(ge,ee),D[1]),y(p(v(ke,re),-I[1]),p(v(ue,Z),F[1]))),-L[2]))),-P[3]),p(y(y(p(y(p(v(oe,Ee),I[1]),y(p(v(ye,ae),-F[1]),p(v(ge,ee),P[1]))),D[2]),p(y(p(v(oe,Ee),D[1]),y(p(v(K,$),-F[1]),p(v(ke,re),P[1]))),-I[2])),y(p(y(p(v(ye,ae),D[1]),y(p(v(K,$),-I[1]),p(v(ue,Z),P[1]))),F[2]),p(y(p(v(ge,ee),D[1]),y(p(v(ke,re),-I[1]),p(v(ue,Z),F[1]))),-P[2]))),L[3])),y(p(y(y(p(y(p(v(be,he),F[1]),y(p(v(de,Le),-P[1]),p(v(oe,Ee),L[1]))),D[2]),p(y(p(v(be,he),D[1]),y(p(v(Se,ie),-P[1]),p(v(K,$),L[1]))),-F[2])),y(p(y(p(v(de,Le),D[1]),y(p(v(Se,ie),-F[1]),p(v(ke,re),L[1]))),P[2]),p(y(p(v(oe,Ee),D[1]),y(p(v(K,$),-F[1]),p(v(ke,re),P[1]))),-L[2]))),E[3]),p(y(y(p(y(p(v(be,he),F[1]),y(p(v(de,Le),-P[1]),p(v(oe,Ee),L[1]))),E[2]),p(y(p(v(be,he),E[1]),y(p(v(me,Q),-P[1]),p(v(X,J),L[1]))),-F[2])),y(p(y(p(v(de,Le),E[1]),y(p(v(me,Q),-F[1]),p(v(Me,V),L[1]))),P[2]),p(y(p(v(oe,Ee),E[1]),y(p(v(X,J),-F[1]),p(v(Me,V),P[1]))),-L[2]))),-D[3])))),y(y(y(p(y(y(p(y(p(v(be,he),D[1]),y(p(v(Se,ie),-P[1]),p(v(K,$),L[1]))),E[2]),p(y(p(v(be,he),E[1]),y(p(v(me,Q),-P[1]),p(v(X,J),L[1]))),-D[2])),y(p(y(p(v(Se,ie),E[1]),y(p(v(me,Q),-D[1]),p(v(q,O),L[1]))),P[2]),p(y(p(v(K,$),E[1]),y(p(v(X,J),-D[1]),p(v(q,O),P[1]))),-L[2]))),F[3]),p(y(y(p(y(p(v(de,Le),D[1]),y(p(v(Se,ie),-F[1]),p(v(ke,re),L[1]))),E[2]),p(y(p(v(de,Le),E[1]),y(p(v(me,Q),-F[1]),p(v(Me,V),L[1]))),-D[2])),y(p(y(p(v(Se,ie),E[1]),y(p(v(me,Q),-D[1]),p(v(q,O),L[1]))),F[2]),p(y(p(v(ke,re),E[1]),y(p(v(Me,V),-D[1]),p(v(q,O),F[1]))),-L[2]))),-P[3])),y(p(y(y(p(y(p(v(oe,Ee),D[1]),y(p(v(K,$),-F[1]),p(v(ke,re),P[1]))),E[2]),p(y(p(v(oe,Ee),E[1]),y(p(v(X,J),-F[1]),p(v(Me,V),P[1]))),-D[2])),y(p(y(p(v(K,$),E[1]),y(p(v(X,J),-D[1]),p(v(q,O),P[1]))),F[2]),p(y(p(v(ke,re),E[1]),y(p(v(Me,V),-D[1]),p(v(q,O),F[1]))),-P[2]))),L[3]),p(y(y(p(y(p(v(de,Le),I[1]),y(p(v(ve,fe),-F[1]),p(v(ge,ee),L[1]))),D[2]),p(y(p(v(de,Le),D[1]),y(p(v(Se,ie),-F[1]),p(v(ke,re),L[1]))),-I[2])),y(p(y(p(v(ve,fe),D[1]),y(p(v(Se,ie),-I[1]),p(v(ue,Z),L[1]))),F[2]),p(y(p(v(ge,ee),D[1]),y(p(v(ke,re),-I[1]),p(v(ue,Z),F[1]))),-L[2]))),E[3]))),y(y(p(y(y(p(y(p(v(de,Le),I[1]),y(p(v(ve,fe),-F[1]),p(v(ge,ee),L[1]))),E[2]),p(y(p(v(de,Le),E[1]),y(p(v(me,Q),-F[1]),p(v(Me,V),L[1]))),-I[2])),y(p(y(p(v(ve,fe),E[1]),y(p(v(me,Q),-I[1]),p(v(te,B),L[1]))),F[2]),p(y(p(v(ge,ee),E[1]),y(p(v(Me,V),-I[1]),p(v(te,B),F[1]))),-L[2]))),-D[3]),p(y(y(p(y(p(v(de,Le),D[1]),y(p(v(Se,ie),-F[1]),p(v(ke,re),L[1]))),E[2]),p(y(p(v(de,Le),E[1]),y(p(v(me,Q),-F[1]),p(v(Me,V),L[1]))),-D[2])),y(p(y(p(v(Se,ie),E[1]),y(p(v(me,Q),-D[1]),p(v(q,O),L[1]))),F[2]),p(y(p(v(ke,re),E[1]),y(p(v(Me,V),-D[1]),p(v(q,O),F[1]))),-L[2]))),I[3])),y(p(y(y(p(y(p(v(ve,fe),D[1]),y(p(v(Se,ie),-I[1]),p(v(ue,Z),L[1]))),E[2]),p(y(p(v(ve,fe),E[1]),y(p(v(me,Q),-I[1]),p(v(te,B),L[1]))),-D[2])),y(p(y(p(v(Se,ie),E[1]),y(p(v(me,Q),-D[1]),p(v(q,O),L[1]))),I[2]),p(y(p(v(ue,Z),E[1]),y(p(v(te,B),-D[1]),p(v(q,O),I[1]))),-L[2]))),-F[3]),p(y(y(p(y(p(v(ge,ee),D[1]),y(p(v(ke,re),-I[1]),p(v(ue,Z),F[1]))),E[2]),p(y(p(v(ge,ee),E[1]),y(p(v(Me,V),-I[1]),p(v(te,B),F[1]))),-D[2])),y(p(y(p(v(ke,re),E[1]),y(p(v(Me,V),-D[1]),p(v(q,O),F[1]))),I[2]),p(y(p(v(ue,Z),E[1]),y(p(v(te,B),-D[1]),p(v(q,O),I[1]))),-F[2]))),L[3]))))),Pe=y(y(y(p(y(y(p(y(p(v(be,he),F[1]),y(p(v(de,Le),-P[1]),p(v(oe,Ee),L[1]))),I[2]),p(y(p(v(be,he),I[1]),y(p(v(ve,fe),-P[1]),p(v(ye,ae),L[1]))),-F[2])),y(p(y(p(v(de,Le),I[1]),y(p(v(ve,fe),-F[1]),p(v(ge,ee),L[1]))),P[2]),p(y(p(v(oe,Ee),I[1]),y(p(v(ye,ae),-F[1]),p(v(ge,ee),P[1]))),-L[2]))),E[3]),y(p(y(y(p(y(p(v(be,he),F[1]),y(p(v(de,Le),-P[1]),p(v(oe,Ee),L[1]))),E[2]),p(y(p(v(be,he),E[1]),y(p(v(me,Q),-P[1]),p(v(X,J),L[1]))),-F[2])),y(p(y(p(v(de,Le),E[1]),y(p(v(me,Q),-F[1]),p(v(Me,V),L[1]))),P[2]),p(y(p(v(oe,Ee),E[1]),y(p(v(X,J),-F[1]),p(v(Me,V),P[1]))),-L[2]))),-I[3]),p(y(y(p(y(p(v(be,he),I[1]),y(p(v(ve,fe),-P[1]),p(v(ye,ae),L[1]))),E[2]),p(y(p(v(be,he),E[1]),y(p(v(me,Q),-P[1]),p(v(X,J),L[1]))),-I[2])),y(p(y(p(v(ve,fe),E[1]),y(p(v(me,Q),-I[1]),p(v(te,B),L[1]))),P[2]),p(y(p(v(ye,ae),E[1]),y(p(v(X,J),-I[1]),p(v(te,B),P[1]))),-L[2]))),F[3]))),y(y(p(y(y(p(y(p(v(de,Le),I[1]),y(p(v(ve,fe),-F[1]),p(v(ge,ee),L[1]))),E[2]),p(y(p(v(de,Le),E[1]),y(p(v(me,Q),-F[1]),p(v(Me,V),L[1]))),-I[2])),y(p(y(p(v(ve,fe),E[1]),y(p(v(me,Q),-I[1]),p(v(te,B),L[1]))),F[2]),p(y(p(v(ge,ee),E[1]),y(p(v(Me,V),-I[1]),p(v(te,B),F[1]))),-L[2]))),-P[3]),p(y(y(p(y(p(v(oe,Ee),I[1]),y(p(v(ye,ae),-F[1]),p(v(ge,ee),P[1]))),E[2]),p(y(p(v(oe,Ee),E[1]),y(p(v(X,J),-F[1]),p(v(Me,V),P[1]))),-I[2])),y(p(y(p(v(ye,ae),E[1]),y(p(v(X,J),-I[1]),p(v(te,B),P[1]))),F[2]),p(y(p(v(ge,ee),E[1]),y(p(v(Me,V),-I[1]),p(v(te,B),F[1]))),-P[2]))),L[3])),y(p(y(y(p(y(p(v(be,he),I[1]),y(p(v(ve,fe),-P[1]),p(v(ye,ae),L[1]))),D[2]),p(y(p(v(be,he),D[1]),y(p(v(Se,ie),-P[1]),p(v(K,$),L[1]))),-I[2])),y(p(y(p(v(ve,fe),D[1]),y(p(v(Se,ie),-I[1]),p(v(ue,Z),L[1]))),P[2]),p(y(p(v(ye,ae),D[1]),y(p(v(K,$),-I[1]),p(v(ue,Z),P[1]))),-L[2]))),E[3]),p(y(y(p(y(p(v(be,he),I[1]),y(p(v(ve,fe),-P[1]),p(v(ye,ae),L[1]))),E[2]),p(y(p(v(be,he),E[1]),y(p(v(me,Q),-P[1]),p(v(X,J),L[1]))),-I[2])),y(p(y(p(v(ve,fe),E[1]),y(p(v(me,Q),-I[1]),p(v(te,B),L[1]))),P[2]),p(y(p(v(ye,ae),E[1]),y(p(v(X,J),-I[1]),p(v(te,B),P[1]))),-L[2]))),-D[3])))),y(y(y(p(y(y(p(y(p(v(be,he),D[1]),y(p(v(Se,ie),-P[1]),p(v(K,$),L[1]))),E[2]),p(y(p(v(be,he),E[1]),y(p(v(me,Q),-P[1]),p(v(X,J),L[1]))),-D[2])),y(p(y(p(v(Se,ie),E[1]),y(p(v(me,Q),-D[1]),p(v(q,O),L[1]))),P[2]),p(y(p(v(K,$),E[1]),y(p(v(X,J),-D[1]),p(v(q,O),P[1]))),-L[2]))),I[3]),p(y(y(p(y(p(v(ve,fe),D[1]),y(p(v(Se,ie),-I[1]),p(v(ue,Z),L[1]))),E[2]),p(y(p(v(ve,fe),E[1]),y(p(v(me,Q),-I[1]),p(v(te,B),L[1]))),-D[2])),y(p(y(p(v(Se,ie),E[1]),y(p(v(me,Q),-D[1]),p(v(q,O),L[1]))),I[2]),p(y(p(v(ue,Z),E[1]),y(p(v(te,B),-D[1]),p(v(q,O),I[1]))),-L[2]))),-P[3])),y(p(y(y(p(y(p(v(ye,ae),D[1]),y(p(v(K,$),-I[1]),p(v(ue,Z),P[1]))),E[2]),p(y(p(v(ye,ae),E[1]),y(p(v(X,J),-I[1]),p(v(te,B),P[1]))),-D[2])),y(p(y(p(v(K,$),E[1]),y(p(v(X,J),-D[1]),p(v(q,O),P[1]))),I[2]),p(y(p(v(ue,Z),E[1]),y(p(v(te,B),-D[1]),p(v(q,O),I[1]))),-P[2]))),L[3]),p(y(y(p(y(p(v(oe,Ee),I[1]),y(p(v(ye,ae),-F[1]),p(v(ge,ee),P[1]))),D[2]),p(y(p(v(oe,Ee),D[1]),y(p(v(K,$),-F[1]),p(v(ke,re),P[1]))),-I[2])),y(p(y(p(v(ye,ae),D[1]),y(p(v(K,$),-I[1]),p(v(ue,Z),P[1]))),F[2]),p(y(p(v(ge,ee),D[1]),y(p(v(ke,re),-I[1]),p(v(ue,Z),F[1]))),-P[2]))),E[3]))),y(y(p(y(y(p(y(p(v(oe,Ee),I[1]),y(p(v(ye,ae),-F[1]),p(v(ge,ee),P[1]))),E[2]),p(y(p(v(oe,Ee),E[1]),y(p(v(X,J),-F[1]),p(v(Me,V),P[1]))),-I[2])),y(p(y(p(v(ye,ae),E[1]),y(p(v(X,J),-I[1]),p(v(te,B),P[1]))),F[2]),p(y(p(v(ge,ee),E[1]),y(p(v(Me,V),-I[1]),p(v(te,B),F[1]))),-P[2]))),-D[3]),p(y(y(p(y(p(v(oe,Ee),D[1]),y(p(v(K,$),-F[1]),p(v(ke,re),P[1]))),E[2]),p(y(p(v(oe,Ee),E[1]),y(p(v(X,J),-F[1]),p(v(Me,V),P[1]))),-D[2])),y(p(y(p(v(K,$),E[1]),y(p(v(X,J),-D[1]),p(v(q,O),P[1]))),F[2]),p(y(p(v(ke,re),E[1]),y(p(v(Me,V),-D[1]),p(v(q,O),F[1]))),-P[2]))),I[3])),y(p(y(y(p(y(p(v(ye,ae),D[1]),y(p(v(K,$),-I[1]),p(v(ue,Z),P[1]))),E[2]),p(y(p(v(ye,ae),E[1]),y(p(v(X,J),-I[1]),p(v(te,B),P[1]))),-D[2])),y(p(y(p(v(K,$),E[1]),y(p(v(X,J),-D[1]),p(v(q,O),P[1]))),I[2]),p(y(p(v(ue,Z),E[1]),y(p(v(te,B),-D[1]),p(v(q,O),I[1]))),-P[2]))),-F[3]),p(y(y(p(y(p(v(ge,ee),D[1]),y(p(v(ke,re),-I[1]),p(v(ue,Z),F[1]))),E[2]),p(y(p(v(ge,ee),E[1]),y(p(v(Me,V),-I[1]),p(v(te,B),F[1]))),-D[2])),y(p(y(p(v(ke,re),E[1]),y(p(v(Me,V),-D[1]),p(v(q,O),F[1]))),I[2]),p(y(p(v(ue,Z),E[1]),y(p(v(te,B),-D[1]),p(v(q,O),I[1]))),-F[2]))),P[3]))))),Ie=v(Ae,Pe);return Ie[Ie.length-1]}return R}var x=[b,d,_];function M(y){var v=x[y.length];return v||(v=x[y.length]=g(y.length)),v.apply(void 0,y)}function h(y,v,A,p,R,E,D,I){function F(P,L,z,O,B,V){switch(arguments.length){case 0:case 1:return 0;case 2:return p(P,L);case 3:return R(P,L,z);case 4:return E(P,L,z,O);case 5:return D(P,L,z,O,B);case 6:return I(P,L,z,O,B,V)}for(var J=new Array(arguments.length),Q=0;Q<arguments.length;++Q)J[Q]=arguments[Q];return y(J)}return F}function w(){for(;x.length<=c;)x.push(g(x.length));a.exports=h.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?d: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(h,w){return[x([[+w[0],+h[0][1]],[+w[1],+h[1][1]]]),x([[+h[0][0],+w[0]],[+h[1][0],+w[1]]]),x(h)]}}function b(x){return function(h,w){return[x([[+w[0],+h[0][1],+h[0][2]],[+w[1],+h[1][1],+h[1][2]],[+w[2],+h[2][1],+h[2][2]]]),x([[+h[0][0],+w[0],+h[0][2]],[+h[1][0],+w[1],+h[1][2]],[+h[2][0],+w[2],+h[2][2]]]),x([[+h[0][0],+h[0][1],+w[0]],[+h[1][0],+h[1][1],+w[1]],[+h[2][0],+h[2][1],+w[2]]]),x(h)]}}function d(x){return function(h,w){return[x([[+w[0],+h[0][1],+h[0][2],+h[0][3]],[+w[1],+h[1][1],+h[1][2],+h[1][3]],[+w[2],+h[2][1],+h[2][2],+h[2][3]],[+w[3],+h[3][1],+h[3][2],+h[3][3]]]),x([[+h[0][0],+w[0],+h[0][2],+h[0][3]],[+h[1][0],+w[1],+h[1][2],+h[1][3]],[+h[2][0],+w[2],+h[2][2],+h[2][3]],[+h[3][0],+w[3],+h[3][2],+h[3][3]]]),x([[+h[0][0],+h[0][1],+w[0],+h[0][3]],[+h[1][0],+h[1][1],+w[1],+h[1][3]],[+h[2][0],+h[2][1],+w[2],+h[2][3]],[+h[3][0],+h[3][1],+w[3],+h[3][3]]]),x([[+h[0][0],+h[0][1],+h[0][2],+w[0]],[+h[1][0],+h[1][1],+h[1][2],+w[1]],[+h[2][0],+h[2][1],+h[2][2],+w[2]],[+h[3][0],+h[3][1],+h[3][2],+w[3]]]),x(h)]}}function _(x){return function(h,w){return[x([[+w[0],+h[0][1],+h[0][2],+h[0][3],+h[0][4]],[+w[1],+h[1][1],+h[1][2],+h[1][3],+h[1][4]],[+w[2],+h[2][1],+h[2][2],+h[2][3],+h[2][4]],[+w[3],+h[3][1],+h[3][2],+h[3][3],+h[3][4]],[+w[4],+h[4][1],+h[4][2],+h[4][3],+h[4][4]]]),x([[+h[0][0],+w[0],+h[0][2],+h[0][3],+h[0][4]],[+h[1][0],+w[1],+h[1][2],+h[1][3],+h[1][4]],[+h[2][0],+w[2],+h[2][2],+h[2][3],+h[2][4]],[+h[3][0],+w[3],+h[3][2],+h[3][3],+h[3][4]],[+h[4][0],+w[4],+h[4][2],+h[4][3],+h[4][4]]]),x([[+h[0][0],+h[0][1],+w[0],+h[0][3],+h[0][4]],[+h[1][0],+h[1][1],+w[1],+h[1][3],+h[1][4]],[+h[2][0],+h[2][1],+w[2],+h[2][3],+h[2][4]],[+h[3][0],+h[3][1],+w[3],+h[3][3],+h[3][4]],[+h[4][0],+h[4][1],+w[4],+h[4][3],+h[4][4]]]),x([[+h[0][0],+h[0][1],+h[0][2],+w[0],+h[0][4]],[+h[1][0],+h[1][1],+h[1][2],+w[1],+h[1][4]],[+h[2][0],+h[2][1],+h[2][2],+w[2],+h[2][4]],[+h[3][0],+h[3][1],+h[3][2],+w[3],+h[3][4]],[+h[4][0],+h[4][1],+h[4][2],+w[4],+h[4][4]]]),x([[+h[0][0],+h[0][1],+h[0][2],+h[0][3],+w[0]],[+h[1][0],+h[1][1],+h[1][2],+h[1][3],+w[1]],[+h[2][0],+h[2][1],+h[2][2],+h[2][3],+w[2]],[+h[3][0],+h[3][1],+h[3][2],+h[3][3],+w[3]],[+h[4][0],+h[4][1],+h[4][2],+h[4][3],+w[4]]]),x(h)]}}function T(x){return function(h,w){return[x([[+w[0],+h[0][1],+h[0][2],+h[0][3],+h[0][4],+h[0][5]],[+w[1],+h[1][1],+h[1][2],+h[1][3],+h[1][4],+h[1][5]],[+w[2],+h[2][1],+h[2][2],+h[2][3],+h[2][4],+h[2][5]],[+w[3],+h[3][1],+h[3][2],+h[3][3],+h[3][4],+h[3][5]],[+w[4],+h[4][1],+h[4][2],+h[4][3],+h[4][4],+h[4][5]],[+w[5],+h[5][1],+h[5][2],+h[5][3],+h[5][4],+h[5][5]]]),x([[+h[0][0],+w[0],+h[0][2],+h[0][3],+h[0][4],+h[0][5]],[+h[1][0],+w[1],+h[1][2],+h[1][3],+h[1][4],+h[1][5]],[+h[2][0],+w[2],+h[2][2],+h[2][3],+h[2][4],+h[2][5]],[+h[3][0],+w[3],+h[3][2],+h[3][3],+h[3][4],+h[3][5]],[+h[4][0],+w[4],+h[4][2],+h[4][3],+h[4][4],+h[4][5]],[+h[5][0],+w[5],+h[5][2],+h[5][3],+h[5][4],+h[5][5]]]),x([[+h[0][0],+h[0][1],+w[0],+h[0][3],+h[0][4],+h[0][5]],[+h[1][0],+h[1][1],+w[1],+h[1][3],+h[1][4],+h[1][5]],[+h[2][0],+h[2][1],+w[2],+h[2][3],+h[2][4],+h[2][5]],[+h[3][0],+h[3][1],+w[3],+h[3][3],+h[3][4],+h[3][5]],[+h[4][0],+h[4][1],+w[4],+h[4][3],+h[4][4],+h[4][5]],[+h[5][0],+h[5][1],+w[5],+h[5][3],+h[5][4],+h[5][5]]]),x([[+h[0][0],+h[0][1],+h[0][2],+w[0],+h[0][4],+h[0][5]],[+h[1][0],+h[1][1],+h[1][2],+w[1],+h[1][4],+h[1][5]],[+h[2][0],+h[2][1],+h[2][2],+w[2],+h[2][4],+h[2][5]],[+h[3][0],+h[3][1],+h[3][2],+w[3],+h[3][4],+h[3][5]],[+h[4][0],+h[4][1],+h[4][2],+w[4],+h[4][4],+h[4][5]],[+h[5][0],+h[5][1],+h[5][2],+w[5],+h[5][4],+h[5][5]]]),x([[+h[0][0],+h[0][1],+h[0][2],+h[0][3],+w[0],+h[0][5]],[+h[1][0],+h[1][1],+h[1][2],+h[1][3],+w[1],+h[1][5]],[+h[2][0],+h[2][1],+h[2][2],+h[2][3],+w[2],+h[2][5]],[+h[3][0],+h[3][1],+h[3][2],+h[3][3],+w[3],+h[3][5]],[+h[4][0],+h[4][1],+h[4][2],+h[4][3],+w[4],+h[4][5]],[+h[5][0],+h[5][1],+h[5][2],+h[5][3],+w[5],+h[5][5]]]),x([[+h[0][0],+h[0][1],+h[0][2],+h[0][3],+h[0][4],+w[0]],[+h[1][0],+h[1][1],+h[1][2],+h[1][3],+h[1][4],+w[1]],[+h[2][0],+h[2][1],+h[2][2],+h[2][3],+h[2][4],+w[2]],[+h[3][0],+h[3][1],+h[3][2],+h[3][3],+h[3][4],+w[3]],[+h[4][0],+h[4][1],+h[4][2],+h[4][3],+h[4][4],+w[4]],[+h[5][0],+h[5][1],+h[5][2],+h[5][3],+h[5][4],+w[5]]]),x(h)]}}var m=[f,c];function k(x,M,h,w,y,v,A,p){return function(E,D){switch(E.length){case 0:return x(E,D);case 1:return M(E,D);case 2:return h(E,D);case 3:return w(E,D);case 4:return y(E,D);case 5:return v(E,D)}var I=A[E.length];return I||(I=A[E.length]=p(E.length)),I(E,D)}}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,d=(7+56*g)*g;function _(v,A,p,R){return function(D,I,F){var P=v(v(A(I[1],F[0]),A(-F[1],I[0])),v(A(D[1],I[0]),A(-I[1],D[0]))),L=v(A(D[1],F[0]),A(-F[1],D[0])),z=R(P,L);return z[z.length-1]}}function T(v,A,p,R){return function(D,I,F,P){var L=v(v(p(v(A(F[1],P[0]),A(-P[1],F[0])),I[2]),v(p(v(A(I[1],P[0]),A(-P[1],I[0])),-F[2]),p(v(A(I[1],F[0]),A(-F[1],I[0])),P[2]))),v(p(v(A(I[1],P[0]),A(-P[1],I[0])),D[2]),v(p(v(A(D[1],P[0]),A(-P[1],D[0])),-I[2]),p(v(A(D[1],I[0]),A(-I[1],D[0])),P[2])))),z=v(v(p(v(A(F[1],P[0]),A(-P[1],F[0])),D[2]),v(p(v(A(D[1],P[0]),A(-P[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),P[2]))),v(p(v(A(I[1],F[0]),A(-F[1],I[0])),D[2]),v(p(v(A(D[1],F[0]),A(-F[1],D[0])),-I[2]),p(v(A(D[1],I[0]),A(-I[1],D[0])),F[2])))),O=R(L,z);return O[O.length-1]}}function m(v,A,p,R){return function(D,I,F,P,L){var z=v(v(v(p(v(p(v(A(P[1],L[0]),A(-L[1],P[0])),F[2]),v(p(v(A(F[1],L[0]),A(-L[1],F[0])),-P[2]),p(v(A(F[1],P[0]),A(-P[1],F[0])),L[2]))),I[3]),v(p(v(p(v(A(P[1],L[0]),A(-L[1],P[0])),I[2]),v(p(v(A(I[1],L[0]),A(-L[1],I[0])),-P[2]),p(v(A(I[1],P[0]),A(-P[1],I[0])),L[2]))),-F[3]),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]))),P[3]))),v(p(v(p(v(A(F[1],P[0]),A(-P[1],F[0])),I[2]),v(p(v(A(I[1],P[0]),A(-P[1],I[0])),-F[2]),p(v(A(I[1],F[0]),A(-F[1],I[0])),P[2]))),-L[3]),v(p(v(p(v(A(P[1],L[0]),A(-L[1],P[0])),I[2]),v(p(v(A(I[1],L[0]),A(-L[1],I[0])),-P[2]),p(v(A(I[1],P[0]),A(-P[1],I[0])),L[2]))),D[3]),p(v(p(v(A(P[1],L[0]),A(-L[1],P[0])),D[2]),v(p(v(A(D[1],L[0]),A(-L[1],D[0])),-P[2]),p(v(A(D[1],P[0]),A(-P[1],D[0])),L[2]))),-I[3])))),v(v(p(v(p(v(A(I[1],L[0]),A(-L[1],I[0])),D[2]),v(p(v(A(D[1],L[0]),A(-L[1],D[0])),-I[2]),p(v(A(D[1],I[0]),A(-I[1],D[0])),L[2]))),P[3]),v(p(v(p(v(A(I[1],P[0]),A(-P[1],I[0])),D[2]),v(p(v(A(D[1],P[0]),A(-P[1],D[0])),-I[2]),p(v(A(D[1],I[0]),A(-I[1],D[0])),P[2]))),-L[3]),p(v(p(v(A(F[1],P[0]),A(-P[1],F[0])),I[2]),v(p(v(A(I[1],P[0]),A(-P[1],I[0])),-F[2]),p(v(A(I[1],F[0]),A(-F[1],I[0])),P[2]))),D[3]))),v(p(v(p(v(A(F[1],P[0]),A(-P[1],F[0])),D[2]),v(p(v(A(D[1],P[0]),A(-P[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),P[2]))),-I[3]),v(p(v(p(v(A(I[1],P[0]),A(-P[1],I[0])),D[2]),v(p(v(A(D[1],P[0]),A(-P[1],D[0])),-I[2]),p(v(A(D[1],I[0]),A(-I[1],D[0])),P[2]))),F[3]),p(v(p(v(A(I[1],F[0]),A(-F[1],I[0])),D[2]),v(p(v(A(D[1],F[0]),A(-F[1],D[0])),-I[2]),p(v(A(D[1],I[0]),A(-I[1],D[0])),F[2]))),-P[3]))))),O=v(v(v(p(v(p(v(A(P[1],L[0]),A(-L[1],P[0])),F[2]),v(p(v(A(F[1],L[0]),A(-L[1],F[0])),-P[2]),p(v(A(F[1],P[0]),A(-P[1],F[0])),L[2]))),D[3]),p(v(p(v(A(P[1],L[0]),A(-L[1],P[0])),D[2]),v(p(v(A(D[1],L[0]),A(-L[1],D[0])),-P[2]),p(v(A(D[1],P[0]),A(-P[1],D[0])),L[2]))),-F[3])),v(p(v(p(v(A(F[1],L[0]),A(-L[1],F[0])),D[2]),v(p(v(A(D[1],L[0]),A(-L[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),L[2]))),P[3]),p(v(p(v(A(F[1],P[0]),A(-P[1],F[0])),D[2]),v(p(v(A(D[1],P[0]),A(-P[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),P[2]))),-L[3]))),v(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]))),D[3]),p(v(p(v(A(F[1],L[0]),A(-L[1],F[0])),D[2]),v(p(v(A(D[1],L[0]),A(-L[1],D[0])),-F[2]),p(v(A(D[1],F[0]),A(-F[1],D[0])),L[2]))),-I[3])),v(p(v(p(v(A(I[1],L[0]),A(-L[1],I[0])),D[2]),v(p(v(A(D[1],L[0]),A(-L[1],D[0])),-I[2]),p(v(A(D[1],I[0]),A(-I[1],D[0])),L[2]))),F[3]),p(v(p(v(A(I[1],F[0]),A(-F[1],I[0])),D[2]),v(p(v(A(D[1],F[0]),A(-F[1],D[0])),-I[2]),p(v(A(D[1],I[0]),A(-I[1],D[0])),F[2]))),-L[3])))),B=R(z,O);return B[B.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,R){var E=(A[1]-R[1])*(p[0]-R[0]),D=(A[0]-R[0])*(p[1]-R[1]),I=E-D,F;if(E>0){if(D<=0)return I;F=E+D}else if(E<0){if(D>=0)return I;F=-(E+D)}else return I;var P=b*F;return I>=P||I<=-P?I:S(A,p,R)},function(A,p,R,E){var D=A[0]-E[0],I=p[0]-E[0],F=R[0]-E[0],P=A[1]-E[1],L=p[1]-E[1],z=R[1]-E[1],O=A[2]-E[2],B=p[2]-E[2],V=R[2]-E[2],J=I*z,Q=F*L,G=F*P,q=D*z,Z=D*L,re=I*P,$=O*(J-Q)+B*(G-q)+V*(Z-re),ie=(Math.abs(J)+Math.abs(Q))*Math.abs(O)+(Math.abs(G)+Math.abs(q))*Math.abs(B)+(Math.abs(Z)+Math.abs(re))*Math.abs(V),j=d*ie;return $>j||-$>j?$:x(A,p,R,E)}];function h(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,R,E,D,I){return function(P,L,z,O,B){switch(arguments.length){case 0:case 1:return 0;case 2:return R(P,L);case 3:return E(P,L,z);case 4:return D(P,L,z,O);case 5:return I(P,L,z,O,B)}for(var V=new Array(arguments.length),J=0;J<arguments.length;++J)V[J]=arguments[J];return v(V)}}function y(){for(;M.length<=c;)M.push(k(M.length));a.exports=w.apply(void 0,[h].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 d=new Array(2*g),_=[.1,.1],T=[.1,.1],m=0;l(f[0],c,_),_[0]&&(d[m++]=_[0]);for(var k=1;k<g;++k){l(f[k],c,T);var S=_[1];u(S,T[0],_),_[0]&&(d[m++]=_[0]);var x=T[1],M=_[1],h=x+M,w=h-x,y=M-w;_[1]=h,y&&(d[m++]=y)}return _[1]&&(d[m++]=_[1]),m===0&&(d[m++]=0),d.length=m,d}},1125(a,o,i){"use strict";a.exports=s;var l=i(3250)[3];function u(f,c,g,b){for(var d=0;d<2;++d){var _=f[d],T=c[d],m=Math.min(_,T),k=Math.max(_,T),S=g[d],x=b[d],M=Math.min(S,x),h=Math.max(S,x);if(h<m||k<M)return!1}return!0}function s(f,c,g,b){var d=l(f,g,b),_=l(c,g,b);if(d>0&&_>0||d<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:d===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,d=b+g;return d?[d,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,d=0,_=0,T=Math.abs,m=l[d],k=T(m),S=-u[_],x=T(S),M,h;k<x?(h=m,d+=1,d<s&&(m=l[d],k=T(m))):(h=S,_+=1,_<f&&(S=-u[_],x=T(S))),d<s&&k<x||_>=f?(M=m,d+=1,d<s&&(m=l[d],k=T(m))):(M=S,_+=1,_<f&&(S=-u[_],x=T(S)));for(var w=M+h,y=w-M,v=h-y,A=v,p=w,R,E,D,I,F;d<s&&_<f;)k<x?(M=m,d+=1,d<s&&(m=l[d],k=T(m))):(M=S,_+=1,_<f&&(S=-u[_],x=T(S))),h=A,w=M+h,y=w-M,v=h-y,v&&(g[b++]=v),R=p+w,E=R-p,D=R-E,I=w-E,F=p-D,A=F+I,p=R;for(;d<s;)M=m,h=A,w=M+h,y=w-M,v=h-y,v&&(g[b++]=v),R=p+w,E=R-p,D=R-E,I=w-E,F=p-D,A=F+I,p=R,d+=1,d<s&&(m=l[d]);for(;_<f;)M=S,h=A,w=M+h,y=w-M,v=h-y,v&&(g[b++]=v),R=p+w,E=R-p,D=R-E,I=w-E,F=p-D,A=F+I,p=R,_+=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,d=b+g;return d?[d,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,d=0,_=0,T=Math.abs,m=l[d],k=T(m),S=u[_],x=T(S),M,h;k<x?(h=m,d+=1,d<s&&(m=l[d],k=T(m))):(h=S,_+=1,_<f&&(S=u[_],x=T(S))),d<s&&k<x||_>=f?(M=m,d+=1,d<s&&(m=l[d],k=T(m))):(M=S,_+=1,_<f&&(S=u[_],x=T(S)));for(var w=M+h,y=w-M,v=h-y,A=v,p=w,R,E,D,I,F;d<s&&_<f;)k<x?(M=m,d+=1,d<s&&(m=l[d],k=T(m))):(M=S,_+=1,_<f&&(S=u[_],x=T(S))),h=A,w=M+h,y=w-M,v=h-y,v&&(g[b++]=v),R=p+w,E=R-p,D=R-E,I=w-E,F=p-D,A=F+I,p=R;for(;d<s;)M=m,h=A,w=M+h,y=w-M,v=h-y,v&&(g[b++]=v),R=p+w,E=R-p,D=R-E,I=w-E,F=p-D,A=F+I,p=R,d+=1,d<s&&(m=l[d]);for(;_<f;)M=S,h=A,w=M+h,y=w-M,v=h-y,v&&(g[b++]=v),R=p+w,E=R-p,D=R-E,I=w-E,F=p-D,A=F+I,p=R,_+=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),h=0;h<x;++h)M[h]=k[h]<S|0;return M}function b(k,S){for(var x=k.length,M=S*(S+1)/2*x|0,h=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 R=v[p],E=v[A];h[w++]=Math.min(R,E)|0,h[w++]=Math.max(R,E)|0}var D=w/2|0;s(l(h,[D,2]));for(var I=2,y=2;y<w;y+=2)h[y-2]===h[y]&&h[y-1]===h[y+1]||(h[I++]=h[y],h[I++]=h[y+1]);return l(h,[I/2|0,2])}function d(k,S,x,M){for(var h=k.data,w=k.shape[0],y=u.mallocDouble(w),v=0,A=0;A<w;++A){var p=h[2*A],R=h[2*A+1];if(x[p]!==x[R]){var E=S[p],D=S[R];h[2*v]=p,h[2*v+1]=R,y[v++]=(D-M)/(D-E)}}return k.shape[0]=v,l(y,[v])}function _(k,S){var x=u.mallocInt32(S*2),M=k.shape[0],h=k.data;x[0]=0;for(var w=0,y=0;y<M;++y){var v=h[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),h=0;h<S;++h)M[h]=[x[2*h],x[2*h+1]];return M}function m(k,S,x,M){x=x||0,typeof M=="undefined"&&(M=c(k));var h=k.length;if(h===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var w=g(S,+x),y=b(k,M),v=d(y,S,w,+x),A=_(y,S.length|0),p=f(M)(k,y.data,A,w),R=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:R,vertexWeights:E}}},1570(a){"use strict";a.exports=i;var o=[function(){function u(f,c,g,b){for(var d=Math.min(g,b)|0,_=Math.max(g,b)|0,T=f[2*d],m=f[2*d+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 d=f.length,_=[],T=0;T<d;++T)var m=f[T],k=m.length;return _}return s},function(){function u(f,c,g,b){for(var d=Math.min(g,b)|0,_=Math.max(g,b)|0,T=f[2*d],m=f[2*d+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 d=f.length,_=[],T=0;T<d;++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 d=Math.min(g,b)|0,_=Math.max(g,b)|0,T=f[2*d],m=f[2*d+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 d=f.length,_=[],T=0;T<d;++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 d=Math.min(g,b)|0,_=Math.max(g,b)|0,T=f[2*d],m=f[2*d+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 d=f.length,_=[],T=0;T<d;++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,R=Math.max,E=0,D=A.length;E<D;++E)p=R(p,A[E].length);return p-1}l=f;function c(A){for(var p=-1,R=Math.max,E=0,D=A.length;E<D;++E)for(var I=A[E],F=0,P=I.length;F<P;++F)p=R(p,I[F]);return p+1}l=c;function g(A){for(var p=new Array(A.length),R=0,E=A.length;R<E;++R)p[R]=A[R].slice(0);return p}l=g;function b(A,p){var R=A.length,E=A.length-p.length,D=Math.min;if(E)return E;switch(R){case 0:return 0;case 1:return A[0]-p[0];case 2:var z=A[0]+A[1]-p[0]-p[1];return z||D(A[0],A[1])-D(p[0],p[1]);case 3:var I=A[0]+A[1],F=p[0]+p[1];if(z=I+A[2]-(F+p[2]),z)return z;var P=D(A[0],A[1]),L=D(p[0],p[1]),z=D(P,A[2])-D(L,p[2]);return z||D(P+A[2],I)-D(L+p[2],F);default:var O=A.slice(0);O.sort();var B=p.slice(0);B.sort();for(var V=0;V<R;++V)if(E=O[V]-B[V],E)return E;return 0}}o.Fw=b;function d(A,p){return b(A[0],p[0])}function _(A,p){if(p){for(var R=A.length,E=new Array(R),D=0;D<R;++D)E[D]=[A[D],p[D]];E.sort(d);for(var D=0;D<R;++D)A[D]=E[D][0],p[D]=E[D][1];return A}else return A.sort(b),A}l=_;function T(A){if(A.length===0)return[];for(var p=1,R=A.length,E=1;E<R;++E){var D=A[E];if(b(D,A[E-1])){if(E===p){p++;continue}A[p++]=D}}return A.length=p,A}l=T;function m(A,p){for(var R=0,E=A.length-1,D=-1;R<=E;){var I=R+E>>1,F=b(A[I],p);F<=0?(F===0&&(D=I),R=I+1):F>0&&(E=I-1)}return D}l=m;function k(A,p){for(var R=new Array(A.length),E=0,D=R.length;E<D;++E)R[E]=[];for(var I=[],E=0,F=p.length;E<F;++E)for(var P=p[E],L=P.length,z=1,O=1<<L;z<O;++z){I.length=u.popCount(z);for(var B=0,V=0;V<L;++V)z&1<<V&&(I[B++]=P[V]);var J=m(A,I);if(!(J<0))for(;R[J++].push(E),!(J>=A.length||b(A[J],I)!==0););}return R}l=k;function S(A,p){if(!p)return k(T(M(A,0)),A,0);for(var R=new Array(p),E=0;E<p;++E)R[E]=[];for(var E=0,D=A.length;E<D;++E)for(var I=A[E],F=0,P=I.length;F<P;++F)R[I[F]].push(E);return R}l=S;function x(A){for(var p=[],R=0,E=A.length;R<E;++R)for(var D=A[R],I=D.length|0,F=1,P=1<<I;F<P;++F){for(var L=[],z=0;z<I;++z)F>>>z&1&&L.push(D[z]);p.push(L)}return _(p)}l=x;function M(A,p){if(p<0)return[];for(var R=[],E=(1<<p+1)-1,D=0;D<A.length;++D)for(var I=A[D],F=E;F<1<<I.length;F=u.nextCombination(F)){for(var P=new Array(p+1),L=0,z=0;z<I.length;++z)F&1<<z&&(P[L++]=I[z]);R.push(P)}return _(R)}l=M;function h(A){for(var p=[],R=0,E=A.length;R<E;++R)for(var D=A[R],I=0,F=D.length;I<F;++I){for(var P=new Array(D.length-1),L=0,z=0;L<F;++L)L!==I&&(P[z++]=D[L]);p.push(P)}return _(p)}l=h;function w(A,p){for(var R=new s(p),E=0;E<A.length;++E)for(var D=A[E],I=0;I<D.length;++I)for(var F=I+1;F<D.length;++F)R.link(D[I],D[F]);for(var P=[],L=R.ranks,E=0;E<L.length;++E)L[E]=-1;for(var E=0;E<A.length;++E){var z=R.find(A[E][0]);L[z]<0?(L[z]=P.length,P.push([A[E].slice(0)])):P[L[z]].push(A[E].slice(0))}return P}function y(A){for(var p=T(_(M(A,0))),R=new s(p.length),E=0;E<A.length;++E)for(var D=A[E],I=0;I<D.length;++I)for(var F=m(p,[D[I]]),P=I+1;P<D.length;++P)R.link(F,m(p,[D[P]]));for(var L=[],z=R.ranks,E=0;E<z.length;++E)z[E]=-1;for(var E=0;E<A.length;++E){var O=R.find(m(p,[A[E][0]]));z[O]<0?(z[O]=L.length,L.push([A[E].slice(0)])):L[z[O]].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,R=0,E=v.length;R<E;++R)A=p(A,v[R].length);return A-1}o.dimension=s;function f(v){for(var A=-1,p=Math.max,R=0,E=v.length;R<E;++R)for(var D=v[R],I=0,F=D.length;I<F;++I)A=p(A,D[I]);return A+1}o.countVertices=f;function c(v){for(var A=new Array(v.length),p=0,R=v.length;p<R;++p)A[p]=v[p].slice(0);return A}o.cloneCells=c;function g(v,A){var p=v.length,R=v.length-A.length,E=Math.min;if(R)return R;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 D=v[0]+v[1],I=A[0]+A[1];if(L=D+v[2]-(I+A[2]),L)return L;var F=E(v[0],v[1]),P=E(A[0],A[1]),L=E(F,v[2])-E(P,A[2]);return L||E(F+v[2],D)-E(P+A[2],I);default:var z=v.slice(0);z.sort();var O=A.slice(0);O.sort();for(var B=0;B<p;++B)if(R=z[B]-O[B],R)return R;return 0}}o.compareCells=g;function b(v,A){return g(v[0],A[0])}function d(v,A){if(A){for(var p=v.length,R=new Array(p),E=0;E<p;++E)R[E]=[v[E],A[E]];R.sort(b);for(var E=0;E<p;++E)v[E]=R[E][0],A[E]=R[E][1];return v}else return v.sort(g),v}o.normalize=d;function _(v){if(v.length===0)return[];for(var A=1,p=v.length,R=1;R<p;++R){var E=v[R];if(g(E,v[R-1])){if(R===A){A++;continue}v[A++]=E}}return v.length=A,v}o.unique=_;function T(v,A){for(var p=0,R=v.length-1,E=-1;p<=R;){var D=p+R>>1,I=g(v[D],A);I<=0?(I===0&&(E=D),p=D+1):I>0&&(R=D-1)}return E}o.findCell=T;function m(v,A){for(var p=new Array(v.length),R=0,E=p.length;R<E;++R)p[R]=[];for(var D=[],R=0,I=A.length;R<I;++R)for(var F=A[R],P=F.length,L=1,z=1<<P;L<z;++L){D.length=l.popCount(L);for(var O=0,B=0;B<P;++B)L&1<<B&&(D[O++]=F[B]);var V=T(v,D);if(!(V<0))for(;p[V++].push(R),!(V>=v.length||g(v[V],D)!==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),R=0;R<A;++R)p[R]=[];for(var R=0,E=v.length;R<E;++R)for(var D=v[R],I=0,F=D.length;I<F;++I)p[D[I]].push(R);return p}o.dual=k;function S(v){for(var A=[],p=0,R=v.length;p<R;++p)for(var E=v[p],D=E.length|0,I=1,F=1<<D;I<F;++I){for(var P=[],L=0;L<D;++L)I>>>L&1&&P.push(E[L]);A.push(P)}return d(A)}o.explode=S;function x(v,A){if(A<0)return[];for(var p=[],R=(1<<A+1)-1,E=0;E<v.length;++E)for(var D=v[E],I=R;I<1<<D.length;I=l.nextCombination(I)){for(var F=new Array(A+1),P=0,L=0;L<D.length;++L)I&1<<L&&(F[P++]=D[L]);p.push(F)}return d(p)}o.skeleton=x;function M(v){for(var A=[],p=0,R=v.length;p<R;++p)for(var E=v[p],D=0,I=E.length;D<I;++D){for(var F=new Array(E.length-1),P=0,L=0;P<I;++P)P!==D&&(F[L++]=E[P]);A.push(F)}return d(A)}o.boundary=M;function h(v,A){for(var p=new u(A),R=0;R<v.length;++R)for(var E=v[R],D=0;D<E.length;++D)for(var I=D+1;I<E.length;++I)p.link(E[D],E[I]);for(var F=[],P=p.ranks,R=0;R<P.length;++R)P[R]=-1;for(var R=0;R<v.length;++R){var L=p.find(v[R][0]);P[L]<0?(P[L]=F.length,F.push([v[R].slice(0)])):F[P[L]].push(v[R].slice(0))}return F}function w(v){for(var A=_(d(x(v,0))),p=new u(A.length),R=0;R<v.length;++R)for(var E=v[R],D=0;D<E.length;++D)for(var I=T(A,[E[D]]),F=D+1;F<E.length;++F)p.link(I,T(A,[E[F]]));for(var P=[],L=p.ranks,R=0;R<L.length;++R)L[R]=-1;for(var R=0;R<v.length;++R){var z=p.find(T(A,[v[R][0]]));L[z]<0?(L[z]=P.length,P.push([v[R].slice(0)])):P[L[z]].push(v[R].slice(0))}return P}function y(v,A){return A?h(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 d=Math.abs(l(c,g,b)),_=Math.sqrt(Math.pow(g[0]-b[0],2)+Math.pow(g[1]-b[1],2));return d/_}function f(c,g,b){for(var d=g.length,_=c.length,T=new Array(d),m=new Array(d),k=new Array(d),S=new Array(d),x=0;x<d;++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 h=M[1],w=M[0];m[w]!==-1?m[w]=-2:m[w]=h,T[h]!==-1?T[h]=-2:T[h]=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=P[q],$=P[Z];P[q]=$,P[Z]=re,L[re]=Z,L[$]=q}function A(q){return k[P[q]]}function p(q){return q&1?q-1>>1:(q>>1)-1}function R(q){for(var Z=A(q);;){var re=Z,$=2*q+1,ie=2*(q+1),j=q;if($<O){var te=A($);te<re&&(j=$,re=te)}if(ie<O){var ue=A(ie);ue<re&&(j=ie)}if(j===q)return q;v(q,j),q=j}}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 D(){if(O>0){var q=P[0];return v(0,O-1),O-=1,R(0),q}return-1}function I(q,Z){var re=P[q];return k[re]===Z?q:(k[re]=-1/0,E(q),D(),k[re]=Z,O+=1,E(O-1))}function F(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 P=[],L=new Array(d),x=0;x<d;++x){var z=k[x]=y(x);z<1/0?(L[x]=P.length,P.push(x)):L[x]=-1}for(var O=P.length,x=O>>1;x>=0;--x)R(x);for(;;){var B=D();if(B<0||k[B]>b)break;F(B)}for(var V=[],x=0;x<d;++x)S[x]||(L[x]=V.length,V.push(g[x].slice()));var J=V.length;function Q(q,Z){if(q[Z]<0)return Z;var re=Z,$=Z;do{var ie=q[$];if(!S[$]||ie<0||ie===$||($=ie,ie=q[$],!S[$]||ie<0||ie===$))break;$=ie,re=q[re]}while(re!==$);for(var j=Z;j!==$;j=q[j])q[j]=$;return $}var G=[];return c.forEach(function(q){var Z=Q(T,q[0]),re=Q(m,q[1]);if(Z>=0&&re>=0&&Z!==re){var $=L[Z],ie=L[re];$!==ie&&G.push([$,ie])}}),u.unique(u.normalize(G)),{positions:V,edges:G}}},1303(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,c){var 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 d=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:d>m?d-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 d,_;if(f[0][0]<f[1][0])d=f[0],_=f[1];else if(f[0][0]>f[1][0])d=f[1],_=f[0];else return-u(f,c);var T=l(g,b,_),m=l(g,b,d);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(_,d,b),m=l(_,d,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 d(k,S){for(var x=null;k;){var M=k.key,h,w;M[0][0]<M[1][0]?(h=M[0],w=M[1]):(h=M[1],w=M[0]);var y=s(h,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=d(k.right,S);if(v)return v;k=k.left}else{if(S[0]!==M[1][0])return k;var v=d(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=d(this.slabs[S],k),h=-1;if(M&&(h=M.value),this.coordinates[S]===k[0]){var w=null;if(M&&(w=M.key),S>0){var y=d(this.slabs[S-1],k);y&&(w?f(y.key,w)>0&&(w=y.key,h=y.value):(h=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 h;p=v[A]}}if(p.start)if(w){var R=s(w[0],w[1],[k[0],p.y]);w[0][0]>w[1][0]&&(R=-R),R>0&&(h=p.index)}else h=p.index;else p.y!==k[1]&&(h=p.index)}}}return h};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),h=0;h<S;++h){var w=k[h],y=w[0][0]<w[1][0];M[2*h]=new T(w[0][0],w,y,h),M[2*h+1]=new T(w[1][0],w,!y,h)}M.sort(function(P,L){var z=P.x-L.x;return z||(z=P.create-L.create,z)?z:Math.min(P.segment[0][1],P.segment[1][1])-Math.min(L.segment[0][1],L.segment[1][1])});for(var v=u(f),A=[],p=[],R=[],E=-1/0,h=0;h<x;){for(var D=M[h].x,I=[];h<x;){var F=M[h];if(F.x!==D)break;h+=1,F.segment[0][0]===F.x&&F.segment[1][0]===F.x?F.create&&(F.segment[0][1]<F.segment[1][1]?(I.push(new _(F.segment[0][1],F.index,!0,!0)),I.push(new _(F.segment[1][1],F.index,!1,!1))):(I.push(new _(F.segment[1][1],F.index,!0,!1)),I.push(new _(F.segment[0][1],F.index,!1,!0)))):F.create?v=v.insert(F.segment,F.index):v=v.remove(F.segment)}A.push(v.root),p.push(D),R.push(I)}return new c(A,p,R)}},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(d,_){var T=u(l(d,_),[_[_.length-1]]);return T[T.length-1]}function f(d,_,T,m){var k=m-_,S=-_/k;S<0?S=0:S>1&&(S=1);for(var x=1-S,M=d.length,h=new Array(M),w=0;w<M;++w)h[w]=S*d[w]+x*T[w];return h}function c(d,_){for(var T=[],m=[],k=s(d[d.length-1],_),S=d[d.length-1],x=d[0],M=0;M<d.length;++M,S=x){x=d[M];var h=s(x,_);if(k<0&&h>0||k>0&&h<0){var w=f(S,h,x,k);T.push(w),m.push(w.slice())}h<0?m.push(x.slice()):h>0?T.push(x.slice()):(T.push(x.slice()),m.push(x.slice())),k=h}return{positive:T,negative:m}}function g(d,_){for(var T=[],m=s(d[d.length-1],_),k=d[d.length-1],S=d[0],x=0;x<d.length;++x,k=S){S=d[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(d,_){for(var T=[],m=s(d[d.length-1],_),k=d[d.length-1],S=d[0],x=0;x<d.length;++x,k=S){S=d[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(d){return c(b(d),arguments)}function f(d,_){return s.apply(null,[d].concat(_||[]))}function c(d,_){var T=1,m=d.length,k,S="",x,M,h,w,y,v,A,p;for(x=0;x<m;x++)if(typeof d[x]=="string")S+=d[x];else if(typeof d[x]=="object"){if(h=d[x],h.keys)for(k=_[T],M=0;M<h.keys.length;M++){if(k==null)throw new Error(s('[sprintf] Cannot access property "%s" of undefined value "%s"',h.keys[M],h.keys[M-1]));k=k[h.keys[M]]}else h.param_no?k=_[h.param_no]:k=_[T++];if(u.not_type.test(h.type)&&u.not_primitive.test(h.type)&&k instanceof Function&&(k=k()),u.numeric_arg.test(h.type)&&typeof k!="number"&&isNaN(k))throw new TypeError(s("[sprintf] expecting number but found %T",k));switch(u.number.test(h.type)&&(A=k>=0),h.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,h.width?parseInt(h.width):0);break;case"e":k=h.precision?parseFloat(k).toExponential(h.precision):parseFloat(k).toExponential();break;case"f":k=h.precision?parseFloat(k).toFixed(h.precision):parseFloat(k);break;case"g":k=h.precision?String(Number(k.toPrecision(h.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=h.precision?k.substring(0,h.precision):k;break;case"t":k=String(!!k),k=h.precision?k.substring(0,h.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=h.precision?k.substring(0,h.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=h.precision?k.substring(0,h.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(h.type)?S+=k:(u.number.test(h.type)&&(!A||h.sign)?(p=A?"+":"-",k=k.toString().replace(u.sign,"")):p="",y=h.pad_char?h.pad_char==="0"?"0":h.pad_char.charAt(1):" ",v=h.width-(p+k).length,w=h.width&&v>0?y.repeat(v):"",S+=h.align?p+k+w:y==="0"?p+w+k:w+p+k)}return S}var g=Object.create(null);function b(d){if(g[d])return g[d];for(var _=d,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[d]=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(d,_,T){var m=d({order:_,scalarArguments:3,getters:T==="generic"?[0]:void 0,phase:function(S,x,M,h){return S>h|0},vertex:function(S,x,M,h,w,y,v,A,p,R,E,D,I){var F=(v<<0)+(A<<1)+(p<<2)+(R<<3)|0;if(!(F===0||F===15))switch(F){case 0:E.push([S-.5,x-.5]);break;case 1:E.push([S-.25-.25*(h+M-2*I)/(M-h),x-.25-.25*(w+M-2*I)/(M-w)]);break;case 2:E.push([S-.75-.25*(-h-M+2*I)/(h-M),x-.25-.25*(y+h-2*I)/(h-y)]);break;case 3:E.push([S-.5,x-.5-.5*(w+M+y+h-4*I)/(M-w+h-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*(h+M+y+w-4*I)/(M-h+w-y),x-.5]);break;case 6:E.push([S-.5-.25*(-h-M+y+w)/(h-M+w-y),x-.5-.25*(-w-M+y+h)/(w-M+h-y)]);break;case 7:E.push([S-.75-.25*(y+w-2*I)/(w-y),x-.75-.25*(y+h-2*I)/(h-y)]);break;case 8:E.push([S-.75-.25*(-y-w+2*I)/(y-w),x-.75-.25*(-y-h+2*I)/(y-h)]);break;case 9:E.push([S-.5-.25*(h+M+-y-w)/(M-h+y-w),x-.5-.25*(w+M+-y-h)/(M-w+y-h)]);break;case 10:E.push([S-.5-.5*(-h-M+-y-w+4*I)/(h-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-h+4*I)/(w-M+y-h)]);break;case 13:E.push([S-.75-.25*(h+M-2*I)/(M-h),x-.25-.25*(-y-h+2*I)/(y-h)]);break;case 14:E.push([S-.25-.25*(-h-M+2*I)/(h-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,h,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(d,_){var T=d.length+"d",m=s[T];if(m)return m(l,d,_)}function c(d,_){for(var T=u(d,_),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(d,k){if(d.dimension<=0)return{positions:[],cells:[]};if(d.dimension===1)return c(d,k);var T=d.order.join()+"-"+d.dtype,m=g[T],k=+k||0;return m||(m=g[T]=f(d.order,d.dtype)),m(d,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,h){return Math.sqrt(Math.pow(x,2)+Math.pow(M,2)+Math.pow(h,2))}function d(x){return Math.min(1,Math.max(-1,x))}function _(x){var M=Math.abs(x[0]),h=Math.abs(x[1]),w=Math.abs(x[2]),y=[0,0,0];M>Math.max(h,w)?y[2]=1:h>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,h,w,y,v,A,p){this.center=l(h),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 R=0;R<16;++R)this.computedMatrix[R]=.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,h=this.computedRight,w=0,y=0,v=0;v<3;++v)y+=M[v]*h[v],w+=M[v]*M[v];for(var A=Math.sqrt(w),p=0,v=0;v<3;++v)h[v]-=M[v]*y/w,p+=h[v]*h[v],M[v]/=A;for(var R=Math.sqrt(p),v=0;v<3;++v)h[v]/=R;var E=this.computedToward;f(E,M,h),c(E,E);for(var D=Math.exp(this.computedRadius[0]),I=this.computedAngle[0],F=this.computedAngle[1],P=Math.cos(I),L=Math.sin(I),z=Math.cos(F),O=Math.sin(F),B=this.computedCenter,V=P*z,J=L*z,Q=O,G=-P*O,q=-L*O,Z=z,re=this.computedEye,$=this.computedMatrix,v=0;v<3;++v){var ie=V*h[v]+J*E[v]+Q*M[v];$[4*v+1]=G*h[v]+q*E[v]+Z*M[v],$[4*v+2]=ie,$[4*v+3]=0}var j=$[1],te=$[5],ue=$[9],ee=$[2],ae=$[6],fe=$[10],we=te*fe-ue*ae,Me=ue*ee-j*fe,ke=j*ae-te*ee,ge=b(we,Me,ke);we/=ge,Me/=ge,ke/=ge,$[0]=we,$[4]=Me,$[8]=ke;for(var v=0;v<3;++v)re[v]=B[v]+$[2+4*v]*D;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 h=this.computedMatrix;if(M){for(var w=0;w<16;++w)M[w]=h[w];return M}return h};var k=[0,0,0];m.rotate=function(x,M,h,w){if(this.angle.move(x,M,h),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,R=0;R<3;++R)y[4*R]=v[R],y[4*R+1]=A[R],y[4*R+2]=p[R];s(y,y,w,k);for(var R=0;R<3;++R)v[R]=y[4*R],A[R]=y[4*R+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,h,w){M=M||0,h=h||0,w=w||0,this.recalcMatrix(x);var y=this.computedMatrix,v=Math.exp(this.computedRadius[0]),A=y[1],p=y[5],R=y[9],E=b(A,p,R);A/=E,p/=E,R/=E;var D=y[0],I=y[4],F=y[8],P=D*A+I*p+F*R;D-=A*P,I-=p*P,F-=R*P;var L=b(D,I,F);D/=L,I/=L,F/=L;var z=D*M+A*h,O=I*M+p*h,B=F*M+R*h;this.center.move(x,z,O,B);var V=Math.exp(this.computedRadius[0]);V=Math.max(1e-4,V+w),this.radius.set(x,Math.log(V))},m.translate=function(x,M,h,w){this.center.move(x,M||0,h||0,w||0)},m.setMatrix=function(x,M,h,w){var y=1;typeof h=="number"&&(y=h|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],R=M[y+4],E=M[y+8];if(w){var I=Math.abs(p),F=Math.abs(R),P=Math.abs(E),L=Math.max(I,F,P);I===L?(p=p<0?-1:1,R=E=0):P===L?(E=E<0?-1:1,p=R=0):(R=R<0?-1:1,p=E=0)}else{var D=b(p,R,E);p/=D,R/=D,E/=D}var z=M[v],O=M[v+4],B=M[v+8],V=z*p+O*R+B*E;z-=p*V,O-=R*V,B-=E*V;var J=b(z,O,B);z/=J,O/=J,B/=J;var Q=R*B-E*O,G=E*z-p*B,q=p*O-R*z,Z=b(Q,G,q);Q/=Z,G/=Z,q/=Z,this.center.jump(x,ye,oe,he),this.radius.idle(x),this.up.jump(x,p,R,E),this.right.jump(x,z,O,B);var re,$;if(y===2){var ie=M[1],j=M[5],te=M[9],ue=ie*z+j*O+te*B,ee=ie*Q+j*G+te*q;Me<0?re=-Math.PI/2:re=Math.PI/2,$=Math.atan2(ee,ue)}else{var ae=M[2],fe=M[6],we=M[10],Me=ae*p+fe*R+we*E,ke=ae*z+fe*O+we*B,ge=ae*Q+fe*G+we*q;re=Math.asin(d(Me)),$=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,he=X[14]/K,pe=Math.exp(this.computedRadius[0]);this.center.jump(x,ye-Ee*pe,oe-Le*pe,he-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,h,w){this.recalcMatrix(x),M=M||this.computedEye,h=h||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 R=M[0]-h[0],E=M[1]-h[1],D=M[2]-h[2],I=b(R,E,D);if(!(I<1e-6)){R/=I,E/=I,D/=I;var F=this.computedRight,P=F[0],L=F[1],z=F[2],O=y*P+v*L+A*z;P-=O*y,L-=O*v,z-=O*A;var B=b(P,L,z);if(!(B<.01&&(P=v*D-A*E,L=A*R-y*D,z=y*E-v*R,B=b(P,L,z),B<1e-6))){P/=B,L/=B,z/=B,this.up.set(x,y,v,A),this.right.set(x,P,L,z),this.center.set(x,h[0],h[1],h[2]),this.radius.set(x,Math.log(I));var V=v*z-A*L,J=A*P-y*z,Q=y*L-v*P,G=b(V,J,Q);V/=G,J/=G,Q/=G;var q=y*R+v*E+A*D,Z=P*R+L*E+z*D,re=V*R+J*E+Q*D,$=Math.asin(d(q)),ie=Math.atan2(re,Z),j=this.angle._state,te=j[j.length-1],ue=j[j.length-2];te=te%(2*Math.PI);var ee=Math.abs(te+2*Math.PI-ie),ae=Math.abs(te-ie),fe=Math.abs(te-2*Math.PI-ie);ee<ae&&(te+=2*Math.PI),fe<ae&&(te-=2*Math.PI),this.angle.jump(this.angle.lastT(),te,ue),this.angle.set(x,ie,$)}}}};function S(x){x=x||{};var M=x.center||[0,0,0],h=x.up||[0,1,0],w=x.right||_(h),y=x.radius||1,v=x.theta||0,A=x.phi||0;if(M=[].slice.call(M,0,3),h=[].slice.call(h,0,3),c(h,h),w=[].slice.call(w,0,3),c(w,w),"eye"in x){var p=x.eye,R=[p[0]-M[0],p[1]-M[1],p[2]-M[2]];f(w,R,h),b(w[0],w[1],w[2])<1e-6?w=_(h):c(w,w),y=b(R[0],R[1],R[2]);var E=g(h,R)/y,D=g(w,R)/y;A=Math.acos(E),v=Math.acos(D)}return y=Math.log(y),new T(x.zoomMin,x.zoomMax,M,h,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,d=l-b,_=o*u,T=_-u,m=_-T,k=u-m,S=f-b*m,x=S-d*m,M=x-b*k,h=d*k-M;return s?(s[0]=h,s[1]=f,s):[h,f]}},9362(a){"use strict";a.exports=o;function o(i,l,u){var s=i+l,f=s-i,c=s-f,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 d=b.DATA,_=b.BUFFER;o.free=function(P){if(s.isBuffer(P))_[l.log2(P.length)].push(P);else{if(Object.prototype.toString.call(P)!=="[object ArrayBuffer]"&&(P=P.buffer),!P)return;var L=P.length||P.byteLength,z=l.log2(L)|0;d[z].push(P)}};function T(F){if(F){var P=F.length||F.byteLength,L=l.log2(P);d[L].push(F)}}function m(F){T(F.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(P){_[l.log2(P.length)].push(P)},o.malloc=function(P,L){if(L===void 0||L==="arraybuffer")return k(P);switch(L){case"uint8":return S(P);case"uint16":return x(P);case"uint32":return M(P);case"int8":return h(P);case"int16":return w(P);case"int32":return y(P);case"float":case"float32":return v(P);case"double":case"float64":return A(P);case"uint8_clamped":return p(P);case"bigint64":return E(P);case"biguint64":return R(P);case"buffer":return I(P);case"data":case"dataview":return D(P);default:return null}return null};function k(P){var P=l.nextPow2(P),L=l.log2(P),z=d[L];return z.length>0?z.pop():new ArrayBuffer(P)}o.mallocArrayBuffer=k;function S(F){return new Uint8Array(k(F),0,F)}o.mallocUint8=S;function x(F){return new Uint16Array(k(2*F),0,F)}o.mallocUint16=x;function M(F){return new Uint32Array(k(4*F),0,F)}o.mallocUint32=M;function h(F){return new Int8Array(k(F),0,F)}o.mallocInt8=h;function w(F){return new Int16Array(k(2*F),0,F)}o.mallocInt16=w;function y(F){return new Int32Array(k(4*F),0,F)}o.mallocInt32=y;function v(F){return new Float32Array(k(4*F),0,F)}o.mallocFloat32=o.mallocFloat=v;function A(F){return new Float64Array(k(8*F),0,F)}o.mallocFloat64=o.mallocDouble=A;function p(F){return f?new Uint8ClampedArray(k(F),0,F):S(F)}o.mallocUint8Clamped=p;function R(F){return c?new BigUint64Array(k(8*F),0,F):null}o.mallocBigUint64=R;function E(F){return g?new BigInt64Array(k(8*F),0,F):null}o.mallocBigInt64=E;function D(F){return new DataView(k(F),0,F)}o.mallocDataView=D;function I(F){F=l.nextPow2(F);var P=l.log2(F),L=_[P];return L.length>0?L.pop():new s(F)}o.mallocBuffer=I,o.clearCache=function(){for(var P=0;P<32;++P)b.UINT8[P].length=0,b.UINT16[P].length=0,b.UINT32[P].length=0,b.INT8[P].length=0,b.INT16[P].length=0,b.INT32[P].length=0,b.FLOAT[P].length=0,b.DOUBLE[P].length=0,b.BIGUINT64[P].length=0,b.BIGINT64[P].length=0,b.UINT8C[P].length=0,d[P].length=0,_[P].length=0}},1755(a){"use strict";"use restrict";a.exports=o;function o(l){this.roots=new Array(l),this.ranks=new Array(l);for(var u=0;u<l;++u)this.roots[u]=u,this.ranks[u]=0}var i=o.prototype;Object.defineProperty(i,"length",{get:function(){return this.roots.length}}),i.makeSet=function(){var l=this.roots.length;return this.roots.push(l),this.ranks.push(0),l},i.find=function(l){for(var u=l,s=this.roots;s[l]!==l;)l=s[l];for(;s[u]!==l;){var f=s[u];s[u]=l,u=f}return l},i.link=function(l,u){var s=this.find(l),f=this.find(u);if(s!==f){var c=this.ranks,g=this.roots,b=c[s],d=c[f];b<d?g[s]=f:d<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],d=1;d<c;++d)if(b=g,g=u[d],s(g,b)){if(d===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=R;var l=i(3711),u=i(9618),s=i(5878),f=i(332),c=i(2538),g=i(2095),b="b",d="b|",_="i",T="i|",m="sup",k="+",S="+1",x="sub",M="-",h="-1";function w(D,I,F,P){for(var L="<"+D+">",z="</"+D+">",O=L.length,B=z.length,V=I[0]===k||I[0]===M,J=0,Q=-B;J>-1&&(J=F.indexOf(L,J),!(J===-1||(Q=F.indexOf(z,J+O),Q===-1)||Q<=J));){for(var G=J;G<Q+B;++G)if(G<J+O||G>=Q)P[G]=null,F=F.substr(0,G)+" "+F.substr(G+1);else if(P[G]!==null){var q=P[G].indexOf(I[0]);q===-1?P[G]+=I:V&&(P[G]=P[G].substr(0,q+1)+(1+parseInt(P[G][q+1]))+P[G].substr(q+2))}var Z=J+O,re=F.substr(Z,Q-Z),$=re.indexOf(L);$!==-1?J=$:J=Q+B}return P}function y(D,I,F){for(var P=I.textAlign||"start",L=I.textBaseline||"alphabetic",z=[1<<30,1<<30],O=[0,0],B=D.length,V=0;V<B;++V)for(var J=D[V],Q=0;Q<2;++Q)z[Q]=Math.min(z[Q],J[Q])|0,O[Q]=Math.max(O[Q],J[Q])|0;var G=0;switch(P){case"center":G=-.5*(z[0]+O[0]);break;case"right":case"end":G=-O[0];break;case"left":case"start":G=-z[0];break;default:throw new Error("vectorize-text: Unrecognized textAlign: '"+P+"'")}var q=0;switch(L){case"hanging":case"top":q=-z[1];break;case"middle":q=-.5*(z[1]+O[1]);break;case"alphabetic":case"ideographic":q=-3*F;break;case"bottom":q=-O[1];break;default:throw new Error("vectorize-text: Unrecoginized textBaseline: '"+L+"'")}var Z=1/F;return"lineHeight"in I?Z*=+I.lineHeight:"width"in I?Z=I.width/(O[0]-z[0]):"height"in I&&(Z=I.height/(O[1]-z[1])),D.map(function(re){return[Z*(re[0]+G),Z*(re[1]+q)]})}function v(D,I,F,P,L,z){F=F.replace(/\n/g,""),z.breaklines===!0?F=F.replace(/\<br\>/g,`
`):F=F.replace(/\<br\>/g," ");var O="",B=[];for(te=0;te<F.length;++te)B[te]=O;z.bolds===!0&&(B=w(b,d,F,B)),z.italics===!0&&(B=w(_,T,F,B)),z.superscripts===!0&&(B=w(m,S,F,B)),z.subscripts===!0&&(B=w(x,h,F,B));var V=[],J="";for(te=0;te<F.length;++te)B[te]!==null&&(J+=F[te],V.push(B[te]));var Q=J.split(`
`),G=Q.length,q=Math.round(L*P),Z=P,re=P*2,$=0,ie=G*q+re;D.height<ie&&(D.height=ie),I.fillStyle="#000",I.fillRect(0,0,D.width,D.height),I.fillStyle="#fff";var j,te,ue,ee,ae,fe=0,we="";function Me(){if(we!==""){var oe=I.measureText(we).width;I.fillText(we,Z+ue,re+ee),ue+=oe}}function ke(){return""+Math.round(ae)+"px "}function ge(oe,he){var pe=""+I.font;if(z.subscripts===!0){var me=oe.indexOf(M),Se=he.indexOf(M),ve=me>-1?parseInt(oe[1+me]):0,de=Se>-1?parseInt(he[1+Se]):0;ve!==de&&(pe=pe.replace(ke(),"?px "),ae*=Math.pow(.75,de-ve),pe=pe.replace("?px ",ke())),ee+=.25*q*(de-ve)}if(z.superscripts===!0){var be=oe.indexOf(k),Ae=he.indexOf(k),Pe=be>-1?parseInt(oe[1+be]):0,Ie=Ae>-1?parseInt(he[1+Ae]):0;Pe!==Ie&&(pe=pe.replace(ke(),"?px "),ae*=Math.pow(.75,Ie-Pe),pe=pe.replace("?px ",ke())),ee-=.25*q*(Ie-Pe)}if(z.bolds===!0){var Ye=oe.indexOf(d)>-1,qe=he.indexOf(d)>-1;!Ye&&qe&&(Ve?pe=pe.replace("italic ","italic bold "):pe="bold "+pe),Ye&&!qe&&(pe=pe.replace("bold ",""))}if(z.italics===!0){var Ve=oe.indexOf(T)>-1,Oe=he.indexOf(T)>-1;!Ve&&Oe&&(pe="italic "+pe),Ve&&!Oe&&(pe=pe.replace("italic ",""))}I.font=pe}for(j=0;j<G;++j){var Ee=Q[j]+`
`;for(ue=0,ee=j*q,ae=P,we="",te=0;te<Ee.length;++te){var Le=te+fe<V.length?V[te+fe]:V[V.length-1];O===Le?we+=Ee[te]:(Me(),we=Ee[te],Le!==void 0&&(ge(O,Le),O=Le))}Me(),fe+=Ee.length;var se=Math.round(ue+2*Z)|0;$<se&&($=se)}var X=$,K=re+q*G,ye=u(I.getImageData(0,0,X,K).data,[K,X,4]);return ye.pick(-1,-1,0).transpose(1,0)}function A(D,I){var F=l(D,128);return I?s(F.cells,F.positions,.25):{edges:F.cells,positions:F.positions}}function p(D,I,F,P){var L=A(D,P),z=y(L.positions,I,F),O=L.edges,B=I.orientation==="ccw";if(f(z,O),I.polygons||I.polygon||I.polyline){for(var V=g(O,z),J=new Array(V.length),Q=0;Q<V.length;++Q){for(var G=V[Q],q=new Array(G.length),Z=0;Z<G.length;++Z){for(var re=G[Z],$=new Array(re.length),ie=0;ie<re.length;++ie)$[ie]=z[re[ie]].slice();B&&$.reverse(),q[Z]=$}J[Q]=q}return J}else return I.triangles||I.triangulate||I.triangle?{cells:c(z,O,{delaunay:!1,exterior:!1,interior:!0}),positions:z}:{edges:O,positions:z}}function R(D,I,F){try{return p(D,I,F,!0)}catch(P){}try{return p(D,I,F,!1)}catch(P){}return I.polygons||I.polyline||I.polygon?[]:I.triangles||I.triangulate||I.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function E(D,I,F,P){var L=64,z=1.25,O={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};P&&(P.size&&P.size>0&&(L=P.size),P.lineSpacing&&P.lineSpacing>0&&(z=P.lineSpacing),P.styletags&&P.styletags.breaklines&&(O.breaklines=!!P.styletags.breaklines),P.styletags&&P.styletags.bolds&&(O.bolds=!!P.styletags.bolds),P.styletags&&P.styletags.italics&&(O.italics=!!P.styletags.italics),P.styletags&&P.styletags.subscripts&&(O.subscripts=!!P.styletags.subscripts),P.styletags&&P.styletags.superscripts&&(O.superscripts=!!P.styletags.superscripts)),F.font=[P.fontStyle,P.fontVariant,P.fontWeight,L+"px",P.font].filter(function(V){return V}).join(" "),F.textAlign="start",F.textBaseline="alphabetic",F.direction="ltr";var B=v(I,F,D,L,z,O);return R(B,P,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,d=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(R){return g(R).filter(S)}}),"getPropertyNames"in Object){var x=Object.getPropertyNames;b(Object,"getPropertyNames",{value:function(R){return x(R).filter(S)}})}function M(p){if(p!==Object(p))throw new TypeError("Not an object: "+p);var R=p[T];if(R&&R.key===p)return R;if(d(p)){R={key:p};try{return b(p,T,{value:R,writable:!1,enumerable:!1,configurable:!1}),R}catch(E){return}}}(function(){var p=Object.freeze;b(Object,"freeze",{value:function(I){return M(I),p(I)}});var R=Object.seal;b(Object,"seal",{value:function(I){return M(I),R(I)}});var E=Object.preventExtensions;b(Object,"preventExtensions",{value:function(I){return M(I),E(I)}})})();function h(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=[],R=[],E=v++;function D(L,z){var O,B=M(L);return B?E in B?B[E]:z:(O=p.indexOf(L),O>=0?R[O]:z)}function I(L){var z=M(L);return z?E in z:p.indexOf(L)>=0}function F(L,z){var O,B=M(L);return B?B[E]=z:(O=p.indexOf(L),O>=0?R[O]=z:(O=p.length,R[O]=z,p[O]=L)),this}function P(L){var z=M(L),O,B;return z?E in z&&delete z[E]:(O=p.indexOf(L),O<0?!1:(B=p.length-1,p[O]=void 0,R[O]=R[B],p[O]=p[B],p.length=B,R.length=B,!0))}return Object.create(A.prototype,{get___:{value:h(D)},has___:{value:h(I)},set___:{value:h(F)},delete___:{value:h(P)}})};A.prototype=Object.create(Object.prototype,{get:{value:function(R,E){return this.get___(R,E)},writable:!0,configurable:!0},has:{value:function(R){return this.has___(R)},writable:!0,configurable:!0},set:{value:function(R,E){return this.set___(R,E)},writable:!0,configurable:!0},delete:{value:function(R){return this.delete___(R)},writable:!0,configurable:!0}}),typeof u=="function"?(function(){l&&typeof Proxy!="undefined"&&(Proxy=void 0);function p(){this instanceof A||y();var R=new u,E=void 0,D=!1;function I(z,O){return E?R.has(z)?R.get(z):E.get___(z,O):R.get(z,O)}function F(z){return R.has(z)||(E?E.has___(z):!1)}var P;l?P=function(z,O){return R.set(z,O),R.has(z)||(E||(E=new A),E.set(z,O)),this}:P=function(z,O){if(D)try{R.set(z,O)}catch(B){E||(E=new A),E.set___(z,O)}else R.set(z,O);return this};function L(z){var O=!!R.delete(z);return E&&E.delete___(z)||O}return Object.create(A.prototype,{get___:{value:h(I)},has___:{value:h(F)},set___:{value:h(P)},delete___:{value:h(L)},permitHostObjects___:{value:h(function(z){if(z===i)D=!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,d,_,T){var m=c[0],k=b[0],S=[0],x=k;d|=0;var M=0,h=k;for(M=0;M<m;++M){{var w=g[d]-T,y=g[d+x]-T;w>=0!=y>=0&&_.push(S[0]+.5+.5*(w+y)/(w-y))}d+=h,++S[0]}}}function i(){return o()}var l=i;function u(c){var g={};return function(d,_,T){var m=d.dtype,k=d.order,S=[m,k.join()].join(),x=g[S];return x||(g[S]=x=c([m,k])),x(d.shape.slice(0),d.data,d.stride,d.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);aB.exports=n})()});var Qo=xe((d8e,iB)=>{"use strict";var{normalize:tye}=Zr();function nye(e){return e?tye(e):[0,0,0,1]}iB.exports=nye});var Wl=xe((p8e,cB)=>{"use strict";var uB=ft(),sg=uo(),Uf=Zr(),aye=ao().defaultLine,oB=ba().isArrayOrTypedArray,v4=Uf.normalize(aye),fB=1;function lB(e,r){return[e[0],e[1],e[2],e[3]*r]}function c4(e){return uB(e)||!Uf.isChannelArray(e)&&!Uf.isValid(e)?v4:Uf.normalize(e)}function sB(e){return uB(e)?e:fB}function iye(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=oB(n),o=oB(r),i=sg.extractOpts(e),l=[],u,s,f,c,g;if(i.colorscale!==void 0?u=sg.makeColorScaleFuncFromTrace(e):u=c4,a?s=(d,_)=>d[_]===void 0?v4:i.colorscale===void 0?u(d[_]):Uf.normalize(u(d[_])):s=c4,o?f=function(d,_){return d[_]===void 0?fB:sB(d[_])}:f=sB,a||o)for(var b=0;b<t;b++)c=s(n,b),g=f(r,b),l[b]=lB(c,g);else l=lB(c4(n),r);return l}function oye(e){var r=sg.extractOpts(e),t=r.colorscale;return r.reversescale&&(t=sg.flipScale(r.colorscale)),t.map(function(n){return{index:n[0],rgb:Uf.rgbaArray(n[1])}})}cB.exports={formatColor:iye,parseColorScale:oye}});var h4={};Ot(h4,{default:()=>sye});var lye,sye,d4=qt(()=>{"use strict";lye={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]},sye=lye});var ug={};Ot(ug,{default:()=>fye});var uye,fye,fg=qt(()=>{"use strict";uye={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"},fye=uye});var hB=xe((g8e,vB)=>{"use strict";var cye=Cr();function p4(e,r,t,n){if(!r||!r.visible)return null;for(var a=cye.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 vye(e){for(var r=0;r<e.length;r++)if(e[r])return e[r].length;return 0}function hye(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=vye(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}vB.exports=hye});var wB=xe((y8e,_B)=>{"use strict";var dye=Nn().gl_line3d,dB=Nn().gl_scatter3d,pye=Nn().gl_error3d,gye=Nn().gl_mesh3d,yye=Nn().delaunay_triangulate,jo=rr(),bB=Qo(),cg=Wl().formatColor,mye=s3(),g4=(d4(),or(h4)).default,bye=(fg(),or(ug)).default,xye=Bt(),_ye=fo().appendArrayPointValue,wye=hB();function xB(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=xB.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&&(jo.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 Mye(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=yye(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 Tye(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]=bB(o.color),n[a]=o.thickness)}return{capSize:r,color:t,lineWidth:n}}function pB(e){return e==null?0:e.indexOf("left")>-1?-1:e.indexOf("right")>-1?1:0}function gB(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function Aye(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]=pB(e[a]),n[a][1]=gB(e[a]));else n[0]=pB(e),n[1]=gB(e);return n}function kye(e,r){return r(e*4)}function Sye(e){return bye[e]}function y4(e,r,t,n,a){var o=null;if(jo.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,jo.identity);return o}function Cye(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,d=r.xcalendar,_=r.ycalendar,T=r.zcalendar,m,k,S,x,M,h;for(M=0;M<b;M++)m=o.d2l(f[M],0,d)*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))h=r.text;else if(jo.isTypedArray(r.text))h=Array.from(r.text);else if(r.text!==void 0)for(h=new Array(b),M=0;M<b;M++)h[M]=r.text;function w(B,V){var J=n[B];return xye.tickText(J,J.d2l(V),!0).text}var y=r.texttemplate;if(y){var v=e.fullLayout,A=v._d3locale,p=Array.isArray(y),R=p?Math.min(y.length,b):b,E=p?function(B){return y[B]}:function(){return y};for(h=new Array(R),M=0;M<R;M++){var D={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])},F={};_ye(F,r,M),h[M]=jo.texttemplateString({data:[F,D,r._meta],fallback:r.texttemplatefallback,labels:I,locale:A,template:E(M)})}}if(x={position:t,mode:r.mode,text:h},"line"in r&&(x.lineColor=cg(s,1,b),x.lineWidth=s.width,x.lineDashes=s.dash),"marker"in r){var P=mye(r);x.scatterColor=cg(u,1,b),x.scatterSize=y4(u.size,b,kye,20,P),x.scatterMarker=y4(u.symbol,b,Sye,"\u25CF"),x.scatterLineWidth=u.line.width,x.scatterLineColor=cg(u.line,1,b),x.scatterAngle=0}"textposition"in r&&(x.textOffset=Aye(r.textposition),x.textColor=cg(r.textfont,1,b),x.textSize=y4(r.textfont.size,b,jo.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 z=r.projection[L[M]];(x.project[M]=z.show)&&(x.projectOpacity[M]=z.opacity,x.projectScale[M]=z.scale)}x.errorBounds=wye(r,a,n);var O=Tye([r.error_x,r.error_y,r.error_z]);return x.errorColor=O.color,x.errorLineWidth=O.lineWidth,x.errorCapSize=O.capSize,x.delaunayAxis=r.surfaceaxis,x.delaunayColor=bB(r.surfacecolor),x}function yB(e){if(jo.isArrayOrTypedArray(e)){var r=e[0];return jo.isArrayOrTypedArray(r)&&(e=r),"rgb("+e.slice(0,3).map(function(t){return Math.round(t*255)})+")"}return null}function mB(e){return jo.isArrayOrTypedArray(e)?e.length===4&&typeof e[0]=="number"?yB(e):e.map(yB):null}m4.update=function(e){var r=this.scene.glplot.gl,t,n,a,o,i=g4.solid;this.data=e;var l=Cye(this.scene,e);"mode"in l&&(this.mode=l.mode),"lineDashes"in l&&l.lineDashes in g4&&(i=g4[l.lineDashes]),this.color=mB(l.scatterColor)||mB(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=dye(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=dB(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=dB(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=pye(a),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),l.delaunayAxis>=0){var s=Mye(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=gye(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 Eye(e,r){var t=new xB(e,r.uid);return t.update(r),t}_B.exports=Eye});var M4=xe((m8e,kB)=>{"use strict";var el=Zs(),Lye=Wn(),w4=Pi(),b4=Oo().axisHoverFormat,{hovertemplateAttrs:Rye,texttemplateAttrs:Dye,templatefallbackAttrs:MB}=Ei(),TB=Zn(),Pye=(d4(),or(h4)).default,Iye=(fg(),or(ug)).default,Ji=Rt().extendFlat,zye=ua().overrideAll,AB=(Vh(),or(Hh)).default,Fye=el.line,lu=el.marker,Nye=lu.line,qye=Ji({width:Fye.width,dash:{valType:"enumerated",values:AB(Pye),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=kB.exports=zye({x:el.x,y:el.y,z:{valType:"data_array"},text:Ji({},el.text,{}),texttemplate:Dye(),texttemplatefallback:MB({editType:"calc"}),hovertext:Ji({},el.hovertext,{}),hovertemplate:Rye(),hovertemplatefallback:MB(),xhoverformat:b4("x"),yhoverformat:b4("y"),zhoverformat:b4("z"),mode:Ji({},el.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:el.connectgaps,line:qye,marker:Ji({symbol:{valType:"enumerated",values:AB(Iye),dflt:"circle",arrayOk:!0},size:Ji({},lu.size,{dflt:8}),sizeref:lu.sizeref,sizemin:lu.sizemin,sizemode:lu.sizemode,opacity:Ji({},lu.opacity,{arrayOk:!1}),colorbar:lu.colorbar,line:Ji({width:Ji({},Nye.width,{arrayOk:!1})},w4("marker.line"))},w4("marker")),textposition:Ji({},el.textposition,{dflt:"top center"}),textfont:Lye({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:TB.opacity,hoverinfo:Ji({},TB.hoverinfo)},"calc","nested");_4.x.editType=_4.y.editType=_4.z.editType="calc+clearAxisTypes"});var EB=xe((b8e,CB)=>{"use strict";var SB=Cr(),Oye=rr(),T4=Ra(),Bye=Bb(),Uye=Ub(),Hye=Hb(),Vye=M4();CB.exports=function(r,t,n,a){function o(b,d){return Oye.coerce(r,t,Vye,b,d)}var i=Gye(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)&&Bye(r,t,n,a,o,{noAngle:!0,noLineDash:!0,noSelect:!0}),T4.hasLines(t)&&(o("connectgaps"),Uye(r,t,n,a,o)),T4.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),Hye(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=SB.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 Gye(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=SB.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 RB=xe((x8e,LB)=>{"use strict";var Yye=yp(),Xye=Yb();LB.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return Yye(n,t),Xye(r,t),n}});var PB=xe((_8e,DB)=>{DB.exports=Wye;function Wye(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 zB=xe((w8e,IB)=>{var Zye=PB();IB.exports=function(r){return Zye("webgl",r)}});var qB=xe((M8e,NB)=>{"use strict";var FB=Zr(),Jye=function(){};NB.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=Jye);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=FB.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=FB.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 UB=xe((T8e,BB)=>{"use strict";var su=Qo(),$ye=rr(),Kye=["xaxis","yaxis","zaxis"];function OB(){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 Qye=OB.prototype;Qye.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[Kye[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?$ye.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=su(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]=su(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=su(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]=su(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]=su(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]=su(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]=su(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function jye(e,r){var t=new OB;return t.merge(e,r),t}BB.exports=jye});var GB=xe((A8e,VB)=>{"use strict";var eme=Qo(),rme=["xaxis","yaxis","zaxis"];function HB(){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 tme=HB.prototype;tme.merge=function(e){for(var r=0;r<3;++r){var t=e[rme[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=eme(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function nme(e){var r=new HB;return r.merge(e),r}VB.exports=nme});var WB=xe((k8e,XB)=>{"use strict";XB.exports=sme;var YB=Bt(),ame=rr(),ime=["xaxis","yaxis","zaxis"],ome=[0,0,0];function lme(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 sme(e){for(var r=e.axesOptions,t=e.glplot.axesPixels,n=e.fullSceneLayout,a=[[],[],[]],o=0;o<3;++o){var i=n[ime[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||ame.constrain(i._length/40,4,9);YB.autoTicks(i,Math.abs(i.range[1]-i.range[0])/u)}for(var s=YB.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){ome[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=lme(a)}});var eU=xe((S8e,jB)=>{"use strict";var $B=Nn().gl_plot3d,ume=$B.createCamera,ZB=$B.createScene,fme=zB(),cme=G1(),dg=Cr(),wa=rr(),hg=wa.preserveDrawingBuffer(),pg=Bt(),$i=mo(),vme=Qo(),hme=qB(),dme=Cx(),pme=UB(),gme=GB(),yme=WB(),mme=af().applyAutorangeOptions,vv,vg,KB=!1;function QB(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=pme(r,r[this.id]),this.spikeOptions=gme(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=dg.getComponentMethod("annotations3d","convert"),this.drawAnnotations=dg.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var ra=QB.prototype;ra.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:hg,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(!vg&&(vv=document.createElement("canvas"),vg=fme({canvas:vv,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!vg))throw new Error("error creating static canvas/context for image server");r.gl=vg,r.canvas=vv}return r};var JB=!0;ra.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=ZB(r)}catch(n){if(e.staticMode||!JB||hg)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{hg=r.glOptions.preserveDrawingBuffer=!0,e.glplot=ZB(r)}catch(a){hg=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return JB=!1,t};ra.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=ume(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 hme(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(){KB=!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)}},cme?{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),yme(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,R){var E=e.fullSceneLayout[A+"axis"];return E.type!=="log"&&(p=E.d2l(p)),pg.hoverLabelText(E,p,R)}if(f!==null){var d=dme(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=$i.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,h=[];t.type==="cone"||t.type==="streamtube"?(m.uLabel=b("x",c.traceCoordinate[3],t.uhoverformat),(x||S.indexOf("u")!==-1)&&h.push("u: "+m.uLabel),m.vLabel=b("y",c.traceCoordinate[4],t.vhoverformat),(x||S.indexOf("v")!==-1)&&h.push("v: "+m.vLabel),m.wLabel=b("z",c.traceCoordinate[5],t.whoverformat),(x||S.indexOf("w")!==-1)&&h.push("w: "+m.wLabel),m.normLabel=c.traceCoordinate[6].toPrecision(3),(x||S.indexOf("norm")!==-1)&&h.push("norm: "+m.normLabel),t.type==="streamtube"&&(m.divergenceLabel=c.traceCoordinate[7].toPrecision(3),(x||S.indexOf("divergence")!==-1)&&h.push("divergence: "+m.divergenceLabel)),c.textLabel&&h.push(c.textLabel),M=h.join("<br>")):t.type==="isosurface"||t.type==="volume"?(m.valueLabel=pg.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),t.valuehoverformat),h.push("value: "+m.valueLabel),c.textLabel&&h.push(c.textLabel),M=h.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};$i.appendArrayPointValue(w,_,T),t._module.eventData&&(w=_._module.eventData(w,c,_,{},T));var y={points:[w]};if(e.fullSceneLayout.hovermode){var v=[];$i.loneHover({trace:_,x:(.5+.5*d[0]/d[3])*l,y:(.5-.5*d[1]/d[3])*u,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:M,name:f.name,color:$i.castHoverOption(_,T,"bgcolor")||f.color,borderColor:$i.castHoverOption(_,T,"bordercolor"),fontFamily:$i.castHoverOption(_,T,"font.family"),fontSize:$i.castHoverOption(_,T,"font.size"),fontColor:$i.castHoverOption(_,T,"font.color"),nameLength:$i.castHoverOption(_,T,"namelength"),textAlign:$i.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||KB)?r.emit("plotly_click",y):r.emit("plotly_hover",y),this.oldEventData=y}else $i.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 hv=["xaxis","yaxis","zaxis"];function bme(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=hv[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 xme(e,r){for(var t=e.fullSceneLayout,n=t.annotations||[],a=0;a<3;a++)for(var o=hv[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(vme(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)&&bme(this,a,g);xme(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 d=Object.keys(n.traces);e:for(i=0;i<d.length;++i){for(l=0;l<e.length;++l)if(e[l].uid===d[i]&&e[l].visible===!0&&e[l]._length!==0)continue e;o=n.traces[d[i]],o.dispose(),delete n.traces[d[i]]}n.glplot.objects.sort(function(B,V){return B._trace.data.index-V._trace.data.index});var _=[[0,0,0],[0,0,0]],T=[],m={};for(i=0;i<3;++i){u=f[hv[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 h=S[l],w=h.bounds,y=h._trace.data._pad||0;h.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=mme(k,u),_[0][i]=k[0],_[1][i]=k[1],u.isReversed()){var R=_[0][i];_[0][i]=_[1][i],_[1][i]=R}}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,D=f.aspectmode;if(D==="cube")E=[1,1,1];else if(D==="manual"){var I=f.aspectratio;E=[I.x,I.y,I.z]}else if(D==="auto"||D==="data"){var F=[1,1,1];for(i=0;i<3;++i){u=f[hv[i]],s=u.type;var P=m[s];F[i]=Math.pow(P.acc,1/P.count)/b[i]}D==="data"||Math.max.apply(null,F)/Math.min.apply(null,F)<=4?E=F: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,z=r._size||null;if(L&&z){var O=n.container.style;O.position="absolute",O.left=z.l+L.x[0]*z.w+"px",O.top=z.t+(1-L.y[1])*z.h+"px",O.width=z.w*(L.x[1]-L.x[0])+"px",O.height=z.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 _me(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 wme(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()),wme(e.camera)};ra.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,_me(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"],d=["x","y","z"];return f[b[c]]&&s[b[c]][d[g]]===f[b[c]][d[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),dg.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 d=wa.nestedProperty(t,r.id+".aspectratio");d.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;dg.call("_storeDirectGUIEdit",b,o._preGUI,g),i.up=c,wa.nestedProperty(b,f).set(c)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function Mme(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 Tme(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(vv),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),Mme(o,n,a),Tme(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(vv),s};ra.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[hv[r]];pg.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"},pg.setConvert(e._mockAxis,t)};jB.exports=QB});var tU=xe((C8e,rU)=>{"use strict";rU.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var k4=xe((E8e,nU)=>{"use strict";var Ame=Zr(),Hr=si(),A4=Rt().extendFlat,kme=ua().overrideAll;nU.exports=kme({visible:Hr.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Ame.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Hr.color,categoryorder:Hr.categoryorder,categoryarray:Hr.categoryarray,title:{text:Hr.title.text,font:Hr.title.font},type:A4({},Hr.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Hr.autotypenumbers,autorange:Hr.autorange,autorangeoptions:{minallowed:Hr.autorangeoptions.minallowed,maxallowed:Hr.autorangeoptions.maxallowed,clipmin:Hr.autorangeoptions.clipmin,clipmax:Hr.autorangeoptions.clipmax,include:Hr.autorangeoptions.include,editType:"plot"},rangemode:Hr.rangemode,minallowed:Hr.minallowed,maxallowed:Hr.maxallowed,range:A4({},Hr.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Hr.minor.tickmode,nticks:Hr.nticks,tick0:Hr.tick0,dtick:Hr.dtick,tickvals:Hr.tickvals,ticktext:Hr.ticktext,ticks:Hr.ticks,mirror:Hr.mirror,ticklen:Hr.ticklen,tickwidth:Hr.tickwidth,tickcolor:Hr.tickcolor,showticklabels:Hr.showticklabels,labelalias:Hr.labelalias,tickfont:Hr.tickfont,tickangle:Hr.tickangle,tickprefix:Hr.tickprefix,showtickprefix:Hr.showtickprefix,ticksuffix:Hr.ticksuffix,showticksuffix:Hr.showticksuffix,showexponent:Hr.showexponent,exponentformat:Hr.exponentformat,minexponent:Hr.minexponent,separatethousands:Hr.separatethousands,tickformat:Hr.tickformat,tickformatstops:Hr.tickformatstops,hoverformat:Hr.hoverformat,showline:Hr.showline,linecolor:Hr.linecolor,linewidth:Hr.linewidth,showgrid:Hr.showgrid,gridcolor:A4({},Hr.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Hr.gridwidth,zeroline:Hr.zeroline,zerolinecolor:Hr.zerolinecolor,zerolinewidth:Hr.zerolinewidth},"plot","from-root")});var L4=xe((L8e,aU)=>{"use strict";var S4=k4(),Sme=tg().attributes,C4=Rt().extendFlat,Cme=rr().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"}}aU.exports={_arrayAttrRegexps:[Cme("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:Sme({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 oU=xe((R8e,iU)=>{"use strict";var Eme=rr(),Lme=At(),Rme=tg().defaults;iU.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 d(k,S){return Eme.coerce(g,b,i,k,S)}for(var _=0;_<f;_++){var T=s[_];r[T]?g=r[T]:g=r[T]={},b=Lme.newContainer(t,T,c),a.noUirevision||d("uirevision",t.uirevision);var m={};m[u]=[_/f,(_+1)/f],Rme(b,t,d,m),a.id=T,l(g,b,d,a)}}});var fU=xe((D8e,uU)=>{"use strict";var Dme=Zr(),lU=rr(),Pme=At(),Ime=k4(),zme=fx(),Fme=kp(),sU=["xaxis","yaxis","zaxis"],Nme=13600/187;uU.exports=function(r,t,n){var a,o;function i(s,f){return lU.coerce(a,o,Ime,s,f)}for(var l=0;l<sU.length;l++){var u=sU[l];a=r[u]||{},o=Pme.newContainer(t,u),o._id=u[0]+n.scene,o._name=u,zme(a,o,i,n),Fme(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",Dme.mix(o.color,n.bgColor,Nme)),i("title.text",u[0]),o.setScale=lU.noop,i("showspikes")&&(i("spikesides"),i("spikethickness"),i("spikecolor",o.color)),i("showaxeslabels"),i("showbackground")&&i("backgroundcolor")}}});var dU=xe((P8e,hU)=>{"use strict";var qme=rr(),Ome=Zr(),Bme=Cr(),Ume=oU(),Hme=fU(),cU=L4(),Vme=Y0().getSubplotData,vU="gl3d";hU.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=qme.validate(r[i],cU[i]);if(l)return r[i]}}Ume(r,t,n,{type:vU,attributes:cU,handleDefaults:Gme,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function Gme(e,r,t,n){for(var a=t("bgcolor"),o=Ome.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=Vme(n.fullData,vU,n.id);Hme(e,r,{font:n.font,scene:n.id,data:c,bgColor:o,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),Bme.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,d=e.camera.up.y,_=e.camera.up.z;_!==0&&(!b||!d||!_||_/Math.sqrt(b*b+d*d+_*_)>.999)&&(g="turntable")}else g="turntable";t("dragmode",g),t("hovermode",n.getDfltFromLayout("hovermode"))}});var Zl=xe(Ma=>{"use strict";var Yme=ua().overrideAll,Xme=cs(),Wme=eU(),Zme=Y0().getSubplotData,Jme=rr(),$me=(wl(),or(_l)),Hf="gl3d",R4="scene";Ma.name=Hf;Ma.attr=R4;Ma.idRoot=R4;Ma.idRegex=Ma.attrRegex=Jme.counterRegex("scene");Ma.attributes=tU();Ma.layoutAttributes=L4();Ma.baseLayoutAttrOverrides=Yme({hoverlabel:Xme.hoverlabel},"plot","nested");Ma.supplyLayoutDefaults=dU();Ma.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[Hf],o=0;o<a.length;o++){var i=a[o],l=Zme(n,Hf,i),u=t[i],s=u.camera,f=u._scene;f||(f=new Wme({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[Hf]||[],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[Hf],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:$me.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=""),R4+t}};Ma.updateFx=function(e){for(var r=e._fullLayout,t=r._subplots[Hf],n=0;n<t.length;n++){var a=r[t[n]]._scene;a.updateFx(r.dragmode,r.hovermode)}}});var gU=xe((z8e,pU)=>{"use strict";pU.exports={plot:wB(),attributes:M4(),markerSymbols:(fg(),or(ug)).default,supplyDefaults:EB(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:RB(),moduleType:"trace",name:"scatter3d",basePlotModule:Zl(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var mU=xe((F8e,yU)=>{"use strict";yU.exports=gU()});var dv=xe((N8e,_U)=>{"use strict";var bU=Zr(),Kme=Pi(),D4=Oo().axisHoverFormat,{hovertemplateAttrs:Qme,templatefallbackAttrs:jme}=Ei(),xU=Zn(),P4=Rt().extendFlat,e3e=ua().overrideAll;function I4(e){return{valType:"boolean",dflt:!1}}function z4(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:I4("x"),y:I4("y"),z:I4("z")},color:{valType:"color",dflt:bU.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:bU.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var F4=_U.exports=e3e(P4({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:Qme(),hovertemplatefallback:jme(),xhoverformat:D4("x"),yhoverformat:D4("y"),zhoverformat:D4("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},Kme("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:z4("x"),y:z4("y"),z:z4("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:P4({},xU.hoverinfo),showlegend:P4({},xU.showlegend,{dflt:!1})}),"calc","nested");F4.x.editType=F4.y.editType=F4.z.editType="calc+clearAxisTypes"});var q4=xe((q8e,TU)=>{"use strict";var r3e=Cr(),wU=rr(),t3e=so(),n3e=dv(),N4=.1;function a3e(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 i3e(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 o3e(e,r,t,n){var a,o;function i(T,m){return wU.coerce(e,r,n3e,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)&&wU.isArrayOrTypedArray(l[0])?s.length:s[0].length,r._ylength=s.length;var f=r3e.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],d=i(b+".show"),_=i(b+".highlight");if(d||_)for(o=0;o<3;++o)i(b+".project."+g[o]);d&&(i(b+".color"),i(b+".width"),i(b+".usecolormap")),_&&(i(b+".highlightcolor"),i(b+".highlightwidth")),i(b+".start"),i(b+".end"),i(b+".size")}t3e(e,r,n,i,{prefix:"",cLetter:"c"}),MU(e,r,n,i),r._length=null}function MU(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=a3e(1,N4):i3e(a)||(r.opacityscale=void 0)}TU.exports={supplyDefaults:o3e,opacityscaleDefaults:MU}});var SU=xe((O8e,kU)=>{"use strict";var AU=Tl();kU.exports=function(r,t){t.surfacecolor?AU(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):AU(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var RU=xe((B8e,LU)=>{"use strict";var l3e=rr(),CU=.01,s3e=[[-1,0],[1,0],[0,-1],[0,1]];function u3e(e){return .5-.25*Math.min(1,e*.5)}LU.exports=function(r,t){var n=1,a;for(EU(r,t),a=0;a<t.length&&!(t[a][2]<4);a++);for(t=t.slice(a),a=0;a<100&&n>CU;a++)n=EU(r,t,u3e(n));return n>CU&&l3e.log("interp2d didn't converge quickly",n),r};function EU(e,r,t){var n=0,a,o,i,l,u,s,f,c,g,b,d,_,T;for(l=0;l<r.length;l++){for(a=r[l],o=a[0],i=a[1],d=e[o][i],b=0,g=0,u=0;u<4;u++)s=s3e[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,d===void 0?g<4&&(n=1):(e[o][i]=(1+t)*e[o][i]-t*d,T>_&&(n=Math.max(n,Math.abs(e[o][i]-d)/(T-_))))}return n}});var PU=xe((U8e,DU)=>{"use strict";var f3e=rr().maxRowLength;DU.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=f3e(r),s,f,c,g,b,d,_,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&&(d=(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),d?(f===0&&d++,c===0&&d++,f===r.length-1&&d++,c===i.length-1&&d++,d<4&&(n[[f,c]]=[f,c,d]),t.push([f,c,d])):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],d=((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,d&&(_[g]=[f,c,d],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 OU=xe((H8e,qU)=>{"use strict";var c3e=Nn().gl_surface3d,Vf=Nn().ndarray,v3e=Nn().ndarray_linear_interpolate.d2,h3e=RU(),d3e=PU(),pv=rr().isArrayOrTypedArray,p3e=Wl().parseColorScale,IU=Qo(),g3e=uo().extractOpts;function FU(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 Ki=FU.prototype;Ki.getXat=function(e,r,t,n){var a=pv(this.data.x)?pv(this.data.x[0])?this.data.x[r][e]:this.data.x[e]:e;return t===void 0?a:n.d2l(a,0,t)};Ki.getYat=function(e,r,t,n){var a=pv(this.data.y)?pv(this.data.y[0])?this.data.y[r][e]:this.data.y[r]:r;return t===void 0?a:n.d2l(a,0,t)};Ki.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)};Ki.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 pv(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 y3e(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 Gf=[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 m3e(e,r){if(e<r)return 0;for(var t=0;Math.floor(e%r)===0;)e/=r,t++;return t}function O4(e){for(var r=[],t=0;t<Gf.length;t++){var n=Gf[t];r.push(m3e(e,n))}return r}function b3e(e){for(var r=O4(e),t=e,n=0;n<Gf.length;n++)if(r[n]>0){t=Gf[n];break}return t}function x3e(e,r){if(!(e<1||r<1)){for(var t=O4(e),n=O4(r),a=1,o=0;o<Gf.length;o++)a*=Math.pow(Gf[o],Math.max(t[o],n[o]));return a}}function _3e(e){if(e.length!==0){for(var r=1,t=0;t<e.length;t++)r=x3e(r,e[t]);return r}}Ki.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};Ki.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 NU=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],zU=NU[9],gg=NU[13];Ki.estimateScale=function(e,r){for(var t=r===0?this.calcXnums(e):this.calcYnums(e),n=1+_3e(t);n<zU;)n*=2;for(;n>gg;)n--,n/=b3e(n),n++,n<zU&&(n=gg);var a=Math.round(n/e);return a>1?a:1};function w3e(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 M3e(e,r,t){return T3e(e,r,w3e,t),e}function T3e(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,v3e(r,a[0],a[1]));return e}Ki.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=Vf(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=Vf(new Float32Array(o*i),[o,i]);M3e(g,s,f),e[c]=g}};function A3e(e,r){for(var t=!1,n=0;n<e.length;n++)if(r===e[n]){t=!0;break}t===!1&&e.push(r)}Ki.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],A3e(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})}};Ki.update=function(e){var r=this.scene,t=r.fullSceneLayout,n=this.surface,a=p3e(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=d3e(b[2]),h3e(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 d=[Vf(new Float32Array(i*l),[i,l]),Vf(new Float32Array(i*l),[i,l]),Vf(new Float32Array(i*l),[i,l])];for(s=0;s<3;s++)for(f=0;f<i;f++)for(c=0;c<l;c++)d[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=g3e(e);if(_.intensityBounds=[T.min,T.max],e.surfacecolor){var m=Vf(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]);d.push(m)}else _.intensityBounds[0]*=o[2],_.intensityBounds[1]*=o[2];(gg<d[0].shape[0]||gg<d[0].shape[1])&&(this.refineData=!1),this.refineData===!0&&(this.dataScaleX=this.estimateScale(d[0].shape[0],0),this.dataScaleY=this.estimateScale(d[0].shape[1],1),(this.dataScaleX!==1||this.dataScaleY!==1)&&this.refineCoords(d)),e.surfacecolor&&(_.intensity=d.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]=IU(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]=IU(x.highlightcolor),_.dynamicWidth[s]=x.highlightwidth))}y3e(a)&&(_.vertexColor=!0),_.objectOffset=this.objectOffset,_.coords=d,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])};Ki.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()};function k3e(e,r){var t=e.glplot.gl,n=c3e({gl:t}),a=new FU(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}qU.exports=k3e});var UU=xe((V8e,BU)=>{"use strict";BU.exports={attributes:dv(),supplyDefaults:q4().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:SU(),plot:OU(),moduleType:"trace",name:"surface",basePlotModule:Zl(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var VU=xe((G8e,HU)=>{"use strict";HU.exports=UU()});var Yf=xe((Y8e,YU)=>{"use strict";var S3e=Pi(),B4=Oo().axisHoverFormat,{hovertemplateAttrs:C3e,templatefallbackAttrs:E3e}=Ei(),Jl=dv(),GU=Zn(),$l=Rt().extendFlat;YU.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:C3e({editType:"calc"}),hovertemplatefallback:E3e({editType:"calc"}),xhoverformat:B4("x"),yhoverformat:B4("y"),zhoverformat:B4("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"}},S3e("",{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({},GU.hoverinfo,{editType:"calc"}),showlegend:$l({},GU.showlegend,{dflt:!1})})});var mg=xe((X8e,WU)=>{"use strict";var L3e=Pi(),yg=Oo().axisHoverFormat,{hovertemplateAttrs:R3e,templatefallbackAttrs:D3e}=Ei(),gv=Yf(),XU=Zn(),U4=Rt().extendFlat,P3e=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 Xf=WU.exports=P3e(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:R3e(),hovertemplatefallback:D3e(),xhoverformat:yg("x"),yhoverformat:yg("y"),zhoverformat:yg("z"),valuehoverformat:yg("value",1),showlegend:U4({},XU.showlegend,{dflt:!1})},L3e("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:gv.opacity,lightposition:gv.lightposition,lighting:gv.lighting,flatshading:gv.flatshading,contour:gv.contour,hoverinfo:U4({},XU.hoverinfo)}),"calc","nested");Xf.flatshading.dflt=!0;Xf.lighting.facenormalsepsilon.dflt=0;Xf.x.editType=Xf.y.editType=Xf.z.editType=Xf.value.editType="calc+clearAxisTypes"});var G4=xe((W8e,JU)=>{"use strict";var I3e=rr(),z3e=Cr(),F3e=mg(),N3e=so();function q3e(e,r,t,n){function a(o,i){return I3e.coerce(e,r,F3e,o,i)}ZU(e,r,t,n,a)}function ZU(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=z3e.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 d=a("contour.show");d&&(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(_)}),N3e(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}JU.exports={supplyDefaults:q3e,supplyIsoDefaults:ZU}});var bg=xe((Z8e,KU)=>{"use strict";var X4=rr(),O3e=Tl();function B3e(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=So(r.u,r._len),r._v=So(r.v,r._len),r._w=So(r.w,r._len),r._x=So(r.x,r._len),r._y=So(r.y,r._len),r._z=So(r.z,r._len);var t=$U(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=So(r.starts.x||[]),o=So(r.starts.y||[]),i=So(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(O3e(e,r,{vals:[u,l],containerStr:"",cLetter:"c"}),s=0;s<n;s++){var d=a[s];t.xMax=Math.max(t.xMax,d),t.xMin=Math.min(t.xMin,d);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 $U(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,d="",_,T,m,k,S,x,M,h,w;for(a&&(k=r[0],x=t[0],h=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,d+="x"),!T&&t[o]!==x&&(T=!0,d+="y"),!m&&n[o]!==h&&(m=!0,d+="z");_||(d+="x"),T||(d+="y"),m||(d+="z");var y=Y4(e._x),v=Y4(e._y),A=Y4(e._z);d=d.replace("x",(k>S?"-":"+")+"x"),d=d.replace("y",(x>M?"-":"+")+"y"),d=d.replace("z",(h>w?"-":"+")+"z");var p=function(){a=0,y=[],v=[],A=[]};(!a||a<y.length*v.length*A.length)&&p();var R=function(ie){return ie==="x"?r:ie==="y"?t:n},E=function(ie){return ie==="x"?y:ie==="y"?v:A},D=function(ie){return ie[a-1]<ie[0]?-1:1},I=R(d[1]),F=R(d[3]),P=R(d[5]),L=E(d[1]).length,z=E(d[3]).length,O=E(d[5]).length,B=!1,V=function(ie,j,te){return L*(z*ie+j)+te},J=D(R(d[1])),Q=D(R(d[3])),G=D(R(d[5]));for(o=0;o<O-1;o++){for(i=0;i<z-1;i++){for(l=0;l<L-1;l++){var q=V(o,i,l),Z=V(o,i,l+1),re=V(o,i+1,l),$=V(o+1,i,l);if((!(I[q]*J<I[Z]*J)||!(F[q]*Q<F[re]*Q)||!(P[q]*G<P[$]*G))&&(B=!0),B)break}if(B)break}if(B)break}return B&&(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:d}}function Y4(e){return X4.distinctVals(e).vals}function So(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}KU.exports={calc:B3e,filter:So,processGrid:$U}});var W4=xe((J8e,QU)=>{"use strict";var U3e=Tl(),H3e=bg().processGrid,xg=bg().filter;QU.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=xg(t.x,t._len),t._y=xg(t.y,t._len),t._z=xg(t.z,t._len),t._value=xg(t.value,t._len);var n=H3e(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,U3e(r,t,{vals:[t._vMin,t._vMax],containerStr:"",cLetter:"c"})}});var Wf=xe(($8e,jU)=>{"use strict";jU.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 _g=xe((K8e,nH)=>{"use strict";var V3e=Nn().gl_mesh3d,G3e=Wl().parseColorScale,Y3e=rr().isArrayOrTypedArray,X3e=Qo(),W3e=uo().extractOpts,eH=Wf(),yv=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 rH(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var Z4=rH.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=yv(t,this.data._Xs).id,u=yv(n,this.data._Ys).id,s=yv(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 Y3e(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=tH(e);function n(u,s,f,c){return s.map(function(g){return u.d2l(g,0,c)*f})}var a=eH(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=eH(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:X3e(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=W3e(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=G3e(e),this.mesh.update(i)};Z4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var Z3e=["xyz","xzy","yxz","yzx","zxy","zyx"];function tH(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,d=c.length,_=g.length,T=Z3e.indexOf(e._gridFill.replace(/-/g,"").replace(/\+/g,"")),m=function(pe,me,Se){switch(T){case 5:return Se+_*me+_*d*pe;case 4:return Se+_*pe+_*b*me;case 3:return me+d*Se+d*_*pe;case 2:return me+d*pe+d*b*Se;case 1:return pe+b*Se+b*_*me;default:return pe+b*me+b*d*Se}},k=e._minValues,S=e._maxValues,x=e._vMin,M=e._vMax,h,w,y,v;function A(pe,me,Se){for(var ve=v.length,de=s;de<ve;de++)if(pe===h[de]&&me===w[de]&&Se===y[de])return de;return-1}function p(){s=u}function R(){h=[],w=[],y=[],v=[],u=0,p()}function E(pe,me,Se,ve){return h.push(pe),w.push(me),y.push(Se),v.push(ve),u++,u-1}function D(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=[],de=0;de<pe.length;de++)ve[de]=(pe[de]+me[de]+Se[de])/3;return ve}function F(pe,me,Se){for(var ve=[],de=0;de<pe.length;de++)ve[de]=pe[de]*(1-Se)+Se*me[de];return ve}var P;function L(pe){P=pe}function z(pe,me){var Se=pe[0],ve=pe[1],de=pe[2],be=I(Se,ve,de),Ae=Math.sqrt(1-P),Pe=F(be,Se,Ae),Ie=F(be,ve,Ae),Ye=F(be,de,Ae),qe=me[0],Ve=me[1],Oe=me[2];return{xyzv:[[Se,ve,Ie],[Ie,Pe,Se],[ve,de,Ye],[Ye,Ie,ve],[de,Se,Pe],[Pe,Ye,de]],abc:[[qe,Ve,-1],[-1,-1,qe],[Ve,Oe,-1],[-1,-1,Ve],[Oe,qe,-1],[-1,-1,Oe]]}}function O(pe,me){return pe==="all"||pe===null?!0:pe.indexOf(me)>-1}function B(pe,me){return pe===null?me:pe}function V(pe,me,Se){p();var ve=[me],de=[Se];if(P>=1)ve=[me],de=[Se];else if(P>0){var be=z(me,Se);ve=be.xyzv,de=be.abc}for(var Ae=0;Ae<ve.length;Ae++){me=ve[Ae],Se=de[Ae];for(var Pe=[],Ie=0;Ie<3;Ie++){var Ye=me[Ie][0],qe=me[Ie][1],Ve=me[Ie][2],Oe=me[Ie][3],We=Se[Ie]>-1?Se[Ie]:A(Ye,qe,Ve);We>-1?Pe[Ie]=We:Pe[Ie]=E(Ye,qe,Ve,B(pe,Oe))}D(Pe[0],Pe[1],Pe[2])}}function J(pe,me,Se){var ve=function(de,be,Ae){V(pe,[me[de],me[be],me[Ae]],[Se[de],Se[be],Se[Ae]])};ve(0,1,2),ve(2,3,0)}function Q(pe,me,Se){var ve=function(de,be,Ae){V(pe,[me[de],me[be],me[Ae]],[Se[de],Se[be],Se[Ae]])};ve(0,1,2),ve(3,0,1),ve(2,3,0),ve(1,2,3)}function G(pe,me,Se,ve){var de=pe[3];de<Se&&(de=Se),de>ve&&(de=ve);for(var be=(pe[3]-de)/(pe[3]-me[3]+1e-9),Ae=[],Pe=0;Pe<4;Pe++)Ae[Pe]=(1-be)*pe[Pe]+be*me[Pe];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 ie(pe,me,Se,ve,de,be){be||(be=1),Se=[-1,-1,-1];var Ae=!1,Pe=[q(me[0][3],ve,de),q(me[1][3],ve,de),q(me[2][3],ve,de)];if(!Pe[0]&&!Pe[1]&&!Pe[2])return!1;var Ie=function(qe,Ve,Oe){return Z(Ve[0][3])&&Z(Ve[1][3])&&Z(Ve[2][3])?(V(qe,Ve,Oe),!0):be<$?ie(qe,Ve,Oe,x,M,++be):!1};if(Pe[0]&&Pe[1]&&Pe[2])return Ie(pe,me,Se)||Ae;var Ye=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach(function(qe){if(Pe[qe[0]]&&Pe[qe[1]]&&!Pe[qe[2]]){var Ve=me[qe[0]],Oe=me[qe[1]],We=me[qe[2]],Ge=G(We,Ve,ve,de),tr=G(We,Oe,ve,de);Ae=Ie(pe,[tr,Ge,Ve],[-1,-1,Se[qe[0]]])||Ae,Ae=Ie(pe,[Ve,Oe,tr],[Se[qe[0]],Se[qe[1]],-1])||Ae,Ye=!0}}),Ye||[[0,1,2],[1,2,0],[2,0,1]].forEach(function(qe){if(Pe[qe[0]]&&!Pe[qe[1]]&&!Pe[qe[2]]){var Ve=me[qe[0]],Oe=me[qe[1]],We=me[qe[2]],Ge=G(Oe,Ve,ve,de),tr=G(We,Ve,ve,de);Ae=Ie(pe,[tr,Ge,Ve],[-1,-1,Se[qe[0]]])||Ae,Ye=!0}}),Ae}function j(pe,me,Se,ve){var de=!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 de;if(Ae[0]&&Ae[1]&&Ae[2]&&Ae[3])return i&&(de=Q(pe,be,me)||de),de;var Pe=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach(function(Ie){if(Ae[Ie[0]]&&Ae[Ie[1]]&&Ae[Ie[2]]&&!Ae[Ie[3]]){var Ye=be[Ie[0]],qe=be[Ie[1]],Ve=be[Ie[2]],Oe=be[Ie[3]];if(i)de=V(pe,[Ye,qe,Ve],[me[Ie[0]],me[Ie[1]],me[Ie[2]]])||de;else{var We=G(Oe,Ye,Se,ve),Ge=G(Oe,qe,Se,ve),tr=G(Oe,Ve,Se,ve);de=V(null,[We,Ge,tr],[-1,-1,-1])||de}Pe=!0}}),Pe||([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach(function(Ie){if(Ae[Ie[0]]&&Ae[Ie[1]]&&!Ae[Ie[2]]&&!Ae[Ie[3]]){var Ye=be[Ie[0]],qe=be[Ie[1]],Ve=be[Ie[2]],Oe=be[Ie[3]],We=G(Ve,Ye,Se,ve),Ge=G(Ve,qe,Se,ve),tr=G(Oe,qe,Se,ve),nr=G(Oe,Ye,Se,ve);i?(de=V(pe,[Ye,nr,We],[me[Ie[0]],-1,-1])||de,de=V(pe,[qe,Ge,tr],[me[Ie[1]],-1,-1])||de):de=J(null,[We,Ge,tr,nr],[-1,-1,-1,-1])||de,Pe=!0}}),Pe)||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach(function(Ie){if(Ae[Ie[0]]&&!Ae[Ie[1]]&&!Ae[Ie[2]]&&!Ae[Ie[3]]){var Ye=be[Ie[0]],qe=be[Ie[1]],Ve=be[Ie[2]],Oe=be[Ie[3]],We=G(qe,Ye,Se,ve),Ge=G(Ve,Ye,Se,ve),tr=G(Oe,Ye,Se,ve);i?(de=V(pe,[Ye,We,Ge],[me[Ie[0]],-1,-1])||de,de=V(pe,[Ye,Ge,tr],[me[Ie[0]],-1,-1])||de,de=V(pe,[Ye,tr,We],[me[Ie[0]],-1,-1])||de):de=V(null,[We,Ge,tr],[-1,-1,-1])||de,Pe=!0}}),de}function te(pe,me,Se,ve,de,be,Ae,Pe,Ie,Ye,qe){var Ve=!1;return o&&(O(pe,"A")&&(Ve=j(null,[me,Se,ve,be],Ye,qe)||Ve),O(pe,"B")&&(Ve=j(null,[Se,ve,de,Ie],Ye,qe)||Ve),O(pe,"C")&&(Ve=j(null,[Se,be,Ae,Ie],Ye,qe)||Ve),O(pe,"D")&&(Ve=j(null,[ve,be,Pe,Ie],Ye,qe)||Ve),O(pe,"E")&&(Ve=j(null,[Se,ve,be,Ie],Ye,qe)||Ve)),i&&(Ve=j(pe,[Se,ve,be,Ie],Ye,qe)||Ve),Ve}function ue(pe,me,Se,ve,de,be,Ae,Pe){return[Pe[0]===!0?!0:ie(pe,re([me,Se,ve]),[me,Se,ve],be,Ae),Pe[1]===!0?!0:ie(pe,re([ve,de,me]),[ve,de,me],be,Ae)]}function ee(pe,me,Se,ve,de,be,Ae,Pe,Ie){return Pe?ue(pe,me,Se,de,ve,be,Ae,Ie):ue(pe,Se,de,ve,me,be,Ae,Ie)}function ae(pe,me,Se,ve,de,be,Ae){var Pe=!1,Ie,Ye,qe,Ve,Oe=function(){Pe=ie(pe,[Ie,Ye,qe],[-1,-1,-1],de,be)||Pe,Pe=ie(pe,[qe,Ve,Ie],[-1,-1,-1],de,be)||Pe},We=Ae[0],Ge=Ae[1],tr=Ae[2];return We&&(Ie=F(re([m(me,Se-0,ve-0)])[0],re([m(me-1,Se-0,ve-0)])[0],We),Ye=F(re([m(me,Se-0,ve-1)])[0],re([m(me-1,Se-0,ve-1)])[0],We),qe=F(re([m(me,Se-1,ve-1)])[0],re([m(me-1,Se-1,ve-1)])[0],We),Ve=F(re([m(me,Se-1,ve-0)])[0],re([m(me-1,Se-1,ve-0)])[0],We),Oe()),Ge&&(Ie=F(re([m(me-0,Se,ve-0)])[0],re([m(me-0,Se-1,ve-0)])[0],Ge),Ye=F(re([m(me-0,Se,ve-1)])[0],re([m(me-0,Se-1,ve-1)])[0],Ge),qe=F(re([m(me-1,Se,ve-1)])[0],re([m(me-1,Se-1,ve-1)])[0],Ge),Ve=F(re([m(me-1,Se,ve-0)])[0],re([m(me-1,Se-1,ve-0)])[0],Ge),Oe()),tr&&(Ie=F(re([m(me-0,Se-0,ve)])[0],re([m(me-0,Se-0,ve-1)])[0],tr),Ye=F(re([m(me-0,Se-1,ve)])[0],re([m(me-0,Se-1,ve-1)])[0],tr),qe=F(re([m(me-1,Se-1,ve)])[0],re([m(me-1,Se-1,ve-1)])[0],tr),Ve=F(re([m(me-1,Se-0,ve)])[0],re([m(me-1,Se-0,ve-1)])[0],tr),Oe()),Pe}function fe(pe,me,Se,ve,de,be,Ae,Pe,Ie,Ye,qe,Ve){var Oe=pe;return Ve?(o&&pe==="even"&&(Oe=null),te(Oe,me,Se,ve,de,be,Ae,Pe,Ie,Ye,qe)):(o&&pe==="odd"&&(Oe=null),te(Oe,Ie,Pe,Ae,be,de,ve,Se,me,Ye,qe))}function we(pe,me,Se,ve,de){for(var be=[],Ae=0,Pe=0;Pe<me.length;Pe++)for(var Ie=me[Pe],Ye=1;Ye<_;Ye++)for(var qe=1;qe<d;qe++)be.push(ee(pe,m(Ie,qe-1,Ye-1),m(Ie,qe-1,Ye),m(Ie,qe,Ye-1),m(Ie,qe,Ye),Se,ve,(Ie+qe+Ye)%2,de&&de[Ae]?de[Ae]:[])),Ae++;return be}function Me(pe,me,Se,ve,de){for(var be=[],Ae=0,Pe=0;Pe<me.length;Pe++)for(var Ie=me[Pe],Ye=1;Ye<b;Ye++)for(var qe=1;qe<_;qe++)be.push(ee(pe,m(Ye-1,Ie,qe-1),m(Ye,Ie,qe-1),m(Ye-1,Ie,qe),m(Ye,Ie,qe),Se,ve,(Ye+Ie+qe)%2,de&&de[Ae]?de[Ae]:[])),Ae++;return be}function ke(pe,me,Se,ve,de){for(var be=[],Ae=0,Pe=0;Pe<me.length;Pe++)for(var Ie=me[Pe],Ye=1;Ye<d;Ye++)for(var qe=1;qe<b;qe++)be.push(ee(pe,m(qe-1,Ye-1,Ie),m(qe-1,Ye,Ie),m(qe,Ye-1,Ie),m(qe,Ye,Ie),Se,ve,(qe+Ye+Ie)%2,de&&de[Ae]?de[Ae]:[])),Ae++;return be}function ge(pe,me,Se){for(var ve=1;ve<_;ve++)for(var de=1;de<d;de++)for(var be=1;be<b;be++)fe(pe,m(be-1,de-1,ve-1),m(be-1,de-1,ve),m(be-1,de,ve-1),m(be-1,de,ve),m(be,de-1,ve-1),m(be,de-1,ve),m(be,de,ve-1),m(be,de,ve),me,Se,(be+de+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,de,be){for(var Ae=[],Pe=0,Ie=0;Ie<me.length;Ie++)for(var Ye=me[Ie],qe=1;qe<_;qe++)for(var Ve=1;Ve<d;Ve++)Ae.push(ae(pe,Ye,Ve,qe,Se,ve,de[Ie],be&&be[Pe]?be[Pe]:[])),Pe++;return Ae}function X(pe,me,Se,ve,de,be){for(var Ae=[],Pe=0,Ie=0;Ie<me.length;Ie++)for(var Ye=me[Ie],qe=1;qe<b;qe++)for(var Ve=1;Ve<_;Ve++)Ae.push(ae(pe,qe,Ye,Ve,Se,ve,de[Ie],be&&be[Pe]?be[Pe]:[])),Pe++;return Ae}function K(pe,me,Se,ve,de,be){for(var Ae=[],Pe=0,Ie=0;Ie<me.length;Ie++)for(var Ye=me[Ie],qe=1;qe<d;qe++)for(var Ve=1;Ve<b;Ve++)Ae.push(ae(pe,Ve,qe,Ye,Se,ve,de[Ie],be&&be[Pe]?be[Pe]:[])),Pe++;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<d;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 he(){R(),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 de=Se===1?.5:ve/(Se-1),be=(1-de)*x+de*M,Ae=Math.abs(be-k),Pe=Math.abs(be-S),Ie=Ae>Pe?[k,be]:[be,S];Le(me,Ie[0],Ie[1])}}var Ye=[[Math.min(x,S),Math.max(x,S)],[Math.min(k,M),Math.max(k,M)]];["x","y","z"].forEach(function(qe){for(var Ve=[],Oe=0;Oe<Ye.length;Oe++){var We=0,Ge=Ye[Oe][0],tr=Ye[Oe][1],nr=e.slices[qe];if(nr.show&&nr.fill){L(nr.fill);var er=[],Qe=[],Ce=[];if(nr.locations.length)for(var Fe=0;Fe<nr.locations.length;Fe++){var Ke=yv(nr.locations[Fe],qe==="x"?f:qe==="y"?c:g);Ke.distRatio===0?er.push(Ke.id):Ke.id>0&&(Qe.push(Ke.id),qe==="x"?Ce.push([Ke.distRatio,0,0]):qe==="y"?Ce.push([0,Ke.distRatio,0]):Ce.push([0,0,Ke.distRatio]))}else qe==="x"?er=ye(1,b-1):qe==="y"?er=ye(1,d-1):er=ye(1,_-1);Qe.length>0&&(qe==="x"?Ve[We]=se(pe,Qe,Ge,tr,Ce,Ve[We]):qe==="y"?Ve[We]=X(pe,Qe,Ge,tr,Ce,Ve[We]):Ve[We]=K(pe,Qe,Ge,tr,Ce,Ve[We]),We++),er.length>0&&(qe==="x"?Ve[We]=we(pe,er,Ge,tr,Ve[We]):qe==="y"?Ve[We]=Me(pe,er,Ge,tr,Ve[We]):Ve[We]=ke(pe,er,Ge,tr,Ve[We]),We++)}var je=e.caps[qe];je.show&&je.fill&&(L(je.fill),qe==="x"?Ve[We]=we(pe,[0,b-1],Ge,tr,Ve[We]):qe==="y"?Ve[We]=Me(pe,[0,d-1],Ge,tr,Ve[We]):Ve[We]=ke(pe,[0,_-1],Ge,tr,Ve[We]),We++)}}),l===0&&R(),e._meshX=h,e._meshY=w,e._meshZ=y,e._meshIntensity=v,e._Xs=f,e._Ys=c,e._Zs=g}return he(),e}function J3e(e,r){var t=e.glplot.gl,n=V3e({gl:t}),a=new rH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}nH.exports={findNearestOnAxis:yv,generateIsoMeshes:tH,createIsosurfaceTrace:J3e}});var iH=xe((Q8e,aH)=>{"use strict";aH.exports={attributes:mg(),supplyDefaults:G4().supplyDefaults,calc:W4(),colorbar:{min:"cmin",max:"cmax"},plot:_g().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:Zl(),categories:["gl3d","showLegend"],meta:{}}});var lH=xe((j8e,oH)=>{"use strict";oH.exports=iH()});var $4=xe((e9e,uH)=>{"use strict";var $3e=Pi(),dn=mg(),K3e=dv(),sH=Zn(),J4=Rt().extendFlat,Q3e=ua().overrideAll,wg=uH.exports=Q3e(J4({x:dn.x,y:dn.y,z:dn.z,value:dn.value,isomin:dn.isomin,isomax:dn.isomax,surface:dn.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:dn.slices,caps:dn.caps,text:dn.text,hovertext:dn.hovertext,xhoverformat:dn.xhoverformat,yhoverformat:dn.yhoverformat,zhoverformat:dn.zhoverformat,valuehoverformat:dn.valuehoverformat,hovertemplate:dn.hovertemplate,hovertemplatefallback:dn.hovertemplatefallback},$3e("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:dn.colorbar,opacity:dn.opacity,opacityscale:K3e.opacityscale,lightposition:dn.lightposition,lighting:dn.lighting,flatshading:dn.flatshading,contour:dn.contour,hoverinfo:J4({},sH.hoverinfo),showlegend:J4({},sH.showlegend,{dflt:!1})}),"calc","nested");wg.x.editType=wg.y.editType=wg.z.editType=wg.value.editType="calc+clearAxisTypes"});var cH=xe((r9e,fH)=>{"use strict";var j3e=rr(),e5e=$4(),r5e=G4().supplyIsoDefaults,t5e=q4().opacityscaleDefaults;fH.exports=function(r,t,n,a){function o(i,l){return j3e.coerce(r,t,e5e,i,l)}r5e(r,t,n,a,o),t5e(r,t,a,o)}});var pH=xe((t9e,dH)=>{"use strict";var n5e=Nn().gl_mesh3d,a5e=Wl().parseColorScale,i5e=rr().isArrayOrTypedArray,o5e=Qo(),l5e=uo().extractOpts,vH=Wf(),K4=_g().findNearestOnAxis,s5e=_g().generateIsoMeshes;function hH(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var Q4=hH.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 i5e(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=s5e(e);function n(u,s,f,c){return s.map(function(g){return u.d2l(g,0,c)*f})}var a=vH(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=vH(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:o5e(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=l5e(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=a5e(e),this.mesh.update(i)};Q4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function u5e(e,r){var t=e.glplot.gl,n=n5e({gl:t}),a=new hH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}dH.exports=u5e});var yH=xe((n9e,gH)=>{"use strict";gH.exports={attributes:$4(),supplyDefaults:cH(),calc:W4(),colorbar:{min:"cmin",max:"cmax"},plot:pH(),moduleType:"trace",name:"volume",basePlotModule:Zl(),categories:["gl3d","showLegend"],meta:{}}});var bH=xe((a9e,mH)=>{"use strict";mH.exports=yH()});var wH=xe((i9e,_H)=>{"use strict";var f5e=Cr(),xH=rr(),c5e=so(),v5e=Yf();_H.exports=function(r,t,n,a){function o(f,c){return xH.coerce(r,t,v5e,f,c)}function i(f){var c=f.map(function(g){var b=o(g);return b&&xH.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=f5e.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"),c5e(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 TH=xe((o9e,MH)=>{"use strict";var h5e=Tl();MH.exports=function(r,t){t.intensity&&h5e(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var EH=xe((l9e,CH)=>{"use strict";var d5e=Nn().gl_mesh3d,p5e=Nn().delaunay_triangulate,g5e=Nn().alpha_shape,y5e=Nn().convex_hull,m5e=Wl().parseColorScale,b5e=rr().isArrayOrTypedArray,t6=Qo(),x5e=uo().extractOpts,AH=Wf();function SH(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=SH.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 b5e(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function kH(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 _5e(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 p5e(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=AH(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=AH(e6(e.i),e6(e.j),e6(e.k))}else e.alphahull===0?o=y5e(a):e.alphahull>0?o=g5e(e.alphahull,a):o=_5e(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=x5e(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=m5e(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=kH(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=kH(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 w5e(e,r){var t=e.glplot.gl,n=d5e({gl:t}),a=new SH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}CH.exports=w5e});var RH=xe((s9e,LH)=>{"use strict";LH.exports={attributes:Yf(),supplyDefaults:wH(),calc:TH(),colorbar:{min:"cmin",max:"cmax"},plot:EH(),moduleType:"trace",name:"mesh3d",basePlotModule:Zl(),categories:["gl3d","showLegend"],meta:{}}});var PH=xe((u9e,DH)=>{"use strict";DH.exports=RH()});var i6=xe((f9e,zH)=>{"use strict";var M5e=Pi(),Zf=Oo().axisHoverFormat,{hovertemplateAttrs:T5e,templatefallbackAttrs:A5e}=Ei(),k5e=Yf(),IH=Zn(),a6=Rt().extendFlat,Mg={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:T5e({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:A5e({editType:"calc"}),uhoverformat:Zf("u",1),vhoverformat:Zf("v",1),whoverformat:Zf("w",1),xhoverformat:Zf("x"),yhoverformat:Zf("y"),zhoverformat:Zf("z"),showlegend:a6({},IH.showlegend,{dflt:!1})};a6(Mg,M5e("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var S5e=["opacity","lightposition","lighting"];S5e.forEach(function(e){Mg[e]=k5e[e]});Mg.hoverinfo=a6({},IH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});zH.exports=Mg});var NH=xe((c9e,FH)=>{"use strict";var C5e=rr(),E5e=so(),L5e=i6();FH.exports=function(r,t,n,a){function o(b,d){return C5e.coerce(r,t,L5e,b,d)}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"),E5e(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 OH=xe((v9e,qH)=>{"use strict";var R5e=Tl();qH.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,R5e(r,t,{vals:[u,l],containerStr:"",cLetter:"c"})}});var GH=xe((h9e,VH)=>{"use strict";var D5e=Nn().gl_cone3d,P5e=Nn().gl_cone3d.createConeMesh,I5e=rr().simpleMap,z5e=Wl().parseColorScale,F5e=uo().extractOpts,N5e=rr().isArrayOrTypedArray,BH=Wf();function UH(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var o6=UH.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 N5e(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var q5e={xaxis:0,yaxis:1,zaxis:2},O5e={tip:1,tail:0,cm:.25,center:.5},B5e={tip:1,tail:1,cm:.75,center:.5};function HH(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,c){var g=t[c],b=n[q5e[c]];return I5e(f,function(d){return g.d2l(d)*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=F5e(r);a.colormap=z5e(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=O5e[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=HH(this.scene,e);this.mesh.update(r)};o6.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function U5e(e,r){var t=e.glplot.gl,n=HH(e,r),a=P5e(t,n),o=new UH(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}VH.exports=U5e});var XH=xe((d9e,YH)=>{"use strict";YH.exports={moduleType:"trace",name:"cone",basePlotModule:Zl(),categories:["gl3d","showLegend"],attributes:i6(),supplyDefaults:NH(),colorbar:{min:"cmin",max:"cmax"},calc:OH(),plot:GH(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var ZH=xe((p9e,WH)=>{"use strict";WH.exports=XH()});var s6=xe((g9e,$H)=>{"use strict";var H5e=Pi(),Jf=Oo().axisHoverFormat,{hovertemplateAttrs:V5e,templatefallbackAttrs:G5e}=Ei(),Y5e=Yf(),JH=Zn(),l6=Rt().extendFlat,Tg={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:V5e({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:G5e({editType:"calc"}),uhoverformat:Jf("u",1),vhoverformat:Jf("v",1),whoverformat:Jf("w",1),xhoverformat:Jf("x"),yhoverformat:Jf("y"),zhoverformat:Jf("z"),showlegend:l6({},JH.showlegend,{dflt:!1})};l6(Tg,H5e("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var X5e=["opacity","lightposition","lighting"];X5e.forEach(function(e){Tg[e]=Y5e[e]});Tg.hoverinfo=l6({},JH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});$H.exports=Tg});var QH=xe((y9e,KH)=>{"use strict";var W5e=rr(),Z5e=so(),J5e=s6();KH.exports=function(r,t,n,a){function o(g,b){return W5e.coerce(r,t,J5e,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"),Z5e(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 oV=xe((m9e,iV)=>{"use strict";var rV=Nn().gl_streamtube3d,$5e=rV.createTubeMesh,K5e=rr(),Q5e=Wl().parseColorScale,j5e=uo().extractOpts,jH=Wf(),tV={xaxis:0,yaxis:1,zaxis:2};function nV(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var f6=nV.prototype;f6.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[tV[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 eV(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 aV(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(R,E){var D=t[E],I=n[tV[E]];return K5e.simpleMap(R,function(F){return D.d2l(F)*I})}if(o.vectors=jH(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=jH(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var c=u[0],g=eV(l),b=eV(s),d=new Array(g.length*b.length),_=0,T=0;T<g.length;T++)for(var m=0;m<b.length;m++)d[_++]=[g[T],c,b[m]];o.startingPositions=d}o.colormap=Q5e(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),h=u6(u),w=u6(s),y=[[k[0]-M[0],S[0]-h[0],x[0]-w[0]],[k[1]+M[1],S[1]+h[1],x[1]+w[1]]],v=rV(o,y),A=j5e(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=aV(this.scene,e);this.mesh.update(r)};f6.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function ebe(e,r){var t=e.glplot.gl,n=aV(e,r),a=$5e(t,n),o=new nV(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}iV.exports=ebe});var sV=xe((b9e,lV)=>{"use strict";lV.exports={moduleType:"trace",name:"streamtube",basePlotModule:Zl(),categories:["gl3d","showLegend"],attributes:s6(),supplyDefaults:QH(),colorbar:{min:"cmin",max:"cmax"},calc:bg().calc,plot:oV(),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 fV=xe((x9e,uV)=>{"use strict";uV.exports=sV()});var ta=xe((_9e,vV)=>{"use strict";var cV=Object.getOwnPropertySymbols,rbe=Object.prototype.hasOwnProperty,tbe=Object.prototype.propertyIsEnumerable;function nbe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function abe(){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}}vV.exports=abe()?Object.assign:function(e,r){for(var t,n=nbe(e),a,o=1;o<arguments.length;o++){t=Object(arguments[o]);for(var i in t)rbe.call(t,i)&&(n[i]=t[i]);if(cV){a=cV(t);for(var l=0;l<a.length;l++)tbe.call(t,a[l])&&(n[a[l]]=t[a[l]])}}return n}});var na=xe((w9e,dV)=>{var kg=ta();function hV(){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={}}kg(hV.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(Qr.local.invalidDate||Qr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Ag(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}kg(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(Qr.local.invalidDate||Qr.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(Qr.local.differentCalendars||Qr.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?"-":"")+Ag(Math.abs(this.year()),4)+"-"+Ag(this.month(),2)+"-"+Ag(this.day(),2)}});function v6(){this.shortYearCutoff="+10"}kg(v6.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Qr.local.invalidDate||Qr.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,Qr.local.invalidYear||Qr.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,Qr.local.invalidYear||Qr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Ag(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Qr.local.invalidYear||Qr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Qr.local.invalidMonth||Qr.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,Qr.local.invalidMonth||Qr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qr.local.invalidYear||Qr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Qr.local.invalidDate||Qr.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,Qr.local.invalidDate||Qr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Qr.local.invalidDate||Qr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Qr.local.invalidDate||Qr.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,Qr.local.invalidDate||Qr.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,Qr.local.invalidDate||Qr.regionalOptions[""].invalidDate);return Qr.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(e){return this.fromJD(Qr.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,n){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(Qr.local.differentCalendars||Qr.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;kg(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,Qr.local.invalidYear||Qr.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,Qr.local.invalidMonth||Qr.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,Qr.local.invalidDate||Qr.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,Qr.local.invalidDate||Qr.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 Qr=dV.exports=new hV;Qr.cdate=c6;Qr.baseCalendar=v6;Qr.calendars.gregorian=h6});var pV=xe(()=>{var d6=ta(),qn=na();d6(qn.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"});qn.local=qn.regionalOptions[""];d6(qn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});d6(qn.baseCalendar.prototype,{UNIX_EPOCH:qn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:qn.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 qn.local.invalidFormat||qn.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 h=1;S+h<e.length&&e.charAt(S+h)===x;)h++;return S+=h-1,Math.floor(h/(M||1))>1},f=function(x,M,h,w){var y=""+M;if(s(x,w))for(;y.length<h;)y="0"+y;return y},c=function(x,M,h,w){return s(x)?w[M]:h[M]},g=this,b=function(x){return typeof o=="function"?o.call(g,x,s("m")):T(f("m",x.month(),2))},d=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+=d(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 qn.local.invalidArguments||qn.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,d=-1,_=!1,T=!1,m=function(R,E){for(var D=1;v+D<e.length&&e.charAt(v+D)===R;)D++;return v+=D-1,Math.floor(D/(E||1))>1},k=function(R,E){var D=m(R,E),I=[2,3,D?4:2,D?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],F=new RegExp("^-?\\d{1,"+I+"}"),P=r.substring(y).match(F);if(!P)throw(qn.local.missingNumberAt||qn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,y);return y+=P[0].length,parseInt(P[0],10)},S=this,x=function(){if(typeof l=="function"){m("m");var R=l.call(S,r.substring(y));return y+=R.length,R}return k("m")},M=function(R,E,D,I){for(var F=m(R,I)?D:E,P=0;P<F.length;P++)if(r.substr(y,F[P].length).toLowerCase()===F[P].toLowerCase())return y+=F[P].length,P+S.minMonth;throw(qn.local.unknownNameAt||qn.regionalOptions[""].unknownNameAt).replace(/\{0\}/,y)},h=function(){if(typeof s=="function"){var R=m("M")?s.call(S,r.substring(y)):u.call(S,r.substring(y));return y+=R.length,R}return M("M",u,s)},w=function(){if(r.charAt(y)!==e.charAt(v))throw(qn.local.unexpectedLiteralAt||qn.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":d=k("o");break;case"w":k("w");break;case"m":g=x();break;case"M":g=h();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 qn.local.unexpectedText||qn.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)),d>-1){g=1,b=d;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 gV=xe(()=>{var Kl=na(),ibe=ta(),p6=Kl.instance();function Sg(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Sg.prototype=new Kl.baseCalendar;ibe(Sg.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(lbe);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(sbe);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(ube);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=cbe(e,o,t,a);return p6.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=p6.fromJD(e),t=fbe(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(obe),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(Sg.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 obe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,lbe=/^\d?\d[iI]?/m,sbe=/^闰?十?[一二三四五六七八九]?月/m,ube=/^闰?十?[一二三四五六七八九]?/m;Kl.calendars.chinese=Sg;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 fbe(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,d,_=new Date(c,g-1,b),T=new Date(a.year,a.month-1,a.day);d=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(d<S)break;d-=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+d,o}function cbe(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,d;b&&(i.month>b||i.isIntercalary)?d=i.month:d=i.month-1;for(var _=0;_<d;_++){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 yV=xe(()=>{var uu=na(),vbe=ta();function g6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g6.prototype=new uu.baseCalendar;vbe(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,uu.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,uu.local.invalidYear||uu.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,uu.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,uu.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)}});uu.calendars.coptic=g6});var mV=xe(()=>{var rl=na(),hbe=ta();function y6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y6.prototype=new rl.baseCalendar;hbe(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,rl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,rl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,rl.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,rl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,rl.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,rl.local.invalidDate);return{century:dbe[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,rl.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 dbe={20:"Fruitbat",21:"Anchovy"};rl.calendars.discworld=y6});var bV=xe(()=>{var fu=na(),pbe=ta();function m6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m6.prototype=new fu.baseCalendar;pbe(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,fu.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,fu.local.invalidYear||fu.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,fu.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,fu.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)}});fu.calendars.ethiopian=m6});var xV=xe(()=>{var es=na(),gbe=ta();function b6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b6.prototype=new es.baseCalendar;gbe(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,Cg(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&&Cg(this.daysInYear(e),10)===5?30:r===9&&Cg(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 Cg(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 Cg(e,r){return e-r*Math.floor(e/r)}es.calendars.hebrew=b6});var _V=xe(()=>{var mv=na(),ybe=ta();function x6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x6.prototype=new mv.baseCalendar;ybe(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,mv.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,mv.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,mv.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)}});mv.calendars.islamic=x6});var wV=xe(()=>{var bv=na(),mbe=ta();function _6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_6.prototype=new bv.baseCalendar;mbe(_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,bv.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,bv.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,bv.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)}});bv.calendars.julian=_6});var TV=xe(()=>{var Mi=na(),bbe=ta();function M6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M6.prototype=new Mi.baseCalendar;bbe(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,Mi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Mi.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,Mi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Mi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Mi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Mi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Mi.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Mi.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Mi.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,[MV(e+20,20),MV(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Mi.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 MV(e,r){return w6(e-1,r)+1}Mi.calendars.mayan=M6});var kV=xe(()=>{var cu=na(),xbe=ta();function T6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T6.prototype=new cu.baseCalendar;var AV=cu.instance("gregorian");xbe(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,cu.local.invalidYear||cu.regionalOptions[""].invalidYear);return AV.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,cu.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,cu.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+AV.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)}});cu.calendars.nanakshahi=T6});var SV=xe(()=>{var vu=na(),_be=ta();function A6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A6.prototype=new vu.baseCalendar;_be(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,vu.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,vu.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,vu.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=vu.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=vu.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]}});vu.calendars.nepali=A6});var CV=xe(()=>{var $f=na(),wbe=ta();function Lg(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Eg(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}Lg.prototype=new $f.baseCalendar;wbe(Lg.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,$f.local.invalidYear);return Eg(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,$f.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,$f.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var o=1;o<e;o++)Eg(o)&&a++;else if(e<0)for(var o=e;o<0;o++)Eg(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,Eg(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)}});$f.calendars.persian=Lg;$f.calendars.jalali=Lg});var EV=xe(()=>{var hu=na(),Mbe=ta(),Rg=hu.instance();function k6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k6.prototype=new hu.baseCalendar;Mbe(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,hu.local.invalidYear),t=this._t2gYear(r.year());return Rg.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,hu.local.invalidYear),a=this._t2gYear(n.year());return Rg.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,hu.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,hu.local.invalidDate),a=this._t2gYear(n.year());return Rg.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Rg.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)}});hu.calendars.taiwan=k6});var LV=xe(()=>{var du=na(),Tbe=ta(),Dg=du.instance();function S6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S6.prototype=new du.baseCalendar;Tbe(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,du.local.invalidYear),t=this._t2gYear(r.year());return Dg.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,du.local.invalidYear),a=this._t2gYear(n.year());return Dg.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,du.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,du.local.invalidDate),a=this._t2gYear(n.year());return Dg.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Dg.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)}});du.calendars.thai=S6});var RV=xe(()=>{var pu=na(),Abe=ta();function C6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C6.prototype=new pu.baseCalendar;Abe(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,pu.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,pu.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,pu.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=pu.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=pu.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});pu.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 PV=xe((j9e,DV)=>{"use strict";DV.exports=na();pV();gV();yV();mV();bV();xV();_V();wV();TV();kV();SV();CV();EV();LV();RV()});var BV=xe((eMe,OV)=>{"use strict";var zV=PV(),xv=rr(),FV=(Mn(),or(In)),kbe=FV.EPOCHJD,Sbe=FV.ONEDAY,R6={valType:"enumerated",values:xv.sortObjectKeys(zV.calendars),editType:"calc",dflt:"gregorian"},NV=function(e,r,t,n){var a={};return a[t]=R6,xv.coerce(e,r,a,t,n)},Cbe=function(e,r,t,n){for(var a=0;a<t.length;a++)NV(e,r,t[a]+"calendar",n.calendar)},Ebe={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"},Lbe={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"},Rbe={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"]},Pg="##",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:Pg,w:Pg,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function Pbe(e,r,t){for(var n=Math.floor((r+.05)/Sbe)+kbe,a=qV(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===Pg?f=Pg:f=a.formatDate(s[i]),e=e.slice(0,o)+f+e.slice(o+u),o+=f.length):o+=u;return e}var IV={};function qV(e){var r=IV[e];return r||(r=IV[e]=zV.instance(e),r)}function _v(e){return xv.extendFlat({},R6,{description:e})}function D6(e){return"Sets the calendar system to use with `"+e+"` date data."}var L6={xcalendar:_v(D6("x"))},Co=xv.extendFlat({},L6,{ycalendar:_v(D6("y"))}),E6=xv.extendFlat({},Co,{zcalendar:_v(D6("z"))}),Kf=_v(["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(" "));OV.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:Co,bar:Co,box:Co,heatmap:Co,contour:Co,histogram:Co,histogram2d:Co,histogram2dcontour:Co,scatter3d:E6,surface:E6,mesh3d:E6,scattergl:Co,ohlc:L6,candlestick:L6},layout:{calendar:_v(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:Kf},yaxis:{calendar:Kf},scene:{xaxis:{calendar:Kf},yaxis:{calendar:Kf},zaxis:{calendar:Kf}},polar:{radialaxis:{calendar:Kf}}}},layoutAttributes:R6,handleDefaults:NV,handleTraceDefaults:Cbe,CANONICAL_SUNDAY:Lbe,CANONICAL_TICK:Ebe,DFLTRANGE:Rbe,getCal:qV,worldCalFmt:Pbe}});var HV=xe((rMe,UV)=>{"use strict";UV.exports=BV()});var Ibe=xe((tMe,GV)=>{var VV=nB();VV.register([mU(),VU(),lH(),bH(),PH(),ZH(),fV(),HV()]);GV.exports=VV});return Ibe();})();
/*!
* 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;
}));