UNPKG

plotly.js

Version:

The open source javascript graphing library that powers plotly

149 lines • 1.52 MB
/**
* plotly.js (cartesian - minified) v4.3.0
* Copyright 2012-2026, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
(
 function(root, factory) {
  if (typeof module === "object" && module.exports) {
   module.exports = factory();
  } else {
   root.moduleName = factory();
  }
} (typeof self !== "undefined" ? self : this, () => {
"use strict";var Plotly=(()=>{var Qce=Object.create;var $v=Object.defineProperty,e0e=Object.defineProperties,r0e=Object.getOwnPropertyDescriptor,t0e=Object.getOwnPropertyDescriptors,a0e=Object.getOwnPropertyNames,z1=Object.getOwnPropertySymbols,n0e=Object.getPrototypeOf,h5=Object.prototype.hasOwnProperty,GS=Object.prototype.propertyIsEnumerable;var US=(e,r,t)=>r in e?$v(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,At=(e,r)=>{for(var t in r||(r={}))h5.call(r,t)&&US(e,t,r[t]);if(z1)for(var t of z1(r))GS.call(r,t)&&US(e,t,r[t]);return e},Jt=(e,r)=>e0e(e,t0e(r));var YS=(e,r)=>{var t={};for(var a in e)h5.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&z1)for(var a of z1(e))r.indexOf(a)<0&&GS.call(e,a)&&(t[a]=e[a]);return t};var Ct=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var z=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Dt=(e,r)=>{for(var t in r)$v(e,t,{get:r[t],enumerable:!0})},VS=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of a0e(r))!h5.call(e,n)&&n!==t&&$v(e,n,{get:()=>r[n],enumerable:!(a=r0e(r,n))||a.enumerable});return e};var wc=(e,r,t)=>(t=e!=null?Qce(n0e(e)):{},VS(r||!e||!e.__esModule?$v(t,"default",{value:e,enumerable:!0}):t,e)),Ne=e=>VS($v({},"__esModule",{value:!0}),e);var jS=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{l(t.next(s))}catch(u){n(u)}},o=s=>{try{l(t.throw(s))}catch(u){n(u)}},l=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,o);l((t=t.apply(e,r)).next())});var Jv=z(WS=>{"use strict";WS.version="4.3.0"});var ZS=z((XS,N1)=>{(function(r,t,a){t[r]=t[r]||a(),typeof N1!="undefined"&&N1.exports&&(N1.exports=t[r])})("Promise",typeof window!="undefined"?window:XS,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(T,w,x,_){return Object.defineProperty(T,w,{value:x,writable:!0,configurable:_!==!1})}}catch(b){r=function(w,x,_){return w[x]=_,w}}a=(function(){var T,w,x;function _(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,q){x=new _(M,q),w?w.next=x:T=x,w=x,x=void 0},drain:function(){var M=T;for(T=w=t=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(b,T){a.add(b,T),t||(t=i(a.drain))}function l(b){var T,w=typeof b;return b!=null&&(w=="object"||w=="function")&&(T=b.then),typeof T=="function"?T:!1}function s(){for(var b=0;b<this.chain.length;b++)u(this,this.state===1?this.chain[b].success:this.chain[b].failure,this.chain[b]);this.chain.length=0}function u(b,T,w){var x,_;try{T===!1?w.reject(b.msg):(T===!0?x=b.msg:x=T.call(void 0,b.msg),x===w.promise?w.reject(TypeError("Promise-chain cycle")):(_=l(x))?_.call(x,w.resolve,w.reject):w.resolve(x))}catch(k){w.reject(k)}}function f(b){var T,w=this;if(!w.triggered){w.triggered=!0,w.def&&(w=w.def);try{(T=l(b))?o(function(){var x=new d(w);try{T.call(b,function(){f.apply(x,arguments)},function(){c.apply(x,arguments)})}catch(_){c.call(x,_)}}):(w.msg=b,w.state=1,w.chain.length>0&&o(s,w))}catch(x){c.call(new d(w),x)}}}function c(b){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=b,T.state=2,T.chain.length>0&&o(s,T))}function v(b,T,w,x){for(var _=0;_<T.length;_++)(function(M){b.resolve(T[M]).then(function(C){w(M,C)},x)})(_)}function d(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var T=new p(this);this.then=function(x,_){var k={success:typeof x=="function"?x:!0,failure:typeof _=="function"?_:!1};return k.promise=new this.constructor(function(q,C){if(typeof q!="function"||typeof C!="function")throw TypeError("Not a function");k.resolve=q,k.reject=C}),T.chain.push(k),T.state!==0&&o(s,T),k.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(T,x)},function(x){c.call(T,x)})}catch(w){c.call(T,w)}}var y=r({},"constructor",m,!1);return m.prototype=y,r(y,"__NPO__",0,!1),r(m,"resolve",function(T){var w=this;return T&&typeof T=="object"&&T.__NPO__===1?T:new w(function(_,k){if(typeof _!="function"||typeof k!="function")throw TypeError("Not a function");_(T)})}),r(m,"reject",function(T){return new this(function(x,_){if(typeof x!="function"||typeof _!="function")throw TypeError("Not a function");_(T)})}),r(m,"all",function(T){var w=this;return n.call(T)!="[object Array]"?w.reject(TypeError("Not an array")):T.length===0?w.resolve([]):new w(function(_,k){if(typeof _!="function"||typeof k!="function")throw TypeError("Not a function");var M=T.length,q=Array(M),C=0;v(w,T,function(P,R){q[P]=R,++C===M&&_(q)},k)})}),r(m,"race",function(T){var w=this;return n.call(T)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(_,k){if(typeof _!="function"||typeof k!="function")throw TypeError("Not a function");v(w,T,function(q,C){_(C)},k)})}),m})});var Pr=z((wje,I1)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,S=new Array(A);A--;)S[A]=g[A];return S}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,S){s.call(this,g,A,S+"")},u.setProperty=function(g,A,S){f.call(this,g,A+"",S)}}e.ascending=c;function c(h,g){return h<g?-1:h>g?1:h>=g?0:NaN}e.descending=function(h,g){return g<h?-1:g>h?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,S=h.length,L,D;if(arguments.length===1){for(;++A<S;)if((D=h[A])!=null&&D>=D){L=D;break}for(;++A<S;)(D=h[A])!=null&&L>D&&(L=D)}else{for(;++A<S;)if((D=g.call(h,h[A],A))!=null&&D>=D){L=D;break}for(;++A<S;)(D=g.call(h,h[A],A))!=null&&L>D&&(L=D)}return L},e.max=function(h,g){var A=-1,S=h.length,L,D;if(arguments.length===1){for(;++A<S;)if((D=h[A])!=null&&D>=D){L=D;break}for(;++A<S;)(D=h[A])!=null&&D>L&&(L=D)}else{for(;++A<S;)if((D=g.call(h,h[A],A))!=null&&D>=D){L=D;break}for(;++A<S;)(D=g.call(h,h[A],A))!=null&&D>L&&(L=D)}return L},e.extent=function(h,g){var A=-1,S=h.length,L,D,O;if(arguments.length===1){for(;++A<S;)if((D=h[A])!=null&&D>=D){L=O=D;break}for(;++A<S;)(D=h[A])!=null&&(L>D&&(L=D),O<D&&(O=D))}else{for(;++A<S;)if((D=g.call(h,h[A],A))!=null&&D>=D){L=O=D;break}for(;++A<S;)(D=g.call(h,h[A],A))!=null&&(L>D&&(L=D),O<D&&(O=D))}return[L,O]};function v(h){return h===null?NaN:+h}function d(h){return!isNaN(h)}e.sum=function(h,g){var A=0,S=h.length,L,D=-1;if(arguments.length===1)for(;++D<S;)d(L=+h[D])&&(A+=L);else for(;++D<S;)d(L=+g.call(h,h[D],D))&&(A+=L);return A},e.mean=function(h,g){var A=0,S=h.length,L,D=-1,O=S;if(arguments.length===1)for(;++D<S;)d(L=v(h[D]))?A+=L:--O;else for(;++D<S;)d(L=v(g.call(h,h[D],D)))?A+=L:--O;if(O)return A/O},e.quantile=function(h,g){var A=(h.length-1)*g+1,S=Math.floor(A),L=+h[S-1],D=A-S;return D?L+D*(h[S]-L):L},e.median=function(h,g){var A=[],S=h.length,L,D=-1;if(arguments.length===1)for(;++D<S;)d(L=v(h[D]))&&A.push(L);else for(;++D<S;)d(L=v(g.call(h,h[D],D)))&&A.push(L);if(A.length)return e.quantile(A.sort(c),.5)},e.variance=function(h,g){var A=h.length,S=0,L,D,O=0,F=-1,U=0;if(arguments.length===1)for(;++F<A;)d(L=v(h[F]))&&(D=L-S,S+=D/++U,O+=D*(L-S));else for(;++F<A;)d(L=v(g.call(h,h[F],F)))&&(D=L-S,S+=D/++U,O+=D*(L-S));if(U>1)return O/(U-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S<L;){var D=S+L>>>1;h(g[D],A)<0?S=D+1:L=D}return S},right:function(g,A,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S<L;){var D=S+L>>>1;h(g[D],A)>0?L=D:S=D+1}return S}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(S=arguments.length)<3&&(A=h.length,S<2&&(g=0));for(var S=A-g,L,D;S;)D=Math.random()*S--|0,L=h[S+g],h[S+g]=h[D+g],h[D+g]=L;return h},e.permute=function(h,g){for(var A=g.length,S=new Array(A);A--;)S[A]=h[g[A]];return S},e.pairs=function(h){for(var g=0,A=h.length-1,S,L=h[0],D=new Array(A<0?0:A);g<A;)D[g]=[S=L,L=h[++g]];return D},e.transpose=function(h){if(!(D=h.length))return[];for(var g=-1,A=e.min(h,y),S=new Array(A);++g<A;)for(var L=-1,D,O=S[g]=new Array(D);++L<D;)O[L]=h[L][g];return S};function y(h){return h.length}e.zip=function(){return e.transpose(arguments)},e.keys=function(h){var g=[];for(var A in h)g.push(A);return g},e.values=function(h){var g=[];for(var A in h)g.push(h[A]);return g},e.entries=function(h){var g=[];for(var A in h)g.push({key:A,value:h[A]});return g},e.merge=function(h){for(var g=h.length,A,S=-1,L=0,D,O;++S<g;)L+=h[S].length;for(D=new Array(L);--g>=0;)for(O=h[g],A=O.length;--A>=0;)D[--L]=O[A];return D};var b=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var S=[],L=T(b(A)),D=-1,O;if(h*=L,g*=L,A*=L,A<0)for(;(O=h+A*++D)>g;)S.push(O/L);else for(;(O=h+A*++D)<g;)S.push(O/L);return S};function T(h){for(var g=1;h*g%1;)g*=10;return g}function w(h,g){for(var A in g)Object.defineProperty(h.prototype,A,{value:g[A],enumerable:!1})}e.map=function(h,g){var A=new x;if(h instanceof x)h.forEach(function(F,U){A.set(F,U)});else if(Array.isArray(h)){var S=-1,L=h.length,D;if(arguments.length===1)for(;++S<L;)A.set(S,h[S]);else for(;++S<L;)A.set(g.call(h,D=h[S],S),D)}else for(var O in h)A.set(O,h[O]);return A};function x(){this._=Object.create(null)}var _="__proto__",k="\0";w(x,{has:C,get:function(h){return this._[M(h)]},set:function(h,g){return this._[M(h)]=g},remove:E,keys:P,values:function(){var h=[];for(var g in this._)h.push(this._[g]);return h},entries:function(){var h=[];for(var g in this._)h.push({key:q(g),value:this._[g]});return h},size:R,empty:B,forEach:function(h){for(var g in this._)h.call(this,q(g),this._[g])}});function M(h){return(h+="")===_||h[0]===k?k+h:h}function q(h){return(h+="")[0]===k?h.slice(1):h}function C(h){return M(h)in this._}function E(h){return(h=M(h))in this._&&delete this._[h]}function P(){var h=[];for(var g in this._)h.push(q(g));return h}function R(){var h=0;for(var g in this._)++h;return h}function B(){for(var h in this._)return!1;return!0}e.nest=function(){var h={},g=[],A=[],S,L;function D(F,U,X){if(X>=g.length)return L?L.call(h,U):S?U.sort(S):U;for(var Z=-1,K=U.length,Q=g[X++],pe,we,ee,fe=new x,ve;++Z<K;)(ve=fe.get(pe=Q(we=U[Z])))?ve.push(we):fe.set(pe,[we]);return F?(we=F(),ee=function(_e,Te){we.set(_e,D(F,Te,X))}):(we={},ee=function(_e,Te){we[_e]=D(F,Te,X)}),fe.forEach(ee),we}function O(F,U){if(U>=g.length)return F;var X=[],Z=A[U++];return F.forEach(function(K,Q){X.push({key:K,values:O(Q,U)})}),Z?X.sort(function(K,Q){return Z(K.key,Q.key)}):X}return h.map=function(F,U){return D(U,F,0)},h.entries=function(F){return O(D(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return A[g.length-1]=F,h},h.sortValues=function(F){return S=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new I;if(h)for(var A=0,S=h.length;A<S;++A)g.add(h[A]);return g};function I(){this._=Object.create(null)}w(I,{has:C,add:function(h){return this._[M(h+="")]=!0,h},remove:E,values:P,size:R,empty:B,forEach:function(h){for(var g in this._)h.call(this,q(g))}}),e.behavior={};function N(h){return h}e.rebind=function(h,g){for(var A=1,S=arguments.length,L;++A<S;)h[L=arguments[A]]=H(h,g,g[L]);return h};function H(h,g,A){return function(){var S=A.apply(g,arguments);return S===g?h:S}}function G(h,g){if(g in h)return g;g=g.charAt(0).toUpperCase()+g.slice(1);for(var A=0,S=Y.length;A<S;++A){var L=Y[A]+g;if(L in h)return L}}var Y=["webkit","ms","moz","Moz","o","O"];function j(){}e.dispatch=function(){for(var h=new W,g=-1,A=arguments.length;++g<A;)h[arguments[g]]=V(h);return h};function W(){}W.prototype.on=function(h,g){var A=h.indexOf("."),S="";if(A>=0&&(S=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(S):this[h].on(S,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(S,null);return this}};function V(h){var g=[],A=new x;function S(){for(var L=g,D=-1,O=L.length,F;++D<O;)(F=L[D].on)&&F.apply(this,arguments);return h}return S.on=function(L,D){var O=A.get(L),F;return arguments.length<2?O&&O.on:(O&&(O.on=null,g=g.slice(0,F=g.indexOf(O)).concat(g.slice(F+1)),A.remove(L)),D&&g.push(A.set(L,{on:D})),h)},S}e.event=null;function J(){e.event.preventDefault()}function re(){for(var h=e.event,g;g=h.sourceEvent;)h=g;return h}function le(h){for(var g=new W,A=0,S=arguments.length;++A<S;)g[arguments[A]]=V(g);return g.of=function(L,D){return function(O){try{var F=O.sourceEvent=e.event;O.target=h,e.event=O,g[O.type].apply(L,D)}finally{e.event=F}}},g}e.requote=function(h){return h.replace(ne,"\\$&")};var ne=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,$={}.__proto__?function(h,g){h.__proto__=g}:function(h,g){for(var A in g)h[A]=g[A]};function ce(h){return $(h,oe),h}var te=function(h,g){return g.querySelector(h)},ge=function(h,g){return g.querySelectorAll(h)},se=function(h,g){var A=h.matches||h[G(h,"matchesSelector")];return se=function(S,L){return A.call(S,L)},se(h,g)};typeof Sizzle=="function"&&(te=function(h,g){return Sizzle(h,g)[0]||null},ge=Sizzle,se=Sizzle.matchesSelector),e.selection=function(){return e.select(a.documentElement)};var oe=e.selection.prototype=[];oe.select=function(h){var g=[],A,S,L,D;h=Ae(h);for(var O=-1,F=this.length;++O<F;){g.push(A=[]),A.parentNode=(L=this[O]).parentNode;for(var U=-1,X=L.length;++U<X;)(D=L[U])?(A.push(S=h.call(D,D.__data__,U,O)),S&&"__data__"in D&&(S.__data__=D.__data__)):A.push(null)}return ce(g)};function Ae(h){return typeof h=="function"?h:function(){return te(h,this)}}oe.selectAll=function(h){var g=[],A,S;h=Pe(h);for(var L=-1,D=this.length;++L<D;)for(var O=this[L],F=-1,U=O.length;++F<U;)(S=O[F])&&(g.push(A=t(h.call(S,S.__data__,F,L))),A.parentNode=S);return ce(g)};function Pe(h){return typeof h=="function"?h:function(){return ge(h,this)}}var me="http://www.w3.org/1999/xhtml",Ce={svg:"http://www.w3.org/2000/svg",xhtml:me,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:Ce,qualify:function(h){var g=h.indexOf(":"),A=h;return g>=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),Ce.hasOwnProperty(A)?{space:Ce[A],local:h}:h}},oe.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(Me(g,h[g]));return this}return this.each(Me(h,g))};function Me(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function S(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function D(){this.setAttributeNS(h.space,h.local,g)}function O(){var U=g.apply(this,arguments);U==null?this.removeAttribute(h):this.setAttribute(h,U)}function F(){var U=g.apply(this,arguments);U==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,U)}return g==null?h.local?S:A:typeof g=="function"?h.local?F:O:h.local?D:L}function Le(h){return h.trim().replace(/\s+/g," ")}oe.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),S=(h=Ee(h)).length,L=-1;if(g=A.classList){for(;++L<S;)if(!g.contains(h[L]))return!1}else for(g=A.getAttribute("class");++L<S;)if(!Se(h[L]).test(g))return!1;return!0}for(g in h)this.each(qe(g,h[g]));return this}return this.each(qe(h,g))};function Se(h){return new RegExp("(?:^|\\s+)"+e.requote(h)+"(?:\\s+|$)","g")}function Ee(h){return(h+"").trim().split(/^|\s+/)}function qe(h,g){h=Ee(h).map(Ue);var A=h.length;function S(){for(var D=-1;++D<A;)h[D](this,g)}function L(){for(var D=-1,O=g.apply(this,arguments);++D<A;)h[D](this,O)}return typeof g=="function"?L:S}function Ue(h){var g=Se(h);return function(A,S){if(L=A.classList)return S?L.add(h):L.remove(h);var L=A.getAttribute("class")||"";S?(g.lastIndex=0,g.test(L)||A.setAttribute("class",Le(L+" "+h))):A.setAttribute("class",Le(L.replace(g," ")))}}oe.style=function(h,g,A){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g="");for(A in h)this.each(Je(A,h[A],g));return this}if(S<2){var L=this.node();return i(L).getComputedStyle(L,null).getPropertyValue(h)}A=""}return this.each(Je(h,g,A))};function Je(h,g,A){function S(){this.style.removeProperty(h)}function L(){this.style.setProperty(h,g,A)}function D(){var O=g.apply(this,arguments);O==null?this.style.removeProperty(h):this.style.setProperty(h,O,A)}return g==null?S:typeof g=="function"?D:L}oe.property=function(h,g){if(arguments.length<2){if(typeof h=="string")return this.node()[h];for(g in h)this.each(Ke(g,h[g]));return this}return this.each(Ke(h,g))};function Ke(h,g){function A(){delete this[h]}function S(){this[h]=g}function L(){var D=g.apply(this,arguments);D==null?delete this[h]:this[h]=D}return g==null?A:typeof g=="function"?L:S}oe.text=function(h){return arguments.length?this.each(typeof h=="function"?function(){var g=h.apply(this,arguments);this.textContent=g==null?"":g}:h==null?function(){this.textContent=""}:function(){this.textContent=h}):this.node().textContent},oe.html=function(h){return arguments.length?this.each(typeof h=="function"?function(){var g=h.apply(this,arguments);this.innerHTML=g==null?"":g}:h==null?function(){this.innerHTML=""}:function(){this.innerHTML=h}):this.node().innerHTML},oe.append=function(h){return h=De(h),this.select(function(){return this.appendChild(h.apply(this,arguments))})};function De(h){function g(){var S=this.ownerDocument,L=this.namespaceURI;return L===me&&S.documentElement.namespaceURI===me?S.createElement(h):S.createElementNS(L,h)}function A(){return this.ownerDocument.createElementNS(h.space,h.local)}return typeof h=="function"?h:(h=e.ns.qualify(h)).local?A:g}oe.insert=function(h,g){return h=De(h),g=Ae(g),this.select(function(){return this.insertBefore(h.apply(this,arguments),g.apply(this,arguments)||null)})},oe.remove=function(){return this.each(Be)};function Be(){var h=this.parentNode;h&&h.removeChild(this)}oe.data=function(h,g){var A=-1,S=this.length,L,D;if(!arguments.length){for(h=new Array(S=(L=this[0]).length);++A<S;)(D=L[A])&&(h[A]=D.__data__);return h}function O(Z,K){var Q,pe=Z.length,we=K.length,ee=Math.min(pe,we),fe=new Array(we),ve=new Array(we),_e=new Array(pe),Te,de;if(g){var Ve=new x,lr=new Array(pe),hr;for(Q=-1;++Q<pe;)(Te=Z[Q])&&(Ve.has(hr=g.call(Te,Te.__data__,Q))?_e[Q]=Te:Ve.set(hr,Te),lr[Q]=hr);for(Q=-1;++Q<we;)(Te=Ve.get(hr=g.call(K,de=K[Q],Q)))?Te!==!0&&(fe[Q]=Te,Te.__data__=de):ve[Q]=er(de),Ve.set(hr,!0);for(Q=-1;++Q<pe;)Q in lr&&Ve.get(lr[Q])!==!0&&(_e[Q]=Z[Q])}else{for(Q=-1;++Q<ee;)Te=Z[Q],de=K[Q],Te?(Te.__data__=de,fe[Q]=Te):ve[Q]=er(de);for(;Q<we;++Q)ve[Q]=er(K[Q]);for(;Q<pe;++Q)_e[Q]=Z[Q]}ve.update=fe,ve.parentNode=fe.parentNode=_e.parentNode=Z.parentNode,F.push(ve),U.push(fe),X.push(_e)}var F=sr([]),U=ce([]),X=ce([]);if(typeof h=="function")for(;++A<S;)O(L=this[A],h.call(L,L.parentNode.__data__,A));else for(;++A<S;)O(L=this[A],h);return U.enter=function(){return F},U.exit=function(){return X},U};function er(h){return{__data__:h}}oe.datum=function(h){return arguments.length?this.property("__data__",h):this.property("__data__")},oe.filter=function(h){var g=[],A,S,L;typeof h!="function"&&(h=ae(h));for(var D=0,O=this.length;D<O;D++){g.push(A=[]),A.parentNode=(S=this[D]).parentNode;for(var F=0,U=S.length;F<U;F++)(L=S[F])&&h.call(L,L.__data__,F,D)&&A.push(L)}return ce(g)};function ae(h){return function(){return se(this,h)}}oe.order=function(){for(var h=-1,g=this.length;++h<g;)for(var A=this[h],S=A.length-1,L=A[S],D;--S>=0;)(D=A[S])&&(L&&L!==D.nextSibling&&L.parentNode.insertBefore(D,L),L=D);return this},oe.sort=function(h){h=be.apply(this,arguments);for(var g=-1,A=this.length;++g<A;)this[g].sort(h);return this.order()};function be(h){return arguments.length||(h=c),function(g,A){return g&&A?h(g.__data__,A.__data__):!g-!A}}oe.each=function(h){return Ge(this,function(g,A,S){h.call(g,g.__data__,A,S)})};function Ge(h,g){for(var A=0,S=h.length;A<S;A++)for(var L=h[A],D=0,O=L.length,F;D<O;D++)(F=L[D])&&g(F,D,A);return h}oe.call=function(h){var g=t(arguments);return h.apply(g[0]=this,g),this},oe.empty=function(){return!this.node()},oe.node=function(){for(var h=0,g=this.length;h<g;h++)for(var A=this[h],S=0,L=A.length;S<L;S++){var D=A[S];if(D)return D}return null},oe.size=function(){var h=0;return Ge(this,function(){++h}),h};function sr(h){return $(h,vr),h}var vr=[];e.selection.enter=sr,e.selection.enter.prototype=vr,vr.append=oe.append,vr.empty=oe.empty,vr.node=oe.node,vr.call=oe.call,vr.size=oe.size,vr.select=function(h){for(var g=[],A,S,L,D,O,F=-1,U=this.length;++F<U;){L=(D=this[F]).update,g.push(A=[]),A.parentNode=D.parentNode;for(var X=-1,Z=D.length;++X<Z;)(O=D[X])?(A.push(L[X]=S=h.call(D.parentNode,O.__data__,X,F)),S.__data__=O.__data__):A.push(null)}return ce(g)},vr.insert=function(h,g){return arguments.length<2&&(g=ue(this)),oe.insert.call(this,h,g)};function ue(h){var g,A;return function(S,L,D){var O=h[D].update,F=O.length,U;for(D!=A&&(A=D,g=0),L>=g&&(g=L+1);!(U=O[g])&&++g<F;);return U}}e.select=function(h){var g;return typeof h=="string"?(g=[te(h,a)],g.parentNode=a.documentElement):(g=[h],g.parentNode=n(h)),ce([g])},e.selectAll=function(h){var g;return typeof h=="string"?(g=t(ge(h,a)),g.parentNode=a.documentElement):(g=t(h),g.parentNode=null),ce([g])},oe.on=function(h,g,A){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g=!1);for(A in h)this.each(xe(A,h[A],g));return this}if(S<2)return(S=this.node()["__on"+h])&&S._;A=!1}return this.each(xe(h,g,A))};function xe(h,g,A){var S="__on"+h,L=h.indexOf("."),D=We;L>0&&(h=h.slice(0,L));var O=Ie.get(h);O&&(h=O,D=Oe);function F(){var Z=this[S];Z&&(this.removeEventListener(h,Z,Z.$),delete this[S])}function U(){var Z=D(g,t(arguments));F.call(this),this.addEventListener(h,this[S]=Z,Z.$=A),Z._=g}function X(){var Z=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),K;for(var Q in this)if(K=Q.match(Z)){var pe=this[Q];this.removeEventListener(K[1],pe,pe.$),delete this[Q]}}return L?g?U:F:g?j:X}var Ie=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ie.forEach(function(h){"on"+h in a&&Ie.remove(h)});function We(h,g){return function(A){var S=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=S}}}function Oe(h,g){var A=We(h,g);return function(S){var L=this,D=S.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&A.call(L,S)}}var Xe,Qe=0;function _r(h){var g=".dragsuppress-"+ ++Qe,A="click"+g,S=e.select(i(h)).on("touchmove"+g,J).on("dragstart"+g,J).on("selectstart"+g,J);if(Xe==null&&(Xe="onselectstart"in h?!1:G(h.style,"userSelect")),Xe){var L=n(h).style,D=L[Xe];L[Xe]="none"}return function(O){if(S.on(g,null),Xe&&(L[Xe]=D),O){var F=function(){S.on(A,null)};S.on(A,function(){J(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Re(h,re())};var gr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Re(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var S=A.createSVGPoint();if(gr<0){var L=i(h);if(L.scrollX||L.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=A[0][0].getScreenCTM();gr=!(D.f||D.e),A.remove()}}return gr?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(h.getScreenCTM().inverse()),[S.x,S.y]}var O=h.getBoundingClientRect();return[g.clientX-O.left-h.clientLeft,g.clientY-O.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=re().changedTouches),g){for(var S=0,L=g.length,D;S<L;++S)if((D=g[S]).identifier===A)return Re(h,D)}},e.behavior.drag=function(){var h=le(L,"drag","dragstart","dragend"),g=null,A=D(j,e.mouse,i,"mousemove","mouseup"),S=D(Ze,e.touch,N,"touchmove","touchend");function L(){this.on("mousedown.drag",A).on("touchstart.drag",S)}function D(O,F,U,X,Z){return function(){var K=this,Q=e.event.target.correspondingElement||e.event.target,pe=K.parentNode,we=h.of(K,arguments),ee=0,fe=O(),ve=".drag"+(fe==null?"":"-"+fe),_e,Te=e.select(U(Q)).on(X+ve,lr).on(Z+ve,hr),de=_r(Q),Ve=F(pe,fe);g?(_e=g.apply(K,arguments),_e=[_e.x-Ve[0],_e.y-Ve[1]]):_e=[0,0],we({type:"dragstart"});function lr(){var fr=F(pe,fe),br,xr;fr&&(br=fr[0]-Ve[0],xr=fr[1]-Ve[1],ee|=br|xr,Ve=fr,we({type:"drag",x:fr[0]+_e[0],y:fr[1]+_e[1],dx:br,dy:xr}))}function hr(){F(pe,fe)&&(Te.on(X+ve,null).on(Z+ve,null),de(ee),we({type:"dragend"}))}}}return L.origin=function(O){return arguments.length?(g=O,L):g},e.rebind(L,h,"on")};function Ze(){return e.event.changedTouches[0].identifier}e.touches=function(h,g){return arguments.length<2&&(g=re().touches),g?t(g).map(function(A){var S=Re(h,A);return S.identifier=A.identifier,S}):[]};var ze=1e-6,rr=ze*ze,cr=Math.PI,pr=2*cr,mr=pr-ze,ie=cr/2,ye=cr/180,Fe=180/cr;function He(h){return h>0?1:h<0?-1:0}function Gr(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function rt(h){return h>1?0:h<-1?cr:Math.acos(h)}function qt(h){return h>1?ie:h<-1?-ie:Math.asin(h)}function gt(h){return((h=Math.exp(h))-1/h)/2}function Ut(h){return((h=Math.exp(h))+1/h)/2}function Bt(h){return((h=Math.exp(2*h))-1)/(h+1)}function Fa(h){return(h=Math.sin(h/2))*h}var kt=Math.SQRT2,Zt=2,$t=4;e.interpolateZoom=function(h,g){var A=h[0],S=h[1],L=h[2],D=g[0],O=g[1],F=g[2],U=D-A,X=O-S,Z=U*U+X*X,K,Q;if(Z<rr)Q=Math.log(F/L)/kt,K=function(_e){return[A+_e*U,S+_e*X,L*Math.exp(kt*_e*Q)]};else{var pe=Math.sqrt(Z),we=(F*F-L*L+$t*Z)/(2*L*Zt*pe),ee=(F*F-L*L-$t*Z)/(2*F*Zt*pe),fe=Math.log(Math.sqrt(we*we+1)-we),ve=Math.log(Math.sqrt(ee*ee+1)-ee);Q=(ve-fe)/kt,K=function(_e){var Te=_e*Q,de=Ut(fe),Ve=L/(Zt*pe)*(de*Bt(kt*Te+fe)-gt(fe));return[A+Ve*U,S+Ve*X,L*de/Ut(kt*Te+fe)]}}return K.duration=Q*1e3,K},e.behavior.zoom=function(){var h={x:0,y:0,k:1},g,A,S,L=[960,500],D=Lt,O=250,F=0,U="mousedown.zoom",X="mousemove.zoom",Z="mouseup.zoom",K,Q="touchstart.zoom",pe,we=le(Te,"zoomstart","zoom","zoomend"),ee,fe,ve,_e;sa||(sa="onwheel"in a?(ra=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in a?(ra=function(){return e.event.wheelDelta},"mousewheel"):(ra=function(){return-e.event.detail},"MozMousePixelScroll"));function Te(ir){ir.on(U,Er).on(sa+".zoom",ya).on("dblclick.zoom",xt).on(Q,ct)}Te.event=function(ir){ir.each(function(){var Ir=we.of(this,arguments),Or=h;Eu?e.select(this).transition().each("start.zoom",function(){h=this.__chart__||{x:0,y:0,k:1},xr(Ir)}).tween("zoom:zoom",function(){var vt=L[0],ua=L[1],Na=A?A[0]:vt/2,nn=A?A[1]:ua/2,Mn=e.interpolateZoom([(Na-h.x)/h.k,(nn-h.y)/h.k,vt/h.k],[(Na-Or.x)/Or.k,(nn-Or.y)/Or.k,vt/Or.k]);return function(Un){var kn=Mn(Un),Jn=vt/kn[2];this.__chart__=h={x:Na-kn[0]*Jn,y:nn-kn[1]*Jn,k:Jn},Nr(Ir)}}).each("interrupt.zoom",function(){Tr(Ir)}).each("end.zoom",function(){Tr(Ir)}):(this.__chart__=h,xr(Ir),Nr(Ir),Tr(Ir))})},Te.translate=function(ir){return arguments.length?(h={x:+ir[0],y:+ir[1],k:h.k},br(),Te):[h.x,h.y]},Te.scale=function(ir){return arguments.length?(h={x:h.x,y:h.y,k:null},lr(+ir),br(),Te):h.k},Te.scaleExtent=function(ir){return arguments.length?(D=ir==null?Lt:[+ir[0],+ir[1]],Te):D},Te.center=function(ir){return arguments.length?(S=ir&&[+ir[0],+ir[1]],Te):S},Te.size=function(ir){return arguments.length?(L=ir&&[+ir[0],+ir[1]],Te):L},Te.duration=function(ir){return arguments.length?(O=+ir,Te):O},Te.x=function(ir){return arguments.length?(fe=ir,ee=ir.copy(),h={x:0,y:0,k:1},Te):fe},Te.y=function(ir){return arguments.length?(_e=ir,ve=ir.copy(),h={x:0,y:0,k:1},Te):_e};function de(ir){return[(ir[0]-h.x)/h.k,(ir[1]-h.y)/h.k]}function Ve(ir){return[ir[0]*h.k+h.x,ir[1]*h.k+h.y]}function lr(ir){h.k=Math.max(D[0],Math.min(D[1],ir))}function hr(ir,Ir){Ir=Ve(Ir),h.x+=ir[0]-Ir[0],h.y+=ir[1]-Ir[1]}function fr(ir,Ir,Or,vt){ir.__chart__={x:h.x,y:h.y,k:h.k},lr(Math.pow(2,vt)),hr(A=Ir,Or),ir=e.select(ir),O>0&&(ir=ir.transition().duration(O)),ir.call(Te.event)}function br(){fe&&fe.domain(ee.range().map(function(ir){return(ir-h.x)/h.k}).map(ee.invert)),_e&&_e.domain(ve.range().map(function(ir){return(ir-h.y)/h.k}).map(ve.invert))}function xr(ir){F++||ir({type:"zoomstart"})}function Nr(ir){br(),ir({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function Tr(ir){--F||(ir({type:"zoomend"}),A=null)}function Er(){var ir=this,Ir=we.of(ir,arguments),Or=0,vt=e.select(i(ir)).on(X,nn).on(Z,Mn),ua=de(e.mouse(ir)),Na=_r(ir);E1.call(ir),xr(Ir);function nn(){Or=1,hr(e.mouse(ir),ua),Nr(Ir)}function Mn(){vt.on(X,null).on(Z,null),Na(Or),Tr(Ir)}}function ct(){var ir=this,Ir=we.of(ir,arguments),Or={},vt=0,ua,Na=".zoom-"+e.event.changedTouches[0].identifier,nn="touchmove"+Na,Mn="touchend"+Na,Un=[],kn=e.select(ir),Jn=_r(ir);Kn(),xr(Ir),kn.on(U,null).on(Q,Kn);function mn(){var So=e.touches(ir);return ua=h.k,So.forEach(function(on){on.identifier in Or&&(Or[on.identifier]=de(on))}),So}function Kn(){var So=e.event.target;e.select(So).on(nn,Pu).on(Mn,Kce),Un.push(So);for(var on=e.event.changedTouches,Bi=0,il=on.length;Bi<il;++Bi)Or[on[Bi].identifier]=null;var Oi=mn(),_c=Date.now();if(Oi.length===1){if(_c-pe<500){var Ru=Oi[0];fr(ir,Ru,Or[Ru.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),J()}pe=_c}else if(Oi.length>1){var Ru=Oi[0],_s=Oi[1],F1=Ru[0]-_s[0],HS=Ru[1]-_s[1];vt=F1*F1+HS*HS}}function Pu(){var So=e.touches(ir),on,Bi,il,Oi;E1.call(ir);for(var _c=0,Ru=So.length;_c<Ru;++_c,Oi=null)if(il=So[_c],Oi=Or[il.identifier]){if(Bi)break;on=il,Bi=Oi}if(Oi){var _s=(_s=il[0]-on[0])*_s+(_s=il[1]-on[1])*_s,F1=vt&&Math.sqrt(_s/vt);on=[(on[0]+il[0])/2,(on[1]+il[1])/2],Bi=[(Bi[0]+Oi[0])/2,(Bi[1]+Oi[1])/2],lr(F1*ua)}pe=null,hr(on,Bi),Nr(Ir)}function Kce(){if(e.event.touches.length){for(var So=e.event.changedTouches,on=0,Bi=So.length;on<Bi;++on)delete Or[So[on].identifier];for(var il in Or)return void mn()}e.selectAll(Un).on(Na,null),kn.on(U,Er).on(Q,ct),Jn(),Tr(Ir)}}function ya(){var ir=we.of(this,arguments);K?clearTimeout(K):(E1.call(this),g=de(A=S||e.mouse(this)),xr(ir)),K=setTimeout(function(){K=null,Tr(ir)},50),J(),lr(Math.pow(2,ra()*.002)*h.k),hr(A,g),Nr(ir)}function xt(){var ir=e.mouse(this),Ir=Math.log(h.k)/Math.LN2;fr(this,ir,de(ir),e.event.shiftKey?Math.ceil(Ir)-1:Math.floor(Ir)+1)}return e.rebind(Te,we,"on")};var Lt=[0,1/0],ra,sa;e.color=Ot;function Ot(){}Ot.prototype.toString=function(){return this.rgb()+""},e.hsl=tr;function tr(h,g,A){return this instanceof tr?(this.h=+h,this.s=+g,void(this.l=+A)):arguments.length<2?h instanceof tr?new tr(h.h,h.s,h.l):d1(""+h,p1,tr):new tr(h,g,A)}var tt=tr.prototype=new Ot;tt.brighter=function(h){return h=Math.pow(.7,arguments.length?h:1),new tr(this.h,this.s,this.l/h)},tt.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new tr(this.h,this.s,h*this.l)},tt.rgb=function(){return Yr(this.h,this.s,this.l)};function Yr(h,g,A){var S,L;h=isNaN(h)?0:(h%=360)<0?h+360:h,g=isNaN(g)||g<0?0:g>1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,S=2*A-L;function D(F){return F>360?F-=360:F<0&&(F+=360),F<60?S+(L-S)*F/60:F<180?L:F<240?S+(L-S)*(240-F)/60:S}function O(F){return Math.round(D(F)*255)}return new ta(O(h+120),O(h),O(h-120))}e.hcl=ft;function ft(h,g,A){return this instanceof ft?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof ft?new ft(h.h,h.c,h.l):h instanceof at?qu(h.l,h.a,h.b):qu((h=m1((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new ft(h,g,A)}var Ft=ft.prototype=new Ot;Ft.brighter=function(h){return new ft(this.h,this.c,Math.min(100,this.l+bt*(arguments.length?h:1)))},Ft.darker=function(h){return new ft(this.h,this.c,Math.max(0,this.l-bt*(arguments.length?h:1)))},Ft.rgb=function(){return qa(this.h,this.c,this.l).rgb()};function qa(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new at(A,Math.cos(h*=ye)*g,Math.sin(h)*g)}e.lab=at;function at(h,g,A){return this instanceof at?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof at?new at(h.l,h.a,h.b):h instanceof ft?qa(h.h,h.c,h.l):m1((h=ta(h)).r,h.g,h.b):new at(h,g,A)}var bt=18,ma=.95047,pi=1,nt=1.08883,La=at.prototype=new Ot;La.brighter=function(h){return new at(Math.min(100,this.l+bt*(arguments.length?h:1)),this.a,this.b)},La.darker=function(h){return new at(Math.max(0,this.l-bt*(arguments.length?h:1)),this.a,this.b)},La.rgb=function(){return Wr(this.l,this.a,this.b)};function Wr(h,g,A){var S=(h+16)/116,L=S+g/500,D=S-A/200;return L=Ht(L)*ma,S=Ht(S)*pi,D=Ht(D)*nt,new ta(On(3.2404542*L-1.5371385*S-.4985314*D),On(-.969266*L+1.8760108*S+.041556*D),On(.0556434*L-.2040259*S+1.0572252*D))}function qu(h,g,A){return h>0?new ft(Math.atan2(A,g)*Fe,Math.sqrt(g*g+A*A),h):new ft(NaN,NaN,h)}function Ht(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function $n(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function On(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=ta;function ta(h,g,A){return this instanceof ta?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof ta?new ta(h.r,h.g,h.b):d1(""+h,ta,Yr):new ta(h,g,A)}function dc(h){return new ta(h>>16,h>>8&255,h&255)}function gs(h){return dc(h)+""}var Hn=ta.prototype=new Ot;Hn.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,S=this.b,L=30;return!g&&!A&&!S?new ta(L,L,L):(g&&g<L&&(g=L),A&&A<L&&(A=L),S&&S<L&&(S=L),new ta(Math.min(255,g/h),Math.min(255,A/h),Math.min(255,S/h)))},Hn.darker=function(h){return h=Math.pow(.7,arguments.length?h:1),new ta(h*this.r,h*this.g,h*this.b)},Hn.hsl=function(){return p1(this.r,this.g,this.b)},Hn.toString=function(){return"#"+bs(this.r)+bs(this.g)+bs(this.b)};function bs(h){return h<16?"0"+Math.max(0,h).toString(16):Math.min(255,h).toString(16)}function d1(h,g,A){var S=0,L=0,D=0,O,F,U;if(O=/([a-z]+)\((.*)\)/.exec(h=h.toLowerCase()),O)switch(F=O[2].split(","),O[1]){case"hsl":return A(parseFloat(F[0]),parseFloat(F[1])/100,parseFloat(F[2])/100);case"rgb":return g(Ov(F[0]),Ov(F[1]),Ov(F[2]))}return(U=kr.get(h))?g(U.r,U.g,U.b):(h!=null&&h.charAt(0)==="#"&&!isNaN(U=parseInt(h.slice(1),16))&&(h.length===4?(S=(U&3840)>>4,S=S>>4|S,L=U&240,L=L>>4|L,D=U&15,D=D<<4|D):h.length===7&&(S=(U&16711680)>>16,L=(U&65280)>>8,D=U&255)),g(S,L,D))}function p1(h,g,A){var S=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),D=L-S,O,F,U=(L+S)/2;return D?(F=U<.5?D/(L+S):D/(2-L-S),h==L?O=(g-A)/D+(g<A?6:0):g==L?O=(A-h)/D+2:O=(h-g)/D+4,O*=60):(O=NaN,F=U>0&&U<1?0:O),new tr(O,F,U)}function m1(h,g,A){h=Bv(h),g=Bv(g),A=Bv(A);var S=$n((.4124564*h+.3575761*g+.1804375*A)/ma),L=$n((.2126729*h+.7151522*g+.072175*A)/pi),D=$n((.0193339*h+.119192*g+.9503041*A)/nt);return at(116*L-16,500*(S-L),200*(L-D))}function Bv(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Ov(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var kr=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});kr.forEach(function(h,g){kr.set(h,dc(g))});function Mr(h){return typeof h=="function"?h:function(){return h}}e.functor=Mr,e.xhr=yt(N);function yt(h){return function(g,A,S){return arguments.length===2&&typeof A=="function"&&(S=A,A=null),ur(g,A,h,S)}}function ur(h,g,A,S){var L={},D=e.dispatch("beforesend","progress","load","error"),O={},F=new XMLHttpRequest,U=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=X:F.onreadystatechange=function(){F.readyState>3&&X()};function X(){var Z=F.status,K;if(!Z&&Gt(F)||Z>=200&&Z<300||Z===304){try{K=A.call(L,F)}catch(Q){D.error.call(L,Q);return}D.load.call(L,K)}else D.error.call(L,F)}return F.onprogress=function(Z){var K=e.event;e.event=Z;try{D.progress.call(L,F)}finally{e.event=K}},L.header=function(Z,K){return Z=(Z+"").toLowerCase(),arguments.length<2?O[Z]:(K==null?delete O[Z]:O[Z]=K+"",L)},L.mimeType=function(Z){return arguments.length?(g=Z==null?null:Z+"",L):g},L.responseType=function(Z){return arguments.length?(U=Z,L):U},L.response=function(Z){return A=Z,L},["get","post"].forEach(function(Z){L[Z]=function(){return L.send.apply(L,[Z].concat(t(arguments)))}}),L.send=function(Z,K,Q){if(arguments.length===2&&typeof K=="function"&&(Q=K,K=null),F.open(Z,h,!0),g!=null&&!("accept"in O)&&(O.accept=g+",*/*"),F.setRequestHeader)for(var pe in O)F.setRequestHeader(pe,O[pe]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),U!=null&&(F.responseType=U),Q!=null&&L.on("error",Q).on("load",function(we){Q(null,we)}),D.beforesend.call(L,F),F.send(K==null?null:K),L},L.abort=function(){return F.abort(),L},e.rebind(L,D,"on"),S==null?L:L.get(An(S))}function An(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function Gt(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+`
]`),S=h.charCodeAt(0);function L(X,Z,K){arguments.length<3&&(K=Z,Z=null);var Q=ur(X,g,Z==null?D:O(Z),K);return Q.row=function(pe){return arguments.length?Q.response((Z=pe)==null?D:O(pe)):Z},Q}function D(X){return L.parse(X.responseText)}function O(X){return function(Z){return L.parse(Z.responseText,X)}}L.parse=function(X,Z){var K;return L.parseRows(X,function(Q,pe){if(K)return K(Q,pe-1);var we=function(ee){for(var fe={},ve=Q.length,_e=0;_e<ve;++_e)fe[Q[_e]]=ee[_e];return fe};K=Z?function(ee,fe){return Z(we(ee),fe)}:we})},L.parseRows=function(X,Z){var K={},Q={},pe=[],we=X.length,ee=0,fe=0,ve,_e;function Te(){if(ee>=we)return Q;if(_e)return _e=!1,K;var Ve=ee;if(X.charCodeAt(Ve)===34){for(var lr=Ve;lr++<we;)if(X.charCodeAt(lr)===34){if(X.charCodeAt(lr+1)!==34)break;++lr}ee=lr+2;var hr=X.charCodeAt(lr+1);return hr===13?(_e=!0,X.charCodeAt(lr+2)===10&&++ee):hr===10&&(_e=!0),X.slice(Ve+1,lr).replace(/""/g,'"')}for(;ee<we;){var hr=X.charCodeAt(ee++),fr=1;if(hr===10)_e=!0;else if(hr===13)_e=!0,X.charCodeAt(ee)===10&&(++ee,++fr);else if(hr!==S)continue;return X.slice(Ve,ee-fr)}return X.slice(Ve)}for(;(ve=Te())!==Q;){for(var de=[];ve!==K&&ve!==Q;)de.push(ve),ve=Te();Z&&(de=Z(de,fe++))==null||pe.push(de)}return pe},L.format=function(X){if(Array.isArray(X[0]))return L.formatRows(X);var Z=new I,K=[];return X.forEach(function(Q){for(var pe in Q)Z.has(pe)||K.push(Z.add(pe))}),[K.map(U).join(h)].concat(X.map(function(Q){return K.map(function(pe){return U(Q[pe])}).join(h)})).join(`
`)},L.formatRows=function(X){return X.map(F).join(`
`)};function F(X){return X.map(U).join(h)}function U(X){return A.test(X)?'"'+X.replace(/\"/g,'""')+'"':X}return L},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv("	","text/tab-separated-values");var tn,an,Ni,Lu,Sk=this[G(this,"requestAnimationFrame")]||function(h){setTimeout(h,17)};e.timer=function(){y1.apply(this,arguments)};function y1(h,g,A){var S=arguments.length;S<2&&(g=0),S<3&&(A=Date.now());var L=A+g,D={c:h,t:L,n:null};return an?an.n=D:tn=D,an=D,Ni||(Lu=clearTimeout(Lu),Ni=1,Sk(Bx)),D}function Bx(){var h=qk(),g=Lk()-h;g>24?(isFinite(g)&&(clearTimeout(Lu),Lu=setTimeout(Bx,g)),Ni=0):(Ni=1,Sk(Bx))}e.timer.flush=function(){qk(),Lk()};function qk(){for(var h=Date.now(),g=tn;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function Lk(){for(var h,g=tn,A=1/0;g;)g.c?(g.t<A&&(A=g.t),g=(h=g).n):g=h?h.n=g.n:tn=g.n;return an=h,A}e.round=function(h,g){return g?Math.round(h*(g=Math.pow(10,g)))/g:Math.round(h)},e.geom={};function pc(h){return h[0]}function Hv(h){return h[1]}e.geom.hull=function(h){var g=pc,A=Hv;if(arguments.length)return S(h);function S(L){if(L.length<3)return[];var D=Mr(g),O=Mr(A),F,U=L.length,X=[],Z=[];for(F=0;F<U;F++)X.push([+D.call(this,L[F],F),+O.call(this,L[F],F),F]);for(X.sort(rfe),F=0;F<U;F++)Z.push([X[F][0],-X[F][1]]);var K=Ck(X),Q=Ck(Z),pe=Q[0]===K[0],we=Q[Q.length-1]===K[K.length-1],ee=[];for(F=K.length-1;F>=0;--F)ee.push(L[X[K[F]][2]]);for(F=+pe;F<Q.length-we;++F)ee.push(L[X[Q[F]][2]]);return ee}return S.x=function(L){return arguments.length?(g=L,S):g},S.y=function(L){return arguments.length?(A=L,S):A},S};function Ck(h){for(var g=h.length,A=[0,1],S=2,L=2;L<g;L++){for(;S>1&&Gr(h[A[S-2]],h[A[S-1]],h[L])<=0;)--S;A[S++]=L}return A.slice(0,S)}function rfe(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return $(h,g1),h};var g1=e.geom.polygon.prototype=[];g1.area=function(){for(var h=-1,g=this.length,A,S=this[g-1],L=0;++h<g;)A=S,S=this[h],L+=A[1]*S[0]-A[0]*S[1];return L*.5},g1.centroid=function(h){var g=-1,A=this.length,S=0,L=0,D,O=this[A-1],F;for(arguments.length||(h=-1/(6*this.area()));++g<A;)D=O,O=this[g],F=D[0]*O[1]-O[0]*D[1],S+=(D[0]+O[0])*F,L+=(D[1]+O[1])*F;return[S*h,L*h]},g1.clip=function(h){for(var g,A=Dk(h),S=-1,L=this.length-Dk(this),D,O,F=this[L-1],U,X,Z;++S<L;){for(g=h.slice(),h.length=0,U=this[S],X=g[(O=g.length-A)-1],D=-1;++D<O;)Z=g[D],Ox(Z,F,U)?(Ox(X,F,U)||h.push(Hx(X,Z,F,U)),h.push(Z)):Ox(X,F,U)&&h.push(Hx(X,Z,F,U)),X=Z;A&&h.push(h[0]),F=U}return h};function Ox(h,g,A){return(A[0]-g[0])*(h[1]-g[1])<(A[1]-g[1])*(h[0]-g[0])}function Hx(h,g,A,S){var L=h[0],D=A[0],O=g[0]-L,F=S[0]-D,U=h[1],X=A[1],Z=g[1]-U,K=S[1]-X,Q=(F*(U-X)-K*(L-D))/(K*O-F*Z);return[L+Q*O,U+Q*Z]}function Dk(h){var g=h[0],A=h[h.length-1];return!(g[0]-A[0]||g[1]-A[1])}var mc,Cu,yc,Ek=[],Ux,Uv,Pk=[];function tfe(){_1(this),this.edge=this.site=this.circle=null}function Rk(h){var g=Ek.pop()||new tfe;return g.site=h,g}function Gx(h){bc(h),yc.remove(h),Ek.push(h),_1(h)}function afe(h){var g=h.circle,A=g.x,S=g.cy,L={x:A,y:S},D=h.P,O=h.N,F=[h];Gx(h);for(var U=D;U.circle&&b(A-U.circle.x)<ze&&b(S-U.circle.cy)<ze;)D=U.P,F.unshift(U),Gx(U),U=D;F.unshift(U),bc(U);for(var X=O;X.circle&&b(A-X.circle.x)<ze&&b(S-X.circle.cy)<ze;)O=X.N,F.push(X),Gx(X),X=O;F.push(X),bc(X);var Z=F.length,K;for(K=1;K<Z;++K)X=F[K],U=F[K-1],b1(X.edge,U.site,X.site,L);U=F[0],X=F[Z-1],X.edge=Gv(U.site,X.site,null,L),gc(U),gc(X)}function nfe(h){for(var g=h.x,A=h.y,S,L,D,O,F=yc._;F;)if(D=Fk(F,A)-g,D>ze)F=F.L;else if(O=g-ife(F,A),O>ze){if(!F.R){S=F;break}F=F.R}else{D>-ze?(S=F.P,L=F):O>-ze?(S=F,L=F.N):S=L=F;break}var U=Rk(h);if(yc.insert(S,U),!(!S&&!L)){if(S===L){bc(S),L=Rk(S.site),yc.insert(U,L),U.edge=L.edge=Gv(S.site,U.site),gc(S),gc(L);return}if(!L){U.edge=Gv(S.site,U.site);return}bc(S),bc(L);var X=S.site,Z=X.x,K=X.y,Q=h.x-Z,pe=h.y-K,we=L.site,ee=we.x-Z,fe=we.y-K,ve=2*(Q*fe-pe*ee),_e=Q*Q+pe*pe,Te=ee*ee+fe*fe,de={x:(fe*_e-pe*Te)/ve+Z,y:(Q*Te-ee*_e)/ve+K};b1(L.edge,X,we,de),U.edge=Gv(X,h,null,de),L.edge=Gv(h,we,null,de),gc(S),gc(L)}}function Fk(h,g){var A=h.site,S=A.x,L=A.y,D=L-g;if(!D)return S;var O=h.P;if(!O)return-1/0;A=O.site;var F=A.x,U=A.y,X=U-g;if(!X)return F;var Z=F-S,K=1/D-1/X,Q=Z/X;return K?(-Q+Math.sqrt(Q*Q-2*K*(Z*Z/(-2*X)-U+X/2+L-D/2)))/K+S:(S+F)/2}function ife(h,g){var A=h.N;if(A)return Fk(A,g);var S=h.site;return S.y===g?S.x:1/0}function zk(h){this.site=h,this.edges=[]}zk.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort(Nk),h.length};function ofe(h){for(var g=h[0][0],A=h[1][0],S=h[0][1],L=h[1][1],D,O,F,U,X=Cu,Z=X.length,K,Q,pe,we,ee,fe;Z--;)if(K=X[Z],!(!K||!K.prepare()))for(pe=K.edges,we=pe.length,Q=0;Q<we;)fe=pe[Q].end(),F=fe.x,U=fe.y,ee=pe[++Q%we].start(),D=ee.x,O=ee.y,(b(F-D)>ze||b(U-O)>ze)&&(pe.splice(Q,0,new x1(cfe(K.site,fe,b(F-g)<ze&&L-U>ze?{x:g,y:b(D-g)<ze?O:L}:b(U-L)<ze&&A-F>ze?{x:b(O-L)<ze?D:A,y:L}:b(F-A)<ze&&U-S>ze?{x:A,y:b(D-A)<ze?O:S}:b(U-S)<ze&&F-g>ze?{x:b(O-S)<ze?D:g,y:S}:null),K.site,null)),++we)}function Nk(h,g){return g.angle-h.angle}function lfe(){_1(this),this.x=this.y=this.arc=this.site=this.cy=null}function gc(h){var g=h.P,A=h.N;if(!(!g||!A)){var S=g.site,L=h.site,D=A.site;if(S!==D){var O=L.x,F=L.y,U=S.x-O,X=S.y-F,Z=D.x-O,fe=D.y-F,K=2*(U*fe-X*Z);if(!(K>=-rr)){var Q=U*U+X*X,pe=Z*Z+fe*fe,we=(fe*Q-X*pe)/K,ee=(U*pe-Z*Q)/K,fe=ee+F,ve=Pk.pop()||new lfe;ve.arc=h,ve.site=L,ve.x=we+O,ve.y=fe+Math.sqrt(we*we+ee*ee),ve.cy=fe,h.circle=ve;for(var _e=null,Te=Uv._;Te;)if(ve.y<Te.y||ve.y===Te.y&&ve.x<=Te.x)if(Te.L)Te=Te.L;else{_e=Te.P;break}else if(Te.R)Te=Te.R;else{_e=Te;break}Uv.insert(_e,ve),_e||(Ux=ve)}}}}function bc(h){var g=h.circle;g&&(g.P||(Ux=g.N),Uv.remove(g),Pk.push(g),_1(g),h.circle=null)}function sfe(h,g,A,S){return function(L){var D=L.a,O=L.b,F=D.x,U=D.y,X=O.x,Z=O.y,K=0,Q=1,pe=X-F,we=Z-U,ee;if(ee=h-F,!(!pe&&ee>0)){if(ee/=pe,pe<0){if(ee<K)return;ee<Q&&(Q=ee)}else if(pe>0){if(ee>Q)return;ee>K&&(K=ee)}if(ee=A-F,!(!pe&&ee<0)){if(ee/=pe,pe<0){if(ee>Q)return;ee>K&&(K=ee)}else if(pe>0){if(ee<K)return;ee<Q&&(Q=ee)}if(ee=g-U,!(!we&&ee>0)){if(ee/=we,we<0){if(ee<K)return;ee<Q&&(Q=ee)}else if(we>0){if(ee>Q)return;ee>K&&(K=ee)}if(ee=S-U,!(!we&&ee<0)){if(ee/=we,we<0){if(ee>Q)return;ee>K&&(K=ee)}else if(we>0){if(ee<K)return;ee<Q&&(Q=ee)}return K>0&&(L.a={x:F+K*pe,y:U+K*we}),Q<1&&(L.b={x:F+Q*pe,y:U+Q*we}),L}}}}}}function ufe(h){for(var g=mc,A=sfe(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,L;S--;)L=g[S],(!ffe(L,h)||!A(L)||b(L.a.x-L.b.x)<ze&&b(L.a.y-L.b.y)<ze)&&(L.a=L.b=null,g.splice(S,1))}function ffe(h,g){var A=h.b;if(A)return!0;var S=h.a,L=g[0][0],D=g[1][0],O=g[0][1],F=g[1][1],U=h.l,X=h.r,Z=U.x,K=U.y,Q=X.x,pe=X.y,we=(Z+Q)/2,ee=(K+pe)/2,fe,ve;if(pe===K){if(we<L||we>=D)return;if(Z>Q){if(!S)S={x:we,y:O};else if(S.y>=F)return;A={x:we,y:F}}else{if(!S)S={x:we,y:F};else if(S.y<O)return;A={x:we,y:O}}}else if(fe=(Z-Q)/(pe-K),ve=ee-fe*we,fe<-1||fe>1)if(Z>Q){if(!S)S={x:(O-ve)/fe,y:O};else if(S.y>=F)return;A={x:(F-ve)/fe,y:F}}else{if(!S)S={x:(F-ve)/fe,y:F};else if(S.y<O)return;A={x:(O-ve)/fe,y:O}}else if(K<pe){if(!S)S={x:L,y:fe*L+ve};else if(S.x>=D)return;A={x:D,y:fe*D+ve}}else{if(!S)S={x:D,y:fe*D+ve};else if(S.x<L)return;A={x:L,y:fe*L+ve}}return h.a=S,h.b=A,!0}function Ik(h,g){this.l=h,this.r=g,this.a=this.b=null}function Gv(h,g,A,S){var L=new Ik(h,g);return mc.push(L),A&&b1(L,h,g,A),S&&b1(L,g,h,S),Cu[h.i].edges.push(new x1(L,h,g)),Cu[g.i].edges.push(new x1(L,g,h)),L}function cfe(h,g,A){var S=new Ik(h,null);return S.a=g,S.b=A,mc.push(S),S}function b1(h,g,A,S){!h.a&&!h.b?(h.a=S,h.l=g,h.r=A):h.l===A?h.b=S:h.a=S}function x1(h,g,A){var S=h.a,L=h.b;this.edge=h,this.site=g,this.angle=A?Math.atan2(A.y-g.y,A.x-g.x):h.l===g?Math.atan2(L.x-S.x,S.y-L.y):Math.atan2(S.x-L.x,L.y-S.y)}x1.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 Yx(){this._=null}function _1(h){h.U=h.C=h.L=h.R=h.P=h.N=null}Yx.prototype={insert:function(h,g){var A,S,L;if(h){if(g.P=h,g.N=h.N,h.N&&(h.N.P=g),h.N=g,h.R){for(h=h.R;h.L;)h=h.L;h.L=g}else h.R=g;A=h}else this._?(h=Bk(this._),g.P=null,g.N=h,h.P=h.L=g,A=h):(g.P=g.N=null,this._=g,A=null);for(g.L=g.R=null,g.U=A,g.C=!0,h=g;A&&A.C;)S=A.U,A===S.L?(L=S.R,L&&L.C?(A.C=L.C=!1,S.C=!0,h=S):(h===A.R&&(Yv(this,A),h=A,A=h.U),A.C=!1,S.C=!0,Vv(this,S))):(L=S.L,L&&L.C?(A.C=L.C=!1,S.C=!0,h=S):(h===A.L&&(Vv(this,A),h=A,A=h.U),A.C=!1,S.C=!0,Yv(this,S))),A=h.U;this._.C=!1},remove:function(h){h.N&&(h.N.P=h.P),h.P&&(h.P.N=h.N),h.N=h.P=null;var g=h.U,A,S=h.L,L=h.R,D,O;if(S?L?D=Bk(L):D=S:D=L,g?g.L===h?g.L=D:g.R=D:this._=D,S&&L?(O=D.C,D.C=h.C,D.L=S,S.U=D,D!==L?(g=D.U,D.U=h.U,h=D.R,g.L=h,D.R=L,L.U=D):(D.U=g,g=D,h=D.R)):(O=h.C,h=D),h&&(h.U=g),!O){if(h&&h.C){h.C=!1;return}do{if(h===this._)break;if(h===g.L){if(A=g.R,A.C&&(A.C=!1,g.C=!0,Yv(this,g),A=g.R),A.L&&A.L.C||A.R&&A.R.C){(!A.R||!A.R.C)&&(A.L.C=!1,A.C=!0,Vv(this,A),A=g.R),A.C=g.C,g.C=A.R.C=!1,Yv(this,g),h=this._;break}}else if(A=g.L,A.C&&(A.C=!1,g.C=!0,Vv(this,g),A=g.L),A.L&&A.L.C||A.R&&A.R.C){(!A.L||!A.L.C)&&(A.R.C=!1,A.C=!0,Yv(this,A),A=g.L),A.C=g.C,g.C=A.L.C=!1,Vv(this,g),h=this._;break}A.C=!0,h=g,g=g.U}while(!h.C);h&&(h.C=!1)}}};function Yv(h,g){var A=g,S=g.R,L=A.U;L?L.L===A?L.L=S:L.R=S:h._=S,S.U=L,A.U=S,A.R=S.L,A.R&&(A.R.U=A),S.L=A}function Vv(h,g){var A=g,S=g.L,L=A.U;L?L.L===A?L.L=S:L.R=S:h._=S,S.U=L,A.U=S,A.L=S.R,A.L&&(A.L.U=A),S.R=A}function Bk(h){for(;h.L;)h=h.L;return h}function Vx(h,g){var A=h.sort(vfe).pop(),S,L,D;for(mc=[],Cu=new Array(h.length),yc=new Yx,Uv=new Yx;;)if(D=Ux,A&&(!D||A.y<D.y||A.y===D.y&&A.x<D.x))(A.x!==S||A.y!==L)&&(Cu[A.i]=new zk(A),nfe(A),S=A.x,L=A.y),A=h.pop();else if(D)afe(D.arc);else break;g&&(ufe(g),ofe(g));var O={cells:Cu,edges:mc};return yc=Uv=mc=Cu=null,O}function vfe(h,g){return g.y-h.y||g.x-h.x}e.geom.voronoi=function(h){var g=pc,A=Hv,S=g,L=A,D=w1;if(h)return O(h);function O(U){var X=new Array(U.length),Z=D[0][0],K=D[0][1],Q=D[1][0],pe=D[1][1];return Vx(F(U),D).cells.forEach(function(we,ee){var fe=we.edges,ve=we.site,_e=X[ee]=fe.length?fe.map(function(Te){var de=Te.start();return[de.x,de.y]}):ve.x>=Z&&ve.x<=Q&&ve.y>=K&&ve.y<=pe?[[Z,pe],[Q,pe],[Q,K],[Z,K]]:[];_e.point=U[ee]}),X}function F(U){return U.map(function(X,Z){return{x:Math.round(S(X,Z)/ze)*ze,y:Math.round(L(X,Z)/ze)*ze,i:Z}})}return O.links=function(U){return Vx(F(U)).edges.filter(function(X){return X.l&&X.r}).map(function(X){return{source:U[X.l.i],target:U[X.r.i]}})},O.triangles=function(U){var X=[];return Vx(F(U)).cells.forEach(function(Z,K){for(var Q=Z.site,pe=Z.edges.sort(Nk),we=-1,ee=pe.length,fe,ve,_e=pe[ee-1].edge,Te=_e.l===Q?_e.r:_e.l;++we<ee;)fe=_e,ve=Te,_e=pe[we].edge,Te=_e.l===Q?_e.r:_e.l,K<ve.i&&K<Te.i&&hfe(Q,ve,Te)<0&&X.push([U[K],U[ve.i],U[Te.i]])}),X},O.x=function(U){return arguments.length?(S=Mr(g=U),O):g},O.y=function(U){return arguments.length?(L=Mr(A=U),O):A},O.clipExtent=function(U){return arguments.length?(D=U==null?w1:U,O):D===w1?null:D},O.size=function(U){return arguments.length?O.clipExtent(U&&[[0,0],U]):D===w1?null:D&&D[1]},O};var w1=[[-1e6,-1e6],[1e6,1e6]];function hfe(h,g,A){return(h.x-A.x)*(g.y-h.y)-(h.x-g.x)*(A.y-h.y)}e.geom.delaunay=function(h){return e.geom.voronoi().triangles(h)},e.geom.quadtree=function(h,g,A,S,L){var D=pc,O=Hv,F;if(F=arguments.length)return D=dfe,O=pfe,F===3&&(L=A,S=g,A=g=0),U(h);function U(X){var Z,K=Mr(D),Q=Mr(O),pe,we,ee,fe,ve,_e,Te,de;if(g!=null)ve=g,_e=A,Te=S,de=L;else if(Te=de=-(ve=_e=1/0),pe=[],we=[],fe=X.length,F)for(ee=0;ee<fe;++ee)Z=X[ee],Z.x<ve&&(ve=Z.x),Z.y<_e&&(_e=Z.y),Z.x>Te&&(Te=Z.x),Z.y>de&&(de=Z.y),pe.push(Z.x),we.push(Z.y);else for(ee=0;ee<fe;++ee){var Ve=+K(Z=X[ee],ee),lr=+Q(Z,ee);Ve<ve&&(ve=Ve),lr<_e&&(_e=lr),Ve>Te&&(Te=Ve),lr>de&&(de=lr),pe.push(Ve),we.push(lr)}var hr=Te-ve,fr=de-_e;hr>fr?de=_e+hr:Te=ve+fr;function br(Tr,Er,ct,ya,xt,ir,Ir,Or){if(!(isNaN(ct)||isNaN(ya)))if(Tr.leaf){var vt=Tr.x,ua=Tr.y;if(vt!=null)if(b(vt-ct)+b(ua-ya)<.01)xr(Tr,Er,ct,ya,xt,ir,Ir,Or);else{var Na=Tr.point;Tr.x=Tr.y=Tr.point=null,xr(Tr,Na,vt,ua,xt,ir,Ir,Or),xr(Tr,Er,ct,ya,xt,ir,Ir,Or)}else Tr.x=ct,Tr.y=ya,Tr.point=Er}else xr(Tr,Er,ct,ya,xt,ir,Ir,Or)}function xr(Tr,Er,ct,ya,xt,ir,Ir,Or){var vt=(xt+Ir)*.5,ua=(ir+Or)*.5,Na=ct>=vt,nn=ya>=ua,Mn=nn<<1|Na;Tr.leaf=!1,Tr=Tr.nodes[Mn]||(Tr.nodes[Mn]=Ok()),Na?xt=vt:Ir=vt,nn?ir=ua:Or=ua,br(Tr,Er,ct,ya,xt,ir,Ir,Or)}var Nr=Ok();if(Nr.add=function(Tr){br(Nr,Tr,+K(Tr,++ee),+Q(Tr,ee),ve,_e,Te,de)},Nr.visit=function(Tr){jv(Tr,Nr,ve,_e,Te,de)},Nr.find=function(Tr){return mfe(Nr,Tr[0],Tr[1],ve,_e,Te,de)},ee=-1,g==null){for(;++ee<fe;)br(Nr,X[ee],pe[ee],we[ee],ve,_e,Te,de);--ee}else X.forEach(Nr.add);return pe=we=X=Z=null,Nr}return U.x=function(X){return arguments.length?(D=X,U):D},U.y=function(X){return arguments.length?(O=X,U):O},U.extent=function(X){return arguments.length?(X==null?g=A=S=L=null:(g=+X[0][0],A=+X[0][1],S=+X[1][0],L=+X[1][1]),U):g==null?null:[[g,A],[S,L]]},U.size=function(X){return arguments.length?(X==null?g=A=S=L=null:(g=A=0,S=+X[0],L=+X[1]),U):g==null?null:[S-g,L-A]},U};function dfe(h){return h.x}function pfe(h){return h.y}function Ok(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function jv(h,g,A,S,L,D){if(!h(g,A,S,L,D)){var O=(A+L)*.5,F=(S+D)*.5,U=g.nodes;U[0]&&jv(h,U[0],A,S,O,F),U[1]&&jv(h,U[1],O,S,L,F),U[2]&&jv(h,U[2],A,F,O,D),U[3]&&jv(h,U[3],O,F,L,D)}}function mfe(h,g,A,S,L,D,O){var F=1/0,U;return(function X(Z,K,Q,pe,we){if(!(K>D||Q>O||pe<S||we<L)){if(ee=Z.point){var ee,fe=g-Z.x,ve=A-Z.y,_e=fe*fe+ve*ve;if(_e<F){var Te=Math.sqrt(F=_e);S=g-Te,L=A-Te,D=g+Te,O=A+Te,U=ee}}for(var de=Z.nodes,Ve=(K+pe)*.5,lr=(Q+we)*.5,hr=g>=Ve,fr=A>=lr,br=fr<<1|hr,xr=br+4;br<xr;++br)if(Z=de[br&3])switch(br&3){case 0:X(Z,K,Q,Ve,lr);break;case 1:X(Z,Ve,Q,pe,lr);break;case 2:X(Z,K,lr,Ve,we);break;case 3:X(Z,Ve,lr,pe,we);break}}})(h,S,L,D,O),U}e.interpolateRgb=jx;function jx(h,g){h=e.rgb(h),g=e.rgb(g);var A=h.r,S=h.g,L=h.b,D=g.r-A,O=g.g-S,F=g.b-L;return function(U){return"#"+bs(Math.round(A+D*U))+bs(Math.round(S+O*U))+bs(Math.round(L+F*U))}}e.interpolateObject=Hk;function Hk(h,g){var A={},S={},L;for(L in h)L in g?A[L]=Du(h[L],g[L]):S[L]=h[L];for(L in g)L in h||(S[L]=g[L]);return function(D){for(L in A)S[L]=A[L](D);return S}}e.interpolateNumber=Nl;function Nl(h,g){return h=+h,g=+g,function(A){return h*(1-A)+g*A}}e.interpolateString=Uk;function Uk(h,g){var A=Wx.lastIndex=Xx.lastIndex=0,S,L,D,O=-1,F=[],U=[];for(h=h+"",g=g+"";(S=Wx.exec(h))&&(L=Xx.exec(g));)(D=L.index)>A&&(D=g.slice(A,D),F[O]?F[O]+=D:F[++O]=D),(S=S[0])===(L=L[0])?F[O]?F[O]+=L:F[++O]=L:(F[++O]=null,U.push({i:O,x:Nl(S,L)})),A=Xx.lastIndex;return A<g.length&&(D=g.slice(A),F[O]?F[O]+=D:F[++O]=D),F.length<2?U[0]?(g=U[0].x,function(X){return g(X)+""}):function(){return g}:(g=U.length,function(X){for(var Z=0,K;Z<g;++Z)F[(K=U[Z]).i]=K.x(X);return F.join("")})}var Wx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xx=new RegExp(Wx.source,"g");e.interpolate=Du;function Du(h,g){for(var A=e.interpolators.length,S;--A>=0&&!(S=e.interpolators[A](h,g)););return S}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?kr.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?jx:Uk:g instanceof Ot?jx:Array.isArray(g)?T1:A==="object"&&isNaN(g)?Hk:Nl)(h,g)}],e.interpolateArray=T1;function T1(h,g){var A=[],S=[],L=h.length,D=g.length,O=Math.min(h.length,g.length),F;for(F=0;F<O;++F)A.push(Du(h[F],g[F]));for(;F<L;++F)S[F]=h[F];for(;F<D;++F)S[F]=g[F];return function(U){for(F=0;F<O;++F)S[F]=A[F](U);return S}}var Gk=function(){return N},yfe=e.map({linear:Gk,poly:Tfe,quad:function(){return xfe},cubic:function(){return _fe},sin:function(){return Afe},exp:function(){return Mfe},circle:function(){return kfe},elastic:Sfe,back:qfe,bounce:function(){return Lfe}}),gfe=e.map({in:N,out:Yk,"in-out":Vk,"out-in":function(h){return Vk(Yk(h))}});e.ease=function(h){var g=h.indexOf("-"),A=g>=0?h.slice(0,g):h,S=g>=0?h.slice(g+1):"in";return A=yfe.get(A)||Gk,S=gfe.get(S)||N,bfe(S(A.apply(null,r.call(arguments,1))))};function bfe(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function Yk(h){return function(g){return 1-h(1-g)}}function Vk(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function xfe(h){return h*h}function _fe(h){return h*h*h}function wfe(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function Tfe(h){return function(g){return Math.pow(g,h)}}function Afe(h){return 1-Math.cos(h*ie)}function Mfe(h){return Math.pow(2,10*(h-1))}function kfe(h){return 1-Math.sqrt(1-h*h)}function Sfe(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/pr*Math.asin(1/h):(h=1,A=g/4),function(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-A)*pr/g)}}function qfe(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function Lfe(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=Cfe;function Cfe(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,S=h.c,L=h.l,D=g.h-A,O=g.c-S,F=g.l-L;return isNaN(O)&&(O=0,S=isNaN(S)?g.c:S),isNaN(D)?(D=0,A=isNaN(A)?g.h:A):D>180?D-=360:D<-180&&(D+=360),function(U){return qa(A+D*U,S+O*U,L+F*U)+""}}e.interpolateHsl=Dfe;function Dfe(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,S=h.s,L=h.l,D=g.h-A,O=g.s-S,F=g.l-L;return isNaN(O)&&(O=0,S=isNaN(S)?g.s:S),isNaN(D)?(D=0,A=isNaN(A)?g.h:A):D>180?D-=360:D<-180&&(D+=360),function(U){return Yr(A+D*U,S+O*U,L+F*U)+""}}e.interpolateLab=Efe;function Efe(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,S=h.a,L=h.b,D=g.l-A,O=g.a-S,F=g.b-L;return function(U){return Wr(A+D*U,S+O*U,L+F*U)+""}}e.interpolateRound=jk;function jk(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var S=g.transform.baseVal.consolidate()}return new Wk(S?S.matrix:Rfe)})(h)};function Wk(h){var g=[h.a,h.b],A=[h.c,h.d],S=Zk(g),L=Xk(g,A),D=Zk(Pfe(A,g,-L))||0;g[0]*A[1]<A[0]*g[1]&&(g[0]*=-1,g[1]*=-1,S*=-1,L*=-1),this.rotate=(S?Math.atan2(g[1],g[0]):Math.atan2(-A[0],A[1]))*Fe,this.translate=[h.e,h.f],this.scale=[S,D],this.skew=D?Math.atan2(L,D)*Fe:0}Wk.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Xk(h,g){return h[0]*g[0]+h[1]*g[1]}function Zk(h){var g=Math.sqrt(Xk(h,h));return g&&(h[0]/=g,h[1]/=g),g}function Pfe(h,g,A){return h[0]+=A*g[0],h[1]+=A*g[1],h}var Rfe={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=$k;function xc(h){return h.length?h.pop()+",":""}function Ffe(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push("translate(",null,",",null,")");S.push({i:L-4,x:Nl(h[0],g[0])},{i:L-2,x:Nl(h[1],g[1])})}else(g[0]||g[1])&&A.push("translate("+g+")")}function zfe(h,g,A,S){h!==g?(h-g>180?g+=360:g-h>180&&(h+=360),S.push({i:A.push(xc(A)+"rotate(",null,")")-2,x:Nl(h,g)})):g&&A.push(xc(A)+"rotate("+g+")")}function Nfe(h,g,A,S){h!==g?S.push({i:A.push(xc(A)+"skewX(",null,")")-2,x:Nl(h,g)}):g&&A.push(xc(A)+"skewX("+g+")")}function Ife(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(xc(A)+"scale(",null,",",null,")");S.push({i:L-4,x:Nl(h[0],g[0])},{i:L-2,x:Nl(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(xc(A)+"scale("+g+")")}function $k(h,g){var A=[],S=[];return h=e.transform(h),g=e.transform(g),Ffe(h.translate,g.translate,A,S),zfe(h.rotate,g.rotate,A,S),Nfe(h.skew,g.skew,A,S),Ife(h.scale,g.scale,A,S),h=g=null,function(L){for(var D=-1,O=S.length,F;++D<O;)A[(F=S[D]).i]=F.x(L);return A.join("")}}function Bfe(h,g){return g=(g-=h=+h)||1/g,function(A){return(A-h)/g}}function Ofe(h,g){return g=(g-=h=+h)||1/g,function(A){return Math.max(0,Math.min(1,(A-h)/g))}}e.layout={},e.layout.bundle=function(){return function(h){for(var g=[],A=-1,S=h.length;++A<S;)g.push(Hfe(h[A]));return g}};function Hfe(h){for(var g=h.source,A=h.target,S=Ufe(g,A),L=[g];g!==S;)g=g.parent,L.push(g);for(var D=L.length;A!==S;)L.splice(D,0,A),A=A.parent;return L}function Jk(h){for(var g=[],A=h.parent;A!=null;)g.push(h),h=A,A=A.parent;return g.push(h),g}function Ufe(h,g){if(h===g)return h;for(var A=Jk(h),S=Jk(g),L=A.pop(),D=S.pop(),O=null;L===D;)O=L,L=A.pop(),D=S.pop();return O}e.layout.chord=function(){var h={},g,A,S,L,D=0,O,F,U;function X(){var K={},Q=[],pe=e.range(L),we=[],ee,fe,ve,_e,Te;for(g=[],A=[],ee=0,_e=-1;++_e<L;){for(fe=0,Te=-1;++Te<L;)fe+=S[_e][Te];Q.push(fe),we.push(e.range(L)),ee+=fe}for(O&&pe.sort(function(Nr,Tr){return O(Q[Nr],Q[Tr])}),F&&we.forEach(function(Nr,Tr){Nr.sort(function(Er,ct){return F(S[Tr][Er],S[Tr][ct])})}),ee=(pr-D*L)/ee,fe=0,_e=-1;++_e<L;){for(ve=fe,Te=-1;++Te<L;){var de=pe[_e],Ve=we[de][Te],lr=S[de][Ve],hr=fe,fr=fe+=lr*ee;K[de+"-"+Ve]={index:de,subindex:Ve,startAngle:hr,endAngle:fr,value:lr}}A[de]={index:de,startAngle:ve,endAngle:fe,value:Q[de]},fe+=D}for(_e=-1;++_e<L;)for(Te=_e-1;++Te<L;){var br=K[_e+"-"+Te],xr=K[Te+"-"+_e];(br.value||xr.value)&&g.push(br.value<xr.value?{source:xr,target:br}:{source:br,target:xr})}U&&Z()}function Z(){g.sort(function(K,Q){return U((K.source.value+K.target.value)/2,(Q.source.value+Q.target.value)/2)})}return h.matrix=function(K){return arguments.length?(L=(S=K)&&S.length,g=A=null,h):S},h.padding=function(K){return arguments.length?(D=K,g=A=null,h):D},h.sortGroups=function(K){return arguments.length?(O=K,g=A=null,h):O},h.sortSubgroups=function(K){return arguments.length?(F=K,g=null,h):F},h.sortChords=function(K){return arguments.length?(U=K,g&&Z(),h):U},h.chords=function(){return g||X(),g},h.groups=function(){return A||X(),A},h},e.layout.force=function(){var h={},g=e.dispatch("start","tick","end"),A,S=[1,1],L,D,O=.9,F=Wfe,U=Xfe,X=-30,Z=Zfe,K=.1,Q=.64,pe=[],we=[],ee,fe,ve;function _e(de){return function(Ve,lr,hr,fr){if(Ve.point!==de){var br=Ve.cx-de.x,xr=Ve.cy-de.y,Nr=fr-lr,Tr=br*br+xr*xr;if(Nr*Nr/Q<Tr){if(Tr<Z){var Er=Ve.charge/Tr;de.px-=br*Er,de.py-=xr*Er}return!0}if(Ve.point&&Tr&&Tr<Z){var Er=Ve.pointCharge/Tr;de.px-=br*Er,de.py-=xr*Er}}return!Ve.charge}}h.tick=function(){if((D*=.99)<.005)return A=null,g.end({type:"end",alpha:D=0}),!0;var de=pe.length,Ve=we.length,lr,hr,fr,br,xr,Nr,Tr,Er,ct;for(hr=0;hr<Ve;++hr)fr=we[hr],br=fr.source,xr=fr.target,Er=xr.x-br.x,ct=xr.y-br.y,(Nr=Er*Er+ct*ct)&&(Nr=D*fe[hr]*((Nr=Math.sqrt(Nr))-ee[hr])/Nr,Er*=Nr,ct*=Nr,xr.x-=Er*(Tr=br.weight+xr.weight?br.weight/(br.weight+xr.weight):.5),xr.y-=ct*Tr,br.x+=Er*(Tr=1-Tr),br.y+=ct*Tr);if((Tr=D*K)&&(Er=S[0]/2,ct=S[1]/2,hr=-1,Tr))for(;++hr<de;)fr=pe[hr],fr.x+=(Er-fr.x)*Tr,fr.y+=(ct-fr.y)*Tr;if(X)for(Kk(lr=e.geom.quadtree(pe),D,ve),hr=-1;++hr<de;)(fr=pe[hr]).fixed||lr.visit(_e(fr));for(hr=-1;++hr<de;)fr=pe[hr],fr.fixed?(fr.x=fr.px,fr.y=fr.py):(fr.x-=(fr.px-(fr.px=fr.x))*O,fr.y-=(fr.py-(fr.py=fr.y))*O);g.tick({type:"tick",alpha:D})},h.nodes=function(de){return arguments.length?(pe=de,h):pe},h.links=function(de){return arguments.length?(we=de,h):we},h.size=function(de){return arguments.length?(S=de,h):S},h.linkDistance=function(de){return arguments.length?(F=typeof de=="function"?de:+de,h):F},h.distance=h.linkDistance,h.linkStrength=function(de){return arguments.length?(U=typeof de=="function"?de:+de,h):U},h.friction=function(de){return arguments.length?(O=+de,h):O},h.charge=function(de){return arguments.length?(X=typeof de=="function"?de:+de,h):X},h.chargeDistance=function(de){return arguments.length?(Z=de*de,h):Math.sqrt(Z)},h.gravity=function(de){return arguments.length?(K=+de,h):K},h.theta=function(de){return arguments.length?(Q=de*de,h):Math.sqrt(Q)},h.alpha=function(de){return arguments.length?(de=+de,D?de>0?D=de:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:D=0})):de>0&&(g.start({type:"start",alpha:D=de}),A=y1(h.tick)),h):D},h.start=function(){var de,Ve=pe.length,lr=we.length,hr=S[0],fr=S[1],br,xr;for(de=0;de<Ve;++de)(xr=pe[de]).index=de,xr.weight=0;for(de=0;de<lr;++de)xr=we[de],typeof xr.source=="number"&&(xr.source=pe[xr.source]),typeof xr.target=="number"&&(xr.target=pe[xr.target]),++xr.source.weight,++xr.target.weight;for(de=0;de<Ve;++de)xr=pe[de],isNaN(xr.x)&&(xr.x=Nr("x",hr)),isNaN(xr.y)&&(xr.y=Nr("y",fr)),isNaN(xr.px)&&(xr.px=xr.x),isNaN(xr.py)&&(xr.py=xr.y);if(ee=[],typeof F=="function")for(de=0;de<lr;++de)ee[de]=+F.call(this,we[de],de);else for(de=0;de<lr;++de)ee[de]=F;if(fe=[],typeof U=="function")for(de=0;de<lr;++de)fe[de]=+U.call(this,we[de],de);else for(de=0;de<lr;++de)fe[de]=U;if(ve=[],typeof X=="function")for(de=0;de<Ve;++de)ve[de]=+X.call(this,pe[de],de);else for(de=0;de<Ve;++de)ve[de]=X;function Nr(Tr,Er){if(!br){for(br=new Array(Ve),xt=0;xt<Ve;++xt)br[xt]=[];for(xt=0;xt<lr;++xt){var ct=we[xt];br[ct.source.index].push(ct.target),br[ct.target.index].push(ct.source)}}for(var ya=br[de],xt=-1,ir=ya.length,Ir;++xt<ir;)if(!isNaN(Ir=ya[xt][Tr]))return Ir;return Math.random()*Er}return h.resume()},h.resume=function(){return h.alpha(.1)},h.stop=function(){return h.alpha(0)},h.drag=function(){if(L||(L=e.behavior.drag().origin(N).on("dragstart.force",Gfe).on("drag.force",Te).on("dragend.force",Yfe)),!arguments.length)return L;this.on("mouseover.force",Vfe).on("mouseout.force",jfe).call(L)};function Te(de){de.px=e.event.x,de.py=e.event.y,h.resume()}return e.rebind(h,g,"on")};function Gfe(h){h.fixed|=2}function Yfe(h){h.fixed&=-7}function Vfe(h){h.fixed|=4,h.px=h.x,h.py=h.y}function jfe(h){h.fixed&=-5}function Kk(h,g,A){var S=0,L=0;if(h.charge=0,!h.leaf)for(var D=h.nodes,O=D.length,F=-1,U;++F<O;)U=D[F],U!=null&&(Kk(U,g,A),h.charge+=U.charge,S+=U.charge*U.cx,L+=U.charge*U.cy);if(h.point){h.leaf||(h.point.x+=Math.random()-.5,h.point.y+=Math.random()-.5);var X=g*A[h.point.index];h.charge+=h.pointCharge=X,S+=X*h.point.x,L+=X*h.point.y}h.cx=S/h.charge,h.cy=L/h.charge}var Wfe=20,Xfe=1,Zfe=1/0;e.layout.hierarchy=function(){var h=Kfe,g=$fe,A=Jfe;function S(L){var D=[L],O=[],F;for(L.depth=0;(F=D.pop())!=null;)if(O.push(F),(X=g.call(S,F,F.depth))&&(U=X.length)){for(var U,X,Z;--U>=0;)D.push(Z=X[U]),Z.parent=F,Z.depth=F.depth+1;A&&(F.value=0),F.children=X}else A&&(F.value=+A.call(S,F,F.depth)||0),delete F.children;return nl(L,function(K){var Q,pe;h&&(Q=K.children)&&Q.sort(h),A&&(pe=K.parent)&&(pe.value+=K.value)}),O}return S.sort=function(L){return arguments.length?(h=L,S):h},S.children=function(L){return arguments.length?(g=L,S):g},S.value=function(L){return arguments.length?(A=L,S):A},S.revalue=function(L){return A&&(Xv(L,function(D){D.children&&(D.value=0)}),nl(L,function(D){var O;D.children||(D.value=+A.call(S,D,D.depth)||0),(O=D.parent)&&(O.value+=D.value)})),L},S};function Wv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Qfe,h}function Xv(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(S=L.length))for(var S,L;--S>=0;)A.push(L[S])}function nl(h,g){for(var A=[h],S=[];(h=A.pop())!=null;)if(S.push(h),(O=h.children)&&(D=O.length))for(var L=-1,D,O;++L<D;)A.push(O[L]);for(;(h=S.pop())!=null;)g(h)}function $fe(h){return h.children}function Jfe(h){return h.value}function Kfe(h,g){return g.value-h.value}function Qfe(h){return e.merge(h.map(function(g){return(g.children||[]).map(function(A){return{source:g,target:A}})}))}e.layout.partition=function(){var h=e.layout.hierarchy(),g=[1,1];function A(D,O,F,U){var X=D.children;if(D.x=O,D.y=D.depth*U,D.dx=F,D.dy=U,X&&(K=X.length)){var Z=-1,K,Q,pe;for(F=D.value?F/D.value:0;++Z<K;)A(Q=X[Z],O,pe=Q.value*F,U),O+=pe}}function S(D){var O=D.children,F=0;if(O&&(X=O.length))for(var U=-1,X;++U<X;)F=Math.max(F,S(O[U]));return 1+F}function L(D,O){var F=h.call(this,D,O);return A(F[0],0,g[0],g[1]/S(F[0])),F}return L.size=function(D){return arguments.length?(g=D,L):g},Wv(L,h)},e.layout.pie=function(){var h=Number,g=Qk,A=0,S=pr,L=0;function D(O){var F=O.length,U=O.map(function(_e,Te){return+h.call(D,_e,Te)}),X=+(typeof A=="function"?A.apply(this,arguments):A),Z=(typeof S=="function"?S.apply(this,arguments):S)-X,K=Math.min(Math.abs(Z)/F,+(typeof L=="function"?L.apply(this,arguments):L)),Q=K*(Z<0?-1:1),pe=e.sum(U),we=pe?(Z-F*Q)/pe:0,ee=e.range(F),fe=[],ve;return g!=null&&ee.sort(g===Qk?function(_e,Te){return U[Te]-U[_e]}:function(_e,Te){return g(O[_e],O[Te])}),ee.forEach(function(_e){fe[_e]={data:O[_e],value:ve=U[_e],startAngle:X,endAngle:X+=ve*we+Q,padAngle:K}}),fe}return D.value=function(O){return arguments.length?(h=O,D):h},D.sort=function(O){return arguments.length?(g=O,D):g},D.startAngle=function(O){return arguments.length?(A=O,D):A},D.endAngle=function(O){return arguments.length?(S=O,D):S},D.padAngle=function(O){return arguments.length?(L=O,D):L},D};var Qk={};e.layout.stack=function(){var h=N,g=Zx,A=$x,S=tce,L=ece,D=rce;function O(F,U){if(!(we=F.length))return F;var X=F.map(function(_e,Te){return h.call(O,_e,Te)}),Z=X.map(function(_e){return _e.map(function(Te,de){return[L.call(O,Te,de),D.call(O,Te,de)]})}),K=g.call(O,Z,U);X=e.permute(X,K),Z=e.permute(Z,K);var Q=A.call(O,Z,U),pe=X[0].length,we,ee,fe,ve;for(fe=0;fe<pe;++fe)for(S.call(O,X[0][fe],ve=Q[fe],Z[0][fe][1]),ee=1;ee<we;++ee)S.call(O,X[ee][fe],ve+=Z[ee-1][fe][1],Z[ee][fe][1]);return F}return O.values=function(F){return arguments.length?(h=F,O):h},O.order=function(F){return arguments.length?(g=typeof F=="function"?F:ace.get(F)||Zx,O):g},O.offset=function(F){return arguments.length?(A=typeof F=="function"?F:nce.get(F)||$x,O):A},O.x=function(F){return arguments.length?(L=F,O):L},O.y=function(F){return arguments.length?(D=F,O):D},O.out=function(F){return arguments.length?(S=F,O):S},O};function ece(h){return h.x}function rce(h){return h.y}function tce(h,g,A){h.y0=g,h.y=A}var ace=e.map({"inside-out":function(h){var g=h.length,A,S,L=h.map(ice),D=h.map(oce),O=e.range(g).sort(function(K,Q){return L[K]-L[Q]}),F=0,U=0,X=[],Z=[];for(A=0;A<g;++A)S=O[A],F<U?(F+=D[S],X.push(S)):(U+=D[S],Z.push(S));return Z.reverse().concat(X)},reverse:function(h){return e.range(h.length).reverse()},default:Zx}),nce=e.map({silhouette:function(h){var g=h.length,A=h[0].length,S=[],L=0,D,O,F,U=[];for(O=0;O<A;++O){for(D=0,F=0;D<g;D++)F+=h[D][O][1];F>L&&(L=F),S.push(F)}for(O=0;O<A;++O)U[O]=(L-S[O])/2;return U},wiggle:function(h){var g=h.length,A=h[0],S=A.length,L,D,O,F,U,X,Z,K,Q,pe=[];for(pe[0]=K=Q=0,D=1;D<S;++D){for(L=0,F=0;L<g;++L)F+=h[L][D][1];for(L=0,U=0,Z=A[D][0]-A[D-1][0];L<g;++L){for(O=0,X=(h[L][D][1]-h[L][D-1][1])/(2*Z);O<L;++O)X+=(h[O][D][1]-h[O][D-1][1])/Z;U+=X*h[L][D][1]}pe[D]=K-=F?U/F*Z:0,K<Q&&(Q=K)}for(D=0;D<S;++D)pe[D]-=Q;return pe},expand:function(h){var g=h.length,A=h[0].length,S=1/g,L,D,O,F=[];for(D=0;D<A;++D){for(L=0,O=0;L<g;L++)O+=h[L][D][1];if(O)for(L=0;L<g;L++)h[L][D][1]/=O;else for(L=0;L<g;L++)h[L][D][1]=S}for(D=0;D<A;++D)F[D]=0;return F},zero:$x});function Zx(h){return e.range(h.length)}function $x(h){for(var g=-1,A=h[0].length,S=[];++g<A;)S[g]=0;return S}function ice(h){for(var g=1,A=0,S=h[0][1],L,D=h.length;g<D;++g)(L=h[g][1])>S&&(A=g,S=L);return A}function oce(h){return h.reduce(lce,0)}function lce(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=uce,S=sce;function L(D,Q){for(var F=[],U=D.map(g,this),X=A.call(this,U,Q),Z=S.call(this,X,U,Q),K,Q=-1,pe=U.length,we=Z.length-1,ee=h?1:1/pe,fe;++Q<we;)K=F[Q]=[],K.dx=Z[Q+1]-(K.x=Z[Q]),K.y=0;if(we>0)for(Q=-1;++Q<pe;)fe=U[Q],fe>=X[0]&&fe<=X[1]&&(K=F[e.bisect(Z,fe,1,we)-1],K.y+=ee,K.push(D[Q]));return F}return L.value=function(D){return arguments.length?(g=D,L):g},L.range=function(D){return arguments.length?(A=Mr(D),L):A},L.bins=function(D){return arguments.length?(S=typeof D=="number"?function(O){return eS(O,D)}:Mr(D),L):S},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function sce(h,g){return eS(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function eS(h,g){for(var A=-1,S=+h[0],L=(h[1]-S)/g,D=[];++A<=g;)D[A]=L*A+S;return D}function uce(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(fce),g=0,A=[1,1],S;function L(D,O){var F=h.call(this,D,O),U=F[0],X=A[0],Z=A[1],K=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(U.x=U.y=0,nl(U,function(pe){pe.r=+K(pe.value)}),nl(U,aS),g){var Q=g*(S?1:Math.max(2*U.r/X,2*U.r/Z))/2;nl(U,function(pe){pe.r+=Q}),nl(U,aS),nl(U,function(pe){pe.r-=Q})}return nS(U,X/2,Z/2,S?1:1/Math.max(2*U.r/X,2*U.r/Z)),F}return L.size=function(D){return arguments.length?(A=D,L):A},L.radius=function(D){return arguments.length?(S=D==null||typeof D=="function"?D:+D,L):S},L.padding=function(D){return arguments.length?(g=+D,L):g},Wv(L,h)};function fce(h,g){return h.value-g.value}function Jx(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function rS(h,g){h._pack_next=g,g._pack_prev=h}function tS(h,g){var A=g.x-h.x,S=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+S*S}function aS(h){if(!(g=h.children)||!(Q=g.length))return;var g,A=1/0,S=-1/0,L=1/0,D=-1/0,O,F,U,X,Z,K,Q;function pe(de){A=Math.min(de.x-de.r,A),S=Math.max(de.x+de.r,S),L=Math.min(de.y-de.r,L),D=Math.max(de.y+de.r,D)}if(g.forEach(cce),O=g[0],O.x=-O.r,O.y=0,pe(O),Q>1&&(F=g[1],F.x=F.r,F.y=0,pe(F),Q>2))for(U=g[2],iS(O,F,U),pe(U),Jx(O,U),O._pack_prev=U,Jx(U,F),F=O._pack_next,X=3;X<Q;X++){iS(O,F,U=g[X]);var we=0,ee=1,fe=1;for(Z=F._pack_next;Z!==F;Z=Z._pack_next,ee++)if(tS(Z,U)){we=1;break}if(we==1)for(K=O._pack_prev;K!==Z._pack_prev&&!tS(K,U);K=K._pack_prev,fe++);we?(ee<fe||ee==fe&&F.r<O.r?rS(O,F=Z):rS(O=K,F),X--):(Jx(O,U),F=U,pe(U))}var ve=(A+S)/2,_e=(L+D)/2,Te=0;for(X=0;X<Q;X++)U=g[X],U.x-=ve,U.y-=_e,Te=Math.max(Te,U.r+Math.sqrt(U.x*U.x+U.y*U.y));h.r=Te,g.forEach(vce)}function cce(h){h._pack_next=h._pack_prev=h}function vce(h){delete h._pack_next,delete h._pack_prev}function nS(h,g,A,S){var L=h.children;if(h.x=g+=S*h.x,h.y=A+=S*h.y,h.r*=S,L)for(var D=-1,O=L.length;++D<O;)nS(L[D],g,A,S)}function iS(h,g,A){var S=h.r+A.r,L=g.x-h.x,D=g.y-h.y;if(S&&(L||D)){var O=g.r+A.r,F=L*L+D*D;O*=O,S*=S;var U=.5+(S-O)/(2*F),X=Math.sqrt(Math.max(0,2*O*(S+F)-(S-=F)*S-O*O))/(2*F);A.x=h.x+U*L+X*D,A.y=h.y+U*D-X*L}else A.x=h.x+S,A.y=h.y}e.layout.tree=function(){var h=e.layout.hierarchy().sort(null).value(null),g=oS,A=[1,1],S=null;function L(Z,K){var Q=h.call(this,Z,K),pe=Q[0],we=D(pe);if(nl(we,O),we.parent.m=-we.z,Xv(we,F),S)Xv(pe,X);else{var ee=pe,fe=pe,ve=pe;Xv(pe,function(Ve){Ve.x<ee.x&&(ee=Ve),Ve.x>fe.x&&(fe=Ve),Ve.depth>ve.depth&&(ve=Ve)});var _e=g(ee,fe)/2-ee.x,Te=A[0]/(fe.x+g(fe,ee)/2+_e),de=A[1]/(ve.depth||1);Xv(pe,function(Ve){Ve.x=(Ve.x+_e)*Te,Ve.y=Ve.depth*de})}return Q}function D(Z){for(var K={A:null,children:[Z]},Q=[K],pe;(pe=Q.pop())!=null;)for(var we=pe.children,ee,fe=0,ve=we.length;fe<ve;++fe)Q.push((we[fe]=ee={_:we[fe],parent:pe,children:(ee=we[fe].children)&&ee.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:fe}).a=ee);return K.children[0]}function O(Z){var K=Z.children,Q=Z.parent.children,pe=Z.i?Q[Z.i-1]:null;if(K.length){dce(Z);var we=(K[0].z+K[K.length-1].z)/2;pe?(Z.z=pe.z+g(Z._,pe._),Z.m=Z.z-we):Z.z=we}else pe&&(Z.z=pe.z+g(Z._,pe._));Z.parent.A=U(Z,pe,Z.parent.A||Q[0])}function F(Z){Z._.x=Z.z+Z.parent.m,Z.m+=Z.parent.m}function U(Z,K,Q){if(K){for(var pe=Z,we=Z,ee=K,fe=pe.parent.children[0],ve=pe.m,_e=we.m,Te=ee.m,de=fe.m,Ve;ee=Qx(ee),pe=Kx(pe),ee&&pe;)fe=Kx(fe),we=Qx(we),we.a=Z,Ve=ee.z+Te-pe.z-ve+g(ee._,pe._),Ve>0&&(hce(pce(ee,Z,Q),Z,Ve),ve+=Ve,_e+=Ve),Te+=ee.m,ve+=pe.m,de+=fe.m,_e+=we.m;ee&&!Qx(we)&&(we.t=ee,we.m+=Te-_e),pe&&!Kx(fe)&&(fe.t=pe,fe.m+=ve-de,Q=Z)}return Q}function X(Z){Z.x*=A[0],Z.y=Z.depth*A[1]}return L.separation=function(Z){return arguments.length?(g=Z,L):g},L.size=function(Z){return arguments.length?(S=(A=Z)==null?X:null,L):S?null:A},L.nodeSize=function(Z){return arguments.length?(S=(A=Z)==null?null:X,L):S?A:null},Wv(L,h)};function oS(h,g){return h.parent==g.parent?1:2}function Kx(h){var g=h.children;return g.length?g[0]:h.t}function Qx(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function hce(h,g,A){var S=A/(g.i-h.i);g.c-=S,g.s+=A,h.c+=S,g.z+=A,g.m+=A}function dce(h){for(var g=0,A=0,S=h.children,L=S.length,D;--L>=0;)D=S[L],D.z+=g,D.m+=g,g+=D.s+(A+=D.c)}function pce(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=oS,A=[1,1],S=!1;function L(D,O){var F=h.call(this,D,O),U=F[0],X,Z=0;nl(U,function(ee){var fe=ee.children;fe&&fe.length?(ee.x=yce(fe),ee.y=mce(fe)):(ee.x=X?Z+=g(ee,X):0,ee.y=0,X=ee)});var K=lS(U),Q=sS(U),pe=K.x-g(K,Q)/2,we=Q.x+g(Q,K)/2;return nl(U,S?function(ee){ee.x=(ee.x-U.x)*A[0],ee.y=(U.y-ee.y)*A[1]}:function(ee){ee.x=(ee.x-pe)/(we-pe)*A[0],ee.y=(1-(U.y?ee.y/U.y:1))*A[1]}),F}return L.separation=function(D){return arguments.length?(g=D,L):g},L.size=function(D){return arguments.length?(S=(A=D)==null,L):S?null:A},L.nodeSize=function(D){return arguments.length?(S=(A=D)!=null,L):S?A:null},Wv(L,h)};function mce(h){return 1+e.max(h,function(g){return g.y})}function yce(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function lS(h){var g=h.children;return g&&g.length?lS(g[0]):h}function sS(h){var g=h.children,A;return g&&(A=g.length)?sS(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],S=null,L=e5,D=!1,O,F="squarify",U=.5*(1+Math.sqrt(5));function X(ee,fe){for(var ve=-1,_e=ee.length,Te,de;++ve<_e;)de=(Te=ee[ve]).value*(fe<0?0:fe),Te.area=isNaN(de)||de<=0?0:de}function Z(ee){var fe=ee.children;if(fe&&fe.length){var ve=L(ee),_e=[],Te=fe.slice(),de,Ve=1/0,lr,hr=F==="slice"?ve.dx:F==="dice"?ve.dy:F==="slice-dice"?ee.depth&1?ve.dy:ve.dx:Math.min(ve.dx,ve.dy),fr;for(X(Te,ve.dx*ve.dy/ee.value),_e.area=0;(fr=Te.length)>0;)_e.push(de=Te[fr-1]),_e.area+=de.area,F!=="squarify"||(lr=Q(_e,hr))<=Ve?(Te.pop(),Ve=lr):(_e.area-=_e.pop().area,pe(_e,hr,ve,!1),hr=Math.min(ve.dx,ve.dy),_e.length=_e.area=0,Ve=1/0);_e.length&&(pe(_e,hr,ve,!0),_e.length=_e.area=0),fe.forEach(Z)}}function K(ee){var fe=ee.children;if(fe&&fe.length){var ve=L(ee),_e=fe.slice(),Te,de=[];for(X(_e,ve.dx*ve.dy/ee.value),de.area=0;Te=_e.pop();)de.push(Te),de.area+=Te.area,Te.z!=null&&(pe(de,Te.z?ve.dx:ve.dy,ve,!_e.length),de.length=de.area=0);fe.forEach(K)}}function Q(ee,fe){for(var ve=ee.area,_e,Te=0,de=1/0,Ve=-1,lr=ee.length;++Ve<lr;)(_e=ee[Ve].area)&&(_e<de&&(de=_e),_e>Te&&(Te=_e));return ve*=ve,fe*=fe,ve?Math.max(fe*Te*U/ve,ve/(fe*de*U)):1/0}function pe(ee,fe,ve,_e){var Te=-1,de=ee.length,Ve=ve.x,lr=ve.y,hr=fe?g(ee.area/fe):0,fr;if(fe==ve.dx){for((_e||hr>ve.dy)&&(hr=ve.dy);++Te<de;)fr=ee[Te],fr.x=Ve,fr.y=lr,fr.dy=hr,Ve+=fr.dx=Math.min(ve.x+ve.dx-Ve,hr?g(fr.area/hr):0);fr.z=!0,fr.dx+=ve.x+ve.dx-Ve,ve.y+=hr,ve.dy-=hr}else{for((_e||hr>ve.dx)&&(hr=ve.dx);++Te<de;)fr=ee[Te],fr.x=Ve,fr.y=lr,fr.dx=hr,lr+=fr.dy=Math.min(ve.y+ve.dy-lr,hr?g(fr.area/hr):0);fr.z=!1,fr.dy+=ve.y+ve.dy-lr,ve.x+=hr,ve.dx-=hr}}function we(ee){var fe=O||h(ee),ve=fe[0];return ve.x=ve.y=0,ve.value?(ve.dx=A[0],ve.dy=A[1]):ve.dx=ve.dy=0,O&&h.revalue(ve),X([ve],ve.dx*ve.dy/ve.value),(O?K:Z)(ve),D&&(O=fe),fe}return we.size=function(ee){return arguments.length?(A=ee,we):A},we.padding=function(ee){if(!arguments.length)return S;function fe(Te){var de=ee.call(we,Te,Te.depth);return de==null?e5(Te):uS(Te,typeof de=="number"?[de,de,de,de]:de)}function ve(Te){return uS(Te,ee)}var _e;return L=(S=ee)==null?e5:(_e=typeof ee)=="function"?fe:(_e==="number"&&(ee=[ee,ee,ee,ee]),ve),we},we.round=function(ee){return arguments.length?(g=ee?Math.round:Number,we):g!=Number},we.sticky=function(ee){return arguments.length?(D=ee,O=null,we):D},we.ratio=function(ee){return arguments.length?(U=ee,we):U},we.mode=function(ee){return arguments.length?(F=ee+"",we):F},Wv(we,h)};function e5(h){return{x:h.x,y:h.y,dx:h.dx,dy:h.dy}}function uS(h,g){var A=h.x+g[3],S=h.y+g[0],L=h.dx-g[1]-g[3],D=h.dy-g[0]-g[2];return L<0&&(A+=L/2,L=0),D<0&&(S+=D/2,D=0),{x:A,y:S,dx:L,dy:D}}e.random={normal:function(h,g){var A=arguments.length;return A<2&&(g=1),A<1&&(h=0),function(){var S,L,D;do S=Math.random()*2-1,L=Math.random()*2-1,D=S*S+L*L;while(!D||D>1);return h+g*S*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,A=0;A<h;A++)g+=Math.random();return g}}},e.scale={};function A1(h){var g=h[0],A=h[h.length-1];return g<A?[g,A]:[A,g]}function M1(h){return h.rangeExtent?h.rangeExtent():A1(h.range())}function gce(h,g,A,S){var L=A(h[0],h[1]),D=S(g[0],g[1]);return function(O){return D(L(O))}}function r5(h,g){var A=0,S=h.length-1,L=h[A],D=h[S],O;return D<L&&(O=A,A=S,S=O,O=L,L=D,D=O),h[A]=g.floor(L),h[S]=g.ceil(D),h}function fS(h){return h?{floor:function(g){return Math.floor(g/h)*h},ceil:function(g){return Math.ceil(g/h)*h}}:bce}var bce={floor:N,ceil:N};function xce(h,g,A,S){var L=[],D=[],O=0,F=Math.min(h.length,g.length)-1;for(h[F]<h[0]&&(h=h.slice().reverse(),g=g.slice().reverse());++O<=F;)L.push(A(h[O-1],h[O])),D.push(S(g[O-1],g[O]));return function(U){var X=e.bisect(h,U,1,F)-1;return D[X](L[X](U))}}e.scale.linear=function(){return cS([0,1],[0,1],Du,!1)};function cS(h,g,A,S){var L,D;function O(){var U=Math.min(h.length,g.length)>2?xce:gce,X=S?Ofe:Bfe;return L=U(h,g,X,A),D=U(g,h,X,Du),F}function F(U){return L(U)}return F.invert=function(U){return D(U)},F.domain=function(U){return arguments.length?(h=U.map(Number),O()):h},F.range=function(U){return arguments.length?(g=U,O()):g},F.rangeRound=function(U){return F.range(U).interpolate(jk)},F.clamp=function(U){return arguments.length?(S=U,O()):S},F.interpolate=function(U){return arguments.length?(A=U,O()):A},F.ticks=function(U){return a5(h,U)},F.tickFormat=function(U,X){return d3_scale_linearTickFormat(h,U,X)},F.nice=function(U){return hS(h,U),O()},F.copy=function(){return cS(h,g,A,S)},O()}function vS(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function hS(h,g){return r5(h,fS(t5(h,g)[2])),r5(h,fS(t5(h,g)[2])),h}function t5(h,g){g==null&&(g=10);var A=A1(h),S=A[1]-A[0],L=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),D=g/S*L;return D<=.15?L*=10:D<=.35?L*=5:D<=.75&&(L*=2),A[0]=Math.ceil(A[0]/L)*L,A[1]=Math.floor(A[1]/L)*L+L*.5,A[2]=L,A}function a5(h,g){return e.range.apply(e,t5(h,g))}var _ce={s:1,g:1,p:1,r:1,e:1};function dS(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function bje(h,g){var A=dS(g[2]);return h in _ce?Math.abs(A-dS(Math.max(b(g[0]),b(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return pS(e.scale.linear().domain([0,1]),10,!0,[1,10])};function pS(h,g,A,S){function L(F){return(A?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function D(F){return A?Math.pow(g,F):-Math.pow(g,-F)}function O(F){return h(L(F))}return O.invert=function(F){return D(h.invert(F))},O.domain=function(F){return arguments.length?(A=F[0]>=0,h.domain((S=F.map(Number)).map(L)),O):S},O.base=function(F){return arguments.length?(g=+F,h.domain(S.map(L)),O):g},O.nice=function(){var F=r5(S.map(L),A?Math:wce);return h.domain(F),S=F.map(D),O},O.ticks=function(){var F=A1(S),U=[],X=F[0],Z=F[1],K=Math.floor(L(X)),Q=Math.ceil(L(Z)),pe=g%1?2:g;if(isFinite(Q-K)){if(A){for(;K<Q;K++)for(var we=1;we<pe;we++)U.push(D(K)*we);U.push(D(K))}else for(U.push(D(K));K++<Q;)for(var we=pe-1;we>0;we--)U.push(D(K)*we);for(K=0;U[K]<X;K++);for(Q=U.length;U[Q-1]>Z;Q--);U=U.slice(K,Q)}return U},O.copy=function(){return pS(h.copy(),g,A,S)},vS(O,h)}var wce={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return mS(e.scale.linear(),1,[0,1])};function mS(h,g,A){var S=k1(g),L=k1(1/g);function D(O){return h(S(O))}return D.invert=function(O){return L(h.invert(O))},D.domain=function(O){return arguments.length?(h.domain((A=O.map(Number)).map(S)),D):A},D.ticks=function(O){return a5(A,O)},D.tickFormat=function(O,F){return d3_scale_linearTickFormat(A,O,F)},D.nice=function(O){return D.domain(hS(A,O))},D.exponent=function(O){return arguments.length?(S=k1(g=O),L=k1(1/g),h.domain(A.map(S)),D):g},D.copy=function(){return mS(h.copy(),g,A)},vS(D,h)}function k1(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return yS([],{t:"range",a:[[]]})};function yS(h,g){var A,S,L;function D(F){return S[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%S.length]}function O(F,U){return e.range(h.length).map(function(X){return F+U*X})}return D.domain=function(F){if(!arguments.length)return h;h=[],A=new x;for(var U=-1,X=F.length,Z;++U<X;)A.has(Z=F[U])||A.set(Z,h.push(Z));return D[g.t].apply(D,g.a)},D.range=function(F){return arguments.length?(S=F,L=0,g={t:"range",a:arguments},D):S},D.rangePoints=function(F,U){arguments.length<2&&(U=0);var X=F[0],Z=F[1],K=h.length<2?(X=(X+Z)/2,0):(Z-X)/(h.length-1+U);return S=O(X+K*U/2,K),L=0,g={t:"rangePoints",a:arguments},D},D.rangeRoundPoints=function(F,U){arguments.length<2&&(U=0);var X=F[0],Z=F[1],K=h.length<2?(X=Z=Math.round((X+Z)/2),0):(Z-X)/(h.length-1+U)|0;return S=O(X+Math.round(K*U/2+(Z-X-(h.length-1+U)*K)/2),K),L=0,g={t:"rangeRoundPoints",a:arguments},D},D.rangeBands=function(F,U,X){arguments.length<2&&(U=0),arguments.length<3&&(X=U);var Z=F[1]<F[0],K=F[Z-0],Q=F[1-Z],pe=(Q-K)/(h.length-U+2*X);return S=O(K+pe*X,pe),Z&&S.reverse(),L=pe*(1-U),g={t:"rangeBands",a:arguments},D},D.rangeRoundBands=function(F,U,X){arguments.length<2&&(U=0),arguments.length<3&&(X=U);var Z=F[1]<F[0],K=F[Z-0],Q=F[1-Z],pe=Math.floor((Q-K)/(h.length-U+2*X));return S=O(K+Math.round((Q-K-(h.length-U)*pe)/2),pe),Z&&S.reverse(),L=Math.round(pe*(1-U)),g={t:"rangeRoundBands",a:arguments},D},D.rangeBand=function(){return L},D.rangeExtent=function(){return A1(g.a[0])},D.copy=function(){return yS(h,g)},D.domain(h)}e.scale.category10=function(){return e.scale.ordinal().range(Tce)},e.scale.category20=function(){return e.scale.ordinal().range(Ace)},e.scale.category20b=function(){return e.scale.ordinal().range(Mce)},e.scale.category20c=function(){return e.scale.ordinal().range(kce)};var Tce=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(gs),Ace=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(gs),Mce=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(gs),kce=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(gs);e.scale.quantile=function(){return gS([],[])};function gS(h,g){var A;function S(){var D=0,O=g.length;for(A=[];++D<O;)A[D-1]=e.quantile(h,D/O);return L}function L(D){if(!isNaN(D=+D))return g[e.bisect(A,D)]}return L.domain=function(D){return arguments.length?(h=D.map(v).filter(d).sort(c),S()):h},L.range=function(D){return arguments.length?(g=D,S()):g},L.quantiles=function(){return A},L.invertExtent=function(D){return D=g.indexOf(D),D<0?[NaN,NaN]:[D>0?A[D-1]:h[0],D<A.length?A[D]:h[h.length-1]]},L.copy=function(){return gS(h,g)},S()}e.scale.quantize=function(){return bS(0,1,[0,1])};function bS(h,g,A){var S,L;function D(F){return A[Math.max(0,Math.min(L,Math.floor(S*(F-h))))]}function O(){return S=A.length/(g-h),L=A.length-1,D}return D.domain=function(F){return arguments.length?(h=+F[0],g=+F[F.length-1],O()):[h,g]},D.range=function(F){return arguments.length?(A=F,O()):A},D.invertExtent=function(F){return F=A.indexOf(F),F=F<0?NaN:F/S+h,[F,F+1/S]},D.copy=function(){return bS(h,g,A)},O()}e.scale.threshold=function(){return xS([.5],[0,1])};function xS(h,g){function A(S){if(S<=S)return g[e.bisect(h,S)]}return A.domain=function(S){return arguments.length?(h=S,A):h},A.range=function(S){return arguments.length?(g=S,A):g},A.invertExtent=function(S){return S=g.indexOf(S),[h[S-1],h[S]]},A.copy=function(){return xS(h,g)},A}e.scale.identity=function(){return _S([0,1])};function _S(h){function g(A){return+A}return g.invert=g,g.domain=g.range=function(A){return arguments.length?(h=A.map(g),g):h},g.ticks=function(A){return a5(h,A)},g.tickFormat=function(A,S){return d3_scale_linearTickFormat(h,A,S)},g.copy=function(){return _S(h)},g}e.svg={};function Sce(){return 0}e.svg.arc=function(){var h=qce,g=Lce,A=Sce,S=S1,L=wS,D=TS,O=Cce;function F(){var X=Math.max(0,+h.apply(this,arguments)),Z=Math.max(0,+g.apply(this,arguments)),K=L.apply(this,arguments)-ie,Q=D.apply(this,arguments)-ie,pe=Math.abs(Q-K),we=K>Q?0:1;if(Z<X&&(ee=Z,Z=X,X=ee),pe>=mr)return U(Z,we)+(X?U(X,1-we):"")+"Z";var ee,fe,ve,_e,Te=0,de=0,Ve,lr,hr,fr,br,xr,Nr,Tr,Er=[];if((_e=(+O.apply(this,arguments)||0)/2)&&(ve=S===S1?Math.sqrt(X*X+Z*Z):+S.apply(this,arguments),we||(de*=-1),Z&&(de=qt(ve/Z*Math.sin(_e))),X&&(Te=qt(ve/X*Math.sin(_e)))),Z){Ve=Z*Math.cos(K+de),lr=Z*Math.sin(K+de),hr=Z*Math.cos(Q-de),fr=Z*Math.sin(Q-de);var ct=Math.abs(Q-K-2*de)<=cr?0:1;if(de&&q1(Ve,lr,hr,fr)===we^ct){var ya=(K+Q)/2;Ve=Z*Math.cos(ya),lr=Z*Math.sin(ya),hr=fr=null}}else Ve=lr=0;if(X){br=X*Math.cos(Q-Te),xr=X*Math.sin(Q-Te),Nr=X*Math.cos(K+Te),Tr=X*Math.sin(K+Te);var xt=Math.abs(K-Q+2*Te)<=cr?0:1;if(Te&&q1(br,xr,Nr,Tr)===1-we^xt){var ir=(K+Q)/2;br=X*Math.cos(ir),xr=X*Math.sin(ir),Nr=Tr=null}}else br=xr=0;if(pe>ze&&(ee=Math.min(Math.abs(Z-X)/2,+A.apply(this,arguments)))>.001){fe=X<Z^we?0:1;var Ir=ee,Or=ee;if(pe<cr){var vt=Nr==null?[br,xr]:hr==null?[Ve,lr]:Hx([Ve,lr],[Nr,Tr],[hr,fr],[br,xr]),ua=Ve-vt[0],Na=lr-vt[1],nn=hr-vt[0],Mn=fr-vt[1],Un=1/Math.sin(Math.acos((ua*nn+Na*Mn)/(Math.sqrt(ua*ua+Na*Na)*Math.sqrt(nn*nn+Mn*Mn)))/2),kn=Math.sqrt(vt[0]*vt[0]+vt[1]*vt[1]);Or=Math.min(ee,(X-kn)/(Un-1)),Ir=Math.min(ee,(Z-kn)/(Un+1))}if(hr!=null){var Jn=L1(Nr==null?[br,xr]:[Nr,Tr],[Ve,lr],Z,Ir,we),mn=L1([hr,fr],[br,xr],Z,Ir,we);ee===Ir?Er.push("M",Jn[0],"A",Ir,",",Ir," 0 0,",fe," ",Jn[1],"A",Z,",",Z," 0 ",1-we^q1(Jn[1][0],Jn[1][1],mn[1][0],mn[1][1]),",",we," ",mn[1],"A",Ir,",",Ir," 0 0,",fe," ",mn[0]):Er.push("M",Jn[0],"A",Ir,",",Ir," 0 1,",fe," ",mn[0])}else Er.push("M",Ve,",",lr);if(Nr!=null){var Kn=L1([Ve,lr],[Nr,Tr],X,-Or,we),Pu=L1([br,xr],hr==null?[Ve,lr]:[hr,fr],X,-Or,we);ee===Or?Er.push("L",Pu[0],"A",Or,",",Or," 0 0,",fe," ",Pu[1],"A",X,",",X," 0 ",we^q1(Pu[1][0],Pu[1][1],Kn[1][0],Kn[1][1]),",",1-we," ",Kn[1],"A",Or,",",Or," 0 0,",fe," ",Kn[0]):Er.push("L",Pu[0],"A",Or,",",Or," 0 0,",fe," ",Kn[0])}else Er.push("L",br,",",xr)}else Er.push("M",Ve,",",lr),hr!=null&&Er.push("A",Z,",",Z," 0 ",ct,",",we," ",hr,",",fr),Er.push("L",br,",",xr),Nr!=null&&Er.push("A",X,",",X," 0 ",xt,",",1-we," ",Nr,",",Tr);return Er.push("Z"),Er.join("")}function U(X,Z){return"M0,"+X+"A"+X+","+X+" 0 1,"+Z+" 0,"+-X+"A"+X+","+X+" 0 1,"+Z+" 0,"+X}return F.innerRadius=function(X){return arguments.length?(h=Mr(X),F):h},F.outerRadius=function(X){return arguments.length?(g=Mr(X),F):g},F.cornerRadius=function(X){return arguments.length?(A=Mr(X),F):A},F.padRadius=function(X){return arguments.length?(S=X==S1?S1:Mr(X),F):S},F.startAngle=function(X){return arguments.length?(L=Mr(X),F):L},F.endAngle=function(X){return arguments.length?(D=Mr(X),F):D},F.padAngle=function(X){return arguments.length?(O=Mr(X),F):O},F.centroid=function(){var X=(+h.apply(this,arguments)+ +g.apply(this,arguments))/2,Z=(+L.apply(this,arguments)+ +D.apply(this,arguments))/2-ie;return[Math.cos(Z)*X,Math.sin(Z)*X]},F};var S1="auto";function qce(h){return h.innerRadius}function Lce(h){return h.outerRadius}function wS(h){return h.startAngle}function TS(h){return h.endAngle}function Cce(h){return h&&h.padAngle}function q1(h,g,A,S){return(h-A)*g-(g-S)*h>0?0:1}function L1(h,g,A,S,L){var D=h[0]-g[0],O=h[1]-g[1],F=(L?S:-S)/Math.sqrt(D*D+O*O),U=F*O,X=-F*D,Z=h[0]+U,K=h[1]+X,Q=g[0]+U,pe=g[1]+X,we=(Z+Q)/2,ee=(K+pe)/2,fe=Q-Z,ve=pe-K,_e=fe*fe+ve*ve,Te=A-S,de=Z*pe-Q*K,Ve=(ve<0?-1:1)*Math.sqrt(Math.max(0,Te*Te*_e-de*de)),lr=(de*ve-fe*Ve)/_e,hr=(-de*fe-ve*Ve)/_e,fr=(de*ve+fe*Ve)/_e,br=(-de*fe+ve*Ve)/_e,xr=lr-we,Nr=hr-ee,Tr=fr-we,Er=br-ee;return xr*xr+Nr*Nr>Tr*Tr+Er*Er&&(lr=fr,hr=br),[[lr-U,hr-X],[lr*A/Te,hr*A/Te]]}function AS(){return!0}function MS(h){var g=pc,A=Hv,S=AS,L=ko,D=L.key,O=.7;function F(U){var X=[],Z=[],K=-1,Q=U.length,pe,we=Mr(g),ee=Mr(A);function fe(){X.push("M",L(h(Z),O))}for(;++K<Q;)S.call(this,pe=U[K],K)?Z.push([+we.call(this,pe,K),+ee.call(this,pe,K)]):Z.length&&(fe(),Z=[]);return Z.length&&fe(),X.length?X.join(""):null}return F.x=function(U){return arguments.length?(g=U,F):g},F.y=function(U){return arguments.length?(A=U,F):A},F.defined=function(U){return arguments.length?(S=U,F):S},F.interpolate=function(U){return arguments.length?(typeof U=="function"?D=L=U:D=(L=n5.get(U)||ko).key,F):D},F.tension=function(U){return arguments.length?(O=U,F):O},F}e.svg.line=function(){return MS(N)};var n5=e.map({linear:ko,"linear-closed":kS,step:Dce,"step-before":i5,"step-after":o5,basis:SS,"basis-open":Fce,"basis-closed":zce,bundle:Nce,cardinal:Rce,"cardinal-open":Ece,"cardinal-closed":Pce,monotone:Oce});n5.forEach(function(h,g){g.key=h,g.closed=/-closed$/.test(h)});function ko(h){return h.length>1?h.join("L"):h+"Z"}function kS(h){return h.join("L")+"Z"}function Dce(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g<A;)L.push("H",(S[0]+(S=h[g])[0])/2,"V",S[1]);return A>1&&L.push("H",S[0]),L.join("")}function i5(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g<A;)L.push("V",(S=h[g])[1],"H",S[0]);return L.join("")}function o5(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g<A;)L.push("H",(S=h[g])[0],"V",S[1]);return L.join("")}function Ece(h,g){return h.length<4?ko(h):h[1]+C1(h.slice(1,-1),l5(h,g))}function Pce(h,g){return h.length<3?kS(h):h[0]+C1((h.push(h[0]),h),l5([h[h.length-2]].concat(h,[h[1]]),g))}function Rce(h,g){return h.length<3?ko(h):h[0]+C1(h,l5(h,g))}function C1(h,g){if(g.length<1||h.length!=g.length&&h.length!=g.length+2)return ko(h);var A=h.length!=g.length,S="",L=h[0],D=h[1],O=g[0],F=O,U=1;if(A&&(S+="Q"+(D[0]-O[0]*2/3)+","+(D[1]-O[1]*2/3)+","+D[0]+","+D[1],L=h[1],U=2),g.length>1){F=g[1],D=h[U],U++,S+="C"+(L[0]+O[0])+","+(L[1]+O[1])+","+(D[0]-F[0])+","+(D[1]-F[1])+","+D[0]+","+D[1];for(var X=2;X<g.length;X++,U++)D=h[U],F=g[X],S+="S"+(D[0]-F[0])+","+(D[1]-F[1])+","+D[0]+","+D[1]}if(A){var Z=h[U];S+="Q"+(D[0]+F[0]*2/3)+","+(D[1]+F[1]*2/3)+","+Z[0]+","+Z[1]}return S}function l5(h,g){for(var A=[],S=(1-g)/2,L,D=h[0],O=h[1],F=1,U=h.length;++F<U;)L=D,D=O,O=h[F],A.push([S*(O[0]-L[0]),S*(O[1]-L[1])]);return A}function SS(h){if(h.length<3)return ko(h);var g=1,A=h.length,S=h[0],L=S[0],D=S[1],O=[L,L,L,(S=h[1])[0]],F=[D,D,D,S[1]],U=[L,",",D,"L",Ii(xs,O),",",Ii(xs,F)];for(h.push(h[A-1]);++g<=A;)S=h[g],O.shift(),O.push(S[0]),F.shift(),F.push(S[1]),s5(U,O,F);return h.pop(),U.push("L",S),U.join("")}function Fce(h){if(h.length<4)return ko(h);for(var g=[],A=-1,S=h.length,L,D=[0],O=[0];++A<3;)L=h[A],D.push(L[0]),O.push(L[1]);for(g.push(Ii(xs,D)+","+Ii(xs,O)),--A;++A<S;)L=h[A],D.shift(),D.push(L[0]),O.shift(),O.push(L[1]),s5(g,D,O);return g.join("")}function zce(h){for(var g,A=-1,S=h.length,L=S+4,D,O=[],F=[];++A<4;)D=h[A%S],O.push(D[0]),F.push(D[1]);for(g=[Ii(xs,O),",",Ii(xs,F)],--A;++A<L;)D=h[A%S],O.shift(),O.push(D[0]),F.shift(),F.push(D[1]),s5(g,O,F);return g.join("")}function Nce(h,g){var A=h.length-1;if(A)for(var S=h[0][0],L=h[0][1],D=h[A][0]-S,O=h[A][1]-L,F=-1,U,X;++F<=A;)U=h[F],X=F/A,U[0]=g*U[0]+(1-g)*(S+X*D),U[1]=g*U[1]+(1-g)*(L+X*O);return SS(h)}function Ii(h,g){return h[0]*g[0]+h[1]*g[1]+h[2]*g[2]+h[3]*g[3]}var qS=[0,2/3,1/3,0],LS=[0,1/3,2/3,0],xs=[0,1/6,2/3,1/6];function s5(h,g,A){h.push("C",Ii(qS,g),",",Ii(qS,A),",",Ii(LS,g),",",Ii(LS,A),",",Ii(xs,g),",",Ii(xs,A))}function u5(h,g){return(g[1]-h[1])/(g[0]-h[0])}function Ice(h){for(var g=0,A=h.length-1,S=[],L=h[0],D=h[1],O=S[0]=u5(L,D);++g<A;)S[g]=(O+(O=u5(L=D,D=h[g+1])))/2;return S[g]=O,S}function Bce(h){for(var g=[],A,S,L,D,O=Ice(h),F=-1,U=h.length-1;++F<U;)A=u5(h[F],h[F+1]),b(A)<ze?O[F]=O[F+1]=0:(S=O[F]/A,L=O[F+1]/A,D=S*S+L*L,D>9&&(D=A*3/Math.sqrt(D),O[F]=D*S,O[F+1]=D*L));for(F=-1;++F<=U;)D=(h[Math.min(U,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+O[F]*O[F])),g.push([D||0,O[F]*D||0]);return g}function Oce(h){return h.length<3?ko(h):h[0]+C1(h,Bce(h))}e.svg.line.radial=function(){var h=MS(CS);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function CS(h){for(var g,A=-1,S=h.length,L,D;++A<S;)g=h[A],L=g[0],D=g[1]-ie,g[0]=L*Math.cos(D),g[1]=L*Math.sin(D);return h}function DS(h){var g=pc,A=pc,S=0,L=Hv,D=AS,O=ko,F=O.key,U=O,X="L",Z=.7;function K(Q){var pe=[],we=[],ee=[],fe=-1,ve=Q.length,_e,Te=Mr(g),de=Mr(S),Ve=g===A?function(){return hr}:Mr(A),lr=S===L?function(){return fr}:Mr(L),hr,fr;function br(){pe.push("M",O(h(ee),Z),X,U(h(we.reverse()),Z),"Z")}for(;++fe<ve;)D.call(this,_e=Q[fe],fe)?(we.push([hr=+Te.call(this,_e,fe),fr=+de.call(this,_e,fe)]),ee.push([+Ve.call(this,_e,fe),+lr.call(this,_e,fe)])):we.length&&(br(),we=[],ee=[]);return we.length&&br(),pe.length?pe.join(""):null}return K.x=function(Q){return arguments.length?(g=A=Q,K):A},K.x0=function(Q){return arguments.length?(g=Q,K):g},K.x1=function(Q){return arguments.length?(A=Q,K):A},K.y=function(Q){return arguments.length?(S=L=Q,K):L},K.y0=function(Q){return arguments.length?(S=Q,K):S},K.y1=function(Q){return arguments.length?(L=Q,K):L},K.defined=function(Q){return arguments.length?(D=Q,K):D},K.interpolate=function(Q){return arguments.length?(typeof Q=="function"?F=O=Q:F=(O=n5.get(Q)||ko).key,U=O.reverse||O,X=O.closed?"M":"L",K):F},K.tension=function(Q){return arguments.length?(Z=Q,K):Z},K}i5.reverse=o5,o5.reverse=i5,e.svg.area=function(){return DS(N)},e.svg.area.radial=function(){var h=DS(CS);return h.radius=h.x,delete h.x,h.innerRadius=h.x0,delete h.x0,h.outerRadius=h.x1,delete h.x1,h.angle=h.y,delete h.y,h.startAngle=h.y0,delete h.y0,h.endAngle=h.y1,delete h.y1,h};function ES(h){return h.source}function PS(h){return h.target}e.svg.chord=function(){var h=ES,g=PS,A=Hce,S=wS,L=TS;function D(Z,K){var Q=O(this,h,Z,K),pe=O(this,g,Z,K);return"M"+Q.p0+U(Q.r,Q.p1,Q.a1-Q.a0)+(F(Q,pe)?X(Q.r,Q.p1,Q.r,Q.p0):X(Q.r,Q.p1,pe.r,pe.p0)+U(pe.r,pe.p1,pe.a1-pe.a0)+X(pe.r,pe.p1,Q.r,Q.p0))+"Z"}function O(Z,K,Q,pe){var we=K.call(Z,Q,pe),ee=A.call(Z,we,pe),fe=S.call(Z,we,pe)-ie,ve=L.call(Z,we,pe)-ie;return{r:ee,a0:fe,a1:ve,p0:[ee*Math.cos(fe),ee*Math.sin(fe)],p1:[ee*Math.cos(ve),ee*Math.sin(ve)]}}function F(Z,K){return Z.a0==K.a0&&Z.a1==K.a1}function U(Z,K,Q){return"A"+Z+","+Z+" 0 "+ +(Q>cr)+",1 "+K}function X(Z,K,Q,pe){return"Q 0,0 "+pe}return D.radius=function(Z){return arguments.length?(A=Mr(Z),D):A},D.source=function(Z){return arguments.length?(h=Mr(Z),D):h},D.target=function(Z){return arguments.length?(g=Mr(Z),D):g},D.startAngle=function(Z){return arguments.length?(S=Mr(Z),D):S},D.endAngle=function(Z){return arguments.length?(L=Mr(Z),D):L},D};function Hce(h){return h.radius}e.svg.diagonal=function(){var h=ES,g=PS,A=RS;function S(L,D){var O=h.call(this,L,D),F=g.call(this,L,D),U=(O.y+F.y)/2,X=[O,{x:O.x,y:U},{x:F.x,y:U},F];return X=X.map(A),"M"+X[0]+"C"+X[1]+" "+X[2]+" "+X[3]}return S.source=function(L){return arguments.length?(h=Mr(L),S):h},S.target=function(L){return arguments.length?(g=Mr(L),S):g},S.projection=function(L){return arguments.length?(A=L,S):A},S};function RS(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=RS,A=h.projection;return h.projection=function(S){return arguments.length?A(Uce(g=S)):g},h};function Uce(h){return function(){var g=h.apply(this,arguments),A=g[0],S=g[1]-ie;return[A*Math.cos(S),A*Math.sin(S)]}}e.svg.symbol=function(){var h=Yce,g=Gce;function A(S,L){return(zS.get(h.call(this,S,L))||FS)(g.call(this,S,L))}return A.type=function(S){return arguments.length?(h=Mr(S),A):h},A.size=function(S){return arguments.length?(g=Mr(S),A):g},A};function Gce(){return 64}function Yce(){return"circle"}function FS(h){var g=Math.sqrt(h/cr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var zS=e.map({circle:FS,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*NS)),A=g*NS;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/D1),A=g*D1/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/D1),A=g*D1/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=zS.keys();var D1=Math.sqrt(3),NS=Math.tan(30*ye);oe.transition=function(h){for(var g=Eu||++BS,A=c5(h),S=[],L,D,O=P1||{time:Date.now(),ease:wfe,delay:0,duration:250},F=-1,U=this.length;++F<U;){S.push(L=[]);for(var X=this[F],Z=-1,K=X.length;++Z<K;)(D=X[Z])&&R1(D,Z,A,g,O),L.push(D)}return Zv(S,A,g)},oe.interrupt=function(h){return this.each(h==null?E1:IS(c5(h)))};var E1=IS(c5());function IS(h){return function(){var g,A,S;(g=this[h])&&(S=g[A=g.active])&&(S.timer.c=null,S.timer.t=NaN,--g.count?delete g[A]:delete this[h],g.active+=.5,S.event&&S.event.interrupt.call(this,this.__data__,S.index))}}function Zv(h,g,A){return $(h,za),h.namespace=g,h.id=A,h}var za=[],BS=0,Eu,P1;za.call=oe.call,za.empty=oe.empty,za.node=oe.node,za.size=oe.size,e.transition=function(h,g){return h&&h.transition?Eu?h.transition(g):h:e.selection().transition(h)},e.transition.prototype=za,za.select=function(h){var g=this.id,A=this.namespace,S=[],L,D,O;h=Ae(h);for(var F=-1,U=this.length;++F<U;){S.push(L=[]);for(var X=this[F],Z=-1,K=X.length;++Z<K;)(O=X[Z])&&(D=h.call(O,O.__data__,Z,F))?("__data__"in O&&(D.__data__=O.__data__),R1(D,Z,A,g,O[A][g]),L.push(D)):L.push(null)}return Zv(S,A,g)},za.selectAll=function(h){var g=this.id,A=this.namespace,S=[],L,D,O,F,U;h=Pe(h);for(var X=-1,Z=this.length;++X<Z;)for(var K=this[X],Q=-1,pe=K.length;++Q<pe;)if(O=K[Q]){U=O[A][g],D=h.call(O,O.__data__,Q,X),S.push(L=[]);for(var we=-1,ee=D.length;++we<ee;)(F=D[we])&&R1(F,we,A,g,U),L.push(F)}return Zv(S,A,g)},za.filter=function(h){var g=[],A,S,L;typeof h!="function"&&(h=ae(h));for(var D=0,O=this.length;D<O;D++){g.push(A=[]);for(var S=this[D],F=0,U=S.length;F<U;F++)(L=S[F])&&h.call(L,L.__data__,F,D)&&A.push(L)}return Zv(g,this.namespace,this.id)},za.tween=function(h,g){var A=this.id,S=this.namespace;return arguments.length<2?this.node()[S][A].tween.get(h):Ge(this,g==null?function(L){L[S][A].tween.remove(h)}:function(L){L[S][A].tween.set(h,g)})};function f5(h,g,A,S){var L=h.id,D=h.namespace;return Ge(h,typeof A=="function"?function(O,F,U){O[D][L].tween.set(g,S(A.call(O,O.__data__,F,U)))}:(A=S(A),function(O){O[D][L].tween.set(g,A)}))}za.attr=function(h,g){if(arguments.length<2){for(g in h)this.attr(g,h[g]);return this}var A=h=="transform"?$k:Du,S=e.ns.qualify(h);function L(){this.removeAttribute(S)}function D(){this.removeAttributeNS(S.space,S.local)}function O(U){return U==null?L:(U+="",function(){var X=this.getAttribute(S),Z;return X!==U&&(Z=A(X,U),function(K){this.setAttribute(S,Z(K))})})}function F(U){return U==null?D:(U+="",function(){var X=this.getAttributeNS(S.space,S.local),Z;return X!==U&&(Z=A(X,U),function(K){this.setAttributeNS(S.space,S.local,Z(K))})})}return f5(this,"attr."+h,g,S.local?F:O)},za.attrTween=function(h,g){var A=e.ns.qualify(h);function S(D,O){var F=g.call(this,D,O,this.getAttribute(A));return F&&function(U){this.setAttribute(A,F(U))}}function L(D,O){var F=g.call(this,D,O,this.getAttributeNS(A.space,A.local));return F&&function(U){this.setAttributeNS(A.space,A.local,F(U))}}return this.tween("attr."+h,A.local?L:S)},za.style=function(h,g,A){var S=arguments.length;if(S<3){if(typeof h!="string"){S<2&&(g="");for(A in h)this.style(A,h[A],g);return this}A=""}function L(){this.style.removeProperty(h)}function D(O){return O==null?L:(O+="",function(){var F=i(this).getComputedStyle(this,null).getPropertyValue(h),U;return F!==O&&(U=Du(F,O),function(X){this.style.setProperty(h,U(X),A)})})}return f5(this,"style."+h,g,D)},za.styleTween=function(h,g,A){arguments.length<3&&(A="");function S(L,D){var O=g.call(this,L,D,i(this).getComputedStyle(this,null).getPropertyValue(h));return O&&function(F){this.style.setProperty(h,O(F),A)}}return this.tween("style."+h,S)},za.text=function(h){return f5(this,"text",h,Vce)};function Vce(h){return h==null&&(h=""),function(){this.textContent=h}}za.remove=function(){var h=this.namespace;return this.each("end.transition",function(){var g;this[h].count<2&&(g=this.parentNode)&&g.removeChild(this)})},za.ease=function(h){var g=this.id,A=this.namespace;return arguments.length<1?this.node()[A][g].ease:(typeof h!="function"&&(h=e.ease.apply(e,arguments)),Ge(this,function(S){S[A][g].ease=h}))},za.delay=function(h){var g=this.id,A=this.namespace;return arguments.length<1?this.node()[A][g].delay:Ge(this,typeof h=="function"?function(S,L,D){S[A][g].delay=+h.call(S,S.__data__,L,D)}:(h=+h,function(S){S[A][g].delay=h}))},za.duration=function(h){var g=this.id,A=this.namespace;return arguments.length<1?this.node()[A][g].duration:Ge(this,typeof h=="function"?function(S,L,D){S[A][g].duration=Math.max(1,h.call(S,S.__data__,L,D))}:(h=Math.max(1,h),function(S){S[A][g].duration=h}))},za.each=function(h,g){var A=this.id,S=this.namespace;if(arguments.length<2){var L=P1,D=Eu;try{Eu=A,Ge(this,function(O,F,U){P1=O[S][A],h.call(O,O.__data__,F,U)})}finally{P1=L,Eu=D}}else Ge(this,function(O){var F=O[S][A];(F.event||(F.event=e.dispatch("start","end","interrupt"))).on(h,g)});return this},za.transition=function(){for(var h=this.id,g=++BS,A=this.namespace,S=[],L,D,O,F,U=0,X=this.length;U<X;U++){S.push(L=[]);for(var D=this[U],Z=0,K=D.length;Z<K;Z++)(O=D[Z])&&(F=O[A][h],R1(O,Z,A,g,{time:F.time,ease:F.ease,delay:F.delay+F.duration,duration:F.duration})),L.push(O)}return Zv(S,A,g)};function c5(h){return h==null?"__transition__":"__transition_"+h+"__"}function R1(h,g,A,S,L){var D=h[A]||(h[A]={active:0,count:0}),O=D[S],F,U,X,Z,K;function Q(ee){var fe=O.delay;if(U.t=fe+F,fe<=ee)return pe(ee-fe);U.c=pe}function pe(ee){var fe=D.active,ve=D[fe];ve&&(ve.timer.c=null,ve.timer.t=NaN,--D.count,delete D[fe],ve.event&&ve.event.interrupt.call(h,h.__data__,ve.index));for(var _e in D)if(+_e<S){var Te=D[_e];Te.timer.c=null,Te.timer.t=NaN,--D.count,delete D[_e]}U.c=we,y1(function(){return U.c&&we(ee||1)&&(U.c=null,U.t=NaN),1},0,F),D.active=S,O.event&&O.event.start.call(h,h.__data__,g),K=[],O.tween.forEach(function(de,Ve){(Ve=Ve.call(h,h.__data__,g))&&K.push(Ve)}),Z=O.ease,X=O.duration}function we(ee){for(var fe=ee/X,ve=Z(fe),_e=K.length;_e>0;)K[--_e].call(h,ve);if(fe>=1)return O.event&&O.event.end.call(h,h.__data__,g),--D.count?delete D[S]:delete h[A],1}O||(F=L.time,U=y1(Q,0,F),O=D[S]={tween:new x,time:F,timer:U,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++D.count)}e.svg.axis=function(){var h=e.scale.linear(),g=OS,A=6,S=6,L=3,D=[10],O=null,F;function U(X){X.each(function(){var Z=e.select(this),K=this.__chart__||h,Q=this.__chart__=h.copy(),pe=O==null?Q.ticks?Q.ticks.apply(Q,D):Q.domain():O,we=F==null?Q.tickFormat?Q.tickFormat.apply(Q,D):N:F,ee=Z.selectAll(".tick").data(pe,Q),fe=ee.enter().insert("g",".domain").attr("class","tick").style("opacity",ze),ve=e.transition(ee.exit()).style("opacity",ze).remove(),_e=e.transition(ee.order()).style("opacity",1),Te=Math.max(A,0)+L,de,Ve=M1(Q),lr=Z.selectAll(".domain").data([0]),hr=(lr.enter().append("path").attr("class","domain"),e.transition(lr));fe.append("line"),fe.append("text");var fr=fe.select("line"),br=_e.select("line"),xr=ee.select("text").text(we),Nr=fe.select("text"),Tr=_e.select("text"),Er=g==="top"||g==="left"?-1:1,ct,ya,xt,ir;if(g==="bottom"||g==="top"?(de=Wce,ct="x",xt="y",ya="x2",ir="y2",xr.attr("dy",Er<0?"0em":".71em").style("text-anchor","middle"),hr.attr("d","M"+Ve[0]+","+Er*S+"V0H"+Ve[1]+"V"+Er*S)):(de=Xce,ct="y",xt="x",ya="y2",ir="x2",xr.attr("dy",".32em").style("text-anchor",Er<0?"end":"start"),hr.attr("d","M"+Er*S+","+Ve[0]+"H0V"+Ve[1]+"H"+Er*S)),fr.attr(ir,Er*A),Nr.attr(xt,Er*Te),br.attr(ya,0).attr(ir,Er*A),Tr.attr(ct,0).attr(xt,Er*Te),Q.rangeBand){var Ir=Q,Or=Ir.rangeBand()/2;K=Q=function(vt){return Ir(vt)+Or}}else K.rangeBand?K=Q:ve.call(de,Q,K);fe.call(de,K,Q),_e.call(de,Q,Q)})}return U.scale=function(X){return arguments.length?(h=X,U):h},U.orient=function(X){return arguments.length?(g=X in jce?X+"":OS,U):g},U.ticks=function(){return arguments.length?(D=t(arguments),U):D},U.tickValues=function(X){return arguments.length?(O=X,U):O},U.tickFormat=function(X){return arguments.length?(F=X,U):F},U.tickSize=function(X){var Z=arguments.length;return Z?(A=+X,S=+arguments[Z-1],U):A},U.innerTickSize=function(X){return arguments.length?(A=+X,U):A},U.outerTickSize=function(X){return arguments.length?(S=+X,U):S},U.tickPadding=function(X){return arguments.length?(L=+X,U):L},U.tickSubdivide=function(){return arguments.length&&U},U};var OS="bottom",jce={top:1,right:1,bottom:1,left:1};function Wce(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate("+(isFinite(L)?L:A(S))+",0)"})}function Xce(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate(0,"+(isFinite(L)?L:A(S))+")"})}e.svg.brush=function(){var h=le(Z,"brushstart","brush","brushend"),g=null,A=null,S=[0,0],L=[0,0],D,O,F=!0,U=!0,X=v5[0];function Z(ee){ee.each(function(){var fe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",we).on("touchstart.brush",we),ve=fe.selectAll(".background").data([0]);ve.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),fe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var _e=fe.selectAll(".resize").data(X,N);_e.exit().remove(),_e.enter().append("g").attr("class",function(lr){return"resize "+lr}).style("cursor",function(lr){return Zce[lr]}).append("rect").attr("x",function(lr){return/[ew]$/.test(lr)?-3:null}).attr("y",function(lr){return/^[ns]/.test(lr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),_e.style("display",Z.empty()?"none":null);var Te=e.transition(fe),de=e.transition(ve),Ve;g&&(Ve=M1(g),de.attr("x",Ve[0]).attr("width",Ve[1]-Ve[0]),Q(Te)),A&&(Ve=M1(A),de.attr("y",Ve[0]).attr("height",Ve[1]-Ve[0]),pe(Te)),K(Te)})}Z.event=function(ee){ee.each(function(){var fe=h.of(this,arguments),ve={x:S,y:L,i:D,j:O},_e=this.__chart__||ve;this.__chart__=ve,Eu?e.select(this).transition().each("start.brush",function(){D=_e.i,O=_e.j,S=_e.x,L=_e.y,fe({type:"brushstart"})}).tween("brush:brush",function(){var Te=T1(S,ve.x),de=T1(L,ve.y);return D=O=null,function(Ve){S=ve.x=Te(Ve),L=ve.y=de(Ve),fe({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=ve.i,O=ve.j,fe({type:"brush",mode:"resize"}),fe({type:"brushend"})}):(fe({type:"brushstart"}),fe({type:"brush",mode:"resize"}),fe({type:"brushend"}))})};function K(ee){ee.selectAll(".resize").attr("transform",function(fe){return"translate("+S[+/e$/.test(fe)]+","+L[+/^s/.test(fe)]+")"})}function Q(ee){ee.select(".extent").attr("x",S[0]),ee.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function pe(ee){ee.select(".extent").attr("y",L[0]),ee.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function we(){var ee=this,fe=e.select(e.event.target),ve=h.of(ee,arguments),_e=e.select(ee),Te=fe.datum(),de=!/^(n|s)$/.test(Te)&&g,Ve=!/^(e|w)$/.test(Te)&&A,lr=fe.classed("extent"),hr=_r(ee),fr,br=e.mouse(ee),xr,Nr=e.select(i(ee)).on("keydown.brush",ct).on("keyup.brush",ya);if(e.event.changedTouches?Nr.on("touchmove.brush",xt).on("touchend.brush",Ir):Nr.on("mousemove.brush",xt).on("mouseup.brush",Ir),_e.interrupt().selectAll("*").interrupt(),lr)br[0]=S[0]-br[0],br[1]=L[0]-br[1];else if(Te){var Tr=+/w$/.test(Te),Er=+/^n/.test(Te);xr=[S[1-Tr]-br[0],L[1-Er]-br[1]],br[0]=S[Tr],br[1]=L[Er]}else e.event.altKey&&(fr=br.slice());_e.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",fe.style("cursor")),ve({type:"brushstart"}),xt();function ct(){e.event.keyCode==32&&(lr||(fr=null,br[0]-=S[1],br[1]-=L[1],lr=2),J())}function ya(){e.event.keyCode==32&&lr==2&&(br[0]+=S[1],br[1]+=L[1],lr=0,J())}function xt(){var Or=e.mouse(ee),vt=!1;xr&&(Or[0]+=xr[0],Or[1]+=xr[1]),lr||(e.event.altKey?(fr||(fr=[(S[0]+S[1])/2,(L[0]+L[1])/2]),br[0]=S[+(Or[0]<fr[0])],br[1]=L[+(Or[1]<fr[1])]):fr=null),de&&ir(Or,g,0)&&(Q(_e),vt=!0),Ve&&ir(Or,A,1)&&(pe(_e),vt=!0),vt&&(K(_e),ve({type:"brush",mode:lr?"move":"resize"}))}function ir(Or,vt,ua){var Na=M1(vt),nn=Na[0],Mn=Na[1],Un=br[ua],kn=ua?L:S,Jn=kn[1]-kn[0],mn,Kn;if(lr&&(nn-=Un,Mn-=Jn+Un),mn=(ua?U:F)?Math.max(nn,Math.min(Mn,Or[ua])):Or[ua],lr?Kn=(mn+=Un)+Jn:(fr&&(Un=Math.max(nn,Math.min(Mn,2*fr[ua]-mn))),Un<mn?(Kn=mn,mn=Un):Kn=Un),kn[0]!=mn||kn[1]!=Kn)return ua?O=null:D=null,kn[0]=mn,kn[1]=Kn,!0}function Ir(){xt(),_e.style("pointer-events","all").selectAll(".resize").style("display",Z.empty()?"none":null),e.select("body").style("cursor",null),Nr.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),hr(),ve({type:"brushend"})}}return Z.x=function(ee){return arguments.length?(g=ee,X=v5[!g<<1|!A],Z):g},Z.y=function(ee){return arguments.length?(A=ee,X=v5[!g<<1|!A],Z):A},Z.clamp=function(ee){return arguments.length?(g&&A?(F=!!ee[0],U=!!ee[1]):g?F=!!ee:A&&(U=!!ee),Z):g&&A?[F,U]:g?F:A?U:null},Z.extent=function(ee){var fe,ve,_e,Te,de;return arguments.length?(g&&(fe=ee[0],ve=ee[1],A&&(fe=fe[0],ve=ve[0]),D=[fe,ve],g.invert&&(fe=g(fe),ve=g(ve)),ve<fe&&(de=fe,fe=ve,ve=de),(fe!=S[0]||ve!=S[1])&&(S=[fe,ve])),A&&(_e=ee[0],Te=ee[1],g&&(_e=_e[1],Te=Te[1]),O=[_e,Te],A.invert&&(_e=A(_e),Te=A(Te)),Te<_e&&(de=_e,_e=Te,Te=de),(_e!=L[0]||Te!=L[1])&&(L=[_e,Te])),Z):(g&&(D?(fe=D[0],ve=D[1]):(fe=S[0],ve=S[1],g.invert&&(fe=g.invert(fe),ve=g.invert(ve)),ve<fe&&(de=fe,fe=ve,ve=de))),A&&(O?(_e=O[0],Te=O[1]):(_e=L[0],Te=L[1],A.invert&&(_e=A.invert(_e),Te=A.invert(Te)),Te<_e&&(de=_e,_e=Te,Te=de))),g&&A?[[fe,_e],[ve,Te]]:g?[fe,ve]:A&&[_e,Te])},Z.clear=function(){return Z.empty()||(S=[0,0],L=[0,0],D=O=null),Z},Z.empty=function(){return!!g&&S[0]==S[1]||!!A&&L[0]==L[1]},e.rebind(Z,h,"on")};var Zce={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},v5=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=yt(function(h){return h.responseText}),e.json=function(h,g){return ur(h,"application/json",$ce,g)};function $ce(h){return JSON.parse(h.responseText)}e.html=function(h,g){return ur(h,"text/html",Jce,g)};function Jce(h){var g=a.createRange();return g.selectNode(a.body),g.createContextualFragment(h.responseText)}e.xml=yt(function(h){return h.responseXML}),typeof I1=="object"&&I1.exports?I1.exports=e:this.d3=e}).apply(self)});var d5=z((B1,$S)=>{(function(e,r){typeof B1=="object"&&typeof $S!="undefined"?r(B1):(e=e||self,r(e.d3=e.d3||{}))})(B1,function(e){"use strict";var r=new Date,t=new Date;function a(ae,be,Ge,sr){function vr(ue){return ae(ue=arguments.length===0?new Date:new Date(+ue)),ue}return vr.floor=function(ue){return ae(ue=new Date(+ue)),ue},vr.ceil=function(ue){return ae(ue=new Date(ue-1)),be(ue,1),ae(ue),ue},vr.round=function(ue){var xe=vr(ue),Ie=vr.ceil(ue);return ue-xe<Ie-ue?xe:Ie},vr.offset=function(ue,xe){return be(ue=new Date(+ue),xe==null?1:Math.floor(xe)),ue},vr.range=function(ue,xe,Ie){var We=[],Oe;if(ue=vr.ceil(ue),Ie=Ie==null?1:Math.floor(Ie),!(ue<xe)||!(Ie>0))return We;do We.push(Oe=new Date(+ue)),be(ue,Ie),ae(ue);while(Oe<ue&&ue<xe);return We},vr.filter=function(ue){return a(function(xe){if(xe>=xe)for(;ae(xe),!ue(xe);)xe.setTime(xe-1)},function(xe,Ie){if(xe>=xe)if(Ie<0)for(;++Ie<=0;)for(;be(xe,-1),!ue(xe););else for(;--Ie>=0;)for(;be(xe,1),!ue(xe););})},Ge&&(vr.count=function(ue,xe){return r.setTime(+ue),t.setTime(+xe),ae(r),ae(t),Math.floor(Ge(r,t))},vr.every=function(ue){return ue=Math.floor(ue),!isFinite(ue)||!(ue>0)?null:ue>1?vr.filter(sr?function(xe){return sr(xe)%ue===0}:function(xe){return vr.count(0,xe)%ue===0}):vr}),vr}var n=a(function(){},function(ae,be){ae.setTime(+ae+be)},function(ae,be){return be-ae});n.every=function(ae){return ae=Math.floor(ae),!isFinite(ae)||!(ae>0)?null:ae>1?a(function(be){be.setTime(Math.floor(be/ae)*ae)},function(be,Ge){be.setTime(+be+Ge*ae)},function(be,Ge){return(Ge-be)/ae}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(ae){ae.setTime(ae-ae.getMilliseconds())},function(ae,be){ae.setTime(+ae+be*o)},function(ae,be){return(be-ae)/o},function(ae){return ae.getUTCSeconds()}),v=c.range,d=a(function(ae){ae.setTime(ae-ae.getMilliseconds()-ae.getSeconds()*o)},function(ae,be){ae.setTime(+ae+be*l)},function(ae,be){return(be-ae)/l},function(ae){return ae.getMinutes()}),p=d.range,m=a(function(ae){ae.setTime(ae-ae.getMilliseconds()-ae.getSeconds()*o-ae.getMinutes()*l)},function(ae,be){ae.setTime(+ae+be*s)},function(ae,be){return(be-ae)/s},function(ae){return ae.getHours()}),y=m.range,b=a(function(ae){ae.setHours(0,0,0,0)},function(ae,be){ae.setDate(ae.getDate()+be)},function(ae,be){return(be-ae-(be.getTimezoneOffset()-ae.getTimezoneOffset())*l)/u},function(ae){return ae.getDate()-1}),T=b.range;function w(ae){return a(function(be){be.setDate(be.getDate()-(be.getDay()+7-ae)%7),be.setHours(0,0,0,0)},function(be,Ge){be.setDate(be.getDate()+Ge*7)},function(be,Ge){return(Ge-be-(Ge.getTimezoneOffset()-be.getTimezoneOffset())*l)/f})}var x=w(0),_=w(1),k=w(2),M=w(3),q=w(4),C=w(5),E=w(6),P=x.range,R=_.range,B=k.range,I=M.range,N=q.range,H=C.range,G=E.range,Y=a(function(ae){ae.setDate(1),ae.setHours(0,0,0,0)},function(ae,be){ae.setMonth(ae.getMonth()+be)},function(ae,be){return be.getMonth()-ae.getMonth()+(be.getFullYear()-ae.getFullYear())*12},function(ae){return ae.getMonth()}),j=Y.range,W=a(function(ae){ae.setMonth(0,1),ae.setHours(0,0,0,0)},function(ae,be){ae.setFullYear(ae.getFullYear()+be)},function(ae,be){return be.getFullYear()-ae.getFullYear()},function(ae){return ae.getFullYear()});W.every=function(ae){return!isFinite(ae=Math.floor(ae))||!(ae>0)?null:a(function(be){be.setFullYear(Math.floor(be.getFullYear()/ae)*ae),be.setMonth(0,1),be.setHours(0,0,0,0)},function(be,Ge){be.setFullYear(be.getFullYear()+Ge*ae)})};var V=W.range,J=a(function(ae){ae.setUTCSeconds(0,0)},function(ae,be){ae.setTime(+ae+be*l)},function(ae,be){return(be-ae)/l},function(ae){return ae.getUTCMinutes()}),re=J.range,le=a(function(ae){ae.setUTCMinutes(0,0,0)},function(ae,be){ae.setTime(+ae+be*s)},function(ae,be){return(be-ae)/s},function(ae){return ae.getUTCHours()}),ne=le.range,$=a(function(ae){ae.setUTCHours(0,0,0,0)},function(ae,be){ae.setUTCDate(ae.getUTCDate()+be)},function(ae,be){return(be-ae)/u},function(ae){return ae.getUTCDate()-1}),ce=$.range;function te(ae){return a(function(be){be.setUTCDate(be.getUTCDate()-(be.getUTCDay()+7-ae)%7),be.setUTCHours(0,0,0,0)},function(be,Ge){be.setUTCDate(be.getUTCDate()+Ge*7)},function(be,Ge){return(Ge-be)/f})}var ge=te(0),se=te(1),oe=te(2),Ae=te(3),Pe=te(4),me=te(5),Ce=te(6),Me=ge.range,Le=se.range,Se=oe.range,Ee=Ae.range,qe=Pe.range,Ue=me.range,Je=Ce.range,Ke=a(function(ae){ae.setUTCDate(1),ae.setUTCHours(0,0,0,0)},function(ae,be){ae.setUTCMonth(ae.getUTCMonth()+be)},function(ae,be){return be.getUTCMonth()-ae.getUTCMonth()+(be.getUTCFullYear()-ae.getUTCFullYear())*12},function(ae){return ae.getUTCMonth()}),De=Ke.range,Be=a(function(ae){ae.setUTCMonth(0,1),ae.setUTCHours(0,0,0,0)},function(ae,be){ae.setUTCFullYear(ae.getUTCFullYear()+be)},function(ae,be){return be.getUTCFullYear()-ae.getUTCFullYear()},function(ae){return ae.getUTCFullYear()});Be.every=function(ae){return!isFinite(ae=Math.floor(ae))||!(ae>0)?null:a(function(be){be.setUTCFullYear(Math.floor(be.getUTCFullYear()/ae)*ae),be.setUTCMonth(0,1),be.setUTCHours(0,0,0,0)},function(be,Ge){be.setUTCFullYear(be.getUTCFullYear()+Ge*ae)})};var er=Be.range;e.timeDay=b,e.timeDays=T,e.timeFriday=C,e.timeFridays=H,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=_,e.timeMondays=R,e.timeMonth=Y,e.timeMonths=j,e.timeSaturday=E,e.timeSaturdays=G,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=P,e.timeThursday=q,e.timeThursdays=N,e.timeTuesday=k,e.timeTuesdays=B,e.timeWednesday=M,e.timeWednesdays=I,e.timeWeek=x,e.timeWeeks=P,e.timeYear=W,e.timeYears=V,e.utcDay=$,e.utcDays=ce,e.utcFriday=me,e.utcFridays=Ue,e.utcHour=le,e.utcHours=ne,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=J,e.utcMinutes=re,e.utcMonday=se,e.utcMondays=Le,e.utcMonth=Ke,e.utcMonths=De,e.utcSaturday=Ce,e.utcSaturdays=Je,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ge,e.utcSundays=Me,e.utcThursday=Pe,e.utcThursdays=qe,e.utcTuesday=oe,e.utcTuesdays=Se,e.utcWednesday=Ae,e.utcWednesdays=Ee,e.utcWeek=ge,e.utcWeeks=Me,e.utcYear=Be,e.utcYears=er,Object.defineProperty(e,"__esModule",{value:!0})})});var Tc=z((O1,JS)=>{(function(e,r){typeof O1=="object"&&typeof JS!="undefined"?r(O1,d5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(O1,function(e,r){"use strict";function t(ie){if(0<=ie.y&&ie.y<100){var ye=new Date(-1,ie.m,ie.d,ie.H,ie.M,ie.S,ie.L);return ye.setFullYear(ie.y),ye}return new Date(ie.y,ie.m,ie.d,ie.H,ie.M,ie.S,ie.L)}function a(ie){if(0<=ie.y&&ie.y<100){var ye=new Date(Date.UTC(-1,ie.m,ie.d,ie.H,ie.M,ie.S,ie.L));return ye.setUTCFullYear(ie.y),ye}return new Date(Date.UTC(ie.y,ie.m,ie.d,ie.H,ie.M,ie.S,ie.L))}function n(ie,ye,Fe){return{y:ie,m:ye,d:Fe,H:0,M:0,S:0,L:0}}function i(ie){var ye=ie.dateTime,Fe=ie.date,He=ie.time,Gr=ie.periods,rt=ie.days,qt=ie.shortDays,gt=ie.months,Ut=ie.shortMonths,Bt=v(Gr),Fa=d(Gr),kt=v(rt),Zt=d(rt),$t=v(qt),Lt=d(qt),ra=v(gt),sa=d(gt),Ot=v(Ut),tr=d(Ut),tt={a:$n,A:On,b:ta,B:dc,c:null,d:Y,e:Y,f:re,g:me,G:Me,H:j,I:W,j:V,L:J,m:le,M:ne,p:gs,q:Hn,Q:_r,s:gr,S:$,u:ce,U:te,V:se,w:oe,W:Ae,x:null,X:null,y:Pe,Y:Ce,Z:Le,"%":Qe},Yr={a:bs,A:d1,b:p1,B:m1,c:null,d:Se,e:Se,f:Ke,g:Ie,G:Oe,H:Ee,I:qe,j:Ue,L:Je,m:De,M:Be,p:Bv,q:Ov,Q:_r,s:gr,S:er,u:ae,U:be,V:sr,w:vr,W:ue,x:null,X:null,y:xe,Y:We,Z:Xe,"%":Qe},ft={a:ma,A:pi,b:nt,B:La,c:Wr,d:q,e:q,f:I,g:x,G:w,H:E,I:E,j:C,L:B,m:M,M:P,p:bt,q:k,Q:H,s:G,S:R,u:m,U:y,V:b,w:p,W:T,x:qu,X:Ht,y:x,Y:w,Z:_,"%":N};tt.x=Ft(Fe,tt),tt.X=Ft(He,tt),tt.c=Ft(ye,tt),Yr.x=Ft(Fe,Yr),Yr.X=Ft(He,Yr),Yr.c=Ft(ye,Yr);function Ft(kr,Mr){return function(yt){var ur=[],An=-1,Gt=0,tn=kr.length,an,Ni,Lu;for(yt instanceof Date||(yt=new Date(+yt));++An<tn;)kr.charCodeAt(An)===37&&(ur.push(kr.slice(Gt,An)),(Ni=o[an=kr.charAt(++An)])!=null?an=kr.charAt(++An):Ni=an==="e"?" ":"0",(Lu=Mr[an])&&(an=Lu(yt,Ni)),ur.push(an),Gt=An+1);return ur.push(kr.slice(Gt,An)),ur.join("")}}function qa(kr,Mr){return function(yt){var ur=n(1900,void 0,1),An=at(ur,kr,yt+="",0),Gt,tn;if(An!=yt.length)return null;if("Q"in ur)return new Date(ur.Q);if("s"in ur)return new Date(ur.s*1e3+("L"in ur?ur.L:0));if(Mr&&!("Z"in ur)&&(ur.Z=0),"p"in ur&&(ur.H=ur.H%12+ur.p*12),ur.m===void 0&&(ur.m="q"in ur?ur.q:0),"V"in ur){if(ur.V<1||ur.V>53)return null;"w"in ur||(ur.w=1),"Z"in ur?(Gt=a(n(ur.y,0,1)),tn=Gt.getUTCDay(),Gt=tn>4||tn===0?r.utcMonday.ceil(Gt):r.utcMonday(Gt),Gt=r.utcDay.offset(Gt,(ur.V-1)*7),ur.y=Gt.getUTCFullYear(),ur.m=Gt.getUTCMonth(),ur.d=Gt.getUTCDate()+(ur.w+6)%7):(Gt=t(n(ur.y,0,1)),tn=Gt.getDay(),Gt=tn>4||tn===0?r.timeMonday.ceil(Gt):r.timeMonday(Gt),Gt=r.timeDay.offset(Gt,(ur.V-1)*7),ur.y=Gt.getFullYear(),ur.m=Gt.getMonth(),ur.d=Gt.getDate()+(ur.w+6)%7)}else("W"in ur||"U"in ur)&&("w"in ur||(ur.w="u"in ur?ur.u%7:"W"in ur?1:0),tn="Z"in ur?a(n(ur.y,0,1)).getUTCDay():t(n(ur.y,0,1)).getDay(),ur.m=0,ur.d="W"in ur?(ur.w+6)%7+ur.W*7-(tn+5)%7:ur.w+ur.U*7-(tn+6)%7);return"Z"in ur?(ur.H+=ur.Z/100|0,ur.M+=ur.Z%100,a(ur)):t(ur)}}function at(kr,Mr,yt,ur){for(var An=0,Gt=Mr.length,tn=yt.length,an,Ni;An<Gt;){if(ur>=tn)return-1;if(an=Mr.charCodeAt(An++),an===37){if(an=Mr.charAt(An++),Ni=ft[an in o?Mr.charAt(An++):an],!Ni||(ur=Ni(kr,yt,ur))<0)return-1}else if(an!=yt.charCodeAt(ur++))return-1}return ur}function bt(kr,Mr,yt){var ur=Bt.exec(Mr.slice(yt));return ur?(kr.p=Fa[ur[0].toLowerCase()],yt+ur[0].length):-1}function ma(kr,Mr,yt){var ur=$t.exec(Mr.slice(yt));return ur?(kr.w=Lt[ur[0].toLowerCase()],yt+ur[0].length):-1}function pi(kr,Mr,yt){var ur=kt.exec(Mr.slice(yt));return ur?(kr.w=Zt[ur[0].toLowerCase()],yt+ur[0].length):-1}function nt(kr,Mr,yt){var ur=Ot.exec(Mr.slice(yt));return ur?(kr.m=tr[ur[0].toLowerCase()],yt+ur[0].length):-1}function La(kr,Mr,yt){var ur=ra.exec(Mr.slice(yt));return ur?(kr.m=sa[ur[0].toLowerCase()],yt+ur[0].length):-1}function Wr(kr,Mr,yt){return at(kr,ye,Mr,yt)}function qu(kr,Mr,yt){return at(kr,Fe,Mr,yt)}function Ht(kr,Mr,yt){return at(kr,He,Mr,yt)}function $n(kr){return qt[kr.getDay()]}function On(kr){return rt[kr.getDay()]}function ta(kr){return Ut[kr.getMonth()]}function dc(kr){return gt[kr.getMonth()]}function gs(kr){return Gr[+(kr.getHours()>=12)]}function Hn(kr){return 1+~~(kr.getMonth()/3)}function bs(kr){return qt[kr.getUTCDay()]}function d1(kr){return rt[kr.getUTCDay()]}function p1(kr){return Ut[kr.getUTCMonth()]}function m1(kr){return gt[kr.getUTCMonth()]}function Bv(kr){return Gr[+(kr.getUTCHours()>=12)]}function Ov(kr){return 1+~~(kr.getUTCMonth()/3)}return{format:function(kr){var Mr=Ft(kr+="",tt);return Mr.toString=function(){return kr},Mr},parse:function(kr){var Mr=qa(kr+="",!1);return Mr.toString=function(){return kr},Mr},utcFormat:function(kr){var Mr=Ft(kr+="",Yr);return Mr.toString=function(){return kr},Mr},utcParse:function(kr){var Mr=qa(kr+="",!0);return Mr.toString=function(){return kr},Mr}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ie,ye,Fe){var He=ie<0?"-":"",Gr=(He?-ie:ie)+"",rt=Gr.length;return He+(rt<Fe?new Array(Fe-rt+1).join(ye)+Gr:Gr)}function c(ie){return ie.replace(u,"\\$&")}function v(ie){return new RegExp("^(?:"+ie.map(c).join("|")+")","i")}function d(ie){for(var ye={},Fe=-1,He=ie.length;++Fe<He;)ye[ie[Fe].toLowerCase()]=Fe;return ye}function p(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+1));return He?(ie.w=+He[0],Fe+He[0].length):-1}function m(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+1));return He?(ie.u=+He[0],Fe+He[0].length):-1}function y(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.U=+He[0],Fe+He[0].length):-1}function b(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.V=+He[0],Fe+He[0].length):-1}function T(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.W=+He[0],Fe+He[0].length):-1}function w(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+4));return He?(ie.y=+He[0],Fe+He[0].length):-1}function x(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.y=+He[0]+(+He[0]>68?1900:2e3),Fe+He[0].length):-1}function _(ie,ye,Fe){var He=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ye.slice(Fe,Fe+6));return He?(ie.Z=He[1]?0:-(He[2]+(He[3]||"00")),Fe+He[0].length):-1}function k(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+1));return He?(ie.q=He[0]*3-3,Fe+He[0].length):-1}function M(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.m=He[0]-1,Fe+He[0].length):-1}function q(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.d=+He[0],Fe+He[0].length):-1}function C(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+3));return He?(ie.m=0,ie.d=+He[0],Fe+He[0].length):-1}function E(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.H=+He[0],Fe+He[0].length):-1}function P(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.M=+He[0],Fe+He[0].length):-1}function R(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.S=+He[0],Fe+He[0].length):-1}function B(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+3));return He?(ie.L=+He[0],Fe+He[0].length):-1}function I(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+6));return He?(ie.L=Math.floor(He[0]/1e3),Fe+He[0].length):-1}function N(ie,ye,Fe){var He=s.exec(ye.slice(Fe,Fe+1));return He?Fe+He[0].length:-1}function H(ie,ye,Fe){var He=l.exec(ye.slice(Fe));return He?(ie.Q=+He[0],Fe+He[0].length):-1}function G(ie,ye,Fe){var He=l.exec(ye.slice(Fe));return He?(ie.s=+He[0],Fe+He[0].length):-1}function Y(ie,ye){return f(ie.getDate(),ye,2)}function j(ie,ye){return f(ie.getHours(),ye,2)}function W(ie,ye){return f(ie.getHours()%12||12,ye,2)}function V(ie,ye){return f(1+r.timeDay.count(r.timeYear(ie),ie),ye,3)}function J(ie,ye){return f(ie.getMilliseconds(),ye,3)}function re(ie,ye){return J(ie,ye)+"000"}function le(ie,ye){return f(ie.getMonth()+1,ye,2)}function ne(ie,ye){return f(ie.getMinutes(),ye,2)}function $(ie,ye){return f(ie.getSeconds(),ye,2)}function ce(ie){var ye=ie.getDay();return ye===0?7:ye}function te(ie,ye){return f(r.timeSunday.count(r.timeYear(ie)-1,ie),ye,2)}function ge(ie){var ye=ie.getDay();return ye>=4||ye===0?r.timeThursday(ie):r.timeThursday.ceil(ie)}function se(ie,ye){return ie=ge(ie),f(r.timeThursday.count(r.timeYear(ie),ie)+(r.timeYear(ie).getDay()===4),ye,2)}function oe(ie){return ie.getDay()}function Ae(ie,ye){return f(r.timeMonday.count(r.timeYear(ie)-1,ie),ye,2)}function Pe(ie,ye){return f(ie.getFullYear()%100,ye,2)}function me(ie,ye){return ie=ge(ie),f(ie.getFullYear()%100,ye,2)}function Ce(ie,ye){return f(ie.getFullYear()%1e4,ye,4)}function Me(ie,ye){var Fe=ie.getDay();return ie=Fe>=4||Fe===0?r.timeThursday(ie):r.timeThursday.ceil(ie),f(ie.getFullYear()%1e4,ye,4)}function Le(ie){var ye=ie.getTimezoneOffset();return(ye>0?"-":(ye*=-1,"+"))+f(ye/60|0,"0",2)+f(ye%60,"0",2)}function Se(ie,ye){return f(ie.getUTCDate(),ye,2)}function Ee(ie,ye){return f(ie.getUTCHours(),ye,2)}function qe(ie,ye){return f(ie.getUTCHours()%12||12,ye,2)}function Ue(ie,ye){return f(1+r.utcDay.count(r.utcYear(ie),ie),ye,3)}function Je(ie,ye){return f(ie.getUTCMilliseconds(),ye,3)}function Ke(ie,ye){return Je(ie,ye)+"000"}function De(ie,ye){return f(ie.getUTCMonth()+1,ye,2)}function Be(ie,ye){return f(ie.getUTCMinutes(),ye,2)}function er(ie,ye){return f(ie.getUTCSeconds(),ye,2)}function ae(ie){var ye=ie.getUTCDay();return ye===0?7:ye}function be(ie,ye){return f(r.utcSunday.count(r.utcYear(ie)-1,ie),ye,2)}function Ge(ie){var ye=ie.getUTCDay();return ye>=4||ye===0?r.utcThursday(ie):r.utcThursday.ceil(ie)}function sr(ie,ye){return ie=Ge(ie),f(r.utcThursday.count(r.utcYear(ie),ie)+(r.utcYear(ie).getUTCDay()===4),ye,2)}function vr(ie){return ie.getUTCDay()}function ue(ie,ye){return f(r.utcMonday.count(r.utcYear(ie)-1,ie),ye,2)}function xe(ie,ye){return f(ie.getUTCFullYear()%100,ye,2)}function Ie(ie,ye){return ie=Ge(ie),f(ie.getUTCFullYear()%100,ye,2)}function We(ie,ye){return f(ie.getUTCFullYear()%1e4,ye,4)}function Oe(ie,ye){var Fe=ie.getUTCDay();return ie=Fe>=4||Fe===0?r.utcThursday(ie):r.utcThursday.ceil(ie),f(ie.getUTCFullYear()%1e4,ye,4)}function Xe(){return"+0000"}function Qe(){return"%"}function _r(ie){return+ie}function gr(ie){return Math.floor(+ie/1e3)}var Re;Ze({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 Ze(ie){return Re=i(ie),e.timeFormat=Re.format,e.timeParse=Re.parse,e.utcFormat=Re.utcFormat,e.utcParse=Re.utcParse,Re}var ze="%Y-%m-%dT%H:%M:%S.%LZ";function rr(ie){return ie.toISOString()}var cr=Date.prototype.toISOString?rr:e.utcFormat(ze);function pr(ie){var ye=new Date(ie);return isNaN(ye)?null:ye}var mr=+new Date("2000-01-01T00:00:00.000Z")?pr:e.utcParse(ze);e.isoFormat=cr,e.isoParse=mr,e.timeFormatDefaultLocale=Ze,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var p5=z((H1,KS)=>{(function(e,r){typeof H1=="object"&&typeof KS!="undefined"?r(H1):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(H1,(function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,q){if((C=(M=q?M.toExponential(q-1):M.toExponential()).indexOf("e"))<0)return null;var C,E=M.slice(0,C);return[E.length>1?E[0]+E.slice(2):E,+M.slice(C+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,q){return function(C,E){for(var P=C.length,R=[],B=0,I=M[0],N=0;P>0&&I>0&&(N+I+1>E&&(I=Math.max(1,E-N)),R.push(C.substring(P-=I,P+I)),!((N+=I+1)>E));)I=M[B=(B+1)%M.length];return R.reverse().join(q)}}function i(M){return function(q){return q.replace(/[0-9]/g,function(C){return M[+C]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(q=o.exec(M)))throw new Error("invalid format: "+M);var q;return new s({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.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 u(M){e:for(var q=M.length,C=1,E=-1,P;C<q;++C)switch(M[C]){case".":E=P=C;break;case"0":E===0&&(E=C),P=C;break;default:if(!+M[C])break e;E>0&&(E=0);break}return E>0?M.slice(0,E)+M.slice(P+1):M}var f;function c(M,q){var C=t(M,q);if(!C)return M+"";var E=C[0],P=C[1],R=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,B=E.length;return R===B?E:R>B?E+new Array(R-B+1).join("0"):R>0?E.slice(0,R)+"."+E.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,q+R-1))[0]}function v(M,q){var C=t(M,q);if(!C)return M+"";var E=C[0],P=C[1];return P<0?"0."+new Array(-P).join("0")+E:E.length>P+1?E.slice(0,P+1)+"."+E.slice(P+1):E+new Array(P-E.length+2).join("0")}var d={"%":function(M,q){return(M*100).toFixed(q)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,q){return M.toExponential(q)},f:function(M,q){return M.toFixed(q)},g:function(M,q){return M.toPrecision(q)},o:function(M){return Math.round(M).toString(8)},p:function(M,q){return v(M*100,q)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var q=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),C=M.currency===void 0?"":M.currency[0]+"",E=M.currency===void 0?"":M.currency[1]+"",P=M.decimal===void 0?".":M.decimal+"",R=M.numerals===void 0?p:i(m.call(M.numerals,String)),B=M.percent===void 0?"%":M.percent+"",I=M.minus===void 0?"-":M.minus+"",N=M.nan===void 0?"NaN":M.nan+"";function H(Y){Y=l(Y);var j=Y.fill,W=Y.align,V=Y.sign,J=Y.symbol,re=Y.zero,le=Y.width,ne=Y.comma,$=Y.precision,ce=Y.trim,te=Y.type;te==="n"?(ne=!0,te="g"):d[te]||($===void 0&&($=12),ce=!0,te="g"),(re||j==="0"&&W==="=")&&(re=!0,j="0",W="=");var ge=J==="$"?C:J==="#"&&/[boxX]/.test(te)?"0"+te.toLowerCase():"",se=J==="$"?E:/[%p]/.test(te)?B:"",oe=d[te],Ae=/[defgprs%]/.test(te);$=$===void 0?6:/[gprs]/.test(te)?Math.max(1,Math.min(21,$)):Math.max(0,Math.min(20,$));function Pe(me){var Ce=ge,Me=se,Le,Se,Ee;if(te==="c")Me=oe(me)+Me,me="";else{me=+me;var qe=me<0||1/me<0;if(me=isNaN(me)?N:oe(Math.abs(me),$),ce&&(me=u(me)),qe&&+me==0&&V!=="+"&&(qe=!1),Ce=(qe?V==="("?V:I:V==="-"||V==="("?"":V)+Ce,Me=(te==="s"?y[8+f/3]:"")+Me+(qe&&V==="("?")":""),Ae){for(Le=-1,Se=me.length;++Le<Se;)if(Ee=me.charCodeAt(Le),48>Ee||Ee>57){Me=(Ee===46?P+me.slice(Le+1):me.slice(Le))+Me,me=me.slice(0,Le);break}}}ne&&!re&&(me=q(me,1/0));var Ue=Ce.length+me.length+Me.length,Je=Ue<le?new Array(le-Ue+1).join(j):"";switch(ne&&re&&(me=q(Je+me,Je.length?le-Me.length:1/0),Je=""),W){case"<":me=Ce+me+Me+Je;break;case"=":me=Ce+Je+me+Me;break;case"^":me=Je.slice(0,Ue=Je.length>>1)+Ce+me+Me+Je.slice(Ue);break;default:me=Je+Ce+me+Me;break}return R(me)}return Pe.toString=function(){return Y+""},Pe}function G(Y,j){var W=H((Y=l(Y),Y.type="f",Y)),V=Math.max(-8,Math.min(8,Math.floor(a(j)/3)))*3,J=Math.pow(10,-V),re=y[8+V/3];return function(le){return W(J*le)+re}}return{format:H,formatPrefix:G}}var T;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(M){return T=b(M),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function x(M){return Math.max(0,-a(Math.abs(M)))}function _(M,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(M)))}function k(M,q){return M=Math.abs(M),q=Math.abs(q)-M,Math.max(0,a(q)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=_,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var eq=z((Tje,QS)=>{"use strict";QS.exports=function(e){for(var r=e.length,t,a=0;a<r;a++)if(t=e.charCodeAt(a),(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 Br=z((Aje,rq)=>{"use strict";var i0e=eq();rq.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&i0e(t))return!1}else if(r!=="number")return!1;return e-e<1}});var aa={};Dt(aa,{ALMOST_EQUAL:()=>A0e,BADNUM:()=>m5,EPOCHJD:()=>T0e,FP_SAFE:()=>o0e,LOG_CLIP:()=>M0e,MINUS_SIGN:()=>k0e,ONEAVGMONTH:()=>d0e,ONEAVGQUARTER:()=>c0e,ONEAVGYEAR:()=>s0e,ONEDAY:()=>y0e,ONEHOUR:()=>g0e,ONEMAXMONTH:()=>h0e,ONEMAXQUARTER:()=>f0e,ONEMAXYEAR:()=>l0e,ONEMICROSEC:()=>w0e,ONEMILLI:()=>_0e,ONEMIN:()=>b0e,ONEMINMONTH:()=>p0e,ONEMINQUARTER:()=>v0e,ONEMINYEAR:()=>u0e,ONESEC:()=>x0e,ONEWEEK:()=>m0e});var m5,o0e,l0e,s0e,u0e,f0e,c0e,v0e,h0e,d0e,p0e,m0e,y0e,g0e,b0e,x0e,_0e,w0e,T0e,A0e,M0e,k0e,Kt=Ct(()=>{"use strict";m5=void 0,o0e=Number.MAX_VALUE*1e-4,l0e=316224e5,s0e=315576e5,u0e=31536e6,f0e=79488e5,c0e=78894e5,v0e=76896e5,h0e=26784e5,d0e=26298e5,p0e=24192e5,m0e=6048e5,y0e=864e5,g0e=36e5,b0e=6e4,x0e=1e3,_0e=1,w0e=.001,T0e=24405875e-1,A0e=1-1e-6,M0e=10,k0e="\u2212"});var y5=z((U1,tq)=>{(function(e,r){typeof U1=="object"&&typeof tq!="undefined"?r(U1):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(U1,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a<r.length;a++)t[r.charCodeAt(a)]=a;var n=function(o){var l=new Uint8Array(o),s,u=l.length,f="";for(s=0;s<u;s+=3)f+=r[l[s]>>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var m=new ArrayBuffer(l),y=new Uint8Array(m);for(u=0;u<s;u+=4)c=t[o.charCodeAt(u)],v=t[o.charCodeAt(u+1)],d=t[o.charCodeAt(u+2)],p=t[o.charCodeAt(u+3)],y[f++]=c<<2|v>>4,y[f++]=(v&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Fu=z((Mje,aq)=>{"use strict";aq.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 Qn=z(qo=>{"use strict";var S0e=y5().decode,q0e=Fu(),g5=Array.isArray,L0e=ArrayBuffer,C0e=DataView;function nq(e){return L0e.isView(e)&&!(e instanceof C0e)}qo.isTypedArray=nq;function G1(e){return g5(e)||nq(e)}qo.isArrayOrTypedArray=G1;function D0e(e){return!G1(e[0])}qo.isArray1D=D0e;qo.ensureArray=function(e,r){return g5(e)||(e=[]),e.length=r,e};var Ja={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};Ja.uint8c=Ja.u1c;Ja.uint8=Ja.u1;Ja.int8=Ja.i1;Ja.uint16=Ja.u2;Ja.int16=Ja.i2;Ja.uint32=Ja.u4;Ja.int32=Ja.i4;Ja.float32=Ja.f4;Ja.float64=Ja.f8;function b5(e){return e.constructor===ArrayBuffer}qo.isArrayBuffer=b5;qo.decodeTypedArraySpec=function(e){var r=[],t=E0e(e),a=t.dtype,n=Ja[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;b5(o)||(o=S0e(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f<u;f++)r[f]=new n(o,d,c),d+=v;else if(s===3){u=+l[1];for(var p=+l[2],m=0;m<p;m++)for(r[m]=[],f=0;f<u;f++)r[m][f]=new n(o,d,c),d+=v}else throw new Error("ndim: "+s+'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};qo.isTypedArraySpec=function(e){return q0e(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||b5(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function E0e(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}qo.concat=function(){var e=[],r=!0,t=0,a,n,i,o,l,s,u,f;for(i=0;i<arguments.length;i++)o=arguments[i],s=o.length,s&&(n?e.push(o):(n=o,l=s),g5(o)?a=!1:(r=!1,t?a!==o.constructor&&(a=!1):a=o.constructor),t+=s);if(!t)return[];if(!e.length)return n;if(r)return n.concat.apply(n,e);if(a){for(u=new a(t),u.set(n),i=0;i<e.length;i++)o=e[i],u.set(o,l),l+=o.length;return u}for(u=new Array(t),f=0;f<n.length;f++)u[f]=n[f];for(i=0;i<e.length;i++){for(o=e[i],f=0;f<o.length;f++)u[l+f]=o[f];l+=f}return u};qo.maxRowLength=function(e){return iq(e,Math.max,0)};qo.minRowLength=function(e){return iq(e,Math.min,1/0)};function iq(e,r,t){if(G1(e))if(G1(e[0])){for(var a=t,n=0;n<e.length;n++)a=r(a,e[n].length);return a}else return e.length;return 0}});var Y1=z((Sje,fq)=>{"use strict";var oq=Br(),_5=Qn().isArrayOrTypedArray;fq.exports=function(r,t){if(oq(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l<a.length;l++)if(String(a[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<a.length;){if(n=String(a[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),n){if(n[1])a[l]=n[1];else if(l===0)a.splice(0,1);else throw"bad property string";for(i=n[2].slice(1,-1).split("]["),o=0;o<i.length;o++)l++,a.splice(l,0,Number(i[o]))}l++}return typeof r!="object"?z0e(r,t,a):{set:sq(r,a,t),get:lq(r,a),astr:t,parts:a,obj:r}};function lq(e,r){return function(t){var a=e,n,i,o,l,s;for(l=0;l<r.length-1;l++){if(n=r[l],n===-1){for(i=!0,o=[],s=0;s<a.length;s++)o[s]=lq(a[s],r.slice(l+1))(t),o[s]!==o[0]&&(i=!1);return i?o[0]:o}if(typeof n=="number"&&!_5(a)||(a=a[n],typeof a!="object"||a===null))return}if(!(typeof a!="object"||a===null)&&(o=a[r[l]],!(!t&&o===null)))return o}}var P0e=/(^|\.)args\[/;function x5(e,r){return e===void 0||e===null&&!r.match(P0e)}function sq(e,r,t){return function(a){var n=e,i="",o=[[e,i]],l=x5(a,t),s,u;for(u=0;u<r.length-1;u++){if(s=r[u],typeof s=="number"&&!_5(n))throw"array index but container is not an array";if(s===-1){if(l=!F0e(n,r.slice(u+1),a,t),l)break;return}if(!uq(n,s,r[u+1],l))break;if(n=n[s],typeof n!="object"||n===null)throw"container is not an object";i=R0e(i,s),o.push([n,i])}if(l){if(u===r.length-1&&(delete n[r[u]],Array.isArray(n)&&+r[u]===n.length-1))for(;n.length&&n[n.length-1]===void 0;)n.pop()}else n[r[u]]=a}}function R0e(e,r){var t=r;return oq(r)?t="["+r+"]":e&&(t="."+r),e+t}function F0e(e,r,t,a){var n=_5(t),i=!0,o=t,l=a.replace("-1",0),s=n?!1:x5(t,l),u=r[0],f;for(f=0;f<e.length;f++)l=a.replace("-1",f),n&&(o=t[f%t.length],s=x5(o,l)),s&&(i=!1),uq(e,f,u,s)&&sq(e[f],r,a.replace("-1",f))(o);return i}function uq(e,r,t,a){if(e[r]===void 0){if(a)return!1;typeof t=="number"?e[r]=[]:e[r]={}}return!0}function z0e(e,r,t){return{set:function(){throw"bad container"},get:function(){},astr:r,parts:t,obj:e}}});var dq=z((qje,hq)=>{"use strict";var Ac=Y1(),N0e=/^\w*$/,I0e=0,cq=1,V1=2,vq=3,zu=4;hq.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=Ac(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i<o.length;i++)u[o[i][a]]=i;var f=N0e.test(n),c={set:function(v,d){var p=d===null?zu:I0e;if(!o){if(!l||p===zu)return;o=[],l.set(o)}var m=u[v];if(m===void 0){if(p===zu)return;p=p|vq,m=o.length,u[v]=m}else d!==(f?o[m][n]:Ac(o[m],n).get())&&(p=p|V1);var y=o[m]=o[m]||{};return y[a]=v,f?y[n]=d:Ac(y,n).set(d),d!==null&&(p=p&~zu),s[m]=s[m]|p,c},get:function(v){if(o){var d=u[v];if(d!==void 0)return f?o[d][n]:Ac(o[d],n).get()}},rename:function(v,d){var p=u[v];return p===void 0||(s[p]=s[p]|cq,u[d]=p,delete u[v],o[p][a]=d),c},remove:function(v){var d=u[v];if(d===void 0)return c;var p=o[d];if(Object.keys(p).length>2)return s[d]=s[d]|V1,c.set(v,null);if(f){for(i=d;i<o.length;i++)s[i]=s[i]|vq;for(i=d;i<o.length;i++)u[o[i][a]]--;o.splice(d,1),delete u[v]}else Ac(p,n).set(null),s[d]=s[d]|V1|zu;return c},constructUpdate:function(){for(var v,d,p={},m=Object.keys(s),y=0;y<m.length;y++)d=m[y],v=t+"["+d+"]",o[d]?(s[d]&cq&&(p[v+"."+a]=o[d][a]),s[d]&V1&&(f?p[v+"."+n]=s[d]&zu?null:o[d][n]:p[v+"."+n]=s[d]&zu?null:Ac(o[d],n).get())):p[v]=null;return p}};return c}});var mq=z((Lje,pq)=>{"use strict";var B0e=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,O0e=/^[^\.\[\]]+$/;pq.exports=function(e,r){for(;r;){var t=e.match(B0e);if(t)e=t[1];else if(e.match(O0e))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 j1=z((Cje,yq)=>{"use strict";var H0e=Br();yq.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return H0e(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var xq=z((Dje,bq)=>{"use strict";var gq=Qn().isArrayOrTypedArray,Kv=Fu();bq.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(gq(n)&&gq(i)&&Kv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l<o;l++)i[l]!==n[l]&&Kv(n[l])&&Kv(i[l])&&e(i[l],n[l])}else Kv(n)&&Kv(i)&&(e(i,n),Object.keys(i).length||delete r[a])}}});var Mc={};Dt(Mc,{mod:()=>U0e,modHalf:()=>G0e});function U0e(e,r){let t=e%r;return t<0?t+r:t}function G0e(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var kc=Ct(()=>{"use strict"});var St=z(rh=>{"use strict";var _q=Fu(),Qv=Array.isArray;function Y0e(e,r){var t,a;for(t=0;t<e.length;t++){if(a=e[t],a!==null&&typeof a=="object")return!1;a!==void 0&&(r[t]=a)}return!0}rh.extendFlat=function(...e){return eh(e,!1,!1,!1)};rh.extendDeep=function(...e){return eh(e,!0,!1,!1)};rh.extendDeepAll=function(...e){return eh(e,!0,!0,!1)};rh.extendDeepNoArrays=function(...e){return eh(e,!0,!1,!0)};function eh(e,r,t,a){var n=e[0],i=e.length,o,l,s,u,f,c,v;if(i===2&&Qv(n)&&Qv(e[1])&&n.length===0){if(v=Y0e(e[1],n),v)return n;n.splice(0,n.length)}for(var d=1;d<i;d++){o=e[d];for(l in o)s=Object.prototype.hasOwnProperty.call(n,l)?n[l]:void 0,u=o[l],a&&Qv(u)?n[l]=u:r&&u&&(_q(u)||(f=Qv(u)))?(f?(f=!1,c=s&&Qv(s)?s:[]):c=s&&_q(s)?s:{},n[l]=eh([c,u],r,t,a)):(typeof u!="undefined"||t)&&(n[l]=u)}return n}});var Ia=z((Pje,wq)=>{"use strict";wq.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,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&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var th={};Dt(th,{HOVERARROWSIZE:()=>j0e,HOVERFONT:()=>Z0e,HOVERFONTSIZE:()=>X0e,HOVERID:()=>J0e,HOVERMINTIME:()=>$0e,HOVERTEXTPAD:()=>W0e,YANGLE:()=>V0e});var V0e,j0e,W0e,X0e,Z0e,$0e,J0e,ah=Ct(()=>{"use strict";V0e=60,j0e=6,W0e=3,X0e=13,Z0e="Arial, sans-serif",$0e=50,J0e="-hover"});var Sc=z((Rje,Mq)=>{"use strict";var Tq=(ah(),Ne(th)),Aq=Ia(),w5=Aq({editType:"none"});w5.family.dflt=Tq.HOVERFONT;w5.size.dflt=Tq.HOVERFONTSIZE;Mq.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:w5,grouptitlefont:Aq({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 W1=z((Fje,kq)=>{"use strict";var K0e=Ia(),nh=Sc().hoverlabel,ih=St().extendFlat;kq.exports={hoverlabel:{bgcolor:ih({},nh.bgcolor,{arrayOk:!0}),bordercolor:ih({},nh.bordercolor,{arrayOk:!0}),font:K0e({arrayOk:!0,editType:"none"}),align:ih({},nh.align,{arrayOk:!0}),namelength:ih({},nh.namelength,{arrayOk:!0}),showarrow:ih({},nh.showarrow),editType:"none"}}});var Gn=z((zje,Sq)=>{"use strict";var Q0e=Ia(),eve=W1();Sq.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:Q0e({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:eve.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var bC=z((Gje,gC)=>{var d_=Object.defineProperty,rve=Object.getOwnPropertyDescriptor,tve=Object.getOwnPropertyNames,ave=Object.prototype.hasOwnProperty,nve=(e,r)=>{for(var t in r)d_(e,t,{get:r[t],enumerable:!0})},ive=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of tve(r))!ave.call(e,n)&&n!==t&&d_(e,n,{get:()=>r[n],enumerable:!(a=rve(r,n))||a.enumerable});return e},ove=e=>ive(d_({},"__esModule",{value:!0}),e),Nq={};nve(Nq,{a98:()=>J2e,average:()=>the,averageAngle:()=>sl,averageNumber:()=>eL,blend:()=>r2e,blerp:()=>X5,clampChroma:()=>_2e,clampGamut:()=>H_,clampRgb:()=>x2e,colorsNamed:()=>Bq,convertA98ToXyz65:()=>Z5,convertCubehelixToRgb:()=>Kq,convertDlchToLab65:()=>tp,convertHsiToRgb:()=>sL,convertHslToRgb:()=>cL,convertHsvToRgb:()=>x_,convertHwbToRgb:()=>pL,convertItpToXyz65:()=>J5,convertJabToJch:()=>Q5,convertJabToRgb:()=>k_,convertJabToXyz65:()=>A_,convertJchToJab:()=>e_,convertLab65ToDlch:()=>ap,convertLab65ToRgb:()=>hh,convertLab65ToXyz65:()=>y_,convertLabToLch:()=>Il,convertLabToRgb:()=>q_,convertLabToXyz50:()=>hp,convertLchToLab:()=>Bl,convertLchuvToLuv:()=>D_,convertLrgbToOklab:()=>E_,convertLrgbToRgb:()=>Gu,convertLuvToLchuv:()=>C_,convertLuvToXyz50:()=>ip,convertOkhslToOklab:()=>a_,convertOkhsvToOklab:()=>i_,convertOklabToLrgb:()=>Fc,convertOklabToOkhsl:()=>t_,convertOklabToOkhsv:()=>n_,convertOklabToRgb:()=>mh,convertP3ToXyz65:()=>o_,convertProphotoToXyz50:()=>u_,convertRec2020ToXyz65:()=>c_,convertRgbToCubehelix:()=>Jq,convertRgbToHsi:()=>uL,convertRgbToHsl:()=>vL,convertRgbToHsv:()=>__,convertRgbToHwb:()=>mL,convertRgbToJab:()=>M_,convertRgbToLab:()=>L_,convertRgbToLab65:()=>dh,convertRgbToLrgb:()=>Uu,convertRgbToOklab:()=>ph,convertRgbToXyb:()=>YL,convertRgbToXyz50:()=>Rc,convertRgbToXyz65:()=>ws,convertRgbToYiq:()=>JL,convertXybToRgb:()=>VL,convertXyz50ToLab:()=>dp,convertXyz50ToLuv:()=>np,convertXyz50ToProphoto:()=>s_,convertXyz50ToRgb:()=>Pc,convertXyz50ToXyz65:()=>ZL,convertXyz65ToA98:()=>$5,convertXyz65ToItp:()=>K5,convertXyz65ToJab:()=>T_,convertXyz65ToLab65:()=>g_,convertXyz65ToP3:()=>l_,convertXyz65ToRec2020:()=>f_,convertXyz65ToRgb:()=>Ts,convertXyz65ToXyz50:()=>XL,convertYiqToRgb:()=>KL,converter:()=>Yt,cubehelix:()=>K2e,differenceCie76:()=>Zve,differenceCie94:()=>$ve,differenceCiede2000:()=>Jve,differenceCmc:()=>Kve,differenceEuclidean:()=>Ec,differenceHueChroma:()=>vh,differenceHueNaive:()=>Qq,differenceHueSaturation:()=>ch,differenceHyab:()=>Qve,differenceItp:()=>rhe,differenceKotsarenkoRamos:()=>ehe,displayable:()=>O_,dlab:()=>Q2e,dlch:()=>e1e,easingGamma:()=>hC,easingInOutSine:()=>Z2e,easingMidpoint:()=>oC,easingSmootherstep:()=>W2e,easingSmoothstep:()=>Y2e,easingSmoothstepInverse:()=>V2e,filterBrightness:()=>C2e,filterContrast:()=>D2e,filterDeficiencyDeuter:()=>U2e,filterDeficiencyProt:()=>H2e,filterDeficiencyTrit:()=>G2e,filterGrayscale:()=>R2e,filterHueRotate:()=>z2e,filterInvert:()=>F2e,filterSaturate:()=>P2e,filterSepia:()=>E2e,fixupAlpha:()=>Va,fixupHueDecreasing:()=>Yve,fixupHueIncreasing:()=>Gve,fixupHueLonger:()=>Uve,fixupHueShorter:()=>ll,formatCss:()=>Xde,formatHex:()=>Zde,formatHex8:()=>$de,formatHsl:()=>Kde,formatRgb:()=>Jde,getMode:()=>Sn,hsi:()=>r1e,hsl:()=>t1e,hsv:()=>a1e,hwb:()=>n1e,inGamut:()=>yp,interpolate:()=>f2e,interpolateWith:()=>sC,interpolateWithPremultipliedAlpha:()=>c2e,interpolatorLinear:()=>wr,interpolatorPiecewise:()=>Zq,interpolatorSplineBasis:()=>fC,interpolatorSplineBasisClosed:()=>cC,interpolatorSplineMonotone:()=>d2e,interpolatorSplineMonotone2:()=>p2e,interpolatorSplineMonotoneClosed:()=>m2e,interpolatorSplineNatural:()=>v2e,interpolatorSplineNaturalClosed:()=>h2e,itp:()=>i1e,jab:()=>o1e,jch:()=>l1e,lab:()=>s1e,lab65:()=>u1e,lch:()=>f1e,lch65:()=>c1e,lchuv:()=>v1e,lerp:()=>Iu,lrgb:()=>h1e,luv:()=>d1e,mapAlphaDivide:()=>iC,mapAlphaMultiply:()=>nC,mapTransferGamma:()=>o2e,mapTransferLinear:()=>N_,mapper:()=>yh,modeA98:()=>$q,modeCubehelix:()=>rL,modeDlab:()=>oL,modeDlch:()=>lL,modeHsi:()=>fL,modeHsl:()=>b_,modeHsv:()=>w_,modeHwb:()=>gL,modeItp:()=>_L,modeJab:()=>wL,modeJch:()=>TL,modeLab:()=>pp,modeLab65:()=>ML,modeLch:()=>mp,modeLch65:()=>SL,modeLchuv:()=>CL,modeLrgb:()=>DL,modeLuv:()=>EL,modeOkhsl:()=>RL,modeOkhsv:()=>FL,modeOklab:()=>NL,modeOklch:()=>BL,modeP3:()=>OL,modeProphoto:()=>HL,modeRec2020:()=>UL,modeRgb:()=>Hu,modeXyb:()=>jL,modeXyz50:()=>WL,modeXyz65:()=>$L,modeYiq:()=>QL,nearest:()=>A2e,okhsl:()=>p1e,okhsv:()=>m1e,oklab:()=>y1e,oklch:()=>g1e,p3:()=>b1e,parse:()=>jq,parseHex:()=>Hq,parseHsl:()=>dL,parseHslLegacy:()=>hL,parseHwb:()=>yL,parseLab:()=>AL,parseLch:()=>kL,parseNamed:()=>Oq,parseOklab:()=>zL,parseOklch:()=>IL,parseRgb:()=>Wq,parseRgbLegacy:()=>Uq,parseTransparent:()=>Xq,prophoto:()=>x1e,random:()=>i2e,rec2020:()=>_1e,removeParser:()=>xve,rgb:()=>w1e,round:()=>eC,samples:()=>b2e,serializeHex:()=>z_,serializeHex8:()=>rC,serializeHsl:()=>aC,serializeRgb:()=>tC,toGamut:()=>w2e,trilerp:()=>Dve,unlerp:()=>Cve,useMode:()=>Et,useParser:()=>Yq,wcagContrast:()=>$2e,wcagLuminance:()=>h_,xyb:()=>T1e,xyz50:()=>A1e,xyz65:()=>M1e,yiq:()=>k1e});gC.exports=ove(Nq);var lve=(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}}},Iq=lve,sve={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},Bq=sve,uve=e=>Iq(Bq[e.toLowerCase()],6),Oq=uve,fve=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,cve=e=>{let r;return(r=e.match(fve))?Iq(parseInt(r[1],16),r[1].length):void 0},Hq=cve,ei="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Nje=`(?:${ei}|none)`,sh=`${ei}%`,Ije=`(?:${ei}%|none)`,p_=`(?:${ei}%|${ei})`,vve=`(?:${ei}%|${ei}|none)`,hve=`(?:${ei}(deg|grad|rad|turn)|${ei})`,Bje=`(?:${ei}(deg|grad|rad|turn)|${ei}|none)`,Cc="\\s*,\\s*",Oje=new RegExp("^"+vve+"$"),dve=new RegExp(`^rgba?\\(\\s*${ei}${Cc}${ei}${Cc}${ei}\\s*(?:,\\s*${p_}\\s*)?\\)$`),pve=new RegExp(`^rgba?\\(\\s*${sh}${Cc}${sh}${Cc}${sh}\\s*(?:,\\s*${p_}\\s*)?\\)$`),mve=e=>{let r={mode:"rgb"},t;if(t=e.match(dve))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(pve))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},Uq=mve,yve=(e,r)=>e===void 0?void 0:typeof e!="object"?jq(e):e.mode!==void 0?e:r?Jt(At({},e),{mode:r}):void 0,Lo=yve,gve=(e="rgb")=>r=>(r=Lo(r,e))!==void 0?r.mode===e?r:ol[r.mode][e]?ol[r.mode][e](r):e==="rgb"?ol[r.mode].rgb(r):ol.rgb[e](ol[r.mode].rgb(r)):void 0,Yt=gve,ol={},Gq={},Dc=[],m_={},bve=e=>e,Et=e=>(ol[e.mode]=At(At({},ol[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{ol[r]||(ol[r]={}),ol[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=bve)}),Gq[e.mode]=e,(e.parse||[]).forEach(r=>{Yq(r,e.mode)}),Yt(e.mode)),Sn=e=>Gq[e],Yq=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");m_[e]=r}else typeof e=="function"&&Dc.indexOf(e)<0&&Dc.push(e)},xve=e=>{if(typeof e=="string")delete m_[e];else if(typeof e=="function"){let r=Dc.indexOf(e);r>0&&Dc.splice(r,1)}},j5=/[^\x00-\x7F]|[a-zA-Z_]/,_ve=/[^\x00-\x7F]|[-\w]/,dr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Ur=0;function X1(e){let r=e[Ur],t=e[Ur+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Ur+2]):r==="."?/\d/.test(t):/\d/.test(r)}function W5(e){if(Ur>=e.length)return!1;let r=e[Ur];if(j5.test(r))return!0;if(r==="-"){if(e.length-Ur<2)return!1;let t=e[Ur+1];return!!(t==="-"||j5.test(t))}return!1}var wve={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function oh(e){let r="";if((e[Ur]==="-"||e[Ur]==="+")&&(r+=e[Ur++]),r+=Z1(e),e[Ur]==="."&&/\d/.test(e[Ur+1])&&(r+=e[Ur++]+Z1(e)),(e[Ur]==="e"||e[Ur]==="E")&&((e[Ur+1]==="-"||e[Ur+1]==="+")&&/\d/.test(e[Ur+2])?r+=e[Ur++]+e[Ur++]+Z1(e):/\d/.test(e[Ur+1])&&(r+=e[Ur++]+Z1(e))),W5(e)){let t=K1(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:dr.Hue,value:r*wve[t]}:void 0}return e[Ur]==="%"?(Ur++,{type:dr.Percentage,value:+r}):{type:dr.Number,value:+r}}function Z1(e){let r="";for(;/\d/.test(e[Ur]);)r+=e[Ur++];return r}function K1(e){let r="";for(;Ur<e.length&&_ve.test(e[Ur]);)r+=e[Ur++];return r}function Tve(e){let r=K1(e);return e[Ur]==="("?(Ur++,{type:dr.Function,value:r}):r==="none"?{type:dr.None,value:void 0}:{type:dr.Ident,value:r}}function Ave(e=""){let r=e.trim(),t=[],a;for(Ur=0;Ur<r.length;){if(a=r[Ur++],a===`
`||a==="	"||a===" "){for(;Ur<r.length&&(r[Ur]===`
`||r[Ur]==="	"||r[Ur]===" ");)Ur++;continue}if(a===",")return;if(a===")"){t.push({type:dr.ParenClose});continue}if(a==="+"){if(Ur--,X1(r)){t.push(oh(r));continue}return}if(a==="-"){if(Ur--,X1(r)){t.push(oh(r));continue}if(W5(r)){t.push({type:dr.Ident,value:K1(r)});continue}return}if(a==="."){if(Ur--,X1(r)){t.push(oh(r));continue}return}if(a==="/"){for(;Ur<r.length&&(r[Ur]===`
`||r[Ur]==="	"||r[Ur]===" ");)Ur++;let n;if(X1(r)&&(n=oh(r),n.type!==dr.Hue)){t.push({type:dr.Alpha,value:n});continue}if(W5(r)&&K1(r)==="none"){t.push({type:dr.Alpha,value:{type:dr.None,value:void 0}});continue}return}if(/\d/.test(a)){Ur--,t.push(oh(r));continue}if(j5.test(a)){Ur--,t.push(Tve(r));continue}return}return t}function Mve(e){e._i=0;let r=e[e._i++];if(!r||r.type!==dr.Function||r.value!=="color"||(r=e[e._i++],r.type!==dr.Ident))return;let t=m_[r.value];if(!t)return;let a={mode:t},n=Vq(e,!1);if(!n)return;let i=Sn(t).channels;for(let o=0,l,s;o<i.length;o++)l=n[o],s=i[o],l.type!==dr.None&&(a[s]=l.type===dr.Number?l.value:l.value/100,s==="alpha"&&(a[s]=Math.max(0,Math.min(1,a[s]))));return a}function Vq(e,r){let t=[],a;for(;e._i<e.length;){if(a=e[e._i++],a.type===dr.None||a.type===dr.Number||a.type===dr.Alpha||a.type===dr.Percentage||r&&a.type===dr.Hue){t.push(a);continue}if(a.type===dr.ParenClose){if(e._i<e.length)return;continue}return}if(!(t.length<3||t.length>4)){if(t.length===4){if(t[3].type!==dr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:dr.None,value:void 0}),t.every(n=>n.type!==dr.Alpha)?t:void 0}}function kve(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==dr.Function)return;let a=Vq(e,r);if(a)return a.unshift(t.value),a}var Sve=e=>{if(typeof e!="string")return;let r=Ave(e),t=r?kve(r,!0):void 0,a,n=0,i=Dc.length;for(;n<i;)if((a=Dc[n++](e,t))!==void 0)return a;return r?Mve(r):void 0},jq=Sve;function qve(e,r){if(!r||r[0]!=="rgb"&&r[0]!=="rgba")return;let t={mode:"rgb"},[,a,n,i,o]=r;if(!(a.type===dr.Hue||n.type===dr.Hue||i.type===dr.Hue))return a.type!==dr.None&&(t.r=a.type===dr.Number?a.value/255:a.value/100),n.type!==dr.None&&(t.g=n.type===dr.Number?n.value/255:n.value/100),i.type!==dr.None&&(t.b=i.type===dr.Number?i.value/255:i.value/100),o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var Wq=qve,Lve=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Xq=Lve,Iu=(e,r,t)=>e+t*(r-e),Cve=(e,r,t)=>(t-e)/(r-e),X5=(e,r,t,a,n,i)=>Iu(Iu(e,r,n),Iu(t,a,n),i),Dve=(e,r,t,a,n,i,o,l,s,u,f)=>Iu(X5(e,r,t,a,s,u),X5(n,i,o,l,s,u),f),Eve=e=>{let r=[];for(let t=0;t<e.length-1;t++){let a=e[t],n=e[t+1];a===void 0&&n===void 0?r.push(void 0):a!==void 0&&n!==void 0?r.push([a,n]):r.push(a!==void 0?[a,a]:[n,n])}return r},Zq=e=>r=>{let t=Eve(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),o=t[i];return o===void 0?void 0:e(o[0],o[1],n-i)}},wr=Zq(Iu),Va=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},Pve={mode:"rgb",channels:["r","g","b","alpha"],parse:[Wq,Hq,Uq,Oq,Xq,"srgb"],serialize:"srgb",interpolate:{r:wr,g:wr,b:wr,alpha:{use:wr,fixup:Va}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Hu=Pve,T5=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),Rve=e=>{let r=T5(e.r),t=T5(e.g),a=T5(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Z5=Rve,A5=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),Fve=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:A5(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:A5(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:A5(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},$5=Fve,M5=(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)},zve=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:M5(e),g:M5(r),b:M5(t)};return a!==void 0&&(n.alpha=a),n},Uu=zve,Nve=e=>{let{r,g:t,b:a,alpha:n}=Uu(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},ws=Nve,k5=(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},Ive=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:k5(e),g:k5(r),b:k5(t)};return a!==void 0&&(i.alpha=a),i},Gu=Ive,Bve=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Gu({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 a!==void 0&&(n.alpha=a),n},Ts=Bve,Ove=Jt(At({},Hu),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>$5(ws(e)),xyz65:$5},toMode:{rgb:e=>Ts(Z5(e)),xyz65:Z5}}),$q=Ove,Hve=e=>(e=e%360)<0?e+360:e,yn=Hve,lp=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=yn(t);return a===0||e[a-1]===void 0?i:r(i-yn(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),ll=e=>lp(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),Uve=e=>lp(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),Gve=e=>lp(e,r=>r>=0?r:r+360),Yve=e=>lp(e,r=>r<=0?r:r-360),ln=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Vve=Math.PI/180,jve=180/Math.PI,qq=ln[3]*ln[4],Lq=ln[1]*ln[4],Cq=ln[1]*ln[2]-ln[0]*ln[3],Wve=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(Cq*t+e*qq-r*Lq)/(Cq+qq-Lq),i=t-n,o=(ln[4]*(r-n)-ln[2]*i)/ln[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(ln[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*jve-120),a!==void 0&&(l.alpha=a),l},Jq=Wve,Xve=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*Vve,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),o=Math.cos(e),l=Math.sin(e);return n.r=t+i*(ln[0]*o+ln[1]*l),n.g=t+i*(ln[2]*o+ln[3]*l),n.b=t+i*(ln[4]*o+ln[5]*l),a!==void 0&&(n.alpha=a),n},Kq=Xve,ch=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=yn(e.h),a=yn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},Qq=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=yn(e.h),a=yn(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},vh=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=yn(e.h),a=yn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},Ec=(e="rgb",r=[1,1,1,0])=>{let t=Sn(e),a=t.channels,n=t.difference,i=Yt(e);return(o,l)=>{let s=i(o),u=i(l);return Math.sqrt(a.reduce((f,c,v)=>{let d=n[c]?n[c](s,u):s[c]-u[c];return f+(r[v]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},Zve=()=>Ec("lab65"),$ve=(e=1,r=.045,t=.015)=>{let a=Yt("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,m=Math.sqrt(d*d+p*p),y=Math.pow(s-v,2),b=Math.pow(c-m,2),T=Math.pow(u-d,2)+Math.pow(f-p,2)-b;return Math.sqrt(y/Math.pow(e,2)+b/Math.pow(1+r*c,2)+T/Math.pow(1+t*c,2))}},Jve=(e=1,r=1,t=1)=>{let a=Yt("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,m=Math.sqrt(d*d+p*p),y=(c+m)/2,b=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),T=u*(1+b),w=d*(1+b),x=Math.sqrt(T*T+f*f),_=Math.sqrt(w*w+p*p),k=Math.abs(T)+Math.abs(f)===0?0:Math.atan2(f,T);k+=(k<0)*2*Math.PI;let M=Math.abs(w)+Math.abs(p)===0?0:Math.atan2(p,w);M+=(M<0)*2*Math.PI;let q=v-s,C=_-x,E=x*_===0?0:M-k;E-=(E>Math.PI)*2*Math.PI,E+=(E<-Math.PI)*2*Math.PI;let P=2*Math.sqrt(x*_)*Math.sin(E/2),R=(s+v)/2,B=(x+_)/2,I;x*_===0?I=k+M:(I=(k+M)/2,I-=(Math.abs(k-M)>Math.PI)*Math.PI,I+=(I<0)*2*Math.PI);let N=Math.pow(R-50,2),H=1-.17*Math.cos(I-Math.PI/6)+.24*Math.cos(2*I)+.32*Math.cos(3*I+Math.PI/30)-.2*Math.cos(4*I-63*Math.PI/180),G=1+.015*N/Math.sqrt(20+N),Y=1+.045*B,j=1+.015*B*H,W=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*I-275)/25,2)),V=2*Math.sqrt(Math.pow(B,7)/(Math.pow(B,7)+Math.pow(25,7))),J=-1*Math.sin(2*W)*V;return Math.sqrt(Math.pow(q/(e*G),2)+Math.pow(C/(r*Y),2)+Math.pow(P/(t*j),2)+J*C/(r*Y)*P/(t*j))}},Kve=(e=1,r=1)=>{let t=Yt("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,s=i.b,u=Math.sqrt(l*l+s*s),f=Math.atan2(s,l);f=f+2*Math.PI*(f<0);let c=t(n),v=c.l,d=c.a,p=c.b,m=Math.sqrt(d*d+p*p),y=Math.pow(o-v,2),b=Math.pow(u-m,2),T=Math.pow(l-d,2)+Math.pow(s-p,2)-b,w=Math.sqrt(Math.pow(u,4)/(Math.pow(u,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)),_=o<16?.511:.040975*o/(1+.01765*o),k=.0638*u/(1+.0131*u)+.638,M=k*(w*x+1-w);return Math.sqrt(y/Math.pow(e*_,2)+b/Math.pow(r*k,2)+T/Math.pow(M,2))}},Qve=()=>{let e=Yt("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,o=a.a-n.a,l=a.b-n.b;return Math.abs(i)+Math.sqrt(o*o+l*l)}},ehe=()=>Ec("yiq",[.5053,.299,.1957]),rhe=()=>Ec("itp",[518400,129600,518400]),sl=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},eL=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},S5=e=>typeof e=="function";function the(e,r="rgb",t){let a=Sn(r),n=e.map(Yt(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;S5(t)?s=t:t&&S5(t[o])?s=t[o]:a.average&&S5(a.average[o])?s=a.average[o]:s=eL,i[o]=s(l,o)}return i},{mode:r})}var ahe={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Jq},toMode:{rgb:Kq},interpolate:{h:{use:wr,fixup:ll},s:wr,l:wr,alpha:{use:wr,fixup:Va}},difference:{h:ch},average:{h:sl}},rL=ahe,nhe=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),o={mode:n,l:e,c:i};return i&&(o.h=yn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},Il=nhe,ihe=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},Bl=ihe,tL=Math.pow(29,3)/Math.pow(3,3),aL=Math.pow(6,3)/Math.pow(29,3),Ya={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},Lc={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Hje=Math.pow(29,3)/Math.pow(3,3),Uje=Math.pow(6,3)/Math.pow(29,3),q5=e=>Math.pow(e,3)>aL?Math.pow(e,3):(116*e-16)/tL,ohe=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz65",x:q5(i)*Lc.X,y:q5(n)*Lc.Y,z:q5(o)*Lc.Z};return a!==void 0&&(l.alpha=a),l},y_=ohe,lhe=e=>Ts(y_(e)),hh=lhe,L5=e=>e>aL?Math.cbrt(e):(tL*e+16)/116,she=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=L5(e/Lc.X),i=L5(r/Lc.Y),o=L5(t/Lc.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},g_=she,uhe=e=>{let r=g_(ws(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},dh=uhe,Q1=1,nL=1,fh=26/180*Math.PI,ep=Math.cos(fh),rp=Math.sin(fh),iL=100/Math.log(139/100),fhe=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*Q1/iL)-1)/.0039},i=(Math.exp(.0435*r*nL*Q1)-1)/.075,o=i*Math.cos(t/180*Math.PI-fh),l=i*Math.sin(t/180*Math.PI-fh);return n.a=o*ep-l/.83*rp,n.b=o*rp+l/.83*ep,a!==void 0&&(n.alpha=a),n},tp=fhe,che=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*ep+t*rp,i=.83*(t*ep-r*rp),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:iL/Q1*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*nL*Q1)};return l.c&&(l.h=yn((Math.atan2(i,n)+fh)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},ap=che,Dq=e=>tp(Il(e,"dlch")),Eq=e=>Bl(ap(e),"dlab"),vhe={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Dq,rgb:e=>hh(Dq(e))},fromMode:{lab65:Eq,rgb:e=>Eq(dh(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:wr,a:wr,b:wr,alpha:{use:wr,fixup:Va}}},oL=vhe,hhe={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:tp,dlab:e=>Bl(e,"dlab"),rgb:e=>hh(tp(e))},fromMode:{lab65:ap,dlab:e=>Il(e,"dlch"),rgb:e=>ap(dh(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:wr,c:wr,h:{use:wr,fixup:ll},alpha:{use:wr,fixup:Va}},difference:{h:vh},average:{h:sl}},lL=hhe;function sL({h:e,s:r,i:t,alpha:a}){e=yn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function uL({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var dhe={mode:"hsi",toMode:{rgb:sL},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:uL},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:wr,fixup:ll},s:wr,i:wr,alpha:{use:wr,fixup:Va}},difference:{h:ch},average:{h:sl}},fL=dhe;function cL({h:e,s:r,l:t,alpha:a}){e=yn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=t+r*(t<.5?t:1-t),i=n-(n-t)*2*Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:n,g:i,b:2*t-n};break;case 1:o={r:i,g:n,b:2*t-n};break;case 2:o={r:2*t-n,g:n,b:i};break;case 3:o={r:2*t-n,g:i,b:n};break;case 4:o={r:i,g:2*t-n,b:n};break;case 5:o={r:n,g:2*t-n,b:i};break;default:o={r:2*t-n,g:2*t-n,b:2*t-n}}return o.mode="rgb",a!==void 0&&(o.alpha=a),o}function vL({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsl",s:n===i?0:(n-i)/(1-Math.abs(n+i-1)),l:.5*(n+i)};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var phe=(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}},mhe=phe,yhe=new RegExp(`^hsla?\\(\\s*${hve}${Cc}${sh}${Cc}${sh}\\s*(?:,\\s*${p_}\\s*)?\\)$`),ghe=e=>{let r=e.match(yhe);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=mhe(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},hL=ghe;function bhe(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==dr.None){if(a.type===dr.Percentage)return;t.h=a.value}if(n.type!==dr.None){if(n.type===dr.Hue)return;t.s=n.value/100}if(i.type!==dr.None){if(i.type===dr.Hue)return;t.l=i.value/100}return o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var dL=bhe,xhe={mode:"hsl",toMode:{rgb:cL},fromMode:{rgb:vL},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[dL,hL],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:wr,fixup:ll},s:wr,l:wr,alpha:{use:wr,fixup:Va}},difference:{h:ch},average:{h:sl}},b_=xhe;function x_({h:e,s:r,v:t,alpha:a}){e=yn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function __({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r<t)*6:n===r?(t-e)/(n-i)+2:(e-r)/(n-i)+4)*60),a!==void 0&&(o.alpha=a),o}var _he={mode:"hsv",toMode:{rgb:x_},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:__},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:wr,fixup:ll},s:wr,v:wr,alpha:{use:wr,fixup:Va}},difference:{h:ch},average:{h:sl}},w_=_he;function pL({h:e,w:r,b:t,alpha:a}){if(r===void 0&&(r=0),t===void 0&&(t=0),r+t>1){let n=r+t;r/=n,t/=n}return x_({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function mL(e){let r=__(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function whe(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==dr.None){if(a.type===dr.Percentage)return;t.h=a.value}if(n.type!==dr.None){if(n.type===dr.Hue)return;t.w=n.value/100}if(i.type!==dr.None){if(i.type===dr.Hue)return;t.b=i.value/100}return o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var yL=whe,The={mode:"hwb",toMode:{rgb:pL},fromMode:{rgb:mL},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[yL],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:wr,fixup:ll},w:wr,b:wr,alpha:{use:wr,fixup:Va}},difference:{h:Qq},average:{h:sl}},gL=The,bL=203,sp=.1593017578125,xL=78.84375,up=.8359375,fp=18.8515625,cp=18.6875;function C5(e){if(e<0)return 0;let r=Math.pow(e,1/xL);return 1e4*Math.pow(Math.max(0,r-up)/(fp-cp*r),1/sp)}function D5(e){if(e<0)return 0;let r=Math.pow(e/1e4,sp);return Math.pow((up+fp*r)/(1+cp*r),xL)}var E5=e=>Math.max(e/bL,0),Ahe=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=C5(e+.008609037037932761*r+.11102962500302593*t),i=C5(e-.00860903703793275*r-.11102962500302599*t),o=C5(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:E5(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:E5(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:E5(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},J5=Ahe,P5=(e=0)=>Math.max(e*bL,0),Mhe=({x:e,y:r,z:t,alpha:a})=>{let n=P5(e),i=P5(r),o=P5(t),l=D5(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=D5(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=D5(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*s,c=1.61376953125*l-3.323486328125*s+1.709716796875*u,v=4.378173828125*l-4.24560546875*s-.132568359375*u,d={mode:"itp",i:f,t:c,p:v};return a!==void 0&&(d.alpha=a),d},K5=Mhe,khe={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:J5,rgb:e=>Ts(J5(e))},fromMode:{xyz65:K5,rgb:e=>K5(ws(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:wr,t:wr,p:wr,alpha:{use:wr,fixup:Va}}},_L=khe,She=134.03437499999998,qhe=16295499532821565e-27,R5=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,sp);return Math.pow((up+fp*r)/(1+cp*r),She)},F5=(e=0)=>Math.max(e*203,0),Lhe=({x:e,y:r,z:t,alpha:a})=>{e=F5(e),r=F5(r),t=F5(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=R5(.41478972*n+.579999*i+.014648*t),l=R5(-.20151*n+1.120649*i+.0531008*t),s=R5(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-qhe,a:3.524*o-4.066708*l+.542708*s,b:.199076*o+1.096799*l-1.295875*s};return a!==void 0&&(f.alpha=a),f},T_=Lhe,Che=134.03437499999998,Pq=16295499532821565e-27,z5=e=>{if(e<0)return 0;let r=Math.pow(e,1/Che);return 1e4*Math.pow((up-r)/(cp*r-fp),1/sp)},N5=e=>e/203,Dhe=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+Pq)/(.44+.56*(e+Pq)),i=z5(n+.13860504*r+.058047316*t),o=z5(n-.13860504*r-.058047316*t),l=z5(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:N5(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:N5(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:N5(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},A_=Dhe,Ehe=e=>{let r=T_(ws(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},M_=Ehe,Phe=e=>Ts(A_(e)),k_=Phe,Rhe={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:M_,xyz65:T_},toMode:{rgb:k_,xyz65:A_},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:wr,a:wr,b:wr,alpha:{use:wr,fixup:Va}}},wL=Rhe,Fhe=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=yn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},Q5=Fhe,zhe=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={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 a!==void 0&&(n.alpha=a),n},e_=zhe,Nhe={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:e_,rgb:e=>k_(e_(e))},fromMode:{rgb:e=>Q5(M_(e)),jab:Q5},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:wr,fixup:ll},c:wr,j:wr,alpha:{use:wr,fixup:Va}},difference:{h:vh},average:{h:sl}},TL=Nhe,vp=Math.pow(29,3)/Math.pow(3,3),S_=Math.pow(6,3)/Math.pow(29,3),I5=e=>Math.pow(e,3)>S_?Math.pow(e,3):(116*e-16)/vp,Ihe=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz50",x:I5(i)*Ya.X,y:I5(n)*Ya.Y,z:I5(o)*Ya.Z};return a!==void 0&&(l.alpha=a),l},hp=Ihe,Bhe=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Gu({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 a!==void 0&&(n.alpha=a),n},Pc=Bhe,Ohe=e=>Pc(hp(e)),q_=Ohe,Hhe=e=>{let{r,g:t,b:a,alpha:n}=Uu(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},Rc=Hhe,B5=e=>e>S_?Math.cbrt(e):(vp*e+16)/116,Uhe=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=B5(e/Ya.X),i=B5(r/Ya.Y),o=B5(t/Ya.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},dp=Uhe,Ghe=e=>{let r=dp(Rc(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},L_=Ghe;function Yhe(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===dr.Hue||n.type===dr.Hue||i.type===dr.Hue))return a.type!==dr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==dr.None&&(t.a=n.type===dr.Number?n.value:n.value*125/100),i.type!==dr.None&&(t.b=i.type===dr.Number?i.value:i.value*125/100),o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var AL=Yhe,Vhe={mode:"lab",toMode:{xyz50:hp,rgb:q_},fromMode:{xyz50:dp,rgb:L_},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[AL],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:wr,a:wr,b:wr,alpha:{use:wr,fixup:Va}}},pp=Vhe,jhe=Jt(At({},pp),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:y_,rgb:hh},fromMode:{xyz65:g_,rgb:dh},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),ML=jhe;function Whe(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==dr.None){if(a.type===dr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==dr.None&&(t.c=Math.max(0,n.type===dr.Number?n.value:n.value*150/100)),i.type!==dr.None){if(i.type===dr.Percentage)return;t.h=i.value}return o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var kL=Whe,Xhe={mode:"lch",toMode:{lab:Bl,rgb:e=>q_(Bl(e))},fromMode:{rgb:e=>Il(L_(e)),lab:Il},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[kL],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:wr,fixup:ll},c:wr,l:wr,alpha:{use:wr,fixup:Va}},difference:{h:vh},average:{h:sl}},mp=Xhe,Zhe=Jt(At({},mp),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Bl(e,"lab65"),rgb:e=>hh(Bl(e,"lab65"))},fromMode:{rgb:e=>Il(dh(e),"lch65"),lab65:e=>Il(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),SL=Zhe,$he=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=yn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},C_=$he,Jhe=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={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 a!==void 0&&(n.alpha=a),n},D_=Jhe,qL=(e,r,t)=>4*e/(e+15*r+3*t),LL=(e,r,t)=>9*r/(e+15*r+3*t),Khe=qL(Ya.X,Ya.Y,Ya.Z),Qhe=LL(Ya.X,Ya.Y,Ya.Z),ede=e=>e<=S_?vp*e:116*Math.cbrt(e)-16,rde=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=ede(r/Ya.Y),i=qL(e,r,t),o=LL(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-Khe),o=13*n*(o-Qhe));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},np=rde,tde=(e,r,t)=>4*e/(e+15*r+3*t),ade=(e,r,t)=>9*r/(e+15*r+3*t),nde=tde(Ya.X,Ya.Y,Ya.Z),ide=ade(Ya.X,Ya.Y,Ya.Z),ode=({l:e,u:r,v:t,alpha:a})=>{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 n=r/(13*e)+nde,i=t/(13*e)+ide,o=Ya.Y*(e<=8?e/vp:Math.pow((e+16)/116,3)),l=o*(9*n)/(4*i),s=o*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:l,y:o,z:s};return a!==void 0&&(u.alpha=a),u},ip=ode,lde=e=>C_(np(Rc(e))),sde=e=>Pc(ip(D_(e))),ude={mode:"lchuv",toMode:{luv:D_,rgb:sde},fromMode:{rgb:lde,luv:C_},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:wr,fixup:ll},c:wr,l:wr,alpha:{use:wr,fixup:Va}},difference:{h:vh},average:{h:sl}},CL=ude,fde=Jt(At({},Hu),{mode:"lrgb",toMode:{rgb:Gu},fromMode:{rgb:Uu},parse:["srgb-linear"],serialize:"srgb-linear"}),DL=fde,cde={mode:"luv",toMode:{xyz50:ip,rgb:e=>Pc(ip(e))},fromMode:{xyz50:np,rgb:e=>np(Rc(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:wr,u:wr,v:wr,alpha:{use:wr,fixup:Va}}},EL=cde,vde=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),o=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*o};return a!==void 0&&(l.alpha=a),l},E_=vde,hde=e=>{let r=E_(Uu(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ph=hde,dde=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),o=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*o};return a!==void 0&&(l.alpha=a),l},Fc=dde,pde=e=>Gu(Fc(e)),mh=pde;function r_(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function op(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function mde(e,r){let t,a,n,i,o,l,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,v=-.1055613458*e-.0638541728*r,d=-.0894841775*e-1.291485548*r;{let p=1+f*c,m=1+f*v,y=1+f*d,b=p*p*p,T=m*m*m,w=y*y*y,x=3*c*p*p,_=3*v*m*m,k=3*d*y*y,M=6*c*c*p,q=6*v*v*m,C=6*d*d*y,E=l*b+s*T+u*w,P=l*x+s*_+u*k,R=l*M+s*q+u*C;f=f-E*P/(P*P-.5*E*R)}return f}function P_(e,r){let t=mde(e,r),a=Fc({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function yde(e,r,t,a,n,i=null){i||(i=P_(e,r));let o;if((t-n)*i[1]-(i[0]-n)*a<=0)o=i[1]*n/(a*i[0]+i[1]*(n-t));else{o=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let l=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,v=l+s*u,d=l+s*f,p=l+s*c;{let m=n*(1-o)+o*t,y=o*a,b=m+y*u,T=m+y*f,w=m+y*c,x=b*b*b,_=T*T*T,k=w*w*w,M=3*v*b*b,q=3*d*T*T,C=3*p*w*w,E=6*v*v*b,P=6*d*d*T,R=6*p*p*w,B=4.0767416621*x-3.3077115913*_+.2309699292*k-1,I=4.0767416621*M-3.3077115913*q+.2309699292*C,N=4.0767416621*E-3.3077115913*P+.2309699292*R,H=I/(I*I-.5*B*N),G=-B*H,Y=-1.2684380046*x+2.6097574011*_-.3413193965*k-1,j=-1.2684380046*M+2.6097574011*q-.3413193965*C,W=-1.2684380046*E+2.6097574011*P-.3413193965*R,V=j/(j*j-.5*Y*W),J=-Y*V,re=-.0041960863*x-.7034186147*_+1.707614701*k-1,le=-.0041960863*M-.7034186147*q+1.707614701*C,ne=-.0041960863*E-.7034186147*P+1.707614701*R,$=le/(le*le-.5*re*ne),ce=-re*$;G=H>=0?G:1e6,J=V>=0?J:1e6,ce=$>=0?ce:1e6,o+=Math.min(G,Math.min(J,ce))}}}return o}function R_(e,r,t=null){t||(t=P_(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function PL(e,r,t){let a=P_(r,t),n=yde(r,t,e,1,e,a),i=R_(r,t,a),o=.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)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*o,f=(1-e)*l,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function t_(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:r_(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[o,l,s]=PL(r,t/i,a/i),u;if(i<l){let f=0,c=.8*o,v=1-c/l;u=(i-f)/(c+v*(i-f))*.8}else{let f=l,c=.2*l*l*1.25*1.25/o,v=1-c/(s-l);u=.8+.2*((i-f)/(c+v*(i-f)))}return u&&(n.s=u,n.h=yn(Math.atan2(a,t)*180/Math.PI)),n}function a_(e){let r=e.h!==void 0?e.h:0,t=e.s!==void 0?e.s:0,a=e.l!==void 0?e.l:0,n={mode:"oklab",l:op(a)};if(e.alpha!==void 0&&(n.alpha=e.alpha),!t||a===1)return n.a=n.b=0,n;let i=Math.cos(r/180*Math.PI),o=Math.sin(r/180*Math.PI),[l,s,u]=PL(n.l,i,o),f,c,v,d;t<.8?(f=1.25*t,c=0,v=.8*l,d=1-v/s):(f=5*(t-.8),c=s,v=.2*s*s*1.25*1.25/l,d=1-v/(u-s));let p=c+f*v/(1-d*f);return n.a=p*i,n.b=p*o,n}var gde=Jt(At({},b_),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:t_,rgb:e=>t_(ph(e))},toMode:{oklab:a_,rgb:e=>mh(a_(e))}}),RL=gde;function n_(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,o=n?a/n:1,[l,s]=R_(i,o),u=.5,f=1-u/l,c=s/(n+r*s),v=c*r,d=c*n,p=op(v),m=d*p/v,y=Fc({l:p,a:i*m,b:o*m}),b=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/b,n=n/b*r_(r)/r,r=r_(r);let T={mode:"okhsv",s:n?(u+s)*d/(s*u+s*f*d):0,v:r?r/v:0};return T.s&&(T.h=yn(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(T.alpha=e.alpha),T}function i_(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),o=Math.sin(t/180*Math.PI),[l,s]=R_(i,o),u=.5,f=1-u/l,c=1-a*u/(u+s-s*f*a),v=a*s*u/(u+s-s*f*a),d=op(c),p=v*d/c,m=Fc({l:d,a:i*p,b:o*p}),y=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),b=op(n*c),T=v*b/c;return r.l=b*y,r.a=T*i*y,r.b=T*o*y,r}var bde=Jt(At({},w_),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:n_,rgb:e=>n_(ph(e))},toMode:{oklab:i_,rgb:e=>mh(i_(e))}}),FL=bde;function xde(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===dr.Hue||n.type===dr.Hue||i.type===dr.Hue))return a.type!==dr.None&&(t.l=Math.min(Math.max(0,a.type===dr.Number?a.value:a.value/100),1)),n.type!==dr.None&&(t.a=n.type===dr.Number?n.value:n.value*.4/100),i.type!==dr.None&&(t.b=i.type===dr.Number?i.value:i.value*.4/100),o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var zL=xde,_de=Jt(At({},pp),{mode:"oklab",toMode:{lrgb:Fc,rgb:mh},fromMode:{lrgb:E_,rgb:ph},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[zL],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}`:""})`}),NL=_de;function wde(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==dr.None){if(a.type===dr.Hue)return;t.l=Math.min(Math.max(0,a.type===dr.Number?a.value:a.value/100),1)}if(n.type!==dr.None&&(t.c=Math.max(0,n.type===dr.Number?n.value:n.value*.4/100)),i.type!==dr.None){if(i.type===dr.Percentage)return;t.h=i.value}return o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var IL=wde,Tde=Jt(At({},mp),{mode:"oklch",toMode:{oklab:e=>Bl(e,"oklab"),rgb:e=>mh(Bl(e,"oklab"))},fromMode:{rgb:e=>Il(ph(e),"oklch"),oklab:e=>Il(e,"oklch")},parse:[IL],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]}}),BL=Tde,Ade=e=>{let{r,g:t,b:a,alpha:n}=Uu(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},o_=Ade,Mde=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Gu({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 a!==void 0&&(n.alpha=a),n},l_=Mde,kde=Jt(At({},Hu),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>l_(ws(e)),xyz65:l_},toMode:{rgb:e=>Ts(o_(e)),xyz65:o_}}),OL=kde,O5=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},Sde=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:O5(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:O5(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:O5(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},s_=Sde,H5=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},qde=e=>{let r=H5(e.r),t=H5(e.g),a=H5(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},u_=qde,Lde=Jt(At({},Hu),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:s_,rgb:e=>s_(Rc(e))},toMode:{xyz50:u_,rgb:e=>Pc(u_(e))}}),HL=Lde,Rq=1.09929682680944,Cde=.018053968510807,U5=e=>{let r=Math.abs(e);return r>Cde?(Math.sign(e)||1)*(Rq*Math.pow(r,.45)-(Rq-1)):4.5*e},Dde=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:U5(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:U5(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:U5(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},f_=Dde,Fq=1.09929682680944,Ede=.018053968510807,G5=(e=0)=>{let r=Math.abs(e);return r<Ede*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+Fq-1)/Fq,1/.45)},Pde=e=>{let r=G5(e.r),t=G5(e.g),a=G5(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},c_=Pde,Rde=Jt(At({},Hu),{mode:"rec2020",fromMode:{xyz65:f_,rgb:e=>f_(ws(e))},toMode:{xyz65:c_,rgb:e=>Ts(c_(e))},parse:["rec2020"],serialize:"rec2020"}),UL=Rde,Bu=.0037930732552754493,GL=Math.cbrt(Bu),Y5=e=>Math.cbrt(e)-GL,Fde=e=>{let{r,g:t,b:a,alpha:n}=Uu(e),i=Y5(.3*r+.622*t+.078*a+Bu),o=Y5(.23*r+.692*t+.078*a+Bu),l=Y5(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Bu),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},YL=Fde,V5=e=>Math.pow(e+GL,3),zde=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=V5(e+r)-Bu,i=V5(r-e)-Bu,o=V5(t+r)-Bu,l=Gu({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*o});return a!==void 0&&(l.alpha=a),l},VL=zde,Nde={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:VL},fromMode:{rgb:YL},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:wr,y:wr,b:wr,alpha:{use:wr,fixup:Va}}},jL=Nde,Ide={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Pc,lab:dp},fromMode:{rgb:Rc,lab:hp},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:wr,y:wr,z:wr,alpha:{use:wr,fixup:Va}}},WL=Ide,Bde=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},XL=Bde,Ode=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},ZL=Ode,Hde={mode:"xyz65",toMode:{rgb:Ts,xyz50:XL},fromMode:{rgb:ws,xyz50:ZL},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:wr,y:wr,z:wr,alpha:{use:wr,fixup:Va}}},$L=Hde,Ude=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},JL=Ude,Gde=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},KL=Gde,Yde={mode:"yiq",toMode:{rgb:KL},fromMode:{rgb:JL},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:wr,i:wr,q:wr,alpha:{use:wr,fixup:Va}}},QL=Yde,Vde=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,jde=(e=4)=>r=>typeof r=="number"?Vde(r,e):r,eC=jde,lh=eC(2),uh=e=>Math.max(0,Math.min(1,e||0)),Ou=e=>Math.round(uh(e)*255),F_=Yt("rgb"),Wde=Yt("hsl"),z_=e=>{if(e===void 0)return;let r=Ou(e.r),t=Ou(e.g),a=Ou(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},rC=e=>{if(e===void 0)return;let r=Ou(e.alpha!==void 0?e.alpha:1);return z_(e)+(256|r).toString(16).slice(1)},tC=e=>{if(e===void 0)return;let r=Ou(e.r),t=Ou(e.g),a=Ou(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${lh(uh(e.alpha))})`},aC=e=>{if(e===void 0)return;let r=lh(e.h||0),t=lh(uh(e.s)*100)+"%",a=lh(uh(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${lh(uh(e.alpha))})`},Xde=e=>{let r=Lo(e);if(!r)return;let t=Sn(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},Zde=e=>z_(F_(e)),$de=e=>rC(F_(e)),Jde=e=>tC(F_(e)),Kde=e=>aC(Wde(e)),Qde={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},e2e=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:Qde[r],n=Yt(t),i=Sn(t).channels;return e.map(l=>{let s=n(l);return s.alpha===void 0&&(s.alpha=1),s}).reduce((l,s)=>{if(l===void 0)return s;let u=s.alpha+l.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-l.alpha)*s[c]+s.alpha*l.alpha*a(l[c],s[c])+(1-s.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},r2e=e2e,t2e=([e,r])=>e+Math.random()*(r-e),a2e=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),n2e=(e="rgb",r={})=>{let t=Sn(e),a=a2e(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=t2e(a[i]||t.ranges[i])),n),{mode:e})},i2e=n2e,yh=(e,r="rgb",t=!1)=>{let a=r?Sn(r).channels:null,n=r?Yt(r):Lo;return i=>{let o=n(i);if(!o)return;let l=(a||Sn(o.mode).channels).reduce((u,f)=>{let c=e(o[f],f,o,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:o.mode});if(!t)return l;let s=Lo(i);return s&&s.mode!==l.mode?Yt(s.mode)(l):l}},nC=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,iC=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,N_=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,o2e=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,l2e=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;r<e.length;){if(e[r]===void 0){for(a=r,n=e[r-1],t=r;e[t]===void 0;)t++;for(i=(e[t]-n)/(t-r+1);r<t;)e[r]=n+(r+1-a)*i,r++}else e[r]<e[r-1]&&(e[r]=e[r-1]);r++}return e},s2e=l2e,u2e=(e=.5)=>r=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),oC=u2e,$1=e=>typeof e=="function",Nu=e=>e&&typeof e=="object",zq=e=>typeof e=="number",lC=(e,r="rgb",t,a)=>{let n=Sn(r),i=Yt(r),o=[],l=[],s={};e.forEach(v=>{Array.isArray(v)?(o.push(i(v[0])),l.push(v[1])):zq(v)||$1(v)?s[l.length]=v:(o.push(i(v)),l.push(void 0))}),s2e(l);let u=n.channels.reduce((v,d)=>{let p;return Nu(t)&&Nu(t[d])&&t[d].fixup?p=t[d].fixup:Nu(n.interpolate[d])&&n.interpolate[d].fixup?p=n.interpolate[d].fixup:p=m=>m,v[d]=p(o.map(m=>m[d])),v},{});if(a){let v=o.map((d,p)=>n.channels.reduce((m,y)=>(m[y]=u[y][p],m),{mode:r}));u=n.channels.reduce((d,p)=>(d[p]=v.map(m=>{let y=a(m[p],p,m,r);return isNaN(y)?void 0:y}),d),{})}let f=n.channels.reduce((v,d)=>{let p;return $1(t)?p=t:Nu(t)&&$1(t[d])?p=t[d]:Nu(t)&&Nu(t[d])&&t[d].use?p=t[d].use:$1(n.interpolate[d])?p=n.interpolate[d]:Nu(n.interpolate[d])&&(p=n.interpolate[d].use),v[d]=p(u[d]),v},{}),c=o.length-1;return v=>{if(v=Math.min(Math.max(0,v),1),v<=l[0])return o[0];if(v>l[c])return o[c];let d=0;for(;l[d]<v;)d++;let p=l[d-1],m=l[d]-p,y=(v-p)/m,b=s[d]||s[0];b!==void 0&&(zq(b)&&(b=oC((b-p)/m)),y=b(y));let T=(d-1+y)/c;return n.channels.reduce((w,x)=>{let _=f[x](T);return _!==void 0&&(w[x]=_),w},{mode:r})}},f2e=(e,r="rgb",t)=>lC(e,r,t),sC=(e,r)=>(t,a="rgb",n)=>{let i=r?yh(r,a):void 0,o=lC(t,a,n,e);return i?l=>i(o(l)):o},c2e=sC(nC,iC),J1=(e,r)=>(e+r)%r,uC=(e,r,t,a,n)=>{let i=n*n,o=i*n;return((1-3*n+3*i-o)*e+(4-6*i+3*o)*r+(1+3*n+3*i-3*o)*t+o*a)/6},fC=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return uC(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],a<t-1?e[a+2]:2*e[a+1]-e[a],(r-a/t)*t)},cC=e=>r=>{let t=e.length-1,a=Math.floor(r*t);return uC(e[J1(a-1,e.length)],e[J1(a,e.length)],e[J1(a+1,e.length)],e[J1(a+2,e.length)],(r-a/t)*t)},vC=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r<t;++r)a[r]=1/(4-a[r-1]),n[r]=(6*e[r]-(r==t-1?e[t]:0)-n[r-1])*a[r];for(i[0]=e[0],i[t]=e[t],t-1>0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},v2e=e=>fC(vC(e)),h2e=e=>cC(vC(e)),qc=Math.sign,v_=Math.min,mi=Math.abs,I_=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i<r;i++)t.push((e[i+1]-e[i])*r),a.push(i>0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(qc(t[i-1])+qc(t[i]))*v_(mi(t[i-1]),mi(t[i]),.5*mi(a[i])):void 0);return[t,a,n]},B_=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let o;i>=1?o=a-1:o=Math.max(0,Math.floor(i*a));let l=i-o/a,s=l*l,u=s*l;return(r[o]+r[o+1]-2*t[o])*n*u+(3*t[o]-2*r[o]-r[o+1])*a*s+r[o]*l+e[o]}},d2e=e=>{if(e.length<3)return wr(e);let r=e.length-1,[t,,a]=I_(e);return a[0]=t[0],a[r]=t[r-1],B_(e,a,t)},p2e=e=>{if(e.length<3)return wr(e);let r=e.length-1,[t,a,n]=I_(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:mi(a[0])>2*mi(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:mi(a[r])>2*mi(t[r-1])?2*t[r-1]:a[r],B_(e,n,t)},m2e=e=>{let r=e.length-1,[t,a,n]=I_(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,o=i;return n[0]=(qc(i)+qc(t[0]))*v_(mi(i),mi(t[0]),.5*mi(a[0])),n[r]=(qc(t[r-1])+qc(o))*v_(mi(t[r-1]),mi(o),.5*mi(a[r])),B_(e,n,t)},y2e=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),hC=y2e,g2e=(e=2,r=1)=>{let t=hC(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n<e;n++)a.push(t(n/(e-1)));return a},b2e=g2e,dC=Yt("rgb"),pC=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},mC=e=>pC(dC(e)),yC=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 O_(e){return yC(dC(e))}function yp(e="rgb"){let{gamut:r}=Sn(e);if(!r)return a=>!0;let t=Yt(typeof r=="string"?r:e);return a=>yC(t(a))}function x2e(e){return e=Lo(e),e===void 0||O_(e)?e:Yt(e.mode)(mC(e))}function H_(e="rgb"){let{gamut:r}=Sn(e);if(!r)return i=>Lo(i);let t=typeof r=="string"?r:e,a=Yt(t),n=yp(t);return i=>{let o=Lo(i);if(!o)return;let l=a(o);if(n(l))return o;let s=pC(l);return o.mode===s.mode?s:Yt(o.mode)(s)}}function _2e(e,r="lch",t="rgb"){e=Lo(e);let a=t==="rgb"?O_:yp(t),n=t==="rgb"?mC:H_(t);if(e===void 0||a(e))return e;let i=Yt(e.mode);e=Yt(r)(e);let o=Jt(At({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=Sn(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=o.c;for(;s-l>f;)o.c=l+(s-l)*.5,a(o)?(c=o.c,l=o.c):s=o.c;return i(a(o)?o:Jt(At({},o),{c}))}function w2e(e="rgb",r="oklch",t=Ec("oklch"),a=.02){let n=Yt(e),i=Sn(e);if(!i.gamut)return f=>n(f);let o=yp(e),l=H_(e),s=Yt(r),{ranges:u}=Sn(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Lo(f),f===void 0)return;let c=At({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=Jt(At({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=Jt(At({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(o(c))return n(c);let v=0,d=c.c,p=(u.c[1]-u.c[0])/4e3,m=l(c);for(;d-v>p;)c.c=(v+d)*.5,m=l(c),o(c)||t&&a>0&&t(c,m)<=a?v=c.c:d=c.c;return n(o(c)?c:m)}}var T2e=(e,r=Ec(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,o=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(l=>{l.d=r(n,l.color)}),a.sort((l,s)=>l.d-s.d).slice(0,i).filter(l=>l.d<o).map(l=>e[l.i]))},A2e=T2e,U_=e=>Math.max(e,0),G_=e=>Math.max(Math.min(e,1),0),M2e=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),k2e=e=>{let r=1-G_(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]},S2e=e=>{let r=U_(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]},q2e=e=>{let r=1-G_(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]},L2e=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},gp=(e,r,t=!1)=>{let a=Yt(r),n=Sn(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},s,u=n.length;for(let c=0;c<e.length;c++)s=n[Math.floor(c/u)],o[s]!==void 0&&(l[s]=(l[s]||0)+e[c]*(o[n[c%u]]||0));if(!t)return l;let f=Lo(i);return f&&l.mode!==f.mode?Yt(f.mode)(l):l}},C2e=(e=1,r="rgb")=>{let t=U_(e);return yh(N_(t),r,!0)},D2e=(e=1,r="rgb")=>{let t=U_(e);return yh(N_(t,(1-t)/2),r,!0)},E2e=(e=1,r="rgb")=>gp(k2e(e),r,!0),P2e=(e=1,r="rgb")=>gp(S2e(e),r,!0),R2e=(e=1,r="rgb")=>gp(q2e(e),r,!0),F2e=(e=1,r="rgb")=>{let t=G_(e);return yh((a,n)=>n==="alpha"?a:M2e(t,1-t,a),r,!0)},z2e=(e=0,r="rgb")=>gp(L2e(e),r,!0),N2e=Yt("rgb"),I2e=[[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]],B2e=[[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]],O2e=[[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]],Y_=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&a<e.length-1){let o=e[a+1];i=i.map((l,s)=>Iu(i[s],o[s],n))}return o=>{let l=Lo(o);if(l===void 0)return;let{r:s,g:u,b:f}=N2e(l),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),Yt(l.mode)(c)}},H2e=(e=1)=>Y_(I2e,e),U2e=(e=1)=>Y_(B2e,e),G2e=(e=1)=>Y_(O2e,e),Y2e=e=>e*e*(3-2*e),V2e=e=>.5-Math.sin(Math.asin(1-2*e)/3),j2e=e=>e*e*e*(e*(e*6-15)+10),W2e=j2e,X2e=e=>(1-Math.cos(e*Math.PI))/2,Z2e=X2e;function h_(e){let r=Yt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function $2e(e,r){let t=h_(e),a=h_(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var J2e=Et($q),K2e=Et(rL),Q2e=Et(oL),e1e=Et(lL),r1e=Et(fL),t1e=Et(b_),a1e=Et(w_),n1e=Et(gL),i1e=Et(_L),o1e=Et(wL),l1e=Et(TL),s1e=Et(pp),u1e=Et(ML),f1e=Et(mp),c1e=Et(SL),v1e=Et(CL),h1e=Et(DL),d1e=Et(EL),p1e=Et(RL),m1e=Et(FL),y1e=Et(NL),g1e=Et(BL),b1e=Et(OL),x1e=Et(HL),_1e=Et(UL),w1e=Et(Hu),T1e=Et(jL),A1e=Et(WL),M1e=Et($L),k1e=Et(QL)});var V_={};Dt(V_,{default:()=>q1e});var S1e,q1e,j_=Ct(()=>{"use strict";S1e={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(" ")}},q1e=S1e});var As=z((jje,AC)=>{"use strict";var{format:L1e,width:C1e,height:D1e,scale:E1e}=(j_(),Ne(V_)).default,xC=E1e,{dflt:Vje}=xC,P1e=YS(xC,["dflt"]),_C={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:L1e,filename:{valType:"string"},width:C1e,height:D1e,scale:P1e},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:{}}},wC={};function TC(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),TC(a,r[t])))}}TC(_C,wC);AC.exports={configAttributes:_C,dfltConfig:wC}});var X_=z((Xje,MC)=>{"use strict";var W_=Pr(),R1e=Br(),gh=[];MC.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||gh.indexOf(e)!==-1)return;gh.push(e);var a=1e3;R1e(r)?a=r:r==="long"&&(a=3e3);var n=W_.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(gh);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=gh.indexOf(u);f!==-1&&gh.splice(f,1),W_.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=W_.select(this);u.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(/<br\s*\/?>/g),v=0;v<c.length;v++)v&&f.append("br"),f.append("span").text(c[v]);r==="stick"?u.transition().duration(350).style("opacity",1):u.transition().duration(700).style("opacity",1).transition().delay(a).call(o)})}});var Ms=z((Zje,kC)=>{"use strict";var zc=As().dfltConfig,Z_=X_(),$_=kC.exports={};$_.log=function(){var e;if(zc.logging>1){var r=["LOG:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(zc.notifyOnLogging>1){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Z_(t.join("<br>"),"long")}};$_.warn=function(){var e;if(zc.logging>0){var r=["WARN:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.trace.apply(console,r)}if(zc.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Z_(t.join("<br>"),"stick")}};$_.error=function(){var e;if(zc.logging>0){var r=["ERROR:"];for(e=0;e<arguments.length;e++)r.push(arguments[e]);console.error.apply(console,r)}if(zc.notifyOnLogging>0){var t=[];for(e=0;e<arguments.length;e++)t.push(arguments[e]);Z_(t.join("<br>"),"stick")}}});var Hi=z(Yu=>{"use strict";Yu.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Yu.defaultLine="#444";Yu.lightLine="#eee";Yu.background="#fff";Yu.borderLine="#BEC8D9";Yu.lightFraction=1e3/11});var qr=z((Jje,FC)=>{"use strict";var{converter:SC,formatHex:F1e,formatRgb:z1e,wcagContrast:N1e,wcagLuminance:I1e}=bC(),{isArrayOrTypedArray:qC}=Qn(),{warn:B1e}=Ms(),{background:xh,defaultLine:Q_,defaults:O1e,lightLine:H1e}=Hi(),LC=SC("rgb"),U1e=SC("hsl"),CC=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return LC(r)}catch(t){return}},qn=e=>e>0?e>1?1:e:0,G1e={mode:"rgb",r:0,g:0,b:0,alpha:1},J_=e=>Math.round(e*255e6)/255e6,DC=e=>Jt(At({},e),{r:J_(e.r),g:J_(e.g),b:J_(e.b)}),yi=e=>z1e(DC(e)),Y1e=e=>F1e(DC(e)),V1e=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:qC(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},fa=(e,r)=>{var a;let t=CC(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&B1e(`Invalid color specifier: ${V1e(e)}. Defaulting to "#000"`),G1e)},bh=e=>yi(Jt(At({},fa(e)),{alpha:1})),j1e=e=>e?fa(e).alpha:0,EC=e=>qC(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),W1e=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:o>1?o/255:o}},X1e=(e,r)=>{let t=EC(e)?W1e(e):fa(e,!0),a=[qn(t.r),qn(t.g),qn(t.b),qn(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},Z1e=(e,r)=>yi(Jt(At({},fa(e)),{alpha:qn(r)})),PC=(e,r)=>{let t=fa(e),a=t.alpha;if(a===1)return yi(t);let n=fa(r||xh),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return yi({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},$1e=(e,r,t)=>{let a=fa(e),n=fa(r),i=(o,l)=>t*o+(1-t)*l;return yi({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},K_=(e,r)=>{let t=fa(e),a=U1e(t)||{mode:"hsl",h:0,s:0,l:0};return yi(LC(Jt(At({},a),{l:qn((a.l*100+r)/100),alpha:t.alpha})))},bp=(e,r)=>N1e(fa(e),fa(r)),RC=e=>bp(e,xh)>bp(e,Q_),J1e=yi(fa(xh)),K1e=yi(fa(Q_)),Q1e=(e,r,t)=>(fa(e).alpha!==1&&(e=PC(e,xh)),RC(e)?r?K_(e,r):J1e:t?K_(e,-t):K1e),epe=(e,r)=>{e.style({stroke:bh(r),"stroke-opacity":fa(r).alpha})},rpe=(e,r)=>{e.style({fill:bh(r),"fill-opacity":fa(r).alpha})},tpe=(e,r)=>!!(e&&r&&bh(e)===bh(r)),ape=e=>CC(e)!==void 0,npe=(e,r)=>{r=r===0?0:r||10;let t=fa(e),a=r/100;return yi(Jt(At({},t),{r:qn(t.r+a),g:qn(t.g+a),b:qn(t.b+a)}))},ipe=(e,r,t)=>{let a=fa(e),n=fa(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,s=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,u=1-s,f=(c,v)=>u*c+s*v;return yi({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},ope=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=bp(e,n);i>a&&(a=i,t=yi(fa(n)))}return t},lpe=e=>yi(fa(e)),spe=e=>Y1e(fa(e)).toUpperCase(),upe=e=>{let r=fa(e);return[qn(r.r)*255,qn(r.g)*255,qn(r.b)*255,qn(r.alpha)]},fpe=([e,r,t,a])=>yi({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),cpe=e=>{let r=fa(e);return I1e({mode:"rgb",r:qn(r.r),g:qn(r.g),b:qn(r.b)})};FC.exports={addOpacity:Z1e,adjustLightness:K_,background:xh,brighten:npe,combine:PC,contrast:Q1e,defaultLine:Q_,defaults:O1e,equals:tpe,fill:rpe,hexString:spe,interpolate:$1e,isChannelArray:EC,isDark:RC,isValid:ape,lightLine:H1e,luminosity:cpe,mix:ipe,mostReadable:ope,normalize:X1e,opacity:j1e,parse:fa,rgb:bh,rgbaArray:upe,rgbaArrayToString:fpe,rgbaString:lpe,stroke:epe,wcagContrast:bp}});var Vu=z((Qje,IC)=>{"use strict";var vpe=qr(),xp={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)"]]},zC=xp.RdBu;function hpe(e,r){if(r||(r=zC),!e)return r;function t(){try{e=xp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),NC(e)?e:r}function NC(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 a=e[t];if(a.length!==2||+a[0]<r||!vpe.isValid(a[1]))return!1;r=+a[0]}return!0}function dpe(e){return xp[e]!==void 0?!0:NC(e)}IC.exports={scales:xp,defaultScale:zC,get:hpe,isValid:dpe}});var _p={};Dt(_p,{DESELECTDIM:()=>ype,HIDE_PLACEHOLDER:()=>mpe,SHOW_PLACEHOLDER:()=>ppe});var ppe,mpe,ype,wp=Ct(()=>{"use strict";ppe=100,mpe=1e3,ype=.2});var _h={};Dt(_h,{counter:()=>ju});function ju(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+e4+"y"+e4+n):new RegExp(i+e+e4+n)}var e4,Nc=Ct(()=>{"use strict";e4="([2-9]|[1-9][0-9]+)?"});var HC=z(ri=>{"use strict";var r4=Br(),BC=St().extendFlat,gpe=Gn(),bpe=Vu(),t4=qr(),xpe=(wp(),Ne(_p)).DESELECTDIM,Ic=Y1(),OC=(Nc(),Ne(_h)).counter,_pe=(kc(),Ne(Mc)).modHalf,Co=Qn().isArrayOrTypedArray,ks=Qn().isTypedArraySpec,Ss=Qn().decodeTypedArraySpec;ri.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Co(e)?e:ks(e)?Ss(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;a<t.length;a++){var n=String(t[a]);if(n.charAt(0)==="/"&&n.charAt(n.length-1)==="/"){var i=new RegExp(n.slice(1,-1));if(i.test(e))return!0}else if(e===t[a])return!0}return!1}},boolean:{coerceFunction:function(e,r,t,a){let n=i=>i===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){ks(e)&&(e=Ss(e)),!r4(e)||a.min!==void 0&&e<a.min||a.max!==void 0&&e>a.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}ks(e)&&(e=Ss(e)),e%1||!r4(e)||a.min!==void 0&&e<a.min||a.max!==void 0&&e>a.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){ks(e)&&(e=Ss(e)),t4.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>t4.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(bpe.get(e,t))}},angle:{coerceFunction:function(e,r,t){ks(e)&&(e=Ss(e)),e==="auto"?r.set("auto"):r4(e)?r.set(_pe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||OC(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Co(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!OC(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i<n.length;){var o=n[i];a.flags.indexOf(o)===-1||n.indexOf(o)<i?n.splice(i,1):i++}n.length?r.set(n.join("+")):r.set(t)}},any:{coerceFunction:function(e,r,t){e===void 0?r.set(t):r.set(ks(e)?Ss(e):e)}},info_array:{coerceFunction:function(e,r,t,a){function n(T,w,x){var _,k={set:function(M){_=M}};return x===void 0&&(x=w.dflt),ri.valObjectMeta[w.valType].coerceFunction(T,k,x,w),_}if(ks(e)&&(e=Ss(e)),!Co(e)){r.set(t);return}var i=a.dimensions===2||a.dimensions==="1-2"&&Array.isArray(e)&&Co(e[0]),o=a.items,l=[],s=Array.isArray(o),u=s&&i&&Co(o[0]),f=i&&s&&!u,c=s&&!f?o.length:e.length,v,d,p,m,y,b;if(t=Array.isArray(t)?t:[],i)for(v=0;v<c;v++)for(l[v]=[],p=Co(e[v])?e[v]:[],f?y=o.length:s?y=o[v].length:y=p.length,d=0;d<y;d++)f?m=o[d]:s?m=o[v][d]:m=o,b=n(p[d],m,(t[v]||[])[d]),b!==void 0&&(l[v][d]=b);else for(v=0;v<c;v++)b=n(e[v],s?o[v]:o,t[v]),b!==void 0&&(l[v]=b);r.set(l)},validateFunction:function(e,r){if(!Co(e))return!1;var t=r.items,a=Array.isArray(t),n=r.dimensions===2;if(!r.freeLength&&e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(n){if(!Co(e[i])||!r.freeLength&&e[i].length!==t[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!Tp(e[i][o],a?t[i][o]:t))return!1}else if(!Tp(e[i],a?t[i]:t))return!1;return!0}}};ri.coerce=function(e,r,t,a,n){var i=Ic(t,a).get(),o=Ic(e,a),l=Ic(r,a),s=o.get(),u=r._template;if(s===void 0&&u&&(s=Ic(u,a).get(),u=0),n===void 0&&(n=i.dflt),i.arrayOk){if(Co(s))return l.set(s),s;if(ks(s))return s=Ss(s),l.set(s),s}var f=ri.valObjectMeta[i.valType].coerceFunction;f(s,l,n,i);var c=l.get();return u&&c===n&&!Tp(s,i)&&(s=Ic(u,a).get(),f(s,l,n,i),c=l.get()),c};ri.coerce2=function(e,r,t,a,n){var i=Ic(e,a),o=ri.coerce(e,r,t,a,n),l=i.get();return l!=null?o:!1};ri.coerceFont=function(e,r,t,a){a||(a={}),t=BC({},t),t=BC(t,a.overrideDflt||{});var n={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(a.noFontVariant||(n.variant=e(r+".variant",t.variant)),a.noFontLineposition||(n.lineposition=e(r+".lineposition",t.lineposition)),a.noFontTextcase||(n.textcase=e(r+".textcase",t.textcase)),!a.noFontShadow){var i=t.shadow;i==="none"&&a.autoShadowDflt&&(i="auto"),n.shadow=e(r+".shadow",i)}return n};ri.coercePattern=function(e,r,t,a){var n=e(r+".shape"),i;if(n||(i=e(r+".path")),n||i){n&&e(r+".solidity"),e(r+".size");var o=e(r+".fillmode"),l=o==="overlay";if(!a){var s=e(r+".bgcolor",l?t:void 0);e(r+".fgcolor",l?t4.contrast(s):t)}e(r+".fgopacity",l?.5:1)}};ri.coerceHoverinfo=function(e,r,t){var a=r._module.attributes,n=a.hoverinfo?a:gpe,i=n.hoverinfo,o;if(t._dataLength===1){var l=i.dflt==="all"?i.flags.slice():i.dflt.split("+");l.splice(l.indexOf("name"),1),o=l.join("+")}return ri.coerce(e,r,n,"hoverinfo",o)};ri.coerceSelectionMarkerOpacity=function(e,r){if(e.marker){var t=e.marker.opacity;if(t!==void 0){var a,n;!Co(t)&&!e.selected&&!e.unselected&&(a=t,n=xpe*t),r("selected.marker.opacity",a),r("unselected.marker.opacity",n)}}};function Tp(e,r){var t=ri.valObjectMeta[r.valType];if(r.arrayOk&&Co(e))return!0;if(t.validateFunction)return t.validateFunction(e,r);var a={},n=a,i={set:function(o){n=o}};return t.coerceFunction(e,i,a,r),n!==a}ri.validate=Tp});var Ap=z((rWe,UC)=>{"use strict";UC.exports=function(){}});var a4=z((tWe,GC)=>{"use strict";GC.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n<r.length;n++)if(r[n]instanceof RegExp&&r[n].toString()===a)return r;r.push(t)}else(t||t===0)&&r.indexOf(t)===-1&&r.push(t);return r}});var VC=z((aWe,YC)=>{YC.exports=wpe;function wpe(){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 WC=z((nWe,jC)=>{jC.exports=Tpe;function Tpe(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 ZC=z((iWe,XC)=>{XC.exports=Ape;function Ape(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 n4=z((oWe,$C)=>{$C.exports=Mpe;function Mpe(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 KC=z((lWe,JC)=>{JC.exports=kpe;function kpe(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=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]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,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 eD=z((sWe,QC)=>{QC.exports=Spe;function Spe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],b=r[15],T=t*l-a*o,w=t*s-n*o,x=t*u-i*o,_=a*s-n*l,k=a*u-i*l,M=n*u-i*s,q=f*m-c*p,C=f*y-v*p,E=f*b-d*p,P=c*y-v*m,R=c*b-d*m,B=v*b-d*y,I=T*B-w*R+x*P+_*E-k*C+M*q;return I?(I=1/I,e[0]=(l*B-s*R+u*P)*I,e[1]=(n*R-a*B-i*P)*I,e[2]=(m*M-y*k+b*_)*I,e[3]=(v*k-c*M-d*_)*I,e[4]=(s*E-o*B-u*C)*I,e[5]=(t*B-n*E+i*C)*I,e[6]=(y*x-p*M-b*w)*I,e[7]=(f*M-v*x+d*w)*I,e[8]=(o*R-l*E+u*q)*I,e[9]=(a*E-t*R-i*q)*I,e[10]=(p*k-m*x+b*T)*I,e[11]=(c*x-f*k-d*T)*I,e[12]=(l*C-o*P-s*q)*I,e[13]=(t*P-a*C+n*q)*I,e[14]=(m*w-p*_-y*T)*I,e[15]=(f*_-c*w+v*T)*I,e):null}});var tD=z((uWe,rD)=>{rD.exports=qpe;function qpe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],b=r[15];return e[0]=l*(v*b-d*y)-c*(s*b-u*y)+m*(s*d-u*v),e[1]=-(a*(v*b-d*y)-c*(n*b-i*y)+m*(n*d-i*v)),e[2]=a*(s*b-u*y)-l*(n*b-i*y)+m*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*b-d*y)-f*(s*b-u*y)+p*(s*d-u*v)),e[5]=t*(v*b-d*y)-f*(n*b-i*y)+p*(n*d-i*v),e[6]=-(t*(s*b-u*y)-o*(n*b-i*y)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*b-d*m)-f*(l*b-u*m)+p*(l*d-u*c),e[9]=-(t*(c*b-d*m)-f*(a*b-i*m)+p*(a*d-i*c)),e[10]=t*(l*b-u*m)-o*(a*b-i*m)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*y-v*m)-f*(l*y-s*m)+p*(l*v-s*c)),e[13]=t*(c*y-v*m)-f*(a*y-n*m)+p*(a*v-n*c),e[14]=-(t*(l*y-s*m)-o*(a*y-n*m)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var nD=z((fWe,aD)=>{aD.exports=Lpe;function Lpe(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],m=e[14],y=e[15],b=r*o-t*i,T=r*l-a*i,w=r*s-n*i,x=t*l-a*o,_=t*s-n*o,k=a*s-n*l,M=u*p-f*d,q=u*m-c*d,C=u*y-v*d,E=f*m-c*p,P=f*y-v*p,R=c*y-v*m;return b*R-T*P+w*E+x*C-_*q+k*M}});var oD=z((cWe,iD)=>{iD.exports=Cpe;function Cpe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],m=r[12],y=r[13],b=r[14],T=r[15],w=t[0],x=t[1],_=t[2],k=t[3];return e[0]=w*a+x*l+_*c+k*m,e[1]=w*n+x*s+_*v+k*y,e[2]=w*i+x*u+_*d+k*b,e[3]=w*o+x*f+_*p+k*T,w=t[4],x=t[5],_=t[6],k=t[7],e[4]=w*a+x*l+_*c+k*m,e[5]=w*n+x*s+_*v+k*y,e[6]=w*i+x*u+_*d+k*b,e[7]=w*o+x*f+_*p+k*T,w=t[8],x=t[9],_=t[10],k=t[11],e[8]=w*a+x*l+_*c+k*m,e[9]=w*n+x*s+_*v+k*y,e[10]=w*i+x*u+_*d+k*b,e[11]=w*o+x*f+_*p+k*T,w=t[12],x=t[13],_=t[14],k=t[15],e[12]=w*a+x*l+_*c+k*m,e[13]=w*n+x*s+_*v+k*y,e[14]=w*i+x*u+_*d+k*b,e[15]=w*o+x*f+_*p+k*T,e}});var sD=z((vWe,lD)=>{lD.exports=Dpe;function Dpe(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,m,y,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],m=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=b,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+v*n+y*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var fD=z((hWe,uD)=>{uD.exports=Epe;function Epe(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var vD=z((dWe,cD)=>{cD.exports=Ppe;function Ppe(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,m,y,b,T,w,x,_,k,M,q,C,E,P,R,B,I,N;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],m=r[4],y=r[5],b=r[6],T=r[7],w=r[8],x=r[9],_=r[10],k=r[11],M=n*n*f+u,q=i*n*f+o*s,C=o*n*f-i*s,E=n*i*f-o*s,P=i*i*f+u,R=o*i*f+n*s,B=n*o*f+i*s,I=i*o*f-n*s,N=o*o*f+u,e[0]=c*M+m*q+w*C,e[1]=v*M+y*q+x*C,e[2]=d*M+b*q+_*C,e[3]=p*M+T*q+k*C,e[4]=c*E+m*P+w*R,e[5]=v*E+y*P+x*R,e[6]=d*E+b*P+_*R,e[7]=p*E+T*P+k*R,e[8]=c*B+m*I+w*N,e[9]=v*B+y*I+x*N,e[10]=d*B+b*I+_*N,e[11]=p*B+T*I+k*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var dD=z((pWe,hD)=>{hD.exports=Rpe;function Rpe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=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]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var mD=z((mWe,pD)=>{pD.exports=Fpe;function Fpe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=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]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var gD=z((yWe,yD)=>{yD.exports=zpe;function zpe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=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]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var xD=z((gWe,bD)=>{bD.exports=Npe;function Npe(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var wD=z((bWe,_D)=>{_D.exports=Ipe;function Ipe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,m=i*u,y=o*l,b=o*s,T=o*u;return e[0]=1-(d+m),e[1]=c+T,e[2]=v-b,e[3]=0,e[4]=c-T,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=v+b,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var AD=z((xWe,TD)=>{TD.exports=Bpe;function Bpe(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 kD=z((_We,MD)=>{MD.exports=Ope;function Ope(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 qD=z((wWe,SD)=>{SD.exports=Hpe;function Hpe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var CD=z((TWe,LD)=>{LD.exports=Upe;function Upe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,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]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ED=z((AWe,DD)=>{DD.exports=Gpe;function Gpe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,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 RD=z((MWe,PD)=>{PD.exports=Ype;function Ype(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,m=i*o,y=i*l,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=v-y,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=v+y,e[9]=d-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var zD=z((kWe,FD)=>{FD.exports=Vpe;function Vpe(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var ID=z((SWe,ND)=>{ND.exports=jpe;function jpe(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var OD=z((qWe,BD)=>{BD.exports=Wpe;function Wpe(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var UD=z((LWe,HD)=>{HD.exports=Xpe;function Xpe(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var YD=z((CWe,GD)=>{var Zpe=n4();GD.exports=$pe;function $pe(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],m=r[1],y=r[2],b=a[0],T=a[1],w=a[2],x=t[0],_=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(m-_)<1e-6&&Math.abs(y-k)<1e-6?Zpe(e):(f=p-x,c=m-_,v=y-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=T*v-w*c,i=w*f-b*v,o=b*c-T*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*m+o*y),e[13]=-(l*p+s*m+u*y),e[14]=-(f*p+c*m+v*y),e[15]=1,e)}});var jD=z((DWe,VD)=>{VD.exports=Jpe;function Jpe(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 i4=z((EWe,WD)=>{WD.exports={create:VC(),clone:WC(),copy:ZC(),identity:n4(),transpose:KC(),invert:eD(),adjoint:tD(),determinant:nD(),multiply:oD(),translate:sD(),scale:fD(),rotate:vD(),rotateX:dD(),rotateY:mD(),rotateZ:gD(),fromRotation:xD(),fromRotationTranslation:wD(),fromScaling:AD(),fromTranslation:kD(),fromXRotation:qD(),fromYRotation:CD(),fromZRotation:ED(),fromQuat:RD(),frustum:zD(),perspective:ID(),perspectiveFromFieldOfView:OD(),ortho:UD(),lookAt:YD(),str:jD()}});var Mp=z(ga=>{"use strict";var Kpe=i4();ga.init2dArray=function(e,r){for(var t=new Array(e),a=0;a<e;a++)t[a]=new Array(r);return t};ga.transposeRagged=function(e){var r=0,t=e.length,a,n;for(a=0;a<t;a++)r=Math.max(r,e[a].length);var i=new Array(r);for(a=0;a<r;a++)for(i[a]=new Array(t),n=0;n<t;n++)i[a][n]=e[n][a];return i};ga.dot=function(e,r){if(!(e.length&&r.length)||e.length!==r.length)return null;var t=e.length,a,n;if(e[0].length)for(a=new Array(t),n=0;n<t;n++)a[n]=ga.dot(e[n],r);else if(r[0].length){var i=ga.transposeRagged(r);for(a=new Array(i.length),n=0;n<i.length;n++)a[n]=ga.dot(e,i[n])}else for(a=0,n=0;n<t;n++)a+=e[n]*r[n];return a};ga.translationMatrix=function(e,r){return[[1,0,e],[0,1,r],[0,0,1]]};ga.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]]};ga.rotationXYMatrix=function(e,r,t){return ga.dot(ga.dot(ga.translationMatrix(r,t),ga.rotationMatrix(e)),ga.translationMatrix(-r,-t))};ga.apply3DTransform=function(e){return function(){var r=arguments,t=arguments.length===1?r[0]:[r[0],r[1],r[2]||0];return ga.dot(e,[t[0],t[1],t[2],1]).slice(0,3)}};ga.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 ga.dot(e,[t[0],t[1],1]).slice(0,2)}};ga.apply2DTransform2=function(e){var r=ga.apply2DTransform(e);return function(t){return r(t.slice(0,2)).concat(r(t.slice(2,4)))}};ga.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]};ga.inverseTransformMatrix=function(e){var r=[];return Kpe.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 wh=z((RWe,QD)=>{"use strict";var Qpe=Pr(),XD=Ms(),eme=Mp(),rme=i4();function tme(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 ame(e){var r=Qpe.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function ZD(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function nme(e,r){$D("global",e,r)}function $D(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):XD.warn("addStyleRule failed"):XD.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function ime(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&ZD(t)}function ome(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:l},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.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])}),u.setAttribute(s,!0))})}function lme(e){var r=KD(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=JD(a);if(n){var i=eme.convertCssMatrix(n);t=rme.multiply(t,t,i)}}),t}function JD(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(a){return+a})}function KD(e){for(var r=[];sme(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function sme(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function ume(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}QD.exports={getGraphDiv:tme,isPlotDiv:ame,removeElement:ZD,addStyleRule:nme,addRelatedStyleRule:$D,deleteRelatedStyleRule:ime,setStyleOnHover:ome,getFullTransformMatrix:lme,getElementTransformMatrix:JD,getElementAndAncestors:KD,equalDomRects:ume}});var Th=z((FWe,eE)=>{"use strict";eE.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 Do=z((zWe,lE)=>{"use strict";var tE=St().extendFlat,fme=Fu(),aE={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},nE={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},cme=aE.flags.slice().concat(["fullReplot"]),vme=nE.flags.slice().concat("layoutReplot");lE.exports={traces:aE,layout:nE,traceFlags:function(){return rE(cme)},layoutFlags:function(){return rE(vme)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n<a.length;n++)e[a[n]]=!0},overrideAll:iE};function rE(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!1;return r}function iE(e,r,t){var a=tE({},e);for(var n in a){var i=a[n];fme(i)&&(a[n]=oE(i,r,t,n))}return t==="from-root"&&(a.editType=r),a}function oE(e,r,t,a){if(e.valType){var n=tE({},e);if(n.editType=r,Array.isArray(e.items)){n.items=new Array(e.items.length);for(var i=0;i<e.items.length;i++)n.items[i]=oE(e.items[i],r,"from-root")}return n}else return iE(e,r,a.charAt(0)==="_"?"nested":"from-root")}});var Ui=z(o4=>{"use strict";o4.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};o4.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 l4={};Dt(l4,{DATE_FORMAT_LINK:()=>dme,FORMAT_LINK:()=>hme});var hme,dme,s4=Ct(()=>{"use strict";hme="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",dme="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var gi=z(Bc=>{"use strict";var{DATE_FORMAT_LINK:pme,FORMAT_LINK:mme}=(s4(),Ne(l4)),yme=["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 gme({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}".`,mme,"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}".`,pme,"for details on the date formatting syntax.",yme].join(" ")}Bc.templateFormatStringDescription=gme;Bc.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>At({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Bc.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>At({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Bc.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Bc.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var qp=z((OWe,hE)=>{"use strict";function qs(e,r){return r?r.d2l(e):e}function sE(e,r){return r?r.l2d(e):e}function bme(e){return e.x0}function xme(e){return e.x1}function _me(e){return e.y0}function wme(e){return e.y1}function uE(e){return e.x0shift||0}function fE(e){return e.x1shift||0}function cE(e){return e.y0shift||0}function vE(e){return e.y1shift||0}function kp(e,r){return qs(e.x1,r)+fE(e)-qs(e.x0,r)-uE(e)}function Sp(e,r,t){return qs(e.y1,t)+vE(e)-qs(e.y0,t)-cE(e)}function Tme(e,r){return Math.abs(kp(e,r))}function Ame(e,r,t){return Math.abs(Sp(e,r,t))}function Mme(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(kp(e,r),2)+Math.pow(Sp(e,r,t),2))}function kme(e,r){return sE((qs(e.x1,r)+fE(e)+qs(e.x0,r)+uE(e))/2,r)}function Sme(e,r,t){return sE((qs(e.y1,t)+vE(e)+qs(e.y0,t)+cE(e))/2,t)}function qme(e,r,t){return e.type!=="line"?void 0:Sp(e,r,t)/kp(e,r)}var Lme=["x0","x1","y0","y1","dy","height","ycenter"],Cme=["x0","x1","y0","y1","dx","width","xcenter"];hE.exports={x0:bme,x1:xme,y0:_me,y1:wme,slope:qme,dx:kp,dy:Sp,width:Tme,height:Ame,length:Mme,xcenter:kme,ycenter:Sme,simpleXVariables:Lme,simpleYVariables:Cme}});var mE=z((HWe,pE)=>{"use strict";var Dme=Do().overrideAll,Wu=Gn(),dE=Ia(),Eme=Ui().dash,Ls=St().extendFlat,{shapeTexttemplateAttrs:Pme,templatefallbackAttrs:Rme}=gi(),Fme=qp();pE.exports=Dme({newshape:{visible:Ls({},Wu.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Ls({},Wu.legend,{}),legendgroup:Ls({},Wu.legendgroup,{}),legendgrouptitle:{text:Ls({},Wu.legendgrouptitle.text,{}),font:dE({})},legendrank:Ls({},Wu.legendrank,{}),legendwidth:Ls({},Wu.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Ls({},Eme,{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:Ls({},Wu.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Pme({newshape:!0},{keys:Object.keys(Fme)}),texttemplatefallback:Rme({editType:"arraydraw"}),font:dE({}),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 gE=z((UWe,yE)=>{"use strict";var zme=Ui().dash,Nme=St().extendFlat;yE.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:Nme({},zme,{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 Lp=z((GWe,bE)=>{"use strict";bE.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 Oc=z((YWe,TE)=>{"use strict";var u4=Ia(),Ime=Th(),Cp=Hi(),xE=mE(),_E=gE(),Bme=Lp(),wE=St().extendFlat,Dp=u4({editType:"calc"});Dp.family.dflt='"Open Sans", verdana, arial, sans-serif';Dp.size.dflt=12;Dp.color.dflt=Cp.defaultLine;TE.exports={font:Dp,title:{text:{valType:"string",editType:"layoutstyle"},font:u4({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:u4({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:wE(Bme({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:Cp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Cp.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:Cp.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:xE.newshape,activeshape:xE.activeshape,newselection:_E.newselection,activeselection:_E.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:wE({},Ime.transition,{editType:"none"})}});var AE=z(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Ar=z(Xr=>{"use strict";var f4=Ms(),ME=Ap(),kE=a4(),WWe=wh().addStyleRule,SE=St(),Ome=Gn(),Hme=Oc(),Ume=SE.extendFlat,c4=SE.extendDeepAll;Xr.modules={};Xr.allCategories={};Xr.allTypes=[];Xr.subplotsRegistry={};Xr.componentsRegistry={};Xr.layoutArrayContainers=[];Xr.layoutArrayRegexes=[];Xr.traceLayoutAttributes={};Xr.localeRegistry={};Xr.apiMethodRegistry={};Xr.collectableSubplotTypes=null;Xr.register=function(r){if(Xr.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 a=r[t];if(!a)throw new Error("Invalid module was attempted to be registered!");switch(a.moduleType){case"trace":Gme(a);break;case"component":Vme(a);break;case"locale":jme(a);break;case"apiMethod":var n=a.name;Xr.apiMethodRegistry[n]=a.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};Xr.getModule=function(e){var r=Xr.modules[DE(e)];return r?r._module:!1};Xr.traceIs=function(e,r){if(e=DE(e),e==="various")return!1;var t=Xr.modules[e];return t||(e&&f4.log("Unrecognized trace type "+e+"."),t=Xr.modules[Ome.type.dflt]),!!t.categories[r]};Xr.getComponentMethod=function(e,r){var t=Xr.componentsRegistry[e];return t&&t[r]||ME};Xr.call=function(){var e=arguments[0],r=[].slice.call(arguments,1);return Xr.apiMethodRegistry[e].apply(null,r)};function Gme(e){var r=e.name,t=e.categories,a=e.meta;if(Xr.modules[r]){f4.log("Type "+r+" already registered");return}Xr.subplotsRegistry[e.basePlotModule.name]||Yme(e.basePlotModule);for(var n={},i=0;i<t.length;i++)n[t[i]]=!0,Xr.allCategories[t[i]]=!0;Xr.modules[r]={_module:e,categories:n},a&&Object.keys(a).length&&(Xr.modules[r].meta=a),Xr.allTypes.push(r);for(var o in Xr.componentsRegistry)LE(o,r);e.layoutAttributes&&Ume(Xr.traceLayoutAttributes,e.layoutAttributes);var l=e.basePlotModule,s=l.name;s==="map"&&AE(),(s==="geo"||s==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function Yme(e){var r=e.name;if(Xr.subplotsRegistry[r]){f4.log("Plot type "+r+" already registered.");return}qE(e),Xr.subplotsRegistry[r]=e;for(var t in Xr.componentsRegistry)CE(t,e.name)}function Vme(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var r=e.name;Xr.componentsRegistry[r]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&kE(Xr.layoutArrayContainers,r),qE(e));for(var t in Xr.modules)LE(r,t);for(var a in Xr.subplotsRegistry)CE(r,a);e.schema&&e.schema.layout&&c4(Hme,e.schema.layout)}function jme(e){var r=e.name,t=r.split("-")[0],a=e.dictionary,n=e.format,i=a&&Object.keys(a).length,o=n&&Object.keys(n).length,l=Xr.localeRegistry,s=l[r];if(s||(l[r]=s={}),t!==r){var u=l[t];u||(l[t]=u={}),i&&u.dictionary===s.dictionary&&(u.dictionary=a),o&&u.format===s.format&&(u.format=n)}i&&(s.dictionary=a),o&&(s.format=n)}function qE(e){if(e.layoutAttributes){var r=e.layoutAttributes._arrayAttrRegexps;if(r)for(var t=0;t<r.length;t++)kE(Xr.layoutArrayRegexes,r[t])}}function LE(e,r){var t=Xr.componentsRegistry[e].schema;if(!(!t||!t.traces)){var a=t.traces[r];a&&c4(Xr.modules[r]._module.attributes,a)}}function CE(e,r){var t=Xr.componentsRegistry[e].schema;if(!(!t||!t.subplots)){var a=Xr.subplotsRegistry[r],n=a.layoutAttributes,i=a.attr==="subplot"?a.name:a.attr;Array.isArray(i)&&(i=i[0]);var o=t.subplots[i];n&&o&&c4(n,o)}}function DE(e){return typeof e=="object"&&(e=e.type),e}});var OE=z(ba=>{"use strict";var Wme=Tc().timeFormat,IE=Br(),v4=Ms(),Ds=(kc(),Ne(Mc)).mod,Gc=(Kt(),Ne(aa)),Gi=Gc.BADNUM,ti=Gc.ONEDAY,Ah=Gc.ONEHOUR,Cs=Gc.ONEMIN,Uc=Gc.ONESEC,Mh=Gc.EPOCHJD,Ol=Ar(),EE=Tc().utcFormat,Xme=/^\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,Zme=/^\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,PE=new Date().getFullYear()-70;function Hl(e){return e&&Ol.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}ba.dateTick0=function(e,r){var t=$me(e,!!r);if(r<2)return t;var a=ba.dateTime2ms(t,e);return a+=ti*(r-1),ba.ms2DateTime(a,0,e)};function $me(e,r){return Hl(e)?r?Ol.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ol.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}ba.dfltRange=function(e){return Hl(e)?Ol.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};ba.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Pp,Rp;ba.dateTime2ms=function(e,r){if(ba.isJSDate(e)){var t=e.getTimezoneOffset()*Cs,a=(e.getUTCMinutes()-e.getMinutes())*Cs+(e.getUTCSeconds()-e.getSeconds())*Uc+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Cs;t=t-n/2+Ds(a-t+n/2,n)}return e=Number(e)-t,e>=Pp&&e<=Rp?e:Gi}if(typeof e!="string"&&typeof e!="number")return Gi;e=String(e);var i=Hl(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?Zme:Xme);if(!s)return Gi;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Gi;u=Number(u);var m;try{var y=Ol.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,b),c)}else m=y.newDate(u,Number(f),c)}catch(w){return Gi}return m?(m.toJD()-Mh)*ti+v*Ah+d*Cs+p*Uc:Gi}u.length===2?u=(Number(u)+2e3-PE)%100+PE:u=Number(u),f-=1;var T=new Date(Date.UTC(2e3,f,c,v,d));return T.setUTCFullYear(u),T.getUTCMonth()!==f||T.getUTCDate()!==c?Gi:T.getTime()+p*Uc};Pp=ba.MIN_MS=ba.dateTime2ms("-9999");Rp=ba.MAX_MS=ba.dateTime2ms("9999-12-31 23:59:59.9999");ba.isDateTime=function(e,r){return ba.dateTime2ms(e,r)!==Gi};function Hc(e,r){return String(e+Math.pow(10,r)).slice(1)}var Ep=90*ti,RE=3*Ah,FE=5*Cs;ba.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Pp&&e<=Rp))return Gi;r||(r=0);var a=Math.floor(Ds(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(Hl(t)){var c=Math.floor(n/ti)+Mh,v=Math.floor(Ds(e,ti));try{i=Ol.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=EE("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r<Ep?Math.floor(v/Ah):0,l=r<Ep?Math.floor(v%Ah/Cs):0,s=r<RE?Math.floor(v%Cs/Uc):0,u=r<FE?v%Uc*10+a:0}else f=new Date(n),i=EE("%Y-%m-%d")(f),o=r<Ep?f.getUTCHours():0,l=r<Ep?f.getUTCMinutes():0,s=r<RE?f.getUTCSeconds():0,u=r<FE?f.getUTCMilliseconds()*10+a:0;return BE(i,o,l,s,u)};ba.ms2DateTimeLocal=function(e){if(!(e>=Pp+ti&&e<=Rp-ti))return Gi;var r=Math.floor(Ds(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Wme("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return BE(a,n,i,o,l)};function BE(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Hc(r,2)+":"+Hc(t,2),(a||n)&&(e+=":"+Hc(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Hc(n,i)}return e}ba.cleanDate=function(e,r,t){if(e===Gi)return r;if(ba.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Hl(t))return v4.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=ba.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!ba.isDateTime(e,t))return v4.error("unrecognized date",e),r;return e};var Jme=/%\d?f/g,Kme=/%h/g,Qme={1:"1",2:"1",3:"2",4:"2"};function zE(e,r,t,a){e=e.replace(Jme,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(Kme,function(){return Qme[t("%q")(n)]}),Hl(a))try{e=Ol.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var eye=[59,59.9,59.99,59.999,59.9999];function rye(e,r){var t=Ds(e+.05,ti),a=Hc(Math.floor(t/Ah),2)+":"+Hc(Ds(Math.floor(t/Cs),60),2);if(r!=="M"){IE(r)||(r=0);var n=Math.min(Ds(e/Uc,60),eye[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}ba.formatDate=function(e,r,t,a,n,i){if(n=Hl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+`
`+i.year;else return rye(e,t)+`
`+zE(i.dayMonthYear,e,a,n);return zE(r,e,a,n)};var NE=3*ti;ba.incrementMonth=function(e,r,t){t=Hl(t)&&t;var a=Ds(e,ti);if(e=Math.round(e-a),t)try{var n=Math.round(e/ti)+Mh,i=Ol.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Mh)*ti+a}catch(s){v4.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+NE);return l.setUTCMonth(l.getUTCMonth()+r)+a-NE};ba.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Hl(r)&&Ol.getComponentMethod("calendars","getCal")(r),u=0;u<e.length;u++){if(l=e[u],!IE(l)){i++;continue}if(!(l%ti))if(s)try{o=s.fromJD(l/ti+Mh),o.day()===1?o.month()===1?t++:a++:n++}catch(c){}else o=new Date(l),o.getUTCDate()===1?o.getUTCMonth()===0?t++:a++:n++}a+=t,n+=a;var f=e.length-i;return{exactYears:t/f,exactMonths:a/f,exactDays:n/f}}});var h4=z(($We,HE)=>{"use strict";HE.exports=function(r){return r}});var p4=z(Ul=>{"use strict";var tye=Br(),aye=Ms(),nye=h4(),iye=(Kt(),Ne(aa)).BADNUM,d4=1e-9;Ul.findBin=function(e,r,t){if(tye(r.start))return t?Math.ceil((e-r.start)/r.size-d4)-1:Math.floor((e-r.start)/r.size+d4);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?oye:lye:s=t?uye:sye,e+=o*d4*(t?-1:1)*(o>=0?1:-1);a<n&&i++<100;)l=Math.floor((a+n)/2),s(r[l],e)?a=l+1:n=l;return i>90&&aye.log("Long binary search..."),a-1};function oye(e,r){return e<r}function lye(e,r){return e<=r}function sye(e,r){return e>r}function uye(e,r){return e>=r}Ul.sorterAsc=function(e,r){return e-r};Ul.sorterDes=function(e,r){return r-e};Ul.distinctVals=function(e){var r=e.slice();r.sort(Ul.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===iye;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};Ul.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a<n&&o++<100;)i=u((a+n)/2),r[i]<=e?a=i+l:n=i-s;return r[a]};Ul.sort=function(e,r){for(var t=0,a=0,n=1;n<e.length;n++){var i=r(e[n],e[n-1]);if(i<0?t=1:i>0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Ul.findIndexOfMin=function(e,r){r=r||nye;for(var t=1/0,a,n=0;n<e.length;n++){var i=r(e[n]);i<t&&(t=i,a=n)}return a}});var m4={};Dt(m4,{default:()=>cye});function fye(e){return Object.keys(e).sort()}var cye,y4=Ct(()=>{"use strict";cye=fye});var UE=z(xa=>{"use strict";var kh=Br(),vye=Qn().isArrayOrTypedArray;xa.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),kh(r)||(r=!1),vye(t[0])){for(i=new Array(a),n=0;n<a;n++)i[n]=xa.aggNums(e,r,t[n]);t=i}for(n=0;n<a;n++)kh(r)?kh(t[n])&&(r=e(+r,+t[n])):r=t[n];return r};xa.len=function(e){return xa.aggNums(function(r){return r+1},0,e)};xa.mean=function(e,r){return r||(r=xa.len(e)),xa.aggNums(function(t,a){return t+a},0,e)/r};xa.geometricMean=function(e,r){return r||(r=xa.len(e)),Math.pow(xa.aggNums(function(t,a){return t*a},1,e),1/r)};xa.midRange=function(e){if(!(e===void 0||e.length===0))return(xa.aggNums(Math.max,null,e)+xa.aggNums(Math.min,null,e))/2};xa.variance=function(e,r,t){return r||(r=xa.len(e)),kh(t)||(t=xa.mean(e,r)),xa.aggNums(function(a,n){return a+Math.pow(n-t,2)},0,e)/r};xa.stdev=function(e,r,t){return Math.sqrt(xa.variance(e,r,t))};xa.median=function(e){var r=e.slice().sort();return xa.interp(r,.5)};xa.interp=function(e,r){if(!kh(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 WE=z((QWe,jE)=>{"use strict";var GE=(kc(),Ne(Mc)),g4=GE.mod,hye=GE.modHalf,Sh=Math.PI,Es=2*Sh;function dye(e){return e/180*Sh}function pye(e){return e/Sh*180}function b4(e){return Math.abs(e[1]-e[0])>Es-1e-14}function YE(e,r){return hye(r-e,Es)}function mye(e,r){return Math.abs(YE(e,r))}function VE(e,r){if(b4(r))return!0;var t,a;r[0]<r[1]?(t=r[0],a=r[1]):(t=r[1],a=r[0]),t=g4(t,Es),a=g4(a,Es),t>a&&(a+=Es);var n=g4(e,Es),i=n+Es;return n>=t&&n<=a||i>=t&&i<=a}function yye(e,r,t,a){if(!VE(r,a))return!1;var n,i;return t[0]<t[1]?(n=t[0],i=t[1]):(n=t[1],i=t[0]),e>=n&&e<=i}function x4(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=b4([t,a]),s,u,f,c,v;l?(s=0,u=Sh,f=Es):t<a?(s=t,f=a):(s=a,f=t),e<r?(c=e,v=r):(c=r,v=e);function d(b,T){return[b*Math.cos(T)+n,i-b*Math.sin(T)]}var p=Math.abs(f-s)<=Sh?0:1;function m(b,T,w){return"A"+[b,b]+" "+[0,p,w]+" "+d(b,T)}var y;return l?c===null?y="M"+d(v,s)+m(v,u,0)+m(v,f,0)+"Z":y="M"+d(c,s)+m(c,u,0)+m(c,f,0)+"ZM"+d(v,s)+m(v,u,1)+m(v,f,1)+"Z":c===null?(y="M"+d(v,s)+m(v,f,0),o&&(y+="L0,0Z")):y="M"+d(c,s)+"L"+d(v,s)+m(v,f,0)+"L"+d(c,f)+m(c,s,1)+"Z",y}function gye(e,r,t,a,n){return x4(null,e,r,t,a,n,0)}function bye(e,r,t,a,n){return x4(null,e,r,t,a,n,1)}function xye(e,r,t,a,n,i){return x4(e,r,t,a,n,i,1)}jE.exports={deg2rad:dye,rad2deg:pye,angleDelta:YE,angleDist:mye,isFullCircle:b4,isAngleInsideSector:VE,isPtInsideSector:yye,pathArc:gye,pathSector:bye,pathAnnulus:xye}});var XE=z(Xu=>{"use strict";Xu.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Xu.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Xu.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Xu.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Xu.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Xu.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var JE=z(Zu=>{"use strict";var _4=(kc(),Ne(Mc)).mod;Zu.segmentsIntersect=$E;function $E(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var m=(u*d-f*v)/p,y=(u*c-s*v)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}Zu.segmentDistance=function(r,t,a,n,i,o,l,s){if($E(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,m=Math.min(Fp(u,f,d,i-r,o-t),Fp(u,f,d,l-r,s-t),Fp(c,v,p,r-i,t-o),Fp(c,v,p,a-i,n-o));return Math.sqrt(m)};function Fp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var zp,w4,ZE;Zu.getTextLocation=function(r,t,a,n){if((r!==w4||n!==ZE)&&(zp={},w4=r,ZE=n),zp[a])return zp[a];var i=r.getPointAtLength(_4(a-n/2,t)),o=r.getPointAtLength(_4(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(_4(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return zp[a]=c,c};Zu.clearLocationCache=function(){w4=null};Zu.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(v=y);var b=y.x<n?n-y.x:y.x>i?y.x-i:0,T=y.y<o?o-y.y:y.y>l?y.y-l:0;return Math.sqrt(b*b+T*T)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};Zu.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,d,p;u<l;){if(v=(f+c)/2,d=r.getPointAtLength(v),p=d[a]-t,Math.abs(p)<o)return d;s*p>0?c=v:f=v,u++}return d}});var Np=z(qh=>{"use strict";var Gl={};qh.throttle=function(r,t,a){var n=Gl[r],i=Date.now();if(!n){for(var o in Gl)Gl[o].ts<i-6e4&&delete Gl[o];n=Gl[r]={ts:0,timer:null}}KE(n);function l(){a(),n.ts=Date.now(),n.onDone&&(n.onDone(),n.onDone=null)}if(i>n.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};qh.done=function(e){var r=Gl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};qh.clear=function(e){if(e)KE(Gl[e]),delete Gl[e];else for(var r in Gl)qh.clear(r)};function KE(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var eP=z((aXe,QE)=>{"use strict";QE.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var rP=z((nXe,Ip)=>{"use strict";Ip.exports=T4;Ip.exports.isMobile=T4;Ip.exports.default=T4;var _ye=/(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,wye=/CrOS/,Tye=/android|ipad|playbook|silk/i;function T4(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=_ye.test(r)&&!wye.test(r)||!!e.tablet&&Tye.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var aP=z((iXe,tP)=>{"use strict";var Aye=Br(),Mye=rP();tP.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=kye(),typeof t!="string")return!0;var a=Mye({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i<n.length;i++){var o=n[i];if(o.indexOf("Safari")!==-1)for(var l=i-1;l>-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(Aye(u)&&(u=+u),u>=13)return!0}}}return a};function kye(){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 iP=z((oXe,nP)=>{"use strict";var Sye=Pr();nP.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=Sye.select(this)}),n}});var lP=z((lXe,oP)=>{"use strict";var qye=Ar();oP.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=qye.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var uP=z((sXe,sP)=>{"use strict";sP.exports=function(r){for(var t={},a=[],n=0,i=0;i<r.length;i++){var o=r[i];t[o]!==1&&(t[o]=1,a[n++]=o)}return a}});var cP=z((uXe,fP)=>{"use strict";fP.exports=function(r){for(var t=Dye(r)?Cye:Lye,a=[],n=0;n<r.length;n++){var i=r[n];t(i)&&a.push(i)}return a};function Lye(e){return e.visible===!0}function Cye(e){var r=e[0].trace;return r.visible===!0&&r._length!==0}function Dye(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var hP=z((fXe,vP)=>{"use strict";vP.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var pP={};Dt(pP,{default:()=>Rye});function Pye(e){return typeof e=="string"&&(e=e.replace(Eye,"")),(0,dP.default)(e)?Number(e):void 0}var dP,Eye,Rye,mP=Ct(()=>{"use strict";dP=wc(Br());Kt();Eye=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Rye=Pye});var bP=z((vXe,gP)=>{"use strict";var Fye=/<[^>]*>/g,zye=/[\p{S}\p{P}]/gu,Nye=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,Iye=/�/g,Bye=/\s+/g,Bp="-",yP=Bp.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oye=new RegExp(yP+"{3,}","g"),Hye=new RegExp(yP+"$","g"),Uye=60;function Gye(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}gP.exports=function(r,t=Uye){var a=Gye(r!=null?r:"").replace(Iye,"").replace(Fye," ").replace(zye,n=>n===Bp?n:"").toLowerCase().trim().replace(Bye,Bp).replace(Nye,"").replace(Oye,Bp);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(Hye,"")}});var ke=z((hXe,DP)=>{"use strict";var Lh=Pr(),Yye=Tc().utcFormat,Vye=p5().format,MP=Br(),kP=(Kt(),Ne(aa)),SP=kP.FP_SAFE,jye=-SP,xP=kP.BADNUM,he={};DP.exports=he;he.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],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var _P={};he.warnBadFormat=function(e){var r=String(e);_P[r]||(_P[r]=1,he.warn('encountered bad format: "'+r+'"'))};he.noFormat=function(e){return String(e)};he.numberFormat=function(e){var r;try{r=Vye(he.adjustFormat(e))}catch(t){return he.warnBadFormat(e),he.noFormat}return r};he.nestedProperty=Y1();he.keyedContainer=dq();he.relativeAttr=mq();he.isPlainObject=Fu();he.toLogRange=j1();he.relinkPrivateKeys=xq();var Ps=Qn();he.isArrayBuffer=Ps.isArrayBuffer;he.isTypedArray=Ps.isTypedArray;he.isArrayOrTypedArray=Ps.isArrayOrTypedArray;he.isArray1D=Ps.isArray1D;he.ensureArray=Ps.ensureArray;he.concat=Ps.concat;he.maxRowLength=Ps.maxRowLength;he.minRowLength=Ps.minRowLength;var qP=(kc(),Ne(Mc));he.mod=qP.mod;he.modHalf=qP.modHalf;var Rs=HC();he.valObjectMeta=Rs.valObjectMeta;he.coerce=Rs.coerce;he.coerce2=Rs.coerce2;he.coerceFont=Rs.coerceFont;he.coercePattern=Rs.coercePattern;he.coerceHoverinfo=Rs.coerceHoverinfo;he.coerceSelectionMarkerOpacity=Rs.coerceSelectionMarkerOpacity;he.validate=Rs.validate;var bi=OE();he.dateTime2ms=bi.dateTime2ms;he.isDateTime=bi.isDateTime;he.ms2DateTime=bi.ms2DateTime;he.ms2DateTimeLocal=bi.ms2DateTimeLocal;he.cleanDate=bi.cleanDate;he.isJSDate=bi.isJSDate;he.formatDate=bi.formatDate;he.incrementMonth=bi.incrementMonth;he.dateTick0=bi.dateTick0;he.dfltRange=bi.dfltRange;he.findExactDates=bi.findExactDates;he.MIN_MS=bi.MIN_MS;he.MAX_MS=bi.MAX_MS;var $u=p4();he.findBin=$u.findBin;he.sorterAsc=$u.sorterAsc;he.sorterDes=$u.sorterDes;he.distinctVals=$u.distinctVals;he.roundUp=$u.roundUp;he.sort=$u.sort;he.findIndexOfMin=$u.findIndexOfMin;he.sortObjectKeys=(y4(),Ne(m4)).default;var Yl=UE();he.aggNums=Yl.aggNums;he.len=Yl.len;he.mean=Yl.mean;he.geometricMean=Yl.geometricMean;he.median=Yl.median;he.midRange=Yl.midRange;he.variance=Yl.variance;he.stdev=Yl.stdev;he.interp=Yl.interp;var Eo=Mp();he.init2dArray=Eo.init2dArray;he.transposeRagged=Eo.transposeRagged;he.dot=Eo.dot;he.translationMatrix=Eo.translationMatrix;he.rotationMatrix=Eo.rotationMatrix;he.rotationXYMatrix=Eo.rotationXYMatrix;he.apply3DTransform=Eo.apply3DTransform;he.apply2DTransform=Eo.apply2DTransform;he.apply2DTransform2=Eo.apply2DTransform2;he.convertCssMatrix=Eo.convertCssMatrix;he.inverseTransformMatrix=Eo.inverseTransformMatrix;var ul=WE();he.deg2rad=ul.deg2rad;he.rad2deg=ul.rad2deg;he.angleDelta=ul.angleDelta;he.angleDist=ul.angleDist;he.isFullCircle=ul.isFullCircle;he.isAngleInsideSector=ul.isAngleInsideSector;he.isPtInsideSector=ul.isPtInsideSector;he.pathArc=ul.pathArc;he.pathSector=ul.pathSector;he.pathAnnulus=ul.pathAnnulus;var Vc=XE();he.isLeftAnchor=Vc.isLeftAnchor;he.isCenterAnchor=Vc.isCenterAnchor;he.isRightAnchor=Vc.isRightAnchor;he.isTopAnchor=Vc.isTopAnchor;he.isMiddleAnchor=Vc.isMiddleAnchor;he.isBottomAnchor=Vc.isBottomAnchor;var jc=JE();he.segmentsIntersect=jc.segmentsIntersect;he.segmentDistance=jc.segmentDistance;he.getTextLocation=jc.getTextLocation;he.clearLocationCache=jc.clearLocationCache;he.getVisibleSegment=jc.getVisibleSegment;he.findPointOnPath=jc.findPointOnPath;var Up=St();he.extendFlat=Up.extendFlat;he.extendDeep=Up.extendDeep;he.extendDeepAll=Up.extendDeepAll;he.extendDeepNoArrays=Up.extendDeepNoArrays;var A4=Ms();he.log=A4.log;he.warn=A4.warn;he.error=A4.error;var Wye=(Nc(),Ne(_h));he.counterRegex=Wye.counter;var M4=Np();he.throttle=M4.throttle;he.throttleDone=M4.done;he.clearThrottle=M4.clear;var Po=wh();he.getGraphDiv=Po.getGraphDiv;he.isPlotDiv=Po.isPlotDiv;he.removeElement=Po.removeElement;he.addStyleRule=Po.addStyleRule;he.addRelatedStyleRule=Po.addRelatedStyleRule;he.deleteRelatedStyleRule=Po.deleteRelatedStyleRule;he.setStyleOnHover=Po.setStyleOnHover;he.getFullTransformMatrix=Po.getFullTransformMatrix;he.getElementTransformMatrix=Po.getElementTransformMatrix;he.getElementAndAncestors=Po.getElementAndAncestors;he.equalDomRects=Po.equalDomRects;he.clearResponsive=eP();he.preserveDrawingBuffer=aP();he.makeTraceGroups=iP();he._=lP();he.notifier=X_();he.filterUnique=uP();he.filterVisible=cP();he.pushUnique=a4();he.increment=hP();he.cleanNumber=(mP(),Ne(pP)).default;he.slugify=bP();he.ensureNumber=function(r){return MP(r)?(r=Number(r),r>SP||r<jye?xP:r):xP};he.isIndex=function(e,r){return r!==void 0&&e>=r?!1:MP(e)&&e>=0&&e%1===0};he.noop=Ap();he.identity=h4();he.repeat=function(e,r){for(var t=new Array(r),a=0;a<r;a++)t[a]=e;return t};he.swapAttrs=function(e,r,t,a){t||(t="x"),a||(a="y");for(var n=0;n<r.length;n++){var i=r[n],o=he.nestedProperty(e,i.replace("?",t)),l=he.nestedProperty(e,i.replace("?",a)),s=o.get();o.set(l.get()),l.set(s)}};he.raiseToTop=function(r){r.parentNode.appendChild(r)};he.cancelTransition=function(e){return e.transition().duration(0)};he.constrain=function(e,r,t){return r>t?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};he.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};he.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l<i;l++)o[l]=r(e[l],t,a,n);return o};he.randstr=function e(r,t,a,n){if(a||(a=16),t===void 0&&(t=24),t<=0)return"0";var i=Math.log(Math.pow(2,t))/Math.log(a),o="",l,s,u;for(l=2;i===1/0;l*=2)i=Math.log(Math.pow(2,t/l))/Math.log(a)*l;var f=i-Math.floor(i);for(l=0;l<Math.floor(i);l++)u=Math.floor(Math.random()*a).toString(a),o=u+o;f&&(s=Math.pow(a,f),u=Math.floor(Math.random()*s).toString(a),o=u+o);var c=parseInt(o,a);return r&&r[o]||c!==1/0&&c>=Math.pow(2,t)?n>10?(he.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};he.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};he.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l<n;l++)i[l]=(1-Math.cos(Math.PI*(l+1)/r))/(2*r);for(l=0;l<t;l++){for(f=0,s=0;s<n;s++)u=l+s+1-r,u<-t?u-=a*Math.round(u/a):u>=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};he.syncOrAsync=function(e,r,t){var a,n;function i(){return he.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};he.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};he.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i<t.length;i++)o=e[t[i]],o!=null?a=!0:n=!1;if(a&&!n)for(i=0;i<t.length;i++)e[t[i]]=r[t[i]]}};he.mergeArray=function(e,r,t,a){var n=typeof a=="function";if(he.isArrayOrTypedArray(e))for(var i=Math.min(e.length,r.length),o=0;o<i;o++){var l=e[o];r[o][t]=n?a(l):l}};he.mergeArrayCastPositive=function(e,r,t){return he.mergeArray(e,r,t,function(a){var n=+a;return isFinite(n)&&n>0?n:0})};he.fillArray=function(e,r,t,a){if(a=a||he.identity,he.isArrayOrTypedArray(e))for(var n=0;n<r.length;n++)r[n][t]=a(e[n])};he.castOption=function(e,r,t,a){a=a||he.identity;var n=he.nestedProperty(e,t).get();return he.isArrayOrTypedArray(n)?Array.isArray(r)&&he.isArrayOrTypedArray(n[r[0]])?a(n[r[0]][r[1]]):a(n[r]):n};he.extractOption=function(e,r,t,a){if(t in e)return e[t];var n=he.nestedProperty(r,a).get();if(!Array.isArray(n))return n};he.tagSelected=function(e,r,t){var a=r.selectedpoints;function n(u){return u!==void 0&&u<e.length}for(var i=0;i<a.length;i++){var o=a[i];if(he.isIndex(o)||he.isArrayOrTypedArray(o)&&he.isIndex(o[0])&&he.isIndex(o[1])){var l=o,s=t?t[l]:l;n(s)&&(e[s].selected=1)}}};he.getTargetArray=function(e,r){var t=r.target;if(typeof t=="string"&&t){var a=he.nestedProperty(e,t).get();return he.isArrayOrTypedArray(a)?a:!1}else if(he.isArrayOrTypedArray(t))return t;return!1};function LP(e,r,t){var a={};typeof r!="object"&&(r={});var n=t==="pieLike"?-1:3,i=Object.keys(e),o,l,s;for(o=0;o<i.length;o++)l=i[o],s=e[l],!(l.charAt(0)==="_"||typeof s=="function")&&(l==="module"?a[l]=s:Array.isArray(s)?l==="colorscale"||n===-1?a[l]=s.slice():a[l]=s.slice(0,n):he.isTypedArray(s)?n===-1?a[l]=s.subarray():a[l]=s.subarray(0,n):s&&typeof s=="object"?a[l]=LP(e[l],r[l],t):a[l]=s);for(i=Object.keys(r),o=0;o<i.length;o++)l=i[o],s=r[l],(typeof s!="object"||!(l in a)||typeof a[l]!="object")&&(a[l]=s);return a}he.minExtend=LP;he.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};he.containsAny=function(e,r){for(var t=0;t<r.length;t++)if(e.indexOf(r[t])!==-1)return!0;return!1};var Xye=/Version\/[\d\.]+.*Safari/;he.isSafari=function(){return Xye.test(window.navigator.userAgent)};var Zye=/iPad|iPhone|iPod/;he.isIOS=function(){return Zye.test(window.navigator.userAgent)};var $ye=/Macintosh.+AppleWebKit.+Gecko\)$/;he.isMacWKWebView=()=>$ye.test(window.navigator.userAgent);var Jye=/Firefox\/(\d+)\.\d+/;he.getFirefoxVersion=function(){var e=Jye.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};he.isD3Selection=function(e){return e instanceof Lh.selection};he.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};he.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};he.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i<t.length;i++){var o=t[i],l=null,s=t[i].match(/(.*)\[([0-9]+)\]/);s?(o=s[1],l=s[2],a=a[o]=[],i===t.length-1?a[l]=r:a[l]={},a=a[l]):(i===t.length-1?a[o]=r:a[o]={},a=a[o])}return n};var Kye=/^([^\[\.]+)\.(.+)?/,Qye=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Op(e,r){return r in e&&!Object.prototype.hasOwnProperty.call(e,r)}he.expandObjectPaths=function(e){var r,t,a,n,i,o,l;if(typeof e=="object"&&!Array.isArray(e)){for(t in e)if(e.hasOwnProperty(t))if(r=t.match(Kye)){if(n=e[t],a=r[1],Op(e,a))continue;delete e[t],e[a]=he.extendDeepNoArrays(e[a]||{},he.objectFromPath(t,he.expandObjectPaths(n))[a])}else if(r=t.match(Qye)){if(n=e[t],a=r[1],Op(e,a))continue;if(i=parseInt(r[2]),delete e[t],e[a]=e[a]||[],r[3]===".")l=r[4],o=e[a][i]=e[a][i]||{},he.extendDeepNoArrays(o,he.objectFromPath(l,he.expandObjectPaths(n)));else{if(Op(e,a))continue;e[a][i]=he.expandObjectPaths(n)}}else{if(Op(e,t))continue;e[t]=he.expandObjectPaths(e[t])}}return e};he.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 a=/(\d+)(\d{3})/,n=r.charAt(0),i=r.charAt(1),o=e.split("."),l=o[0],s=o.length>1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};he.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var CP=/^\w*$/;he.templateString=function(e,r){var t={};return e.replace(he.TEMPLATE_STRING_REGEX,function(a,n){var i;return CP.test(n)?i=r[n]:(t[n]=t[n]||he.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var ege={max:10,count:0,name:"hovertemplate"};he.hovertemplateString=e=>k4(Jt(At({},e),{opts:ege}));var rge={max:10,count:0,name:"texttemplate"};he.texttemplateString=e=>k4(Jt(At({},e),{opts:rge}));var tge=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function age(e){var r=e.match(tge);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var nge={max:10,count:0,name:"texttemplate",parseMultDiv:!0};he.texttemplateStringForShapes=e=>k4(Jt(At({},e),{opts:nge}));var wP=/^[:|\|]/;function k4({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(he.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),v=["xother_","yother_"].includes(l),d=u||f||v||c;(f||c)&&(l=l.substring(1)),(v||c)&&(l=l.substring(0,l.length-1));let p=null,m=null;if(n.parseMultDiv){var y=age(l);l=y.key,p=y.op,m=y.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let _ of e)if(_){if(_.hasOwnProperty(l)){b=_[l];break}if(CP.test(l)||(b=he.nestedProperty(_,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:_,max:k,name:M}=n,q=t===!1?o:t;return _<k&&he.warn([`Variable '${l}' in ${M} could not be found!`,"Please verify that the template is correct.",`Using value: '${q}'.`].join(" ")),_===k&&he.warn(`Too many '${M}' warnings - additional warnings will be suppressed.`),n.count++,q}if(p==="*"&&(b*=m),p==="/"&&(b/=m),s){var T;if(s[0]===":"&&(T=r?r.numberFormat:he.numberFormat,b!==""&&(b=T(s.replace(wP,""))(b))),s[0]==="|"){T=r?r.timeFormat:Yye;var w=he.dateTime2ms(b);b=he.formatDate(w,s.replace(wP,""),!1,T)}}else{var x=l+"Label";a.hasOwnProperty(x)&&(b=a[x])}return d&&(b="("+b+")",(f||c)&&(b=" "+b),(v||c)&&(b=b+" ")),b})}var Hp=48,TP=57;he.subplotSort=function(e,r){for(var t=Math.min(e.length,r.length)+1,a=0,n=0,i=0;i<t;i++){var o=e.charCodeAt(i)||0,l=r.charCodeAt(i)||0,s=o>=Hp&&o<=TP,u=l>=Hp&&l<=TP;if(s&&(a=10*a+o-Hp),u&&(n=10*n+l-Hp),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Yc=2e9;he.seedPseudoRandom=function(){Yc=2e9};he.pseudoRandom=function(){var e=Yc;return Yc=(69069*Yc+1)%4294967296,Math.abs(Yc-e)<429496729?he.pseudoRandom():Yc/4294967296};he.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=he.extractOption(e,r,"htx","hovertext");if(he.isValidTextValue(n))return a(n);var i=he.extractOption(e,r,"tx","text");if(he.isValidTextValue(i))return a(i)};he.isValidTextValue=function(e){return e||e===0};he.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a<r;a++)t.indexOf(".")!==-1&&(t=t.replace("0%","%"),t=t.replace(".%","%"));return t};he.isHidden=function(e){var r=window.getComputedStyle(e).display;return!r||r==="none"};he.strTranslate=function(e,r){return e||r?"translate("+e+","+r+")":""};he.strRotate=function(e){return e?"rotate("+e+")":""};he.strScale=function(e){return e!==1?"scale("+e+")":""};he.getTextTransform=function(e){var r=e.noCenter,t=e.textX,a=e.textY,n=e.targetX,i=e.targetY,o=e.anchorX||0,l=e.anchorY||0,s=e.rotate,u=e.scale;return u?u>1&&(u=1):u=0,he.strTranslate(n-u*(t+o),i-u*(a+l))+he.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};he.setTransormAndDisplay=function(e,r){e.attr("transform",he.getTextTransform(r)),e.style("display",r.scale?null:"none")};he.ensureUniformFontSize=function(e,r){var t=he.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};he.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};he.bigFont=function(e){return Math.round(1.2*e)};var AP=he.getFirefoxVersion(),ige=AP!==null&&AP<86;he.getPositionFromD3Event=function(){return ige?[Lh.event.layerX,Lh.event.layerY]:[Lh.event.offsetX,Lh.event.offsetY]}});var RP=z(()=>{"use strict";var oge=ke(),EP={"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(S4 in EP)PP=S4.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),oge.addStyleRule(PP,EP[S4]);var PP,S4});var q4=z((yXe,FP)=>{FP.exports=!0});var C4=z((gXe,zP)=>{"use strict";var lge=q4(),L4;typeof window.matchMedia=="function"?L4=!window.matchMedia("(hover: none)").matches:L4=lge;zP.exports=L4});var Ju=z((bXe,D4)=>{"use strict";var Wc=typeof Reflect=="object"?Reflect:null,NP=Wc&&typeof Wc.apply=="function"?Wc.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Gp;Wc&&typeof Wc.ownKeys=="function"?Gp=Wc.ownKeys:Object.getOwnPropertySymbols?Gp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Gp=function(r){return Object.getOwnPropertyNames(r)};function sge(e){console&&console.warn&&console.warn(e)}var BP=Number.isNaN||function(r){return r!==r};function Vt(){Vt.init.call(this)}D4.exports=Vt;D4.exports.once=vge;Vt.EventEmitter=Vt;Vt.prototype._events=void 0;Vt.prototype._eventsCount=0;Vt.prototype._maxListeners=void 0;var IP=10;function Yp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Vt,"defaultMaxListeners",{enumerable:!0,get:function(){return IP},set:function(e){if(typeof e!="number"||e<0||BP(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");IP=e}});Vt.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};Vt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||BP(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 OP(e){return e._maxListeners===void 0?Vt.defaultMaxListeners:e._maxListeners}Vt.prototype.getMaxListeners=function(){return OP(this)};Vt.prototype.emit=function(r){for(var t=[],a=1;a<arguments.length;a++)t.push(arguments[a]);var n=r==="error",i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")NP(s,this,t);else for(var u=s.length,f=VP(s,u),a=0;a<u;++a)NP(f[a],this,t);return!0};function HP(e,r,t,a){var n,i,o;if(Yp(t),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",r,t.listener?t.listener:t),i=e._events),o=i[r]),o===void 0)o=i[r]=t,++e._eventsCount;else if(typeof o=="function"?o=i[r]=a?[t,o]:[o,t]:a?o.unshift(t):o.push(t),n=OP(e),n>0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,sge(l)}return e}Vt.prototype.addListener=function(r,t){return HP(this,r,t,!1)};Vt.prototype.on=Vt.prototype.addListener;Vt.prototype.prependListener=function(r,t){return HP(this,r,t,!0)};function uge(){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 UP(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=uge.bind(a);return n.listener=t,a.wrapFn=n,n}Vt.prototype.once=function(r,t){return Yp(t),this.on(r,UP(this,r,t)),this};Vt.prototype.prependOnceListener=function(r,t){return Yp(t),this.prependListener(r,UP(this,r,t)),this};Vt.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Yp(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():fge(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Vt.prototype.off=Vt.prototype.removeListener;Vt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n<i.length;++n)o=i[n],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=a[r],typeof t=="function")this.removeListener(r,t);else if(t!==void 0)for(n=t.length-1;n>=0;n--)this.removeListener(r,t[n]);return this};function GP(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?cge(n):VP(n,n.length)}Vt.prototype.listeners=function(r){return GP(this,r,!0)};Vt.prototype.rawListeners=function(r){return GP(this,r,!1)};Vt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):YP.call(e,r)};Vt.prototype.listenerCount=YP;function YP(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}Vt.prototype.eventNames=function(){return this._eventsCount>0?Gp(this._events):[]};function VP(e,r){for(var t=new Array(r),a=0;a<r;++a)t[a]=e[a];return t}function fge(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}function cge(e){for(var r=new Array(e.length),t=0;t<r.length;++t)r[t]=e[t].listener||e[t];return r}function vge(e,r){return new Promise(function(t,a){function n(o){e.removeListener(r,i),a(o)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",n),t([].slice.call(arguments))}jP(e,r,i,{once:!0}),r!=="error"&&hge(e,n,{once:!0})})}function hge(e,r,t){typeof e.on=="function"&&jP(e,"error",r,t)}function jP(e,r,t,a){if(typeof e.on=="function")a.once?e.once(r,t):e.on(r,t);else if(typeof e.addEventListener=="function")e.addEventListener(r,function n(i){a.once&&e.removeEventListener(r,n),t(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var Ch=z((xXe,WP)=>{"use strict";var E4=Ju().EventEmitter,dge={init:function(e){if(e._ev instanceof E4)return e;var r=new E4,t=new E4;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(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l<i.length-1;l++)o(i[l]);return a=o(i[l]),a},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}};WP.exports=dge});var $P=z((_Xe,ZP)=>{"use strict";var XP=ke(),pge=As().dfltConfig;function mge(e,r){for(var t=[],a,n=0;n<r.length;n++)a=r[n],a===e?t[n]=a:typeof a=="object"?t[n]=Array.isArray(a)?XP.extendDeep([],a):XP.extendDeepAll({},a):t[n]=a;return t}var Vl={};Vl.add=function(e,r,t,a,n){var i,o;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},o=e.undoQueue.index,e.autoplay){e.undoQueue.inSequence||(e.autoplay=!1);return}!e.undoQueue.sequence||e.undoQueue.beginSequence?(i={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(o,e.undoQueue.queue.length-o,i),e.undoQueue.index+=1):i=e.undoQueue.queue[o-1],e.undoQueue.beginSequence=!1,i&&(i.undo.calls.unshift(r),i.undo.args.unshift(t),i.redo.calls.push(a),i.redo.args.push(n)),e.undoQueue.queue.length>pge.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Vl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Vl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Vl.undo=function(r){var t,a;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,a=0;a<t.undo.calls.length;a++)Vl.plotDo(r,t.undo.calls[a],t.undo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1}};Vl.redo=function(r){var t,a;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,a=0;a<t.redo.calls.length;a++)Vl.plotDo(r,t.redo.calls[a],t.redo.args[a]);r.undoQueue.inSequence=!1,r.autoplay=!1,r.undoQueue.index++}};Vl.plotDo=function(e,r,t){e.autoplay=!0,t=mge(e,t),r.apply(null,t)};ZP.exports=Vl});var P4=z((wXe,JP)=>{"use strict";JP.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var $c=z(Ba=>{"use strict";var Yi=Ar(),Dh=ke(),jp=Gn(),R4=Oc(),yge=P4(),gge=Th(),bge=As().configAttributes,KP=Do(),Ro=Dh.extendDeepAll,Xc=Dh.isPlainObject,xge=Dh.isArrayOrTypedArray,Wp=Dh.nestedProperty,_ge=Dh.valObjectMeta,F4="_isSubplotObj",Xp="_isLinkedToArray",wge="_arrayAttrRegexps",eR="_deprecated",z4=[F4,Xp,wge,eR];Ba.IS_SUBPLOT_OBJ=F4;Ba.IS_LINKED_TO_ARRAY=Xp;Ba.DEPRECATED=eR;Ba.UNDERSCORE_ATTRS=z4;Ba.get=function(){var e={};return Yi.allTypes.forEach(function(r){e[r]=Age(r)}),{defs:{valObjects:_ge,metaKeys:z4.concat(["description","role","editType","impliedEdits"]),editType:{traces:KP.traces,layout:KP.layout},impliedEdits:{}},traces:e,layout:Mge(),frames:kge(),animation:Zc(gge),config:Zc(bge)}};Ba.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(z4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!Ba.isValObject(o)&&Xc(o)&&i!=="impliedEdits"&&Ba.crawl(o,r,n+1,l)}})};Ba.isValObject=function(e){return e&&e.valType!==void 0};Ba.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)xge(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d<c.length;d++)Xc(c[d])&&l(c[d],u+1,v+"["+d+"].")}else Xc(c)&&l(c,u+1,v+".")}return n=e,i="",Ba.crawl(jp,o),e._module&&e._module.attributes&&Ba.crawl(e._module.attributes,o),r};Ba.getTraceValObject=function(e,r){var t=r[0],a=1,n,i,o=e._module;if(o||(o=(Yi.modules[e.type||jp.type.dflt]||{})._module),!o)return!1;if(n=o.attributes,i=n&&n[t],!i){var l=o.basePlotModule;l&&l.attributes&&(i=l.attributes[t])}return i||(i=jp[t]),rR(i,r,a)};Ba.getLayoutValObject=function(e,r){var t=Tge(e,r[0]);return rR(t,r,1)};function Tge(e,r){var t,a,n,i,o=e._basePlotModules;if(o){var l;for(t=0;t<o.length;t++){if(n=o[t],n.attrRegex&&n.attrRegex.test(r)){if(n.layoutAttrOverrides)return n.layoutAttrOverrides;!l&&n.layoutAttributes&&(l=n.layoutAttributes)}var s=n.baseLayoutAttrOverrides;if(s&&r in s)return s[r]}if(l)return l}var u=e._modules;if(u){for(t=0;t<u.length;t++)if(i=u[t].layoutAttributes,i&&r in i)return i[r]}for(a in Yi.componentsRegistry){if(n=Yi.componentsRegistry[a],n.name==="colorscale"&&r.indexOf("coloraxis")===0)return n.layoutAttributes[r];if(!n.schema&&r===n.name)return n.layoutAttributes}return r in R4?R4[r]:!1}function rR(e,r,t){if(!e)return!1;if(e._isLinkedToArray){if(Vp(r[t]))t++;else if(t<r.length)return!1}for(;t<r.length;t++){var a=e[r[t]];if(Xc(a))e=a;else break;if(t===r.length-1)break;if(e._isLinkedToArray){if(t++,!Vp(r[t]))return!1}else if(e.valType==="info_array"){t++;var n=r[t];if(!Vp(n))return!1;var i=e.items;if(Array.isArray(i)){if(n>=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Vp(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Vp(e){return e===Math.round(e)&&e>=0}function Age(e){var r,t;r=Yi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Ro({},jp),i=Ro({},r.attributes);Ba.crawl(i,function(s,u,f,c,v){Wp(n,v).set(void 0),s===void 0&&Wp(i,v).set(void 0)}),Ro(a,n),Yi.traceIs(e,"noOpacity")&&delete a.opacity,Yi.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Yi.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Ro(a,i),t.attributes&&Ro(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Zc(a)};if(r.layoutAttributes){var l={};Ro(l,r.layoutAttributes),o.layoutAttributes=Zc(l)}return r.animatable||Ba.crawl(o,function(s){Ba.isValObject(s)&&"anim"in s&&delete s.anim}),o}function Mge(){var e={},r,t;Ro(e,R4);for(r in Yi.subplotsRegistry)if(t=Yi.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)QP(e,t,t.attr[a]);else{var n=t.attr==="subplot"?t.name:t.attr;QP(e,t,n)}for(r in Yi.componentsRegistry){t=Yi.componentsRegistry[r];var i=t.schema;if(i&&(i.subplots||i.layout)){var o=i.subplots;if(o&&o.xaxis&&!o.yaxis)for(var l in o.xaxis)delete e.yaxis[l];delete e.xaxis.shift,delete e.xaxis.autoshift}else t.name==="colorscale"?Ro(e,t.layoutAttributes):t.layoutAttributes&&Cge(e,t.layoutAttributes,t.name)}return{layoutAttributes:Zc(e)}}function kge(){var e={frames:Ro({},yge)};return Zc(e),e.frames}function Zc(e){return Sge(e),qge(e),Lge(e),e}function Sge(e){function r(t,a,n){!Ba.isValObject(t)&&Xc(t)&&(t.role="object")}Ba.crawl(e,r)}function qge(e){function r(t,a,n){if(t){var i=t[Xp];i&&(delete t[Xp],n[a]={items:{}},n[a].items[i]=t,n[a].role="object")}}Ba.crawl(e,r)}function Lge(e){function r(t){for(var a in t)if(Xc(t[a]))r(t[a]);else if(Array.isArray(t[a]))for(var n=0;n<t[a].length;n++)r(t[a][n]);else t[a]instanceof RegExp&&(t[a]=t[a].toString())}r(e)}function QP(e,r,t){var a=Wp(e,t),n=Ro({},r.layoutAttributes);n[F4]=!0,a.set(n)}function Cge(e,r,t){var a=Wp(e,t);a.set(Ro(a.get()||{},r))}});var Pt=z(Ku=>{"use strict";var Jc=ke(),Dge=Gn(),Fs="templateitemname",N4={name:{valType:"string",editType:"none"}};N4[Fs]={valType:"string",editType:"calc"};Ku.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=N4.name,r[Fs]=N4[Fs],r};Ku.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Jc.coerce(i,{},Dge,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};Ku.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Jc.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Ku.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[aR(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[Fs]=u[Fs];if(!tR(c))return f._template=n,f;for(var v=0;v<i.length;v++){var d=i[v];if(d.name===c)return o[c]=1,f._template=d,f}return f[t]=u[t]||!1,f._template=!1,f}function s(){for(var u=[],f=0;f<i.length;f++){var c=i[f],v=c.name;if(tR(v)&&!o[v]){var d={_template:c,name:v,_input:{_templateitemname:v}};d[Fs]=c[Fs],u.push(d),o[v]=1}}return u}return{newItem:l,defaultItems:s}};function tR(e){return e&&typeof e=="string"}function aR(e){var r=e.length-1;return e.charAt(r)!=="s"&&Jc.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}Ku.arrayDefaultKey=aR;Ku.arrayEditor=function(e,r,t){var a=(Jc.nestedProperty(e,r).get()||[]).length,n=t._index,i=n>=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][Fs]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Jc.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var m=c();for(var y in m)Jc.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var Oa={};Dt(Oa,{AX_ID_PATTERN:()=>zge,AX_NAME_PATTERN:()=>Nge,DFLTRANGEX:()=>Vge,DFLTRANGEY:()=>jge,DRAGGERSIZE:()=>Gge,HOUR_PATTERN:()=>Bge,MINDRAG:()=>Hge,MINZOOM:()=>Uge,REDRAWDELAY:()=>Yge,SUBPLOT_PATTERN:()=>Ige,WEEKDAY_PATTERN:()=>Oge,attrRegex:()=>Pge,clipOnAxisFalseQuery:()=>Xge,idRegex:()=>Ege,layerValue2layerClass:()=>Zge,traceLayerClasses:()=>Wge,xAxisMatch:()=>Rge,yAxisMatch:()=>Fge,zindexSeparator:()=>$ge});var Ege,Pge,Rge,Fge,zge,Nge,Ige,Bge,Oge,Hge,Uge,Gge,Yge,Vge,jge,Wge,Xge,Zge,$ge,Ha=Ct(()=>{"use strict";Nc();Ege={x:ju("x","( domain)?"),y:ju("y","( domain)?")},Pge=ju("[xy]axis"),Rge=ju("xaxis"),Fge=ju("yaxis"),zge=/^[xyz][0-9]*( domain)?$/,Nge=/^[xyz]axis[0-9]*$/,Ige=/^x([0-9]*)y([0-9]*)$/,Bge="hour",Oge="day of week",Hge=8,Uge=20,Gge=20,Yge=50,Vge=[-1,6],jge=[-1,4],Wge=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Xge=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Zge={"above traces":"above","below traces":"below"},$ge="z"});var Ca=z(ai=>{"use strict";var Jge=Ar(),I4=(Ha(),Ne(Oa));ai.id2name=function(r){if(!(typeof r!="string"||!r.match(I4.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};ai.name2id=function(r){if(r.match(I4.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};ai.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(I4.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};ai.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=ai.listIds(e,r),i=new Array(n.length),o;for(o=0;o<n.length;o++){var l=n[o];i[o]=a[l.charAt(0)+"axis"+l.slice(1)]}if(!t){var s=a._subplots.gl3d||[];for(o=0;o<s.length;o++){var u=a[s[o]];r?i.push(u[r+"axis"]):i.push(u.xaxis,u.yaxis,u.zaxis)}}return i};ai.listIds=function(e,r){var t=e._fullLayout;if(!t)return[];var a=t._subplots;return r?a[r+"axis"]:a.xaxis.concat(a.yaxis)};ai.getFromId=function(e,r,t){var a=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]*/,"")),a[ai.id2name(r)]};ai.getFromTrace=function(e,r,t){var a=e._fullLayout,n=null;if(Jge.traceIs(r,"gl3d")){var i=r.scene;i.slice(0,5)==="scene"&&(n=a[i][t+"axis"])}else n=ai.getFromId(e,r[t+"axis"]||t);return n};ai.idSort=function(e,r){var t=e.charAt(0),a=r.charAt(0);return t!==a?t>a?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};ai.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function nR(e,r){if(r&&r.length){for(var t=0;t<r.length;t++)if(r[t][e])return!0}return!1}ai.isLinked=function(e,r){return nR(r,e._axisMatchGroups)||nR(r,e._axisConstraintGroups)}});var zs=z((SXe,iR)=>{"use strict";function Kge(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Qge(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}iR.exports={clearOutlineControllers:Kge,clearOutline:Qge}});var Zp=z((qXe,oR)=>{"use strict";oR.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Kp=z(Jp=>{"use strict";var $p=Ar(),LXe=(Ha(),Ne(Oa)).SUBPLOT_PATTERN;Jp.getSubplotCalcData=function(e,r,t){var a=$p.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o<e.length;o++){var l=e[o],s=l[0].trace;s[n]===t&&i.push(l)}return i};Jp.getModuleCalcData=function(e,r,t){var a=[],n=[],i;if(typeof r=="string"?i=$p.getModule(r).plot:typeof r=="function"?i=r:i=r.plot,!i)return[a,e];for(var o=t,l=0;l<e.length;l++){var s=e[l],u=s[0].trace,f=u.zorder!==void 0;u.visible!==!0||u._length===0||(u._module&&u._module.plot===i&&(!f||u.zorder===o)?a.push(s):n.push(s))}return[a,n]};Jp.getSubplotData=function(r,t,a){if(!$p.subplotsRegistry[t])return[];for(var n=$p.subplotsRegistry[t].attr,i=[],o,l,s,u=0;u<r.length;u++)o=r[u],o[n]===a&&i.push(o);return i}});var fR=z(Qu=>{"use strict";var e3e=Ar(),Kc=ke();Qu.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Qu.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){lR(e,o,n.cache),n.check=function(){if(i){var f=lR(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s<l.length;s++)e._internalOn(l[s],n.check);n.remove=function(){for(var u=0;u<l.length;u++)e._removeInternalListener(l[u],n.check)}}else Kc.log("Unable to automatically bind plot updates to API command"),n.lookupTable={},n.remove=function(){};return n.disable=function(){i=!1},n.enable=function(){i=!0},r&&(r._commandObserver=n),n};Qu.hasSimpleAPICommandBindings=function(e,r,t){var a,n=r.length,i;for(a=0;a<n;a++){var o,l=r[a],s=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!s)return!1;var f=Qu.computeAPICommandBindings(e,s,u);if(f.length!==1)return!1;if(!i)i=f[0],Array.isArray(i.traces)&&i.traces.sort();else{if(o=f[0],o.type!==i.type||o.prop!==i.prop)return!1;if(Array.isArray(i.traces))if(Array.isArray(o.traces)){o.traces.sort();for(var c=0;c<i.traces.length;c++)if(i.traces[c]!==o.traces[c])return!1}else return!1;else if(o.prop!==i.prop)return!1}o=f[0];var v=o.value;if(Array.isArray(v))if(v.length===1)v=v[0];else return!1;t&&(t[v]=a)}return i};function lR(e,r,t){var a,n,i,o=!1;if(r.type==="data")a=e._fullData[r.traces!==null?r.traces[0]:0];else if(r.type==="layout")a=e._fullLayout;else return!1;return n=Kc.nestedProperty(a,r.prop).get(),i=t[r.type]=t[r.type]||{},i.hasOwnProperty(r.prop)&&i[r.prop]!==n&&(o=!0),i[r.prop]=n,{changed:o,value:n}}Qu.executeAPICommand=function(e,r,t){if(r==="skip")return Promise.resolve();var a=e3e.apiMethodRegistry[r],n=[e];Array.isArray(t)||(t=[]);for(var i=0;i<t.length;i++)n.push(t[i]);return a.apply(null,n).catch(function(o){return Kc.warn("API call to Plotly."+r+" rejected.",o),Promise.reject(o)})};Qu.computeAPICommandBindings=function(e,r,t){var a;switch(Array.isArray(t)||(t=[]),r){case"restyle":a=uR(e,t);break;case"relayout":a=sR(e,t);break;case"update":a=uR(e,[t[0],t[2]]).concat(sR(e,[t[1]]));break;case"animate":a=r3e(e,t);break;default:a=[]}return a};function r3e(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 sR(e,r){var t=[],a=r[0],n={};if(typeof a=="string")n[a]=r[1];else if(Kc.isPlainObject(a))n=a;else return t;return B4(n,function(i,o,l){t.push({type:"layout",prop:i,value:l})},"",0),t}function uR(e,r){var t,a,n,i,o=[];if(a=r[0],n=r[1],t=r[2],i={},typeof a=="string")i[a]=n;else if(Kc.isPlainObject(a))i=a,t===void 0&&(t=n);else return o;return t===void 0&&(t=null),B4(i,function(l,s,u){var f,c;if(Array.isArray(u)){c=u.slice();var v=Math.min(c.length,e.data.length);t&&(v=Math.min(v,t.length)),f=[];for(var d=0;d<v;d++)f[d]=t?t[d]:d}else c=u,f=t?t.slice():null;if(f===null)Array.isArray(c)&&(c=c[0]);else if(Array.isArray(f)){if(!Array.isArray(c)){var p=c;c=[];for(var m=0;m<f.length;m++)c[m]=p}c.length=Math.min(f.length,c.length)}o.push({type:"data",prop:l,traces:f,value:c})},"",0),o}function B4(e,r,t,a){Object.keys(e).forEach(function(n){var i=e[n];if(n[0]!=="_"){var o=t+(a>0?".":"")+n;Kc.isPlainObject(i)?B4(i,r,o,a+1):r(o,n,i)}})}});var _a=z((PXe,xR)=>{"use strict";var EXe=Pr(),t3e=Tc().timeFormatLocale,a3e=p5().formatLocale,Eh=Br(),n3e=y5(),i3e=Jv().version,it=Ar(),o3e=$c(),l3e=Pt(),yr=ke(),s3e=qr(),cR=(Kt(),Ne(aa)).BADNUM,ni=Ca(),u3e=zs().clearOutline,f3e=Zp(),O4=Th(),c3e=P4(),v3e=Kp().getModuleCalcData,vR=yr.relinkPrivateKeys,ef=yr._,nr=xR.exports={};yr.extendFlat(nr,it);nr.attributes=Gn();nr.attributes.type.values=nr.allTypes;nr.fontAttrs=Ia();nr.layoutAttributes=Oc();var em=fR();nr.executeAPICommand=em.executeAPICommand;nr.computeAPICommandBindings=em.computeAPICommandBindings;nr.manageCommandObserver=em.manageCommandObserver;nr.hasSimpleAPICommandBindings=em.hasSimpleAPICommandBindings;nr.redrawText=function(e){return e=yr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(it.getComponentMethod("annotations","draw")(e),it.getComponentMethod("legend","draw")(e),it.getComponentMethod("colorbar","draw")(e),r(nr.previousPromises(e)))},300)})};nr.resize=function(e){e=yr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||yr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||yr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,it.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};nr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};nr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=nr.graphJson(e,!1,"object");a.version=i3e;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var h3e=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],d3e=["year","month","dayMonth","dayMonthYear"];nr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||nr.createTransitionData(e),n._dfltTitle={plot:ef(e,"Click to enter Plot title"),subtitle:ef(e,"Click to enter Plot subtitle"),x:ef(e,"Click to enter X axis title"),y:ef(e,"Click to enter Y axis title"),colorbar:ef(e,"Click to enter Colorscale title"),annotation:ef(e,"new text")},n._traceWord=ef(e,"trace");var v=hR(e,h3e);if(a._initialAutoSizeIsDone){var d=a.width,p=a.height;nr.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),nr.sanitizeMargins(n)}else{nr.supplyLayoutGlobalDefaults(i,n,v);var m=!i.width||!i.height,y=n.autosize,b=f.autosizable,T=m&&(y||b);T?nr.plotAutoSize(e,i,n):m&&nr.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=y3e(v,n.separators),n._extraFormat=hR(e,d3e),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=m3e(),x=n._splomAxes={x:{},y:{}},_=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=p3e(o,s),nr.supplyDataDefaults(s,l,i,n);var k=Object.keys(x.x),M=Object.keys(x.y);if(k.length>1&&M.length>1){for(it.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c<k.length;c++)yr.pushUnique(w.xaxis,k[c]);for(c=0;c<M.length;c++)yr.pushUnique(w.yaxis,M[c]);for(var q in _)yr.pushUnique(w.cartesian,q)}if(n._has=nr._hasPlotType.bind(n),o.length===l.length)for(c=0;c<l.length;c++)vR(l[c],o[c]);nr.supplyLayoutModuleDefaults(i,n,l,e._transitionData);var C=n._visibleModules,E=[];for(c=0;c<C.length;c++){var P=C[c].crossTraceDefaults;P&&yr.pushUnique(E,P)}for(c=0;c<E.length;c++)E[c](l,n);n._hasOnlyLargeSploms=n._basePlotModules.length===1&&n._basePlotModules[0].name==="splom"&&k.length>15&&M.length>15&&n.shapes.length===0&&n.images.length===0,nr.linkSubplots(l,n,o,a),nr.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),B=!!(n._has&&n._has("cartesian")),I=R,N=B;I&&!N?a._bgLayer.remove():N&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&u3e({_fullLayout:a}),g3e(l,n),vR(n,a),it.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var H=n._tracePreGUI,G={},Y;for(Y in H)G[Y]="old";for(c=0;c<l.length;c++)Y=l[c].uid,G[Y]||(H[Y]={}),G[Y]="new";for(Y in G)G[Y]==="old"&&delete H[Y];mR(n),it.getComponentMethod("rangeslider","makeData")(n),!t&&u.length===l.length&&nr.supplyDefaultsUpdateCalc(u,l)};nr.supplyDefaultsUpdateCalc=function(e,r){for(var t=0;t<r.length;t++){var a=r[t],n=(e[t]||[])[0];n&&n.trace&&(n.trace=a)}};function p3e(e,r){var t=r.length,a,n=e.length,i=new Array(t),o={};function l(f,c){i[c]=f,o[f]=1}function s(f,c){if(f&&typeof f=="string"&&!o[f])return l(f,c),!0}for(a=0;a<t;a++){var u=r[a].uid;typeof u=="number"&&(u=String(u)),!s(u,a)&&(a<n&&s(e[a].uid,a)||l(yr.randstr(o),a))}return i}function m3e(){var e=it.collectableSubplotTypes,r={},t,a;if(!e){e=[];var n=it.subplotsRegistry;for(var i in n){var o=n[i],l=o.attr;if(l&&(e.push(i),Array.isArray(l)))for(a=0;a<l.length;a++)yr.pushUnique(e,l[a])}}for(t=0;t<e.length;t++)r[e[t]]=[];return r}function hR(e,r){var t=e._context.locale;t||(t="en-US");var a=!1,n={};function i(c){for(var v=!0,d=0;d<r.length;d++){var p=r[d];n[p]||(c[p]?n[p]=c[p]:v=!1)}v&&(a=!0)}for(var o=0;o<2;o++){for(var l=e._context.locales,s=0;s<2;s++){var u=(l[t]||{}).format;if(u&&(i(u),a))break;l=it.localeRegistry}var f=t.split("-")[0];if(a||f===t)break;t=f}return a||i(it.localeRegistry.en.format),n}function y3e(e,r){return e.decimal=r.charAt(0),e.thousands=r.charAt(1),{numberFormat:function(t){try{t=a3e(e).format(yr.adjustFormat(t))}catch(a){return yr.warnBadFormat(t),yr.noFormat}return t},timeFormat:t3e(e).utcFormat}}function g3e(e,r){var t,a=[];r.meta&&(t=r._meta={meta:r.meta,layout:{meta:r.meta}});for(var n=0;n<e.length;n++){var i=e[n];i.meta?a[i.index]=i._meta={meta:i.meta}:r.meta&&(i._meta={meta:r.meta}),r.meta&&(i._meta.layout={meta:r.meta})}a.length&&(t||(t=r._meta={}),t.data=a)}nr.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=[])};nr._hasPlotType=function(e){var r,t=this._basePlotModules||[];for(r=0;r<t.length;r++)if(t[r].name===e)return!0;var a=this._modules||[];for(r=0;r<a.length;r++){var n=a[r].name;if(n===e)return!0;var i=it.modules[n];if(i&&i.categories[e])return!0}return!1};nr.cleanPlot=function(e,r,t,a){var n,i,o=a._basePlotModules||[];for(n=0;n<o.length;n++){var l=o[n];l.clean&&l.clean(e,r,t,a)}var s=a._has&&a._has("gl"),u=r._has&&r._has("gl");s&&!u&&a._glcontainer!==void 0&&(a._glcontainer.selectAll(".gl-canvas").remove(),a._glcontainer.selectAll(".no-webgl").remove(),a._glcanvas=null);var f=!!a._infolayer;e:for(n=0;n<t.length;n++){var c=t[n],v=c.uid;for(i=0;i<e.length;i++){var d=e[i];if(v===d.uid)continue e}f&&a._infolayer.select(".cb"+v).remove()}};nr.linkSubplots=function(e,r,t,a){var n,i,o=a._plots||{},l=r._plots={},s=r._subplots,u={_fullData:e,_fullLayout:r},f=s.cartesian||[];for(n=0;n<f.length;n++){var c=f[n],v=o[c],d=ni.getFromId(u,c,"x"),p=ni.getFromId(u,c,"y"),m;for(v?m=l[c]=v:(m=l[c]={},m.id=c),d._counterAxes.push(p._id),p._counterAxes.push(d._id),d._subplotsWith.push(c),p._subplotsWith.push(c),m.xaxis=d,m.yaxis=p,m._hasClipOnAxisFalse=!1,i=0;i<e.length;i++){var y=e[i];if(y.xaxis===m.xaxis._id&&y.yaxis===m.yaxis._id&&y.cliponaxis===!1){m._hasClipOnAxisFalse=!0;break}}}var b=ni.list(u,null,!0),T;for(n=0;n<b.length;n++){T=b[n];var w=null;T.overlaying&&(w=ni.getFromId(u,T.overlaying),w&&w.overlaying&&(T.overlaying=!1,w=null)),T._mainAxis=w||T,w&&(T.domain=w.domain.slice()),T._anchorAxis=T.anchor==="free"?null:ni.getFromId(u,T.anchor)}for(n=0;n<b.length;n++)if(T=b[n],T._counterAxes.sort(ni.idSort),T._subplotsWith.sort(yr.subplotSort),T._mainSubplot=b3e(T,r),T._counterAxes.length&&(T.automargin&&T.mirror&&T.anchor!=="free"||it.getComponentMethod("rangeslider","isVisible")(T))){var x=1,_=0;for(i=0;i<T._counterAxes.length;i++){var k=ni.getFromId(u,T._counterAxes[i]);x=Math.min(x,k.domain[0]),_=Math.max(_,k.domain[1])}x<_&&(T._counterDomainMin=x,T._counterDomainMax=_)}};function b3e(e,r){var t={_fullLayout:r},a=e._id.charAt(0)==="x",n=e._mainAxis._anchorAxis,i="",o="",l="";if(n&&(l=n._mainAxis._id,i=a?e._id+l:l+e._id),!i||!r._plots[i]){i="";for(var s=e._counterAxes,u=0;u<s.length;u++){var f=s[u],c=a?e._id+f:f+e._id;o||(o=c);var v=ni.getFromId(t,f);if(l&&v.overlaying===l){i=c;break}}}return i||o}nr.supplyDataDefaults=function(e,r,t,a){var n=a._modules,i=a._visibleModules,o=a._basePlotModules,l=0,s=0,u,f,c;function v(T){r.push(T);var w=T._module;w&&(yr.pushUnique(n,w),T.visible===!0&&yr.pushUnique(i,w),yr.pushUnique(o,T._module.basePlotModule),l++,T._input.visible!==!1&&s++)}var d={},p=[],m=(t.template||{}).data||{},y=l3e.traceTemplater(m);for(u=0;u<e.length;u++)c=e[u],f=y.newTrace(c),f.uid=a._traceUids[u],nr.supplyTraceDefaults(c,f,s,a,u),f.index=u,f._input=c,v(f),it.traceIs(f,"carpetAxis")&&(d[f.carpet]=f),it.traceIs(f,"carpetDependent")&&p.push(u);for(u=0;u<p.length;u++)if(f=r[p[u]],!!f.visible){var b=d[f.carpet];if(f._carpet=b,!b||!b.visible){f.visible=!1;continue}f.xaxis=b.xaxis,f.yaxis=b.yaxis}};nr.supplyAnimationDefaults=function(e){e=e||{};var r,t={};function a(n,i){return yr.coerce(e||{},t,O4,n,i)}if(a("mode"),a("direction"),a("fromcurrent"),Array.isArray(e.frame))for(t.frame=[],r=0;r<e.frame.length;r++)t.frame[r]=nr.supplyAnimationFrameDefaults(e.frame[r]||{});else t.frame=nr.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(t.transition=[],r=0;r<e.transition.length;r++)t.transition[r]=nr.supplyAnimationTransitionDefaults(e.transition[r]||{});else t.transition=nr.supplyAnimationTransitionDefaults(e.transition||{});return t};nr.supplyAnimationFrameDefaults=function(e){var r={};function t(a,n){return yr.coerce(e||{},r,O4.frame,a,n)}return t("duration"),t("redraw"),r};nr.supplyAnimationTransitionDefaults=function(e){var r={};function t(a,n){return yr.coerce(e||{},r,O4.transition,a,n)}return t("duration"),t("easing"),r};nr.supplyFrameDefaults=function(e){var r={};function t(a,n){return yr.coerce(e,r,c3e,a,n)}return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),r};nr.supplyTraceDefaults=function(e,r,t,a,n){var i=a.colorway||s3e.defaults,o=i[t%i.length],l;function s(w,x){return yr.coerce(e,r,nr.attributes,w,x)}var u=s("visible");s("type"),s("name",a._traceWord+" "+n),s("uirevision",a.uirevision);var f=nr.getModule(r);if(r._module=f,f){var c=f.basePlotModule,v=c.attr,d=c.attributes;if(v&&d){var p=a._subplots,m="";if(Array.isArray(v))for(l=0;l<v.length;l++){var y=v[l],b=yr.coerce(e,r,d,y);p[y]&&yr.pushUnique(p[y],b),m+=b}else m=yr.coerce(e,r,d,v);p[c.name]&&yr.pushUnique(p[c.name],m)}}if(u&&(s("customdata"),s("ids"),s("meta"),it.traceIs(r,"showLegend")?(yr.coerce(e,r,f.attributes.showlegend?f.attributes:nr.attributes,"showlegend"),yr.coerce(e,r,f.attributes.legend?f.attributes:nr.attributes,"legend"),s("legendwidth"),s("legendgroup"),s("legendgrouptitle.text"),yr.coerce(e,r,f.attributes.legend?f.attributes:nr.attributes,"legendrank"),r._dfltShowLegend=!0):r._dfltShowLegend=!1,f&&f.supplyDefaults(e,r,o,a),it.traceIs(r,"noOpacity")||s("opacity"),it.traceIs(r,"notLegendIsolatable")&&(r.visible=!!r.visible),it.traceIs(r,"noHover")||(r.hovertemplate||yr.coerceHoverinfo(e,r,a),r.type!=="parcats"&&it.getComponentMethod("fx","supplyDefaults")(e,r,o,a)),f&&f.selectPoints)){var T=s("selectedpoints");yr.isTypedArray(T)&&(r.selectedpoints=Array.from(T))}return r};nr.supplyLayoutGlobalDefaults=function(e,r,t){function a(c,v){return yr.coerce(e,r,nr.layoutAttributes,c,v)}var n=e.template;yr.isPlainObject(n)&&(r.template=n,r._template=n.layout,r._dataTemplate=n.data),a("autotypenumbers");var i=yr.coerceFont(a,"font"),o=i.size;yr.coerceFont(a,"title.font",i,{overrideDflt:{size:Math.round(o*1.4)}}),a("title.text",r._dfltTitle.plot),a("title.xref");var l=a("title.yref");a("title.pad.t"),a("title.pad.r"),a("title.pad.b"),a("title.pad.l");var s=a("title.automargin");a("title.x"),a("title.xanchor"),a("title.y"),a("title.yanchor"),a("title.subtitle.text",r._dfltTitle.subtitle),yr.coerceFont(a,"title.subtitle.font",i,{overrideDflt:{size:Math.round(r.title.font.size*.7)}}),s&&(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 u=a("uniformtext.mode");u&&a("uniformtext.minsize"),a("autosize",!(e.width&&e.height)),a("width"),a("height"),a("minreducedwidth"),a("minreducedheight"),a("margin.l"),a("margin.r"),a("margin.t"),a("margin.b"),a("margin.pad"),a("margin.autoexpand"),e.width&&e.height&&nr.sanitizeMargins(r),it.getComponentMethod("grid","sizeDefaults")(e,r),a("paper_bgcolor"),a("separators",t.decimal+t.thousands),a("colorway"),a("datarevision");var f=a("uirevision");a("editrevision",f),a("selectionrevision",f),it.getComponentMethod("modebar","supplyLayoutDefaults")(e,r),it.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,r,a),it.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,r,a),a("meta"),yr.isPlainObject(e.transition)&&(a("transition.duration"),a("transition.easing"),a("transition.ordering")),it.getComponentMethod("calendars","handleDefaults")(e,r,"calendar"),it.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,r,a),yr.coerce(e,r,f3e,"scattermode")};function Qp(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}nr.plotAutoSize=function(r,t,a){var n=r._context||{},i=n.frameMargins,o,l,s=yr.isPlotDiv(r);if(s&&r.emit("plotly_autosize"),n.fillFrame)o=window.innerWidth,l=window.innerHeight,document.body.style.overflow="hidden";else{var u=s?window.getComputedStyle(r):{};if(o=Qp(u.width)||Qp(u.maxWidth)||a.width,l=Qp(u.height)||Qp(u.maxHeight)||a.height,Eh(i)&&i>0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=nr.layoutAttributes.width.min,v=nr.layoutAttributes.height.min;o<c&&(o=c),l<v&&(l=v);var d=!t.width&&Math.abs(a.width-o)>1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),nr.sanitizeMargins(a)};nr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=it.componentsRegistry,i=r._basePlotModules,o,l,s,u=it.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(it.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(yr.subplotSort);for(l=0;l<i.length;l++)s=i[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t);var c=r._modules;for(l=0;l<c.length;l++)s=c[l],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t);for(o in n)s=n[o],s.supplyLayoutDefaults&&s.supplyLayoutDefaults(e,r,t)};nr.purge=function(e){var r=e._fullLayout||{};r._glcontainer!==void 0&&(r._glcontainer.selectAll(".gl-canvas").remove(),r._glcontainer.remove(),r._glcanvas=null),r._modeBar&&r._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),yr.clearThrottle(),yr.clearResponsive(e),delete e._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()};nr.style=function(e){var r=e._fullLayout._visibleModules,t=[],a;for(a=0;a<r.length;a++){var n=r[a];n.style&&yr.pushUnique(t,n.style)}for(a=0;a<t.length;a++)t[a](e)};nr.sanitizeMargins=function(e){if(!(!e||!e.margin)){var r=e.width,t=e.height,a=e.margin,n=r-(a.l+a.r),i=t-(a.t+a.b),o;n<0&&(o=(r-1)/(a.l+a.r),a.l=Math.floor(o*a.l),a.r=Math.floor(o*a.r)),i<0&&(o=(t-1)/(a.t+a.b),a.t=Math.floor(o*a.t),a.b=Math.floor(o*a.b))}};nr.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};nr.allowAutoMargin=function(e,r){e._fullLayout._pushmarginIds[r]=1};function mR(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 yR=2,gR=2;nr.autoMargin=function(e,r,t){var a=e._fullLayout,n=a.width,i=a.height,o=a.margin,l=a.minreducedwidth,s=a.minreducedheight,u=yr.constrain(n-o.l-o.r,yR,l),f=yr.constrain(i-o.t-o.b,gR,s),c=Math.max(0,n-u),v=Math.max(0,i-f),d=a._pushmargin,p=a._pushmarginIds;if(o.autoexpand!==!1){if(!t)delete d[r],delete p[r];else{var m=t.pad;if(m===void 0&&(m=Math.min(12,o.l,o.r,o.t,o.b)),c){var y=(t.l+t.r)/c;y>1&&(t.l/=y,t.r/=y)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var T=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,_=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:T,size:t.l+m},r:{val:w,size:t.r+m},b:{val:_,size:t.b+m},t:{val:x,size:t.t+m}},p[r]=1}if(!a._replotting)return nr.doAutoMargin(e)}};function x3e(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=ni.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}nr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),mR(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=yr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in v)d[y]||delete v[y];var b=e._fullLayout._reservedMargin;for(var T in b)for(var w in b[T]){var x=b[T][w];o[w]=Math.max(o[w],x)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var _ in o){var k=0;for(var M in v)M!=="base"&&Eh(v[M][_].size)&&(k=v[M][_].size>k?v[M][_].size:k);var q=Math.max(0,i[_]-k);o[_]=Math.max(0,o[_]-q)}for(var C in v){var E=v[C].l||{},P=v[C].b||{},R=E.val,B=E.size,I=P.val,N=P.size,H=t-o.r-o.l,G=a-o.t-o.b;for(var Y in v){if(Eh(B)&&v[Y].r){var j=v[Y].r.val,W=v[Y].r.size;if(j>R){var V=(B*j+(W-H)*R)/(j-R),J=(W*(1-R)+(B-H)*(1-j))/(j-R);V+J>s+u&&(s=V,u=J)}}if(Eh(N)&&v[Y].t){var re=v[Y].t.val,le=v[Y].t.size;if(re>I){var ne=(N*re+(le-G)*I)/(re-I),$=(le*(1-I)+(N-G)*(1-re))/(re-I);ne+$>c+f&&(c=ne,f=$)}}}}}var ce=yr.constrain(t-i.l-i.r,yR,p),te=yr.constrain(a-i.t-i.b,gR,m),ge=Math.max(0,t-ce),se=Math.max(0,a-te);if(ge){var oe=(s+u)/ge;oe>1&&(s/=oe,u/=oe)}if(se){var Ae=(c+f)/se;Ae>1&&(c/=Ae,f/=Ae)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(nr.didMarginChange(l,n)||x3e(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Pe=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<Pe)return it.call("_doPlot",e);r._size=l,yr.warn("Too many auto-margin redraws.")}_3e(e)};function _3e(e){var r=ni.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a<r.length;a++){var n=r[a][t];n&&n()}})}var dR=["l","r","t","b","p","w","h"];nr.didMarginChange=function(e,r){for(var t=0;t<dR.length;t++){var a=dR[t],n=e[a],i=r[a];if(!Eh(n)||Math.abs(i-n)>1)return!0}return!1};nr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&nr.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function s(c,v){if(typeof c=="function")return v?"_function_":null;if(yr.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){v&&(d[b]="_function");return}d[b]=s(c[b],v)}}),d}var p=Array.isArray(c),m=yr.isTypedArray(c);if((p||m)&&c.dtype&&c.shape){var y=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:yr.isArrayBuffer(y)?n3e.encode(y):y},v)}return p?c.map(function(b){return s(b,v)}):m?yr.simpleMap(c,yr.identity):yr.isJSDate(c)?yr.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var v=s(c);return r&&delete v.fit,v})};if(!r&&(u.layout=s(o),a)){var f=o._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(u.frames=s(l)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};nr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t<r.length;t++)switch(a=r[t],a.type){case"replace":n=a.value;var l=(i[a.index]||{}).name,s=n.name;i[a.index]=o[s]=n,s!==l&&(delete o[l],o[s]=n);break;case"insert":n=a.value,o[n.name]=n,i.splice(a.index,0,n);break;case"delete":n=i[a.index],delete o[n.name],i.splice(a.index,1);break}return Promise.resolve()};nr.computeFrame=function(e,r){var t=e._transitionData._frameHash,a,n,i,o;if(!r)throw new Error("computeFrame must be given a string frame name");var l=t[r.toString()];if(!l)return!1;for(var s=[l],u=[l.name];l.baseframe&&(l=t[l.baseframe.toString()])&&u.indexOf(l.name)===-1;)s.push(l),u.push(l.name);for(var f={};l=s.pop();)if(l.layout&&(f.layout=nr.extendLayout(f.layout,l.layout)),l.data){if(f.data||(f.data=[]),n=l.traces,!n)for(n=[],a=0;a<l.data.length;a++)n[a]=a;for(f.traces||(f.traces=[]),a=0;a<l.data.length;a++)i=n[a],i!=null&&(o=f.traces.indexOf(i),o===-1&&(o=f.data.length,f.traces[o]=i),f.data[o]=nr.extendTrace(f.data[o],l.data[a]))}return f};nr.recomputeFrameHash=function(e){for(var r=e._transitionData._frameHash={},t=e._transitionData._frames,a=0;a<t.length;a++){var n=t[a];n&&n.name&&(r[n.name]=n)}};nr.extendObjectWithContainers=function(e,r,t){var a,n,i,o,l,s,u,f,c=yr.extendDeepNoArrays({},r||{}),v=yr.expandObjectPaths(c),d={};if(t&&t.length)for(i=0;i<t.length;i++)a=yr.nestedProperty(v,t[i]),n=a.get(),n===void 0?yr.nestedProperty(d,t[i]).set(null):(a.set(null),yr.nestedProperty(d,t[i]).set(n));if(e=yr.extendDeepNoArrays(e||{},v),t&&t.length){for(i=0;i<t.length;i++)if(l=yr.nestedProperty(d,t[i]),u=l.get(),!!u){for(s=yr.nestedProperty(e,t[i]),f=s.get(),Array.isArray(f)||(f=[],s.set(f)),o=0;o<u.length;o++){var p=u[o];p===null?f[o]=null:f[o]=nr.extendObjectWithContainers(f[o],p)}s.set(f)}}return e};nr.dataArrayContainers=["dimensions"];nr.layoutArrayContainers=it.layoutArrayContainers;nr.extendTrace=function(e,r){return nr.extendObjectWithContainers(e,r,nr.dataArrayContainers)};nr.extendLayout=function(e,r){return nr.extendObjectWithContainers(e,r,nr.layoutArrayContainers)};nr.transition=function(e,r,t,a,n,i){var o={redraw:n.redraw},l={},s=[];return o.prepareFn=function(){for(var u=Array.isArray(r)?r.length:0,f=a.slice(0,u),c=0;c<f.length;c++){var v=f[c],d=e._fullData[v],p=d._module;if(p){if(p.animatable){var m=p.basePlotModule.name;l[m]||(l[m]=[]),l[m].push(v)}e.data[f[c]]=nr.extendTrace(e.data[f[c]],r[c])}}var y=yr.expandObjectPaths(yr.extendDeepNoArrays({},t)),b=/^[xy]axis[0-9]*$/;for(var T in y)b.test(T)&&delete y[T].range;nr.extendLayout(e.layout,y),delete e.calcdata,nr.supplyDefaults(e),nr.doCalcdata(e);var w=yr.expandObjectPaths(t);if(w){var x=e._fullLayout._plots;for(var _ in x){var k=x[_],M=k.xaxis,q=k.yaxis,C=M.range.slice(),E=q.range.slice(),P=null,R=null,B=null,I=null;Array.isArray(w[M._name+".range"])?P=w[M._name+".range"].slice():Array.isArray((w[M._name]||{}).range)&&(P=w[M._name].range.slice()),Array.isArray(w[q._name+".range"])?R=w[q._name+".range"].slice():Array.isArray((w[q._name]||{}).range)&&(R=w[q._name].range.slice()),C&&P&&(M.r2l(C[0])!==M.r2l(P[0])||M.r2l(C[1])!==M.r2l(P[1]))&&(B={xr0:C,xr1:P}),E&&R&&(q.r2l(E[0])!==q.r2l(R[0])||q.r2l(E[1])!==q.r2l(R[1]))&&(I={yr0:E,yr1:R}),(B||I)&&s.push(yr.extendFlat({plotinfo:k},B,I))}}return Promise.resolve()},o.runFn=function(u){var f,c=e._fullLayout._basePlotModules,v=s.length,d;if(t)for(d=0;d<c.length;d++)c[d].transitionAxes&&c[d].transitionAxes(e,s,i,u);v?(f=yr.extendFlat({},i),f.duration=0,delete l.cartesian):f=i;for(var p in l){var m=l[p],y=e._fullData[m[0]]._module;y.basePlotModule.plot(e,m,f,u)}},bR(e,i,o)};nr.transitionFromReact=function(e,r,t,a){var n=e._fullLayout,i=n.transition,o={},l=[];return o.prepareFn=function(){var s=n._plots;o.redraw=!1,r.anim==="some"&&(o.redraw=!0),t.anim==="some"&&(o.redraw=!0);for(var u in s){var f=s[u],c=f.xaxis,v=f.yaxis,d=a[c._name].range.slice(),p=a[v._name].range.slice(),m=c.range.slice(),y=v.range.slice();c.setScale(),v.setScale();var b=null,T=null;(c.r2l(d[0])!==c.r2l(m[0])||c.r2l(d[1])!==c.r2l(m[1]))&&(b={xr0:d,xr1:m}),(v.r2l(p[0])!==v.r2l(y[0])||v.r2l(p[1])!==v.r2l(y[1]))&&(T={yr0:p,yr1:y}),(b||T)&&l.push(yr.extendFlat({plotinfo:f},b,T))}return Promise.resolve()},o.runFn=function(s){for(var u=e._fullData,f=e._fullLayout,c=f._basePlotModules,v,d,p,m=[],y=0;y<u.length;y++)m.push(y);function b(){if(e._fullLayout)for(var w=0;w<c.length;w++)c[w].transitionAxes&&c[w].transitionAxes(e,l,v,s)}function T(){if(e._fullLayout)for(var w=0;w<c.length;w++)c[w].plot(e,p,d,s)}l.length&&r.anim?i.ordering==="traces first"?(v=yr.extendFlat({},i,{duration:0}),p=m,d=i,setTimeout(b,i.duration),T()):(v=i,p=null,d=yr.extendFlat({},i,{duration:0}),setTimeout(T,v.duration),b()):l.length?(v=i,b()):r.anim&&(p=m,d=i,T())},bR(e,i,o)};function bR(e,r,t){var a=!1;function n(c){var v=Promise.resolve();if(!c)return v;for(;c.length;)v=v.then(c.shift());return v}function i(c){if(c)for(;c.length;)c.shift()}function o(){return e.emit("plotly_transitioning",[]),new Promise(function(c){e._transitioning=!0,r.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return it.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return it.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[nr.previousPromises,s,t.prepareFn,nr.rehover,nr.reselect,o],f=yr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}nr.doCalcdata=function(e,r){var t=ni.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l<a.length;l++)if(Array.isArray(r)&&r.indexOf(l)===-1){s[l]=u[l];continue}for(l=0;l<a.length;l++)i=a[l],i._arrayAttrs=o3e.findArrayAttributes(i),i._extremes={};var f=n._subplots.polar||[];for(l=0;l<f.length;l++)t.push(n[f[l]].radialaxis,n[f[l]].angularaxis);for(var c in n._colorAxes){var v=n[c];v.cauto!==!1&&(delete v.cmin,delete v.cmax)}function d(m,y){if(i=a[m],o=i._module,!!o.isContainer===y){var b=[];i.visible===!0&&i._length!==0&&o&&o.calc&&(b=o.calc(e,i)),(!Array.isArray(b)||!b[0])&&(b=[{x:cR,y:cR}]),b[0].t||(b[0].t={}),b[0].trace=i,s[m]=b}}for(A3e(t,a,n),l=0;l<a.length;l++)d(l,!0);for(l=0;l<a.length;l++)d(l,!1);pR(e);var p=T3e(t,e);if(p.length){for(n._numBoxes=0,n._numViolins=0,l=0;l<p.length;l++)d(p[l],!0);for(l=0;l<p.length;l++)d(p[l],!1);pR(e)}it.getComponentMethod("fx","calc")(e),it.getComponentMethod("errorbars","calc")(e)};var w3e=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function T3e(e,r){var t=[],a,n,i,o,l;function s(Y,j,W){var V=j._id.charAt(0);if(Y==="histogram2dcontour"){var J=j._counterAxes[0],re=ni.getFromId(r,J),le=V==="x"||J==="x"&&re.type==="category",ne=V==="y"||J==="y"&&re.type==="category";return function($,ce){return $===0||ce===0||le&&$===W[ce].length-1||ne&&ce===W.length-1?-1:(V==="y"?ce:$)-1}}else return function($,ce){return V==="y"?ce:$}}var u={min:function(Y){return yr.aggNums(Math.min,null,Y)},max:function(Y){return yr.aggNums(Math.max,null,Y)},sum:function(Y){return yr.aggNums(function(j,W){return j+W},null,Y)},total:function(Y){return yr.aggNums(function(j,W){return j+W},null,Y)},mean:function(Y){return yr.mean(Y)},"geometric mean":function(Y){return yr.geometricMean(Y)},median:function(Y){return yr.median(Y)}};function f(Y,j){return Y[1]-j[1]}function c(Y,j){return j[1]-Y[1]}for(a=0;a<e.length;a++){var v=e[a];if(v.type==="category"){var d=v.categoryorder.match(w3e);if(d){var p=d[1],m=d[2],y=v._id.charAt(0),b=y==="x",T=[];for(n=0;n<v._categories.length;n++)T.push([v._categories[n],[]]);for(n=0;n<v._traceIndices.length;n++){var w=v._traceIndices[n],x=r._fullData[w];if(x.visible===!0){var _=x.type;it.traceIs(x,"histogram")&&(delete x._xautoBinFinished,delete x._yautoBinFinished);var k=_==="splom",M=_==="scattergl",q=r.calcdata[w];for(i=0;i<q.length;i++){var C=q[i],E,P;if(k){var R=x._axesDim[v._id];if(!b){var B=x._diag[R][0];B&&(v=r._fullLayout[ni.id2name(B)])}var I=C.trace.dimensions[R].values;for(o=0;o<I.length;o++)for(E=v._categoriesMap[I[o]],l=0;l<C.trace.dimensions.length;l++)if(l!==R){var N=C.trace.dimensions[l];T[E][1].push(N.values[o])}}else if(M){for(o=0;o<C.t.x.length;o++)b?(E=C.t.x[o],P=C.t.y[o]):(E=C.t.y[o],P=C.t.x[o]),T[E][1].push(P);C.t&&C.t._scene&&delete C.t._scene.dirty}else if(C.hasOwnProperty("z")){P=C.z;var H=s(x.type,v,P);for(o=0;o<P.length;o++)for(l=0;l<P[o].length;l++)E=H(l,o),E+1&&T[E][1].push(P[o][l])}else{if(E=C.p,E===void 0&&(E=C[y]),isNaN(E)||E<0)continue;for(P=C.s,P===void 0&&(P=C.v),P===void 0&&(P=b?C.y:C.x),Array.isArray(P)||(P===void 0?P=[]:P=[P]),o=0;o<P.length;o++)T[E][1].push(P[o])}}}}v._categoriesValue=T;var G=[];for(n=0;n<T.length;n++)G.push([T[n][0],u[p](T[n][1])]);G.sort(m==="descending"?c:f),v._categoriesAggregatedValue=G,v._initialCategories=G.map(function(Y){return Y[0]}),t=t.concat(v.sortByInitialCategories())}}}return t}function A3e(e,r,t){var a={};function n(s){s.clearCalc(),s.type==="multicategory"&&s.setupMultiCategory(r),a[s._id]=1}yr.simpleMap(e,n);for(var i=t._axisMatchGroups||[],o=0;o<i.length;o++)for(var l in i[o])a[l]||n(t[ni.id2name(l)])}function pR(e){var r=e._fullLayout,t=r._visibleModules,a={},n,i,o;for(i=0;i<t.length;i++){var l=t[i],s=l.crossTraceCalc;if(s){var u=l.basePlotModule.name;a[u]?yr.pushUnique(a[u],s):a[u]=[s]}}for(o in a){var f=a[o],c=r._subplots[o];if(Array.isArray(c))for(n=0;n<c.length;n++){var v=c[n],d=o==="cartesian"?r._plots[v]:r[v];for(i=0;i<f.length;i++)f[i](e,d,v)}else for(i=0;i<f.length;i++)f[i](e)}}nr.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};nr.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};nr.reselect=function(e){var r=e._fullLayout,t=(e.layout||{}).selections,a=r._previousSelections;r._previousSelections=t;var n=r._reselect||JSON.stringify(t)!==JSON.stringify(a);it.getComponentMethod("selections","reselect")(e,n)};nr.generalUpdatePerTraceModule=function(e,r,t,a){var n=r.traceHash,i={},o;for(o=0;o<t.length;o++){var l=t[o],s=l[0].trace;s.visible&&(i[s.type]=i[s.type]||[],i[s.type].push(l))}for(var u in n)if(!i[u]){var f=n[u][0],c=f[0].trace;c.visible=!1,i[u]=[f]}for(var v in i){var d=i[v],p=d[0][0].trace._module;p.plot(e,r,yr.filterVisible(d),a)}r.traceHash=i};nr.plotBasePlot=function(e,r,t,a,n){var i=it.getModule(e),o=v3e(r.calcdata,i)[0];i.plot(r,o,a,n)};nr.cleanBasePlot=function(e,r,t,a,n){var i=n._has&&n._has(e),o=t._has&&t._has(e);i&&!o&&n["_"+e+"layer"].selectAll("g.trace").remove()}});var jl={};Dt(jl,{svg:()=>_R,svgAttrs:()=>k3e,xlink:()=>wR,xmlns:()=>M3e});var M3e,_R,wR,k3e,Wl=Ct(()=>{"use strict";M3e="http://www.w3.org/2000/xmlns/",_R="http://www.w3.org/2000/svg",wR="http://www.w3.org/1999/xlink",k3e={xmlns:_R,"xmlns:xlink":wR}});var sn={};Dt(sn,{CAP_SHIFT:()=>D3e,FROM_BL:()=>S3e,FROM_BR:()=>L3e,FROM_TL:()=>q3e,LINE_SPACING:()=>C3e,MID_SHIFT:()=>E3e,OPPOSITE_SIDE:()=>P3e});var S3e,q3e,L3e,C3e,D3e,E3e,P3e,un=Ct(()=>{"use strict";S3e={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},q3e={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},L3e={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},C3e=1.3,D3e=.7,E3e=.35,P3e={left:"right",right:"left",top:"bottom",bottom:"top"}});var Da=z(Ln=>{"use strict";var ha=Pr(),Vi=ke(),R3e=Vi.strTranslate,H4=(Wl(),Ne(jl)),F3e=(un(),Ne(sn)).LINE_SPACING,z3e=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,Y4=e=>e?e.match(z3e):null;Ln.matchTex=Y4;var N3e=e=>{var r=Y4(e);return!!r&&!r[1]&&!r[3]};Ln.isPureTex=N3e;function qR(e,r,t,a,n,i,o,l){var s=a.select("g"),u=s.node().getBoundingClientRect(),f=u.width,c=u.height,v=o===void 0?f:o,d=l===void 0?c:l;(f>v||c>d)&&(a.style("overflow","hidden"),u=a.node().getBoundingClientRect(),f=u.width,c=u.height);var p=+e.attr("x"),m=+e.attr("y"),y=i||e.node().getBoundingClientRect().height,b=-y/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,p,m]+")"+R3e(-f/2,b-c/2)}):r[0]==="l"?m=b-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(p=0,m=b):(p=p-f*(n==="middle"?.5:n==="end"?1:0),m=m+b-c/2),a.attr({x:p,y:m})}function I3e(e){e.selectAll("a").each(function(){var r=ha.select(this);["href","xlink:href"].forEach(function(t){var a=r.attr(t);a&&r.attr(t,W4(a)||null)})})}Ln.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&Y4(a);n&&!U3e()&&(n=null);var i=ha.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=K3e(e.node(),a);s&&e.style("pointer-events","all"),Ln.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");G3e(n[2],f,function(v,d,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),s();return}e.style("display","none");var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(m.node()),I3e(m),d&&d.node()&&m.node().insertBefore(d.node().cloneNode(!0),m.node().firstChild);var b=p.width,T=p.height;m.attr({class:o,height:T,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var w=e.node().style.fill||"black",x=m.select("g");x.attr({fill:w,stroke:w}),qR(e,o,y,m,c,u,b,T),t&&t.call(e,y),s(y)})})):l(),e};Ln.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=ha.select(e.node().parentNode),a=t.select("g."+r+"-group"),n=a.select("svg."+r);if(!(a.empty()||n.empty())){var i=e.attr("text-anchor"),o=parseInt(e.node().style.fontSize,10);qR(e,r,a,n,i,o)}}};Ln.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",a=ha.select(r.parentNode).select("g."+t+"-group");return a.empty()?r:a.node()};var B3e=/(<|&lt;|&#60;)/g,O3e=/(>|&gt;|&#62;)/g;function H3e(e){return e.replace(B3e,"\\lt ").replace(O3e,"\\gt ")}var U4=null,LR=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,TR=!1,AR=!1;function U3e(){let e=LR();return e===3||e===4?!0:(e===null?TR||(TR=!0,Vi.warn("MathJax is not loaded. Math equations will not be rendered.")):AR||(AR=!0,Vi.warn("Unsupported MathJax version:",MathJax.version)),!1)}function G3e(e,r,t){let a=LR();var n;let i=function(){if(!U4){let u=MathJax._.output.svg_ts.SVG,f=Vi.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=Vi.extendFlat({},f.linebreaks,{inline:!1})),U4=MathJax._.mathjax.mathjax.document(document,Vi.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+Vi.randstr({},64);n=ha.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=H3e(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return U4.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let l=n.select(".MathJax"),s=!l.empty()&&n.select("svg").node();if(!s)Vi.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=l.select("defs");t(l,f,u)}n.remove()};Promise.resolve().then(i).then(o).catch(l=>{Vi.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var CR={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"},Y3e={sub:"0.3em",sup:"-0.6em"},V3e={sub:"-0.21em",sup:"0.42em"},MR="\u200B",kR=["http:","https:","mailto:","",void 0,":"],DR=Ln.NEWLINES=/(\r\n?|\n)/g,V4=/(<[^<>]*>)/,j4=/<(\/?)([^ >]*)(\s+(.*))?>/i,j3e=/<br(\s+.*)?>/i;Ln.BR_TAG_ALL=/<br(\s+.*)?>/gi;var ER=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,PR=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,RR=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,W3e=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function rf(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&rm(a)}var X3e=/(^|;)\s*color:/;Ln.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(V4),l=[],s="",u=0,f=0;f<o.length;f++){var c=o[f],v=c.match(j4),d=v&&v[2].toLowerCase();if(d)a.indexOf(d)!==-1&&(l.push(c),s=d);else{var p=c.length;if(u+p<t)l.push(c),u+=p;else if(u<t){var m=t-u;s&&(s!=="br"||m<=i||p<=i)&&l.pop(),t>i?l.push(c.slice(0,Math.max(0,m-i))+n):l.push(c.slice(0,m));break}s=""}}return l.join("")};var Z3e={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},$3e=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function rm(e){return e.replace($3e,function(r,t){var a;return t.charAt(0)==="#"?a=J3e(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Z3e[t],a||r})}Ln.convertEntities=rm;function J3e(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 K3e(e,r){r=r.replace(DR," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(H4.svg,"tspan");ha.select(k).attr({class:"line",dy:i*F3e+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var q=1;q<M.length;q++)l(M[q])}function l(k){var M=k.type,q={},C;if(M==="a"){C="a";var E=k.target,P=k.href,R=k.popup;P&&(q={"xlink:xlink:show":E==="_blank"||E.charAt(0)!=="_"?"new":"replace",target:E,"xlink:xlink:href":P},R&&(q.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+R+'");return false;'))}else C="tspan";k.style&&(q.style=k.style);var B=document.createElementNS(H4.svg,C);if(M==="sup"||M==="sub"){s(n,MR),n.appendChild(B);var I=document.createElementNS(H4.svg,"tspan");s(I,MR),ha.select(I).attr("dy",V3e[M]),q.dy=Y3e[M],n.appendChild(B),n.appendChild(I)}else n.appendChild(B);ha.select(B).attr(q),n=k.node=B,a.push(k)}function s(k,M){k.appendChild(document.createTextNode(M))}function u(k){if(a.length===1){Vi.log("Ignoring unexpected end tag </"+k+">.",r);return}var M=a.pop();k!==M.type&&Vi.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=j3e.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(V4),v=0;v<c.length;v++){var d=c[v],p=d.match(j4),m=p&&p[2].toLowerCase(),y=CR[m];if(m==="br")o();else if(y===void 0)s(n,rm(d));else if(p[1])u(m);else{var b=p[4],T={type:m},w=rf(b,ER);if(w?(w=w.replace(X3e,"$1 fill:"),y&&(w+=";"+y)):y&&(w=y),w&&(T.style=w),m==="a"){t=!0;var x=rf(b,PR);if(x){var _=W4(x);_&&(T.href=_,T.target=rf(b,RR)||"_blank",T.popup=rf(b,W3e))}}l(T)}}return t}function W4(e){var r=encodeURI(decodeURI(e)),t=document.createElement("a"),a=document.createElement("a");t.href=e,a.href=r;var n=t.protocol,i=a.protocol;return kR.indexOf(n)!==-1&&kR.indexOf(i)!==-1?r:""}Ln.sanitizeHTML=function(r){r=r.replace(DR," ");for(var t=document.createElement("p"),a=t,n=[],i=r.split(V4),o=0;o<i.length;o++){var l=i[o],s=l.match(j4),u=s&&s[2].toLowerCase();if(u in CR)if(s[1])n.length&&(a=n.pop());else{var f=s[4],c=rf(f,ER),v=c?{style:c}:{};if(u==="a"){var d=rf(f,PR);if(d){var p=W4(d);if(p){v.href=p;var m=rf(f,RR);m&&(v.target=m)}}}var y=document.createElement(u);a.appendChild(y),ha.select(y).attr(v),a=y,n.push(y)}else a.appendChild(document.createTextNode(rm(l)))}var b="innerHTML";return t[b]};Ln.lineCount=function(r){return r.selectAll("tspan.line").size()||1};Ln.positionText=function(r,t,a){return r.each(function(){var n=ha.select(this);function i(s,u){return u===void 0?(u=n.attr(s),u===null&&(n.attr(s,0),u=0)):n.attr(s,u),u}var o=i("x",t),l=i("y",a);this.nodeName==="text"&&n.selectAll("tspan.line").attr({x:o,y:l})})};function SR(e,r,t){var a=t.horizontalAlign,n=t.verticalAlign||"top",i=e.node().getBoundingClientRect(),o=r.node().getBoundingClientRect(),l,s,u;return n==="bottom"?s=function(){return i.bottom-l.height}:n==="middle"?s=function(){return i.top+(i.height-l.height)/2}:s=function(){return i.top},a==="right"?u=function(){return i.right-l.width}:a==="center"?u=function(){return i.left+(i.width-l.width)/2}:u=function(){return i.left},function(){l=this.node().getBoundingClientRect();var f=u()-o.left,c=s()-o.top,v=t.gd||{};if(t.gd){v._fullLayout._calcInverseTransform(v);var d=Vi.apply3DTransform(v._fullLayout._invTransform)(f,c);f=d[0],c=d[1]}return this.style({top:c+"px",left:f+"px","z-index":1e3}),this}}var G4="1px ";Ln.makeTextShadow=function(e){var r=G4,t=G4,a=G4;return r+t+a+e+", -"+r+"-"+t+a+e+", "+r+"-"+t+a+e+", -"+r+t+a+e};Ln.makeEditable=function(e,r){var t=r.gd,a=r.delegate,n=ha.dispatch("edit","input","cancel"),i=a||e;if(e.style({"pointer-events":a?"none":"all"}),e.size()!==1)throw new Error("boo");function o(){s(),e.style({opacity:0});var u=i.attr("class"),f;u?f="."+u.split(" ")[0]+"-math-group":f="[class*=-math-group]",f&&ha.select(e.node().parentNode).select(f).style({opacity:0})}function l(u){var f=u.node(),c=document.createRange();c.selectNodeContents(f);var v=window.getSelection();v.removeAllRanges(),v.addRange(c),f.focus()}function s(){var u=ha.select(t),f=u.select(".svg-container"),c=f.append("div"),v=e.node().style,d=parseFloat(v.fontSize||12),p=r.text;p===void 0&&(p=e.attr("data-unformatted")),c.classed("plugin-editable editable",!0).style({position:"absolute","font-family":v.fontFamily||"Arial","font-size":d,color:r.fill||v.fill||"black",opacity:1,"background-color":r.background||"transparent",outline:"#ffffff33 1px solid",margin:[-d/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(p).call(SR(e,f,r)).on("blur",function(){t._editing=!1,e.text(this.textContent).style({opacity:1});var m=ha.select(this).attr("class"),y;m?y="."+m.split(" ")[0]+"-math-group":y="[class*=-math-group]",y&&ha.select(e.node().parentNode).select(y).style({opacity:0});var b=this.textContent;ha.select(this).transition().duration(0).remove(),ha.select(document).on("mouseup",null),n.edit.call(e,b)}).on("focus",function(){var m=this;t._editing=!0,ha.select(document).on("mouseup",function(){if(ha.event.target===m)return!1;document.activeElement===c.node()&&c.node().blur()})}).on("keyup",function(){ha.event.which===27?(t._editing=!1,e.style({opacity:1}),ha.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),n.cancel.call(e,this.textContent)):(n.input.call(e,this.textContent),ha.select(this).call(SR(e,f,r)))}).on("keydown",function(){ha.event.which===13&&this.blur()}).call(l)}return r.immediate?o():i.on("click",o),ha.rebind(e,n,"on")}});var xi=z((FXe,OR)=>{"use strict";var Q3e=Pr(),Rh=Br(),tm=ke(),tf=qr(),ebe=Vu().isValid;function rbe(e,r,t){var a=r?tm.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(tm.isArrayOrTypedArray(n)){for(var o=0;o<n.length;o++)if(Rh(n[o])){i=!0;break}}return tm.isPlainObject(a)&&(i||a.showscale===!0||Rh(a.cmin)&&Rh(a.cmax)||ebe(a.colorscale)||tm.isPlainObject(a.colorbar))}var FR=["showscale","autocolorscale","colorscale","reversescale","colorbar"],Ph=["min","max","mid","auto"];function zR(e){var r=e._colorAx,t=r||e,a={},n,i,o;for(i=0;i<FR.length;i++)o=FR[i],a[o]=t[o];if(r)for(n="c",i=0;i<Ph.length;i++)o=Ph[i],a[o]=t["c"+o];else{var l;for(i=0;i<Ph.length;i++){if(o=Ph[i],l="c"+o,l in t){a[o]=t[l];continue}l="z"+o,l in t&&(a[o]=t[l])}n=l.charAt(0)}return a._sync=function(s,u){var f=Ph.indexOf(s)!==-1?n+s:s;t[f]=t["_"+f]=u},a}function NR(e){for(var r=zR(e),t=r.min,a=r.max,n=r.reversescale?IR(r.colorscale):r.colorscale,i=n.length,o=new Array(i),l=new Array(i),s=0;s<i;s++){var u=n[s];o[s]=t+u[0]*(a-t),l[s]=u[1]}return{domain:o,range:l}}function IR(e){for(var r=e.length,t=new Array(r),a=r-1,n=0;a>=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function BR(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o<n;o++)i[o]=tf.rgbaArray(a[o]);var l=Q3e.scale.linear().domain(t).range(i).clamp(!0),s=r.noNumericCheck,u=r.returnArray,f;return s&&u?f=l:s?f=function(c){return tf.rgbaArrayToString(l(c))}:u?f=function(c){return Rh(c)?l(c):tf.isValid(c)?c:tf.defaultLine}:f=function(c){return Rh(c)?tf.rgbaArrayToString(l(c)):tf.isValid(c)?c:tf.defaultLine},f.domain=l.domain,f.range=function(){return a},f}function tbe(e,r){return BR(NR(e),r)}OR.exports={hasColorscale:rbe,extractOpts:zR,extractScale:NR,flipScale:IR,makeColorScaleFunc:BR,makeColorScaleFuncFromTrace:tbe}});var Fo=z((zXe,GR)=>{"use strict";var HR=(s4(),Ne(l4)),abe=HR.FORMAT_LINK,nbe=HR.DATE_FORMAT_LINK;function ibe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?X4:UR)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function X4(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: "+abe+"."].join(" ")}function UR(e,r){return X4(e,r)+[" And for dates see: "+nbe+".","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(" ")}GR.exports={axisHoverFormat:ibe,descriptionOnlyNumbers:X4,descriptionWithDates:UR}});var ji=z((IXe,oF)=>{"use strict";var YR=Ia(),Qc=Hi(),iF=Ui().dash,$4=St().extendFlat,VR=Pt().templatedArray,NXe=gi().templateFormatStringDescription,jR=Fo().descriptionWithDates,obe=(Kt(),Ne(aa)).ONEDAY,fl=(Ha(),Ne(Oa)),lbe=fl.HOUR_PATTERN,sbe=fl.WEEKDAY_PATTERN,Z4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},ube=$4({},Z4,{values:Z4.values.slice().concat(["sync"])});function WR(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var XR={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},ZR={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},$R={valType:"data_array",editType:"ticks"},JR={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function KR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function QR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var eF={valType:"color",dflt:Qc.defaultLine,editType:"ticks"},rF={valType:"color",dflt:Qc.lightLine,editType:"ticks"};function tF(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var aF=$4({},iF,{editType:"ticks"}),nF={valType:"boolean",editType:"ticks"};oF.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Qc.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:YR({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:[fl.idRegex.x.toString(),fl.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:[fl.idRegex.x.toString(),fl.idRegex.y.toString()],editType:"calc"},rangebreaks:VR("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:[sbe,lbe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:obe},editType:"calc"}),tickmode:ube,nticks:WR(),tick0:XR,dtick:ZR,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:$R,ticktext:{valType:"data_array",editType:"ticks"},ticks:JR,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:KR(),tickwidth:QR(),tickcolor:eF,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:$4({},iF,{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:YR({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:jR("tick label")},tickformatstops:VR("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:jR("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Qc.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:nF,gridcolor:rF,gridwidth:tF(),griddash:aF,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Qc.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:Qc.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",fl.idRegex.x.toString(),fl.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",fl.idRegex.x.toString(),fl.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Z4,nticks:WR("minor"),tick0:XR,dtick:ZR,tickvals:$R,ticks:JR,ticklen:KR("minor"),tickwidth:QR("minor"),tickcolor:eF,gridcolor:rF,gridwidth:tF("minor"),griddash:aF,showgrid:nF,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 am=z((BXe,sF)=>{"use strict";var jt=ji(),lF=Ia(),J4=St().extendFlat,fbe=Do().overrideAll;sF.exports=fbe({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:jt.linecolor,outlinewidth:jt.linewidth,bordercolor:jt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:jt.minor.tickmode,nticks:jt.nticks,tick0:jt.tick0,dtick:J4({},jt.dtick,{}),tickvals:jt.tickvals,ticktext:jt.ticktext,ticks:J4({},jt.ticks,{dflt:""}),ticklabeloverflow:J4({},jt.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:jt.ticklen,tickwidth:jt.tickwidth,tickcolor:jt.tickcolor,ticklabelstep:jt.ticklabelstep,showticklabels:jt.showticklabels,labelalias:jt.labelalias,tickfont:lF({description:"Sets the color bar's tick label font"}),tickangle:jt.tickangle,tickformat:jt.tickformat,tickformatstops:jt.tickformatstops,tickprefix:jt.tickprefix,showtickprefix:jt.showtickprefix,ticksuffix:jt.ticksuffix,showticksuffix:jt.showticksuffix,separatethousands:jt.separatethousands,exponentformat:jt.exponentformat,minexponent:jt.minexponent,showexponent:jt.showexponent,title:{text:{valType:"string"},font:lF({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var cl=z((HXe,fF)=>{"use strict";var cbe=am(),vbe=(Nc(),Ne(_h)).counter,hbe=(y4(),Ne(m4)).default,uF=Vu().scales,OXe=hbe(uF);function nm(e){return"`"+e+"`"}fF.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?uF[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+nm(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",m=a+"max",y=a+"mid",b=nm(u+d),T=nm(u+p),w=nm(u+m),x=T+" and "+w,_={};_[p]=_[m]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:_},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:_},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=cbe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:vbe("coloraxis"),dflt:null,editType:"calc"}),M}});var Q4=z((UXe,cF)=>{"use strict";var dbe=St().extendFlat,pbe=cl(),K4=Vu().scales;cF.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:K4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:K4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:K4.RdBu,editType:"calc"}},coloraxis:dbe({_isSubplotObj:!0,editType:"calc"},pbe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var e6=z((GXe,vF)=>{"use strict";var mbe=ke();vF.exports=function(r){return mbe.isPlainObject(r.colorbar)}});var a6=z(t6=>{"use strict";var r6=Br(),hF=ke(),dF=(Kt(),Ne(aa)),ybe=dF.ONEDAY,gbe=dF.ONEWEEK;t6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?ybe:1;if(!e)return i;if(r6(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=r6(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};t6.tick0=function(e,r,t,a){if(r==="date")return hF.cleanDate(e,hF.dateTick0(t,a%gbe===0?1:0));if(!(a==="D1"||a==="D2"))return r6(e)?Number(e):0}});var im=z((VXe,mF)=>{"use strict";var pF=a6(),bbe=ke().isArrayOrTypedArray,xbe=Qn().isTypedArraySpec,_be=Qn().decodeTypedArraySpec;mF.exports=function(r,t,a,n,i={}){var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(x){var _=l[x];return xbe(_)&&(_=_be(_)),_!==void 0?_:(s._template||{})[x]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=f("overlaying"),m=n==="category"||n==="multicategory",y;bbe(d)?y="array":v?y="linear":p&&!m?y="sync":y="auto";var b=a(u+"tickmode",y);if(b==="auto"||b==="sync")a(u+"nticks");else if(b==="linear"){var T=s.dtick=pF.dtick(v,n);s.tick0=pF.tick0(c,n,t.calendar,T)}else if(n!=="multicategory"){var w=a(u+"tickvals");w===void 0?s.tickmode="auto":o||a("ticktext")}}});var om=z((jXe,gF)=>{"use strict";var n6=ke(),yF=ji();gF.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?yF.minor:yF,u=i?"minor.":"",f=n6.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=n6.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=n6.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var i6=z((WXe,bF)=>{"use strict";bF.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var zo=z((XXe,xF)=>{"use strict";var lm=ke(),wbe=Pt();xF.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=lm.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=wbe.arrayTemplater(t,n,i),f,c;for(f=0;f<l.length;f++){var v=l[f];lm.isPlainObject(v)?c=u.newItem(v):(c=u.newItem({}),c[i]=!1),c._index=f,c[i]!==!1&&a.handleItemDefaults(v,c,t,a),s.push(c)}var d=u.defaultItems();for(f=0;f<d.length;f++)c=d[f],c._index=s.length,a.handleItemDefaults({},c,t,a,{}),s.push(c);if(lm.isArrayOrTypedArray(o)){var p=Math.min(o.length,s.length);for(f=0;f<p;f++)lm.relinkPrivateKeys(s[f],o[f])}return s}});var sm=z((ZXe,wF)=>{"use strict";var o6=ke(),Tbe=qr().contrast,_F=ji(),Abe=i6(),Mbe=zo();wF.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");o6.isPlainObject(o)||delete t.labelalias;var l=Abe(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Tbe(i.bgColor):f&&f!==_F.color.dflt?f:u.color;if(o6.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Mbe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:kbe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function kbe(e,r){function t(n,i){return o6.coerce(e,r,_F.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var um=z(($Xe,TF)=>{"use strict";var Sbe=i6();TF.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Sbe(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var l6=z((JXe,AF)=>{"use strict";var Ns=ke(),qbe=Pt(),Lbe=im(),Cbe=om(),Dbe=sm(),Ebe=um(),Pbe=am();AF.exports=function(r,t,a){var n=qbe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return Ns.coerce(i,n,Pbe,P,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),m=o("xref"),y=p==="paper",b=m==="paper",T,w,x,_="left";c?(x="middle",_=b?"left":"right",T=b?1.02:1,w=.5):(x=y?"bottom":"top",_="center",T=.5,w=y?1.02:1),Ns.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:T}},"x"),Ns.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:w}},"y"),o("xanchor",_),o("xpad"),o("yanchor",x),o("ypad"),Ns.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Ns.coerce(i,n,{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");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),Lbe(i,n,o,"linear");var M=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(q.bgColor="black"),Ebe(i,n,o,"linear",q),Dbe(i,n,o,"linear",q),Cbe(i,n,o,"linear",q),o("title.text",a._dfltTitle.colorbar);var C=n.showticklabels?n.tickfont:M,E=Ns.extendFlat({},M,{family:C.family,size:Ns.bigFont(C.size)});Ns.coerceFont(o,"title.font",E),o("title.side",c?"top":"right")}});var Xl=z((KXe,SF)=>{"use strict";var MF=Br(),u6=ke(),Rbe=e6(),Fbe=l6(),kF=Vu().isValid,zbe=Ar().traceIs;function s6(e,r){var t=r.slice(0,r.length-1);return r?u6.nestedProperty(e,t).get()||{}:e}SF.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=s6(r,o),f=s6(t,o),c=s6(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var m=zbe(t,"contour")&&u6.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(v),y[0]!==m&&(y[0]=!1,u6.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,t,[v]];return}}var b=u[l+"min"],T=u[l+"max"],w=MF(b)&&MF(T)&&b<T,x=n(o+l+"auto",!w);x?n(o+l+"mid"):(n(o+l+"min"),n(o+l+"max"));var _=u.colorscale,k=c.colorscale,M;if(_!==void 0&&(M=!kF(_)),k!==void 0&&(M=!kF(k)),n(o+"autocolorscale",M),n(o+"colorscale"),n(o+"reversescale"),o!=="marker.line."){var q;o&&s&&(q=Rbe(u));var C=n(o+"showscale",q);C&&(o&&c&&(f._template=c),Fbe(u,f,a))}}});var DF=z((QXe,CF)=>{"use strict";var qF=ke(),Nbe=Pt(),LF=Q4(),Ibe=Xl();CF.exports=function(r,t){function a(c,v){return qF.coerce(r,t,LF,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return qF.coerce(i,o,LF.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=Nbe.newContainer(t,s,"coloraxis"),o._name=s,Ibe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f<u[2].length;f++)u[2][f]();delete t._colorAxes[s]}}}});var PF=z((eZe,EF)=>{"use strict";var Bbe=ke(),Obe=xi().hasColorscale,Hbe=xi().extractOpts;EF.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?Bbe.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=Hbe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i<r.length;i++){var o=r[i],l=o._module.colorbar;if(l)if(Array.isArray(l))for(var s=0;s<l.length;s++)n(o,l[s]);else n(o,l);Obe(o,"marker.line")&&n(o,{container:"marker.line",min:"cmin",max:"cmax"})}for(var u in t._colorAxes)n(t[u],{min:"cmin",max:"cmax"})}});var e0=z((rZe,FF)=>{"use strict";var RF=Br(),f6=ke(),Ube=xi().extractOpts;FF.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?f6.nestedProperty(t,o).get():t,s=Ube(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return f6.aggNums(Math.min,null,i)},p=function(){return f6.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&RF(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&RF(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v<v-f&&(c=v+(v-f))),f===c&&(f-=.5,c+=.5),s._sync("min",f),s._sync("max",c),s.autocolorscale){var m;f*c<0?m=n.colorscale.diverging:f>=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var vl=z((tZe,zF)=>{"use strict";var fm=Vu(),r0=xi();zF.exports={moduleType:"component",name:"colorscale",attributes:cl(),layoutAttributes:Q4(),supplyLayoutDefaults:DF(),handleDefaults:Xl(),crossTraceDefaults:PF(),calc:e0(),scales:fm.scales,defaultScale:fm.defaultScale,getScale:fm.get,isValidScale:fm.isValid,hasColorscale:r0.hasColorscale,extractOpts:r0.extractOpts,extractScale:r0.extractScale,flipScale:r0.flipScale,makeColorScaleFunc:r0.makeColorScaleFunc,makeColorScaleFuncFromTrace:r0.makeColorScaleFuncFromTrace}});var ii=z((aZe,IF)=>{"use strict";var NF=ke(),Gbe=Qn().isTypedArraySpec;IF.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 NF.isPlainObject(r)&&(NF.isArrayOrTypedArray(r.size)||Gbe(r.size))}}});var OF=z((nZe,BF)=>{"use strict";var Ybe=Br();BF.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Ybe(s)&&s>0?Math.max(s,i):0}}});var No=z(fn=>{"use strict";var Fh=ke();fn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};fn.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n<t.length;n++)for(var i=0;i<a.length;i++)if(r.indexOf(t[n]+a[i])!==-1)return!0;return!1}return r.indexOf(fn.getSubplot(e))!==-1};fn.flat=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=r;return t};fn.p2c=function(e,r){for(var t=new Array(e.length),a=0;a<e.length;a++)t[a]=e[a].p2c(r);return t};fn.c2dApply=function(e,r){e.length!==r.length&&Fh.warn("c2dApply: axArray and valArray must be the same length");for(var t=new Array(r.length),a=0;a<r.length;a++){var n=e&&e[a];t[a]=n&&n.c2d?n.c2d(r[a]):r[a]}return t};fn.getDistanceFunction=function(e,r,t,a){return e==="closest"?a||fn.quadrature(r,t):e.charAt(0)==="x"?r:t};fn.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 a=1/0,n=e.length,i=0;i<n;i++)a=r(e[i]),a<=t.distance&&(t.index=i,t.distance=a);return t};fn.inbox=function(e,r,t){return e*r<0||e===0?t:1/0};fn.quadrature=function(e,r){return function(t){var a=e(t),n=r(t);return Math.sqrt(a*a+n*n)}};fn.makeEventData=function(e,r,t){var a="index"in e?e.index:e.pointNumber,n={data:r._input,fullData:r,curveNumber:r.index,pointNumber:a};return n.pointIndex=a,r._module.eventData?n=r._module.eventData(n,e,r,t,a):("xVal"in e?n.x=e.xVal:"x"in e&&(n.x=e.x),"yVal"in e?n.y=e.yVal:"y"in e&&(n.y=e.y),e.xa&&(n.xaxis=e.xa),e.ya&&(n.yaxis=e.ya),e.zLabelVal!==void 0&&(n.z=e.zLabelVal)),fn.appendArrayPointValue(n,r,a),n};fn.appendArrayPointValue=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=HF(i);if(e[o]===void 0){var l=Fh.nestedProperty(r,i).get(),s=UF(l,t);s!==void 0&&(e[o]=s)}}};fn.appendArrayMultiPointValues=function(e,r,t){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],o=HF(i);if(e[o]===void 0){for(var l=Fh.nestedProperty(r,i).get(),s=new Array(t.length),u=0;u<t.length;u++)s[u]=UF(l,t[u]);e[o]=s}}};var Vbe={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function HF(e){return Vbe[e]||e}function UF(e,r){if(Array.isArray(r)){if(Fh.isArrayOrTypedArray(e)&&Fh.isArrayOrTypedArray(e[r[0]]))return e[r[0]][r[1]]}else return e[r]}var jbe={x:!0,y:!0},Wbe={"x unified":!0,"y unified":!0};fn.isUnifiedHover=function(e){return typeof e!="string"?!1:!!Wbe[e]};fn.isXYhover=function(e){return typeof e!="string"?!1:!!jbe[e]}});var v6=z((oZe,GF)=>{var c6={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Xbe=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Zbe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function $be(e){let r=[];return e.replace(Xbe,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=Jbe(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===c6[i])return r.push([o,...l]),"";if(l.length<c6[i])throw new Error("malformed path data");r.push([o,...l.splice(0,c6[i])])}}),r}function Jbe(e){let r=e.match(Zbe);return r?r.map(Number):[]}GF.exports=$be});var $F=z((lZe,ZF)=>{"use strict";var Kbe=v6(),$e=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Rr="M0,0Z",YF=Math.sqrt(2),Is=Math.sqrt(3),h6=Math.PI,d6=Math.cos,p6=Math.sin;ZF.exports={circle:{n:0,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?zr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.3,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.4,2),n=$e(e*1.2,2);return zr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.8/YF,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return zr(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2/Is,2),n=$e(e/2,2),i=$e(e,2);return zr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2/Is,2),n=$e(e/2,2),i=$e(e,2);return zr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2/Is,2),n=$e(e/2,2),i=$e(e,2);return zr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2/Is,2),n=$e(e/2,2),i=$e(e,2);return zr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.6,2),n=$e(e*1.2,2);return zr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.6,2),n=$e(e*1.2,2);return zr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.6,2),n=$e(e*1.2,2);return zr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.6,2),n=$e(e*1.2,2);return zr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.951,2),n=$e(e*.588,2),i=$e(-e,2),o=$e(e*-.309,2),l=$e(e*.809,2);return zr(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e/2,2),i=$e(e*Is/2,2);return zr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e/2,2),i=$e(e*Is/2,2);return zr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.924,2),n=$e(e*.383,2);return zr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Fr(r))return Rr;var a=e*1.4,n=$e(a*.225,2),i=$e(a*.951,2),o=$e(a*.363,2),l=$e(a*.588,2),s=$e(-a,2),u=$e(a*-.309,2),f=$e(a*.118,2),c=$e(a*.809,2),v=$e(a*.382,2);return zr(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.66,2),n=$e(e*.38,2),i=$e(e*.76,2);return zr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*Is*.8,2),n=$e(e*.8,2),i=$e(e*1.6,2),o=$e(e*4,2),l="A "+o+","+o+" 0 0 1 ";return zr(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*Is*.8,2),n=$e(e*.8,2),i=$e(e*1.6,2),o=$e(e*4,2),l="A "+o+","+o+" 0 0 1 ";return zr(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.1,2),n=$e(e*2,2),i="A "+n+","+n+" 0 0 1 ";return zr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.4,2),n=$e(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return zr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.7,2),n=$e(e*1.4,2);return zr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.4,2),n=$e(e*.7,2);return zr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e/YF,2);return zr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.3,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.3,2),n=$e(e*.65,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.4,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*.85,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e/2,2),n=$e(e,2);return zr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return zr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return zr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return zr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return zr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.4,2);return zr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.4,2);return zr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e*2,2);return zr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e*2,2);return zr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2,2),n=$e(e,2);return zr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2,2),n=$e(e,2);return zr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e*2,2);return zr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e*2,2);return zr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2,2),n=$e(e,2);return zr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2,2),n=$e(e,2);return zr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Fr(r))return Rr;var a=h6/2.5,n=2*e*d6(a),i=2*e*p6(a);return zr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Fr(r))return Rr;var a=h6/4,n=2*e*d6(a),i=2*e*p6(a);return zr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Fr(e){return e===null}var VF,jF,WF,XF;function zr(e,r,t){if((!e||e%360===0)&&!r)return t;if(WF===e&&XF===r&&VF===t)return jF;WF=e,XF=r,VF=t;function a(y,b){var T=d6(y),w=p6(y),x=b[0],_=b[1]+(r||0);return[x*T-_*w,x*w+_*T]}for(var n=e/180*h6,i=0,o=0,l=Kbe(t),s="",u=0;u<l.length;u++){var f=l[u],c=f[0],v=i,d=o;if(c==="M"||c==="L")i=+f[1],o=+f[2];else if(c==="m"||c==="l")i+=+f[1],o+=+f[2];else if(c==="H")i=+f[1];else if(c==="h")i+=+f[1];else if(c==="V")o=+f[1];else if(c==="v")o+=+f[1];else if(c==="A"){i=+f[1],o=+f[2];var p=a(n,[+f[6],+f[7]]);f[6]=p[0],f[7]=p[1],f[3]=+f[3]+e}(c==="H"||c==="V")&&(c="L"),(c==="h"||c==="v")&&(c="l"),(c==="m"||c==="l")&&(i-=v,o-=d);var m=a(n,[i,o]);(c==="H"||c==="V")&&(c="L"),(c==="M"||c==="L"||c==="m"||c==="l")&&(f[1]=m[0],f[2]=m[1]),f[0]=c,s+=f[0]+f.slice(1).join(",")}return jF=s,s}});var et=z((sZe,mz)=>{"use strict";var ja=Pr(),_t=ke(),Qbe=_t.numberFormat,Bs=Br(),vm=Ar(),Ua=qr(),exe=vl(),Nh=_t.strTranslate,hm=Da(),rxe=(Wl(),Ne(jl)),txe=(un(),Ne(sn)),axe=txe.LINE_SPACING,oz=(wp(),Ne(_p)).DESELECTDIM,nxe=ii(),ixe=OF(),oxe=No().appendArrayPointValue,ar={};mz.exports=ar;ar.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Ua.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",m6(sxe(f))),s&&e.style("text-shadow",s==="auto"?hm.makeTextShadow(Ua.contrast(i)):m6(s)),u&&e.style("text-decoration-line",m6(uxe(u)))};function m6(e){return e==="none"?void 0:e}var lxe={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function sxe(e){return lxe[e]}function uxe(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}ar.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};ar.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};ar.setRect=function(e,r,t,a,n){e.call(ar.setPosition,r,t).call(ar.setSize,a,n)};ar.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Bs(n)&&Bs(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Nh(n,i));else return!1;return!0};ar.translatePoints=function(e,r,t){e.each(function(a){var n=ja.select(this);ar.translatePoint(a,n,r,t)})};ar.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};ar.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=vm.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){ar.hideOutsideRangePoint(u,ja.select(this),t,a,o,l)})})}};ar.crispRound=function(e,r,t){return!r||!Bs(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};ar.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Ua.stroke(r,a||i.color),ar.dashLine(r,l,o)};ar.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";ja.select(this).call(Ua.stroke,t||i.color).call(ar.dashLine,l,o)})};ar.dashLine=function(e,r,t){t=+t||0,r=ar.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};ar.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 lz(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=ar.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;ar.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;p==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(fz,t,m,"linear",i.colorscale,"fill",y,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(ar.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Ua.fill,r.fillcolor)}ar.singleFillStyle=function(e,r){var t=ja.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};lz(e,n,r,!1)};ar.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ja.select(this);a[0].trace&&lz(n,a[0].trace,r,t)})};var JF=$F();ar.symbolNames=[];ar.symbolFuncs=[];ar.symbolBackOffs=[];ar.symbolNeedLines={};ar.symbolNoDot={};ar.symbolNoFill={};ar.symbolList=[];Object.keys(JF).forEach(function(e){var r=JF[e],t=r.n;ar.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),ar.symbolNames[t]=e,ar.symbolFuncs[t]=r.f,ar.symbolBackOffs[t]=r.backoff||0,r.needLine&&(ar.symbolNeedLines[t]=!0),r.noDot?ar.symbolNoDot[t]=!0:ar.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(ar.symbolNoFill[t]=!0)});var fxe=ar.symbolNames.length,cxe="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";ar.symbolNumber=function(e){if(Bs(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=ar.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=fxe||e>=400?0:Math.floor(Math.max(e,0))};function sz(e,r,t,a){var n=e%100;return ar.symbolFuncs[n](r,t,a)+(e>=200?cxe:"")}var KF=Qbe("~f"),uz={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}};ar.gradient=function(e,r,t,a,n,i){var o=uz[a];return fz(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function fz(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),d=0;d<f;d++)c.reversed?v[f-1-d]=[KF((1-n[d][0])*100),n[d][1]]:v[d]=[KF(n[d][0]*100),n[d][1]];var p=r._fullLayout,m="g"+p._uid+"-"+t,y=p._defs.select(".gradients").selectAll("#"+m).data([a+v.join(";")],_t.identity);y.exit().remove(),y.enter().append(c.node).each(function(){var b=ja.select(this);c.attrs&&b.attr(c.attrs),b.attr("id",m);var T=b.selectAll("stop").data(v);T.exit().remove(),T.enter().append("stop"),T.each(function(w){ja.select(this).attr({offset:w[0]+"%","stop-color":Ua.rgb(w[1]),"stop-opacity":Ua.parse(w[1]).alpha})})}),e.style(i,_6(m,r)).style(i+"-opacity",null),e.classed("gradient_filled",!0)}ar.pattern=function(e,r,t,a,n,i,o,l,s,u,f,c){var v=r==="legend";l&&(s==="overlay"?(u=l,f=Ua.contrast(u)):(u=void 0,f=l));var d=t._fullLayout,p="p"+d._uid+"-"+a,m,y,b=function(R,B,I,N,H){return N+(H-N)*(R-B)/(I-B)},T,w,x,_,k={},M=Ua.rgb(f),q=Ua.parse(f).alpha,C=c*q;switch(n){case"/":m=i*Math.sqrt(2),y=i*Math.sqrt(2),T="M-"+m/4+","+y/4+"l"+m/2+",-"+y/2+"M0,"+y+"L"+m+",0M"+m/4*3+","+y/4*5+"l"+m/2+",-"+y/2,w=o*i,_="path",k={d:T,opacity:C,stroke:M,"stroke-width":w+"px"};break;case"\\":m=i*Math.sqrt(2),y=i*Math.sqrt(2),T="M"+m/4*3+",-"+y/4+"l"+m/2+","+y/2+"M0,0L"+m+","+y+"M-"+m/4+","+y/4*3+"l"+m/2+","+y/2,w=o*i,_="path",k={d:T,opacity:C,stroke:M,"stroke-width":w+"px"};break;case"x":m=i*Math.sqrt(2),y=i*Math.sqrt(2),T="M-"+m/4+","+y/4+"l"+m/2+",-"+y/2+"M0,"+y+"L"+m+",0M"+m/4*3+","+y/4*5+"l"+m/2+",-"+y/2+"M"+m/4*3+",-"+y/4+"l"+m/2+","+y/2+"M0,0L"+m+","+y+"M-"+m/4+","+y/4*3+"l"+m/2+","+y/2,w=i-i*Math.sqrt(1-o),_="path",k={d:T,opacity:C,stroke:M,"stroke-width":w+"px"};break;case"|":m=i,y=i,_="path",T="M"+m/2+",0L"+m/2+","+y,w=o*i,_="path",k={d:T,opacity:C,stroke:M,"stroke-width":w+"px"};break;case"-":m=i,y=i,_="path",T="M0,"+y/2+"L"+m+","+y/2,w=o*i,_="path",k={d:T,opacity:C,stroke:M,"stroke-width":w+"px"};break;case"+":m=i,y=i,_="path",T="M"+m/2+",0L"+m/2+","+y+"M0,"+y/2+"L"+m+","+y/2,w=i-i*Math.sqrt(1-o),_="path",k={d:T,opacity:C,stroke:M,"stroke-width":w+"px"};break;case".":m=i,y=i,o<Math.PI/4?x=Math.sqrt(o*i*i/Math.PI):x=b(o,Math.PI/4,1,i/2,i/Math.sqrt(2)),_="circle",k={cx:m/2,cy:y/2,r:x,opacity:C,fill:M};break;default:m=i,y=i,_="path",k={d:n,opacity:C,fill:M};break}var E=[n||"noSh",u||"noBg",f||"noFg",i,o].join(";"),P=d._defs.select(".patterns").selectAll("#"+p).data([E],_t.identity);P.exit().remove(),P.enter().append("pattern").each(function(){var R=ja.select(this);if(R.attr({id:p,width:m+"px",height:y+"px",patternUnits:"userSpaceOnUse",patternTransform:v?"scale(0.8)":""}),u){var B=Ua.rgb(u),I=Ua.parse(u).alpha,N=R.selectAll("rect").data([0]);N.exit().remove(),N.enter().append("rect").attr({width:m+"px",height:y+"px",fill:B,"fill-opacity":I})}var H=R.selectAll(_).data([0]);H.exit().remove(),H.enter().append(_).attr(k)}),e.style("fill",_6(p,t)).style("fill-opacity",null),e.classed("pattern_filled",!0)};ar.initGradients=function(e){var r=e._fullLayout,t=_t.ensureSingle(r._defs,"g","gradients");t.selectAll("linearGradient,radialGradient").remove(),ja.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};ar.initPatterns=function(e){var r=e._fullLayout,t=_t.ensureSingle(r._defs,"g","patterns");t.selectAll("pattern").remove(),ja.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};ar.getPatternAttr=function(e,r,t){return e&&_t.isArrayOrTypedArray(e)?r<e.length?e[r]:t:e};ar.pointStyle=function(e,r,t,a){if(e.size()){var n=ar.makePointStyleFns(r);e.each(function(i){ar.singlePointStyle(i,ja.select(this),r,n,t,a)})}};ar.singlePointStyle=function(e,r,t,a,n,i){var o=t.marker,l=o.line;if(i&&i.i>=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=ar.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=T6(e,t),c=w6(e,t);r.attr("d",sz(u,s,f,c))}var v=!1,d,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):_t.isArrayOrTypedArray(l.color)?p=Ua.defaultLine:p=l.color,_t.isArrayOrTypedArray(o.color)&&(d=Ua.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&&ar.dashLine(r,b,m),e.om)r.call(Ua.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var T=o.gradient,w=e.mgt;w?v=!0:w=T&&T.type,_t.isArrayOrTypedArray(w)&&(w=w[0],uz[w]||(w=0));var x=o.pattern,_=ar.getPatternAttr,k=x&&(_(x.shape,e.i,"")||_(x.path,e.i,""));if(w&&w!=="none"){var M=e.mgc;M?v=!0:M=T.color;var q=t.uid;v&&(q+="-"+e.i),ar.gradient(r,n,q,w,[[0,M],[1,d]],"fill")}else if(k){var C=!1,E=x.fgcolor;!E&&i&&i.color&&(E=i.color,C=!0);var P=_(E,e.i,i&&i.color||null),R=_(x.bgcolor,e.i,null),B=x.fgopacity,I=_(x.size,e.i,8),N=_(x.solidity,e.i,.3);C=C||e.mcc||_t.isArrayOrTypedArray(x.shape)||_t.isArrayOrTypedArray(x.path)||_t.isArrayOrTypedArray(x.bgcolor)||_t.isArrayOrTypedArray(x.fgcolor)||_t.isArrayOrTypedArray(x.size)||_t.isArrayOrTypedArray(x.solidity);var H=t.uid;C&&(H+="-"+e.i),ar.pattern(r,"point",n,H,k,I,N,e.mcc,x.fillmode,R,P,B)}else _t.isArrayOrTypedArray(d)?Ua.fill(r,d[e.i]):Ua.fill(r,d);m&&Ua.stroke(r,p)}};ar.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=ar.tryColorscale(t,""),r.lineScale=ar.tryColorscale(t,"line"),vm.traceIs(e,"symbols")&&(r.ms2mrc=nxe.isBubble(e)?ixe(e):function(){return(t.size||6)/2}),e.selectedpoints&&_t.extendFlat(r,ar.makeSelectedPointStyleFns(e)),r};ar.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(_t.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(x){var _=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:_:c?u:oz*_});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var _=x.mcc||v;return x.selected?d||_:p||_});var m=n.size,y=i.size,b=o.size,T=y!==void 0,w=b!==void 0;return vm.traceIs(e,"symbols")&&(T||w)&&(r.selectedSizeFn=function(x){var _=x.mrc||m/2;return x.selected?T?y/2:_:w?b/2:_}),r};ar.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:Ua.addOpacity(c,oz))},r};ar.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ar.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Ua.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",sz(ar.symbolNumber(l),s,T6(o,r),w6(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=ja.select(this),l=0;l<n.length;l++)n[l](o,i)})}};ar.tryColorscale=function(e,r){var t=r?_t.nestedProperty(e,r).get():e;if(t){var a=t.color;if((t.colorscale||t._colorAx)&&_t.isArrayOrTypedArray(a))return exe.makeColorScaleFuncFromTrace(t)}return _t.identity};var y6={start:1,end:-1,middle:0,bottom:1,top:-1};function cz(e,r,t,a,n){var i=ja.select(e.node().parentNode),o=r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle",l=r.indexOf("left")!==-1?"end":r.indexOf("right")!==-1?"start":"middle",s=a?a/.8+1:0,u=(hm.lineCount(e)-1)*axe+1,f=y6[l]*s,c=t*.75+y6[o]*s+(y6[o]-1)*u*t/2;e.attr("text-anchor",l),n||i.attr("transform",Nh(f,c))}function vz(e,r){var t=e.ts||r.textfont.size;return Bs(t)&&t>0?t:0}ar.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=ar.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=ja.select(this),u=i?_t.extractOption(l,r,"txt","texttemplate"):_t.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},v={};oxe(v,r,l.i),u=_t.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=vz(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(ar.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:p,color:m}).text(u).call(hm.convertToTspans,t).call(cz,d,p,l.mrc)})}};ar.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ar.makeSelectedTextStyleFns(r);e.each(function(a){var n=ja.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=vz(a,r);Ua.fill(n,i);var s=vm.traceIs(r,"bar-like");cz(n,o,l,a.mrc2||a.mrc,s)})}};var QF=.5;ar.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n<e.length-1;n++)a.push(cm(e[n-1],e[n],e[n+1],r));for(t+="Q"+a[0][0]+" "+e[1],n=2;n<e.length-1;n++)t+="C"+a[n-2][1]+" "+a[n-1][0]+" "+e[n];return t+="Q"+a[e.length-3][1]+" "+e[e.length-1],t};ar.smoothclosed=function(e,r){if(e.length<3)return"M"+e.join("L")+"Z";var t="M"+e[0],a=e.length-1,n=[cm(e[a],e[0],e[1],r)],i;for(i=1;i<a;i++)n.push(cm(e[i-1],e[i],e[i+1],r));for(n.push(cm(e[a-1],e[a],e[0],r)),i=1;i<=a;i++)t+="C"+n[i-1][1]+" "+n[i][0]+" "+e[i];return t+="C"+n[a][1]+" "+n[0][0]+" "+e[0]+"Z",t};var hz,dz;function t0(e,r,t){return t&&(e=pz(e)),r?of(e[1]):nf(e[0])}function nf(e){var r=ja.round(e,2);return hz=r,r}function of(e){var r=ja.round(e,2);return dz=r,r}function cm(e,r,t,a){var n=e[0]-r[0],i=e[1]-r[1],o=t[0]-r[0],l=t[1]-r[1],s=Math.pow(n*n+i*i,QF/2),u=Math.pow(o*o+l*l,QF/2),f=(u*u*n-s*s*o)*a,c=(u*u*i-s*s*l)*a,v=3*u*(s+u),d=3*s*(s+u);return[[nf(r[0]+(v&&f/v)),of(r[1]+(v&&c/v))],[nf(r[0]-(d&&f/d)),of(r[1]-(d&&c/d))]]}var vxe={hv:function(e,r,t){return"H"+nf(r[0])+"V"+t0(r,1,t)},vh:function(e,r,t){return"V"+of(r[1])+"H"+t0(r,0,t)},hvh:function(e,r,t){return"H"+nf((e[0]+r[0])/2)+"V"+of(r[1])+"H"+t0(r,0,t)},vhv:function(e,r,t){return"V"+of((e[1]+r[1])/2)+"H"+nf(r[0])+"V"+t0(r,1,t)}},hxe=function(e,r,t){return"L"+t0(r,0,t)+","+t0(r,1,t)};ar.steps=function(e){var r=vxe[e]||hxe;return function(t){for(var a="M"+nf(t[0][0])+","+of(t[0][1]),n=t.length,i=1;i<n;i++)a+=r(t[i-1],t[i],i===n-1);return a}};function pz(e,r){var t=e.backoff,a=e.trace,n=e.d,i=e.i;if(t&&a&&a.marker&&a.marker.angle%360===0&&a.line&&a.line.shape!=="spline"){var o=_t.isArrayOrTypedArray(t),l=e,s=r?r[0]:hz||0,u=r?r[1]:dz||0,f=l[0],c=l[1],v=f-s,d=c-u,p=Math.atan2(d,v),m=o?t[i]:t;if(m==="auto"){var y=l.i;a.type==="scatter"&&y--;var b=l.marker,T=b.symbol;_t.isArrayOrTypedArray(T)&&(T=T[y]);var w=b.size;_t.isArrayOrTypedArray(w)&&(w=w[y]),m=b?ar.symbolBackOffs[ar.symbolNumber(T)]*w:0,m+=ar.getMarkerStandoff(n[y],a)||0}var x=f-m*Math.cos(p),_=c-m*Math.sin(p);(x<=f&&x>=s||x>=f&&x<=s)&&(_<=c&&_>=u||_>=c&&_<=u)&&(e=[x,_])}return e}ar.applyBackoff=pz;ar.makeTester=function(){var e=_t.ensureSingleById(ja.select("body"),"svg","js-plotly-tester",function(t){t.attr(rxe.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=_t.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});ar.tester=e,ar.testref=r};ar.savedBBoxes={};var g6=0,dxe=1e4;ar.bBox=function(e,r,t){t||(t=ez(e));var a;if(t){if(a=ar.savedBBoxes[t],a)return _t.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=ez(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=ar.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=ar.savedBBoxes[t],a)return _t.extendFlat({},a)}}var u,f;r?u=e:(f=ar.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ja.select(u).attr("transform",null).call(hm.positionText,0,0);var c=u.getBoundingClientRect(),v=ar.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return g6>=dxe&&(ar.savedBBoxes={},g6=0),t&&(ar.savedBBoxes[t]=d),g6++,_t.extendFlat({},d)};function ez(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}ar.setClipUrl=function(e,r,t){e.attr("clip-path",_6(r,t))};function _6(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}ar.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};ar.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=Nh(r,t),o=o.trim(),e[i]("transform",o),o};ar.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};ar.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var pxe=/\s*sc.*/;ar.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(pxe,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var mxe=/translate\([^)]*\)\s*$/;ar.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ja.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(mxe);r===1&&t===1?a=[]:a=[Nh(o,l),"scale("+r+","+t+")",Nh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function w6(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}ar.getMarkerStandoff=w6;var zh=Math.atan2,af=Math.cos,a0=Math.sin;function rz(e,r){var t=r[0],a=r[1];return[t*af(e)-a*a0(e),t*a0(e)+a*af(e)]}var tz,az,nz,iz,b6,x6;function T6(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Bs(t)||_t.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),d=zh(v[1]-n,v[0]-a),p=zh(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,T=tz/180*Math.PI,w=az/180*Math.PI,x=T-y,_=af(w)*a0(x),k=a0(w)*af(b)-af(w)*a0(b)*af(x);m=-zh(_,k)-Math.PI,tz=u,az=f}var M=rz(d,[af(m),0]),q=rz(p,[a0(m),0]);t=zh(M[1]+q[1],M[0]+q[0])/Math.PI*180,i==="previous"&&!(x6===r.uid&&e.i===b6+1)&&(t=null)}if(i==="previous"&&!r._geo)if(x6===r.uid&&e.i===b6+1&&Bs(a)&&Bs(n)){var C=a-nz,E=n-iz,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(E=0),R==="v"&&(C=0),t+=zh(E,C)/Math.PI*180+90}else t=null}return nz=a,iz=n,b6=e.i,x6=r.uid,t}ar.getMarkerAngle=T6});var o0=z((uZe,xz)=>{"use strict";var n0=Pr(),yxe=Br(),gxe=_a(),A6=Ar(),lf=ke(),yz=lf.strTranslate,dm=et(),pm=qr(),i0=Da(),gz=(wp(),Ne(_p)),bxe=(un(),Ne(sn)).OPPOSITE_SIDE,bz=/ [XY][0-9]* /,M6=1.6,k6=1.6;function xxe(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),m=!1,y=d&&d.font?d.font:{},b=y.family,T=y.size,w=y.color,x=y.weight,_=y.style,k=y.variant,M=y.textcase,q=y.lineposition,C=y.shadow,E=t.subtitlePropName,P=!!E,R=t.subtitlePlaceholder,B=(n.title||{}).subtitle||{text:"",font:{}},I=(B.text||"").trim(),N=!1,H=1,G=B.font,Y=G.family,j=G.size,W=G.color,V=G.weight,J=G.style,re=G.variant,le=G.textcase,ne=G.lineposition,$=G.shadow,ce;i==="title.text"?ce="titleText":i.indexOf("axis")!==-1?ce="axisTitleText":i.indexOf("colorbar")!==-1&&(ce="colorbarTitleText");var te=e._context.edits[ce];function ge(Je,Ke){return Je===void 0||Ke===void 0?!1:Je.replace(bz," % ")===Ke.replace(bz," % ")}p===""?v=0:ge(p,o)&&(te||(p=""),v=.2,m=!0),P&&(I===""?H=0:ge(I,R)&&(te||(I=""),H=.2,N=!0)),t._meta?p=lf.templateString(p,t._meta):a._meta&&(p=lf.templateString(p,a._meta));var se=p||I||te,oe;c||(c=lf.ensureSingle(a._infolayer,"g","g-"+r),oe=a._hColorbarMoveTitle);var Ae=c.selectAll("text."+r).data(se?[0]:[]);Ae.enter().append("text"),Ae.text(p).attr("class",r),Ae.exit().remove();var Pe=null,me=r+"-subtitle",Ce=I||te;if(P&&(Pe=c.selectAll("text."+me).data(Ce?[0]:[]),Pe.enter().append("text"),Pe.text(I).attr("class",me),Pe.exit().remove()),!se)return c;function Me(Je,Ke){lf.syncOrAsync([Le,Se],{title:Je,subtitle:Ke})}function Le(Je){var Ke=Je.title,De=Je.subtitle,Be;!f&&oe&&(f={}),f?(Be="",f.rotate&&(Be+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||oe)&&(Be+=yz(0,(f.offset||0)-(oe||0)))):Be=null,Ke.attr("transform",Be);function er(ue){if(ue){var xe=n0.select(ue.node().parentNode).select("."+me);if(!xe.empty()){var Ie=ue.node().getBBox();if(Ie.height){var We=Ie.y+Ie.height+M6*j;xe.attr("y",We)}}}}if(Ke.style("opacity",v*pm.opacity(w)).call(dm.font,{color:pm.rgb(w),size:n0.round(T,2),family:b,weight:x,style:_,variant:k,textcase:M,shadow:C,lineposition:q}).attr(u).call(i0.convertToTspans,e,er),De&&!De.empty()){var ae=c.select("."+r+"-math-group"),be=Ke.node().getBBox(),Ge=ae.node()?ae.node().getBBox():void 0,sr=Ge?Ge.y+Ge.height+M6*j:be.y+be.height+k6*j,vr=lf.extendFlat({},u,{y:sr});De.attr("transform",Be),De.style("opacity",H*pm.opacity(W)).call(dm.font,{color:pm.rgb(W),size:n0.round(j,2),family:Y,weight:V,style:J,variant:re,textcase:le,shadow:$,lineposition:ne}).attr(vr).call(i0.convertToTspans,e)}return gxe.previousPromises(e)}function Se(Je){var Ke=Je.title,De=n0.select(Ke.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var Be=bxe[s.side],er=s.side==="left"||s.side==="top"?-1:1,ae=yxe(s.pad)?s.pad:2,be=dm.bBox(De.node()),Ge={t:0,b:0,l:0,r:0},sr=e._fullLayout._reservedMargin;for(var vr in sr)for(var ue in sr[vr]){var xe=sr[vr][ue];Ge[ue]=Math.max(Ge[ue],xe)}var Ie={left:Ge.l,top:Ge.t,right:a.width-Ge.r,bottom:a.height-Ge.b},We=s.maxShift||er*(Ie[s.side]-be[s.side]),Oe=0;if(We<0)Oe=We;else{var Xe=s.offsetLeft||0,Qe=s.offsetTop||0;be.left-=Xe,be.right-=Xe,be.top-=Qe,be.bottom-=Qe,s.selection.each(function(){var gr=dm.bBox(this);lf.bBoxIntersect(be,gr,ae)&&(Oe=Math.max(Oe,er*(gr[s.side]-be[Be])+ae))}),Oe=Math.min(We,Oe),n._titleScoot=Math.abs(Oe)}if(Oe>0||We<0){var _r={left:[-Oe,0],right:[Oe,0],top:[0,-Oe],bottom:[0,Oe]}[s.side];De.attr("transform",yz(_r[0],_r[1]))}}}Ae.call(Me,Pe);function Ee(Je,Ke){Je.text(Ke).on("mouseover.opacity",function(){n0.select(this).transition().duration(gz.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){n0.select(this).transition().duration(gz.HIDE_PLACEHOLDER).style("opacity",0)})}if(te&&(p?Ae.on(".opacity",null):(Ee(Ae,o),m=!0),Ae.call(i0.makeEditable,{gd:e}).on("edit",function(Je){l!==void 0?A6.call("_guiRestyle",e,i,Je,l):A6.call("_guiRelayout",e,i,Je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Je){this.text(Je||" ").call(i0.positionText,u.x,u.y)}),P)){if(P&&!p){var qe=Ae.node().getBBox(),Ue=qe.y+qe.height+k6*j;Pe.attr("y",Ue)}I?Pe.on(".opacity",null):(Ee(Pe,R),N=!0),Pe.call(i0.makeEditable,{gd:e}).on("edit",function(Je){A6.call("_guiRelayout",e,"title.subtitle.text",Je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Je){this.text(Je||" ").call(i0.positionText,Pe.attr("x"),Pe.attr("y"))})}return Ae.classed("js-placeholder",m),Pe&&!Pe.empty()&&Pe.classed("js-placeholder",N),c}xz.exports={draw:xxe,SUBTITLE_PADDING_EM:k6,SUBTITLE_PADDING_MATHJAX_EM:M6}});var l0=z((fZe,Mz)=>{"use strict";var _xe=Pr(),wxe=Tc().utcFormat,Rt=ke(),Txe=Rt.numberFormat,hl=Br(),Os=Rt.cleanNumber,Axe=Rt.ms2DateTime,_z=Rt.dateTime2ms,dl=Rt.ensureNumber,wz=Rt.isArrayOrTypedArray,Hs=(Kt(),Ne(aa)),mm=Hs.FP_SAFE,Io=Hs.BADNUM,Mxe=Hs.LOG_CLIP,kxe=Hs.ONEWEEK,ym=Hs.ONEDAY,gm=Hs.ONEHOUR,Tz=Hs.ONEMIN,Az=Hs.ONESEC,bm=Ca(),wm=(Ha(),Ne(Oa)),xm=wm.HOUR_PATTERN,_m=wm.WEEKDAY_PATTERN;function Ih(e){return Math.pow(10,e)}function S6(e){return e!=null}var Sxe=2;function qxe(e,r){if(e<=0)return 0;let t=Math.max(0,r-Sxe);return e>t?t/e:1}Mz.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,_){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&_&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*Mxe*Math.abs(k-M))}else return Io}function o(x,_,k,M){if((M||{}).msUTC&&hl(x))return+x;var q=_z(x,k||r.calendar);if(q===Io)if(hl(x)){x=+x;var C=Math.floor(Rt.mod(x+.05,1)*10),E=Math.round(x-C/10);q=_z(new Date(E))+C/10}else return Io;return q}function l(x,_,k){return Axe(x,_,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(S6(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 _=r._categories.length-1;return r._categoriesMap[x]=_,_}return Io}function f(x,_){for(var k=new Array(_),M=0;M<_;M++){var q=(x[0]||[])[M],C=(x[1]||[])[M];k[M]=c([q,C])}return k}function c(x){if(r._categoriesMap)return r._categoriesMap[x]}function v(x){var _=c(x);if(_!==void 0)return _;if(hl(x))return+x}function d(x){return hl(x)?+x:c(x)}function p(x,_,k){return _xe.round(k+_*x,2)}function m(x,_,k){return(x-k)/_}var y=function(_){return hl(_)?p(_,r._m,r._b):Io},b=function(x){return m(x,r._m,r._b)};if(r.rangebreaks){var T=n==="y";y=function(x){if(!hl(x))return Io;var _=r._rangebreaks.length;if(!_)return p(x,r._m,r._b);var k=T;r.range[0]>r.range[1]&&(k=!k);for(var M=k?-1:1,q=M*x,C=0,E=0;E<_;E++){var P=M*r._rangebreaks[E].min,R=M*r._rangebreaks[E].max;if(q<P)break;if(q>R)C=E+1;else{C=q<(P+R)/2?E:E+1;break}}var B=r._B[C]||0;return isFinite(B)?p(x,r._m2,B):0},b=function(x){var _=r._rangebreaks.length;if(!_)return m(x,r._m,r._b);for(var k=0,M=0;M<_&&!(x<r._rangebreaks[M].pmin);M++)x>r._rangebreaks[M].pmax&&(k=M+1);return m(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:dl,r.l2c=r.type==="log"?Ih:dl,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(x,_){return y(i(x,_))}:y,r.p2c=r.type==="log"?function(x){return Ih(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Os,r.c2d=r.c2r=r.l2d=r.l2r=dl,r.d2p=r.r2p=function(x){return r.l2p(Os(x))},r.p2d=r.p2r=b,r.cleanPos=dl):r.type==="log"?(r.d2r=r.d2l=function(x,_){return i(Os(x),_)},r.r2d=r.r2c=function(x){return Ih(Os(x))},r.d2c=r.r2l=Os,r.c2d=r.l2r=dl,r.c2r=i,r.l2d=Ih,r.d2p=function(x,_){return r.l2p(r.d2r(x,_))},r.p2d=function(x){return Ih(b(x))},r.r2p=function(x){return r.l2p(Os(x))},r.p2r=b,r.cleanPos=dl):r.type==="date"?(r.d2r=r.r2d=Rt.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,_,k){return r.l2p(o(x,0,k))},r.p2d=r.p2r=function(x,_,k){return l(b(x),_,k)},r.cleanPos=function(x){return Rt.cleanDate(x,Io,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var _=d(x);return _!==void 0?_:r.fraction2r(.5)},r.l2r=r.c2r=dl,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:dl(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var _=v(x);return _!==void 0?_:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=dl,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:dl(x)},r.setupMultiCategory=function(x){var _=r._traceIndices,k,M,q=r._matchGroup;if(q&&r._categories.length===0){for(var C in q)if(C!==a){var E=t[bm.id2name(C)];_=_.concat(E._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;k<_.length;k++){var B=x[_[k]];if(n in B){var I=B[n],N=B._length||Rt.minRowLength(I);if(wz(I[0])&&wz(I[1]))for(M=0;M<N;M++){var H=I[0][M],G=I[1][M];S6(H)&&S6(G)&&(R.push([H,G]),H in P[0][1]||(P[0][1][H]=P[0][0]++),G in P[1][1]||(P[1][1][G]=P[1][0]++))}}}for(R.sort(function(Y,j){var W=P[0][1],V=W[Y[0]]-W[j[0]];if(V)return V;var J=P[1][1];return J[Y[1]]-J[j[1]]}),k=0;k<R.length;k++)u(R[k])}),r.fraction2r=function(x){var _=r.r2l(r.range[0]),k=r.r2l(r.range[1]);return r.l2r(_+x*(k-_))},r.r2fraction=function(x){var _=r.r2l(r.range[0]),k=r.r2l(r.range[1]);return(r.r2l(x)-_)/(k-_)},r.limitRange=function(x){var _=r.minallowed,k=r.maxallowed;if(!(_===void 0&&k===void 0)){x||(x="range");var M=Rt.nestedProperty(r,x).get(),q=Rt.simpleMap(M,r.r2l),C=q[1]<q[0];C&&q.reverse();var E=Rt.simpleMap([_,k],r.r2l);if(_!==void 0&&q[0]<E[0]&&(M[C?1:0]=_,q[0]=E[0]),k!==void 0&&q[1]>E[1]&&(M[C?0:1]=k,q[1]=E[1]),q[0]>=q[1])if(_!==void 0){var P=E[0]+1;k!==void 0&&(P=Math.min(P,E[1])),M[C?0:1]=r.l2r(P)}else k!==void 0&&(M[C?1:0]=r.l2r(E[1]-1))}},r.cleanRange=function(x,_){r._cleanRange(x,_),r.limitRange(x)},r._cleanRange=function(x,_){_||(_={}),x||(x="range");var k=Rt.nestedProperty(r,x).get(),M,q;if(r.type==="date"?q=Rt.dfltRange(r.calendar):n==="y"?q=wm.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=_.dfltRange||wm.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!k||k.length!==2){Rt.nestedProperty(r,x).set(q);return}var C=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Rt.cleanDate(k[0],Io,r.calendar),k[1]=Rt.cleanDate(k[1],Io,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Rt.isDateTime(k[M],r.calendar)){r[x]=q;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Rt.constrain(r.r2l(k[0]),Rt.MIN_MS+1e3,Rt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!hl(k[M]))if(!(C||E)&&hl(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[x]=q;break}if(k[M]<-mm?k[M]=-mm:k[M]>mm&&(k[M]=mm),k[0]===k[1]){var R=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=R,k[1]+=R}}},r.setScale=function(x){var _=t._size;if(r.overlaying){var k=bm.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain,r.domainpad=k.domainpad}var M=x&&r._r?"_r":"range",q=r.calendar;r.cleanRange(M);var C=r.r2l(r[M][0],q),E=r.r2l(r[M][1],q),P=n==="y";let R=(P?_.h:_.w)*(r.domain[1]-r.domain[0]),B=r.domainpad,I=0,N=0;if(B){I=(P?B.top:B.left)||0,N=(P?B.bottom:B.right)||0;let W=qxe(I+N,R);I*=W,N*=W}if(r._length=R-I-N,r._padStart=I,r._padEnd=N,P?(r._offset=_.t+(1-r.domain[1])*_.h+I,r._m=r._length/(C-E),r._b=-r._m*E):(r._offset=_.l+r.domain[0]*_.w+I,r._m=r._length/(E-C),r._b=-r._m*C),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var H,G;if(r._rangebreaks=r.locateBreaks(Math.min(C,E),Math.max(C,E)),r._rangebreaks.length){for(H=0;H<r._rangebreaks.length;H++)G=r._rangebreaks[H],r._lBreaks+=Math.abs(G.max-G.min);var Y=P;C>E&&(Y=!Y),Y&&r._rangebreaks.reverse();var j=Y?-1:1;for(r._m2=j*r._length/(Math.abs(E-C)-r._lBreaks),r._B.push(-r._m2*(P?E:C)),H=0;H<r._rangebreaks.length;H++)G=r._rangebreaks[H],r._B.push(r._B[r._B.length-1]-j*r._m2*(G.max-G.min));for(H=0;H<r._rangebreaks.length;H++)G=r._rangebreaks[H],G.pmin=y(G.min),G.pmax=y(G.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 _=r.rangebreaks||[],k,M,q,C,E;_._cachedPatterns||(_._cachedPatterns=_.map(function(W){return W.enabled&&W.bounds?Rt.simpleMap(W.bounds,W.pattern?Os:r.d2c):null})),_._cachedValues||(_._cachedValues=_.map(function(W){return W.enabled&&W.values?Rt.simpleMap(W.values,r.d2c).sort(Rt.sorterAsc):null}));for(var P=0;P<_.length;P++){var R=_[P];if(R.enabled){if(R.bounds){var B=R.pattern;switch(k=_._cachedPatterns[P],M=k[0],q=k[1],B){case _m:E=new Date(x),C=E.getUTCDay(),M>q&&(q+=7,C<M&&(C+=7));break;case xm:E=new Date(x);var I=E.getUTCHours(),N=E.getUTCMinutes(),H=E.getUTCSeconds(),G=E.getUTCMilliseconds();C=I+(N/60+H/3600+G/36e5),M>q&&(q+=24,C<M&&(C+=24));break;case"":C=x;break}if(C>=M&&C<q)return Io}else for(var Y=_._cachedValues[P],j=0;j<Y.length;j++)if(M=Y[j],q=M+R.dvalue,x>=M&&x<q)return Io}}return x},r.locateBreaks=function(x,_){var k,M,q,C,E=[];if(!r.rangebreaks)return E;var P=r.rangebreaks.slice().sort(function(J,re){return J.pattern===_m&&re.pattern===xm?-1:re.pattern===_m&&J.pattern===xm?1:0}),R=function(J,re){if(J=Rt.constrain(J,x,_),re=Rt.constrain(re,x,_),J!==re){for(var le=!0,ne=0;ne<E.length;ne++){var $=E[ne];J<$.max&&re>=$.min&&(J<$.min&&($.min=J),re>$.max&&($.max=re),le=!1)}le&&E.push({min:J,max:re})}};for(k=0;k<P.length;k++){var B=P[k];if(B.enabled)if(B.bounds){var I=x,N=_;B.pattern&&(I=Math.floor(I)),M=Rt.simpleMap(B.bounds,B.pattern?Os:r.r2l),q=M[0],C=M[1];var H=new Date(I),G,Y;switch(B.pattern){case _m:Y=kxe,G=((C<q?7:0)+(C-q))*ym,I+=q*ym-(H.getUTCDay()*ym+H.getUTCHours()*gm+H.getUTCMinutes()*Tz+H.getUTCSeconds()*Az+H.getUTCMilliseconds());break;case xm:Y=ym,G=((C<q?24:0)+(C-q))*gm,I+=q*gm-(H.getUTCHours()*gm+H.getUTCMinutes()*Tz+H.getUTCSeconds()*Az+H.getUTCMilliseconds());break;default:I=Math.min(M[0],M[1]),N=Math.max(M[0],M[1]),Y=N-I,G=Y}for(var j=I;j<N;j+=Y)R(j,j+G)}else for(var W=Rt.simpleMap(B.values,r.d2c),V=0;V<W.length;V++)q=W[V],C=q+B.dvalue,R(q,C)}return E.sort(function(J,re){return J.min-re.min}),E},r.makeCalcdata=function(x,_,k){var M,q,C,E,P=r.type,R=P==="date"&&x[_+"calendar"];if(_ in x){if(M=x[_],E=x._length||Rt.minRowLength(M),Rt.isTypedArray(M)&&(P==="linear"||P==="log")){if(E===M.length)return M;if(M.subarray)return M.subarray(0,E)}if(P==="multicategory")return f(M,E);for(q=new Array(E),C=0;C<E;C++)q[C]=r.d2c(M[C],0,R,k)}else{var B=_+"0"in x?r.d2c(x[_+"0"],0,R):0,I=x["d"+_]?Number(x["d"+_]):1;for(M=x[{x:"y",y:"x"}[_]],E=x._length||M.length,q=new Array(E),C=0;C<E;C++)q[C]=B+C*I}if(r.rangebreaks)for(C=0;C<E;C++)q[C]=r.maskBreaks(q[C]);return q},r.isValidRange=function(x,_){return Array.isArray(x)&&x.length===2&&(_&&x[0]===null||hl(r.r2l(x[0])))&&(_&&x[1]===null||hl(r.r2l(x[1])))},r.getAutorangeDflt=function(x,_){var k=!r.isValidRange(x,"nullOk");return k&&_&&_.reverseDflt?k="reversed":x&&(x[0]===null&&x[1]===null?k=!0:x[0]===null&&x[1]!==null?k="min":x[0]!==null&&x[1]===null&&(k="max")),k},r.isReversed=function(){var x=r.autorange;return x==="reversed"||x==="min reversed"||x==="max reversed"},r.isPtWithinRange=function(x,_){var k=r.c2l(x[n],null,_),M=r.r2l(r.range[0]),q=r.r2l(r.range[1]);return M<q?M<=k&&k<=q:q<=k&&k<=M},r._emptyCategories=function(){r._categories=[],r._categoriesMap={}},r.clearCalc=function(){var x=r._matchGroup;if(x){var _=null,k=null;for(var M in x){var q=t[bm.id2name(M)];if(q._categories){_=q._categories,k=q._categoriesMap;break}}_&&k?(r._categories=_,r._categoriesMap=k):r._emptyCategories()}else r._emptyCategories();if(r._initialCategories)for(var C=0;C<r._initialCategories.length;C++)u(r._initialCategories[C])},r.sortByInitialCategories=function(){var x=[];if(r._emptyCategories(),r._initialCategories)for(var _=0;_<r._initialCategories.length;_++)u(r._initialCategories[_]);x=x.concat(r._traceIndices);var k=r._matchGroup;for(var M in k)if(a!==M){var q=t[bm.id2name(M)];q._categories=r._categories,q._categoriesMap=r._categoriesMap,x=x.concat(q._traceIndices)}return x};var w=t._d3locale;r.type==="date"&&(r._dateFormat=w?w.timeFormat:wxe,r._extraFormat=t._extraFormat),r._separators=t.separators,r._numFormat=w?w.numberFormat:Txe,delete r._minDtick,delete r._forceTick0}});var Am=z((cZe,Lz)=>{"use strict";var kz=Br(),q6=ke(),Lxe=(Kt(),Ne(aa)).BADNUM,Tm=q6.isArrayOrTypedArray,Cxe=q6.isDateTime,Dxe=q6.cleanNumber,Sz=Math.round;Lz.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(Tm(n)&&!n.length)return"-";if(!i&&zxe(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;l<n.length;l++)if(Tm(n[l]))for(var s=0;s<n[l].length;s++)o.push(n[l][s]);n=o}if(Rxe(n,t))return"date";var u=a.autotypenumbers!=="strict";return Fxe(n,u)?"category":Pxe(n,u)?"linear":"-"};function Exe(e,r){return r?kz(e):typeof e=="number"}function Pxe(e,r){for(var t=e.length,a=0;a<t;a++)if(Exe(e[a],r))return!0;return!1}function Rxe(e,r){for(var t=e.length,a=qz(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=Sz(l),u=e[s],f=String(u);o[f]||(o[f]=1,Cxe(u,r)&&n++,kz(u)&&i++)}return n>i*2}function qz(e){return Math.max(1,(e-1)/1e3)}function Fxe(e,r){for(var t=e.length,a=qz(t),n=0,i=0,o={},l=0;l<t;l+=a){var s=Sz(l),u=e[s],f=String(u);if(!o[f]){o[f]=1;var c=typeof u;c==="boolean"?i++:(r?Dxe(u)!==Lxe:c==="number")?n++:c==="string"&&i++}}return i>n*2}function zxe(e){return Tm(e[0])&&Tm(e[1])}});var Bh=z((vZe,Nz)=>{"use strict";var Nxe=Pr(),Pz=Br(),Us=ke(),Mm=(Kt(),Ne(aa)).FP_SAFE,Ixe=Ar(),Bxe=et(),Rz=Ca(),Oxe=Rz.getFromId,Hxe=Rz.isLinked;Nz.exports={applyAutorangeOptions:zz,getAutoRange:L6,makePadFn:C6,doAutoRange:Gxe,findExtremes:Yxe,concatExtremes:P6};function L6(e,r){var t,a,n=[],i=e._fullLayout,o=C6(i,r,0),l=C6(i,r,1),s=P6(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Us.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t<u.length&&c===v;t++)c=Math.min(c,u[t].val);for(t=1;t<f.length&&c===v;t++)v=Math.max(v,f[t].val);var d=r.autorange,p=d==="reversed"||d==="min reversed"||d==="max reversed";if(!p&&r.range){var m=Us.simpleMap(r.range,r.r2l);p=m[1]<m[0]}r.autorange==="reversed"&&(r.autorange=!0);var y=r.rangemode,b=y==="tozero",T=y==="nonnegative",w=r._length,x=w/10,_=0,k,M,q,C,E,P;for(t=0;t<u.length;t++)for(k=u[t],a=0;a<f.length;a++)M=f[a],P=M.val-k.val-Cz(r,k.val,M.val),P>0&&(E=w-o(k)-l(M),E>x?P/E>_&&(q=k,C=M,_=P/E):P/w>_&&(q={val:k.val,nopad:1},C={val:M.val,nopad:1},_=P/w));function R(G,Y){return Math.max(G,l(Y))}if(c===v){var B=c-1,I=c+1;if(b)if(c===0)n=[0,1];else{var N=(c>0?f:u).reduce(R,0),H=c/(1-Math.min(.5,N/w));n=c>0?[0,H]:[H,0]}else T?n=[Math.max(0,B),Math.max(1,I)]:n=[B,I]}else b?(q.val>=0&&(q={val:0,nopad:1}),C.val<=0&&(C={val:0,nopad:1})):T&&(q.val-_*o(q)<0&&(q={val:0,nopad:1}),C.val<=0&&(C={val:1,nopad:1})),_=(C.val-q.val-Cz(r,k.val,M.val))/(w-o(q)-l(C)),n=[q.val-_*o(q),C.val+_*l(C)];return n=zz(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Us.simpleMap(n,r.l2r||Number)}function Cz(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i<n.length;i++){var o=n[i];a+=o.max-o.min}return a}function C6(e,r,t){var a=.05*r._length,n=r._anchorAxis||{};if((r.ticklabelposition||"").indexOf("inside")!==-1||(n.ticklabelposition||"").indexOf("inside")!==-1){var i=r.isReversed();if(!i){var o=Us.simpleMap(r.range,r.r2l);i=o[1]<o[0]}i&&(t=!t)}var l=0;return Hxe(e,r._id)||(l=Uxe(e,r,t)),a=Math.max(l,a),r.constrain==="domain"&&r._inputDomain&&(a*=(r._inputDomain[1]-r._inputDomain[0])/(r.domain[1]-r.domain[0])),function(u){return u.nopad?0:u.pad+(u.extrapad?a:l)}}var Dz=3;function Uxe(e,r,t){var a=0,n=r._id.charAt(0)==="x";for(var i in e._plots){var o=e._plots[i];if(!(r._id!==o.xaxis._id&&r._id!==o.yaxis._id)){var l=(n?o.yaxis:o.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 s=Us.deg2rad(l._tickAngles[l._id+"tick"]||0),u=Math.abs(Math.cos(s)),f=Math.abs(Math.sin(s));if(!l._vals[0].bb){var c=l._id+"tick",v=l._selections[c];v.each(function(T){var w=Nxe.select(this),x=w.select(".text-math-group");x.empty()&&(T.bb=Bxe.bBox(w.node()))})}for(var d=0;d<l._vals.length;d++){var p=l._vals[d],m=p.bb;if(m){var y=2*Dz+m.width,b=2*Dz+m.height;a=Math.max(a,n?Math.max(y*u,b*f):Math.max(b*u,y*f))}}}l.ticks==="inside"&&l.ticklabelposition==="inside"&&(a+=l.ticklen||0)}}}return a}function P6(e,r,t){var a=r._id,n=e._fullData,i=e._fullLayout,o=[],l=[],s,u,f;function c(y,b){for(s=0;s<b.length;s++){var T=y[b[s]],w=(T._extremes||{})[a];if(T.visible===!0&&w){for(u=0;u<w.min.length;u++)f=w.min[u],D6(o,f.val,f.pad,{extrapad:f.extrapad});for(u=0;u<w.max.length;u++)f=w.max[u],E6(l,f.val,f.pad,{extrapad:f.extrapad})}}}if(c(n,r._traceIndices),c(i.annotations||[],r._annIndices||[]),c(i.shapes||[],r._shapeIndices||[]),r._matchGroup&&!t){for(var v in r._matchGroup)if(v!==r._id){var d=Oxe(e,v),p=P6(e,d,!0),m=r._length/d._length;for(u=0;u<p.min.length;u++)f=p.min[u],D6(o,f.val,f.pad*m,{extrapad:f.extrapad});for(u=0;u<p.max.length;u++)f=p.max[u],E6(l,f.val,f.pad*m,{extrapad:f.extrapad})}}return{min:o,max:l}}function Gxe(e,r,t){if(r.setScale(),r.autorange){r.range=t?t.slice():L6(e,r),r._r=r.range.slice(),r._rl=Us.simpleMap(r._r,r.r2l);var a=r._input,n={};n[r._attr+".range"]=r.range,n[r._attr+".autorange"]=r.autorange,Ixe.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,n),a.range=r.range.slice(),a.autorange=r.autorange}var i=r._anchorAxis;if(i&&i.rangeslider){var o=i.rangeslider[r._name];o&&o.rangemode==="auto"&&(o.range=L6(e,r)),i._input.rangeslider[r._name]=Us.extendFlat({},o)}}function Yxe(e,r,t){t||(t={}),e._m||e.setScale();var a=[],n=[],i=r.length,o=t.padded||!1,l=t.tozero&&(e.type==="linear"||e.type==="-"),s=e.type==="log",u=!1,f=t.vpadLinearized||!1,c,v,d,p,m,y,b,T,w;function x(R){if(Array.isArray(R))return u=!0,function(I){return Math.max(Number(R[I]||0),0)};var B=Math.max(Number(R||0),0);return function(){return B}}var _=x((e._m>0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=x(t.vpadplus||t.vpad),q=x(t.vpadminus||t.vpad);if(!u){if(T=1/0,w=-1/0,s)for(c=0;c<i;c++)v=r[c],v<T&&v>0&&(T=v),v>w&&v<Mm&&(w=v);else for(c=0;c<i;c++)v=r[c],v<T&&v>-Mm&&(T=v),v>w&&v<Mm&&(w=v);r=[T,w],i=2}var C={tozero:l,extrapad:o};function E(R){d=r[R],Pz(d)&&(y=_(R),b=k(R),f?(p=e.c2l(d)-q(R),m=e.c2l(d)+M(R)):(T=d-q(R),w=d+M(R),s&&T<w/10&&(T=w/10),p=e.c2l(T),m=e.c2l(w)),l&&(p=Math.min(0,p),m=Math.max(0,m)),Ez(p)&&D6(a,p,b,C),Ez(m)&&E6(n,m,y,C))}var P=Math.min(6,i);for(c=0;c<P;c++)E(c);for(c=i-1;c>=P;c--)E(c);return{min:a,max:n,opts:t}}function D6(e,r,t,a){Fz(e,r,t,a,Vxe)}function E6(e,r,t,a){Fz(e,r,t,a,jxe)}function Fz(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s<e.length&&l;s++){var u=e[s];if(n(u.val,r)&&u.pad>=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function Ez(e){return Pz(e)&&Math.abs(e)<Mm}function Vxe(e,r){return e<=r}function jxe(e,r){return e>=r}function Wxe(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&km(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&km(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Xxe(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&km(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&km(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function km(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r<t):!0}function zz(e,r){if(!r||!r.autorangeoptions)return e;var t=e[0],a=e[1],n=r.autorangeoptions.include;if(n!==void 0){var i=r.d2l(t),o=r.d2l(a);Us.isArrayOrTypedArray(n)||(n=[n]);for(var l=0;l<n.length;l++){var s=r.d2l(n[l]);i>=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=Wxe(t,r),a=Xxe(a,r),[t,a]}});var jr=z((dZe,iN)=>{"use strict";var Wi=Pr(),wa=Br(),s0=_a(),Hh=Ar(),Sr=ke(),u0=Sr.strTranslate,sf=Da(),Zxe=o0(),Uh=qr(),_i=et(),$xe=ji(),Iz=a6(),hZe=(Ha(),Ne(Oa)),cn=(Kt(),Ne(aa)),Jxe=cn.ONEMAXYEAR,Lm=cn.ONEAVGYEAR,Cm=cn.ONEMINYEAR,Kxe=cn.ONEMAXQUARTER,N6=cn.ONEAVGQUARTER,Dm=cn.ONEMINQUARTER,Qxe=cn.ONEMAXMONTH,f0=cn.ONEAVGMONTH,Em=cn.ONEMINMONTH,wi=cn.ONEWEEK,Cn=cn.ONEDAY,Gs=Cn/2,ml=cn.ONEHOUR,Gh=cn.ONEMIN,Pm=cn.ONESEC,e5e=cn.ONEMILLI,r5e=cn.ONEMICROSEC,uf=cn.MINUS_SIGN,Fm=cn.BADNUM,I6={K:"zeroline"},B6={K:"gridline",L:"path"},O6={K:"minor-gridline",L:"path"},Zz={K:"tick",L:"path"},Bz={K:"tick",L:"text"},Oz={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},zm=(un(),Ne(sn)),Oh=zm.MID_SHIFT,ff=zm.CAP_SHIFT,Yh=zm.LINE_SPACING,t5e=zm.OPPOSITE_SIDE,Rm=3,Ye=iN.exports={};Ye.setConvert=l0();var a5e=Am(),yl=Ca(),n5e=yl.idSort,i5e=yl.isLinked;Ye.id2name=yl.id2name;Ye.name2id=yl.name2id;Ye.cleanId=yl.cleanId;Ye.list=yl.list;Ye.listIds=yl.listIds;Ye.getFromId=yl.getFromId;Ye.getFromTrace=yl.getFromTrace;var $z=Bh();Ye.getAutoRange=$z.getAutoRange;Ye.findExtremes=$z.findExtremes;var o5e=1e-4;function Y6(e){var r=(e[1]-e[0])*o5e;return[e[0]-r,e[1]+r]}function l5e(e,r,t){if(![t,e,r].every(wa)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)<Math.abs(t)*1e-6?n:e}Ye.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",u={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},Sr.coerce(e,r,u,s)};Ye.coerceRefArray=function(e,r,t,a,n,i,o){let l=a.charAt(a.length-1);var s=t._fullLayout._subplots[l+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(v=>v+" domain")),s=s.concat(i||[]),f.length>o?(Sr.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length<o&&(Sr.warn("Array attribute "+u+" has fewer entries than expected, extending with default value"),f=f.concat(Array(o-f.length).fill(n)));for(var c=0;c<f.length;c++)f[c]=yl.cleanId(f[c],l,!0)||f[c],s.includes(f[c])||(f[c]=n);return r[u]=f,f};Ye.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ye.coercePosition=function(e,r,t,a,n,i){var o,l,s=Ye.getRefType(a);if(s!=="range")o=Sr.ensureNumber,l=t(n,i);else{var u=Ye.getFromId(r,a);i=u.fraction2r(i),l=t(n,i),o=u.cleanPos}e[n]=o(l)};Ye.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?Sr.ensureNumber:Ye.getFromId(r,t).cleanPos;return a(e)};Ye.redrawComponents=function(e,r){r=r||Ye.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=Hh.getComponentMethod(n,i),u={},f=0;f<r.length;f++)for(var c=t[Ye.id2name(r[f])],v=c[o],d=0;d<v.length;d++){var p=v[d];if(!u[p]&&(s(e,p),u[p]=1,l))return}}a("annotations","drawOne","_annIndices"),a("shapes","drawOne","_shapeIndices"),a("images","draw","_imgIndices",!0),a("selections","drawOne","_selectionIndices")};var s5e=Ye.getDataConversions=function(e,r,t,a){var n,i=t==="x"||t==="y"||t==="z"?t:a;if(Sr.isArrayOrTypedArray(i)){if(n={type:a5e(a,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},Ye.setConvert(n),n.type==="category")for(var o=0;o<a.length;o++)n.d2c(a[o])}else n=Ye.getFromTrace(e,r,i);return n?{d2c:n.d2c,c2d:n.c2d}:i==="ids"?{d2c:Uz,c2d:Uz}:{d2c:Hz,c2d:Hz}};function Hz(e){return+e}function Uz(e){return String(e)}Ye.getDataToCoordFunc=function(e,r,t,a){return s5e(e,r,t,a).d2c};Ye.counterLetter=function(e){var r=e.charAt(0);if(r==="x")return"y";if(r==="y")return"x"};Ye.minDtick=function(e,r,t,a){["log","category","multicategory"].indexOf(e.type)!==-1||!a?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))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;n<t.length;n++){var i=t[n],o=i._rangeInitial0===void 0&&i._rangeInitial1===void 0,l=o||i.range[0]!==i._rangeInitial0||i.range[1]!==i._rangeInitial1,s=i.autorange;(o&&s!==!0||r&&l)&&(i._rangeInitial0=s==="min"||s==="max reversed"?void 0:i.range[0],i._rangeInitial1=s==="max"||s==="min reversed"?void 0:i.range[1],i._autorangeInitial=s,a=!0)}return a};Ye.saveShowSpikeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n="on",i=0;i<t.length;i++){var o=t[i],l=o._showSpikeInitial===void 0,s=l||o.showspikes!==o._showspikes;(l||r&&s)&&(o._showSpikeInitial=o.showspikes,a=!0),n==="on"&&!o.showspikes&&(n="off")}return e._fullLayout._cartesianSpikesEnabled=n,a};Ye.autoBin=function(e,r,t,a,n,i){var o=Sr.aggNums(Math.min,null,e),l=Sr.aggNums(Math.max,null,e);if(r.type==="category"||r.type==="multicategory")return{start:o-.5,end:l+.5,size:Math.max(1,Math.round(i)||1),_dataSpan:l-o};n||(n=r.calendar);var s;if(r.type==="log"?s={type:"linear",range:[o,l]}:s={type:r.type,range:Sr.simpleMap([o,l],r.c2r,0,n),calendar:n},Ye.setConvert(s),i=i&&Iz.dtick(i,s.type),i)s.dtick=i,s.tick0=Iz.tick0(void 0,s.type,n);else{var u;if(t)u=(l-o)/t;else{var f=Sr.distinctVals(e),c=Math.pow(10,Math.floor(Math.log(f.minDiff)/Math.LN10)),v=c*Sr.roundUp(f.minDiff/c,[.9,1.9,4.9,9.9],!0);u=Math.max(v,2*Sr.stdev(e)/Math.pow(e.length,a?.25:.4)),wa(u)||(u=1)}Ye.autoTicks(s,u)}var d=s.dtick,p=Ye.tickIncrement(Ye.tickFirst(s),d,"reverse",n),m,y;if(typeof d=="number")p=u5e(p,e,s,o,l),y=1+Math.floor((l-p)/d),m=p+y*d;else for(s.dtick.charAt(0)==="M"&&(p=f5e(p,e,d,o,n)),m=p,y=0;m<=l;)m=Ye.tickIncrement(m,d,!1,n),y++;return{start:r.c2r(p,0,n),end:r.c2r(m,0,n),size:d,_dataSpan:l-o}};function u5e(e,r,t,a,n){var i=0,o=0,l=0,s=0;function u(d){return(1+(d-e)*100/t.dtick)%100<2}for(var f=0;f<r.length;f++)r[f]%1===0?l++:wa(r[f])||s++,u(r[f])&&i++,u(r[f]+t.dtick/2)&&o++;var c=r.length-s;if(l===c&&t.type!=="date")t.dtick<1?e=a-.5*t.dtick:(e-=.5,e+t.dtick<a&&(e+=t.dtick));else if(o<c*.1&&(i>c*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+v<a?v:-v}return e}function f5e(e,r,t,a,n){var i=Sr.findExactDates(r,n),o=.8;if(i.exactDays>o){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=Ye.tickIncrement(e,"M6","reverse")+Cn*1.5:i.exactMonths>o?e=Ye.tickIncrement(e,"M1","reverse")+Cn*15.5:e-=Gs;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&wa(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=Sr.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Sr.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var l=wa(r.dtick),s=wa(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?R6(u,f)?u===2*wi&&f===2*Cn&&(e.dtick=wi):u===2*wi&&f===3*Cn?e.dtick=wi:u===wi&&!(r._input.minor||{}).nticks?e.dtick=Cn:Gz(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":R6(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?R6(u,f)||(e.dtick=Gz(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0),r._useTicklabelIndex&&(V6(e),r.minor._tickround=e._tickround)};function R6(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function Gz(e,r){return Math.abs(e/r-1)<.001}Ye.prepTicks=function(e,r){var t=Sr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Sr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Sr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.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"&&c5e(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),V6(e)};function F6(e){return+e.substring(1)}function c5e(e){var r;function t(){return!(wa(e.dtick)||e.dtick.charAt(0)!=="M")}var a=t(),n=Ye.getTickFormat(e);if(n){var i=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(n)||(/%[HI]/.test(n)?(r=ml,i&&!a&&e.dtick<ml&&(e.dtick=ml)):/%p/.test(n)?(r=Gs,i&&!a&&e.dtick<Gs&&(e.dtick=Gs)):/%[Aadejuwx]/.test(n)?(r=Cn,i&&!a&&e.dtick<Cn&&(e.dtick=Cn)):/%[UVW]/.test(n)?(r=wi,i&&!a&&e.dtick<wi&&(e.dtick=wi)):/%[Bbm]/.test(n)?(r=f0,i&&(a?F6(e.dtick)<1:e.dtick<Em)&&(e.dtick="M1")):/%[q]/.test(n)?(r=N6,i&&(a?F6(e.dtick)<3:e.dtick<Dm)&&(e.dtick="M3")):/%[Yy]/.test(n)&&(r=Lm,i&&(a?F6(e.dtick)<12:e.dtick<Cm)&&(e.dtick="M12")))}a=t(),a&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=r}function v5e(e,r,t){for(var a=0;a<e.length;a++){var n=e[a].value,i,o;if(e[a].periodEndTick!=null)i=e[a].value,o=e[a].periodEndTick.value;else{var l=a,s=a+1;a<e.length-1?(l=a,s=a+1):a>0?(l=a-1,s=a):(l=a,s=a),i=e[l].value,o=e[s].value}var u=Math.abs(o-i),f=t||u,c=0;e[a].periodEndTick!=null?c=u:f>=Cm?u>=Cm&&u<=Jxe?c=u:c=Lm:t===N6&&f>=Dm?u>=Dm&&u<=Kxe?c=u:c=N6:f>=Em?u>=Em&&u<=Qxe?c=u:c=f0:t===wi&&f>=wi?c=wi:f>=Cn?c=Cn:t===Gs&&f>=Gs?c=Gs:t===ml&&f>=ml&&(c=ml);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;y<p;y++){var b=(y+.5)/p;r.maskBreaks(n*(1-b)+b*d)!==Fm&&m++}c*=m/p,c||(e[a].drop=!0),v&&u>wi&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ye.calcTicks=function(r,t){var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||Sr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=s!=null&&s!==0;for(var u=Sr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]<u[0],c=Math.min(u[0],u[1]),v=Math.max(u[0],u[1]),d=Math.max(1e3,r._length||0),p=[],m=[],y=[],b=[],T=[],w=r.minor&&(r.minor.ticks||r.minor.showgrid),x=w||r._useTicklabelIndex,_=1;_>=(x?0:1);_--){var k=!_;_?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=_?r:Sr.extendFlat({},r,x?r.minor:{minor:{}});if(k?Ye.prepMinorTicks(M,r,t):Ye.prepTicks(M,t),M.tickmode==="array"){_?(y=[],p=Yz(r,!k)):(b=[],m=Yz(r,!k));continue}if(M.tickmode==="sync"){y=[],p=h5e(r);continue}var q=Y6(u),C=q[0],E=q[1],P=wa(M.dtick),R=a==="log"&&!(P||M.dtick.charAt(0)==="L"),B=Ye.tickFirst(M,t);if(_){if(r._tmin=B,B<C!==f)break;(a==="category"||a==="multicategory")&&(E=f?Math.max(-.5,E):Math.min(r._categories.length-.5,E))}var I=null,N=B,H;if(_){var G;P?G=r.dtick:a==="date"?typeof r.dtick=="string"&&r.dtick.charAt(0)==="M"&&(G=f0*r.dtick.substring(1)):G=r._roughDTick,H=Math.round((r.r2l(N)-r.r2l(r.tick0))/G)-1}var Y=M.dtick,j=a==="linear"?M.r2l(M.tick0):void 0;for(M.rangebreaks&&M._tick0Init!==M.tick0&&(N=z6(N,r),f||(N=Ye.tickIncrement(N,Y,!f,n))),(_||r._useTicklabelIndex)&&o&&(N=Ye.tickIncrement(N,Y,!f,n),_&&H--);f?N>=E:N<=E;N=Ye.tickIncrement(N,Y,f,n)){if(_&&H++,M.rangebreaks&&!f){if(N<C)continue;if(M.maskBreaks(N)===Fm&&z6(N,M)>=v)break}if(y.length>d||N===I)break;I=N;var W={value:l5e(N,j,Y)};_?(N===B&&(W.first=!0),R&&N!==(N|0)&&(W.simpleLabel=!0),i>1&&H%i&&(W.skipLabel=!0),y.push(W)):(W.minor=!0,b.push(W))}}function V(Me,Le){let Se=Le.find(qe=>qe.value===Me.value);if(Se!=null)return Se;let Ee=1e7;for(let qe=0;qe<Le.length;qe++)if(Ee+Le[qe].value===Ee+Me.value)return Le[qe];return null}if(!b||b.length<3)r._useTicklabelIndex=!1;else{let Me=(b[2].value-b[1].value)*(l?-1:1);I5e(Me,r.tickformat)||(r._useTicklabelIndex=!1,b=b.slice(1))}if(!r._useTicklabelIndex)T=y;else{let Me=b.filter(Se=>V(Se,y)==null),Le=y.concat(Me).sort((Se,Ee)=>Se.value-Ee.value);o&&y.length&&(y[0].skipLabel=!0),y.forEach(function(Se){Se.skipLabel||(s.forEach(Ee=>{if(Ee<0){let qe=Le.filter(Ke=>Ke.value<=Se.value),Ue=Math.abs(Ee),Je=qe.length-Ue-1;if(Ue<qe.length){let Ke=qe[Je];T.push(Ke),o&&(Ke.periodEndTick=qe[Je+1])}}else{let qe=Le.filter(Ue=>Ue.value>=Se.value);if(Ee<qe.length){let Ue=qe[Ee];T.push(Ue),o&&qe[Ee+1]&&(Ue.periodEndTick=qe[Ee+1])}}}),Se.skipLabel=!0)}),T.forEach(Se=>Se.skipLabel=!1)}if(w){var J=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!J){for(var re=[],le=0;le<b.length;le++)V(b[le],y)==null&&re.push(b[le]);b=re}}o&&v5e(T,r,r._definedDelta);var ne;if(r.rangebreaks){var $=r._id.charAt(0)==="y",ce=1;r.tickmode==="auto"&&(ce=r.tickfont?r.tickfont.size:12);var te=NaN;for(ne=y.length-1;ne>-1;ne--){if(y[ne].drop){y.splice(ne,1);continue}y[ne].value=z6(y[ne].value,r);var ge=r.c2p(y[ne].value);($?te>ge-ce:te<ge+ce)?y.splice(f?ne+1:ne,1):te=ge}}Z6(r)&&Math.abs(u[1]-u[0])===360&&y.pop(),r._tmax=(y[y.length-1]||{}).value,y.length&&(y[y.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var se,oe=function(Me){Me.text="",r._prevDateHead=se};y=y.concat(b);function Ae(Me,Le){var Se=Ye.tickText(Me,Le.value,!1,Le.simpleLabel,{first:Le.first,last:Le.last}),Ee=Le.periodX;return Ee!==void 0&&(Se.periodX=Ee,(Ee>v||Ee<c)&&(Ee>v&&(Se.periodX=v),Ee<c&&(Se.periodX=c),oe(Se))),Se}var Pe;for(ne=0;ne<y.length;ne++){var me=y[ne].minor,Ce=y[ne].value;me?(r._useTicklabelIndex&&T.indexOf(y[ne])!==-1?Pe=Ae(r,y[ne]):Pe={x:Ce},Pe.minor=!0,m.push(Pe)):(se=r._prevDateHead,Pe=Ae(r,y[ne]),y[ne].skipLabel&&oe(Pe),p.push(Pe))}return o&&r._useTicklabelIndex&&m.length&&(m[0].noTick=!0),p=p.concat(m),r._inCalcTicks=!1,o&&p.length&&(p[0].noTick=!0),p};function Jz(e,r){return e.rangebreaks&&(r=r.filter(function(t){return e.maskBreaks(t.x)!==Fm})),r}function h5e(e){var r=e._mainAxis,t=[];if(r._vals){for(var a=-1,n=-1,i=0;i<r._vals.length;i++)r._vals[i].noTick||r._vals[i].minor||(a===-1&&(a=i),n=i);for(var o=0;o<r._vals.length;o++)if(!r._vals[o].noTick){var l=r.l2p(r._vals[o].x),s=e.p2l(l),u=Ye.tickText(e,s,!1,void 0,{first:o===a,last:o===n});r._vals[o].minor&&(u.minor=!0,u.text=""),t.push(u)}}return t=Jz(e,t),t}function Yz(e,r){var t=Sr.simpleMap(e.range,e.r2l),a=Y6(t),n=Math.min(a[0],a[1]),i=Math.max(a[0],a[1]),o=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=[],s=0;s<=1;s++)if(!(r!==void 0&&(r&&s||r===!1&&!s))&&!(s&&!e.minor)){var u=s?e.minor.tickvals:e.tickvals,f=s?[]:e.ticktext;if(u){Sr.isArrayOrTypedArray(f)||(f=[]);var c=-1,v=-1;if(!s)for(var d=0;d<u.length;d++){var p=o(u[d]);p>n&&p<i&&(c===-1&&(c=d),v=d)}for(var m=0;m<u.length;m++){var y=o(u[m]);if(y>n&&y<i){let b=Ye.tickText(e,y,!1,f[m]!==void 0,{first:m===c,last:m===v});s&&(b.minor=!0,b.text=""),l.push(b)}}}}return l=Jz(e,l),l}var Sm=[2,5,10],Vz=[1,2,3,6,12],jz=[1,2,5,10,15,30],d5e=[1,2,3,7,14],Kz=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],Qz=[-.301,0,.301,.699,1],p5e=[15,30,45,90,180];function pl(e,r,t){return r*Sr.roundUp(e/r,t)}Ye.autoTicks=function(e,r,t){var a;function n(c){return Math.pow(c,Math.floor(Math.log(r)/Math.LN10))}if(e.type==="date"){e.tick0=Sr.dateTick0(e.calendar,0);var i=2*r;if(i>Lm)r/=Lm,a=n(10),e.dtick="M"+12*pl(r,a,Sm);else if(i>f0)r/=f0,e.dtick="M"+pl(r,1,Vz);else if(i>Cn){if(e.dtick=pl(r,Cn,e._hasDayOfWeekBreaks?[1,2,7,14]:d5e),!t){var o=Ye.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Sr.dateTick0(e.calendar,2):e.tick0=Sr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>ml?e.dtick=pl(r,ml,Vz):i>Gh?e.dtick=pl(r,Gh,jz):i>Pm?e.dtick=pl(r,Pm,jz):(a=n(10),e.dtick=pl(r,a,Sm))}else if(e.type==="log"){e.tick0=0;var s=Sr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+pl(r,a,Sm)}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))):Z6(e)?(e.tick0=0,a=1,e.dtick=pl(r,a,p5e)):(e.tick0=0,a=n(10),e.dtick=pl(r,a,Sm));if(e.dtick===0&&(e.dtick=1),!wa(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function V6(e){var r=e.dtick;if(e._tickexponent=0,!wa(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=Cn&&n<=10||r>=Cn*15)e._tickround="d";else if(r>=Gh&&n<=16||r>=ml)e._tickround="M";else if(r>=Pm&&n<=19||r>=Gh)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(wa(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);wa(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(c0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!j6(s)||c0(e.exponentformat)&&e.exponentformat==="SI extended"&&!W6(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(wa(r))return Sr.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return Sr.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?Qz:Kz,s=e+n*.01,u=Sr.roundUp(Sr.mod(s,1),l,t);return Math.floor(s)+Math.log(Wi.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=Sr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]<a[0],i=n?Math.floor:Math.ceil,o=Y6(a)[0],l=e.dtick,s=t(e.tick0);if(wa(l)){var u=i((o-s)/l)*l+s;return(e.type==="category"||e.type==="multicategory")&&(u=Sr.constrain(u,0,e._categories.length-1)),u}var f=l.charAt(0),c=Number(l.slice(1));if(f==="M"){for(var v=0,d=s,p,m,y;v<10;){if(p=Ye.tickIncrement(d,l,n,e.calendar),(p-o)*(d-o)<=0)return n?Math.min(d,p):Math.max(d,p);m=(o-(d+p)/2)/(p-d),y=f+(Math.abs(Math.round(m))||1)*c,d=Ye.tickIncrement(d,y,m<0?!n:n,e.calendar),v++}return Sr.error("tickFirst did not converge",e),d}else{if(f==="L")return Math.log(i((Math.pow(10,o)-s)/c)*c+s)/Math.LN10;if(f==="D"){var b=l==="D2"?Qz:Kz,T=Sr.roundUp(Sr.mod(o,1),b,n);return Math.floor(o)+Math.log(Wi.round(Math.pow(10,T),1))/Math.LN10}else throw"unrecognized dtick "+String(l)}};Ye.tickText=function(e,r,t,a,n){var i=!!(n!=null&&n.first),o=!!(n!=null&&n.last),l=eN(e,r),s=e.tickmode==="array",u=t||s,f=e.type,c=f==="category"?e.d2l_noadd:e.d2l,v,d=function(w){var x=e.l2p(w);return x>=0&&x<=e._length?w:null};if(s&&Sr.isArrayOrTypedArray(e.ticktext)){var p=Sr.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v<e.ticktext.length&&!(Math.abs(r-c(e.tickvals[v]))<m);v++);if(v<e.ticktext.length)return l.text=String(e.ticktext[v]),l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)],l}function y(w){return w===void 0?!0:t?w==="none":w==="all"?!1:w==="first"?!i:w==="last"?!o:!0}var b=t?"never":e.exponentformat!=="none"&&y(e.showexponent)?"hide":"";if(f==="date"?m5e(e,l,t,u):f==="log"?y5e(e,l,t,u,b):f==="category"?g5e(e,l):f==="multicategory"?b5e(e,l,t):Z6(e)?_5e(e,l,t,u,b):x5e(e,l,t,u,b),a||(e.tickprefix&&!y(e.showtickprefix)&&(l.text=e.tickprefix+l.text),e.ticksuffix&&!y(e.showticksuffix)&&(l.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(l.text)){var T=e.labelalias[l.text];typeof T=="string"&&(l.text=T)}return(e.tickson==="boundaries"||e.showdividers)&&(l.xbnd=[d(l.x-.5),d(l.x+e.dtick-.5)]),l};Ye.hoverLabelText=function(e,r,t){t&&(e=Sr.extendFlat({},e,{hoverformat:t}));var a=Sr.isArrayOrTypedArray(r)?r[0]:r,n=Sr.isArrayOrTypedArray(r)?r[1]:void 0;if(n!==void 0&&n!==a)return Ye.hoverLabelText(e,a,t)+" - "+Ye.hoverLabelText(e,n,t);var i=e.type==="log"&&a<=0,o=Ye.tickText(e,e.c2l(i?-a:a),"hover").text;return i?a===0?"0":uf+o:o};function eN(e,r,t){var a=e.tickfont||{};return{x:r,dx:0,dy:0,text:t||"",fontSize:a.size,font:a.family,fontWeight:a.weight,fontStyle:a.style,fontVariant:a.variant,fontTextcase:a.textcase,fontLineposition:a.lineposition,fontShadow:a.shadow,fontColor:a.color}}function m5e(e,r,t,a){var n=e._useTicklabelIndex?e.minor._tickround:e._tickround,i=t&&e.hoverformat||Ye.getTickFormat(e);a=!i&&a,a&&(wa(n)?n=4:n={y:"m",m:"d",d:"M",M:"S",S:4}[n]);var o=Sr.formatDate(r.x,i,n,e._dateFormat,e.calendar,e._extraFormat),l,s=o.indexOf(`
`);if(s!==-1&&(l=o.slice(s+1),o=o.slice(0,s)),a&&(l!==void 0&&(o==="00:00:00"||o==="00:00")?(o=l,l=""):o.length===8&&(o=o.replace(/:00$/,""))),l)if(t)n==="d"?o+=", "+l:o=l+(o?", "+o:"");else if(!e._inCalcTicks||e._prevDateHead!==l)e._prevDateHead=l,o+="<br>"+l;else{var u=jh(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="<br> ")}r.text=o}function y5e(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=Vh(Math.pow(10,o),e,n,a);else if(wa(i)||s==="D"&&(e.minorloglabels==="complete"||Sr.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Sr.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||c0(p)&&p!=="SI extended"&&j6(v)||c0(p)&&p==="SI extended"&&W6(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+="<sup>"+(v>0?"":uf)+d+"</sup>"),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":uf)+d:(r.text=Vh(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Sr.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="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*(o<0?.5:.25)))}}function g5e(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function b5e(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function x5e(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Vh(r.x,e,n,a)}function _5e(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=w5e(i);if(o[1]>=100)r.text=Vh(Sr.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["<sup>",o[0],"</sup>","\u2044","<sub>",o[1],"</sub>","\u03C0"].join(""),l&&(r.text=uf+r.text)}}}else r.text=Vh(r.x,e,n,a)}function w5e(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var rN=["f","p","n","\u03BC","m","","k","M","G","T"],T5e=["q","r","y","z","a",...rN,"P","E","Z","Y","R","Q"],c0=e=>["SI","SI extended","B"].includes(e);function j6(e){return e>14||e<-15}function W6(e){return e>32||e<-30}function A5e(e,r){return c0(r)?!!(r==="SI extended"&&W6(e)||r!=="SI extended"&&j6(e)):!1}function Vh(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:wa(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};V6(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,uf);o==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e<c)e="0",n=!1;else{if(l&&(e*=Math.pow(10,-l),i+=l),i===0)e=String(Math.round(e));else if(i<0){let d=Math.pow(10,-i);e=String(Math.round(e/d)*d)}else e=e.toFixed(Math.min(20,i)).replace(/\.?0+$/,"");e=Sr.numSeparate(e,r._separators,u)}if(l&&o!=="hide"){A5e(l,o)&&(o="power");var v;l<0?v=uf+-l:o!=="power"?v="+"+l:v=String(l),o==="e"||o==="E"?e+=o+v:o==="power"?e+="\xD710<sup>"+v+"</sup>":o==="B"&&l===9?e+="B":c0(o)&&(e+=o==="SI extended"?T5e[l/3+10]:rN[l/3+5])}return n?uf+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*f0}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],d=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||v)&&(c||d)}var o,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&&n(e.dtick,l.dtickrange,t)){o=l;break}break}case"log":{for(r=0;r<e.tickformatstops.length;r++)if(l=e.tickformatstops[r],l.enabled&&i(e.dtick,l.dtickrange)){o=l;break}break}default:}return o?o.value:e.tickformat};Ye.getSubplots=function(e,r){var t=e._fullLayout._subplots,a=t.cartesian.concat(t.gl2d||[]),n=r?Ye.findSubplotsWithAxis(a,r):a;return n.sort(function(i,o){var l=i.slice(1).split("y"),s=o.slice(1).split("y");return l[0]===s[0]?+l[1]-+s[1]:+l[0]-+s[0]}),n};Ye.findSubplotsWithAxis=function(e,r){for(var t=new RegExp(r._id.charAt(0)==="x"?"^"+r._id+"y":r._id+"$"),a=[],n=0;n<e.length;n++){var i=e[n];t.test(i)&&a.push(i)}return a};Ye.makeClipPaths=function(e){var r=e._fullLayout;if(!r._hasOnlyLargeSploms){var t={_offset:0,_length:r.width,_id:""},a={_offset:0,_length:r.height,_id:""},n=Ye.list(e,"x",!0),i=Ye.list(e,"y",!0),o=[],l,s;for(l=0;l<n.length;l++)for(o.push({x:n[l],y:a}),s=0;s<i.length;s++)l===0&&o.push({x:t,y:i[s]}),o.push({x:n[l],y:i[s]});var u=r._clips.selectAll(".axesclip").data(o,function(f){return f.x._id+f.y._id});u.enter().append("clipPath").classed("axesclip",!0).attr("id",function(f){return"clip"+r._uid+f.x._id+f.y._id}).append("rect"),u.exit().remove(),u.each(function(f){Wi.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})})}};Ye.draw=function(e,r,t){var a=e._fullLayout;r==="redraw"&&a._paper.selectAll("g.subplot").each(function(s){var u=s[0],f=a._plots[u];if(f){var c=f.xaxis,v=f.yaxis;f.xaxislayer.selectAll("."+c._id+"tick").remove(),f.yaxislayer.selectAll("."+v._id+"tick").remove(),f.xaxislayer.selectAll("."+c._id+"tick2").remove(),f.yaxislayer.selectAll("."+v._id+"tick2").remove(),f.xaxislayer.selectAll("."+c._id+"divider").remove(),f.yaxislayer.selectAll("."+v._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(),a._infolayer.select(".g-"+c._id+"title").remove(),a._infolayer.select(".g-"+v._id+"title").remove()}});var n=!r||r==="redraw"?Ye.listIds(e):r,i=Ye.list(e),o=i.filter(function(s){return s.autoshift}).map(function(s){return s.overlaying});n.map(function(s){var u=Ye.getFromId(e,s);if(u.tickmode==="sync"&&u.overlaying){var f=n.findIndex(function(c){return c===u.overlaying});f>=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Sr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&G6(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=Sr.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ye.counterLetter(u),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),G6(r,p,a,!0),G6(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=N5e(r,a));var m=v[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,T=r._mainMirrorPosition,w=r._vals=Ye.calcTicks(r),x=[r.mirror,b,T].join("_");for(i=0;i<w.length;i++)w[i].axInfo=x;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var _={};function k(qe){var Ue=u+(qe||"tick");return _[Ue]||(_[Ue]=q5e(r,Ue,b)),_[Ue]}if(r.visible){var M=Ye.makeTransTickFn(r),q=Ye.makeTransTickLabelFn(r),C,E,P=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var B=M5e(r,w);E=Ye.clipEnds(r,B),C=P?E:B}else E=Ye.clipEnds(r,w),C=P&&r.ticklabelmode!=="period"?E:w;var I=r._gridVals=E,N=S5e(r,w);if(!s._hasOnlyLargeSploms){var H=r._subplotsWith,G={};for(i=0;i<H.length;i++){o=H[i],l=s._plots[o];var Y=l[c+"axis"],j=Y._mainAxis._id;if(!G[j]){G[j]=1;var W=f==="x"?"M0,"+Y._offset+"v"+Y._length:"M"+Y._offset+",0h"+Y._length;Ye.drawGrid(e,r,{vals:I,counterAxis:Y,layer:l.gridlayer.select("."+u),minorLayer:l.minorGridlayer.select("."+u),path:W,transFn:M}),Ye.drawZeroLine(e,r,{counterAxis:Y,layer:d?l.zerolinelayerAbove:l.zerolinelayer,path:W,transFn:M})}}}var V,J=Ye.getTickSigns(r),re=Ye.getTickSigns(r,"minor");if(r.ticks||r.minor&&r.minor.ticks){var le=Ye.makeTickPath(r,b,J[2]),ne=Ye.makeTickPath(r,b,re[2],{minor:!0}),$,ce,te,ge;if(r._anchorAxis&&r.mirror&&r.mirror!==!0?($=Ye.makeTickPath(r,T,J[3]),ce=Ye.makeTickPath(r,T,re[3],{minor:!0}),te=le+$,ge=ne+ce):($="",ce="",te=le,ge=ne),r.showdividers&&R&&r.tickson==="boundaries"){var se={};for(i=0;i<N.length;i++)se[N[i].x]=1;V=function(qe){return se[qe.x]?$:te}}else V=function(qe){return qe.minor?ge:te}}if(Ye.drawTicks(e,r,{vals:C,layer:m,path:V,transFn:M}),r.mirror==="allticks"){var oe=Object.keys(r._linepositions||{});for(i=0;i<oe.length;i++){o=oe[i],l=s._plots[o];var Ae=r._linepositions[o]||[],Pe=Ae[0],me=Ae[1],Ce=Ae[2],Me=Ye.makeTickPath(r,Pe,Ce?J[0]:re[0],{minor:Ce})+Ye.makeTickPath(r,me,Ce?J[1]:re[1],{minor:Ce});Ye.drawTicks(e,r,{vals:C,layer:l[f+"axislayer"],path:Me,transFn:M})}}var Le=[];if(Le.push(function(){return Ye.drawLabels(e,r,{vals:w,layer:m,plotinfo:l,transFn:q,labelFns:Ye.makeLabelFns(r,b)})}),r.type==="multicategory"){var Se={x:2,y:10}[f];Le.push(function(){var qe={x:"height",y:"width"}[f],Ue=k()[qe]+Se+(r._tickAngles[u+"tick"]?r.tickfont.size*Yh:0);return Ye.drawLabels(e,r,{vals:k5e(r,w),layer:m,cls:u+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:Ye.makeLabelFns(r,b+Ue*J[4])})}),Le.push(function(){return r._depth=J[4]*(k("tick2")[r.side]-b),C5e(e,r,{vals:N,layer:m,path:Ye.makeTickPath(r,b,J[4],{len:r._depth}),transFn:M})})}else r.title.hasOwnProperty("standoff")&&Le.push(function(){r._depth=J[4]*(k()[r.side]-b)});var Ee=Hh.getComponentMethod("rangeslider","isVisible")(r);return!t.skipTitle&&!(Ee&&r.side==="bottom")&&Le.push(function(){return D5e(e,r)}),Le.push(function(){var qe=r.side.charAt(0),Ue=t5e[r.side].charAt(0),Je=Ye.getPxPosition(e,r),Ke=R?r.ticklen:0,De,Be,er,ae;(r.automargin||Ee||r._shiftPusher)&&(r.type==="multicategory"?De=k("tick2"):(De=k(),f==="x"&&qe==="b"&&(r._depth=Math.max(De.width>0?De.bottom-Je:0,Ke))));var be=0,Ge=0;if(r._shiftPusher&&(be=Math.max(Ke,De.height>0?qe==="l"?Je-De.left:De.right-Je:0),r.title.text!==s._dfltTitle[f]&&(Ge=(r._titleStandoff||0)+(r._titleScoot||0),qe==="l"&&(Ge+=Xz(r))),r._fullDepth=Math.max(be,Ge)),r.automargin){Be={x:0,y:0,r:0,l:0,t:0,b:0};var sr=[0,1],vr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(qe==="b"?Be[qe]=r._depth:(Be[qe]=r._depth=Math.max(De.width>0?Je-De.top:0,Ke),sr.reverse()),De.width>0){var ue=De.right-(r._offset+r._length);ue>0&&(Be.xr=1,Be.r=ue);var xe=r._offset-De.left;xe>0&&(Be.xl=0,Be.l=xe)}}else if(qe==="l"?(r._depth=Math.max(De.height>0?Je-De.left:0,Ke),Be[qe]=r._depth-vr):(r._depth=Math.max(De.height>0?De.right-Je:0,Ke),Be[qe]=r._depth+vr,sr.reverse()),De.height>0){var Ie=De.bottom-(r._offset+r._length);Ie>0&&(Be.yb=0,Be.b=Ie);var We=r._offset-De.top;We>0&&(Be.yt=1,Be.t=We)}Be[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[sr[0]],r.title.text!==s._dfltTitle[f]&&(Be[qe]+=Xz(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(er={x:0,y:0,r:0,l:0,t:0,b:0},er[Ue]=r.linewidth,r.mirror&&r.mirror!==!0&&(er[Ue]+=Ke),r.mirror===!0||r.mirror==="ticks"?er[c]=r._anchorAxis.domain[sr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(er[c]=[r._counterDomainMin,r._counterDomainMax][sr[1]]))}Ee&&(ae=Hh.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(Wz(Be,r.automargin),Wz(er,r.automargin)),s0.autoMargin(e,X6(r),Be),s0.autoMargin(e,aN(r),er),s0.autoMargin(e,nN(r),ae)}),Sr.syncOrAsync(Le)}};function Wz(e,r){if(e){var t=Object.keys(Oz).reduce(function(a,n){return r.indexOf(n)!==-1&&Oz[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function M5e(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(Sr.extendFlat({},i,{x:l}))};if(r.length){for(a=0;a<r.length;a++)n(r[a],0);n(r[a-1],1)}return t}function k5e(e,r){for(var t=[],a={},n=0;n<r.length;n++){var i=r[n];a[i.text2]?a[i.text2].push(i.x):a[i.text2]=[i.x]}for(var o in a)t.push(eN(e,Sr.interp(a[o],.5),o));return t}function S5e(e,r){var t=[],a,n,i=r.length&&r[r.length-1].x<r[0].x,o=function(s,u){var f=s.xbnd[u];f!==null&&t.push(Sr.extendFlat({},s,{x:f}))};if(e.showdividers&&r.length){for(a=0;a<r.length;a++){var l=r[a];l.text2!==n&&o(l,i?1:0),n=l.text2}o(r[a-1],i?0:1)}return t}function q5e(e,r,t){var a,n,i,o;if(e._selections[r].size())a=1/0,n=-1/0,i=1/0,o=-1/0,e._selections[r].each(function(){var s=U6(this);if(s.node().style.display!=="none"){var u=_i.bBox(s.node().parentNode);a=Math.min(a,u.top),n=Math.max(n,u.bottom),i=Math.min(i,u.left),o=Math.max(o,u.right)}});else{var l=Ye.makeLabelFns(e,t);a=n=l.yFn({dx:0,dy:0,fontSize:0}),i=o=l.xFn({dx:0,dy:0,fontSize:0})}return{top:a,bottom:n,left:i,right:o,height:n-a,width:o-i}}Ye.getTickSigns=function(e,r){var t=e._id.charAt(0),a={x:"top",y:"right"}[t],n=e.side===a?1:-1,i=[-1,1,n,-n],o=r?(e.minor||{}).ticks:e.ticks;return o!=="inside"==(t==="x")&&(i=i.map(function(l){return-l})),e.side&&i.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),i};Ye.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(r){return u0(e._offset+e.l2p(r.x),0)}:function(r){return u0(0,e._offset+e.l2p(r.x))}};Ye.makeTransTickLabelFn=function(e){var r=L5e(e),t=e.ticklabelshift||0,a=e.ticklabelstandoff||0,n=r[0],i=r[1],o=e.range[0]>e.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return u0(n+e._offset+e.l2p(H6(v))+t,i+a)}:function(v){return u0(i+a,n+e._offset+e.l2p(H6(v))+t)}};function H6(e){return e.periodX!==void 0?e.periodX:e.x}function L5e(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=Rm,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*ff,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=Rm),s&&f==="top"&&(v-=d*(1-ff)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(B){return a.indexOf(B)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,m=v?e.ticklen:0;if(c?m*=-1:f&&(m=0),v&&(d+=m,t)){var y=Sr.deg2rad(t);d=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},T,w,x,_,k=0,M=e.side,q=e._id.charAt(0),C=e.tickangle,E;if(q==="x")E=!c&&M==="bottom"||c&&M==="top",_=E?1:-1,c&&(_*=-1),T=p*_,w=r+d*_,x=E?1:-.2,Math.abs(C)===90&&(c?x+=Oh:C===-90&&M==="bottom"?x=ff:C===90&&M==="top"?x=Oh:x=.5,k=Oh/2*(C/90)),b.xFn=function(B){return B.dx+T+k*B.fontSize},b.yFn=function(B){return B.dy+w+B.fontSize*x},b.anchorFn=function(B,I){if(f){if(l)return"end";if(s)return"start"}return!wa(I)||I===0||I===180?"middle":I*_<0!==c?"end":"start"},b.heightFn=function(B,I,N){return I<-60||I>60?-.5*N:e.side==="top"!==c?-N:0};else if(q==="y"){if(E=!c&&M==="left"||c&&M==="right",_=E?1:-1,c&&(_*=-1),T=d,w=p*_,x=0,!c&&Math.abs(C)===90&&(C===-90&&M==="left"||C===90&&M==="right"?x=ff:x=.5),c){var P=wa(C)?+C:0;if(P!==0){var R=Sr.deg2rad(P);k=Math.abs(Math.sin(R))*ff*_,x=0}}b.xFn=function(B){return B.dx+r-(T+B.fontSize*x)*_+k*B.fontSize},b.yFn=function(B){return B.dy+w+B.fontSize*Oh},b.anchorFn=function(B,I){return wa(I)&&Math.abs(I)===90?"middle":E?"end":"start"},b.heightFn=function(B,I,N){return e.side==="right"&&(I*=-1),I<-30?-N:I<30?-.5*N:0}}return b};function Nm(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Nm);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Uh.stroke(Wi.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return _i.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Im(r,[Zz]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&Ye.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u<o.length;u++){var f=o[u].x;if(s?!f:Math.abs(f)<r.dtick/100)if(o=o.slice(0,u).concat(o.slice(u+1)),s)u--;else break}r._gw=_i.crispRound(e,r.gridwidth,1);for(var c=n?_i.crispRound(e,r.minor.gridwidth,1):0,v=t.layer,d=t.minorLayer,p=1;p>=0;p--){var m=p?v:d;if(m){var y=m.selectAll("path."+a).data(p?o:i,Nm);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return Uh.stroke(Wi.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return _i.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}Im(r,[B6,O6])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return n5e(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Uh.stroke,r.zerolinecolor||Uh.defaultLine).style("stroke-width",_i.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Im(r,[I6])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(j){return j.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Nm),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(j){var W=Wi.select(this),V=e._promises.length;W.call(sf.positionText,s.xFn(j),s.yFn(j)).call(_i.font,{family:j.font,size:j.fontSize,color:j.fontColor,weight:j.fontWeight,style:j.fontStyle,variant:j.fontVariant,textcase:j.fontTextcase,lineposition:j.fontLineposition,shadow:j.fontShadow}).text(j.text).call(sf.convertToTspans,e),e._promises[V]?v.push(e._promises.pop().then(function(){d(W,u)})):d(W,u)}),Im(r,[Bz]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(j){Wi.select(this).select("text").call(sf.positionText,s.xFn(j),s.yFn(j))});function d(j,W){j.each(function(V){var J=Wi.select(this),re=J.select(".text-math-group"),le=s.anchorFn(V,W),ne=t.transFn.call(J.node(),V)+(wa(W)&&+W!=0?" rotate("+W+","+s.xFn(V)+","+(s.yFn(V)-V.fontSize/2)+")":""),$=sf.lineCount(J),ce=Yh*V.fontSize,te=s.heightFn(V,wa(W)?+W:0,($-1)*ce);if(te&&(ne+=u0(0,te)),re.empty()){var ge=J.select("text");ge.attr({transform:ne,"text-anchor":le}),ge.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var se=_i.bBox(re.node()).width,oe=se*{end:-.5,start:.5}[le];re.attr("transform",ne+u0(oe,0))}})}r._adjustTickLabelsOverflow=function(){var j=r.ticklabeloverflow;if(!(!j||j==="allow")){var W=j.indexOf("hide")!==-1,V=r._id.charAt(0)==="x",J=0,re=V?e._fullLayout.width:e._fullLayout.height;if(j.indexOf("domain")!==-1){var le=Sr.simpleMap(r.range,r.r2l);J=r.l2p(le[0])+r._offset,re=r.l2p(le[1])+r._offset}var ne=Math.min(J,re),$=Math.max(J,re),ce=r.side,te=1/0,ge=-1/0;c.each(function(Pe){var me=Wi.select(this),Ce=me.select(".text-math-group");if(Ce.empty()){var Me=_i.bBox(me.node()),Le=0;V?(Me.right>$||Me.left<ne)&&(Le=1):(Me.bottom>$||Me.top+(r.tickangle?0:Pe.fontSize/4)<ne)&&(Le=1);var Se=me.select("text");Le?W&&Se.style("display","none"):Se.node().style.display!=="none"&&(Se.style("display",null),ce==="bottom"||ce==="right"?te=Math.min(te,V?Me.top:Me.left):te=-1/0,ce==="top"||ce==="left"?ge=Math.max(ge,V?Me.bottom:Me.right):ge=1/0)}});for(var se in a._plots){var oe=a._plots[se];if(!(r._id!==oe.xaxis._id&&r._id!==oe.yaxis._id)){var Ae=V?oe.yaxis:oe.xaxis;Ae&&(Ae["_visibleLabelMin_"+r._id]=te,Ae["_visibleLabelMax_"+r._id]=ge)}}}},r._hideCounterAxisInsideTickLabels=function(j){var W=r._id.charAt(0)==="x",V=[];for(var J in a._plots){var re=a._plots[J];r._id!==re.xaxis._id&&r._id!==re.yaxis._id||V.push(W?re.yaxis:re.xaxis)}V.forEach(function(le,ne){le&&jh(le)&&(j||[I6,O6,B6,Zz,Bz]).forEach(function($){var ce=$.K==="tick"&&$.L==="text"&&r.ticklabelmode==="period",te=a._plots[r._mainSubplot],ge;if($.K===I6.K){var se=i?te.zerolinelayerAbove:te.zerolinelayer;ge=se.selectAll("."+r._id+"zl")}else $.K===O6.K?ge=te.minorGridlayer.selectAll("."+r._id):$.K===B6.K?ge=te.gridlayer.selectAll("."+r._id):ge=te[r._id.charAt(0)+"axislayer"];ge.each(function(){var oe=Wi.select(this);$.L&&(oe=oe.selectAll($.L)),oe.each(function(Ae){var Pe=r.l2p(ce?H6(Ae):Ae.x)+r._offset,me=Wi.select(this);Pe<r["_visibleLabelMax_"+le._id]&&Pe>r["_visibleLabelMin_"+le._id]?me.style("display","none"):$.K==="tick"&&!ne&&me.node().style.display!=="none"&&me.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var m=null;function y(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var j=0,W=[],V,J=1;c.each(function(Be){j=Math.max(j,Be.fontSize);var er=r.l2p(Be.x),ae=U6(this),be=_i.bBox(ae.node());J=Math.max(J,sf.lineCount(ae)),W.push({top:0,bottom:10,height:10,left:er-be.width/2,right:er+be.width/2+2,width:be.width+2})});var re=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,le=l.length,ne=Math.abs((l[le-1].x-l[0].x)*r._m)/(le-1),$=re?ne/2:ne,ce=re?r.ticklen:j*1.25*J,te=Math.sqrt(Math.pow($,2)+Math.pow(ce,2)),ge=$/te,se=r.autotickangles.map(function(Be){return Be*Math.PI/180}),oe=se.find(function(Be){return Math.abs(Math.cos(Be))<=ge});oe===void 0&&(oe=se.reduce(function(Be,er){return Math.abs(Math.cos(Be))<Math.abs(Math.cos(er))?Be:er},se[0]));var Ae=oe*(180/Math.PI);if(re){var Pe=2;for(r.ticks&&(Pe+=r.tickwidth/2),V=0;V<W.length;V++){var me=l[V].xbnd,Ce=W[V];if(me[0]!==null&&Ce.left-r.l2p(me[0])<Pe||me[1]!==null&&r.l2p(me[1])-Ce.right<Pe){m=Ae;break}}}else{var Me=r.ticklabelposition||"",Le=r.tickson||"",Se=function(Be){return Me.indexOf(Be)!==-1},Ee=Se("top"),qe=Se("left"),Ue=Se("right"),Je=Se("bottom"),Ke=Le!=="boundaries"&&(Je||qe||Ee||Ue),De=Ke?(r.tickwidth||0)+2*Rm:0;for(V=0;V<W.length-1;V++)if(Sr.bBoxIntersect(W[V],W[V+1],De)){m=Ae;break}}m&&d(c,m)}}r._selections&&(r._selections[o]=c);var b=[p];r.automargin&&a._redrawFromAutoMarginCount&&f===90?(m=f,b.push(function(){d(c,f)})):b.push(y),r._tickAngles&&b.push(function(){r._tickAngles[o]=m===null?wa(u)?u:0:m});var T=function(){var j=0,W=0;return c.each(function(V,J){var re=U6(this),le=re.select(".text-math-group");if(le.empty()){var ne;r._vals[J]&&(ne=r._vals[J].bb||_i.bBox(re.node()),r._vals[J].bb=ne),j=Math.max(j,ne.width),W=Math.max(W,ne.height)}}),{labelsMaxW:j,labelsMaxH:W}},w=r._anchorAxis;if(w&&(w.autorange||w.insiderange)&&jh(r)&&!i5e(a,r._id)&&(a._insideTickLabelsUpdaterange||(a._insideTickLabelsUpdaterange={}),w.autorange&&(a._insideTickLabelsUpdaterange[w._name+".autorange"]=w.autorange,b.push(T)),w.insiderange)){var x=T(),_=r._id.charAt(0)==="y"?x.labelsMaxW:x.labelsMaxH;_+=2*Rm,r.ticklabelposition==="inside"&&(_+=r.ticklen||0);var k=r.side==="right"||r.side==="top"?1:-1,M=k===1?1:0,q=k===1?0:1,C=[];C[q]=w.range[q];var E=w.range,P=w.r2p(E[M]),R=w.r2p(E[q]),B=a._insideTickLabelsUpdaterange[w._name+".range"];if(B){var I=w.r2p(B[M]),N=w.r2p(B[q]),H=k*(r._id.charAt(0)==="y"?1:-1);H*P<H*I&&(P=I,C[M]=E[M]=B[M]),H*R>H*N&&(R=N,C[q]=E[q]=B[q])}var G=Math.abs(R-P);G-_>0?(G-=_,_*=1+_/G):_=0,r._id.charAt(0)!=="y"&&(_=-_),C[M]=w.p2r(w.r2p(E[M])+k*_),w.autorange==="min"||w.autorange==="max reversed"?(C[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(C[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=C}var Y=Sr.syncOrAsync(b);return Y&&Y.then&&e._promises.push(Y),Y};function C5e(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Nm);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Uh.stroke,r.dividercolor).style("stroke-width",_i.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function Xz(e){var r=e.title.font.size,t=(e.title.text.match(sf.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(ff+t*Yh):t?r*(t+1)*Yh:r}function D5e(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(sf.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*ff:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Oh+l*Yh));else{var s=jh(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,v=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=_i.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,Zxe.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=Sr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Fm)&&(tN(r,0)||!E5e(e,r,t,a)||P5e(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return tN(e,t.x)})};function tN(e,r){var t=e.l2p(r);return t>1&&t<e._length-1}function E5e(e,r,t,a){var n=t._mainAxis;if(!n)return;var i=e._fullLayout,o=r._id.charAt(0),l=Ye.counterLetter(r._id),s=r._offset+(Math.abs(a[0])<Math.abs(a[1])==(o==="x")?0:r._length);function u(p){if(!p.showline||!p.linewidth)return!1;var m=Math.max((p.linewidth+r.zerolinewidth)/2,1);function y(w){return typeof w=="number"&&Math.abs(w-s)<m}if(y(p._mainLinePosition)||y(p._mainMirrorPosition))return!0;var b=p._linepositions||{};for(var T in b)if(y(b[T][0])||y(b[T][1]))return!0}var f=i._plots[t._mainSubplot];if(!(f.mainplotinfo||f).overlays.length)return u(t,s);for(var c=Ye.list(e,l),v=0;v<c.length;v++){var d=c[v];if(d._mainAxis===n&&u(d,s))return!0}}function P5e(e,r){for(var t=e._fullData,a=r._mainSubplot,n=r._id.charAt(0),i=0;i<t.length;i++){var o=t[i];if(o.visible===!0&&o.xaxis+o.yaxis===a&&(Hh.traceIs(o,"bar-like")&&o.orientation==={x:"h",y:"v"}[n]||o.fill&&o.fill.charAt(o.fill.length-1)===n))return!0}return!1}function U6(e){var r=Wi.select(e),t=r.select(".text-math-group");return t.empty()?r.select("text"):t}Ye.allowAutoMargin=function(e){for(var r=Ye.list(e,"",!0),t=0;t<r.length;t++){var a=r[t];a.automargin&&(s0.allowAutoMargin(e,X6(a)),a.mirror&&s0.allowAutoMargin(e,aN(a))),Hh.getComponentMethod("rangeslider","isVisible")(a)&&s0.allowAutoMargin(e,nN(a))}};function X6(e){return e._id+".automargin"}function aN(e){return X6(e)+".mirror"}function nN(e){return e._id+".rangeslider"}Ye.swap=function(e,r){for(var t=R5e(e,r),a=0;a<t.length;a++)F5e(e,t[a].x,t[a].y)};function R5e(e,r){var t=[],a,n;for(a=0;a<r.length;a++){var i=[],o=e._fullData[r[a]].xaxis,l=e._fullData[r[a]].yaxis;if(!(!o||!l)){for(n=0;n<t.length;n++)(t[n].x.indexOf(o)!==-1||t[n].y.indexOf(l)!==-1)&&i.push(n);if(!i.length){t.push({x:[o],y:[l]});continue}var s=t[i[0]],u;if(i.length>1)for(n=1;n<i.length;n++)u=t[i[n]],qm(s.x,u.x),qm(s.y,u.y);qm(s.x,[o]),qm(s.y,[l])}}return t}function qm(e,r){for(var t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t])}function F5e(e,r,t){var a=[],n=[],i=e.layout,o,l;for(o=0;o<r.length;o++)a.push(Ye.getFromId(e,r[o]));for(o=0;o<t.length;o++)n.push(Ye.getFromId(e,t[o]));var s=Object.keys($xe),u=["anchor","domain","domainpad","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(o=0;o<s.length;o++){var c=s[o],v=a[0][c],d=n[0][c],p=!0,m=!1,y=!1;if(!(c.charAt(0)==="_"||typeof v=="function"||u.indexOf(c)!==-1)){for(l=1;l<a.length&&p;l++){var b=a[l][c];c==="type"&&f.indexOf(v)!==-1&&f.indexOf(b)!==-1&&v!==b?m=!0:b!==v&&(p=!1)}for(l=1;l<n.length&&p;l++){var T=n[l][c];c==="type"&&f.indexOf(d)!==-1&&f.indexOf(T)!==-1&&d!==T?y=!0:n[l][c]!==d&&(p=!1)}p&&(m&&(i[a[0]._name].type="linear"),y&&(i[n[0]._name].type="linear"),z5e(i,c,a,n,e._fullLayout._dfltTitle))}}for(o=0;o<e._fullLayout.annotations.length;o++){var w=e._fullLayout.annotations[o];r.indexOf(w.xref)!==-1&&t.indexOf(w.yref)!==-1&&Sr.swapAttrs(i.annotations[o],["?"])}}function z5e(e,r,t,a,n){var i=Sr.nestedProperty,o=i(e[t[0]._name],r).get(),l=i(e[a[0]._name],r).get(),s;for(r==="title"&&(o&&o.text===n.x&&(o.text=n.y),l&&l.text===n.y&&(l.text=n.x)),s=0;s<t.length;s++)i(e,t[s]._name+"."+r).set(l);for(s=0;s<a.length;s++)i(e,a[s]._name+"."+r).set(o)}function Z6(e){return e._id==="angularaxis"}function z6(e,r){for(var t=r._rangebreaks.length,a=0;a<t;a++){var n=r._rangebreaks[a];if(e>=n.min&&e<n.max)return n.max}return e}function jh(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function Im(e,r){jh(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(r)}function G6(e,r,t,a){var n=e.anchor!=="free"&&(e.overlaying===void 0||e.overlaying===!1)?e._id:e.overlaying,i;a?i=e.side==="right"?r:-r:i=r,n in t||(t[n]={}),e.side in t[n]||(t[n][e.side]=0),t[n][e.side]+=i}function N5e(e,r){return e.autoshift?r[e.overlaying][e.side]:e.shift||0}function I5e(e,r){return/%f/.test(r)?e>=r5e:/%L/.test(r)?e>=e5e:/%[SX]/.test(r)?e>=Pm:/%M/.test(r)?e>=Gh:/%[HI]/.test(r)?e>=ml:/%p/.test(r)?e>=Gs:/%[Aadejuwx]/.test(r)?e>=Cn:/%[UVW]/.test(r)?e>=wi:/%[Bbm]/.test(r)?e>=Em:/%[q]/.test(r)?e>=Dm:/%[Yy]/.test(r)?e>=Cm:!0}});var lN=z((pZe,oN)=>{"use strict";oN.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var $6=z((mZe,sN)=>{"use strict";var B5e=lN();sN.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),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||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(B5e(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var fN=z((yZe,uN)=>{var O5e={left:0,top:0};uN.exports=H5e;function H5e(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=U5e(r);return t[0]=a-i.left,t[1]=n-i.top,t}function U5e(e){return e===window||e===document||e===document.body?O5e:e.getBoundingClientRect()}});var J6=z((gZe,cN)=>{"use strict";var G5e=q4();function Y5e(){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}cN.exports=G5e&&Y5e()});var hN=z((bZe,vN)=>{"use strict";vN.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var mN=z((xZe,pN)=>{"use strict";var dN=ke(),V5e=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];pN.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=dN.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=dN.constrain(Math.floor(t*3),0,2),V5e[t][r]}});var gN=z((_Ze,yN)=>{"use strict";var j5e=Ch(),W5e=Np(),X5e=wh().getGraphDiv,Z5e=(ah(),Ne(th)),K6=yN.exports={};K6.wrapped=function(e,r,t){var i;e=X5e(e),e._fullLayout&&W5e.clear(e._fullLayout._uid+Z5e.HOVERID);let a=e._hoverdata;K6.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};K6.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&j5e.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var Xi=z((wZe,wN)=>{"use strict";var $5e=fN(),Q6=C4(),J5e=J6(),K5e=ke().removeElement,Q5e=(Ha(),Ne(Oa)),cf=wN.exports={};cf.align=hN();cf.getCursor=mN();var xN=gN();cf.unhover=xN.wrapped;cf.unhoverRaw=xN.raw;cf.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,J5e?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(w,x,_){return Math.abs(w)<_&&(w=0),Math.abs(x)<_&&(x=0),[w,x]}var m=r.clampFn||p;function y(w){t._dragged=!1,t._dragging=!0;var x=bN(w);o=x[0],l=x[1],v=w.target,c=w,d=w.buttons===2||w.ctrlKey,typeof w.clientX=="undefined"&&typeof w.clientY=="undefined"&&(w.clientX=o,w.clientY=l),s=new Date().getTime(),s-t._mouseDownTime<n?a+=1:(a=1,t._mouseDownTime=s),r.prepFn&&r.prepFn(w,o,l),Q6&&!d?(f=_N(),f.style.cursor=window.getComputedStyle(i).cursor):Q6||(f=document,u=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(i).cursor),document.addEventListener("mouseup",T),document.addEventListener("touchend",T),r.dragmode!==!1&&(w.preventDefault(),document.addEventListener("mousemove",b),document.addEventListener("touchmove",b,{passive:!1}))}function b(w){w.preventDefault();var x=bN(w),_=r.minDrag||Q5e.MINDRAG,k=m(x[0]-o,x[1]-l,_),M=k[0],q=k[1];(M||q)&&(t._dragged=!0,cf.unhover(t,w)),t._dragged&&r.moveFn&&!d&&(t._dragdata={element:i,dx:M,dy:q},r.moveFn(M,q))}function T(w){if(delete t._dragdata,r.dragmode!==!1&&(w.preventDefault(),document.removeEventListener("mousemove",b),document.removeEventListener("touchmove",b)),document.removeEventListener("mouseup",T),document.removeEventListener("touchend",T),Q6?K5e(f):u&&(f.documentElement.style.cursor=u,u=null),!t._dragging){t._dragged=!1;return}if(t._dragging=!1,new Date().getTime()-t._mouseDownTime>n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(_=>{var k=c[_];!x[_]&&typeof k!="function"&&(x[_]=k)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function _N(){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}cf.coverSlip=_N;function bN(e){return $5e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ys=z((TZe,TN)=>{"use strict";TN.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var kN=z((AZe,MN)=>{"use strict";var e7=Ys(),Wh="data-savedcursor",AN="!!";MN.exports=function(r,t){var a=r.attr(Wh);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i<n.length;i++){var o=n[i];o.indexOf("cursor-")===0&&r.attr(Wh,o.slice(7)).classed(o,!1)}r.attr(Wh)||r.attr(Wh,AN)}e7(r,t)}else a&&(r.attr(Wh,null),a===AN?e7(r):e7(r,a))}});var Bm={};Dt(Bm,{dfltFillHeight:()=>l_e,itemGap:()=>o_e,itemHeightPad:()=>u_e,itemMinHeight:()=>s_e,scrollBarColor:()=>t_e,scrollBarEnterAttrs:()=>n_e,scrollBarMargin:()=>a_e,scrollBarMinHeight:()=>r_e,scrollBarWidth:()=>e_e,titlePad:()=>i_e});var e_e,r_e,t_e,a_e,n_e,i_e,o_e,l_e,s_e,u_e,Om=Ct(()=>{"use strict";e_e=6,r_e=20,t_e="#808BA4",a_e=4,n_e={rx:20,ry:3,width:0,height:0},i_e=2,o_e=5,l_e=6,s_e=16,u_e=3});var t7=z((MZe,qN)=>{"use strict";var r7=Ia(),f_e=Hi(),{dfltFillHeight:SN}=(Om(),Ne(Bm));qN.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:f_e.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:r7({editType:"legend"}),grouptitlefont:r7({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:SN,dflt:SN,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:r7({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Zh=z(Xh=>{"use strict";Xh.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Xh.isVertical=function(r){return r.orientation!=="h"};Xh.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Xh.getId=function(r){return r._id||"legend"}});var n7=z((SZe,LN)=>{"use strict";var Hm=Ar(),Ti=ke(),c_e=Pt(),v_e=Gn(),h_e=t7(),d_e=Oc(),a7=Zh();function p_e(e,r,t,a,n){var i=r[e]||{},o=c_e.newContainer(t,e);function l(W,V){return Ti.coerce(i,o,h_e,W,V)}var s=Ti.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(W,V){var J=f._input,re=f;return Ti.coerce(J,re,v_e,W,V)},v=t.font||{},d=Ti.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,m=!1,y="normal",b=(t.shapes||[]).filter(function(W){return W.showlegend});function T(W){return Hm.traceIs(W,"pie-like")&&W._length!=null&&(Array.isArray(W.legend)||Array.isArray(W.showlegend))}a.filter(T).forEach(function(W){W.visible&&p++;for(var V=0;V<W._length;V++){var J=(Array.isArray(W.legend)?W.legend[V]:W.legend)||"legend";J===e&&((Array.isArray(W.showlegend)?W.showlegend[V]:W.showlegend)||W._dfltShowLegend)&&(m=!0,p++)}if(e==="legend"&&W._length>W.legend.length)for(var re=W.legend.length;re<W._length;re++)m=!0,p++});for(var w=a.concat(b).filter(function(W){return!T(f)&&e===(W.legend||"legend")}),x=0;x<w.length;x++)if(f=w[x],!!f.visible){var _=f._isShape;(f.showlegend||f._dfltShowLegend&&!(f._module&&f._module.attributes&&f._module.attributes.showlegend&&f._module.attributes.showlegend.dflt===!1))&&(p++,f.showlegend&&(m=!0,(!_&&Hm.traceIs(f,"pie-like")||f._input.showlegend===!0)&&p++),Ti.coerceFont(c,"legendgrouptitle.font",d)),(!_&&Hm.traceIs(f,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(f.fill)!==-1)&&(y=a7.isGrouped({traceorder:y})?"grouped+reversed":"reversed"),f.legendgroup!==void 0&&f.legendgroup!==""&&(y=a7.isReversed({traceorder:y})?"reversed+grouped":"grouped")}var k=Ti.coerce(r,t,d_e,"showlegend",t.showlegend||m&&p>(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),k===!1&&!i.uirevision||(l("uirevision",t.uirevision),k===!1))return;l("borderwidth");var M=l("orientation"),q=l("yref"),C=l("xref"),E=M==="h",P=q==="paper",R=C==="paper",B,I,N,H="left";E?(B=0,Hm.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(I=1.1,N="bottom"):(I=1,N="top"):P?(I=-.1,N="top"):(I=0,N="bottom")):(I=1,N="auto",R?B=1.02:(B=1,H="right")),Ti.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:B}},"x"),Ti.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:I}},"y"),l("traceorder",y),a7.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemheight"),l("itemclick"),l("itemdoubleclick");let G=l("groupclick");l("groupdoubleclick",G),l("xanchor",H),l("yanchor",N),l("maxheight"),l("valign"),Ti.noneOrAll(i,o,["x","y"]);var Y=l("title.text");if(Y){l("title.side",E?"left":"top");var j=Ti.extendFlat({},s,{size:Ti.bigFont(s.size)});Ti.coerceFont(l,"title.font",j);let W=n>1;l("titleclick",W?"toggle":!1),l("titledoubleclick",W?"toggleothers":!1)}}LN.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n<o.length;n++){var l=o[n];if(l.showlegend){var s={_input:l._input,visible:l.visible,showlegend:l.showlegend,legend:l.legend};i.push(s)}}var u=["legend"];for(n=0;n<i.length;n++)Array.isArray(i[n].legend)?u=u.concat(i[n].legend):Ti.pushUnique(u,i[n].legend);for(t._legends=[],n=0;n<u.length;n++){var f=u[n];p_e(f,r,t,i,u.length),t[f]&&(t[f]._id=f),t._legends.push(f)}}});var l7=z(o7=>{"use strict";var Vs=Ar(),i7=ke(),m_e=i7.pushUnique,y_e=Zh(),CN=!0;o7.handleItemClick=function(r,t,a,n,i){var o=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&CN&&t.data&&t._context.showTips&&(i7.notifier(i7._(t,"Double-click on legend to isolate one trace"),"long",t),CN=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let v=(o.shapes||[]).filter(Se=>Se.showlegend||Se.legendgroup);var d=c.concat(v),p=l.trace;p._isShape&&(p=o.shapes[p.index]);var m=p.legendgroup,y,b,T,w,x,_,k={},M=[],q=[],C=[];function E(Se,Ee){var qe=M.indexOf(Se),Ue=k.visible;return Ue||(Ue=k.visible=[]),M.indexOf(Se)===-1&&(M.push(Se),qe=M.length-1),Ue[qe]=Ee,qe}var P=(o.shapes||[]).map(function(Se){return Se._input}),R=!1;function B(Se,Ee){P[Se].visible=Ee,R=!0}function I(Se,Ee){if(!(l.groupTitle&&!u)){var qe=Se._isShape,Ue=Se.index;Ue===void 0&&(Ue=Se._index);var Je=Se.visible===!1?!1:Ee;qe?B(Ue,Je):E(Ue,Je)}}var N=p.legend;if(!p._isShape&&Vs.traceIs(p,"pie-like")){var H=l.label,G=f.indexOf(H);if(n==="toggle")G===-1?f.push(H):f.splice(G,1);else if(n==="toggleothers"){var Y=G!==-1,j=[];for(y=0;y<t.calcdata.length;y++){var W=t.calcdata[y];for(b=0;b<W.length;b++){var V=W[b],J=V.label;N===W[0].trace.legend&&H!==J&&(f.indexOf(J)===-1&&(Y=!0),m_e(f,J),j.push(J))}}if(!Y)for(var re=0;re<j.length;re++){var le=f.indexOf(j[re]);le!==-1&&f.splice(le,1)}}Vs.call("_guiRelayout",t,"hiddenlabels",f)}else{var ne=m&&m.length,$=[],ce;if(ne)for(y=0;y<d.length;y++)ce=d[y],ce.visible&&ce.legendgroup===m&&$.push(y);if(n==="toggle"){var te;switch(p.visible){case!0:te="legendonly";break;case!1:te=!1;break;case"legendonly":te=!0;break}if(ne)if(u)for(y=0;y<d.length;y++){var ge=d[y];ge.visible!==!1&&ge.legendgroup===m&&I(ge,te)}else I(p,te);else I(p,te)}else if(n==="toggleothers"){var se,oe,Ae,Pe,me,Ce=!0;let Se=ne&&u;for(y=0;y<d.length;y++)if(me=d[y],se=me===p,Ae=me.showlegend!==!0,!(se||Ae)&&(oe=Se&&me.legendgroup===m,!oe&&me.legend===N&&me.visible===!0&&!Vs.traceIs(me,"notLegendIsolatable"))){Ce=!1;break}for(y=0;y<d.length;y++)if(me=d[y],!(me.visible===!1||me.legend!==N)&&!Vs.traceIs(me,"notLegendIsolatable"))switch(p.visible){case"legendonly":I(me,!0);break;case!0:Pe=Ce?!0:"legendonly",se=me===p,Ae=me.showlegend!==!0&&!me.legendgroup,oe=se||Se&&me.legendgroup===m,I(me,oe||Ae?!0:Pe);break}}for(y=0;y<q.length;y++)if(T=q[y],!!T){var Me=T.constructUpdate(),Le=Object.keys(Me);for(b=0;b<Le.length;b++)w=Le[b],_=k[w]=k[w]||[],_[C[y]]=Me[w]}for(x=Object.keys(k),y=0;y<x.length;y++)for(w=x[y],b=0;b<M.length;b++)k[w].hasOwnProperty(b)||(k[w][b]=void 0);R?Vs.call("_guiUpdate",t,k,{shapes:P},M):Vs.call("_guiRestyle",t,k,M)}};o7.handleTitleClick=function(r,t,a){let n=r._fullLayout,i=r._fullData,o=y_e.getId(t),l=(n.shapes||[]).filter(b=>b.showlegend||b.legendgroup),s=i.concat(l);function u(b){return(b.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(T){return u(T)&&T.visible===!0}),c=!1;else{let b=s.some(function(T){return!u(T)&&T.visible===!0&&T.showlegend!==!1});f=!0,c=!b}let v={visible:[]},d=[],p=(n.shapes||[]).map(function(b){return b._input});for(var m=!1,y=0;y<s.length;y++){let b=s[y],T=u(b);if(!T){let _=b.showlegend!==!0&&!b.legendgroup;if(a==="toggle"||_)continue}let x=(T?f:c)?!0:"legendonly";b.visible!==!1&&b.visible!==x&&(b._isShape?(p[b._index].visible=x,m=!0):(d.push(b.index),v.visible.push(x)))}m?Vs.call("_guiUpdate",r,v,{shapes:p},d):d.length&&Vs.call("_guiRestyle",r,v,d)}});var PN=z((LZe,EN)=>{"use strict";var{isArrayOrTypedArray:s7}=Qn(),DN=Ar(),u7=Zh();EN.exports=function(r,t,a){var n=t._inHover,i=u7.isGrouped(t),o=u7.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function m(W,V,J){if(t.visible!==!1&&!(a&&W!==t._id))if(V===""||!u7.isGrouped(t)){var re="~~i"+c;s.push(re),l[re]=[J],c++}else s.indexOf(V)===-1?(s.push(V),u=!0,l[V]=[J]):l[V].push(J)}for(d=0;d<r.length;d++){var y=r[d],b=y[0],T=b.trace,w=T.legend,x=T.legendgroup;if(!(!n&&(!T.visible||!T.showlegend)))if(DN.traceIs(T,"pie-like")){var _=Array.isArray(T.legend),k=Array.isArray(T.showlegend);for(f[x]||(f[x]={}),p=0;p<y.length;p++)if(!(k&&T.showlegend[y[p].i]===!1)){_&&(w=T.legend[y[p].i]||"legend");var M=y[p].label;f[x][M]||(m(w,x,{label:M,color:y[p].color,i:y[p].i,trace:T,pts:y[p].pts}),f[x][M]=!0,v=Math.max(v,(M||"").length))}}else m(w,x,b),v=Math.max(v,(T.name||"").length)}if(!s.length)return[];var q=!u||!i,C=[];for(d=0;d<s.length;d++){var E=l[s[d]];q?C.push(E[0]):C.push(E)}for(q&&(C=[C]),d=0;d<C.length;d++){var P=1/0;for(p=0;p<C[d].length;p++){var R=C[d][p].trace.legendrank,B=s7(R)?Math.min(R):R;P>B&&(P=B)}C[d][0]._groupMinRank=P,C[d][0]._preGroupSort=d}var I=function(W,V){return W[0]._groupMinRank-V[0]._groupMinRank||W[0]._preGroupSort-V[0]._preGroupSort},N=function(W,V){var J=s7(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank,re=s7(V.trace.legendrank)?V.trace.legendrank[V.i]:V.trace.legendrank;return J-re||W._preSort-V._preSort};for(C.forEach(function(W,V){W[0]._preGroupSort=V}),C.sort(I),d=0;d<C.length;d++){C[d].forEach(function(W,V){W._preSort=V}),C[d].sort(N);var H=C[d][0].trace,G=null;for(p=0;p<C[d].length;p++){var Y=C[d][p].trace.legendgrouptitle;if(Y&&Y.text){G=Y,n&&(Y.font=t._groupTitleFont);break}}if(o&&C[d].reverse(),G){var j=!1;for(p=0;p<C[d].length;p++)if(DN.traceIs(C[d][p].trace,"pie-like")){j=!0;break}C[d].unshift({i:-1,groupTitle:G,noClick:j,trace:{showlegend:H.showlegend,legendgroup:H.legendgroup,legend:H.legend,visible:t.groupclick==="toggleitem"?!0:H.visible}})}for(p=0;p<C[d].length;p++)C[d][p]=[C[d][p]]}return t._lgroupsLength=C.length,t._maxNameLength=v,C}});var Gm=z(vf=>{"use strict";var Um=ke();function RN(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}vf.formatPiePercent=function(r,t){var a=RN((r*100).toPrecision(3));return Um.numSeparate(a,t)+"%"};vf.formatPieValue=function(r,t){var a=RN(r.toPrecision(10));return Um.numSeparate(a,t)};vf.getFirstFilled=function(r,t){if(Um.isArrayOrTypedArray(r))for(var a=0;a<t.length;a++){var n=r[t[a]];if(n||n===0||n==="")return n}};vf.castOption=function(r,t){if(Um.isArrayOrTypedArray(r))return vf.getFirstFilled(r,t);if(r)return r};vf.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var zN=z((DZe,FN)=>{"use strict";var g_e=et(),b_e=qr();FN.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?g_e.pointStyle(r,a,n,t):b_e.fill(r,t.color)}});var Ym=z((EZe,BN)=>{"use strict";var NN=qr(),IN=Gm().castOption,x_e=zN();BN.exports=function(r,t,a,n){var i=a.marker.line,o=IN(i.color,t.pts)||NN.defaultLine,l=IN(i.width,t.pts)||0;r.call(x_e,t,a,n).style("stroke-width",l).call(NN.stroke,o)}});var d7=z((PZe,YN)=>{"use strict";var Dn=Pr(),f7=Ar(),gn=ke(),c7=gn.strTranslate,Ai=et(),Zi=qr(),v7=xi().extractOpts,jm=ii(),__e=Ym(),w_e=Gm().castOption,ON=(Om(),Ne(Bm)),HN=12,UN=5,hf=2,T_e=10,v0=5;YN.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=a.itemheight,s=(o+ON.itemGap*2)/2,u=c7(s,0),f=function(q,C,E,P){var R;if(q+1)R=q;else if(C&&C.width>0)R=C.width;else return 0;return i?P:Math.min(R,E)};r.each(function(q){var C=Dn.select(this),E=gn.ensureSingle(C,"g","layers");E.style("opacity",q[0].trace.opacity);var P=a.indentation,R=a.valign,B=q[0].lineHeight,I=q[0].height;if(R==="middle"&&P===0||!B||!I)E.attr("transform",null);else{var N={top:1,bottom:-1}[R],H=N*(.5*(B-I+3))||0,G=a.indentation;E.attr("transform",c7(G,H))}var Y=E.selectAll("g.legendfill").data([q]);Y.enter().append("g").classed("legendfill",!0);var j=E.selectAll("g.legendlines").data([q]);j.enter().append("g").classed("legendlines",!0);var W=E.selectAll("g.legendsymbols").data([q]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([q]).enter().append("g").classed("legendpoints",!0)}).each(M).each(d).each(m).each(p).each(b).each(_).each(x).each(c).each(v).each(T).each(w);function c(q){var C=GN(q),E=C.showFill,P=C.showLine,R=C.showGradientLine,B=C.showGradientFill,I=C.anyFill,N=C.anyLine,H=q[0],G=H.trace,Y,j,W=v7(G),V=W.colorscale,J=W.reversescale,re=function(oe){if(oe.size())if(E)Ai.fillGroupStyle(oe,t,!0);else{var Ae="legendfill-"+G.uid;Ai.gradient(oe,t,Ae,h7(J),V,"fill")}},le=function(oe){if(oe.size()){var Ae="legendline-"+G.uid;Ai.lineGroupStyle(oe),Ai.gradient(oe,t,Ae,h7(J),V,"stroke")}},ne=jm.hasMarkers(G)||!I?"M5,0":N?"M5,-2":"M5,-3",$=Dn.select(this),ce=$.select(".legendfill").selectAll("path").data(E||B?[q]:[]);ce.enter().append("path").classed("js-fill",!0),ce.exit().remove(),ce.attr("d",ne+"h"+o+"v"+l+"h-"+o+"z").call(re);let te=E||B?(ON.dfltFillHeight-l)/2:0;if($.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",te?c7(0,te):null),P||R){var ge=f(void 0,G.line,T_e,UN);j=gn.minExtend(G,{line:{width:ge}}),Y=[gn.minExtend(H,{trace:j})]}var se=$.select(".legendlines").selectAll("path").data(P||R?[Y]:[]);se.enter().append("path").classed("js-line",!0),se.exit().remove(),se.attr("d",ne+(R?"l"+o+",0.0001":"h"+o)).call(P?Ai.lineGroupStyle:le)}function v(q){var C=GN(q),E=C.anyFill,P=C.anyLine,R=C.showLine,B=C.showMarker,I=q[0],N=I.trace,H=!B&&!P&&!E&&jm.hasText(N),G,Y;function j(te,ge,se,oe){var Ae=gn.nestedProperty(N,te).get(),Pe=gn.isArrayOrTypedArray(Ae)&&ge?ge(Ae):Ae;if(i&&Pe&&oe!==void 0&&(Pe=oe),se){if(Pe<se[0])return se[0];if(Pe>se[1])return se[1]}return Pe}function W(te){return I._distinct&&I.index&&te[I.index]?te[I.index]:te[0]}if(B||H||R){var V={},J={};if(B){V.mc=j("marker.color",W);var re=N.type==="scattermap";V.mx=re?"circle":j("marker.symbol",W),V.mo=j("marker.opacity",gn.mean,[.2,1]),V.mlc=j("marker.line.color",W),V.mlw=j("marker.line.width",gn.mean,[0,5],hf),V.mld=j("marker.line.dash",W),J.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var le=j("marker.size",gn.mean,[2,16],HN);V.ms=le,J.marker.size=le}R&&(J.line={width:j("line.width",W,[0,10],UN)}),H&&(V.tx="Aa",V.tp=j("textposition",W),V.ts=10,V.tc=j("textfont.color",W),V.tf=j("textfont.family",W),V.tw=j("textfont.weight",W),V.ty=j("textfont.style",W),V.tv=j("textfont.variant",W),V.tC=j("textfont.textcase",W),V.tE=j("textfont.lineposition",W),V.tS=j("textfont.shadow",W)),G=[gn.minExtend(I,V)],Y=gn.minExtend(N,J),Y.selectedpoints=null,Y.texttemplate=null}var ne=Dn.select(this).select("g.legendpoints"),$=ne.selectAll("path.scatterpts").data(B?G:[]);$.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),$.exit().remove(),$.call(Ai.pointStyle,Y,t),B&&(G[0].mrc=3);var ce=ne.selectAll("g.pointtext").data(H?G:[]);ce.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),ce.exit().remove(),ce.selectAll("text").call(Ai.textPointStyle,Y,t)}function d(q){var C=q[0].trace,E=C.type==="waterfall";if(q[0]._distinct&&E){var P=q[0].trace[q[0].dir].marker;return q[0].mc=P.color,q[0].mlw=P.line.width,q[0].mlc=P.line.color,y(q,this,"waterfall")}var R=[];C.visible&&E&&(R=q[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var B=Dn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(R);B.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(I){var N=Dn.select(this),H=C[I[0]].marker,G=f(void 0,H.line,v0,hf);N.attr("d",I[1]).style("stroke-width",G+"px").call(Zi.fill,H.color),G&&N.call(Zi.stroke,H.line.color)})}function p(q){y(q,this)}function m(q){y(q,this,"funnel")}function y(q,C,E){var P=q[0].trace,R=P.marker||{},B=R.line||{},I=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",N=E?P.visible&&P.type===E:f7.traceIs(P,"bar"),H=Dn.select(C).select("g.legendpoints").selectAll("path.legend"+E).data(N?[q]:[]);H.enter().append("path").classed("legend"+E,!0).attr("d",I).attr("transform",u),H.exit().remove(),H.each(function(G){var Y=Dn.select(this),j=G[0],W=f(j.mlw,R.line,v0,hf);Y.style("stroke-width",W+"px");var V=j.mcc;if(!a._inHover&&"mc"in j){var J=v7(R),re=J.mid;re===void 0&&(re=(J.max+J.min)/2),V=Ai.tryColorscale(R,"")(re)}var le=V||j.mc||R.color,ne=R.pattern,$=Ai.getPatternAttr;let ce=0;a._inHover&&j._distinct&&j.index!=null&&(ce=j.index);let te=ne&&($(ne.shape,ce,"")||$(ne.path,ce,""));if(te){let se=$(ne.bgcolor,ce,null),oe=$(ne.fgcolor,ce,null);var ge=ne.fgopacity;let Ae=a._inHover?Vm($(ne.size,ce,8),8,10):Vm(ne.size,8,10),Pe=a._inHover?Vm($(ne.solidity,ce,.5),.5,1):Vm(ne.solidity,.5,1),me=a._inHover?`hover-${P.uid}-${ce}`:`legend-${P.uid}`;Y.call(Ai.pattern,"legend",t,me,te,Ae,Pe,V,ne.fillmode,se,oe,ge)}else Y.call(Zi.fill,le);W&&Zi.stroke(Y,j.mlc||B.color)})}function b(q){var C=q[0].trace,E=Dn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(C.visible&&f7.traceIs(C,"box-violin")?[q]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.each(function(){var P=Dn.select(this);if((C.boxpoints==="all"||C.points==="all")&&Zi.opacity(C.fillcolor)===0&&Zi.opacity((C.line||{}).color)===0){var R=gn.minExtend(C,{marker:{size:i?HN:gn.constrain(C.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call(Ai.pointStyle,R,t)}else{var B=f(void 0,C.line,v0,hf);P.style("stroke-width",B+"px").call(Zi.fill,C.fillcolor),B&&Zi.stroke(P,C.line.color)}})}function T(q){var C=q[0].trace,E=Dn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(C.visible&&C.type==="candlestick"?[q,q]:[]);E.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",u).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(P,R){var B=Dn.select(this),I=C[R?"increasing":"decreasing"],N=f(void 0,I.line,v0,hf);B.style("stroke-width",N+"px").call(Zi.fill,I.fillcolor),N&&Zi.stroke(B,I.line.color)})}function w(q){var C=q[0].trace,E=Dn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(C.visible&&C.type==="ohlc"?[q,q]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(P,R){return R?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(P,R){var B=Dn.select(this),I=C[R?"increasing":"decreasing"],N=f(void 0,I.line,v0,hf);B.style("fill","none").call(Ai.dashLine,I.line.dash,N),N&&Zi.stroke(B,I.line.color)})}function x(q){k(q,this,"pie")}function _(q){k(q,this,"funnelarea")}function k(q,C,E){var P=q[0],R=P.trace,B=E?R.visible&&R.type===E:f7.traceIs(R,E),I=Dn.select(C).select("g.legendpoints").selectAll("path.legend"+E).data(B?[q]:[]);if(I.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),I.exit().remove(),I.size()){var N=R.marker||{},H=f(w_e(N.line.width,P.pts),N.line,v0,hf),G="pieLike",Y=gn.minExtend(R,{marker:{line:{width:H}}},G),j=gn.minExtend(P,{trace:Y},G);__e(I,j,Y,t)}}function M(q){var C=q[0].trace,E,P=[];if(C.visible)switch(C.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="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"]],E=!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"]],E=!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"]],E=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!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"]],E=!1;break}var R=Dn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);R.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(B,I){var N=Dn.select(this),H=v7(C),G=H.colorscale,Y=H.reversescale,j=function(re){if(re.size()){var le="legendfill-"+C.uid;Ai.gradient(re,t,le,h7(Y,E==="radial"),G,"fill")}},W;if(G){if(!E){var J=G.length;W=I===0?G[Y?J-1:0][1]:I===1?G[Y?0:J-1][1]:G[Math.floor((J-1)/2)][1]}}else{var V=C.vertexcolor||C.facecolor||C.color;W=gn.isArrayOrTypedArray(V)?V[I]||V[0]:V}N.attr("d",B[0]),W?N.call(Zi.fill,W):N.call(j)})}};function h7(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function GN(e){var r=e[0].trace,t=r.contours,a=jm.hasLines(r)||r.visible&&r.type==="quiver",n=jm.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function Vm(e,r,t){return e&&gn.isArrayOrTypedArray(e)?r:e>t?t:e}});var g7=z((RZe,QN)=>{"use strict";var En=Pr(),Ta=ke(),m7=_a(),df=Ar(),Zm=Ch(),p7=Xi(),Aa=et(),$h=qr(),Zl=Da(),VN=l7().handleItemClick,jN=l7().handleTitleClick,na=(Om(),Ne(Bm)),y7=(un(),Ne(sn)),JN=y7.LINE_SPACING,d0=y7.FROM_TL,WN=y7.FROM_BR,XN=PN(),A_e=d7(),p0=Zh(),h0=1,M_e=/^legend[0-9]*$/;QN.exports=function(r,t){if(t)ZN(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=En.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(M_e)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o<n.length;o++){var l=n[o],s=r._fullLayout[l];ZN(r,s)}}};function k_e(e,r,t){if(!(r.title.side!=="top center"&&r.title.side!=="top right")){var a=r.title.font,n=a.size*JN,i=0,o=e.node(),l=Aa.bBox(o).width;r.title.side==="top center"?i=.5*(r._width-2*t-2*na.titlePad-l):r.title.side==="top right"&&(i=r._width-2*t-2*na.titlePad-l),Zl.positionText(e,t+na.titlePad+i,t+n)}}function ZN(e,r){var t=r||{},a=e._fullLayout,n=p0.getId(t),i,o,l=t._inHover;if(l?(o=t.layer,i="hover"):(o=a._infolayer,i=n),!!o){i+=a._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0);var s;if(l){if(!t.entries)return;s=XN(t.entries,t)}else{for(var u=(e.calcdata||[]).slice(),f=a.shapes,c=0;c<f.length;c++){var v=f[c];if(v.showlegend){var d={_isShape:!0,index:v._index,name:v.name||v.label.text||"shape "+v._index,legend:v.legend,legendgroup:v.legendgroup,legendgrouptitle:v.legendgrouptitle,legendrank:v.legendrank,legendwidth:v.legendwidth,showlegend:v.showlegend,visible:v.visible,opacity:v.opacity,mode:v.type==="line"?"lines":"markers",line:v.line,marker:{line:v.line,color:v.fillcolor,size:12,symbol:v.type==="rect"?"square":v.type==="circle"?"circle":"hexagon2"}};u.push([{trace:d}])}}s=a.showlegend&&XN(u,t,a._legends.length>1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),m7.autoMargin(e,n);var m=Ta.ensureSingle(o,"g",n,function(q){l||q.attr("pointer-events","all")}),y=Ta.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),b=Ta.ensureSingle(m,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});b.call($h.stroke,t.bordercolor).call($h.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=Ta.ensureSingle(m,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=Ta.ensureSingle(T,"text",n+"titletext"),x.attr("text-anchor","start").call(Aa.font,w.font).text(w.text),Xm(x,T,e,t,h0),!l&&(t.titleclick||t.titledoubleclick)&&L_e(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var _=Ta.ensureSingle(m,"rect","scrollbar",function(q){q.attr(na.scrollBarEnterAttrs).call($h.fill,na.scrollBarColor)}),k=T.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(Ta.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(q){let C=q[0],E=C.trace;if(C.groupTitle){let P=E.legendgroup,R=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(R).some(function(I){return I.legendgroup===P&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return df.traceIs(E,"pie-like")?p.indexOf(q[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){En.select(this).call(S_e,e,t)}).call(A_e,e,t).each(function(q){l||q[0].groupTitle&&t.groupclick==="toggleitem"||En.select(this).call(q_e,e,n)}),Ta.syncOrAsync([m7.previousPromises,function(){return E_e(e,k,M,t,T)},function(){var q=a._size,C=t.borderwidth,E=t.xref==="paper",P=t.yref==="paper";if(w.text){let Ce=(a.shapes||[]).filter(function(Le){return Le.showlegend}),Me=e._fullData.concat(Ce).some(function(Le){let Se=Le.legend||"legend";var Ee=Array.isArray(Se)?Se.includes(n):Se===n;return Ee&&Le.visible===!0});x.style("opacity",Me?1:.5)}if(!l){var R,B;E?R=q.l+q.w*t.x-d0[$m(t)]*t._width:R=a.width*t.x-d0[$m(t)]*t._width,P?B=q.t+q.h*(1-t.y)-d0[Jm(t)]*t._effHeight:B=a.height*(1-t.y)-d0[Jm(t)]*t._effHeight;var I=P_e(e,n,R,B);if(I)return;if(a.margin.autoexpand){var N=R,H=B;R=E?Ta.constrain(R,0,a.width-t._width):N,B=P?Ta.constrain(B,0,a.height-t._effHeight):H,R!==N&&Ta.log("Constrain "+n+".x to make legend fit inside graph"),B!==H&&Ta.log("Constrain "+n+".y to make legend fit inside graph")}Aa.setTranslate(m,R,B)}if(_.on(".drag",null),m.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;l&&(G=t._height),b.attr({width:t._width-C,height:G-C,x:C/2,y:C/2}),Aa.setTranslate(T,0,0),y.select("rect").attr({width:t._width-2*C,height:G-2*C,x:C,y:C}),Aa.setClipUrl(T,i,e),Aa.setRect(_,0,0,0,0),delete t._scrollY}else{var Y=Math.max(na.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),j=t._effHeight-Y-2*na.scrollBarMargin,W=t._height-t._effHeight,V=j/W,J=Math.min(t._scrollY||0,W);b.attr({width:t._width-2*C+na.scrollBarWidth+na.scrollBarMargin,height:t._effHeight-C,x:C/2,y:C/2}),y.select("rect").attr({width:t._width-2*C+na.scrollBarWidth+na.scrollBarMargin,height:t._effHeight-2*C,x:C,y:C+J}),Aa.setClipUrl(T,i,e),se(J,Y,V),m.on("wheel",function(){J=Ta.constrain(t._scrollY+En.event.deltaY/W*j,0,W),se(J,Y,V),J!==0&&J!==W&&En.event.preventDefault()});var re,le,ne,$=function(Ce,Me,Le){var Se=(Le-Me)/V+Ce;return Ta.constrain(Se,0,W)},ce=function(Ce,Me,Le){var Se=(Me-Le)/V+Ce;return Ta.constrain(Se,0,W)},te=En.behavior.drag().on("dragstart",function(){var Ce=En.event.sourceEvent;Ce.type==="touchstart"?re=Ce.changedTouches[0].clientY:re=Ce.clientY,ne=J}).on("drag",function(){var Ce=En.event.sourceEvent;Ce.buttons===2||Ce.ctrlKey||(Ce.type==="touchmove"?le=Ce.changedTouches[0].clientY:le=Ce.clientY,J=$(ne,re,le),se(J,Y,V))});_.call(te);var ge=En.behavior.drag().on("dragstart",function(){var Ce=En.event.sourceEvent;Ce.type==="touchstart"&&(re=Ce.changedTouches[0].clientY,ne=J)}).on("drag",function(){var Ce=En.event.sourceEvent;Ce.type==="touchmove"&&(le=Ce.changedTouches[0].clientY,J=ce(ne,re,le),se(J,Y,V))});T.call(ge)}function se(Ce,Me,Le){t._scrollY=e._fullLayout[n]._scrollY=Ce,Aa.setTranslate(T,0,-Ce),Aa.setRect(_,t._width,na.scrollBarMargin+Ce*Le,na.scrollBarWidth,Me),y.select("rect").attr("y",C+Ce)}if(e._context.edits.legendPosition){var oe,Ae,Pe,me;m.classed("cursor-move",!0),p7.init({element:m.node(),gd:e,prepFn:function(Ce){if(Ce.target!==_.node()){var Me=Aa.getTranslate(m);Pe=Me.x,me=Me.y}},moveFn:function(Ce,Me){if(Pe!==void 0&&me!==void 0){var Le=Pe+Ce,Se=me+Me;Aa.setTranslate(m,Le,Se),oe=p7.align(Le,t._width,q.l,q.l+q.w,t.xanchor),Ae=p7.align(Se+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(oe!==void 0&&Ae!==void 0){var Ce={};Ce[n+".x"]=oe,Ce[n+".y"]=Ae,df.call("_guiRelayout",e,Ce)}},clickFn:function(Ce,Me){var Le=o.selectAll("g.traces").filter(function(){var Se=this.getBoundingClientRect();return Me.clientX>=Se.left&&Me.clientX<=Se.right&&Me.clientY>=Se.top&&Me.clientY<=Se.bottom});Le.size()>0&&KN(e,t,Le,Ce,Me)}})}}],e)}}function Wm(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function KN(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),df.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=Zm.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&VN(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Zm.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&VN(t,e,r,s,a)}}function S_e(e,r,t){var a=p0.getId(t),n=e.data()[0][0],i=n.trace,o=df.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=Ta.templateString(u,i._meta))));var c=Ta.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Aa.font,f).text(l?$N(u,s):u);var v=t.indentation+t.itemwidth+na.itemGap*2;Zl.positionText(c,v,0),l?c.call(Zl.makeEditable,{gd:r,text:u}).call(Xm,e,r,t).on("edit",function(d){this.text($N(d,s)).call(Xm,e,r,t);var p={};return p.name=d,n.trace._isShape?df.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):df.call("_guiRestyle",r,p,i.index)}):Xm(c,e,r,t)}function $N(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function q_e(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=Ta.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call($h.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTime<a?i+=1:(i=1,r._legendMouseDownTime=n)}),o.on("mouseup",function(){if(!(r._dragged||r._editing)){var l=r._fullLayout[t];new Date().getTime()-r._legendMouseDownTime>a&&(i=Math.max(i-1,1)),KN(r,l,e,i,En.event)}}))}function L_e(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&df.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=Ta.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call($h.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTime<i?l+=1:(l=1,r._legendMouseDownTime=o)}),s.on("mouseup",function(){if(r._dragged||r._editing)return;new Date().getTime()-r._legendMouseDownTime>i&&(l=Math.max(l-1,1));let u={event:En.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(Zm.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&jN(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Zm.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&jN(r,t,t.titledoubleclick))}))}function Xm(e,r,t,a,n){a._inHover&&e.attr("data-notex",Zl.isPureTex(e.text())?null:!0),Zl.convertToTspans(e,t,function(){C_e(r,t,a,n)})}function C_e(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=p0.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===h0?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*JN,v,d;if(l){var p=Aa.bBox(l);v=p.height,d=p.width,a===h0?Aa.setTranslate(o,u,u+v*.75):Aa.setTranslate(o,0,v*.25)}else{var m="."+s+(a===h0?"title":"")+"text",y=e.select(m),b=Zl.lineCount(y),T=y.node();if(v=c*b,d=T?Aa.bBox(T).width:0,a===h0)t.title.side==="left"&&(d+=na.itemGap*2),Zl.positionText(y,u+na.titlePad,u+c);else{var w=na.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=na.itemGap,d-=t.indentation+t.itemwidth),Zl.positionText(y,w,-c*((b-1)/2-.3))}}if(a===h0)t._titleWidth=d,t._titleHeight=v;else{n.lineHeight=c;let x=na.itemMinHeight+t.itemheight-na.dfltFillHeight;n.height=Math.max(v,na.itemMinHeight,x)+na.itemHeightPad,n.width=d}}function D_e(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function E_e(e,r,t,a,n){var i=e._fullLayout,o=p0.getId(a);a||(a=i[o]);var l=i._size,s=p0.isVertical(a),u=p0.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=na.itemGap,p=a.indentation+a.itemwidth+d*2,m=2*(c+d),y=Jm(a),b=a.y<0||a.y===0&&y==="top",T=a.y>1||a.y===1&&y==="bottom",w=a.tracegroupgap,x={};let{orientation:_,yref:k}=a,{maxheight:M}=a,q=b||T||_!=="v"||k!=="paper";M||(M=q?.5:1);let C=q?i.height:l.h;a._maxHeight=Math.max(M>1?M:M*C,30);var E=0;a._width=0,a._height=0;var P=D_e(a);if(s)t.each(function(Ce){var Me=Ce[0].height;Aa.setTranslate(this,c+P[0],c+P[1]+a._height+Me/2+d),a._height+=Me,a._width=Math.max(a._width,Ce[0].width)}),E=p+a._width,a._width+=d+p+v,a._height+=m,u&&(r.each(function(Ce,Me){Aa.setTranslate(this,0,Me*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=$m(a),B=a.x<0||a.x===0&&R==="right",I=a.x>1||a.x===1&&R==="left",N=T||b,H=i.width/2;a._maxWidth=Math.max(B?N&&R==="left"?l.l+l.w:H:I?N&&R==="right"?l.r+l.w:H:l.w,2*p);var G=0,Y=0;t.each(function(Ce){var Me=Wm(Ce,a,p);G=Math.max(G,Me),Y+=Me}),E=null;var j=0;if(u){var W=0,V=0,J=0;r.each(function(){var Ce=0,Me=0;En.select(this).selectAll("g.traces").each(function(Se){var Ee=Wm(Se,a,p),qe=Se[0].height;Aa.setTranslate(this,P[0],P[1]+c+d+qe/2+Me),Me+=qe,Ce=Math.max(Ce,Ee),x[Se[0].trace.legendgroup]=Ce});var Le=Ce+d;V>0&&Le+c+V>a._maxWidth?(j=Math.max(j,V),V=0,J+=W+w,W=Me):W=Math.max(W,Me),Aa.setTranslate(this,V,J),V+=Le}),a._width=Math.max(j,V)+c,a._height=J+W+m}else{var re=t.size(),le=Y+v+(re-1)*d<a._maxWidth,ne=0,$=0,ce=0,te=0;t.each(function(Ce){var Me=Ce[0].height,Le=Wm(Ce,a,p,u),Se=le?Le:G;f||(Se+=d),Se+c+$-d>=a._maxWidth&&(j=Math.max(j,te),$=0,ce+=ne,a._height+=ne,ne=0),Aa.setTranslate(this,P[0]+c+$,P[1]+c+ce+Me/2+d),te=$+Le+d,$+=Se,ne=Math.max(ne,Me)}),le?(a._width=$+v,a._height=ne+m):(a._width=Math.max(j,te)+v,a._height+=ne+m)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+na.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+na.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ge=e._context.edits,se=ge.legendText||ge.legendPosition;if(t.each(function(Ce){var Me=En.select(this).select("."+o+"toggle"),Le=Ce[0].height,Se=Ce[0].trace.legendgroup,Ee=Wm(Ce,a,p);u&&Se!==""&&(Ee=x[Se]);var qe=se?p:E||Ee;!s&&!f&&(qe+=d/2),Aa.setRect(Me,0,-Le/2,qe,Le)}),a._inHover){let Ce=a._width-v-d-P[0];t.each(function(Me){Me[0].textAlign==="right"&&En.select(this).select("."+o+"text").attr("text-anchor","end").call(Zl.positionText,Ce)})}var oe=n.select("."+o+"titletext");oe.node()&&k_e(oe,a,c);var Ae=n.select("."+o+"titletoggle");if(Ae.size()&&oe.node()){var Pe=oe.attr("x")||0,me=na.titlePad;Aa.setRect(Ae,Pe-me,c,a._titleWidth+2*me,a._titleHeight+2*me)}}function P_e(e,r,t,a){var n=e._fullLayout,i=n[r],o=$m(i),l=Jm(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return m7.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*d0[o],r:i._width*WN[o],b:i._effHeight*WN[l],t:i._effHeight*d0[l]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function $m(e){return Ta.isRightAnchor(e)?"right":Ta.isCenterAnchor(e)?"center":"left"}function Jm(e){return Ta.isBottomAnchor(e)?"bottom":Ta.isMiddleAnchor(e)?"middle":"top"}});var T7=z(w7=>{"use strict";var Jl=Pr(),$l=Br(),ia=ke(),R_e=ia.pushUnique,b7=ia.strTranslate,F_e=ia.strRotate,z_e=Ch(),Qt=Da(),N_e=kN(),gl=et(),Ea=qr(),Km=Xi(),Bo=jr(),I_e=(Ha(),Ne(Oa)).zindexSeparator,pf=Ar(),Mi=No(),mf=(ah(),Ne(th)),B_e=n7(),O_e=g7(),uI=mf.YANGLE,_7=Math.PI*uI/180,H_e=1/Math.sin(_7),U_e=Math.cos(_7),G_e=Math.sin(_7),Wt=mf.HOVERARROWSIZE,$r=mf.HOVERTEXTPAD,eI={box:!0,ohlc:!0,violin:!0,candlestick:!0},Y_e={scatter:!0,scattergl:!0,splom:!0};function rI(e,r){return e.distance-r.distance}w7.hover=function(r,t,a,n){r=ia.getGraphDiv(r);var i=t.target;ia.throttle(r._fullLayout._uid+mf.HOVERID,mf.HOVERMINTIME,function(){j_e(r,t,a,n,i)})};w7.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=hI(n),o=dI(n),l=r.map(function(p){var m=p._x0||p.x0||p.x||0,y=p._x1||p.x1||p.x||0,b=p._y0||p.y0||p.y||0,T=p._y1||p.y1||p.y||0,w=p.eventData;if(w){var x=Math.min(m,y),_=Math.max(m,y),k=Math.min(b,T),M=Math.max(b,T),q=p.trace;if(pf.traceIs(q,"gl3d")){var C=n._fullLayout[q.scene]._scene.container,E=C.offsetLeft,P=C.offsetTop;x+=E,_+=E,k+=P,M+=P}w.bbox={x0:x+o,x1:_+o,y0:k+i,y1:M+i},w.xPixel=(m+y)/2,w.yPixel=(b+T)/2,t.inOut_bbox&&t.inOut_bbox.push(w.bbox)}else w=!1;return{color:p.color||Ea.defaultLine,x0:p.x0||p.x||0,x1:p.x1||p.x||0,y0:p.y0||p.y||0,y1:p.y1||p.y||0,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:p.text,name:p.name,idealAlign:p.idealAlign,borderColor:p.borderColor,fontFamily:p.fontFamily,fontSize:p.fontSize,fontColor:p.fontColor,fontWeight:p.fontWeight,fontStyle:p.fontStyle,fontVariant:p.fontVariant,nameLength:p.nameLength,textAlign:p.textAlign,trace:p.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:p.hovertemplate||!1,hovertemplateLabels:p.hovertemplateLabels||!1,eventData:w}}),s=!1,u=cI(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ea.background,container:Jl.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels;function c(){var p=5,m=0,y=0;f.sort(function(b,T){return b.y0-T.y0}).each(function(b,T){var w=b.y0-b.by/2;w-p<m?b.offset=m-w+p:b.offset=0,m=w+b.by+b.offset,T===t.anchorIndex&&(y=b.offset)}).each(function(b){b.offset-=y})}var v=n._fullLayout._invScaleX,d=n._fullLayout._invScaleY;return c(),ey(f,s,v,d),u.mathjaxPromise&&u.mathjaxPromise.then(function(){c(),ey(f,s,v,d),f.each(function(){var p=Jl.select(this);Qt.repositionMathGroup(p.select("text.nums")),Qt.repositionMathGroup(p.select("text.name"))})}),a?f:f.node()};function V_e(e,r){return!!(e!=null&&e.showspikes&&e.spikesnap!=="hovered data"||r!=null&&r.showspikes&&r.spikesnap!=="hovered data")}function j_e(e,r,t,a,n){t||(t="xy"),typeof t=="string"&&(t=t.split(I_e)[0]);var i=Array.isArray(t)?t:[t],o,l=e._fullLayout,s=l.hoversubplots,u=l._plots||[],f=u[t],c=l._has("cartesian"),v=l._has("ternary"),d=r.hovermode||l.hovermode,p=(d||"").charAt(0)==="x",m=(d||"").charAt(0)==="y",y,b;if(c&&(p||m)&&s==="axis"){for(var T=i.length,w=0;w<T;w++)if(o=i[w],u[o]){y=Bo.getFromId(e,o,"x"),b=Bo.getFromId(e,o,"y");var x=(p?y:b)._subplotsWith;if(x&&x.length)for(var _=0;_<x.length;_++)R_e(i,x[_])}}if(f&&s!=="single"){var k=f.overlays.map(function(tr){return tr.id});i=i.concat(k)}for(var M=i.length,q=new Array(M),C=new Array(M),E=!1,P=0;P<M;P++)if(o=i[P],u[o])E=!0,q[P]=u[o].xaxis,C[P]=u[o].yaxis;else if(l[o]&&l[o]._subplot){var R=l[o]._subplot;q[P]=R.xaxis,C[P]=R.yaxis}else{ia.warn("Unrecognized subplot: "+o);return}if(d&&!E&&(d="closest"),["x","y","closest","x unified","y unified"].indexOf(d)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return Km.unhoverRaw(e,r);var B=l.hoverdistance;B===-1&&(B=1/0);var I=l.spikedistance;I===-1&&(I=1/0);var N=[],H=[],G,Y,j,W,V,J,re,le,ne,$,ce,te,ge,se={hLinePoint:null,vLinePoint:null};let oe={};var Ae=!1;if(Array.isArray(r))for(d="array",j=0;j<r.length;j++)V=e.calcdata[r[j].curveNumber||0],V&&(J=V[0].trace,V[0].trace.hoverinfo!=="skip"&&(H.push(V),J.orientation==="h"&&(Ae=!0)));else{var Pe=e.calcdata.slice();for(Pe.sort(function(tr,tt){var Yr=tr[0].trace.zorder||0,ft=tt[0].trace.zorder||0;return Yr-ft}),W=0;W<Pe.length;W++)V=Pe[W],J=V[0].trace,J.hoverinfo!=="skip"&&Mi.isTraceInSubplots(J,i)&&(H.push(V),J.orientation==="h"&&(Ae=!0));var me=!n,Ce,Me;if(me)"xpx"in r?Ce=r.xpx:Ce=q[0]._length/2,"ypx"in r?Me=r.ypx:Me=C[0]._length/2;else{if(z_e.triggerHandler(e,"plotly_beforehover",r)===!1)return;var Le=n.getBoundingClientRect();Ce=r.clientX-Le.left,Me=r.clientY-Le.top,l._calcInverseTransform(e);var Se=ia.apply3DTransform(l._invTransform)(Ce,Me);if(Ce=Se[0],Me=Se[1],Ce<0||Ce>q[0]._length||Me<0||Me>C[0]._length)return Km.unhoverRaw(e,r)}if(r.pointerX=Ce+q[0]._offset,r.pointerY=Me+C[0]._offset,"xval"in r?G=Mi.flat(i,r.xval):G=Mi.p2c(q,Ce),"yval"in r?Y=Mi.flat(i,r.yval):Y=Mi.p2c(C,Me),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!$l(G[0])||!$l(Y[0]))return ia.warn("Fx.hover failed",r,e),Km.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=G,e._hoverYVals=Y,e._hoverXAxes=q,e._hoverYAxes=C);var Ee=1/0;function qe(tr,tt){for(W=0;W<H.length;W++)if(V=H[W],!(!V||!V[0]||!V[0].trace)&&(J=V[0].trace,!(J.visible!==!0||J._length===0)&&["carpet","contourcarpet"].indexOf(J._module.name)===-1)){if(ne=d,Mi.isUnifiedHover(ne)&&(ne=ne.charAt(0)),J.type==="splom"?(le=0,re=i[le]):(re=Mi.getSubplot(J),le=i.indexOf(re)),te={cd:V,trace:J,xa:q[le],ya:C[le],maxHoverDistance:B,maxSpikeDistance:I,index:!1,distance:Math.min(Ee,B),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:Ea.defaultLine,name:J.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[re]&&(te.subplot=l[re]._subplot),l._splomScenes&&l._splomScenes[J.uid]&&(te.scene=l._splomScenes[J.uid]),ne==="array"){var Yr=r[W];if("pointNumber"in Yr){let Wr=V[Yr.pointNumber];Wr&&(te.index=Yr.pointNumber,Wr.lonlat?($=Wr.lonlat[0],ce=Wr.lonlat[1]):($=Wr.x,ce=Wr.y)),ne="closest"}else ne="","xval"in Yr&&($=Yr.xval,ne="x"),"yval"in Yr&&(ce=Yr.yval,ne=ne?"closest":"y")}else tr!==void 0&&tt!==void 0?($=tr,ce=tt):($=G[le],ce=Y[le]);if(ge=N.length,B!==0)if(J._module&&J._module.hoverPoints){var ft=J._module.hoverPoints(te,$,ce,ne,{finiteRange:!0,hoverLayer:l._hoverlayer,hoversubplots:s,gd:e});if(ft)for(var Ft,qa=0;qa<ft.length;qa++)Ft=ft[qa],$l(Ft.x0)&&$l(Ft.y0)&&N.push(Z_e(Ft,d))}else ia.log("Unrecognized trace type in hover:",J);if(d==="closest"&&N.length>ge&&(N.splice(0,ge),Ee=N[0].distance),pf.traceIs(J,"ternary")&&I!==0){let Wr=te.subplot;if(["aaxis","baxis","caxis"].some(Ht=>Wr[Ht].showspikes&&Wr[Ht].spikesnap!=="hovered data")){let Ht=ft==null?void 0:ft[0];if(!Number.isFinite(Ht==null?void 0:Ht.spikeDistance)){let On=ia.extendFlat({},te,{distance:I,index:!1}),ta=J._module.hoverPoints(On,$,ce,"closest");Ht=ta&&ta[0]}let $n=oe[re];Ht&&Ht.index!==void 0&&Ht.index!==!1&&Ht.spikeDistance<=I&&(!$n||Ht.spikeDistance<$n.spikeDistance)&&(oe[re]=Ht)}}if(c&&N.length===0&&I!==0&&V_e(te.xa,te.ya)){te.distance=I,te.index=!1;var at=J._module.hoverPoints(te,$,ce,"closest",{hoverLayer:l._hoverlayer});if(at&&(at=at.filter(function(Wr){return Wr.spikeDistance<=I})),at!=null&&at.length){var bt,ma=at.filter(function(Wr){return Wr.xa.showspikes&&Wr.xa.spikesnap!=="hovered data"});if(ma.length){var pi=ma[0];$l(pi.x0)&&$l(pi.y0)&&(bt=Ke(pi),(!se.vLinePoint||se.vLinePoint.spikeDistance>bt.spikeDistance)&&(se.vLinePoint=bt))}var nt=at.filter(function(Wr){return Wr.ya.showspikes&&Wr.ya.spikesnap!=="hovered data"});if(nt.length){var La=nt[0];$l(La.x0)&&$l(La.y0)&&(bt=Ke(La),(!se.hLinePoint||se.hLinePoint.spikeDistance>bt.spikeDistance)&&(se.hLinePoint=bt))}}}}}qe();function Ue(){if(l._hoverlayer.selectAll(".ternary-spikes").remove(),I!==0)for(let tr=0;tr<i.length;tr++){let tt=i[tr],Yr=l[tt]&&l[tt]._subplot;if(Yr&&Yr.drawSpikelines){let ft=N.find(Ft=>Ft.trace.subplot===tt&&Ft.index!==void 0&&Ft.index!==!1&&Ft.spikeDistance<=I);Yr.drawSpikelines(ft,oe[tt],G&&G[tr],Y&&Y[tr])}}}function Je(tr,tt,Yr){for(var ft=null,Ft=1/0,qa,at=0;at<tr.length;at++)y&&y._id!==tr[at].xa._id||b&&b._id!==tr[at].ya._id||(qa=tr[at].spikeDistance,Yr&&at===0&&(qa=-1/0),qa<=Ft&&qa<=tt&&(ft=tr[at],Ft=qa));return ft}function Ke(tr){return tr?{xa:tr.xa,ya:tr.ya,x:tr.xSpike!==void 0?tr.xSpike:(tr.x0+tr.x1)/2,y:tr.ySpike!==void 0?tr.ySpike:(tr.y0+tr.y1)/2,distance:tr.distance,spikeDistance:tr.spikeDistance,curveNumber:tr.trace.index,color:tr.color,pointNumber:tr.index}:null}var De={fullLayout:l,container:l._hoverlayer,event:r},Be=e._spikepoints,er={vLinePoint:se.vLinePoint,hLinePoint:se.hLinePoint};e._spikepoints=er;var ae=function(){var tr=N.filter(function(Yr){return y&&y._id===Yr.xa._id&&b&&b._id===Yr.ya._id}),tt=N.filter(function(Yr){return!(y&&y._id===Yr.xa._id&&b&&b._id===Yr.ya._id)});tr.sort(rI),tt.sort(rI),N=tr.concat(tt),N=J_e(N,d)};ae();var be=d.charAt(0),Ge=(be==="x"||be==="y")&&N[0]&&Y_e[N[0].trace.type];if(c&&I!==0&&N.length!==0){var sr=N.filter(function(tr){return tr.ya.showspikes}),vr=Je(sr,I,Ge);se.hLinePoint=Ke(vr);var ue=N.filter(function(tr){return tr.xa.showspikes}),xe=Je(ue,I,Ge);se.vLinePoint=Ke(xe)}if(N.length===0){var Ie=Km.unhoverRaw(e,r);if(c&&(se.hLinePoint!==null||se.vLinePoint!==null)&&oI(Be)&&iI(e,se,De),l.hoveranywhere&&!a&&n){var We=e._hoverdata;We&&We.length&&(e.emit("plotly_unhover",{event:r,points:We}),e._hoverdata=[]),Ot([]),e._hoverAnywhereActive=!0}return v&&Ue(),Ie}if(c&&oI(Be)&&iI(e,se,De),v&&Ue(),Mi.isXYhover(ne)&&N[0].length!==0&&N[0].trace.type!=="splom"){var Oe=N[0];eI[Oe.trace.type]?N=N.filter(tr=>tr.trace.index===Oe.trace.index):N=[Oe];var Xe=N.length,Qe=sI("x",Oe,l),_r=sI("y",Oe,l);qe(Qe,_r);var gr=[],Re={},Ze=0,ze=function(tr){var tt=eI[tr.trace.type]?fI(tr):tr.trace.index;if(!Re[tt])Ze++,Re[tt]=Ze,gr.push(tr);else{var Yr=Re[tt]-1,ft=gr[Yr];Yr>0&&Math.abs(tr.distance)<Math.abs(ft.distance)&&(gr[Yr]=tr)}},rr;for(rr=0;rr<Xe;rr++)ze(N[rr]);for(rr=N.length-1;rr>Xe-1;rr--)ze(N[rr]);N=gr,ae()}var cr=e._hoverdata,pr=[],mr=hI(e),ie=dI(e);for(let tr of N){var ye=Mi.makeEventData(tr,tr.trace,tr.cd);if(tr.hovertemplate!==!1){var Fe=!1;tr.cd[tr.index]&&tr.cd[tr.index].ht&&(Fe=tr.cd[tr.index].ht),tr.hovertemplate=Fe||tr.trace.hovertemplate||!1}if(tr.xa&&tr.ya){var He=tr.x0+tr.xa._offset,Gr=tr.x1+tr.xa._offset,rt=tr.y0+tr.ya._offset,qt=tr.y1+tr.ya._offset,gt=Math.min(He,Gr),Ut=Math.max(He,Gr),Bt=Math.min(rt,qt),Fa=Math.max(rt,qt);ye.bbox={x0:gt+ie,x1:Ut+ie,y0:Bt+mr,y1:Fa+mr},ye.xPixel=(He+Gr)/2,ye.yPixel=(rt+qt)/2}tr.eventData=[ye],pr.push(ye)}e._hoverdata=pr;var kt=d==="y"&&(H.length>1||N.length>1)||d==="closest"&&Ae&&N.length>1,Zt=Ea.combine(l.plot_bgcolor||Ea.background,l.paper_bgcolor),$t=cI(N,{gd:e,hovermode:d,rotateLabels:kt,bgColor:Zt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Lt=$t.hoverLabels;if(Mi.isUnifiedHover(d)||(aI(Lt,kt,l,$t.commonLabelBoundingBox),ey(Lt,kt,l._invScaleX,l._invScaleY),$t.mathjaxPromise&&$t.mathjaxPromise.then(function(){e._hoverdata===pr&&(aI(Lt,kt,l,$t.commonLabelBoundingBox),ey(Lt,kt,l._invScaleX,l._invScaleY),Lt.each(function(){var tr=Jl.select(this);Qt.repositionMathGroup(tr.select("text.nums")),Qt.repositionMathGroup(tr.select("text.name"))}))})),n&&n.tagName){var ra=pf.getComponentMethod("annotations","hasClickToShow")(e,pr);N_e(Jl.select(n),ra?"pointer":"")}var sa=$_e(e,r,cr);if(!n||a||!sa&&!l.hoveranywhere)return;cr&&sa&&e.emit("plotly_unhover",{event:r,points:cr}),Ot(e._hoverdata);function Ot(tr){e.emit("plotly_hover",{event:r,points:tr,xaxes:q,yaxes:C,xvals:Mi.c2dApply(q,G),yvals:Mi.c2dApply(C,Y),xPixel:r.pointerX,yPixel:r.pointerY})}}function fI(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 W_e=/<extra>([\s\S]*)<\/extra>/;function x7(e,r){return Qm(e,Qt.getMathOrTextNode(r))}function cI(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=[],c=r.fontFamily||mf.HOVERFONT,v=r.fontSize||mf.HOVERFONTSIZE,d=r.fontWeight||a.font.weight,p=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,b=r.fontLineposition||a.font.lineposition,T=r.fontShadow||a.font.shadow,w=e[0],x=w.xa,_=w.ya,k=n.charAt(0),M=k+"Label",q=w[M];if(q===void 0&&x.type==="multicategory")for(var C=0;C<e.length&&(q=e[C][M],q===void 0);C++);var E=Qm(t,s),P=E.top,R=E.width,B=E.height,I=q!==void 0&&w.distance<=r.hoverdistance&&(n==="x"||n==="y");if(I){var N=!0,H,G;for(H=0;H<e.length;H++)if(N&&e[H].zLabel===void 0&&(N=!1),G=e[H].hoverinfo||e[H].trace.hoverinfo,G){var Y=Array.isArray(G)?G:G.split("+");if(Y.indexOf("all")===-1&&Y.indexOf(n)===-1){I=!1;break}}N&&(I=!1)}var j=l.selectAll("g.axistext").data(I?[0]:[]);j.enter().append("g").classed("axistext",!0),j.exit().remove();var W={minX:0,maxX:0,minY:0,maxY:0};if(j.each(function(){var ue=Jl.select(this),xe=ia.ensureSingle(ue,"path","",function(ze){ze.style({"stroke-width":"1px"})}),Ie=ia.ensureSingle(ue,"text",""),We=u.bgcolor||Ea.defaultLine,Oe=u.bordercolor||Ea.contrast(We),Xe=Ea.contrast(We),Qe=u.font,_r={weight:Qe.weight||d,style:Qe.style||p,variant:Qe.variant||m,textcase:Qe.textcase||y,lineposition:Qe.lineposition||b,shadow:Qe.shadow||T,family:Qe.family||c,size:Qe.size||v,color:Qe.color||Xe};xe.style({fill:We,stroke:Oe});var gr=Qt.isPureTex(String(q)),Re;gr&&f.push(new Promise(function(ze){Re=function(){if(!Ie.node().parentNode){ze();return}Ze(),Qt.repositionMathGroup(Ie),ze()}})),Ie.text(q).call(gl.font,_r).attr("data-notex",gr?null:1).call(Qt.positionText,0,0).call(Qt.convertToTspans,t,Re),Ze();function Ze(){ue.attr("transform",""),Qt.positionText(Ie,0,0),Qt.repositionMathGroup(Ie);var ze=x7(t,Ie),rr,cr;if(n==="x"){var pr=x.side==="top"?"-":"";Ie.attr("text-anchor","middle").call(Qt.positionText,0,x.side==="top"?P-ze.bottom-Wt-$r:P-ze.top+Wt+$r),rr=x._offset+(w.x0+w.x1)/2,cr=_._offset+(x.side==="top"?0:_._length);var mr=ze.width/2+$r,ie=rr;rr<mr?ie=mr:rr>a.width-mr&&(ie=a.width-mr),xe.attr("d","M"+(rr-ie)+",0L"+(rr-ie+Wt)+","+pr+Wt+"H"+mr+"v"+pr+($r*2+ze.height)+"H"+-mr+"V"+pr+Wt+"H"+(rr-ie-Wt)+"Z"),rr=ie,W.minX=rr-mr,W.maxX=rr+mr,x.side==="top"?(W.minY=cr-($r*2+ze.height),W.maxY=cr-$r):(W.minY=cr+$r,W.maxY=cr+($r*2+ze.height))}else{var ye,Fe,He;_.side==="right"?(ye="start",Fe=1,He="",rr=x._offset+x._length):(ye="end",Fe=-1,He="-",rr=x._offset),cr=_._offset+(w.y0+w.y1)/2,Ie.attr("text-anchor",ye),xe.attr("d","M0,0L"+He+Wt+","+Wt+"V"+($r+ze.height/2)+"h"+He+($r*2+ze.width)+"V-"+($r+ze.height/2)+"H"+He+Wt+"V-"+Wt+"Z"),W.minY=cr-($r+ze.height/2),W.maxY=cr+($r+ze.height/2),_.side==="right"?(W.minX=rr+Wt,W.maxX=rr+Wt+($r*2+ze.width)):(W.minX=rr-Wt-($r*2+ze.width),W.maxX=rr-Wt);var Gr=ze.height/2,rt=P-ze.top-Gr,qt="clip"+a._uid+"commonlabel"+_._id,gt;if(rr<ze.width+2*$r+Wt){gt="M-"+(Wt+$r)+"-"+Gr+"h-"+(ze.width-$r)+"V"+Gr+"h"+(ze.width-$r)+"Z";var Ut=ze.width-rr+$r;Qt.positionText(Ie,Ut,rt),ye==="end"&&Ie.selectAll("tspan").each(function(){var Fa=Jl.select(this),kt=gl.tester.append("text").text(Fa.text()).call(gl.font,_r),Zt=Qm(t,kt.node());Math.round(Zt.width)<Math.round(ze.width)&&Fa.attr("x",Ut-Zt.width),kt.remove()})}else Qt.positionText(Ie,Fe*($r+Wt),rt),gt=null;var Bt=a._topclips.selectAll("#"+qt).data(gt?[0]:[]);Bt.enter().append("clipPath").attr("id",qt).append("path"),Bt.exit().remove(),Bt.select("path").attr("d",gt),gl.setClipUrl(Ie,gt?qt:null,t)}ue.attr("transform",b7(rr,cr))}}),Mi.isUnifiedHover(n)){l.selectAll("g.hovertext").remove();let ue=e.filter(xe=>xe.hoverinfo!=="none");if(ue.length===0)return[];var V=a.hoverlabel,J=V.font,re=ue[0],le=((n==="x unified"?re.xa:re.ya).unifiedhovertitle||{}).text,ne=le?ia.hovertemplateString({data:n==="x unified"?[{xa:re.xa,x:re.xVal}]:[{ya:re.ya,y:re.yVal}],fallback:re.trace.hovertemplatefallback,locale:a._d3locale,template:le}):q,$={showlegend:!0,legend:{title:{text:ne,font:J},font:J,bgcolor:V.bgcolor,bordercolor:V.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},ce={font:J};B_e($,ce,t._fullData);var te=ce.legend;te.entries=[];for(var ge=0;ge<ue.length;ge++){var se=ue[ge];if(se.hoverinfo!=="none"){var oe=tI(se,!0,n,a,q),Ae=oe[0],Pe=oe[1];se.name=Pe,Pe!==""?se.text=Pe+" : "+Ae:se.text=Ae;var me=se.cd[se.index];me&&(me.mc&&(se.mc=me.mc),me.mcc&&(se.mc=me.mcc),me.mlc&&(se.mlc=me.mlc),me.mlcc&&(se.mlc=me.mlcc),me.mlw&&(se.mlw=me.mlw),me.mrc&&(se.mrc=me.mrc),me.dir&&(se.dir=me.dir)),se._distinct=!0,te.entries.push([se])}}te.entries.sort(function(xe,Ie){var We=a.hoversort;if(We==="value descending"||We==="value ascending"){var Oe=n.charAt(0)==="x"?"y":"x",Xe=xe[0][Oe+"LabelVal"],Qe=Ie[0][Oe+"LabelVal"];if(Xe!==Qe)return We==="value descending"?Qe-Xe:Xe-Qe}return xe[0].trace.index-Ie[0].trace.index}),te.layer=l,te._inHover=!0,te._groupTitleFont=V.grouptitlefont,O_e(t,te);var Ce=l.select("g.legend"),Me=Qm(t,Ce.node()),Le=Me.width+2*$r,Se=Me.height+2*$r,Ee=ue[0],qe=(Ee.x0+Ee.x1)/2,Ue=(Ee.y0+Ee.y1)/2,Je=!(pf.traceIs(Ee.trace,"bar-like")||pf.traceIs(Ee.trace,"box-violin")),Ke,De;k==="y"?Je?(De=Ue-$r,Ke=Ue+$r):(De=Math.min.apply(null,ue.map(function(xe){return Math.min(xe.y0,xe.y1)})),Ke=Math.max.apply(null,ue.map(function(xe){return Math.max(xe.y0,xe.y1)}))):De=Ke=ia.mean(ue.map(function(xe){return(xe.y0+xe.y1)/2}))-Se/2;var Be,er;k==="x"?Je?(Be=qe+$r,er=qe-$r):(Be=Math.max.apply(null,ue.map(function(xe){return Math.max(xe.x0,xe.x1)})),er=Math.min.apply(null,ue.map(function(xe){return Math.min(xe.x0,xe.x1)}))):Be=er=ia.mean(ue.map(function(xe){return(xe.x0+xe.x1)/2}))-Le/2;var ae=x._offset,be=_._offset;Ke+=be,Be+=ae,er+=ae-Le,De+=be-Se;var Ge,sr;return Be+Le<R&&Be>=0?Ge=Be:er+Le<R&&er>=0?Ge=er:ae+Le<R?Ge=ae:Be-qe<qe-er+Le?Ge=R-Le:Ge=0,Ge+=$r,Ke+Se<B&&Ke>=0?sr=Ke:De+Se<B&&De>=0?sr=De:be+Se<B?sr=be:Ke-Ue<Ue-De+Se?sr=B-Se:sr=0,sr+=$r,Ce.attr("transform",b7(Ge-1,sr-1)),Ce}var vr=l.selectAll("g.hovertext").data(e,function(ue){return fI(ue)});return vr.enter().append("g").classed("hovertext",!0).each(function(){var ue=Jl.select(this);ue.append("rect").call(Ea.fill,Ea.addOpacity(o,.8)),ue.append("text").classed("name",!0),ue.append("path").style("stroke-width","1px"),ue.append("text").classed("nums",!0).call(gl.font,{weight:d,style:p,variant:m,textcase:y,lineposition:b,shadow:T,family:c,size:v})}),vr.exit().remove(),vr.each(function(ue){var xe=Jl.select(this).attr("transform",""),Ie=ue.color;Array.isArray(Ie)&&(Ie=Ie[ue.eventData[0].pointNumber]);var We=ue.bgcolor||Ie,Oe=Ea.combine(Ea.opacity(We)?We:Ea.defaultLine,o),Xe=Ea.combine(Ea.opacity(Ie)?Ie:Ea.defaultLine,o),Qe=ue.borderColor||Ea.contrast(Oe),_r=tI(ue,I,n,a,q,xe),gr=_r[0],Re=_r[1],Ze=!!(Re&&Re!==gr),ze=Qt.isPureTex(gr),rr=Ze&&Qt.isPureTex(Re),cr=(ze?1:0)+(rr?1:0),pr;cr&&f.push(new Promise(function(Fe){pr=function(){--cr===0&&(xe.node().parentNode&&ye(),Fe())}}));var mr=xe.select("text.nums").call(gl.font,{family:ue.fontFamily||c,size:ue.fontSize||v,color:ue.fontColor||Qe,weight:ue.fontWeight||d,style:ue.fontStyle||p,variant:ue.fontVariant||m,textcase:ue.fontTextcase||y,lineposition:ue.fontLineposition||b,shadow:ue.fontShadow||T}).text(gr).attr("data-notex",ze?null:1).call(Qt.positionText,0,0).call(Qt.convertToTspans,t,ze?pr:void 0),ie=xe.select("text.name");Ze?ie.call(gl.font,{family:ue.fontFamily||c,size:ue.fontSize||v,color:Xe,weight:ue.fontWeight||d,style:ue.fontStyle||p,variant:ue.fontVariant||m,textcase:ue.fontTextcase||y,lineposition:ue.fontLineposition||b,shadow:ue.fontShadow||T}).text(Re).attr("data-notex",rr?null:1).call(Qt.positionText,0,0).call(Qt.convertToTspans,t,rr?pr:void 0):(ie.remove(),xe.select("rect").remove()),ye();function ye(){xe.attr("transform",""),mr.call(Qt.positionText,0,0),Qt.repositionMathGroup(mr),Ze&&(ie.call(Qt.positionText,0,0),Qt.repositionMathGroup(ie)),xe.select("path").style({fill:Oe,stroke:Qe});var Fe=ue.xa._offset+(ue.x0+ue.x1)/2,He=ue.ya._offset+(ue.y0+ue.y1)/2,Gr=Math.abs(ue.x1-ue.x0),rt=Math.abs(ue.y1-ue.y0),qt=0,gt=0;if(Ze){var Ut=x7(t,ie);qt=Ut.width+2*$r,gt=Ut.height+2*$r}var Bt=x7(t,mr),Fa=Bt.width/a._invScaleX,kt=Bt.height/a._invScaleY;ue.ty0=(P-Bt.top)/a._invScaleY,ue.bx=Fa+2*$r,ue.by=Math.max(kt+2*$r,gt),ue.anchor="start",ue.txwidth=Fa,ue.tx2width=qt,ue.offset=0;var Zt=(Fa+Wt+$r+qt)*a._invScaleX,$t,Lt;if(i)ue.pos=Fe,$t=He+rt/2+Zt<=B,Lt=He-rt/2-Zt>=0,(ue.idealAlign==="top"||!$t)&&Lt?(He-=rt/2,ue.anchor="end"):$t?(He+=rt/2,ue.anchor="start"):ue.anchor="middle",ue.crossPos=He;else{if(ue.pos=He,$t=Fe+Gr/2+Zt<=R,Lt=Fe-Gr/2-Zt>=0,(ue.idealAlign==="left"||!$t)&&Lt)Fe-=Gr/2,ue.anchor="end";else if($t)Fe+=Gr/2,ue.anchor="start";else{ue.anchor="middle";var ra=Zt/2,sa=Fe+ra-R,Ot=Fe-ra;sa>0&&(Fe-=sa),Ot<0&&(Fe+=-Ot)}ue.crossPos=Fe}mr.attr("text-anchor",ue.anchor),qt&&ie.attr("text-anchor",ue.anchor),xe.attr("transform",b7(Fe,He)+(i?F_e(uI):""))}}),{hoverLabels:vr,commonLabelBoundingBox:W,mathjaxPromise:f.length?Promise.all(f):null}}function tI(e,r,t,a,n,i){var c,v;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=ia.templateString(e.name,e.trace._meta)),o=lI(e.name,e.nameLength));var s=t.charAt(0),u=s==="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[s+"Label"]===n?l=e[u+"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),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=ia.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(W_e,(p,m)=>(o=lI(m,e.nameLength),""))}return[l,o]}function aI(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,m=function(H){return H*t._invScaleX},y=function(H){return H*t._invScaleY};e.each(function(H){var G=H[n],Y=H[i],j=G._id.charAt(0)==="x",W=G.range;f===0&&W&&W[0]>W[1]!==j&&(l=-1);var V=0,J=j?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var re=vI(H,r),le=H.anchor,ne=le==="end"?-1:1,$,ce;if(le==="middle")$=H.crossPos+(j?y(re.y-H.by/2):m(H.bx/2+H.tx2width/2)),ce=$+(j?y(H.by):m(H.bx));else if(j)$=H.crossPos+y(Wt+re.y)-y(H.by/2-Wt),ce=$+y(H.by);else{var te=m(ne*Wt+re.x),ge=te+m(ne*H.bx);$=H.crossPos+Math.min(te,ge),ce=H.crossPos+Math.max(te,ge)}j?d!==void 0&&p!==void 0&&Math.min(ce,p)-Math.max($,d)>1&&(Y.side==="left"?(V=Y._mainLinePosition,J=t.width):J=Y._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(ce,v)-Math.max($,c)>1&&(Y.side==="top"?(V=Y._mainLinePosition,J=t.height):J=Y._mainLinePosition)}u[f++]=[{datum:H,traceIndex:H.trace.index,dp:0,pos:H.pos,posref:H.posref,size:H.by*(j?H_e:1)/2,pmin:V,pmax:J}]}),u.sort(function(H,G){return H[0].posref-G[0].posref||l*(G[0].traceIndex-H[0].traceIndex)});var b,T,w,x,_,k,M;function q(H){var G=H[0],Y=H[H.length-1];if(T=G.pmin-G.pos-G.dp+G.size,w=Y.pos+Y.dp+Y.size-G.pmax,T>.01){for(_=H.length-1;_>=0;_--)H[_].dp+=T;b=!1}if(!(w<.01)){if(T<-.01){for(_=H.length-1;_>=0;_--)H[_].dp-=w;b=!1}if(b){var j=0;for(x=0;x<H.length;x++)k=H[x],k.pos+k.dp+k.size>G.pmax&&j++;for(x=H.length-1;x>=0&&!(j<=0);x--)k=H[x],k.pos>G.pmax-1&&(k.del=!0,j--);for(x=0;x<H.length&&!(j<=0);x++)if(k=H[x],k.pos<G.pmin+1)for(k.del=!0,j--,w=k.size*2,_=H.length-1;_>=0;_--)H[_].dp-=w;for(x=H.length-1;x>=0&&!(j<=0);x--)k=H[x],k.pos+k.dp+k.size>G.pmax&&(k.del=!0,j--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x<u.length-1;){var C=u[x],E=u[x+1],P=C[C.length-1],R=E[0];if(T=P.pos+P.dp+P.size-R.pos-R.dp+R.size,T>.01){for(_=E.length-1;_>=0;_--)E[_].dp+=T;for(C.push.apply(C,E),u.splice(x+1,1),M=0,_=C.length-1;_>=0;_--)M+=C[_].dp;for(w=M/C.length,_=C.length-1;_>=0;_--)C[_].dp-=w;b=!1}else x++}u.forEach(q)}for(x=u.length-1;x>=0;x--){var B=u[x];for(_=B.length-1;_>=0;_--){var I=B[_],N=I.datum;N.offset=I.dp,N.del=I.del}}}function vI(e,r){var t=0,a=e.offset;return r&&(a*=-G_e,t=e.offset*U_e),{x:t,y:a}}function X_e(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Wt+$r),a=t+r*(e.txwidth+$r),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+$r),{alignShift:r,textShiftX:t,text2ShiftX:a}}function ey(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=Jl.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=X_e(o),v=vI(o,r),d=v.x,p=v.y,m=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;m?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?b="M0,0L"+n(f*Wt+d)+","+i(Wt+p)+"v"+i(o.by/2-Wt)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Wt+d)+"V"+i(p-Wt)+"Z":b="M"+n(f*Wt+d)+","+i(p-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",b);var T=d+c.textShiftX,w=p+o.ty0-o.by/2+$r,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),T=m?-o.bx/2-o.tx2width/2+$r:-o.bx-$r):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),T=m?o.bx/2-o.tx2width/2-$r:o.bx+$r)),s.call(Qt.positionText,n(T),i(w)),o.tx2width&&(l.select("text.name").call(Qt.positionText,n(c.text2ShiftX+c.alignShift*$r+d),i(p+o.ty0-o.by/2+$r)),l.select("rect").call(gl.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function Z_e(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||$l(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=ia.castOption(n,t,v);return o(p)?p:ia.extractOption({},a,"",d)}:function(v,d){return ia.extractOption(i,a,v,d)};function s(v,d,p){var m=l(d,p);o(m)&&(e[v]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=ia.constrain(e.x0,0,e.xa._length),e.x1=ia.constrain(e.x1,0,e.xa._length),e.y0=ia.constrain(e.y0,0,e.ya._length),e.y1=ia.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Bo.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Bo.hoverLabelText(e.ya,e.yLabelVal,a.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 u=Bo.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Bo.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Bo.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Bo.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 nI(e,r,t){let a=r._id.charAt(0)==="y",n=1/0,i=-1/0;for(let o of r._counterAxes||[]){let l=Bo.getFromId(e,o);if(!l)continue;let s=l._padStart||0,u=l._padEnd||0;a?(n=Math.min(n,t.l+l.domain[0]*t.w+s),i=Math.max(i,t.l+l.domain[1]*t.w-u)):(n=Math.min(n,t.t+(1-l.domain[1])*t.h+s),i=Math.max(i,t.t+(1-l.domain[0])*t.h-u))}if(r.anchor==="free"){let o=a?t.l+r.position*t.w:t.t+(1-r.position)*t.h;n=Math.min(n,o),i=Math.max(i,o)}return[n,i]}function iI(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Ea.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var m=f.spikesnap;m==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var y=Ea.wcagContrast(v.color,c)<1.5?Ea.contrast(c):v.color,b=f.spikemode,T=f.spikethickness,w=f.spikecolor||y,x=Bo.getPxPosition(e,f),_,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(_=x,k=d),b.indexOf("across")!==-1){let Y=nI(e,f,i);_=Y[0],k=Y[1]}a.insert("line",":first-child").attr({x1:_,x2:k,y1:p,y2:p,"stroke-width":T,stroke:w,"stroke-dasharray":gl.dashStyle(f.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:_,x2:k,y1:p,y2:p,"stroke-width":T+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?T:-T),cy:p,r:T,fill:w}).classed("spikeline",!0)}if(s){var M=r.vLinePoint,q,C;u=M&&M.xa,f=M&&M.ya;var E=u.spikesnap;E==="cursor"?(q=o.pointerX,C=o.pointerY):(q=u._offset+M.x,C=f._offset+M.y);var P=Ea.wcagContrast(M.color,c)<1.5?Ea.contrast(c):M.color,R=u.spikemode,B=u.spikethickness,I=u.spikecolor||P,N=Bo.getPxPosition(e,u),H,G;if(R.indexOf("toaxis")!==-1||R.indexOf("across")!==-1){if(R.indexOf("toaxis")!==-1&&(H=N,G=C),R.indexOf("across")!==-1){let Y=nI(e,u,i);H=Y[0],G=Y[1]}a.insert("line",":first-child").attr({x1:q,x2:q,y1:H,y2:G,"stroke-width":B,stroke:I,"stroke-dasharray":gl.dashStyle(u.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:q,x2:q,y1:H,y2:G,"stroke-width":B+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}R.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:q,cy:N-(u.side!=="top"?B:-B),r:B,fill:I}).classed("spikeline",!0)}}}function $_e(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function oI(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function lI(e,r){return Qt.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function J_e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o<e.length;o++){var l=e[o];pf.traceIs(l.trace,"bar-like")||pf.traceIs(l.trace,"box-violin")?i.push(l):l.trace[t+"period"]?n.push(l):a.push(l)}return a.concat(n).concat(i)}function sI(e,r,t){var a=r[e+"a"],n=r[e+"Val"],i=r.cd[0];if(a.type==="category"||a.type==="multicategory")n=a._categoriesMap[n];else if(a.type==="date"){var o=r.trace[e+"periodalignment"];if(o){var l=r.cd[r.index],s=l[e+"Start"];s===void 0&&(s=l[e]);var u=l[e+"End"];u===void 0&&(u=l[e]);var f=u-s;o==="end"?n+=f:o==="middle"&&(n+=f/2)}n=a.d2c(n)}return i&&i.t&&i.t.posLetter===a._id&&(t.boxmode==="group"||t.violinmode==="group")&&(n+=i.t.dPos),n}var hI=e=>e.offsetTop+e.clientTop,dI=e=>e.offsetLeft+e.clientLeft;function Qm(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=ia.apply3DTransform(t._invTransform)(n,i),u=ia.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],v=u[0],d=u[1];return{x:f,y:c,width:v-f,height:d-c,top:Math.min(c,d),left:Math.min(f,v),right:Math.max(f,v),bottom:Math.max(c,d)}}});var ry=z((zZe,pI)=>{"use strict";var K_e=ke(),Q_e=qr(),e4e=No().isUnifiedHover;pI.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&e4e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Q_e.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),K_e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var yI=z((NZe,mI)=>{"use strict";var r4e=ke(),t4e=ry(),a4e=Sc();mI.exports=function(r,t){function a(n,i){return r4e.coerce(r,t,a4e,n,i)}t4e(r,t,a)}});var xI=z((IZe,bI)=>{"use strict";var gI=ke(),n4e=W1(),i4e=ry();bI.exports=function(r,t,a,n){function i(l,s){return gI.coerce(r,t,n4e,l,s)}var o=gI.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),i4e(r,t,i,o)}});var A7=z((BZe,_I)=>{"use strict";var o4e=ke(),l4e=Sc();_I.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:o4e.coerce(r,t,l4e,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var AI=z((OZe,TI)=>{"use strict";var wI=ke(),s4e=Sc(),u4e=A7(),f4e=ry();TI.exports=function(r,t){function a(u,f){return wI.coerce(r,t,s4e,u,f)}var n=u4e(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("map"),l=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l)&&s===1||o&&l&&s===2)&&(t.dragmode="pan"),f4e(r,t,a),wI.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var SI=z((HZe,kI)=>{"use strict";var M7=ke(),MI=Ar();kI.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return M7.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i<t.length;i++){var o=t[i],l=o[0].trace;if(!MI.traceIs(l,"pie-like")){var s=MI.traceIs(l,"2dMap")?c4e:M7.fillArray;s(l.hoverinfo,o,"hi",n(l)),l.hovertemplate&&s(l.hovertemplate,o,"ht"),l.hoverlabel&&(s(l.hoverlabel.bgcolor,o,"hbg"),s(l.hoverlabel.bordercolor,o,"hbc"),s(l.hoverlabel.font.size,o,"hts"),s(l.hoverlabel.font.color,o,"htc"),s(l.hoverlabel.font.family,o,"htf"),s(l.hoverlabel.font.weight,o,"htw"),s(l.hoverlabel.font.style,o,"hty"),s(l.hoverlabel.font.variant,o,"htv"),s(l.hoverlabel.namelength,o,"hnl"),s(l.hoverlabel.align,o,"hta"),s(l.hoverlabel.showarrow,o,"htsa"))}}};function c4e(e,r,t,a){a=a||M7.identity,Array.isArray(e)&&(r[0][t]=a(e))}});var CI=z((UZe,LI)=>{"use strict";var v4e=Ar(),qI=No(),h4e=T7().hover;LI.exports=function(r,t,a){var n=v4e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&h4e(r,t,a,!0);function o(){var s,u,f,c,v,d;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&qI.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&qI.c2dApply(r._hoverYAxes,r._hoverYVals)),(v=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(d=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Yn=z((GZe,PI)=>{"use strict";var d4e=Pr(),ty=ke(),p4e=Xi(),Jh=No(),DI=Sc(),EI=T7();PI.exports={moduleType:"component",name:"fx",constants:(ah(),Ne(th)),schema:{layout:DI},attributes:W1(),layoutAttributes:DI,supplyLayoutGlobalDefaults:yI(),supplyDefaults:xI(),supplyLayoutDefaults:AI(),calc:SI(),getDistanceFunction:Jh.getDistanceFunction,getClosest:Jh.getClosest,inbox:Jh.inbox,quadrature:Jh.quadrature,appendArrayPointValue:Jh.appendArrayPointValue,castHoverOption:y4e,castHoverinfo:g4e,hover:EI.hover,unhover:p4e.unhover,loneHover:EI.loneHover,loneUnhover:m4e,click:CI()};function m4e(e){var r=ty.isD3Selection(e)?e:d4e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function y4e(e,r,t){return ty.castOption(e,r,"hoverlabel."+t)}function g4e(e,r,t){function a(n){return ty.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return ty.castOption(e,t,"hoverinfo",a)}});var yf=z(Kl=>{"use strict";Kl.selectMode=function(e){return e==="lasso"||e==="select"};Kl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Kl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Kl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Kl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Kl.selectingOrDrawing=function(e){return Kl.freeMode(e)||Kl.rectMode(e)}});var ay=z((VZe,RI)=>{"use strict";RI.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var ny=z((jZe,FI)=>{"use strict";FI.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 iy={};Dt(iy,{CIRCLE_SIDES:()=>b4e,SQRT2:()=>k4e,cos45:()=>A4e,i000:()=>x4e,i090:()=>_4e,i180:()=>w4e,i270:()=>T4e,sin45:()=>M4e});var b4e,x4e,_4e,w4e,T4e,A4e,M4e,k4e,oy=Ct(()=>{"use strict";b4e=32,x4e=0,_4e=8,w4e=16,T4e=24,A4e=Math.cos(Math.PI/4),M4e=Math.sin(Math.PI/4),k4e=Math.sqrt(2)});var ly=z((WZe,NI)=>{"use strict";var S4e=ke().strTranslate;function zI(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 q4e(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 L4e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return zI(e,t[r])}}function C4e(e){return S4e(e.xaxis._offset,e.yaxis._offset)}NI.exports={p2r:zI,r2p:q4e,axValue:L4e,getTransform:C4e}});var js=z(Ql=>{"use strict";var D4e=v6(),OI=(oy(),Ne(iy)),m0=OI.CIRCLE_SIDES,k7=OI.SQRT2,HI=ly(),II=HI.p2r,BI=HI.r2p,E4e=[0,3,4,5,6,1,2],P4e=[0,3,4,1,2];Ql.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a<r;a++)for(var n=e[a].length,i=0;i<n;i++){var o=e[a][i][0];if(o==="Z")t+="Z";else for(var l=e[a][i].length,s=0;s<l;s++){var u=s;o==="Q"||o==="S"?u=P4e[s]:o==="C"&&(u=E4e[s]),t+=e[a][i][u],s>0&&s<l-1&&(t+=",")}}return t};Ql.readPaths=function(e,r,t,a){var n=D4e(e),i=[],o=-1,l=function(){o++,i[o]=[]},s,u=0,f=0,c,v,d=function(){c=u,v=f};d();for(var p=0;p<n.length;p++){var m=[],y,b,T,w,x=n[p][0],_=x;switch(x){case"M":l(),u=+n[p][1],f=+n[p][2],m.push([_,u,f]),d();break;case"Q":case"S":y=+n[p][1],T=+n[p][2],u=+n[p][3],f=+n[p][4],m.push([_,u,f,y,T]);break;case"C":y=+n[p][1],T=+n[p][2],b=+n[p][3],w=+n[p][4],u=+n[p][5],f=+n[p][6],m.push([_,u,f,y,T,b,w]);break;case"T":case"L":u=+n[p][1],f=+n[p][2],m.push([_,u,f]);break;case"H":_="L",u=+n[p][1],m.push([_,u,f]);break;case"V":_="L",f=+n[p][1],m.push([_,u,f]);break;case"A":_="L";var k=+n[p][1],M=+n[p][2];+n[p][4]||(k=-k,M=-M);var q=u-k,C=f;for(s=1;s<=m0/2;s++){var E=2*Math.PI*s/m0;m.push([_,q+k*Math.cos(E),C+M*Math.sin(E)])}break;case"Z":(u!==c||f!==v)&&(u=c,f=v,m.push([_,u,f]));break}for(var P=(t||{}).domain,R=r._fullLayout._size,B=t&&t.xsizemode==="pixel",I=t&&t.ysizemode==="pixel",N=a===!1,H=0;H<m.length;H++){for(s=0;s+2<7;s+=2){var G=m[H][s+1],Y=m[H][s+2];G===void 0||Y===void 0||(u=G,f=Y,t&&(t.xaxis&&t.xaxis.p2r?(N&&(G-=t.xaxis._offset),B?G=BI(t.xaxis,t.xanchor)+G:G=II(t.xaxis,G)):(N&&(G-=R.l),P?G=P.x[0]+G/R.w:G=G/R.w),t.yaxis&&t.yaxis.p2r?(N&&(Y-=t.yaxis._offset),I?Y=BI(t.yaxis,t.yanchor)-Y:Y=II(t.yaxis,Y)):(N&&(Y-=R.t),P?Y=P.y[1]-Y/R.h:Y=1-Y/R.h)),m[H][s+1]=G,m[H][s+2]=Y)}i[o].push(m[H].slice())}}return i};function Kh(e,r){return Math.abs(e-r)<=1e-6}function sy(e,r){var t=r[1]-e[1],a=r[2]-e[2];return Math.sqrt(t*t+a*a)}Ql.pointsOnRectangle=function(e){var r=e.length;if(r!==5)return!1;for(var t=1;t<3;t++){var a=e[0][t]-e[1][t],n=e[3][t]-e[2][t];if(!Kh(a,n))return!1;var i=e[0][t]-e[3][t],o=e[1][t]-e[2][t];if(!Kh(i,o))return!1}return!Kh(e[0][1],e[1][1])&&!Kh(e[0][1],e[3][1])?!1:!!(sy(e[0],e[1])*sy(e[0],e[3]))};Ql.pointsOnEllipse=function(e){var r=e.length;if(r!==m0+1)return!1;r=m0;for(var t=0;t<r;t++){var a=(r*2-t)%r,n=(r/2+a)%r,i=(r/2+t)%r;if(!Kh(sy(e[t],e[i]),sy(e[a],e[n])))return!1}return!0};Ql.handleEllipse=function(e,r,t){if(!e)return[r,t];var a=Ql.ellipseOver({x0:r[0],y0:r[1],x1:t[0],y1:t[1]}),n=(a.x1+a.x0)/2,i=(a.y1+a.y0)/2,o=(a.x1-a.x0)/2,l=(a.y1-a.y0)/2;o||(o=l=l/k7),l||(l=o=o/k7);for(var s=[],u=0;u<m0;u++){var f=u*2*Math.PI/m0;s.push([n+o*Math.cos(f),i+l*Math.sin(f)])}return s};Ql.ellipseOver=function(e){var r=e.x0,t=e.y0,a=e.x1,n=e.y1,i=a-r,o=n-t;r-=i,t-=o;var l=(r+a)/2,s=(t+n)/2,u=k7;return i*=u,o*=u,{x0:l-i,y0:s-o,x1:l+i,y1:s+o}};Ql.fixDatesForPaths=function(e,r,t){var a=r.type==="date",n=t.type==="date";if(!a&&!n)return e;for(var i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++)for(var l=0;l+2<e[i][o].length;l+=2)a&&(e[i][o][l+1]=e[i][o][l+1].replace(" ","_")),n&&(e[i][o][l+2]=e[i][o][l+2].replace(" ","_"));return e}});var cy=z((ZZe,$I)=>{"use strict";var UI=Ca(),WI=yf(),R4e=WI.drawMode,F4e=WI.openMode,y0=(oy(),Ne(iy)),GI=y0.i000,YI=y0.i090,VI=y0.i180,jI=y0.i270,z4e=y0.cos45,N4e=y0.sin45,XI=ly(),uy=XI.p2r,Ws=XI.r2p,I4e=zs(),B4e=I4e.clearOutline,fy=js(),O4e=fy.readPaths,H4e=fy.writePaths,U4e=fy.ellipseOver,G4e=fy.fixDatesForPaths;function Y4e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!R4e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l<o.length)switch(a._fullLayout.shapes[l].type){case"rect":i="drawrect";break;case"circle":i="drawcircle";break;case"line":i="drawline";break;case"path":var s=o[l].path||"";s[s.length-1]==="Z"?i="drawclosedpath":i="drawopenpath";break}}var u=ZI(e,r,i);B4e(a);for(var f=r.editHelpers,c=(f||{}).modifyItem,v=[],d=0;d<o.length;d++){var p=a._fullLayout.shapes[d];if(v[d]=p._input,n!==void 0&&d===a._fullLayout._activeShapeIndex){var m=u;switch(p.type){case"line":case"rect":case"circle":var y=UI.getFromId(a,p.xref);p.xref.charAt(0)==="x"&&y.type.includes("category")?(c("x0",m.x0-(p.x0shift||0)),c("x1",m.x1-(p.x1shift||0))):(c("x0",m.x0),c("x1",m.x1));var b=UI.getFromId(a,p.yref);p.yref.charAt(0)==="y"&&b.type.includes("category")?(c("y0",m.y0-(p.y0shift||0)),c("y1",m.y1-(p.y1shift||0))):(c("y0",m.y0),c("y1",m.y1));break;case"path":c("path",m.path);break}}}return n===void 0?(v.push(u),v):f?f.getUpdateObj():{}}}}function ZI(e,r,t){var a=e[0][0],n=r.gd,i=a.getAttribute("d"),o=n._fullLayout.newshape,l=r.plotinfo,s=r.isActiveShape,u=l.xaxis,f=l.yaxis,c=!!l.domain||!l.xaxis,v=!!l.domain||!l.yaxis,d=F4e(t),p=O4e(i,n,l,s),m={editable:!0,visible:o.visible,name:o.name,showlegend:o.showlegend,legend:o.legend,legendwidth:o.legendwidth,legendgroup:o.legendgroup,legendgrouptitle:{text:o.legendgrouptitle.text,font:o.legendgrouptitle.font},legendrank:o.legendrank,label:o.label,xref:c?"paper":u._id,yref:v?"paper":f._id,layer:o.layer,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}};d||(m.fillcolor=o.fillcolor,m.fillrule=o.fillrule);var y;if(p.length===1&&(y=p[0]),y&&y.length===5&&t==="drawrect")m.type="rect",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[2][1],m.y1=y[2][2];else if(y&&t==="drawline")m.type="line",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[1][1],m.y1=y[1][2];else if(y&&t==="drawcircle"){m.type="circle";var b=y[GI][1],T=y[YI][1],w=y[VI][1],x=y[jI][1],_=y[GI][2],k=y[YI][2],M=y[VI][2],q=y[jI][2],C=l.xaxis&&(l.xaxis.type==="date"||l.xaxis.type==="log"),E=l.yaxis&&(l.yaxis.type==="date"||l.yaxis.type==="log");C&&(b=Ws(l.xaxis,b),T=Ws(l.xaxis,T),w=Ws(l.xaxis,w),x=Ws(l.xaxis,x)),E&&(_=Ws(l.yaxis,_),k=Ws(l.yaxis,k),M=Ws(l.yaxis,M),q=Ws(l.yaxis,q));var P=(T+x)/2,R=(_+M)/2,B=(x-T+w-b)/2,I=(q-k+M-_)/2,N=U4e({x0:P,y0:R,x1:P+B*z4e,y1:R+I*N4e});C&&(N.x0=uy(l.xaxis,N.x0),N.x1=uy(l.xaxis,N.x1)),E&&(N.y0=uy(l.yaxis,N.y0),N.y1=uy(l.yaxis,N.y1)),m.x0=N.x0,m.y0=N.y0,m.x1=N.x1,m.y1=N.y1}else m.type="path",u&&f&&G4e(p,u,f),m.path=H4e(p),y=null;return m}$I.exports={newShapes:Y4e,createShapeObj:ZI}});var q7=z(($Ze,JI)=>{"use strict";var V4e=yf(),j4e=V4e.selectMode,W4e=zs(),X4e=W4e.clearOutline,S7=js(),Z4e=S7.readPaths,$4e=S7.writePaths,J4e=S7.fixDatesForPaths;JI.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!j4e(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d<v.length)switch(i._fullLayout.selections[d].type){case"rect":c="select";break;case"path":c="lasso";break}}var p=Z4e(n,i,l,f),m={xref:s._id,yref:u._id,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}},y;p.length===1&&(y=p[0]),y&&y.length===5&&c==="select"?(m.type="rect",m.x0=y[0][1],m.y0=y[0][2],m.x1=y[2][1],m.y1=y[2][2]):(m.type="path",s&&u&&J4e(p,s,u),m.path=$4e(p),y=null),X4e(i);for(var b=t.editHelpers,T=(b||{}).modifyItem,w=[],x=0;x<v.length;x++){var _=i._fullLayout.selections[x];if(!_){w[x]=_;continue}if(w[x]=_._input,f!==void 0&&x===i._fullLayout._activeSelectionIndex){var k=m;switch(_.type){case"rect":T("x0",k.x0),T("x1",k.x1),T("y0",k.y0),T("y1",k.y1);break;case"path":T("path",k.path);break}}}return f===void 0?(w.push(m),w):b?b.getUpdateObj():{}}}}});var Qh={};Dt(Qh,{numParams:()=>t6e,paramIsX:()=>e6e,paramIsY:()=>r6e,paramRE:()=>Q4e,segmentRE:()=>K4e});var K4e,Q4e,e6e,r6e,t6e,ed=Ct(()=>{"use strict";K4e=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Q4e=/[^\s,]+/g,e6e={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:{}},r6e={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:{}},t6e={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Zs=z(Ka=>{"use strict";var xl=(ed(),Ne(Qh)),KI=ke(),Xs=jr();Ka.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Ka.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Ka.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Ka.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Ka.extractPathCoords=function(e,r,t){var a=[],n=e.match(xl.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(xl.paramRE);if(!(!l||l.length<o)){var s=l[o],u=t?s:KI.cleanNumber(s);a.push(u)}}}),a};Ka.countDefiningCoords=function(e,r,t){if(e!=="path")return 2;if(!r)return 0;let a=r.match(xl.segmentRE);if(!a)return 0;let n=t==="x"?xl.paramIsX:xl.paramIsY;return a.reduce((i,o)=>{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Ka.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=Ka.shapePositionToRange(r);o=function(s){var u=bl(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Ka.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};Ka.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=Ka.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};Ka.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Ka.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Ka.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Ka.getPathString=function(e,r){let t=r.type,a=Xs.getRefType(r.xref),n=Xs.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,v,d,p,m,y,b;function T(E,P,R,B){var I;if(E)if(P==="domain")B?I=function(N){return E._offset+E._length*(1-N)}:I=function(N){return E._offset+E._length*N};else{let N=Ka.shapePositionToRange(E);I=function(H){return E._offset+E.r2p(N(H,!0))},R==="path"&&E.type==="date"&&(I=Ka.decodeDate(I))}else B?I=function(N){return i.t+i.h*(1-N)}:I=function(N){return i.l+i.w*N};return I}if(a==="array"?(v=[],o=r.xref.map(function(E){return Xs.getFromId(e,E)}),v=r.xref.map(function(E,P){return T(o[P],Xs.getRefType(E),t,!1)})):(o=Xs.getFromId(e,r.xref),v=T(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(E){return Xs.getFromId(e,E)}),d=r.yref.map(function(E,P){return T(l[P],Xs.getRefType(E),t,!0)})):(l=Xs.getFromId(e,r.yref),d=T(l,n,t,!0)),t==="path")return a6e(r,v,d);if(a==="array")s=bl(o[0],r.x0shift),u=bl(o[1],r.x1shift),p=v[0](r.x0)+s,m=v[1](r.x1)+u;else if(s=bl(o,r.x0shift),u=bl(o,r.x1shift),r.xsizemode==="pixel"){let E=v(r.xanchor);p=E+r.x0+s,m=E+r.x1+u}else p=v(r.x0)+s,m=v(r.x1)+u;if(n==="array")f=bl(l[0],r.y0shift),c=bl(l[1],r.y1shift),y=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=bl(l,r.y0shift),c=bl(l,r.y1shift),r.ysizemode==="pixel"){let E=d(r.yanchor);y=E-r.y0+f,b=E-r.y1+c}else y=d(r.y0)+f,b=d(r.y1)+c;if(t==="line")return"M"+p+","+y+"L"+m+","+b;if(t==="rect")return"M"+p+","+y+"H"+m+"V"+b+"H"+p+"Z";var w=(p+m)/2,x=(y+b)/2,_=Math.abs(w-p),k=Math.abs(x-y),M="A"+_+","+k,q=w+_+","+x,C=w+","+(x-k);return"M"+q+M+" 0 1,1 "+C+M+" 0 0,1 "+q+"Z"};function a6e(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(xl.segmentRE,function(v){var d=0,p=v.charAt(0),m=xl.paramIsX[p],y=xl.paramIsY[p],b=xl.numParams[p];let T=m.drawn!==void 0,w=y.drawn!==void 0,x=s?r[f]:r,_=u?t[c]:t;var k=v.slice(1).replace(xl.paramRE,function(M){return m[d]?n==="pixel"?M=x(o)+Number(M):M=x(M):y[d]&&(i==="pixel"?M=_(l)-Number(M):M=_(M)),d++,d>b&&(M="X"),M});return d>b&&(k=k.replace(/[\s,]*X.*/,""),KI.log("Ignoring extra params in segment "+v)),T&&f++,w&&c++,p+k})}Ka.getPixelShift=bl;function bl(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 L7=z((KZe,rB)=>{"use strict";var n6e=ke(),_l=jr(),QI=Da(),eB=et(),i6e=js().readPaths,gf=Zs(),o6e=gf.getPathString,rd=qp(),l6e=(un(),Ne(sn)).FROM_TL;rB.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=_l.getFromId(r,a.xref),s=_l.getFromId(r,a.yref);let V=Array.isArray(a.xref),J=Array.isArray(a.yref);for(var u in rd){var f=typeof rd[u]=="function",c=!V||rd.simpleXVariables.includes(u),v=!J||rd.simpleYVariables.includes(u);if(f&&c&&v){var d=rd[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=n6e.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},m=a.label.font,y={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),T=b.append("text").attr(y).classed("shape-label-text",!0).text(i),w,x,_,k;if(a.path){var M=o6e(r,a),q=i6e(M,r);w=1/0,_=1/0,x=-1/0,k=-1/0;for(var C=0;C<q.length;C++)for(var E=0;E<q[C].length;E++)for(var P=q[C][E],R=1;R<P.length;R+=2){var B=P[R],I=P[R+1];w=Math.min(w,B),x=Math.max(x,B),_=Math.min(_,I),k=Math.max(k,I)}}else{let V=Array.isArray(a.xref),J=Array.isArray(a.yref),re=_l.getFromId(r,V?a.xref[0]:a.xref),le=_l.getFromId(r,V?a.xref[1]:a.xref),ne=_l.getFromId(r,J?a.yref[0]:a.yref),$=_l.getFromId(r,J?a.yref[1]:a.yref),ce=_l.getRefType(V?a.xref[0]:a.xref),te=_l.getRefType(V?a.xref[1]:a.xref),ge=_l.getRefType(J?a.yref[0]:a.yref),se=_l.getRefType(J?a.yref[1]:a.yref),oe=(Pe,me,Ce,Me)=>gf.getDataToPixel(r,Ce,me,!1,Me)(Pe),Ae=(Pe,me,Ce,Me)=>gf.getDataToPixel(r,Ce,me,!0,Me)(Pe);if(a.xsizemode==="pixel"){let Pe=oe(a.xanchor,void 0,re,ce),me=gf.getPixelShift(re,a.x0shift),Ce=gf.getPixelShift(re,a.x1shift);w=Pe+a.x0+me,x=Pe+a.x1+Ce}else w=oe(a.x0,a.x0shift,re,ce),x=oe(a.x1,a.x1shift,le,te);if(a.ysizemode==="pixel"){let Pe=Ae(a.yanchor,void 0,ne,ge),me=gf.getPixelShift(ne,a.y0shift),Ce=gf.getPixelShift(ne,a.y1shift);_=Pe-a.y0+me,k=Pe-a.y1+Ce}else _=Ae(a.y0,a.y0shift,ne,ge),k=Ae(a.y1,a.y1shift,$,se)}var N=a.label.textangle;N==="auto"&&(a.type==="line"?N=s6e(w,_,x,k):N=0),T.call(function(V){return V.call(eB.font,m).attr({}),QI.convertToTspans(V,r),V});var H=eB.bBox(T.node()),G=u6e(w,_,x,k,a,N,H),Y=G.textx,j=G.texty,W=G.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[W],y:j,x:Y,transform:"rotate("+N+","+Y+","+j+")"}).call(QI.positionText,Y,j)}};function s6e(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function u6e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,y,b,T,w;if(f==="line"){l==="start"?(y=e,b=r):l==="end"?(y=t,b=a):(y=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":t<e?p="right":p="center":t>e?p="right":t<e?p="left":p="center":l==="end"?s==="auto"?t>e?p="right":t<e?p="left":p="center":t>e?p="left":t<e?p="right":p="center":p="center");var x={left:1,center:0,right:-1},_={bottom:-1,middle:0,top:1};if(s==="auto"){var k=_[m];T=-u*v*k,w=u*d*k}else{var M=x[p],q=_[m];T=u*M,w=u*q}y=y+T,b=b+w}else T=u+3,l.indexOf("right")!==-1?(y=Math.max(e,t)-T,p==="auto"&&(p="right")):l.indexOf("left")!==-1?(y=Math.min(e,t)+T,p==="auto"&&(p="left")):(y=(e+t)/2,p==="auto"&&(p="center")),l.indexOf("top")!==-1?b=Math.min(r,a):l.indexOf("bottom")!==-1?b=Math.max(r,a):b=(r+a)/2,w=u,m==="bottom"?b=b-w:m==="top"&&(b=b+w);var C=l6e[m],E=n.label.font.size,P=o.height,R=(P*C-E)*v,B=-(P*C-E)*d;return{textx:y+R,texty:b+B,xanchor:p}}});var dy=z((QZe,uB)=>{"use strict";var f6e=ke(),c6e=f6e.strTranslate,tB=Xi(),iB=yf(),v6e=iB.drawMode,oB=iB.selectMode,lB=Ar(),aB=qr(),hy=(oy(),Ne(iy)),h6e=hy.i000,d6e=hy.i090,p6e=hy.i180,m6e=hy.i270,y6e=zs(),sB=y6e.clearOutlineControllers,D7=js(),vy=D7.pointsOnRectangle,C7=D7.pointsOnEllipse,g6e=D7.writePaths,b6e=cy().newShapes,x6e=cy().createShapeObj,_6e=q7(),w6e=L7();uB.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(C7(r[0])||a.hasText)&&l({redrawing:!0})}function l(G){var Y={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,Y=b6e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,Y=_6e(t,a),i._fullLayout._reselect=!0),Object.keys(Y).length&&lB.call((G||{}).redrawing?"relayout":"_guiRelayout",i,Y)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=v6e(f),v=oB(f);(c||v)&&(i._fullLayout._outlining=!0),sB(i),t.attr("d",g6e(r));var d,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=T6e([],r);var T=u.append("g").attr("class","outline-controllers");E(T),H()}if(c&&a.hasText){var w=u.select(".label-temp"),x=x6e(t,a,a.dragmode);w6e(i,"label-temp",x,w)}function _(G){m=+G.srcElement.getAttribute("data-i"),y=+G.srcElement.getAttribute("data-j"),d[m][y].moveFn=k}function k(G,Y){if(r.length){var j=b[m][y][1],W=b[m][y][2],V=r[m],J=V.length;if(vy(V)){var re=G,le=Y;if(a.isActiveSelection){var ne=nB(V,y);ne[1]===V[y][1]?le=0:re=0}for(var $=0;$<J;$++)if($!==y){var ce=V[$];ce[1]===V[y][1]&&(ce[1]=j+re),ce[2]===V[y][2]&&(ce[2]=W+le)}if(V[y][1]=j+re,V[y][2]=W+le,!vy(V))for(var te=0;te<J;te++)for(var ge=0;ge<V[te].length;ge++)V[te][ge]=b[m][te][ge]}else V[y][1]=j+G,V[y][2]=W+Y;o()}}function M(){l()}function q(){if(r.length&&r[m]&&r[m].length){for(var G=[],Y=0;Y<r[m].length;Y++)Y!==y&&G.push(r[m][Y]);G.length>1&&!(G.length===2&&G[1][0]==="Z")&&(y===0&&(G[0][0]="M"),r[m]=G,o(),l())}}function C(G,Y){if(G===2){m=+Y.srcElement.getAttribute("data-i"),y=+Y.srcElement.getAttribute("data-j");var j=r[m];!vy(j)&&!C7(j)&&q()}}function E(G){d=[];for(var Y=0;Y<r.length;Y++){var j=r[Y],W=vy(j),V=!W&&C7(j);d[Y]=[];for(var J=j.length,re=0;re<J;re++)if(j[re][0]!=="Z"&&!(V&&re!==h6e&&re!==d6e&&re!==p6e&&re!==m6e)){var le=W&&a.isActiveSelection,ne;le&&(ne=nB(j,re));var $=j[re][1],ce=j[re][2],te=G.append(le?"rect":"circle").attr("data-i",Y).attr("data-j",re).style({fill:aB.background,stroke:aB.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(le){var ge=ne[1]-$,se=ne[2]-ce,oe=se?5:Math.max(Math.min(25,Math.abs(ge)-5),5),Ae=ge?5:Math.max(Math.min(25,Math.abs(se)-5),5);te.classed(se?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",oe).attr("height",Ae).attr("x",$-oe/2).attr("y",ce-Ae/2).attr("transform",c6e(ge/2,se/2))}else te.classed("cursor-grab",!0).attr("r",5).attr("cx",$).attr("cy",ce);d[Y][re]={element:te.node(),gd:i,prepFn:_,doneFn:M,clickFn:C},tB.init(d[Y][re])}}}function P(G,Y){if(r.length)for(var j=0;j<r.length;j++)for(var W=0;W<r[j].length;W++)for(var V=0;V+2<r[j][W].length;V+=2)r[j][W][V+1]=b[j][W][V+1]+G,r[j][W][V+2]=b[j][W][V+2]+Y}function R(G,Y){P(G,Y),o()}function B(G){m=+G.srcElement.getAttribute("data-i"),m||(m=0),p[m].moveFn=R}function I(){l()}function N(G){G===2&&A6e(i)}function H(){if(p=[],!!r.length){var G=0;p[G]={element:t[0][0],gd:i,prepFn:B,doneFn:I,clickFn:N},tB.init(p[G])}}};function T6e(e,r){for(var t=0;t<r.length;t++){var a=r[t];e[t]=[];for(var n=0;n<a.length;n++){e[t][n]=[];for(var i=0;i<a[n].length;i++)e[t][n][i]=a[n][i]}}return e}function nB(e,r){var t=e[r][1],a=e[r][2],n=e.length,i,o,l;return i=(r+1)%n,o=e[i][1],l=e[i][2],o===t&&l===a&&(i=(r+2)%n,o=e[i][1],l=e[i][2]),[i,o,l]}function A6e(e){if(oB(e._fullLayout.dragmode)){sB(e);var r=e._fullLayout._activeSelectionIndex,t=(e.layout||{}).selections||[];if(r<t.length){for(var a=[],n=0;n<t.length;n++)n!==r&&a.push(t[n]);delete e._fullLayout._activeSelectionIndex;var i=e._fullLayout.selections[r];e._fullLayout._deselect={xref:i.xref,yref:i.yref},lB.call("_guiRelayout",e,{selections:a})}}}});var by=z((e$e,bB)=>{"use strict";var M6e=Pr(),pB=Ar(),P7=ke(),bf=jr(),k6e=js().readPaths,S6e=dy(),my=L7(),mB=zs().clearOutlineControllers,E7=qr(),yy=et(),q6e=Pt().arrayEditor,fB=Xi(),cB=Yn(),vB=Ys(),xf=(ed(),Ne(Qh)),oi=Zs(),R7=oi.getPathString;bB.exports={draw:F7,drawOne:yB,eraseActiveShape:P6e,drawLabel:my};function F7(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 a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n<r.shapes.length;n++)r.shapes[n].visible===!0&&yB(e,n)}function py(e){return!!e._fullLayout._outlining}function gy(e){return!e._context.edits.shapePosition}function yB(e,r){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+r+'"]').remove();var t=oi.makeShapesOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input||a.visible!==!0)return;let i=Array.isArray(a.xref)||Array.isArray(a.yref);if(a.layer==="above")l(e._fullLayout._shapeUpperLayer);else if(a.xref.includes("paper")||a.yref.includes("paper"))l(e._fullLayout._shapeLowerLayer);else if(a.layer==="between"&&!i)l(n.shapelayerBetween);else if(n._hadPlotinfo){var o=n.mainplotinfo||n;l(o.shapelayer)}else l(e._fullLayout._shapeLowerLayer);function l(s){var u=R7(e,a),f={"data-index":r,"fill-rule":a.fillrule,d:u},c=a.opacity,v=a.fillcolor,d=a.line.width?a.line.color:"rgba(0,0,0,0)",p=a.line.width,m=a.line.dash;!p&&a.editable===!0&&(p=5,m="solid");var y=u[u.length-1]!=="Z",b=gy(e)&&a.editable&&e._fullLayout._activeShapeIndex===r;b&&(v=y?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,c=e._fullLayout.activeshape.opacity);var T=s.append("g").classed("shape-group",!0).attr({"data-index":r}),w=T.append("path").attr(f).style("opacity",c).call(E7.stroke,d).call(E7.fill,v).call(yy.dashLine,m,p);gB(T,e,a),my(e,r,a,T);var x;if((b||e._context.edits.shapePosition)&&(x=q6e(e.layout,"shapes",a)),b){w.style({cursor:"move"});var _={element:w.node(),plotinfo:n,gd:e,editHelpers:x,hasText:a.label.text||a.label.texttemplate,isActiveShape:!0},k=k6e(u,e);S6e(k,w,_)}else e._context.edits.shapePosition?D6e(e,w,a,r,s,x):a.editable===!0&&w.style("pointer-events",y||E7.opacity(v)*c<=.5?"stroke":"all");w.node().addEventListener("click",function(){return E6e(e,w)}),L6e(e,w,n)}}function L6e(e,r,t){if(!(t!=null&&t.id))return;let a=r.node();function n(i){var s;let o=t.mainplotinfo||t,l=(s=o==null?void 0:o.draglayer)==null?void 0:s.select(".nsewdrag").node();return l?{clientX:i.clientX,clientY:i.clientY,target:l}:null}a.addEventListener("mousemove",i=>{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&cB.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&cB.click(e,o,t.id)}})}function gB(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=C6e(r,a,n);P7.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),yy.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");yy.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function C6e(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(v=>bf.getFromId(e,v)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(v){return v._offset}),c=u.map(function(v){return v._offset+v._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function D6e(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",v=i.modifyItem,d,p,m,y,b,T,w,x,_,k,M,q,C,E,P,R=M6e.select(r.node().parentNode),B=bf.getFromId(e,t.xref),I=bf.getRefType(t.xref),N=bf.getFromId(e,t.yref),H=bf.getRefType(t.yref),G=t.x0shift,Y=t.x1shift,j=t.y0shift,W=t.y1shift,V=function(Ee,qe){var Ue=oi.getDataToPixel(e,B,qe,!1,I);return Ue(Ee)},J=function(Ee,qe){var Ue=oi.getDataToPixel(e,N,qe,!0,H);return Ue(Ee)},re=oi.getPixelToData(e,B,!1,I),le=oi.getPixelToData(e,N,!0,H),ne=te(),$={element:ne.node(),gd:e,prepFn:oe,doneFn:Ae,clickFn:Pe},ce;fB.init($),ne.node().onmousemove=se;function te(){return f?ge():r}function ge(){var Ee=10,qe=Math.max(t.line.width,Ee),Ue=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ue.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":qe,"stroke-opacity":"0"});var Je={"fill-opacity":"0"},Ke=Math.max(qe/2,Ee);return Ue.append("circle").attr({"data-line-point":"start-point",cx:s?V(t.xanchor)+t.x0:V(t.x0,G),cy:u?J(t.yanchor)-t.y0:J(t.y0,j),r:Ke}).style(Je).classed("cursor-grab",!0),Ue.append("circle").attr({"data-line-point":"end-point",cx:s?V(t.xanchor)+t.x1:V(t.x1,Y),cy:u?J(t.yanchor)-t.y1:J(t.y1,W),r:Ke}).style(Je).classed("cursor-grab",!0),Ue}function se(Ee){if(py(e)){ce=null;return}if(f)Ee.target.tagName==="path"?ce="move":ce=Ee.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var qe=$.element.getBoundingClientRect(),Ue=qe.right-qe.left,Je=qe.bottom-qe.top,Ke=Ee.clientX-qe.left,De=Ee.clientY-qe.top,Be=!c&&Ue>o&&Je>l&&!Ee.shiftKey?fB.getCursor(Ke/Ue,1-De/Je):"move";vB(r,Be),ce=Be.split("-")[0]}}function oe(Ee){py(e)||(s&&(b=V(t.xanchor)),u&&(T=J(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:V(t.x0),p=u?t.y0:J(t.y0),m=s?t.x1:V(t.x1),y=u?t.y1:J(t.y1)),d<m?(_=d,C="x0",k=m,E="x1"):(_=m,C="x1",k=d,E="x0"),!u&&p<y||u&&p>y?(w=p,M="y0",x=y,q="y1"):(w=y,M="y1",x=p,q="y0"),se(Ee),Me(n,t),Se(r,t,e),$.moveFn=ce==="move"?me:Ce,$.altKey=Ee.altKey)}function Ae(){py(e)||(vB(r),Le(n),gB(r,e,t),pB.call("_guiRelayout",e,i.getUpdateObj()))}function Pe(){py(e)||Le(n)}function me(Ee,qe){if(t.type==="path"){var Ue=function(De){return De},Je=Ue,Ke=Ue;s?v("xanchor",t.xanchor=re(b+Ee)):(Je=function(Be){return re(V(Be)+Ee)},B&&B.type==="date"&&(Je=oi.encodeDate(Je))),u?v("yanchor",t.yanchor=le(T+qe)):(Ke=function(Be){return le(J(Be)+qe)},N&&N.type==="date"&&(Ke=oi.encodeDate(Ke))),v("path",t.path=hB(P,Je,Ke))}else s?v("xanchor",t.xanchor=re(b+Ee)):(v("x0",t.x0=re(d+Ee)),v("x1",t.x1=re(m+Ee))),u?v("yanchor",t.yanchor=le(T+qe)):(v("y0",t.y0=le(p+qe)),v("y1",t.y1=le(y+qe)));r.attr("d",R7(e,t)),Me(n,t),my(e,a,t,R)}function Ce(Ee,qe){if(c){var Ue=function(Xe){return Xe},Je=Ue,Ke=Ue;s?v("xanchor",t.xanchor=re(b+Ee)):(Je=function(Qe){return re(V(Qe)+Ee)},B&&B.type==="date"&&(Je=oi.encodeDate(Je))),u?v("yanchor",t.yanchor=le(T+qe)):(Ke=function(Qe){return le(J(Qe)+qe)},N&&N.type==="date"&&(Ke=oi.encodeDate(Ke))),v("path",t.path=hB(P,Je,Ke))}else if(f){if(ce==="resize-over-start-point"){var De=d+Ee,Be=u?p-qe:p+qe;v("x0",t.x0=s?De:re(De)),v("y0",t.y0=u?Be:le(Be))}else if(ce==="resize-over-end-point"){var er=m+Ee,ae=u?y-qe:y+qe;v("x1",t.x1=s?er:re(er)),v("y1",t.y1=u?ae:le(ae))}}else{var be=function(Xe){return ce.indexOf(Xe)!==-1},Ge=be("n"),sr=be("s"),vr=be("w"),ue=be("e"),xe=Ge?w+qe:w,Ie=sr?x+qe:x,We=vr?_+Ee:_,Oe=ue?k+Ee:k;u&&(Ge&&(xe=w-qe),sr&&(Ie=x-qe)),(!u&&Ie-xe>l||u&&xe-Ie>l)&&(v(M,t[M]=u?xe:le(xe)),v(q,t[q]=u?Ie:le(Ie))),Oe-We>o&&(v(C,t[C]=s?We:re(We)),v(E,t[E]=s?Oe:re(Oe)))}r.attr("d",R7(e,t)),Me(n,t),my(e,a,t,R)}function Me(Ee,qe){(s||u)&&Ue();function Ue(){var Je=qe.type!=="path",Ke=Ee.selectAll(".visual-cue").data([0]),De=1;Ke.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var Be=V(s?qe.xanchor:P7.midRange(Je?[qe.x0,qe.x1]:oi.extractPathCoords(qe.path,xf.paramIsX))),er=J(u?qe.yanchor:P7.midRange(Je?[qe.y0,qe.y1]:oi.extractPathCoords(qe.path,xf.paramIsY)));if(Be=oi.roundPositionForSharpStrokeRendering(Be,De),er=oi.roundPositionForSharpStrokeRendering(er,De),s&&u){var ae="M"+(Be-1-De)+","+(er-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ke.attr("d",ae)}else if(s){var be="M"+(Be-1-De)+","+(er-9-De)+"v18 h2 v-18 Z";Ke.attr("d",be)}else{var Ge="M"+(Be-9-De)+","+(er-1-De)+"h18 v2 h-18 Z";Ke.attr("d",Ge)}}}function Le(Ee){Ee.selectAll(".visual-cue").remove()}function Se(Ee,qe,Ue){var Je=qe.xref,Ke=qe.yref,De=bf.getFromId(Ue,Je),Be=bf.getFromId(Ue,Ke),er="";Je!=="paper"&&!De.autorange&&(er+=Je),Ke!=="paper"&&!Be.autorange&&(er+=Ke),yy.setClipUrl(Ee,er?"clip"+Ue._fullLayout._uid+er:null,Ue)}}function hB(e,r,t){return e.replace(xf.segmentRE,function(a){var n=0,i=a.charAt(0),o=xf.paramIsX[i],l=xf.paramIsY[i],s=xf.numParams[i],u=a.slice(1).replace(xf.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function E6e(e,r){if(gy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){dB(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=dB,F7(e)}}}function dB(e){if(gy(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(mB(e),delete e._fullLayout._activeShapeIndex,F7(e))}}function P6e(e){if(gy(e)){mB(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r<t.length){for(var a=[],n=0;n<t.length;n++)n!==r&&a.push(t[n]);return delete e._fullLayout._activeShapeIndex,pB.call("_guiRelayout",e,{shapes:a})}}}});var _B=z((r$e,xB)=>{"use strict";var g0=ke()._,R6e=function(e){return{DIALOG_TITLE:g0(e,"Share chart"),DIALOG_MESSAGE_CLOUD:g0(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:g0(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:g0(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:g0(e,"Cancel"),DIALOG_CONFIRM:g0(e,"Share")}};xB.exports=R6e});var AB=z((t$e,TB)=>{"use strict";var wB=Pr(),{dfltConfig:F6e}=As(),z6e=_B(),N6e=(e,r,t,a,n)=>{let i=z6e(e),o=r.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===F6e.plotlyServerURL){let s=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],v=f[2],d=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(v),s.append("span").text(d),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),v=c[0],d=c[4],p=o.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(v),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(d)}let l=o.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(i.DIALOG_CANCEL).on("click",n),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},I6e=(e,r,t)=>{let a=wB.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",o)},o=l=>{(l.key==="Escape"||l.keyCode===27)&&i()};document.addEventListener("keydown",o),n.on("click",()=>{wB.event.target===n.node()&&i()}),N6e(e,n,r,()=>{i(),t()},i)};TB.exports=I6e});var I7=z((a$e,DB)=>{"use strict";var ki=Ar(),B6e=_a(),kB=Ca(),lt=ny(),O6e=by().eraseActiveShape,H6e=AB(),b0=ke(),Jr=b0._,ot={};DB.exports=ot;ot.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Jr(e,"Download plot as a PNG"):Jr(e,"Download plot")},icon:lt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};b0.notifier(Jr(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),ki.call("downloadImage",e,t).then(function(a){b0.notifier(Jr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){b0.notifier(Jr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ot.downloadJson={name:"downloadJson",title:function(e){return Jr(e,"Download plot as JSON")},icon:lt.curlybraces,click:function(e){ki.call("downloadImage",e,{format:"full-json"}).then(function(r){b0.notifier(Jr(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){b0.notifier(Jr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ot.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Jr(e,"Share chart...")},icon:lt.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(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}H6e(e,r,function(){B6e.sendDataToCloud(e,r)})}};ot.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Jr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:lt.zoombox,click:Pn};ot.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Jr(e,"Pan")},attr:"dragmode",val:"pan",icon:lt.pan,click:Pn};ot.select2d={name:"select2d",_cat:"select",title:function(e){return Jr(e,"Box Select")},attr:"dragmode",val:"select",icon:lt.selectbox,click:Pn};ot.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Jr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:lt.lasso,click:Pn};ot.drawclosedpath={name:"drawclosedpath",title:function(e){return Jr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:lt.drawclosedpath,click:Pn};ot.drawopenpath={name:"drawopenpath",title:function(e){return Jr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:lt.drawopenpath,click:Pn};ot.drawline={name:"drawline",title:function(e){return Jr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:lt.drawline,click:Pn};ot.drawrect={name:"drawrect",title:function(e){return Jr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:lt.drawrect,click:Pn};ot.drawcircle={name:"drawcircle",title:function(e){return Jr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:lt.drawcircle,click:Pn};ot.eraseshape={name:"eraseshape",title:function(e){return Jr(e,"Erase active shape")},icon:lt.eraseshape,click:O6e};ot.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Jr(e,"Zoom in")},attr:"zoom",val:"in",icon:lt.zoom_plus,click:Pn};ot.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Jr(e,"Zoom out")},attr:"zoom",val:"out",icon:lt.zoom_minus,click:Pn};ot.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Jr(e,"Autoscale")},attr:"zoom",val:"auto",icon:lt.autoscale,click:Pn};ot.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Jr(e,"Reset axes")},attr:"zoom",val:"reset",icon:lt.home,click:Pn};ot.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Jr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:lt.tooltip_basic,gravity:"ne",click:Pn};ot.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Jr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:lt.tooltip_compare,gravity:"ne",click:Pn};function Pn(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=kB.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,m;for(f=0;f<l.length;f++)if(u=l[f],m=u.modebardisable==="none"||u.modebardisable.indexOf(n==="auto"||n==="reset"?"autoscale":"zoominout")===-1,m&&!u.fixedrange)if(p=u._name,n==="auto")o[p+".autorange"]=!0;else if(n==="reset")u._rangeInitial0===void 0&&u._rangeInitial1===void 0?o[p+".autorange"]=!0:u._rangeInitial0===void 0?(o[p+".autorange"]=u._autorangeInitial,o[p+".range"]=[null,u._rangeInitial1]):u._rangeInitial1===void 0?(o[p+".range"]=[u._rangeInitial0,null],o[p+".autorange"]=u._autorangeInitial):o[p+".range"]=[u._rangeInitial0,u._rangeInitial1],u._showSpikeInitial!==void 0&&(o[p+".showspikes"]=u._showSpikeInitial,s==="on"&&!u._showSpikeInitial&&(s="off"));else{var y=[u.r2l(u.range[0]),u.r2l(u.range[1])],b=[v*y[0]+d*y[1],v*y[1]+d*y[0]];o[p+".range[0]"]=u.l2r(b[0]),o[p+".range[1]"]=u.l2r(b[1])}}else a==="hovermode"&&(n==="x"||n==="y")&&(n=i._isHoriz?"y":"x",t.setAttribute("data-val",n)),o[a]=n;i._cartesianSpikesEnabled=s,ki.call("_guiRelayout",e,o)}ot.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return Jr(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:lt.zoombox,click:_y};ot.pan3d={name:"pan3d",_cat:"pan",title:function(e){return Jr(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:lt.pan,click:_y};ot.orbitRotation={name:"orbitRotation",title:function(e){return Jr(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:lt["3d_rotate"],click:_y};ot.tableRotation={name:"tableRotation",title:function(e){return Jr(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:lt["z-axis"],click:_y};function _y(e,r){for(var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout._subplots.gl3d||[],o={},l=a.split("."),s=0;s<i.length;s++)o[i[s]+"."+l[1]]=n;var u=n==="pan"?n:"zoom";o.dragmode=u,ki.call("_guiRelayout",e,o)}ot.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return Jr(e,"Reset camera to default")},attr:"resetDefault",icon:lt.home,click:z7};ot.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return Jr(e,"Reset camera to last save")},attr:"resetLastSave",icon:lt.movie,click:z7};function z7(e,r){for(var t=r.currentTarget,a=t.getAttribute("data-attr"),n=a==="resetLastSave",i=a==="resetDefault",o=e._fullLayout,l=o._subplots.gl3d||[],s={},u=0;u<l.length;u++){var f=l[u],c=f+".camera",v=f+".aspectratio",d=f+".aspectmode",p=o[f]._scene,m;n?(s[c+".up"]=p.viewInitial.up,s[c+".eye"]=p.viewInitial.eye,s[c+".center"]=p.viewInitial.center,m=!0):i&&(s[c+".up"]=null,s[c+".eye"]=null,s[c+".center"]=null,m=!0),m&&(s[v+".x"]=p.viewInitial.aspectratio.x,s[v+".y"]=p.viewInitial.aspectratio.y,s[v+".z"]=p.viewInitial.aspectratio.z,s[d]=p.viewInitial.aspectmode)}ki.call("_guiRelayout",e,s)}ot.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return Jr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:lt.tooltip_basic,gravity:"ne",click:U6e};function SB(e,r){var t=r.currentTarget,a=t._previousVal,n=e._fullLayout,i=n._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},s={};if(a)s=a,t._previousVal=null;else{for(var u=0;u<i.length;u++){var f=i[u],c=n[f],v=f+".hovermode";l[v]=c.hovermode,s[v]=!1;for(var d=0;d<3;d++){var p=o[d],m=f+"."+p+".showspikes";s[m]=!1,l[m]=c[p].showspikes}}t._previousVal=l}return s}function U6e(e,r){var t=SB(e,r);ki.call("_guiRelayout",e,t)}ot.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return Jr(e,"Zoom in")},attr:"zoom",val:"in",icon:lt.zoom_plus,click:N7};ot.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return Jr(e,"Zoom out")},attr:"zoom",val:"out",icon:lt.zoom_minus,click:N7};ot.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return Jr(e,"Reset")},attr:"reset",val:null,icon:lt.autoscale,click:N7};ot.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return Jr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:lt.tooltip_basic,gravity:"ne",click:LB};var MB=2;function N7(e,r){var l;let t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o=i._subplots.geo||[];for(let s of o){let u=i[s],f=u._subplot;if(a==="zoom"){let c=f.projection,v=c.scale()/f.fitScale,[d,p]=c.rotate().map(k=>-k),[m,y]=c.invert(f.midPt),{minscale:b}=u.projection,T=(l=u.projection.maxscale)!=null?l:1/0,w=Math.min(b,T),x=Math.max(b,T),_=n==="in"?MB*v:1/MB*v;_>x?_=x:_<w&&(_=w),_!==v&&ki.call("_guiRelayout",e,{[s+".projection.scale"]:_,[s+".projection.rotation.lon"]:d,[s+".projection.rotation.lat"]:p,[s+".center.lon"]:m,[s+".center.lat"]:y,[s+".fitbounds"]:!1})}}a==="reset"&&xy(e,"geo")}ot.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return Jr(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:lt.tooltip_basic,gravity:"ne",click:LB};function qB(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function LB(e){var r=qB(e);ki.call("_guiRelayout",e,"hovermode",r)}ot.resetViewSankey={name:"resetSankeyGroup",title:function(e){return Jr(e,"Reset view")},icon:lt.home,click:function(e){for(var r={"node.groups":[],"node.x":[],"node.y":[]},t=0;t<e._fullData.length;t++){var a=e._fullData[t]._viewInitial;r["node.groups"].push(a.node.groups.slice()),r["node.x"].push(a.node.x.slice()),r["node.y"].push(a.node.y.slice())}ki.call("restyle",e,r)}};ot.toggleHover={name:"toggleHover",title:function(e){return Jr(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:lt.tooltip_basic,gravity:"ne",click:function(e,r){var t=SB(e,r);t.hovermode=qB(e),ki.call("_guiRelayout",e,t)}};ot.resetViews={name:"resetViews",title:function(e){return Jr(e,"Reset views")},icon:lt.home,click:function(e,r){var t=r.currentTarget;t.setAttribute("data-attr","zoom"),t.setAttribute("data-val","reset"),Pn(e,r),t.setAttribute("data-attr","resetLastSave"),z7(e,r),xy(e,"geo"),xy(e,"map")}};ot.toggleSpikelines={name:"toggleSpikelines",title:function(e){return Jr(e,"Toggle Spike Lines")},icon:lt.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var r=e._fullLayout,t=r._cartesianSpikesEnabled;r._cartesianSpikesEnabled=t==="on"?"off":"on",ki.call("_guiRelayout",e,G6e(e))}};function G6e(e){for(var r=e._fullLayout,t=r._cartesianSpikesEnabled==="on",a=kB.list(e,null,!0),n={},i=0;i<a.length;i++){var o=a[i];n[o._name+".showspikes"]=t?!0:o._showSpikeInitial}return n}ot.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return Jr(e,"Reset view")},attr:"reset",icon:lt.home,click:function(e){xy(e,"map")}};ot.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return Jr(e,"Zoom in")},attr:"zoom",val:"in",icon:lt.zoom_plus,click:CB};ot.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return Jr(e,"Zoom out")},attr:"zoom",val:"out",icon:lt.zoom_minus,click:CB};function CB(e,r){Y6e(e,r,"map")}function Y6e(e,r,t){for(var a=r.currentTarget,n=a.getAttribute("data-val"),i=e._fullLayout,o=i._subplots[t]||[],l=1.05,s={},u=0;u<o.length;u++){var f=o[u],c=i[f].zoom,v=n==="in"?l*c:c/l;s[f+".zoom"]=v}ki.call("_guiRelayout",e,s)}function xy(e,r){for(var t=e._fullLayout,a=t._subplots[r]||[],n={},i=0;i<a.length;i++)for(var o=a[i],l=t[o]._subplot,s=l.viewInitial,u=Object.keys(s),f=0;f<u.length;f++){var c=u[f];n[o+"."+c]=s[c]}ki.call("_guiRelayout",e,n)}});var B7=z((n$e,FB)=>{"use strict";var EB=I7(),V6e=Object.keys(EB),PB=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],RB=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(PB,["downloadJson"]),x0=[],j6e=function(e){if(RB.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();x0.indexOf(r)===-1&&x0.push(r),x0.indexOf(t)===-1&&x0.push(t)}};V6e.forEach(function(e){j6e(EB[e])});x0.sort();FB.exports={DRAW_MODES:PB,backButtons:RB,foreButtons:x0}});var H7={};Dt(H7,{default:()=>X6e});var O7,W6e,X6e,U7=Ct(()=>{"use strict";O7=wc(B7()),W6e={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 *${O7.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 *${O7.default.foreButtons.join("*, *")}*.`].join(" ")}},X6e=W6e});var NB=z((i$e,zB)=>{"use strict";var Z6e=ke(),td=qr(),$6e=Pt(),J6e=(U7(),Ne(H7)).default;zB.exports=function(r,t){var a=r.modebar||{},n=$6e.newContainer(t,"modebar");function i(l,s){return Z6e.coerce(a,n,J6e,l,s)}i("orientation"),i("bgcolor",td.addOpacity(t.paper_bgcolor,.5));var o=td.contrast(td.rgb(t.modebar.bgcolor));i("color",td.addOpacity(o,.3)),i("activecolor",td.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var HB=z((o$e,OB)=>{"use strict";var G7=Pr(),K6e=Br(),wy=ke(),IB=ny(),Q6e=Jv().version,e7e=new DOMParser;function BB(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var wl=BB.prototype;wl.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),wy.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};wl.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};wl.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};wl.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="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&&G7.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||IB.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};wl.createIcon=function(e){var r=K6e(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=e7e.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};wl.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=G7.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:wy.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};wl.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 a=0;a<e[t].length;a++)if(e[t][a].name!==r[t][a].name)return!1}return!0};function r7e(e){return e+" (v"+Q6e+")"}wl.getLogo=function(){var e=this.createGroup(),r=document.createElement("a");return r.href="https://plotly.com/",r.target="_blank",r.setAttribute("data-title",r7e(wy._(this.graphInfo,"Produced with Plotly.js"))),r.className="modebar-btn plotlyjsicon modebar-btn--logo",r.appendChild(this.createIcon(IB.newplotlylogo)),e.appendChild(r),e};wl.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};wl.destroy=function(){wy.removeElement(this.container.querySelector(".modebar"))};function t7e(e,r){var t=e._fullLayout,a=new BB({graphInfo:e,container:t._modebardiv.node(),buttons:r});return t._privateplot&&G7.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}OB.exports=t7e});var YB=z((l$e,GB)=>{"use strict";var a7e=Ca(),UB=ii(),Y7=Ar(),n7e=No().isUnifiedHover,i7e=HB(),Ty=I7(),o7e=B7().DRAW_MODES,l7e=ke().extendDeep;GB.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=h7e(i):!a.displayModeBar&&a.watermark?o=[]:o=s7e(r),n?n.update(r,o):t._modeBar=i7e(r,o)};function s7e(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(Y,j){if(typeof j=="string"){if(j.toLowerCase()===Y.toLowerCase())return!0}else{var W=j.name,V=j._cat||j.name;if(W===Y||V===Y.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(Y){for(var j=0;j<a.modeBarButtonsToRemove.length;j++)if(n(Y,a.modeBarButtonsToRemove[j]))return!1;return!0})),s=a.modeBarButtonsToRemove.concat(o.filter(function(Y){for(var j=0;j<a.modeBarButtonsToAdd.length;j++)if(n(Y,a.modeBarButtonsToAdd[j]))return!1;return!0})),u=r._has("cartesian"),f=r._has("gl3d"),c=r._has("geo"),v=r._has("pie"),d=r._has("funnelarea"),p=r._has("ternary"),m=r._has("map"),y=r._has("polar"),b=r._has("smith"),T=r._has("sankey"),w=u7e(r),x=n7e(r.hovermode),_=[];function k(Y){if(Y.length){for(var j=[],W=0;W<Y.length;W++){for(var V=Y[W],J=Ty[V],re=J.name.toLowerCase(),le=(J._cat||J.name).toLowerCase(),ne=!1,$=0;$<s.length;$++){var ce=s[$].toLowerCase();if(ce===re||ce===le){ne=!0;break}}ne||j.push(Ty[V])}_.push(j)}}var M=!1,q=[],C=[],E=[],P=[];(u||v||d||p)+c+f+m+y+b>1?(C=["toggleHover"],E=["resetViews"]):c?(q=["zoomInGeo","zoomOutGeo"],C=["hoverClosestGeo"],E=["resetGeo"]):f?(C=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(q=["zoomInMap","zoomOutMap"],C=["toggleHover"],E=["resetViewMap"]):v?C=["hoverClosestPie"]:T?(C=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):C=["toggleHover"],u&&C.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(c7e(t)||x)&&(C=[]),u&&!w&&(q=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),f?P=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!w||p?P=["zoom2d","pan2d"]:m||c?P=["pan2d"]:y&&(P=["zoom2d"]),f7e(t)&&P.push("select2d","lasso2d");var R=[],B=function(Y){R.indexOf(Y)===-1&&C.indexOf(Y)!==-1&&R.push(Y)};if(Array.isArray(l)){for(var I=[],N=0;N<l.length;N++){var H=l[N];typeof H=="string"?(H=H.toLowerCase(),o7e.indexOf(H)!==-1?(r._has("map")||r._has("cartesian"))&&P.push(H):H==="togglespikelines"?B("toggleSpikelines"):H==="togglehover"?B("toggleHover"):H==="hovercompare"?B("hoverCompareCartesian"):H==="hoverclosest"?(B("hoverClosestCartesian"),B("hoverClosestGeo"),B("hoverClosest3d"),B("hoverClosestPie")):H==="v1hovermode"?(B("hoverClosestCartesian"),B("hoverCompareCartesian"),B("hoverClosestGeo"),B("hoverClosest3d"),B("hoverClosestPie")):H==="downloadjson"&&(M=!0)):I.push(H)}l=I}var G=["toImage"];return M&&G.push("downloadJson"),a.showSendToCloud&&G.push("sendChartToCloud"),k(G),k(P),k(q.concat(E)),k(R),v7e(_,l)}function u7e(e){for(var r=a7e.list({_fullLayout:e},null,!0),t=0;t<r.length;t++){var a=r[t].modebardisable;if(!r[t].fixedrange&&a!=="autoscale+zoominout"&&a!=="zoominout+autoscale")return!1}return!0}function f7e(e){for(var r=!1,t=0;t<e.length&&!r;t++){var a=e[t];!a._module||!a._module.selectPoints||(Y7.traceIs(a,"scatter-like")&&a.type!=="quiver"?(UB.hasMarkers(a)||UB.hasText(a))&&(r=!0):Y7.traceIs(a,"box-violin")?(a.boxpoints==="all"||a.points==="all")&&(r=!0):r=!0)}return r}function c7e(e){for(var r=0;r<e.length;r++)if(!Y7.traceIs(e[r],"noHover"))return!1;return!0}function v7e(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 h7e(e){for(var r=l7e([],e),t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;n++){var i=a[n];if(typeof i=="string")if(Ty[i]!==void 0)r[t][n]=Ty[i];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return r}});var V7=z((s$e,VB)=>{"use strict";VB.exports={moduleType:"component",name:"modebar",layoutAttributes:(U7(),Ne(H7)).default,supplyLayoutDefaults:NB(),manage:YB()}});var j7=z((u$e,jB)=>{"use strict";var d7e=(un(),Ne(sn)).FROM_BL;jB.exports=function(r,t,a){a===void 0&&(a=d7e[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var wf=z(ad=>{"use strict";var _f=ke(),W7=Bh(),Oo=Ca().id2name,p7e=ji(),WB=j7(),m7e=l0(),y7e=(Kt(),Ne(aa)).ALMOST_EQUAL,g7e=(un(),Ne(sn)).FROM_BL;ad.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,v,d,p;for(l=0;l<a.length;l++)f=Oo(a[l]),c=e[f],v=r[f],b7e(c,v,{axIds:a,layoutOut:r,hasImage:n[f]});function m(q,C){for(l=0;l<q.length;l++){s=q[l];for(u in s)r[Oo(u)][C]=s}}for(m(o,"_matchGroup"),l=0;l<i.length;l++){s=i[l];for(u in s)if(v=r[Oo(u)],v.fixedrange){for(var y in s){var b=Oo(y);(e[b]||{}).fixedrange===!1&&_f.warn("fixedrange was specified as false for axis "+b+" but was overridden because another axis in its constraint group has fixedrange true"),r[b].fixedrange=!0}break}}for(l=0;l<i.length;){s=i[l];for(u in s){v=r[Oo(u)],v._matchGroup&&Object.keys(v._matchGroup).length===Object.keys(s).length&&(i.splice(l,1),l--);break}l++}m(i,"_constraintGroup");var T=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],w=!1,x=!1;function _(){p=v[d],d==="rangebreaks"&&(x=v._hasDayOfWeekBreaks)}for(l=0;l<o.length;l++){s=o[l];for(var k=0;k<T.length;k++){d=T[k],p=null;var M;for(u in s)if(f=Oo(u),c=e[f],v=r[f],d in v){if(!v.matches&&(M=v,d in c)){_();break}p===null&&d in c&&_()}if(d==="range"&&p&&c.range&&c.range.length===2&&c.range[0]!==null&&c.range[1]!==null&&(w=!0),d==="autorange"&&p===null&&w&&(p=!1),p===null&&d in M&&(p=M[d]),p!==null)for(u in s)v=r[Oo(u)],v[d]=d==="range"?p.slice():p,d==="rangebreaks"&&(v._hasDayOfWeekBreaks=x,m7e(v,r))}}};function b7e(e,r,t){var a=t.axIds,n=t.layoutOut,i=t.hasImage,o=n._axisConstraintGroups,l=n._axisMatchGroups,s=r._id,u=s.charAt(0),f=((n._splomAxes||{})[u]||{})[s]||{},c=r._id,v=c.charAt(0)==="x";r._matchGroup=null,r._constraintGroup=null;function d(R,B){return _f.coerce(e,r,p7e,R,B)}d("constrain",i?"domain":"range"),_f.coerce(e,r,{constraintoward:{valType:"enumerated",values:v?["left","center","right"]:["bottom","middle","top"],dflt:v?"center":"middle"}},"constraintoward");var p=r.type,m,y,b=[];for(m=0;m<a.length;m++)if(y=a[m],y!==c){var T=n[Oo(y)];T.type===p&&b.push(y)}var w=$B(o,c);if(w){var x=[];for(m=0;m<b.length;m++)y=b[m],w[y]||x.push(y);b=x}var _=b.length,k,M;_&&(e.matches||f.matches)&&(k=_f.coerce(e,r,{matches:{valType:"enumerated",values:b,dflt:b.indexOf(f.matches)!==-1?f.matches:void 0}},"matches"));var q=i&&!v?r.anchor:void 0;if(_&&!k&&(e.scaleanchor||q)&&(M=_f.coerce(e,r,{scaleanchor:{valType:"enumerated",values:b.concat([!1])}},"scaleanchor",q)),k){r._matchGroup=X7(l,c,k,1);var C=n[Oo(k)],E=XB(n,r)/XB(n,C);v!==(k.charAt(0)==="x")&&(E=(v?"x":"y")+E),X7(o,c,k,E)}else e.matches&&a.indexOf(e.matches)!==-1&&_f.warn("ignored "+r._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(M){var P=d("scaleratio");P||(P=r.scaleratio=1),X7(o,c,M,P)}else e.scaleanchor&&a.indexOf(e.scaleanchor)!==-1&&_f.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 XB(e,r){var t=r.domain;return t||(t=e[Oo(r.overlaying)].domain),t[1]-t[0]}function $B(e,r){for(var t=0;t<e.length;t++)if(e[t][r])return e[t];return null}function X7(e,r,t,a){var n,i,o,l,s,u=$B(e,r);u===null?(u={},u[r]=1,s=e.length,e.push(u)):s=e.indexOf(u);var f=Object.keys(u);for(n=0;n<e.length;n++)if(o=e[n],n!==s&&o[t]){var c=o[t];for(i=0;i<f.length;i++)l=f[i],o[l]=Z7(c,Z7(a,u[l]));e.splice(s,1);return}if(a!==1)for(i=0;i<f.length;i++){var v=f[i];u[v]=Z7(a,u[v])}u[t]=1}function Z7(e,r){var t="",a="",n,i;typeof e=="string"&&(t=e.match(/^[xy]*/)[0],n=t.length,e=+e.slice(n)),typeof r=="string"&&(a=r.match(/^[xy]*/)[0],i=a.length,r=+r.slice(i));var o=e*r;return!n&&!i?o:!n||!i||t.charAt(0)===a.charAt(0)?t+a+e*r:n===i?o:(n>i?t.slice(i):a.slice(n))+o}function x7e(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;o<i.length;o++){var l=i[o],s=e[l];if(typeof s=="string"){var u=s.match(/^[xy]*/)[0],f=u.length;s=+s.slice(f);for(var c=u.charAt(0)==="y"?a:1/a,v=0;v<f;v++)s*=c}n[l]=s}return n}ad.enforce=function(r){var t=r._fullLayout,a=t._axisConstraintGroups||[],n,i,o,l,s,u,f,c;for(n=0;n<a.length;n++){o=x7e(a[n],t);var v=Object.keys(o),d=1/0,p=0,m=1/0,y={},b={},T=!1;for(i=0;i<v.length;i++)l=v[i],b[l]=s=t[Oo(l)],s._inputDomain?s.domain=s._inputDomain.slice():s._inputDomain=s.domain.slice(),s._inputRange||(s._inputRange=s.range.slice()),s.setScale(),y[l]=u=Math.abs(s._m)/o[l],d=Math.min(d,u),(s.constrain==="domain"||!s._constraintShrinkable)&&(m=Math.min(m,u)),delete s._constraintShrinkable,p=Math.max(p,u),s.constrain==="domain"&&(T=!0);if(!(d>y7e*p&&!T)){for(i=0;i<v.length;i++)if(l=v[i],u=y[l],s=b[l],f=s.constrain,u!==m||f==="domain")if(c=u/m,f==="range")WB(s,c);else{var w=s._inputDomain,x=(s.domain[1]-s.domain[0])/(w[1]-w[0]),_=(s.r2l(s.range[1])-s.r2l(s.range[0]))/(s.r2l(s._inputRange[1])-s.r2l(s._inputRange[0]));if(c/=x,c*_<1){s.domain=s._input.domain=w.slice(),WB(s,c);continue}if(_<1&&(s.range=s._input.range=s._inputRange.slice(),c*=_),s.autorange){var k=s.r2l(s.range[0]),M=s.r2l(s.range[1]),q=(k+M)/2,C=q,E=q,P=Math.abs(M-q),R=q-P*c*1.0001,B=q+P*c*1.0001,I=W7.makePadFn(t,s,0),N=W7.makePadFn(t,s,1);ZB(s,c,t);var H=Math.abs(s._m),G=W7.concatExtremes(r,s),Y=G.min,j=G.max,W,V;for(V=0;V<Y.length;V++)W=Y[V].val-I(Y[V])/H,W>R&&W<C&&(C=W);for(V=0;V<j.length;V++)W=j[V].val+N(j[V])/H,W<B&&W>E&&(E=W);var J=(E-C)/(2*P);c/=J,C=s.l2r(C),E=s.l2r(E),s.range=s._input.range=k<M?[C,E]:[E,C]}ZB(s,c,t)}}}};ad.getAxisGroup=function(r,t){for(var a=r._axisMatchGroups,n=0;n<a.length;n++){var i=a[n];if(i[t])return"g"+n}return t};ad.clean=function(r,t){if(t._inputDomain){for(var a=!1,n=t._id,i=r._fullLayout._axisConstraintGroups,o=0;o<i.length;o++)if(i[o][n]){a=!0;break}(!a||t.constrain!=="domain")&&(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}};function _7e(e,r){let t=e.domainpad;if(!t)return 0;let a=r._size;return e._id.charAt(0)==="y"?((t.top||0)+(t.bottom||0))/a.h:((t.left||0)+(t.right||0))/a.w}function ZB(e,r,t){var a=e._inputDomain,n=g7e[e.constraintoward],i=a[0]+(a[1]-a[0])*n;let o=r,l=_7e(e,t);if(l>0){let s=a[1]-a[0],u=s-l;u>0&&(o=s/(u/r+l))}e.domain=e._input.domain=[i+(a[0]-i)/o,i+(a[1]-i)/o],e.setScale()}});var ky=z(Wa=>{"use strict";var My=Pr(),Rn=Ar(),Si=_a(),$i=ke(),$7=Da(),J7=ay(),nd=qr(),_0=et(),JB=o0(),tO=V7(),id=jr(),es=(un(),Ne(sn)),aO=wf(),w7e=aO.enforce,T7e=aO.clean,KB=Bh().doAutoRange,nO="start",A7e="middle",iO="end",M7e=(Ha(),Ne(Oa)).zindexSeparator;Wa.layoutStyles=function(e){return $i.syncOrAsync([Si.doAutoMargin,S7e],e)};function k7e(e,r,t){for(var a=0;a<t.length;a++){var n=t[a][0],i=t[a][1];if(!(n[0]>=e[1]||n[1]<=e[0])&&i[0]<r[1]&&i[1]>r[0])return!0}return!1}function S7e(e){var r=e._fullLayout,t=r._size,a=t.p,n=id.list(e,"",!0),i,o,l,s,u,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(_0.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Wa.drawMainTitle(e),tO.manage(e),!r._has("cartesian"))return Si.previousPromises(e);function c(oe,Ae,Pe){var me=oe._lw/2;if(oe._id.charAt(0)==="x"){if(Ae){if(Pe==="top")return Ae._offset-a-me}else return t.t+t.h*(1-(oe.position||0))+me%1;return Ae._offset+Ae._length+a+me}if(Ae){if(Pe==="right")return Ae._offset+Ae._length+a+me}else return t.l+t.w*(oe.position||0)+me%1;return Ae._offset-a-me}for(i=0;i<n.length;i++){s=n[i];var v=s._anchorAxis;s._linepositions={},s._lw=_0.crispRound(e,s.linewidth,1),s._mainLinePosition=c(s,v,s.side),s._mainMirrorPosition=s.mirror&&v?c(s,v,es.OPPOSITE_SIDE[s.side]):null}var d=[],p=[],m=[],y=nd.opacity(r.paper_bgcolor)===1&&nd.opacity(r.plot_bgcolor)===1&&r.paper_bgcolor===r.plot_bgcolor;for(o in r._plots)if(l=r._plots[o],l.mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var b=l.xaxis.domain,T=l.yaxis.domain,w=l.plotgroup;if(k7e(b,T,m)&&o.indexOf(M7e)===-1){var x=w.node(),_=l.bg=$i.ensureSingle(w,"rect","bg");x.insertBefore(_.node(),x.childNodes[0]),p.push(o)}else w.select("rect.bg").remove(),m.push([b,T]),y||(d.push(o),p.push(o))}var k=r._bgLayer.selectAll(".bg").data(d);for(k.enter().append("rect").classed("bg",!0),k.exit().remove(),k.each(function(oe){r._plots[oe].bg=My.select(this)}),i=0;i<p.length;i++)l=r._plots[p[i]],u=l.xaxis,f=l.yaxis,l.bg&&u._offset!==void 0&&f._offset!==void 0&&l.bg.call(_0.setRect,u._offset-a,f._offset-a,u._length+2*a,f._length+2*a).call(nd.fill,r.plot_bgcolor).style("stroke-width",0);if(!r._hasOnlyLargeSploms)for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var M=l.clipId="clip"+r._uid+o+"plot",q=$i.ensureSingleById(r._clips,"clipPath",M,function(oe){oe.classed("plotclip",!0).append("rect")});l.clipRect=q.select("rect").attr({width:u._length,height:f._length}),_0.setTranslate(l.plot,u._offset,f._offset);var C,E;l._hasClipOnAxisFalse?(C=null,E=M):(C=M,E=null),_0.setClipUrl(l.plot,C,e),l.layerClipId=E}var P,R,B,I,N,H,G,Y,j,W,V,J,re;function le(oe){return"M"+P+","+oe+"H"+R}function ne(oe){return"M"+u._offset+","+oe+"h"+u._length}function $(oe){return"M"+oe+","+Y+"V"+G}function ce(oe){return f._shift!==void 0&&(oe+=f._shift),"M"+oe+","+f._offset+"v"+f._length}function te(oe,Ae,Pe){if(!oe.showline||o!==oe._mainSubplot)return"";if(!oe._anchorAxis)return Pe(oe._mainLinePosition);var me=Ae(oe._mainLinePosition);return oe.mirror&&(me+=Ae(oe._mainMirrorPosition)),me}for(o in r._plots){l=r._plots[o],u=l.xaxis,f=l.yaxis;var ge="M0,0";QB(u,o)&&(N=Ay(u,"left",f,n),P=u._offset-(N?a+N:0),H=Ay(u,"right",f,n),R=u._offset+u._length+(H?a+H:0),B=c(u,f,"bottom"),I=c(u,f,"top"),re=!u._anchorAxis||o!==u._mainSubplot,re&&(u.mirror==="allticks"||u.mirror==="all")&&(u._linepositions[o]=[B,I]),ge=te(u,le,ne),re&&u.showline&&(u.mirror==="all"||u.mirror==="allticks")&&(ge+=le(B)+le(I)),l.xlines.style("stroke-width",u._lw+"px").call(nd.stroke,u.showline?u.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",ge);var se="M0,0";QB(f,o)&&(V=Ay(f,"bottom",u,n),G=f._offset+f._length+(V?a:0),J=Ay(f,"top",u,n),Y=f._offset-(J?a:0),j=c(f,u,"left"),W=c(f,u,"right"),re=!f._anchorAxis||o!==f._mainSubplot,re&&(f.mirror==="allticks"||f.mirror==="all")&&(f._linepositions[o]=[j,W]),se=te(f,$,ce),re&&f.showline&&(f.mirror==="all"||f.mirror==="allticks")&&(se+=$(j)+$(W)),l.ylines.style("stroke-width",f._lw+"px").call(nd.stroke,f.showline?f.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",se)}return id.makeClipPaths(e),Si.previousPromises(e)}function QB(e,r){return(e.ticks||e.showline)&&(r===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function eO(e,r,t){if(!t.showline||!t._lw)return!1;if(t.mirror==="all"||t.mirror==="allticks")return!0;var a=t._anchorAxis;if(!a)return!1;var n=es.FROM_BL[r];return t.side===r?a.domain[n]===e.domain[n]:t.mirror&&a.domain[1-n]===e.domain[1-n]}function Ay(e,r,t,a){if(eO(e,r,t))return t._lw;for(var n=0;n<a.length;n++){var i=a[n];if(i._mainAxis===t._mainAxis&&eO(e,r,i))return i._lw}return 0}Wa.drawMainTitle=function(e){var r=e._fullLayout.title,t=e._fullLayout,a=R7e(t),n=F7e(t),i=P7e(t,n),o=E7e(t,a);if(JB.draw(e,"gtitle",{propContainer:t,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:t._dfltTitle.plot,subtitlePlaceholder:t._dfltTitle.subtitle,attributes:{x:o,y:i,"text-anchor":a,dy:n}}),r.text&&r.automargin){var l=My.select(e).selectAll(".gtitle"),s=_0.bBox(My.select(e).selectAll(".g-gtitle").node()).height,u=C7e(e,r,s);if(u>0){D7e(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:rO(r.yanchor)}).call($7.positionText,o,i);var f=(r.text.match($7.BR_TAG_ALL)||[]).length;if(f){var c=es.LINE_SPACING*f+es.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var v=My.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,m=p+JB.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:m,"text-anchor":a,dy:rO(r.yanchor)}).call($7.positionText,o,m)}}}};function q7e(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=$i.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return $i.isTopAnchor(r)&&t==="t"||$i.isBottomAnchor(r)&&t==="b"?!1:l<n}function L7e(e,r,t,a,n){var i=0;return t==="middle"&&(i+=n/2),e==="t"?(t==="top"&&(i+=n),i+=a-r*a):(t==="bottom"&&(i+=n),i+=r*a),i}function C7e(e,r,t){var a=r.y,n=r.yanchor,i=a>.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=L7e(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function D7e(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&q7e(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Si.allowAutoMargin(e,n),Si.autoMargin(e,n,l)}function E7e(e,r){var t=e.title,a=e._size,n=0;return r===nO?n=t.pad.l:r===iO&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function P7e(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===es.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function rO(e){return e==="top"?es.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":es.MID_SHIFT+"em"}function R7e(e){var r=e.title,t=A7e;return $i.isRightAnchor(r)?t=iO:$i.isLeftAnchor(r)&&(t=nO),t}function F7e(e){var r=e.title,t="0em";return $i.isTopAnchor(r)?t=es.CAP_SHIFT+"em":$i.isMiddleAnchor(r)&&(t=es.MID_SHIFT+"em"),t}Wa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a<r.length;a++){var n=r[a],i=n[0]||{},o=i.trace||{},l=o._module||{},s=l.arraysToCalcdata;s&&s(n,o);var u=l.editStyle;u&&t.push({fn:u,cd0:i})}if(t.length){for(a=0;a<t.length;a++){var f=t[a];f.fn(e,f.cd0)}J7(e),Wa.redrawReglTraces(e)}return Si.style(e),Rn.getComponentMethod("legend","draw")(e),Si.previousPromises(e)};Wa.doColorBars=function(e){return Rn.getComponentMethod("colorbar","draw")(e),Si.previousPromises(e)};Wa.layoutReplot=function(e){var r=e.layout;return e.layout=void 0,Rn.call("_doPlot",e,"",r)};Wa.doLegend=function(e){return Rn.getComponentMethod("legend","draw")(e),Si.previousPromises(e)};Wa.doTicksRelayout=function(e){var r=id.draw(e,"redraw");return e._fullLayout._hasOnlyLargeSploms&&(Rn.subplotsRegistry.splom.updateGrid(e),J7(e),Wa.redrawReglTraces(e)),Wa.drawMainTitle(e),Promise.resolve(r).then(function(){return Si.previousPromises(e)})};Wa.doModeBar=function(e){var r=e._fullLayout;tO.manage(e);for(var t=0;t<r._basePlotModules.length;t++){var a=r._basePlotModules[t].updateFx;a&&a(e)}return Si.previousPromises(e)};Wa.doCamera=function(e){for(var r=e._fullLayout,t=r._subplots.gl3d,a=0;a<t.length;a++){var n=r[t[a]],i=n._scene;i.setViewport(n)}};Wa.drawData=function(e){var r=e._fullLayout;J7(e);for(var t=r._basePlotModules,a=0;a<t.length;a++)t[a].plot(e);return Wa.redrawReglTraces(e),Si.style(e),Rn.getComponentMethod("selections","draw")(e),Rn.getComponentMethod("shapes","draw")(e),Rn.getComponentMethod("annotations","draw")(e),Rn.getComponentMethod("images","draw")(e),r._replotting=!1,Si.previousPromises(e)};Wa.redrawReglTraces=function(e){var r=e._fullLayout;if(r._has("regl")){var t=e._fullData,a=[],n=[],i,o;for(r._hasOnlyLargeSploms&&r._splomGrid.draw(),i=0;i<t.length;i++){var l=t[i];l.visible===!0&&l._length!==0&&(l.type==="splom"?r._splomScenes[l.uid].draw():l.type==="scattergl"?$i.pushUnique(a,l.xaxis+l.yaxis):l.type==="scatterpolargl"&&$i.pushUnique(n,l.subplot))}for(i=0;i<a.length;i++)o=r._plots[a[i]],o._scene&&o._scene.draw();for(i=0;i<n.length;i++)o=r[n[i]]._subplot,o._scene&&o._scene.draw()}};Wa.doAutoRangeAndConstraints=function(e){for(var r=id.list(e,"",!0),t,a={},n=0;n<r.length;n++)if(t=r[n],!a[t._id]){a[t._id]=1,T7e(e,t),KB(e,t);var i=t._matchGroup;if(i)for(var o in i){var l=id.getFromId(e,o);KB(e,l,t.range),a[o]=1}}w7e(e)};Wa.finalDraw=function(e){Rn.getComponentMethod("rangeslider","draw")(e),Rn.getComponentMethod("rangeselector","draw")(e)};Wa.drawMarginPushers=function(e){Rn.getComponentMethod("legend","draw")(e),Rn.getComponentMethod("rangeselector","draw")(e),Rn.getComponentMethod("sliders","draw")(e),Rn.getComponentMethod("updatemenus","draw")(e),Rn.getComponentMethod("colorbar","draw")(e)}});var ew=z((v$e,fO)=>{"use strict";var z7e=js().readPaths,N7e=dy(),oO=zs().clearOutlineControllers,K7=qr(),lO=et(),I7e=Pt().arrayEditor,sO=Zs(),B7e=sO.getPathString;fO.exports={draw:Sy,drawOne:uO,activateLastSelection:U7e};function Sy(e){var r=e._fullLayout;oO(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n<r.selections.length;n++)uO(e,n)}function qy(e){return e._context.editSelection}function uO(e,r){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+r+'"]').remove();var t=sO.makeSelectionsOptionsAndPlotinfo(e,r),a=t.options,n=t.plotinfo;if(!a._input)return;i(e._fullLayout._selectionLayer);function i(o){var l=B7e(e,a),s={"data-index":r,"fill-rule":"evenodd",d:l},u=a.opacity,f="rgba(0,0,0,0)",c=a.line.color||K7.contrast(e._fullLayout.plot_bgcolor),v=a.line.width,d=a.line.dash;v||(v=5,d="solid");var p=qy(e)&&e._fullLayout._activeSelectionIndex===r;p&&(f=e._fullLayout.activeselection.fillcolor,u=e._fullLayout.activeselection.opacity);for(var m=[],y=1;y>=0;y--){var b=o.append("path").attr(s).style("opacity",y?.1:u).call(K7.stroke,c).call(K7.fill,f).call(lO.dashLine,y?"solid":d,y?4+v:v);if(O7e(b,e,a),p){var T=I7e(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=z7e(l,e);N7e(x,b,w)}else b.style("pointer-events",y?"all":"none");m[y]=b}var _=m[0],k=m[1];k.node().addEventListener("click",function(){return H7e(e,_)})}}function O7e(e,r,t){var a=t.xref+t.yref;lO.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function H7e(e,r){if(qy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){Q7(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=Q7,Sy(e)}}}function U7e(e){if(qy(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Q7,Sy(e)}}function Q7(e){if(qy(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(oO(e),delete e._fullLayout._activeSelectionIndex,Sy(e))}}});var vO=z((h$e,cO)=>{function G7e(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1,"  ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}cO.exports=G7e});var dO=z((d$e,hO)=>{function Y7e(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u<e)return!1;var f=o*o+s*s;return!(u-f>-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])<e},pointsSameY:function(t,a){return Math.abs(t[1]-a[1])<e},pointsSame:function(t,a){return r.pointsSameX(t,a)&&r.pointsSameY(t,a)},pointsCompare:function(t,a){return r.pointsSameX(t,a)?r.pointsSameY(t,a)?0:t[1]<a[1]?-1:1:t[0]<a[0]?-1:1},pointsCollinear:function(t,a,n){var i=t[0]-a[0],o=t[1]-a[1],l=a[0]-n[0],s=a[1]-n[1];return Math.abs(i*s-l*o)<e},linesIntersect:function(t,a,n,i){var o=a[0]-t[0],l=a[1]-t[1],s=i[0]-n[0],u=i[1]-n[1],f=o*u-l*s;if(Math.abs(f)<e)return!1;var c=t[0]-n[0],v=t[1]-n[1],d=(s*v-u*c)/f,p=(o*v-l*c)/f,m={alongA:0,alongB:0,pt:[t[0]+d*o,t[1]+d*l]};return d<=-e?m.alongA=-2:d<e?m.alongA=-1:d-1<=-e?m.alongA=0:d-1<e?m.alongA=1:m.alongA=2,p<=-e?m.alongB=-2:p<e?m.alongB=-1:p-1<=-e?m.alongB=0:p-1<e?m.alongB=1:m.alongB=2,m},pointInsideRegion:function(t,a){for(var n=t[0],i=t[1],o=a[a.length-1][0],l=a[a.length-1][1],s=!1,u=0;u<a.length;u++){var f=a[u][0],c=a[u][1];c-i>e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}hO.exports=Y7e});var mO=z((p$e,pO)=>{var V7e={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 a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};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}};pO.exports=V7e});var gO=z((m$e,yO)=>{var od=mO();function j7e(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=od.create();function o(p,m,y,b,T,w){var x=r.pointsCompare(m,T);return x!==0?x:r.pointsSame(y,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(y,b?T:w,b?w:T)?1:-1}function l(p,m){i.insertBefore(p,function(y){var b=o(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return b<0})}function s(p,m){var y=od.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return l(y,p.end),y}function u(p,m,y){var b=od.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=b,l(b,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,l(p.other,p.pt)}function v(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function d(p,m){var y=od.create();function b(N,H){var G=N.seg.start,Y=N.seg.end,j=H.seg.start,W=H.seg.end;return r.pointsCollinear(G,j,W)?r.pointsCollinear(Y,j,W)||r.pointAboveOrOnLine(Y,j,W)?1:-1:r.pointAboveOrOnLine(G,j,W)?1:-1}function T(N){return y.findTransition(function(H){var G=b(N,H.ev);return G>0})}function w(N,H){var G=N.seg,Y=H.seg,j=G.start,W=G.end,V=Y.start,J=Y.end;t&&t.checkIntersection(G,Y);var re=r.linesIntersect(j,W,V,J);if(re===!1){if(!r.pointsCollinear(j,W,V)||r.pointsSame(j,J)||r.pointsSame(W,V))return!1;var le=r.pointsSame(j,V),ne=r.pointsSame(W,J);if(le&&ne)return H;var $=!le&&r.pointBetween(j,V,J),ce=!ne&&r.pointBetween(W,V,J);if(le)return ce?v(H,W):v(N,J),H;$&&(ne||(ce?v(H,W):v(N,J)),v(H,j))}else re.alongA===0&&(re.alongB===-1?v(N,V):re.alongB===0?v(N,re.pt):re.alongB===1&&v(N,J)),re.alongB===0&&(re.alongA===-1?v(H,j):re.alongA===0?v(H,re.pt):re.alongA===1&&v(H,W));return!1}for(var x=[];!i.isEmpty();){var _=i.getHead();if(t&&t.vert(_.pt[0]),_.isStart){let N=function(){if(M){var H=w(_,M);if(H)return H}return q?w(_,q):!1};var I=N;t&&t.segmentNew(_.seg,_.primary);var k=T(_),M=k.before?k.before.ev:null,q=k.after?k.after.ev:null;t&&t.tempStatus(_.seg,M?M.seg:!1,q?q.seg:!1);var C=N();if(C){if(e){var E;_.seg.myFill.below===null?E=!0:E=_.seg.myFill.above!==_.seg.myFill.below,E&&(C.seg.myFill.above=!C.seg.myFill.above)}else C.seg.otherFill=_.seg.myFill;t&&t.segmentUpdate(C.seg),_.other.remove(),_.remove()}if(i.getHead()!==_){t&&t.rewind(_.seg);continue}if(e){var E;_.seg.myFill.below===null?E=!0:E=_.seg.myFill.above!==_.seg.myFill.below,q?_.seg.myFill.below=q.seg.myFill.above:_.seg.myFill.below=p,E?_.seg.myFill.above=!_.seg.myFill.below:_.seg.myFill.above=_.seg.myFill.below}else if(_.seg.otherFill===null){var P;q?_.primary===q.primary?P=q.seg.otherFill.above:P=q.seg.myFill.above:P=_.primary?m:p,_.seg.otherFill={above:P,below:P}}t&&t.status(_.seg,M?M.seg:!1,q?q.seg:!1),_.other.status=k.insert(od.node({ev:_}))}else{var R=_.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(R.prev)&&y.exists(R.next)&&w(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!_.primary){var B=_.seg.myFill;_.seg.myFill=_.seg.otherFill,_.seg.otherFill=B}x.push(_.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var m,y=p[p.length-1],b=0;b<p.length;b++){m=y,y=p[b];var T=r.pointsCompare(m,y);T!==0&&f(a(T<0?m:y,T<0?y:m),!0)}},calculate:function(p){return d(p,!1)}}:{calculate:function(p,m,y,b){return p.forEach(function(T){f(n(T.start,T.end,T),!0)}),y.forEach(function(T){f(n(T.start,T.end,T),!1)}),d(m,b)}}}yO.exports=j7e});var xO=z((y$e,bO)=>{function W7e(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(I,N,H){return f.index=I,f.matches_head=N,f.matches_pt1=H,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v<a.length;v++){var d=a[v],p=d[0],m=d[1],y=d[d.length-1],b=d[d.length-2];if(r.pointsSame(p,o)){if(c(v,!0,!0))break}else if(r.pointsSame(p,l)){if(c(v,!0,!1))break}else if(r.pointsSame(y,o)){if(c(v,!1,!0))break}else if(r.pointsSame(y,l)&&c(v,!1,!1))break}if(f===s){a.push([o,l]),t&&t.chainNew(o,l);return}if(f===u){t&&t.chainMatch(s.index);var T=s.index,w=s.matches_pt1?l:o,x=s.matches_head,d=a[T],_=x?d[0]:d[d.length-1],k=x?d[1]:d[d.length-2],M=x?d[d.length-1]:d[0],q=x?d[d.length-2]:d[1];if(r.pointsCollinear(k,_,w)&&(x?(t&&t.chainRemoveHead(s.index,w),d.shift()):(t&&t.chainRemoveTail(s.index,w),d.pop()),_=k),r.pointsSame(M,w)){a.splice(T,1),r.pointsCollinear(q,M,_)&&(x?(t&&t.chainRemoveTail(s.index,_),d.pop()):(t&&t.chainRemoveHead(s.index,_),d.shift())),t&&t.chainClose(s.index),n.push(d);return}x?(t&&t.chainAddHead(s.index,w),d.unshift(w)):(t&&t.chainAddTail(s.index,w),d.push(w));return}function C(I){t&&t.chainReverse(I),a[I].reverse()}function E(I,N){var H=a[I],G=a[N],Y=H[H.length-1],j=H[H.length-2],W=G[0],V=G[1];r.pointsCollinear(j,Y,W)&&(t&&t.chainRemoveTail(I,Y),H.pop(),Y=j),r.pointsCollinear(Y,W,V)&&(t&&t.chainRemoveHead(N,W),G.shift()),t&&t.chainJoin(I,N),a[I]=H.concat(G),a.splice(N,1)}var P=s.index,R=u.index;t&&t.chainConnect(P,R);var B=a[P].length<a[R].length;s.matches_head?u.matches_head?B?(C(P),E(P,R)):(C(R),E(R,P)):E(R,P):u.matches_head?E(P,R):B?(C(P),E(R,P)):(C(R),E(P,R))}),n}bO.exports=W7e});var wO=z((g$e,_O)=>{function ld(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var X7e={union:function(e,r){return ld(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return ld(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return ld(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return ld(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return ld(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};_O.exports=X7e});var AO=z((b$e,TO)=>{var Z7e={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s<i.length;s++)l=e.selectDifference(e.combine(l,o(i[s])));return l}if(r.type==="Polygon")return e.polygon(t(r.coordinates));if(r.type==="MultiPolygon"){for(var a=e.segments({inverted:!1,regions:[]}),n=0;n<r.coordinates.length;n++)a=e.selectUnion(e.combine(a,t(r.coordinates[n])));return e.polygon(a)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,r,t){t=e.polygon(e.segments(t));function a(d,p){return r.pointInsideRegion([(d[0][0]+d[1][0])*.5,(d[0][1]+d[1][1])*.5],p)}function n(d){return{region:d,children:[]}}var i=n(null);function o(d,p){for(var m=0;m<d.children.length;m++){var y=d.children[m];if(a(p,y.region)){o(y,p);return}}for(var b=n(p),m=0;m<d.children.length;m++){var y=d.children[m];a(y.region,p)&&(b.children.push(y),d.children.splice(m,1),m--)}d.children.push(b)}for(var l=0;l<t.regions.length;l++){var s=t.regions[l];s.length<3||o(i,s)}function u(d,p){for(var m=0,y=d[d.length-1][0],b=d[d.length-1][1],T=[],w=0;w<d.length;w++){var x=d[w][0],_=d[w][1];T.push([x,_]),m+=_*y-x*b,y=x,b=_}var k=m<0;return k!==p&&T.reverse(),T.push([T[0][0],T[0][1]]),T}var f=[];function c(d){var p=[u(d.region,!1)];f.push(p);for(var m=0;m<d.children.length;m++)p.push(v(d.children[m]))}function v(d){for(var p=0;p<d.children.length;p++)c(d.children[p]);return u(d.region,!0)}for(var l=0;l<i.children.length;l++)c(i.children[l]);return f.length<=0?{type:"Polygon",coordinates:[]}:f.length==1?{type:"Polygon",coordinates:f[0]}:{type:"MultiPolygon",coordinates:f}}};TO.exports=Z7e});var qO=z((x$e,SO)=>{var $7e=vO(),J7e=dO(),MO=gO(),K7e=xO(),sd=wO(),kO=AO(),Ji=!1,ud=J7e(),li;li={buildLog:function(e){return e===!0?Ji=$7e():e===!1&&(Ji=!1),Ji===!1?!1:Ji.list},epsilon:function(e){return ud.epsilon(e)},segments:function(e){var r=MO(!0,ud,Ji);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=MO(!1,ud,Ji);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:sd.union(e.combined,Ji),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:sd.intersect(e.combined,Ji),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:sd.difference(e.combined,Ji),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:sd.differenceRev(e.combined,Ji),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:sd.xor(e.combined,Ji),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:K7e(e.segments,ud,Ji),inverted:e.inverted}},polygonFromGeoJSON:function(e){return kO.toPolygon(li,e)},polygonToGeoJSON:function(e){return kO.fromPolygon(li,ud,e)},union:function(e,r){return fd(e,r,li.selectUnion)},intersect:function(e,r){return fd(e,r,li.selectIntersect)},difference:function(e,r){return fd(e,r,li.selectDifference)},differenceRev:function(e,r){return fd(e,r,li.selectDifferenceRev)},xor:function(e,r){return fd(e,r,li.selectXor)}};function fd(e,r,t){var a=li.segments(e),n=li.segments(r),i=li.combine(a,n),o=t(i);return li.polygon(o)}typeof window=="object"&&(window.PolyBool=li);SO.exports=li});var CO=z((_$e,LO)=>{LO.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;u<s;f=u++){var c=t[u+a][0],v=t[u+a][1],d=t[f+a][0],p=t[f+a][1],m=v>o!=p>o&&i<(d-c)*(o-v)/(p-v)+c;m&&(l=!l)}return l}});var tw=z((w$e,DO)=>{"use strict";var rw=Mp().dot,Ly=(Kt(),Ne(aa)).BADNUM,Cy=DO.exports={};Cy.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,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++)a=Math.min(a,t[l][0]),n=Math.max(n,t[l][0]),i=Math.min(i,t[l][1]),o=Math.max(o,t[l][1]);var s=!1,u;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]&&(s=!0,u=function(p){return p[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]&&(s=!0,u=function(p){return p[1]===t[0][1]}));function f(p,m){var y=p[0],b=p[1];return!(y===Ly||y<a||y>n||b===Ly||b<i||b>o||m&&u(p))}function c(p,m){var y=p[0],b=p[1];if(y===Ly||y<a||y>n||b===Ly||b<i||b>o)return!1;var T=t.length,w=t[0][0],x=t[0][1],_=0,k,M,q,C,E;for(k=1;k<T;k++)if(M=w,q=x,w=t[k][0],x=t[k][1],C=Math.min(M,w),!(y<C||y>Math.max(M,w)||b>Math.max(q,x)))if(b<Math.min(q,x))y!==C&&_++;else{if(w===M?E=b:E=q+(y-M)*(x-q)/(w-M),b===E)return!(k===1&&m);b<=E&&y!==C&&_++}return _%2===1}var v=!0,d=t[0];for(l=1;l<t.length;l++)if(d[0]!==t[l][0]||d[1]!==t[l][1]){v=!1;break}return{xmin:a,xmax:n,ymin:i,ymax:o,pts:t,contains:s?f:c,isRect:s,degenerate:v}};Cy.isSegmentBent=function(r,t,a,n){var i=r[t],o=[r[a][0]-i[0],r[a][1]-i[1]],l=rw(o,o),s=Math.sqrt(l),u=[-o[1]/s,o[0]/s],f,c,v;for(f=t+1;f<a;f++)if(c=[r[f][0]-i[0],r[f][1]-i[1]],v=rw(c,o),v<0||v>l||Math.abs(rw(c,u))>n)return!0;return!1};Cy.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c<r.length;c++)(c===r.length-1||Cy.isSegmentBent(r,f,c+1,t))&&(a.push(r[c]),a.length<u-2&&(n=c,i=a.length-1),f=c)}if(r.length>1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var EO={};Dt(EO,{BENDPX:()=>Q7e,MINSELECT:()=>ewe,SELECTDELAY:()=>rwe,SELECTID:()=>twe});var Q7e,ewe,rwe,twe,PO=Ct(()=>{"use strict";Q7e=1.5,ewe=12,rwe=100,twe="-select"});var rH=z((T$e,eH)=>{"use strict";var RO=qO(),awe=CO(),hd=Ar(),nwe=et().dashStyle,cd=qr(),iwe=Yn(),owe=No().makeEventData,gd=yf(),lwe=gd.freeMode,swe=gd.rectMode,dd=gd.drawMode,ow=gd.openMode,lw=gd.selectMode,FO=Zs(),zO=(ed(),Ne(Qh)),HO=dy(),UO=zs().clearOutline,GO=js(),aw=GO.handleEllipse,uwe=GO.readPaths,fwe=cy().newShapes,cwe=q7(),vwe=ew().activateLastSelection,Ey=ke(),hwe=Ey.sorterAsc,YO=tw(),vd=Np(),Ki=Ca().getFromId,dwe=ay(),pwe=ky().redrawReglTraces,Py=(PO(),Ne(EO)),Tl=Py.MINSELECT,mwe=YO.filter,sw=YO.tester,uw=ly(),NO=uw.p2r,ywe=uw.axValue,gwe=uw.getTransform;function fw(e){return e.subplot!==void 0}function bwe(e,r,t,a,n){var i=!fw(a),o=lwe(n),l=swe(n),s=ow(n),u=dd(n),f=lw(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,b=m._zoomlayer,T=a.element.getBoundingClientRect(),w=a.plotinfo,x=gwe(w),_=r-T.left,k=t-T.top;m._calcInverseTransform(p);var M=Ey.apply3DTransform(m._invTransform)(_,k);_=M[0],k=M[1];var q=m._invScaleX,C=m._invScaleY,E=_,P=k,R="M"+_+","+k,B=a.xaxes[0],I=a.yaxes[0],N=B._length,H=I._length,G=e.altKey&&!(dd(n)&&s),Y,j,W,V,J,re,le;jO(e,p,a),o&&(Y=mwe([[_,k]],Py.BENDPX));var ne=b.selectAll("path.select-outline-"+w.id).data([1]),$=u?m.newshape:m.newselection;u&&(a.hasText=$.label.text||$.label.texttemplate);var ce=u&&!s?$.fillcolor:"rgba(0,0,0,0)",te=$.line.color||(i?cd.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ne.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?$.opacity/2:1,"stroke-dasharray":nwe($.line.dash,$.line.width),"stroke-width":$.line.width+"px","shape-rendering":"crispEdges"}).call(cd.stroke,te).call(cd.fill,ce).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",R+"Z");var ge=b.append("path").attr("class","zoombox-corners").style({fill:cd.background,stroke:cd.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var se=b.select(".label-temp");se.empty()&&(se=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var oe=m._uid+Py.SELECTID,Ae=[],Pe=Ry(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ce=B._id,Me=I._id;JO(p,Ce,Me,Pe);for(var Le=(p.layout||{}).selections||[],Se=[],Ee=!1,qe=0;qe<Le.length;qe++){var Ue=m.selections[qe];!Ue||Ue.xref!==Ce||Ue.yref!==Me?Se.push(Le[qe]):Ee=!0}Ee&&(p._fullLayout._noEmitSelectedAtStart=!0,hd.call("_guiRelayout",p,{selections:Se}))}});var me=Pwe(a);a.moveFn=function(Ce,Me){a._clearSubplotSelections&&(a._clearSubplotSelections(),a._clearSubplotSelections=void 0),E=Math.max(0,Math.min(N,q*Ce+_)),P=Math.max(0,Math.min(H,C*Me+k));var Le=Math.abs(E-_),Se=Math.abs(P-k);if(l){var Ee,qe,Ue;if(f){var Je=m.selectdirection;switch(Je==="any"?Se<Math.min(Le*.6,Tl)?Ee="h":Le<Math.min(Se*.6,Tl)?Ee="v":Ee="d":Ee=Je,Ee){case"h":qe=v?H/2:0,Ue=H;break;case"v":qe=v?N/2:0,Ue=N;break}}if(u)switch(m.newshape.drawdirection){case"vertical":Ee="h",qe=v?H/2:0,Ue=H;break;case"horizontal":Ee="v",qe=v?N/2:0,Ue=N;break;case"ortho":Le<Se?(Ee="h",qe=k,Ue=P):(Ee="v",qe=_,Ue=E);break;default:Ee="d"}Ee==="h"?(V=d?aw(v,[E,qe],[E,Ue]):[[_,qe],[_,Ue],[E,Ue],[E,qe]],V.xmin=d?E:Math.min(_,E),V.xmax=d?E:Math.max(_,E),V.ymin=Math.min(qe,Ue),V.ymax=Math.max(qe,Ue),ge.attr("d","M"+V.xmin+","+(k-Tl)+"h-4v"+2*Tl+"h4ZM"+(V.xmax-1)+","+(k-Tl)+"h4v"+2*Tl+"h-4Z")):Ee==="v"?(V=d?aw(v,[qe,P],[Ue,P]):[[qe,k],[qe,P],[Ue,P],[Ue,k]],V.xmin=Math.min(qe,Ue),V.xmax=Math.max(qe,Ue),V.ymin=d?P:Math.min(k,P),V.ymax=d?P:Math.max(k,P),ge.attr("d","M"+(_-Tl)+","+V.ymin+"v-4h"+2*Tl+"v4ZM"+(_-Tl)+","+(V.ymax-1)+"v4h"+2*Tl+"v-4Z")):Ee==="d"&&(V=d?aw(v,[_,k],[E,P]):[[_,k],[_,P],[E,P],[E,k]],V.xmin=Math.min(_,E),V.xmax=Math.max(_,E),V.ymin=Math.min(k,P),V.ymax=Math.max(k,P),ge.attr("d","M0,0Z"))}else o&&(Y.addPt([E,P]),V=Y.filtered);if(a.selectionDefs&&a.selectionDefs.length?(W=WO(a.mergedPolygons,V,G),V.subtract=G,j=cw(a.selectionDefs.concat([V]))):(W=[V],j=sw(V)),HO(ZO(W,s),ne,a),f){var Ke=iw(p,!1),De=Ke.eventData?Ke.eventData.points.slice():[];Ke=iw(p,!1,j,Pe,a),j=Ke.selectionTesters,le=Ke.eventData;var Be;Y?Be=Y.filtered:Be=KO(W),vd.throttle(oe,Py.SELECTDELAY,function(){Ae=$O(j,Pe);for(var er=Ae.slice(),ae=0;ae<De.length;ae++){for(var be=De[ae],Ge=!1,sr=0;sr<er.length;sr++)if(er[sr].curveNumber===be.curveNumber&&er[sr].pointNumber===be.pointNumber){Ge=!0;break}Ge||er.push(be)}er.length&&(le||(le={}),le.points=er),me(le,Be),Rwe(p,le)})}},a.clickFn=function(Ce,Me){if(ge.remove(),p._fullLayout._activeShapeIndex>=0){p._fullLayout._deactivateShape(p);return}if(!u){var Le=m.clickmode;vd.done(oe).then(function(){if(vd.clear(oe),Ce===2){for(ne.remove(),J=0;J<Pe.length;J++)re=Pe[J],re._module.selectPoints(re,!1);if(md(p,Pe),pd(a),hw(p),Pe.length){var Se=Pe[0].xaxis,Ee=Pe[0].yaxis;if(Se&&Ee){for(var qe=[],Ue=p._fullLayout.selections,Je=0;Je<Ue.length;Je++){var Ke=Ue[Je];Ke&&(Ke.xref!==Se._id||Ke.yref!==Ee._id)&&qe.push(Ke)}qe.length<Ue.length&&(p._fullLayout._noEmitSelectedAtStart=!0,hd.call("_guiRelayout",p,{selections:qe}))}}}else Le.indexOf("select")>-1&&VO(Me,p,a.xaxes,a.yaxes,a.subplot,a,ne),Le==="event"&&yd(p,void 0);iwe.click(p,Me,w.id)}).catch(Ey.error)}},a.doneFn=function(){ge.remove(),vd.done(oe).then(function(){vd.clear(oe),!y&&V&&a.selectionDefs&&(V.subtract=G,a.selectionDefs.push(V),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,W)),(y||u)&&pd(a,y),a.doneFnCompleted&&a.doneFnCompleted(Ae),f&&yd(p,le)}).catch(Ey.error)}}function VO(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,m,y,b,T,w,x,_;if(Awe(l)){jO(e,r,i),v=Ry(r,t,a,n);var k=Mwe(l,v),M=k.pointNumbers.length>0;if(M?kwe(v,k):Swe(v)&&(T=BO(k))){for(o&&o.remove(),_=0;_<v.length;_++)d=v[_],d._module.selectPoints(d,!1);md(r,v),pd(i),f&&hw(r)}else{w=e.shiftKey&&(T!==void 0?T:BO(k)),p=xwe(k.pointNumber,k.searchInfo,w);var q=i.selectionDefs.concat([p]);for(m=cw(q,m),_=0;_<v.length;_++)if(y=v[_]._module.selectPoints(v[_],m),b=XO(y,v[_]),c.length)for(var C=0;C<b.length;C++)c.push(b[C]);else c=b;if(x={points:c},md(r,v,x),p&&i&&i.selectionDefs.push(p),o){var E=i.mergedPolygons,P=ow(i.dragmode);HO(ZO(E,P),o,i)}f&&yd(r,x)}}}function xwe(e,r,t){return{pointNumber:e,searchInfo:r,subtract:!!t}}function nw(e){return"pointNumber"in e&&"searchInfo"in e}function _we(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(r,t,a,n){var i=e.searchInfo.cd[0].trace.index,o=n.cd[0].trace.index;return o===i&&a===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function cw(e){if(!e.length)return;for(var r=[],t=nw(e[0])?0:e[0][0][0],a=t,n=nw(e[0])?0:e[0][0][1],i=n,o=0;o<e.length;o++)if(nw(e[o]))r.push(_we(e[o]));else{var l=sw(e[o]);l.subtract=!!e[o].subtract,r.push(l),t=Math.min(t,l.xmin),a=Math.max(a,l.xmax),n=Math.min(n,l.ymin),i=Math.max(i,l.ymax)}function s(u,f,c,v){for(var d=!1,p=0;p<r.length;p++)r[p].contains(u,f,c,v)&&(d=!r[p].subtract);return d}return{xmin:t,xmax:a,ymin:n,ymax:i,pts:[],contains:s,isRect:!1,degenerate:!1}}function jO(e,r,t){var a=r._fullLayout,n=t.plotinfo,i=t.dragmode,o=a._lastSelectedSubplot&&a._lastSelectedSubplot===n.id,l=(e.shiftKey||e.altKey)&&!(dd(i)&&ow(i));o&&l&&n.selection&&n.selection.selectionDefs&&!t.selectionDefs?(t.selectionDefs=n.selection.selectionDefs,t.mergedPolygons=n.selection.mergedPolygons):(!l||!n.selection)&&pd(t),o||(UO(r),a._lastSelectedSubplot=n.id)}function wwe(e){return e._fullLayout._activeShapeIndex>=0}function Twe(e){return e._fullLayout._activeSelectionIndex>=0}function pd(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;wwe(n)&&n._fullLayout._deactivateShape(n),Twe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=dd(t),s=lw(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=fwe(u,e)),f&&hd.call("_guiRelayout",n,{shapes:f});var c;s&&!fw(e)&&(c=cwe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,hd.call("_guiRelayout",n,{selections:c}).then(function(){r&&vwe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function IO(e){return e._id}function Ry(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(IO),o=t.map(IO),l,s,u;for(u=0;u<e.calcdata.length;u++)if(l=e.calcdata[u],s=l[0].trace,!(s.visible!==!0||!s._module||!s._module.selectPoints))if(fw({subplot:a})&&(s.subplot===a||s.geo===a))n.push(Dy(s._module,l,r[0],t[0]));else if(s.type==="splom"){if(s._xaxes[i[0]]&&s._yaxes[o[0]]){var f=Dy(s._module,l,r[0],t[0]);f.scene=e._fullLayout._splomScenes[s.uid],n.push(f)}}else if(s.type==="sankey"){var c=Dy(s._module,l,r[0],t[0]);n.push(c)}else{if(i.indexOf(s.xaxis)===-1&&(!s._xA||!s._xA.overlaying)||o.indexOf(s.yaxis)===-1&&(!s._yA||!s._yA.overlaying))continue;n.push(Dy(s._module,l,Ki(e,s.xaxis),Ki(e,s.yaxis)))}return n}function Dy(e,r,t,a){return{_module:e,cd:r,xaxis:t,yaxis:a}}function Awe(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function Mwe(e,r){var t=e[0],a=-1,n=[],i,o;for(o=0;o<r.length;o++)if(i=r[o],t.fullData.index===i.cd[0].trace.index){if(t.hoverOnBox===!0)break;t.pointNumber!==void 0?a=t.pointNumber:t.binNumber!==void 0&&(a=t.binNumber,n=t.pointNumbers);break}return{pointNumber:a,pointNumbers:n,searchInfo:i}}function BO(e){var r=e.searchInfo.cd[0].trace,t=e.pointNumber,a=e.pointNumbers,n=a.length>0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function kwe(e,r){var t=[],a,n,i,o;for(o=0;o<e.length;o++)a=e[o],a.cd[0].trace.selectedpoints&&a.cd[0].trace.selectedpoints.length>0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o<r.pointNumbers.length;o++)if(n.selectedpoints.indexOf(r.pointNumbers[o])<0)return!1;return!0}return!1}function Swe(e){var r=0,t,a,n;for(n=0;n<e.length;n++)if(t=e[n],a=t.cd[0].trace,a.selectedpoints&&(a.selectedpoints.length>1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function md(e,r,t){var a,n;for(a=0;a<r.length;a++){n=r[a].cd[0].trace;var i=e._fullLayout._tracePreGUI[n.uid]||{};i.selectedpoints===void 0&&(i.selectedpoints=n._input.selectedpoints||null)}if(t){var o=t.points||[];for(a=0;a<r.length;a++)n=r[a].cd[0].trace,n._input.selectedpoints=n.selectedpoints=[];for(var l=0;l<o.length;l++){var s=o[l],u=s.data,f=s.pointIndex,c=s.pointIndices;c?[].push.apply(u.selectedpoints,c):u.selectedpoints.push(f)}}else for(a=0;a<r.length;a++)n=r[a].cd[0].trace,delete n.selectedpoints,delete n._input.selectedpoints;qwe(e,r)}function qwe(e,r){for(var t=!1,a=0;a<r.length;a++){var n=r[a],i=n.cd;hd.traceIs(i[0].trace,"regl")&&(t=!0);var o=n._module,l=o.styleOnSelect||o.style;l&&(l(e,i,i[0].node3),i[0].nodeRangePlot3&&l(e,i,i[0].nodeRangePlot3))}t&&(dwe(e),pwe(e))}function WO(e,r,t){for(var a=t?RO.difference:RO.union,n=a({regions:e},{regions:[r]}),i=n.regions.reverse(),o=0;o<i.length;o++){var l=i[o];l.subtract=vw(l,i.slice(0,o))}return i}function XO(e,r){if(Array.isArray(e))for(var t=r.cd,a=r.cd[0].trace,n=0;n<e.length;n++)e[n]=owe(e[n],a,t);return e}function ZO(e,r){for(var t=[],a=0;a<e.length;a++){t[a]=[];for(var n=0;n<e[a].length;n++){t[a][n]=[],t[a][n][0]=n?"L":"M";for(var i=0;i<e[a][n].length;i++)t[a][n].push(e[a][n][i])}r||t[a].push(["Z",t[a][0][1],t[a][0][2]])}return t}function $O(e,r){for(var t=[],a,n=[],i,o=0;o<r.length;o++){var l=r[o];i=l._module.selectPoints(l,e),n.push(i),a=XO(i,l),t=t.concat(a)}return t}function iw(e,r,t,a,n){var i=!!a,o,l,s;n&&(o=n.plotinfo,l=n.xaxes[0]._id,s=n.yaxes[0]._id);var u=[],f=[],c=OO(e),v=e._fullLayout;if(o){var d=v._zoomlayer,p=v.dragmode,m=dd(p),y=lw(p);if(m||y){var b=Ki(e,l,"x"),T=Ki(e,s,"y");if(b&&T){var w=d.selectAll(".select-outline-"+o.id);if(w&&e._fullLayout._outlining&&w.length){for(var x=w[0][0],_=x.getAttribute("d"),k=uwe(_,e,o),M=[],q=0;q<k.length;q++){for(var C=k[q],E=[],P=0;P<C.length;P++)E.push([$s(b,C[P][1]),$s(T,C[P][2])]);E.xref=l,E.yref=s,E.subtract=vw(E,M),M.push(E)}c=c.concat(M)}}}}var R=l&&s?[l+s]:v._subplots.cartesian;Lwe(e);for(var B={},I=0;I<R.length;I++){var N=R[I],H=N.indexOf("y"),G=N.slice(0,H),Y=N.slice(H),j=l&&s?t:void 0;if(j=Dwe(c,G,Y,j),j){var W=a;if(!i){var V=Ki(e,G,"x"),J=Ki(e,Y,"y");W=Ry(e,[V],[J],N);for(var re=0;re<W.length;re++){var le=W[re],ne=le.cd[0],$=ne.trace;if(le._module.name==="scattergl"&&!ne.t.xpx){var ce=$.x,te=$.y,ge=$._length;ne.t.xpx=[],ne.t.ypx=[];for(var se=0;se<ge;se++)ne.t.xpx[se]=V.c2p(ce[se]),ne.t.ypx[se]=J.c2p(te[se])}le._module.name==="splom"&&(B[$.uid]||(B[$.uid]=!0))}}var oe=$O(j,W);u=u.concat(oe),f=f.concat(W)}}var Ae={points:u};md(e,f,Ae);var Pe=v.clickmode,me=Pe.indexOf("event")>-1&&r;if(!o&&r){var Ce=OO(e,!0);if(Ce.length){var Me=Ce[0].xref,Le=Ce[0].yref;if(Me&&Le){var Se=KO(Ce),Ee=QO([Ki(e,Me,"x"),Ki(e,Le,"y")]);Ee(Ae,Se)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:me&&yd(e,Ae),v._reselect=!1}if(!o&&v._deselect){var qe=v._deselect;l=qe.xref,s=qe.yref,Cwe(l,s,f)||JO(e,l,s,a),me&&(Ae.points.length?yd(e,Ae):hw(e)),v._deselect=!1}return{eventData:Ae,selectionTesters:t}}function Lwe(e){var r=e.calcdata;if(r)for(var t=0;t<r.length;t++){var a=r[t][0],n=a.trace,i=e._fullLayout._splomScenes;if(i){var o=i[n.uid];o&&(o.selectBatch=[])}}}function Cwe(e,r,t){for(var a=0;a<t.length;a++){var n=t[a];if(n.xaxis&&n.xaxis._id===e&&n.yaxis&&n.yaxis._id===r)return!0}return!1}function JO(e,r,t,a){a=Ry(e,[Ki(e,r,"x")],[Ki(e,t,"y")],r+t);for(var n=0;n<a.length;n++){var i=a[n];i._module.selectPoints(i,!1)}md(e,a)}function Dwe(e,r,t,a){for(var n,i=0;i<e.length;i++){var o=e[i];if(!(r!==o.xref||t!==o.yref))if(n){var l=!!o.subtract;n=WO(n,o,l),a=cw(n)}else n=[o],a=sw(o)}return a}function OO(e,r){for(var t=[],a=e._fullLayout,n=a.selections,i=n.length,o=0;o<i;o++)if(!(r&&o!==a._activeSelectionIndex)){var l=n[o];if(l){var s=l.xref,u=l.yref,f=Ki(e,s,"x"),c=Ki(e,u,"y"),v,d,p,m,y;if(l.type==="rect"){y=[];var b=$s(f,l.x0),T=$s(f,l.x1),w=$s(c,l.y0),x=$s(c,l.y1);y=[[b,w],[b,x],[T,x],[T,w]],v=Math.min(b,T),d=Math.max(b,T),p=Math.min(w,x),m=Math.max(w,x),y.xmin=v,y.xmax=d,y.ymin=p,y.ymax=m,y.xref=s,y.yref=u,y.subtract=!1,y.isRect=!0,t.push(y)}else if(l.type==="path")for(var _=l.path.split("Z"),k=[],M=0;M<_.length;M++){var q=_[M];if(q){q+="Z";var C=FO.extractPathCoords(q,zO.paramIsX,"raw"),E=FO.extractPathCoords(q,zO.paramIsY,"raw");v=1/0,d=-1/0,p=1/0,m=-1/0,y=[];for(var P=0;P<C.length;P++){var R=$s(f,C[P]),B=$s(c,E[P]);y.push([R,B]),v=Math.min(R,v),d=Math.max(R,d),p=Math.min(B,p),m=Math.max(B,m)}y.xmin=v,y.xmax=d,y.ymin=p,y.ymax=m,y.xref=s,y.yref=u,y.subtract=vw(y,k),k.push(y),t.push(y)}}}}return t}function vw(e,r){for(var t=!1,a=0;a<r.length;a++)for(var n=r[a],i=0;i<e.length;i++)if(awe(e[i],n)){t=!t;break}return t}function $s(e,r){return e.type==="date"&&(r=r.replace("_"," ")),e.type==="log"?e.c2p(r):e.r2p(r,null,e.calendar)}function KO(e){for(var r=e.length,t=[],a=0;a<r;a++){var n=e[a];t=t.concat(n),t=t.concat([n[0]])}return Ewe(t)}function Ewe(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 QO(e){return function(r,t){for(var a,n,i=0;i<e.length;i++){var o=e[i],l=o._id,s=l.charAt(0);if(t.isRect){a||(a={});var u=t[s+"min"],f=t[s+"max"];u!==void 0&&f!==void 0&&(a[l]=[NO(o,u),NO(o,f)].sort(hwe))}else n||(n={}),n[l]=t.map(ywe(o))}a&&(r.range=a),n&&(r.lassoPoints=n)}}function Pwe(e){var r=e.plotinfo;return r.fillRangeItems||QO(e.xaxes.concat(e.yaxes))}function Rwe(e,r){e.emit("plotly_selecting",r)}function yd(e,r){r&&(r.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",r)}function hw(e){e.emit("plotly_deselect",null)}eH.exports={reselect:iw,prepSelect:bwe,clearOutline:UO,clearSelectionsCache:pd,selectOnClick:VO}});var dw=z((A$e,tH)=>{"use strict";tH.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 bd={};Dt(bd,{axisRefDescription:()=>Fwe});function Fwe(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 xd=Ct(()=>{"use strict"});var w0=z((k$e,iH)=>{"use strict";var aH=dw(),nH=Ia(),Fy=(Ha(),Ne(Oa)),zwe=Pt().templatedArray,M$e=(xd(),Ne(bd));iH.exports=zwe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:nH({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:aH.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:aH.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",Fy.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Fy.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Fy.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",Fy.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:nH({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var _d={};Dt(_d,{PTS_LINESONLY:()=>Nwe,eventDataKeys:()=>Hwe,maxScreensAway:()=>Owe,minTolerance:()=>Iwe,toleranceGrowth:()=>Bwe});var Nwe,Iwe,Bwe,Owe,Hwe,wd=Ct(()=>{"use strict";Nwe=20,Iwe=.2,Bwe=10,Owe=20,Hwe=[]});var zy=z((S$e,oH)=>{"use strict";oH.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Qi=z((q$e,dH)=>{"use strict";var lH=Fo().axisHoverFormat,{hovertemplateAttrs:Uwe,texttemplateAttrs:Gwe,templatefallbackAttrs:sH}=gi(),uH=cl(),Ywe=Ia(),fH=Ui().dash,Vwe=Ui().pattern,jwe=et(),Wwe=(wd(),Ne(_d)),Td=St().extendFlat,Xwe=zy();function cH(e){return{valType:"any",dflt:0,editType:"calc"}}function vH(e){return{valType:"any",editType:"calc"}}function hH(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}dH.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:cH("x"),yperiod:cH("y"),xperiod0:vH("x0"),yperiod0:vH("y0"),xperiodalignment:hH("x"),yperiodalignment:hH("y"),xhoverformat:lH("x"),yhoverformat:lH("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:Gwe(),texttemplatefallback:sH({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:Uwe({},{keys:Wwe.eventDataKeys}),hovertemplatefallback:sH(),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:Td({},fH,{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:Xwe(!0),fillgradient:Td({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:Vwe,marker:Td({symbol:{valType:"enumerated",values:jwe.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:Td({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Td({},fH,{arrayOk:!0}),editType:"calc"},uH("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"},uH("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:Ywe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var pw=z((C$e,yH)=>{"use strict";var pH=w0(),mH=Qi().line,Zwe=Ui().dash,Ny=St().extendFlat,$we=Do().overrideAll,Jwe=Pt().templatedArray,L$e=(xd(),Ne(bd));yH.exports=$we(Jwe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Ny({},pH.xref,{}),yref:Ny({},pH.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:mH.color,width:Ny({},mH.width,{min:1,dflt:1}),dash:Ny({},Zwe,{dflt:"dot"})}}),"arraydraw","from-root")});var _H=z((D$e,xH)=>{"use strict";var gH=ke(),Iy=jr(),Kwe=zo(),Qwe=pw(),bH=Zs();xH.exports=function(r,t){Kwe(r,t,{name:"selections",handleItemDefaults:e8e});for(var a=t.selections,n=0;n<a.length;n++){var i=a[n];i&&i.path===void 0&&(i.x0===void 0||i.x1===void 0||i.y0===void 0||i.y1===void 0)&&(t.selections[n]=null)}};function e8e(e,r,t){function a(k,M){return gH.coerce(e,r,Qwe,k,M)}var n=a("path"),i=n?"path":"rect",o=a("type",i),l=o!=="path";l&&delete r.path,a("opacity"),a("line.color"),a("line.width"),a("line.dash");for(var s=["x","y"],u=0;u<2;u++){var f=s[u],c={_fullLayout:t},v,d,p,m=Iy.coerceRef(e,r,c,f);if(v=Iy.getFromId(c,m),v._selectionIndices.push(r._index),p=bH.rangeToShapePosition(v),d=bH.shapePositionToRange(v),l){var y=f+"0",b=f+"1",T=e[y],w=e[b];e[y]=d(e[y],!0),e[b]=d(e[b],!0),Iy.coercePosition(r,c,a,m,y),Iy.coercePosition(r,c,a,m,b);var x=r[y],_=r[b];x!==void 0&&_!==void 0&&(r[y]=p(x),r[b]=p(_),e[y]=T,e[b]=w)}}l&&gH.noneOrAll(e,r,["x0","x1","y0","y1"])}});var TH=z((E$e,wH)=>{"use strict";wH.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Ad=z((P$e,kH)=>{"use strict";var r8e=Ar(),AH=ke(),MH=Ca();kH.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=r8e.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d<i.length;d++){var p=i[d];if(AH.isPlainObject(p)){var m=MH.cleanId(p.xref,"x",!1),y=MH.cleanId(p.yref,"y",!1),b=l.x.test(m),T=l.y.test(y);if(b||T){v||AH.pushUnique(n._basePlotModules,o);var w=!1;b&&u.indexOf(m)===-1&&(u.push(m),w=!0),T&&f.indexOf(y)===-1&&(f.push(y),w=!0),w&&b&&T&&c.push(m+y)}}}}}});var Al=z((R$e,qH)=>{"use strict";var SH=ew(),Md=rH();qH.exports={moduleType:"component",name:"selections",layoutAttributes:pw(),supplyLayoutDefaults:_H(),supplyDrawNewSelectionDefaults:TH(),includeBasePlot:Ad()("selections"),draw:SH.draw,drawOne:SH.drawOne,reselect:Md.reselect,prepSelect:Md.prepSelect,clearOutline:Md.clearOutline,clearSelectionsCache:Md.clearSelectionsCache,selectOnClick:Md.selectOnClick}});var XH=z((F$e,WH)=>{"use strict";var _w=Pr(),eo=ke(),LH=eo.numberFormat,t8e=J6(),By=Ar(),NH=eo.strTranslate,a8e=Da(),yw=qr(),Js=et(),n8e=Yn(),CH=jr(),i8e=Ys(),o8e=Xi(),IH=yf(),Oy=IH.selectingOrDrawing,l8e=IH.freeMode,s8e=(un(),Ne(sn)).FROM_TL,u8e=ay(),f8e=ky().redrawReglTraces,c8e=_a(),gw=Ca().getFromId,v8e=Al().prepSelect,h8e=Al().clearOutline,d8e=Al().selectOnClick,mw=j7(),ww=(Ha(),Ne(Oa)),DH=ww.MINDRAG,Vn=ww.MINZOOM,EH=!0;function p8e(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,m,y,b,T,w,x,_,k,M,q,C,E,P,R,B,I,N,H,G;t+=r.yaxis._shift;function Y(){if(c=r.xaxis,v=r.yaxis,w=c._length,x=v._length,b=c._offset,T=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var ue=r.overlays,xe=0;xe<ue.length;xe++){var Ie=ue[xe].xaxis;d[Ie._id]=Ie;var We=ue[xe].yaxis;p[We._id]=We}m=zH(d),y=zH(p),M=PH(m,l),q=PH(y,o),C=!q&&!M,k=FH(e,e._fullLayout._axisMatchGroups,d,p),_=FH(e,e._fullLayout._axisConstraintGroups,d,p,k);var Oe=_.isSubplotConstrained||k.isSubplotConstrained;E=l||Oe,P=o||Oe;var Xe=e._fullLayout;R=Xe._has("scattergl"),B=Xe._has("splom"),I=Xe._has("svg")}Y();var j=g8e(q+M,e._fullLayout.dragmode,u),W=OH(r,o+l+"drag",j,t,a,n,i);if(C&&!u)return W.onmousedown=null,W.style.pointerEvents="none",W;var V={element:W,gd:e,plotinfo:r};V.prepFn=function(ue,xe,Ie){var We=V.dragmode,Oe=e._fullLayout.dragmode;Oe!==We&&(V.dragmode=Oe),Y(),H=e._fullLayout._invScaleX,G=e._fullLayout._invScaleY,C||(u?ue.shiftKey?Oe==="pan"?Oe="zoom":Oy(Oe)||(Oe="pan"):ue.ctrlKey&&(Oe="pan"):Oe="pan"),l8e(Oe)?V.minDrag=1:V.minDrag=void 0,Oy(Oe)?(V.xaxes=m,V.yaxes=y,v8e(ue,xe,Ie,V,Oe)):(V.clickFn=re,Oy(We)&&J(),C||(Oe==="zoom"?(V.moveFn=Ce,V.doneFn=Le,V.minDrag=1,me(ue,xe,Ie)):Oe==="pan"&&(V.moveFn=Ke,V.doneFn=ae))),e._fullLayout._redrag=function(){var Xe=e._dragdata;if(Xe&&Xe.element===W){var Qe=e._fullLayout.dragmode;Oy(Qe)||(Y(),be([0,0,w,x]),V.moveFn(Xe.dx,Xe.dy))}}};function J(){V.plotinfo.selection=!1,h8e(e)}function re(ue,xe){var Ie=V.gd;if(Ie._fullLayout._activeShapeIndex>=0){Ie._fullLayout._deactivateShape(Ie);return}var We=Ie._fullLayout.clickmode;if(xw(Ie),ue===2&&!f&&er(),u)We.indexOf("select")>-1&&d8e(xe,Ie,m,y,r.id,V),We.indexOf("event")>-1&&n8e.click(Ie,xe,r.id);else if(ue===1&&f){var Oe=o?v:c,Xe=o==="s"||l==="w"?0:1,Qe=Oe._name+".range["+Xe+"]",_r=m8e(Oe,Xe),gr="left",Re="middle";if(Oe.fixedrange)return;o?(Re=o==="n"?"top":"bottom",Oe.side==="right"&&(gr="right")):l==="e"&&(gr="right"),Ie._context.showAxisRangeEntryBoxes&&_w.select(W).call(a8e.makeEditable,{gd:Ie,immediate:!0,background:Ie._fullLayout.paper_bgcolor,text:String(_r),fill:Oe.tickfont?Oe.tickfont.color:"#444",horizontalAlign:gr,verticalAlign:Re}).on("edit",function(Ze){var ze=Oe.d2r(Ze);ze!==void 0&&By.call("_guiRelayout",Ie,Qe,ze)})}}o8e.init(V);var le,ne,$,ce,te,ge,se,oe,Ae,Pe;function me(ue,xe,Ie){var We=W.getBoundingClientRect();le=xe-We.left,ne=Ie-We.top,e._fullLayout._calcInverseTransform(e);var Oe=eo.apply3DTransform(e._fullLayout._invTransform)(le,ne);le=Oe[0],ne=Oe[1],$={l:le,r:le,w:0,t:ne,b:ne,h:0},ce=e._hmpixcount?e._hmlumcount/e._hmpixcount:yw.luminosity(e._fullLayout.plot_bgcolor),te="M0,0H"+w+"V"+x+"H0V0",ge=!1,se="xy",Pe=!1,oe=HH(s,ce,b,T,te),Ae=UH(s,b,T)}function Ce(ue,xe){if(e._transitioningWithDuration)return!1;var Ie=Math.max(0,Math.min(w,H*ue+le)),We=Math.max(0,Math.min(x,G*xe+ne)),Oe=Math.abs(Ie-le),Xe=Math.abs(We-ne);$.l=Math.min(le,Ie),$.r=Math.max(le,Ie),$.t=Math.min(ne,We),$.b=Math.max(ne,We);function Qe(){se="",$.r=$.l,$.t=$.b,Ae.attr("d","M0,0Z")}if(_.isSubplotConstrained)Oe>Vn||Xe>Vn?(se="xy",Oe/w>Xe/x?(Xe=Oe*x/w,ne>We?$.t=ne-Xe:$.b=ne+Xe):(Oe=Xe*w/x,le>Ie?$.l=le-Oe:$.r=le+Oe),Ae.attr("d",Hy($))):Qe();else if(k.isSubplotConstrained)if(Oe>Vn||Xe>Vn){se="xy";var _r=Math.min($.l/w,(x-$.b)/x),gr=Math.max($.r/w,(x-$.t)/x);$.l=_r*w,$.r=gr*w,$.b=(1-_r)*x,$.t=(1-gr)*x,Ae.attr("d",Hy($))}else Qe();else!q||Xe<Math.min(Math.max(Oe*.6,DH),Vn)?Oe<DH||!M?Qe():($.t=0,$.b=x,se="x",Ae.attr("d",b8e($,ne))):!M||Oe<Math.min(Xe*.6,Vn)?($.l=0,$.r=w,se="y",Ae.attr("d",x8e($,le))):(se="xy",Ae.attr("d",Hy($)));$.w=$.r-$.l,$.h=$.b-$.t,se&&(Pe=!0),e._dragged=Pe,GH(oe,Ae,$,te,ge,ce),Me(),e.emit("plotly_relayouting",N),ge=!0}function Me(){N={},(se==="xy"||se==="x")&&(bw(m,$.l/w,$.r/w,N,_.xaxes),De("x",N)),(se==="xy"||se==="y")&&(bw(y,(x-$.b)/x,(x-$.t)/x,N,_.yaxes),De("y",N))}function Le(){Me(),xw(e),ae(),VH(e)}var Se=[0,0,w,x],Ee=null,qe=ww.REDRAWDELAY,Ue=r.mainplot?e._fullLayout._plots[r.mainplot]:r;function Je(ue){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(J(),e._transitioningWithDuration){ue.preventDefault(),ue.stopPropagation();return}Y(),clearTimeout(Ee);var xe=-ue.deltaY;if(isFinite(xe)||(xe=ue.wheelDelta/10),!isFinite(xe)){eo.log("Did not find wheel motion attributes: ",ue);return}e._fullLayout._replotting=!0;var Ie=Math.exp(-Math.min(Math.max(xe,-20),20)/200),We=Ue.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Oe=(ue.clientX-We.left)/We.width,Xe=(We.bottom-ue.clientY)/We.height,Qe;function _r(gr,Re,Ze){if(gr.fixedrange)return;var ze=eo.simpleMap(gr.range,gr.r2l),rr=ze[0]+(ze[1]-ze[0])*Re;function cr(pr){return gr.l2r(rr+(pr-rr)*Ze)}gr.range=ze.map(cr)}if(E){for(l||(Oe=.5),Qe=0;Qe<m.length;Qe++)_r(m[Qe],Oe,Ie);De("x"),Se[2]*=Ie,Se[0]+=Se[2]*Oe*(1/Ie-1)}if(P){for(o||(Xe=.5),Qe=0;Qe<y.length;Qe++)_r(y[Qe],Xe,Ie);De("y"),Se[3]*=Ie,Se[1]+=Se[3]*(1-Xe)*(1/Ie-1)}be(Se),Be(),e.emit("plotly_relayouting",N),Ee=setTimeout(function(){e._fullLayout&&(Se=[0,0,w,x],ae())},qe),ue.preventDefault()}o.length*l.length!==1&&jH(W,Je);function Ke(ue,xe){if(ue=ue*H,xe=xe*G,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,M==="ew"||q==="ns"){var Ie=M?-ue:0,We=q?-xe:0;if(k.isSubplotConstrained){if(M&&q){var Oe=(ue/w-xe/x)/2;ue=Oe*w,xe=-Oe*x,Ie=-ue,We=-xe}q?Ie=-We*w/x:We=-Ie*x/w}M&&(RH(m,ue),De("x")),q&&(RH(y,xe),De("y")),be([Ie,We,w,x]),Be(),e.emit("plotly_relayouting",N);return}function Xe(cr,pr,mr){for(var ie=1-pr,ye,Fe,He=0;He<cr.length;He++){var Gr=cr[He];if(!Gr.fixedrange){ye=Gr,Fe=Gr._rl[ie]+(Gr._rl[pr]-Gr._rl[ie])/y8e(mr/Gr._length);var rt=Gr.l2r(Fe);rt!==!1&&rt!==void 0&&(Gr.range[pr]=rt)}}return ye._length*(ye._rl[pr]-Fe)/(ye._rl[pr]-ye._rl[ie])}var Qe=M==="w"==(q==="n")?1:-1;if(M&&q&&(_.isSubplotConstrained||k.isSubplotConstrained)){var _r=(ue/w+Qe*xe/x)/2;ue=_r*w,xe=Qe*_r*x}var gr,Re;if(M==="w"?ue=Xe(m,0,ue):M==="e"?ue=Xe(m,1,-ue):M||(ue=0),q==="n"?xe=Xe(y,1,xe):q==="s"?xe=Xe(y,0,-xe):q||(xe=0),gr=M==="w"?ue:0,Re=q==="n"?xe:0,_.isSubplotConstrained&&!k.isSubplotConstrained||k.isSubplotConstrained&&M&&q&&Qe>0){var Ze;if(k.isSubplotConstrained||!M&&q.length===1){for(Ze=0;Ze<m.length;Ze++)m[Ze].range=m[Ze]._r.slice(),mw(m[Ze],1-xe/x);ue=xe*w/x,gr=ue/2}if(k.isSubplotConstrained||!q&&M.length===1){for(Ze=0;Ze<y.length;Ze++)y[Ze].range=y[Ze]._r.slice(),mw(y[Ze],1-ue/w);xe=ue*x/w,Re=xe/2}}(!k.isSubplotConstrained||!q)&&De("x"),(!k.isSubplotConstrained||!M)&&De("y");var ze=w-ue,rr=x-xe;k.isSubplotConstrained&&!(M&&q)&&(M?(Re=gr?0:ue*x/w,rr=ze*x/w):(gr=Re?0:xe*w/x,ze=rr*w/x)),be([gr,Re,ze,rr]),Be(),e.emit("plotly_relayouting",N)}function De(ue,xe){for(var Ie=k.isSubplotConstrained?{x:y,y:m}[ue]:k[ue+"axes"],We=k.isSubplotConstrained?{x:m,y}[ue]:[],Oe=0;Oe<Ie.length;Oe++){var Xe=Ie[Oe],Qe=Xe._id,_r=k.xLinks[Qe]||k.yLinks[Qe],gr=We[0]||d[_r]||p[_r];gr&&(xe?(xe[Xe._name+".range[0]"]=xe[gr._name+".range[0]"],xe[Xe._name+".range[1]"]=xe[gr._name+".range[1]"]):Xe.range=gr.range.slice())}}function Be(){var ue=[],xe;function Ie(Qe){for(xe=0;xe<Qe.length;xe++)Qe[xe].fixedrange||ue.push(Qe[xe]._id)}function We(Qe,_r){for(xe=0;xe<Qe.length;xe++){var gr=Qe[xe],Re=gr[_r],Ze=Re._id;!gr.fixedrange&&Re.tickmode==="sync"&&!ue.includes(Ze)&&ue.push(Ze)}}for(E&&(Ie(m),Ie(_.xaxes),Ie(k.xaxes),We(r.overlays,"xaxis")),P&&(Ie(y),Ie(_.yaxes),Ie(k.yaxes),We(r.overlays,"yaxis")),N={},xe=0;xe<ue.length;xe++){var Oe=ue[xe],Xe=gw(e,Oe);CH.drawOne(e,Xe,{skipTitle:!0}),N[Xe._name+".range[0]"]=Xe.range[0],N[Xe._name+".range[1]"]=Xe.range[1]}CH.redrawComponents(e,ue)}function er(){if(!e._transitioningWithDuration){var ue=e._context.doubleClick,xe=[];M&&(xe=xe.concat(m)),q&&(xe=xe.concat(y)),k.xaxes&&(xe=xe.concat(k.xaxes)),k.yaxes&&(xe=xe.concat(k.yaxes));var Ie={},We,Oe;if(ue==="reset+autosize")for(ue="autosize",Oe=0;Oe<xe.length;Oe++){We=xe[Oe];var Xe=We._rangeInitial0,Qe=We._rangeInitial1,_r=Xe!==void 0||Qe!==void 0;if(_r&&(Xe!==void 0&&Xe!==We.range[0]||Qe!==void 0&&Qe!==We.range[1])||!_r&&We.autorange!==!0){ue="reset";break}}if(ue==="autosize")for(Oe=0;Oe<xe.length;Oe++)We=xe[Oe],We.fixedrange||(Ie[We._name+".autorange"]=!0);else if(ue==="reset"){for((M||_.isSubplotConstrained)&&(xe=xe.concat(_.xaxes)),q&&!_.isSubplotConstrained&&(xe=xe.concat(_.yaxes)),_.isSubplotConstrained&&(M?q||(xe=xe.concat(y)):xe=xe.concat(m)),Oe=0;Oe<xe.length;Oe++)if(We=xe[Oe],!We.fixedrange){var gr=We._name,Re=We._autorangeInitial;We._rangeInitial0===void 0&&We._rangeInitial1===void 0?Ie[gr+".autorange"]=!0:We._rangeInitial0===void 0?(Ie[gr+".autorange"]=Re,Ie[gr+".range"]=[null,We._rangeInitial1]):We._rangeInitial1===void 0?(Ie[gr+".range"]=[We._rangeInitial0,null],Ie[gr+".autorange"]=Re):Ie[gr+".range"]=[We._rangeInitial0,We._rangeInitial1]}}e.emit("plotly_doubleclick",null),By.call("_guiRelayout",e,Ie)}}function ae(){be([0,0,w,x]),eo.syncOrAsync([c8e.previousPromises,function(){e._fullLayout._replotting=!1,By.call("_guiRelayout",e,N)}],e)}function be(ue){var xe=e._fullLayout,Ie=xe._plots,We=xe._subplots.cartesian,Oe,Xe,Qe,_r;if(B&&By.subplotsRegistry.splom.drag(e),R){for(Oe=0;Oe<We.length;Oe++)if(Xe=Ie[We[Oe]],Qe=Xe.xaxis,_r=Xe.yaxis,Xe._scene){Qe.limitRange&&Qe.limitRange(),_r.limitRange&&_r.limitRange();var gr=eo.simpleMap(Qe.range,Qe.r2l),Re=eo.simpleMap(_r.range,_r.r2l);Xe._scene.update({range:[gr[0],Re[0],gr[1],Re[1]]})}}if((B||R)&&(u8e(e),f8e(e)),I){var Ze=ue[2]/c._length,ze=ue[3]/v._length;for(Oe=0;Oe<We.length;Oe++){Xe=Ie[We[Oe]],Qe=Xe.xaxis,_r=Xe.yaxis;var rr=(E||k.isSubplotConstrained)&&!Qe.fixedrange&&d[Qe._id],cr=(P||k.isSubplotConstrained)&&!_r.fixedrange&&p[_r._id],pr,mr,ie,ye;if(rr?(pr=Ze,ie=l||k.isSubplotConstrained?ue[0]:vr(Qe,pr)):k.xaHash[Qe._id]?(pr=Ze,ie=ue[0]*Qe._length/c._length):k.yaHash[Qe._id]?(pr=ze,ie=q==="ns"?-ue[1]*Qe._length/v._length:vr(Qe,pr,{n:"top",s:"bottom"}[q])):(pr=Ge(Qe,Ze,ze),ie=sr(Qe,pr)),pr>1&&(Qe.maxallowed!==void 0&&E===(Qe.range[0]<Qe.range[1]?"e":"w")||Qe.minallowed!==void 0&&E===(Qe.range[0]<Qe.range[1]?"w":"e"))&&(pr=1,ie=0),cr?(mr=ze,ye=o||k.isSubplotConstrained?ue[1]:vr(_r,mr)):k.yaHash[_r._id]?(mr=ze,ye=ue[1]*_r._length/v._length):k.xaHash[_r._id]?(mr=Ze,ye=M==="ew"?-ue[0]*_r._length/c._length:vr(_r,mr,{e:"right",w:"left"}[M])):(mr=Ge(_r,Ze,ze),ye=sr(_r,mr)),mr>1&&(_r.maxallowed!==void 0&&P===(_r.range[0]<_r.range[1]?"n":"s")||_r.minallowed!==void 0&&P===(_r.range[0]<_r.range[1]?"s":"n"))&&(mr=1,ye=0),!(!pr&&!mr)){pr||(pr=1),mr||(mr=1);var Fe=Qe._offset-ie/pr,He=_r._offset-ye/mr;Xe.clipRect.call(Js.setTranslate,ie,ye).call(Js.setScale,pr,mr),Xe.plot.call(Js.setTranslate,Fe,He).call(Js.setScale,1/pr,1/mr),(pr!==Xe.xScaleFactor||mr!==Xe.yScaleFactor)&&(Js.setPointGroupScale(Xe.zoomScalePts,pr,mr),Js.setTextPointsScale(Xe.zoomScaleTxt,pr,mr)),Js.hideOutsideRangePoints(Xe.clipOnAxisFalseTraces,Xe),Xe.xScaleFactor=pr,Xe.yScaleFactor=mr}}}}function Ge(ue,xe,Ie){return ue.fixedrange?0:E&&_.xaHash[ue._id]?xe:P&&(_.isSubplotConstrained?_.xaHash:_.yaHash)[ue._id]?Ie:0}function sr(ue,xe){return xe?(ue.range=ue._r.slice(),mw(ue,xe),vr(ue,xe)):0}function vr(ue,xe,Ie){return ue._length*(1-xe)*s8e[Ie||ue.constraintoward||"middle"]}return W}function BH(e,r,t,a){var n=eo.ensureSingle(e.draglayer,r,t,function(i){i.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return n.call(i8e,a),n.node()}function OH(e,r,t,a,n,i,o){var l=BH(e,"rect",r,t);return _w.select(l).call(Js.setRect,a,n,i,o),l}function PH(e,r){for(var t=0;t<e.length;t++)if(!e[t].fixedrange)return r;return""}function m8e(e,r){var t=e.range[r],a=Math.abs(t-e.range[1-r]),n;return e.type==="date"?t:e.type==="log"?(n=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,LH("."+n+"g")(Math.pow(10,t))):(n=Math.floor(Math.log(Math.abs(t))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,LH("."+String(n)+"g")(t))}function bw(e,r,t,a,n){for(var i=0;i<e.length;i++){var o=e[i];if(!o.fixedrange)if(o.rangebreaks){var l=o._id.charAt(0)==="y",s=l?1-r:r,u=l?1-t:t;a[o._name+".range[0]"]=o.l2r(o.p2l(s*o._length)),a[o._name+".range[1]"]=o.l2r(o.p2l(u*o._length))}else{var f=o._rl[0],c=o._rl[1]-f;a[o._name+".range[0]"]=o.l2r(f+c*r),a[o._name+".range[1]"]=o.l2r(f+c*t)}}if(n&&n.length){var v=(r+(1-t))/2;bw(n,v,1-v,a,[])}}function RH(e,r){for(var t=0;t<e.length;t++){var a=e[t];if(!a.fixedrange){if(a.rangebreaks){var n=0,i=a._length,o=a.p2l(n+r)-a.p2l(n),l=a.p2l(i+r)-a.p2l(i),s=(o+l)/2;a.range=[a.l2r(a._rl[0]-s),a.l2r(a._rl[1]-s)]}else a.range=[a.l2r(a._rl[0]-r/a._m),a.l2r(a._rl[1]-r/a._m)];a.limitRange&&a.limitRange()}}}function y8e(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function g8e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function HH(e,r,t,a,n){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",NH(t,a)).attr("d",n+"Z")}function UH(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:yw.background,stroke:yw.defaultLine,"stroke-width":1,opacity:0}).attr("transform",NH(r,t)).attr("d","M0,0Z")}function GH(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),YH(e,r,n,i)}function YH(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function xw(e){_w.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function VH(e){EH&&e.data&&e._context.showTips&&(eo.notifier(eo._(e,"Double-click to zoom back out"),"long",e),EH=!1)}function b8e(e,r){return"M"+(e.l-.5)+","+(r-Vn-.5)+"h-3v"+(2*Vn+1)+"h3ZM"+(e.r+.5)+","+(r-Vn-.5)+"h3v"+(2*Vn+1)+"h-3Z"}function x8e(e,r){return"M"+(r-Vn-.5)+","+(e.t-.5)+"v-3h"+(2*Vn+1)+"v3ZM"+(r-Vn-.5)+","+(e.b+.5)+"v3h"+(2*Vn+1)+"v-3Z"}function Hy(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Vn)/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 FH(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p<r.length;p++){var m=r[p];for(s in t)if(m[s]){for(f in m)!(n&&(v[f]||d[f]))&&!(f.charAt(0)==="x"?t:a)[f]&&(o[f]=s);for(u in a)!(n&&(v[u]||d[u]))&&m[u]&&(i=!0)}for(u in a)if(m[u])for(c in m)!(n&&(v[c]||d[c]))&&!(c.charAt(0)==="x"?t:a)[c]&&(l[c]=u)}i&&(eo.extendFlat(o,l),l={});var y={},b=[];for(f in o){var T=gw(e,f);b.push(T),y[T._id]=T}var w={},x=[];for(c in l){var _=gw(e,c);x.push(_),w[_._id]=_}return{xaHash:y,yaHash:w,xaxes:b,yaxes:x,xLinks:o,yLinks:l,isSubplotConstrained:i}}function jH(e,r){if(!t8e)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 zH(e){var r=[];for(var t in e)r.push(e[t]);return r}WH.exports={makeDragBox:p8e,makeDragger:BH,makeRectDragger:OH,makeZoombox:HH,makeCorners:UH,updateZoombox:GH,xyCorners:Hy,transitionZoombox:YH,removeZoombox:xw,showDoubleClickNotifier:VH,attachWheelEventHandler:jH}});var Tw=z(Gy=>{"use strict";var _8e=Pr(),Uy=Yn(),w8e=Xi(),T8e=Ys(),Ho=XH().makeDragBox,Xa=(Ha(),Ne(Oa)).DRAGGERSIZE;Gy.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){_8e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=Ho(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Uy.hover(r,v,i)},Uy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,w8e.unhover(r,v))},r._context.showAxisDragHandles&&(Ho(r,o,l._offset-Xa,s._offset-Xa,Xa,Xa,"n","w"),Ho(r,o,l._offset+l._length,s._offset-Xa,Xa,Xa,"n","e"),Ho(r,o,l._offset-Xa,s._offset+s._length,Xa,Xa,"s","w"),Ho(r,o,l._offset+l._length,s._offset+s._length,Xa,Xa,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Xa),Ho(r,o,l._offset+l._length*.1,f,l._length*.8,Xa,"","ew"),Ho(r,o,l._offset,f,l._length*.1,Xa,"","w"),Ho(r,o,l._offset+l._length*.9,f,l._length*.1,Xa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Xa),Ho(r,o,c,s._offset+s._length*.1,Xa,s._length*.8,"ns",""),Ho(r,o,c,s._offset+s._length*.9,Xa,s._length*.1,"s",""),Ho(r,o,c,s._offset,Xa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Uy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Uy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Gy.updateFx(r)}};Gy.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";T8e(r._draggers,t)}});var JH=z((N$e,$H)=>{"use strict";var ZH=Ar();$H.exports=function(r){for(var t=ZH.layoutArrayContainers,a=ZH.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l<a.length;l++)if(o=r.match(a[l]),o&&o.index===0){i=o[0];break}if(i||(i=t[t.indexOf(n)]),!i)return!1;var s=r.slice(i.length);return s?(o=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),o?{array:i,index:Number(o[1]),property:o[3]||""}:!1):{array:i,index:"",property:""}}});var QH=z(Sd=>{"use strict";var A8e=Fu(),Aw=Ap(),kd=Ms(),M8e=p4().sorterAsc,Mw=Ar();Sd.containerArrayMatch=JH();var k8e=Sd.isAddVal=function(r){return r==="add"||A8e(r)},KH=Sd.isRemoveVal=function(r){return r===null||r==="remove"};Sd.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=Mw.getComponentMethod(o,"supplyLayoutDefaults"),s=Mw.getComponentMethod(o,"draw"),u=Mw.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===Aw||s===Aw,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&kd.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(KH(d))t.set(null);else if(Array.isArray(d))t.set(d);else return kd.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(M8e),m=t.get(),y=m||[],b=i(v,o).get(),T=[],w=-1,x=y.length,_,k,M,q,C,E,P,R;for(_=0;_<p.length;_++){if(M=p[_],q=a[M],C=Object.keys(q),E=q[""],P=k8e(E),M<0||M>y.length-(P?0:1)){kd.warn("index out of range",o,M);continue}if(E!==void 0)C.length>1&&kd.warn("Insertion & removal are incompatible with edits to the same index.",o,M),KH(E)?T.push(M):P?(E==="add"&&(E={}),y.splice(M,0,E),b&&b.splice(M,0,{})):kd.warn("Unrecognized full object edit value",o,M,E),w===-1&&(w=M);else for(k=0;k<C.length;k++)R=o+"["+M+"].",i(y[M],C[k],R).set(q[C[k]])}for(_=T.length-1;_>=0;_--)y.splice(T[_],1),b&&b.splice(T[_],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(l(c,v),u!==Aw){var B;if(w===-1)B=p;else{for(x=Math.max(y.length,x),B=[],_=0;_<p.length&&(M=p[_],!(M>=w));_++)B.push(M);for(_=w;_<x;_++)B.push(_)}for(_=0;_<B.length;_++)u(r,B[_])}else s(r);return!0}});var oU=z(ro=>{"use strict";var aU=Br(),nU=Ar(),Fn=ke(),qd=_a(),iU=Ca(),Ld=iU.cleanId,S8e=iU.getFromTrace,kw=nU.traceIs,q8e=["x","y","z"];ro.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Fn.log("Clearing previous rejected promises from queue."),e._promises=[]};ro.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 a=(qd.subplotsRegistry.cartesian||{}).attrRegex,n=(qd.subplotsRegistry.polar||{}).attrRegex,i=(qd.subplotsRegistry.ternary||{}).attrRegex,o=(qd.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r<l.length;r++){var s=l[r];if(a&&a.test(s)){var u=e[s];u.anchor&&u.anchor!=="free"&&(u.anchor=Ld(u.anchor)),u.overlaying&&(u.overlaying=Ld(u.overlaying)),u.type||(u.isdate?u.type="date":u.islog?u.type="log":u.isdate===!1&&u.islog===!1&&(u.type="linear")),(u.autorange==="withzero"||u.autorange==="tozero")&&(u.autorange=!0,u.rangemode="tozero"),u.insiderange&&delete u.range,delete u.islog,delete u.isdate,delete u.categories,Yy(u,"domain")&&delete u.domain}}var f=Array.isArray(e.annotations)?e.annotations.length:0;for(r=0;r<f;r++){var c=e.annotations[r];Fn.isPlainObject(c)&&(T0(c,"xref"),T0(c,"yref"))}var v=Array.isArray(e.shapes)?e.shapes.length:0;for(r=0;r<v;r++){var d=e.shapes[r];Fn.isPlainObject(d)&&(T0(d,"xref",!0),T0(d,"yref",!0))}var p=Array.isArray(e.images)?e.images.length:0;for(r=0;r<p;r++){var m=e.images[r];Fn.isPlainObject(m)&&(T0(m,"xref"),T0(m,"yref"))}var y=e.legend;return y&&(y.x>3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&ro.cleanLayout(e.template.layout),e};function T0(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Ld(a,n,!0))}ro.cleanData=function(e){for(var r=0;r<e.length;r++){var t=e[r],a;if(t.type==="histogramy"&&"xbins"in t&&!("ybins"in t)&&(t.ybins=t.xbins,delete t.xbins),t.type==="histogramy"&&ro.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=Ld(t.xaxis,"x")),t.yaxis&&(t.yaxis=Ld(t.yaxis,"y")),kw(t,"gl3d")&&t.scene&&(t.scene=qd.subplotsRegistry.gl3d.cleanId(t.scene)),!kw(t,"pie-like")&&!kw(t,"bar-like"))if(Array.isArray(t.textposition))for(a=0;a<t.textposition.length;a++)t.textposition[a]=rU(t.textposition[a]);else t.textposition&&(t.textposition=rU(t.textposition));var n=nU.getModule(t);if(n&&n.colorbar){var i=n.colorbar.container,o=i?t[i]:t;o&&o.colorscale&&(o.colorscale==="YIGnBu"&&(o.colorscale="YlGnBu"),o.colorscale==="YIOrRd"&&(o.colorscale="YlOrRd"))}if(t.type==="surface"&&Fn.isPlainObject(t.contours)){var l=["x","y","z"];for(a=0;a<l.length;a++){var s=t.contours[l[a]];Fn.isPlainObject(s)&&(s.highlightColor&&(s.highlightcolor=s.highlightColor,delete s.highlightColor),s.highlightWidth&&(s.highlightwidth=s.highlightWidth,delete s.highlightWidth))}}if(t.type==="candlestick"||t.type==="ohlc"){var u=(t.increasing||{}).showlegend!==!1,f=(t.decreasing||{}).showlegend!==!1,c=eU(t.increasing),v=eU(t.decreasing);if(c!==!1&&v!==!1){var d=L8e(c,v,u,f);d&&(t.name=d)}else(c||v)&&!t.name&&(t.name=c||v)}Yy(t,"line")&&delete t.line,"marker"in t&&(Yy(t.marker,"line")&&delete t.marker.line,Yy(t,"marker")&&delete t.marker),t.autobinx&&(delete t.autobinx,delete t.xbins),t.autobiny&&(delete t.autobiny,delete t.ybins)}};function eU(e){if(!Fn.isPlainObject(e))return!1;var r=e.name;return delete e.name,delete e.showlegend,(typeof r=="string"||typeof r=="number")&&String(r)}function L8e(e,r,t,a){if(t&&!a)return e;if(a&&!t||!e.trim())return r;if(!r.trim())return e;var n=Math.min(e.length,r.length),i;for(i=0;i<n&&e.charAt(i)===r.charAt(i);i++);var o=e.slice(0,i);return o.trim()}function rU(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 Yy(e,r){return r in e&&typeof e[r]=="object"&&Object.keys(e[r]).length===0}ro.swapXYData=function(e){var r;if(Fn.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,a="copy_ystyle"in t?t.copy_ystyle:!(t.color||t.thickness||t.width);Fn.swapAttrs(e,["error_?.copy_ystyle"]),a&&Fn.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if(typeof e.hoverinfo=="string"){var n=e.hoverinfo.split("+");for(r=0;r<n.length;r++)n[r]==="x"?n[r]="y":n[r]==="y"&&(n[r]="x");e.hoverinfo=n.join("+")}};ro.coerceTraceIndices=function(e,r){if(aU(r))return[r];if(!Array.isArray(r)||!r.length)return e.data.map(function(n,i){return i});if(Array.isArray(r)){for(var t=[],a=0;a<r.length;a++)Fn.isIndex(r[a],e.data.length)?t.push(r[a]):Fn.warn("trace index (",r[a],") is not a number or is out of bounds");return t}return r};ro.manageArrayContainers=function(e,r,t){var a=e.obj,n=e.parts,i=n.length,o=n[i-1],l=aU(o);if(l&&r===null){var s=n.slice(0,i-1).join("."),u=Fn.nestedProperty(a,s).get();u.splice(o,1)}else l&&e.get()===void 0&&e.get()===void 0&&(t[e.astr]=null),e.set(r)};var C8e=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function tU(e){var r=e.search(C8e);if(r>0)return e.slice(0,r)}ro.hasParent=function(e,r){for(var t=tU(r);t;){if(t in e)return!0;t=tU(t)}return!1};ro.clearAxisTypes=function(e,r,t){for(var a=0;a<r.length;a++)for(var n=e._fullData[a],i=0;i<3;i++){var o=S8e(e,n,q8e[i]);if(o&&o.type!=="log"){var l=o._name,s=o._id.slice(1);if(s.slice(0,5)==="scene"){if(t[s]!==void 0)continue;l=s+"."+l}var u=l+".type";t[l]===void 0&&t[u]===void 0&&Fn.nestedProperty(e.layout,u).set(null)}}};var Sw=(e,r)=>{let t=(...a)=>a.every(n=>Fn.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;a<e.length;a++){let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?Sw(n,i):!1))return!1}return!0}else if([e,r].every(a=>Fn.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?Sw(n,i):!1))return!1}return!0}return!1};ro.collectionsAreEqual=Sw});var Ew=z(Kr=>{"use strict";var Xy=Pr(),D8e=Br(),E8e=C4(),or=ke(),zt=or.nestedProperty,Lw=Ch(),jn=$P(),to=Ar(),rg=$c(),Cr=_a(),zn=jr(),P8e=$6(),R8e=ji(),jy=et(),F8e=qr(),z8e=Tw().initInteractions,N8e=(Wl(),Ne(jl)),I8e=Al().clearOutline,cU=As().dfltConfig,Vy=QH(),Ma=oU(),wt=ky(),Ks=Do(),B8e=(Ha(),Ne(Oa)).AX_NAME_PATTERN,qw=0,lU=5;function O8e(e,r,t,a){var n;if(e=or.getGraphDiv(e),Lw.init(e),or.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=Lw.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!or.isPlotDiv(e)&&or.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Kr.addFrames(e,n)}hU(e,a),t||(t={}),Xy.select(e).classed("js-plotly-plot",!0),jy.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Ma.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Ma.cleanLayout(t)),Cr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(f9e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),jy.initGradients(e),jy.initPatterns(e),s&&zn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Cr.doCalcdata(e);for(var v=0;v<e.calcdata.length;v++)e.calcdata[v][0].trace=e._fullData[v];if(e._context.responsive){if(!e._clearResponsive){let q=()=>{or.isHidden(e)||Cr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",q),e._clearResponsive=()=>window.removeEventListener("resize",q);else{let C=e.offsetWidth,E=e.offsetHeight,P=new ResizeObserver(()=>{let R=e.offsetWidth,B=e.offsetHeight,I=Math.abs(R-C)>1||Math.abs(B-E)>1;C=R,E=B,I&&R&&B&&q()});P.observe(e),e._clearResponsive=()=>P.disconnect()}}}else or.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(q=>q.status!=="loaded"):[];var p=or.extendFlat({},u._size),m=0;function y(){for(var q=u._basePlotModules,C=0;C<q.length;C++)q[C].drawFramework&&q[C].drawFramework(e);!u._glcanvas&&u._has("gl")&&(u._glcanvas=u._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(B){return B.key}),u._glcanvas.enter().append("canvas").attr("class",function(B){return"gl-canvas gl-canvas-"+B.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var E=e._context.plotGlPixelRatio;if(u._glcanvas){u._glcanvas.attr("width",u.width*E).attr("height",u.height*E).style("width",u.width+"px").style("height",u.height+"px");var P=u._glcanvas.data()[0].regl;if(P&&(Math.floor(u.width*E)!==P._gl.drawingBufferWidth||Math.floor(u.height*E)!==P._gl.drawingBufferHeight)){var R="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(m)or.error(R);else return or.log(R+" Clearing graph and plotting again."),Cr.cleanPlot([],{},e._fullData,u),Cr.supplyDefaults(e),u=e._fullLayout,Cr.doCalcdata(e),m++,y()}}return u.modebar.orientation==="h"?u._modebardiv.style("height",null).style("width","100%"):u._modebardiv.style("width",null).style("height",u.height+"px"),Cr.previousPromises(e)}function b(){if(Cr.clearAutoMarginIds(e),wt.drawMarginPushers(e),zn.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&Cr.allowAutoMargin(e,"title.automargin"),u._has("pie"))for(var q=e._fullData,C=0;C<q.length;C++){var E=q[C];E.type==="pie"&&E.automargin&&Cr.allowAutoMargin(e,"pie."+E.uid+".automargin")}return Cr.doAutoMargin(e),Cr.previousPromises(e)}function T(){if(Cr.didMarginChange(p,u._size))return b()}function w(){if(!c){x();return}return or.syncOrAsync([to.getComponentMethod("shapes","calcAutorange"),to.getComponentMethod("annotations","calcAutorange"),x],e)}function x(){e._transitioning||(wt.doAutoRangeAndConstraints(e),s&&zn.saveRangeInitial(e),to.getComponentMethod("rangeslider","calcAutorange")(e))}function _(){return zn.draw(e,s?"":"redraw")}var k=[Cr.previousPromises,l,y,b,T];f&&k.push(w),k.push(wt.layoutStyles),f&&k.push(_,function(C){var E=C._fullLayout._insideTickLabelsUpdaterange;if(E)return C._fullLayout._insideTickLabelsUpdaterange=void 0,Cd(C,E).then(function(){zn.saveRangeInitial(C,!0)})}),k.push(wt.drawData,wt.finalDraw,z8e,Cr.rehover,Cr.redrag,Cr.reselect,Cr.doAutoMargin,Cr.previousPromises);var M=or.syncOrAsync(k,e);return(!M||!M.then)&&(M=Promise.resolve()),M.then(function(){return H8e(e,d),Dd(e),e})}function H8e(e,r){return jS(this,null,function*(){let t=r.filter(n=>["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,jy.savedBBoxes={},Kr._doPlot(e))})}function Dd(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function U8e(e){return or.extendFlat(cU,e)}function vU(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){or.error(t)}}function G8e(e,r){var t=F8e.combine(r,"white");vU(e,t)}function hU(e,r){if(!e._context){e._context=or.extendDeep({},cU);var t=Xy.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,o;if(r){for(i=Object.keys(r),n=0;n<i.length;n++)o=i[n],!(o==="editable"||o==="edits")&&o in a&&(o==="setBackground"&&r[o]==="opaque"?a[o]=G8e:a[o]=r[o]);var l=r.editable;if(l!==void 0)for(a.editable=l,i=Object.keys(a.edits),n=0;n<i.length;n++)a.edits[i[n]]=l;if(r.edits)for(i=Object.keys(r.edits),n=0;n<i.length;n++)o=i[n],o in a.edits&&(a.edits[o]=r.edits[o]);a._exportedPlot=r._exportedPlot}a.staticPlot&&(a.editable=!1,a.edits={},a.autosizable=!1,a.scrollZoom=!1,a.doubleClick=!1,a.showTips=!1,a.displayModeBar=!1),a.displayModeBar==="hover"&&!E8e&&(a.displayModeBar=!0),(a.setBackground==="transparent"||typeof a.setBackground!="function")&&(a.setBackground=vU),a._hasZeroHeight=a._hasZeroHeight||e.clientHeight===0,a._hasZeroWidth=a._hasZeroWidth||e.clientWidth===0;var s=a.scrollZoom,u=a._scrollZoom={};if(s===!0)u.cartesian=1,u.gl3d=1,u.geo=1,u.map=1;else if(typeof s=="string"){var f=s.split("+");for(n=0;n<f.length;n++)u[f[n]]=1}else s!==!1&&(u.gl3d=1,u.geo=1,u.map=1)}function Y8e(e){if(e=or.getGraphDiv(e),!or.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return Ma.cleanData(e.data),Ma.cleanLayout(e.layout),e.calcdata=void 0,Kr._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function V8e(e,r,t,a){return e=or.getGraphDiv(e),Cr.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),Cr.purge(e),Kr._doPlot(e,r,t,a)}function Zy(e,r){var t=r+1,a=[],n,i;for(n=0;n<e.length;n++)i=e[n],i<0?a.push(t+i):a.push(i);return a}function $y(e,r,t){var a,n;for(a=0;a<r.length;a++){if(n=r[a],n!==parseInt(n,10))throw new Error("all values in "+t+" must be integers");if(n>=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function dU(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]),$y(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&$y(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function j8e(e,r,t){var a,n;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]),a=0;a<r.length;a++)if(n=r[a],typeof n!="object"||Array.isArray(n)||n===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 W8e(e,r,t,a){var n=or.isPlainObject(a);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!or.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");$y(e,t,"indices");for(var i in r){if(!Array.isArray(r[i])||r[i].length!==t.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(n&&(!(i in a)||!Array.isArray(a[i])||a[i].length!==r[i].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 X8e(e,r,t,a){var n=or.isPlainObject(a),i=[],o,l,s,u,f;Array.isArray(t)||(t=[t]),t=Zy(t,e.data.length-1);for(var c in r)for(var v=0;v<t.length;v++){if(o=e.data[t[v]],s=zt(o,c),l=s.get(),u=r[c][v],!or.isArrayOrTypedArray(u))throw new Error("attribute: "+c+" index: "+v+" must be an array");if(!or.isArrayOrTypedArray(l))throw new Error("cannot extend missing or non-array attribute: "+c);if(l.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+c);f=n?a[c][v]:a,D8e(f)||(f=-1),i.push({prop:s,target:l,insert:u,maxp:Math.floor(f)})}return i}function pU(e,r,t,a,n){W8e(e,r,t,a);for(var i=X8e(e,r,t,a),o={},l={},s=0;s<i.length;s++){var u=i[s].prop,f=i[s].maxp,c=n(i[s].target,i[s].insert,f);u.set(c[0]),Array.isArray(o[u.astr])||(o[u.astr]=[]),o[u.astr].push(c[1]),Array.isArray(l[u.astr])||(l[u.astr]=[]),l[u.astr].push(i[s].target.length)}return{update:o,maxPoints:l}}function mU(e,r){var t=new e.constructor(e.length+r.length);return t.set(e),t.set(r,e.length),t}function yU(e,r,t,a){e=or.getGraphDiv(e);function n(s,u,f){var c,v;if(or.isTypedArray(s))if(f<0){var d=new s.constructor(0),p=mU(s,u);f<0?(c=p,v=d):(c=d,v=p)}else if(c=new s.constructor(f),v=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),v.set(s);else if(f<u.length){var m=u.length-f;c.set(u.subarray(m)),v.set(s),v.set(u.subarray(0,m),s.length)}else{var y=f-u.length,b=s.length-y;c.set(s.subarray(b)),c.set(u,y),v.set(s.subarray(0,b))}else c=s.concat(u),v=f>=0&&f<c.length?c.splice(0,c.length-f):[];return[c,v]}var i=pU(e,r,t,a,n),o=Kr.redraw(e),l=[e,i.update,t,i.maxPoints];return jn.add(e,Kr.prependTraces,l,yU,arguments),o}function gU(e,r,t,a){e=or.getGraphDiv(e);function n(s,u,f){var c,v;if(or.isTypedArray(s))if(f<=0){var d=new s.constructor(0),p=mU(u,s);f<0?(c=p,v=d):(c=d,v=p)}else if(c=new s.constructor(f),v=new s.constructor(s.length+u.length-f),f===u.length)c.set(u),v.set(s);else if(f<u.length){var m=u.length-f;c.set(u.subarray(0,m)),v.set(u.subarray(m)),v.set(s,m)}else{var y=f-u.length;c.set(u),c.set(s.subarray(0,y),u.length),v.set(s.subarray(y))}else c=u.concat(s),v=f>=0&&f<c.length?c.splice(f,c.length):[];return[c,v]}var i=pU(e,r,t,a,n),o=Kr.redraw(e),l=[e,i.update,t,i.maxPoints];return jn.add(e,Kr.extendTraces,l,gU,arguments),o}function bU(e,r,t){e=or.getGraphDiv(e);var a=[],n=Kr.deleteTraces,i=bU,o=[e,a],l=[e,r],s,u;for(j8e(e,r,t),Array.isArray(r)||(r=[r]),r=r.map(function(f){return or.extendFlat({},f)}),Ma.cleanData(r),s=0;s<r.length;s++)e.data.push(r[s]);for(s=0;s<r.length;s++)a.push(-r.length+s);if(typeof t=="undefined")return u=Kr.redraw(e),jn.add(e,n,o,i,l),u;Array.isArray(t)||(t=[t]);try{dU(e,a,t)}catch(f){throw e.data.splice(e.data.length-r.length,r.length),f}return jn.startSequence(e),jn.add(e,n,o,i,l),u=Kr.moveTraces(e,a,t),jn.stopSequence(e),u}function xU(e,r){e=or.getGraphDiv(e);var t=[],a=Kr.addTraces,n=xU,i=[e,t,r],o=[e,r],l,s;if(typeof r=="undefined")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),$y(e,r,"indices"),r=Zy(r,e.data.length-1),r.sort(or.sorterDes),l=0;l<r.length;l+=1)s=e.data.splice(r[l],1)[0],t.push(s);var u=Kr.redraw(e);return jn.add(e,a,i,n,o),u}function Cw(e,r,t){e=or.getGraphDiv(e);var a=[],n=[],i=Cw,o=Cw,l=[e,t,r],s=[e,r,t],u;if(dU(e,r,t),r=Array.isArray(r)?r:[r],typeof t=="undefined")for(t=[],u=0;u<r.length;u++)t.push(-r.length+u);for(t=Array.isArray(t)?t:[t],r=Zy(r,e.data.length-1),t=Zy(t,e.data.length-1),u=0;u<e.data.length;u++)r.indexOf(u)===-1&&a.push(e.data[u]);for(u=0;u<r.length;u++)n.push({newIndex:t[u],trace:e.data[r[u]]});for(n.sort(function(c,v){return c.newIndex-v.newIndex}),u=0;u<n.length;u+=1)a.splice(n[u].newIndex,0,n[u].trace);e.data=a;var f=Kr.redraw(e);return jn.add(e,i,l,o,s),f}function Jy(e,r,t,a){e=or.getGraphDiv(e),Ma.clearPromiseQueue(e);var n={};if(typeof r=="string")n[r]=t;else if(or.isPlainObject(r))n=or.extendFlat({},r),a===void 0&&(a=t);else return or.warn("Restyle fail.",r,t,a),Promise.reject();Object.keys(n).length&&(e.changed=!0);var i=Ma.coerceTraceIndices(e,a),o=_U(e,n,i),l=o.flags;l.calc&&(e.calcdata=void 0),l.clearAxisTypes&&Ma.clearAxisTypes(e,i,{});var s=[];l.fullReplot?s.push(Kr._doPlot):(s.push(Cr.previousPromises),Cr.supplyDefaults(e),l.markerSize&&(Cr.doCalcdata(e),tg(s)),l.style&&s.push(wt.doTraceStyle),l.colorbars&&s.push(wt.doColorBars),s.push(Dd)),s.push(Cr.rehover,Cr.redrag,Cr.reselect),jn.add(e,Jy,[e,o.undoit,o.traces],Jy,[e,o.redoit,o.traces]);var u=or.syncOrAsync(s,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e.emit("plotly_restyle",o.eventData),e})}function rs(e){return e===void 0?null:e}function Wy(e,r){return r?function(t,a,n){var i=zt(t,a),o=i.set;return i.set=function(l){var s=(n||"")+a;Ky(s,i.get(),l,e),o(l)},i}:zt}function Ky(e,r,t,a){if(Array.isArray(r)||Array.isArray(t))for(var n=Array.isArray(r)?r:[],i=Array.isArray(t)?t:[],o=Math.max(n.length,i.length),l=0;l<o;l++)Ky(e+"["+l+"]",n[l],i[l],a);else if(or.isPlainObject(r)||or.isPlainObject(t)){var s=or.isPlainObject(r)?r:{},u=or.isPlainObject(t)?t:{},f=or.extendFlat({},s,u);for(var c in f)Ky(e+"."+c,s[c],u[c],a)}else a[e]===void 0&&(a[e]=rs(r))}function Z8e(e,r,t){for(var a in t){var n=zt(e,a);Ky(a,n.get(),t[a],r)}}function _U(e,r,t){var a=e._fullLayout,n=e._fullData,i=e.data,o=a._guiEditing,l=Wy(a._preGUI,o),s=or.extendDeepAll({},r),u,f=Ks.traceFlags(),c={},v={},d;function p(){return t.map(function(){})}function m(oe){var Ae=zn.id2name(oe);d.indexOf(Ae)===-1&&d.push(Ae)}function y(oe){return"LAYOUT"+oe+".autorange"}function b(oe){return"LAYOUT"+oe+".range"}function T(oe,Ae,Pe){if(Array.isArray(oe)){oe.forEach(function(Le){T(Le,Ae,Pe)});return}if(!(oe in r||Ma.hasParent(r,oe))){var me;if(oe.slice(0,6)==="LAYOUT")me=l(e.layout,oe.replace("LAYOUT",""));else{var Ce=t[Pe],Me=a._tracePreGUI[n[Ce].uid];me=Wy(Me,o)(i[Ce],oe)}oe in v||(v[oe]=p()),v[oe][Pe]===void 0&&(v[oe][Pe]=rs(me.get())),Ae!==void 0&&me.set(Ae)}}function w(oe){return function(Ae){return n[Ae][oe]}}function x(oe){return function(Ae,Pe){return Ae===!1?n[t[Pe]][oe]:null}}for(var _ in r){if(Ma.hasParent(r,_))throw new Error("cannot set "+_+" and a parent attribute simultaneously");var k=r[_],M,q,C,E,P,R;if((_==="autobinx"||_==="autobiny")&&(_=_.charAt(_.length-1)+"bins",Array.isArray(k)?k=k.map(x(_)):k===!1?k=t.map(w(_)):k=null),c[_]=k,_.slice(0,6)==="LAYOUT"){C=l(e.layout,_.replace("LAYOUT","")),v[_]=[rs(C.get())],C.set(Array.isArray(k)?k[0]:k),f.calc=!0;continue}for(v[_]=p(),u=0;u<t.length;u++){M=i[t[u]],q=n[t[u]];var B=a._tracePreGUI[q.uid];if(C=Wy(B,o)(M,_),E=C.get(),P=Array.isArray(k)?k[u%k.length]:k,P!==void 0){var I=C.parts[C.parts.length-1],N=_.slice(0,_.length-I.length-1),H=N?N+".":"",G=N?zt(q,N).get():q;if(R=rg.getTraceValObject(q,C.parts),R&&R.impliedEdits&&P!==null)for(var Y in R.impliedEdits)T(or.relativeAttr(_,Y),R.impliedEdits[Y],u);else if((I==="thicknessmode"||I==="lenmode")&&E!==P&&(P==="fraction"||P==="pixels")&&G){var j=a._size,W=G.orient,V=W==="top"||W==="bottom";if(I==="thicknessmode"){var J=V?j.h:j.w;T(H+"thickness",G.thickness*(P==="fraction"?1/J:J),u)}else{var re=V?j.w:j.h;T(H+"len",G.len*(P==="fraction"?1/re:re),u)}}else if(_==="type"&&(P==="pie"!=(E==="pie")||P==="funnelarea"!=(E==="funnelarea"))){var le="x",ne="y";(P==="bar"||E==="bar")&&M.orientation==="h"&&(le="y",ne="x"),or.swapAttrs(M,["?"],"labels",le),or.swapAttrs(M,["d?","?0"],"label",le),or.swapAttrs(M,["?"],"values",ne),E==="pie"||E==="funnelarea"?(zt(M,"marker.color").set(zt(M,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):to.traceIs(M,"cartesian")&&zt(M,"marker.colors").set(zt(M,"marker.color").get())}v[_][u]=rs(E);var $=["swapxy","swapxyaxes","orientation","orientationaxes"];if($.indexOf(_)!==-1){if(_==="orientation"){C.set(P);var ce=M.x&&!M.y?"h":"v";if((C.get()||ce)===q.orientation)continue}else _==="orientationaxes"&&(M.orientation={v:"h",h:"v"}[q.orientation]);Ma.swapXYData(M),f.calc=f.clearAxisTypes=!0}else Cr.dataArrayContainers.indexOf(C.parts[0])!==-1?(Ma.manageArrayContainers(C,P,v),f.calc=!0):(R?R.arrayOk&&!to.traceIs(q,"regl")&&(or.isArrayOrTypedArray(P)||or.isArrayOrTypedArray(E))?f.calc=!0:Ks.update(f,R):f.calc=!0,C.set(P))}}if(["swapxyaxes","orientationaxes"].indexOf(_)!==-1&&zn.swap(e,t),_==="orientationaxes"){var te=zt(e.layout,"hovermode"),ge=te.get();ge==="x"?te.set("y"):ge==="y"?te.set("x"):ge==="x unified"?te.set("y unified"):ge==="y unified"&&te.set("x unified")}if(["orientation","type"].indexOf(_)!==-1){for(d=[],u=0;u<t.length;u++){var se=i[t[u]];to.traceIs(se,"cartesian")&&(m(se.xaxis||"x"),m(se.yaxis||"y"))}T(d.map(y),!0,0),T(d.map(b),[0,1],0)}}return(f.calc||f.plot)&&(f.fullReplot=!0),{flags:f,undoit:v,redoit:c,traces:t,eventData:or.extendDeepNoArrays([],[s,t])}}function Cd(e,r,t){e=or.getGraphDiv(e),Ma.clearPromiseQueue(e);var a={};if(typeof r=="string")a[r]=t;else if(or.isPlainObject(r))a=or.extendFlat({},r);else return or.warn("Relayout fail.",r,t),Promise.reject();Object.keys(a).length&&(e.changed=!0);var n=MU(e,a),i=n.flags;i.calc&&(e.calcdata=void 0);var o=[Cr.previousPromises];i.layoutReplot?o.push(wt.layoutReplot):Object.keys(a).length&&(wU(e,i,n)||Cr.supplyDefaults(e),i.legend&&o.push(wt.doLegend),i.layoutstyle&&o.push(wt.layoutStyles),i.axrange&&tg(o,n.rangesAltered),i.ticks&&o.push(wt.doTicksRelayout),i.modebar&&o.push(wt.doModeBar),i.camera&&o.push(wt.doCamera),i.colorbars&&o.push(wt.doColorBars),o.push(Dd)),o.push(Cr.rehover,Cr.redrag,Cr.reselect),jn.add(e,Cd,[e,n.undoit],Cd,[e,n.redoit]);var l=or.syncOrAsync(o,e);return(!l||!l.then)&&(l=Promise.resolve(e)),l.then(function(){return e.emit("plotly_relayout",n.eventData),e})}function wU(e,r,t){var a=e._fullLayout;if(!r.axrange)return!1;for(var n in r)if(n!=="axrange"&&r[n])return!1;var i,o,l=function(d,p){return or.coerce(i,o,R8e,d,p)},s={};for(var u in t.rangesAltered){var f=zn.id2name(u);if(i=e.layout[f],o=a[f],P8e(i,o,l,s),o._matchGroup){for(var c in o._matchGroup)if(c!==u){var v=a[zn.id2name(c)];v.autorange=o.autorange,v.range=o.range.slice(),v._input.range=o.range.slice()}}}return!0}function tg(e,r){var t=r?function(a){var n=[],i=!0;for(var o in r){var l=zn.getFromId(a,o);if(n.push(o),(l.ticklabelposition||"").indexOf("inside")!==-1&&l._anchorAxis&&n.push(l._anchorAxis._id),l._matchGroup)for(var s in l._matchGroup)r[s]||n.push(s)}return zn.draw(a,n,{skipTitle:i})}:function(a){return zn.draw(a,"redraw")};e.push(I8e,wt.doAutoRangeAndConstraints,t,wt.drawData,wt.finalDraw)}var TU=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,AU=/^[xyz]axis[0-9]*\.autorange$/,$8e=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function MU(e,r){var t=e.layout,a=e._fullLayout,n=a._guiEditing,i=Wy(a._preGUI,n),o=Object.keys(r),l=zn.list(e),s=or.extendDeepAll({},r),u={},f,c,v;for(o=Object.keys(r),c=0;c<o.length;c++)if(o[c].indexOf("allaxes")===0){for(v=0;v<l.length;v++){var d=l[v]._id.slice(1),p=d.indexOf("scene")!==-1?d+".":"",m=o[c].replace("allaxes",p+l[v]._name);r[m]||(r[m]=r[o[c]])}delete r[o[c]]}var y=Ks.layoutFlags(),b={},T={};function w(Le,Se){if(Array.isArray(Le)){Le.forEach(function(qe){w(qe,Se)});return}if(!(Le in r||Ma.hasParent(r,Le))){var Ee=i(t,Le);Le in T||(T[Le]=rs(Ee.get())),Se!==void 0&&Ee.set(Se)}}var x={},_;function k(Le){var Se=zn.name2id(Le.split(".")[0]);return x[Se]=1,Se}for(var M in r){if(Ma.hasParent(r,M))throw new Error("cannot set "+M+" and a parent attribute simultaneously");for(var q=i(t,M),C=r[M],E=q.parts.length,P=E-1;P>0&&typeof q.parts[P]!="string";)P--;var R=q.parts[P],B=q.parts[P-1]+"."+R,I=q.parts.slice(0,P).join("."),N=zt(e.layout,I).get(),H=zt(a,I).get(),G=q.get();if(C!==void 0){b[M]=C,T[M]=R==="reverse"?C:rs(G);var Y=rg.getLayoutValObject(a,q.parts);if(Y&&Y.impliedEdits&&C!==null)for(var j in Y.impliedEdits)w(or.relativeAttr(M,j),Y.impliedEdits[j]);if(["width","height"].indexOf(M)!==-1)if(C){w("autosize",null);var W=M==="height"?"width":"height";w(W,a[W])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")w("width",C?null:a.width),w("height",C?null:a.height);else if(B.match(TU))k(B),zt(a,I+"._inputRange").set(null);else if(B.match(AU)){k(B),zt(a,I+"._inputRange").set(null);var V=zt(a,I).get();V._inputDomain&&(V._input.domain=V._inputDomain.slice())}else B.match($8e)&&zt(a,I+"._inputDomain").set(null);if(R==="type"){_=N;var J=H.type==="linear"&&C==="log",re=H.type==="log"&&C==="linear";if(J||re){if(!_||!_.range)w(I+".autorange",!0);else if(H.autorange)J&&(_.range=_.range[1]>_.range[0]?[1,2]:[2,1]);else{var le=_.range[0],ne=_.range[1];J?(le<=0&&ne<=0&&w(I+".autorange",!0),le<=0?le=ne/1e6:ne<=0&&(ne=le/1e6),w(I+".range[0]",Math.log(le)/Math.LN10),w(I+".range[1]",Math.log(ne)/Math.LN10)):(w(I+".range[0]",Math.pow(10,le)),w(I+".range[1]",Math.pow(10,ne)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],to.getComponentMethod("annotations","convertCoords")(e,H,C,w),to.getComponentMethod("images","convertCoords")(e,H,C,w)}else w(I+".autorange",!0),w(I+".range",null);zt(a,I+"._inputRange").set(null)}else if(R.match(B8e)){var $=zt(a,M).get(),ce=(C||{}).type;(!ce||ce==="-")&&(ce="linear"),to.getComponentMethod("annotations","convertCoords")(e,$,ce,w),to.getComponentMethod("images","convertCoords")(e,$,ce,w),!I&&$&&C&&(C.range!==void 0||C.autorange!==void 0)&&(k(`${R}.range`),$._inputRange=null)}var te=Vy.containerArrayMatch(M);if(te){f=te.array,c=te.index;var ge=te.property,se=Y||{editType:"calc"};c!==""&&ge===""&&(Vy.isAddVal(C)?T[M]=null:Vy.isRemoveVal(C)?T[M]=(zt(t,f).get()||[])[c]:or.warn("unrecognized full object value",r)),Ks.update(y,se),u[f]||(u[f]={});var oe=u[f][c];oe||(oe=u[f][c]={}),oe[ge]=C,delete r[M]}else R==="reverse"?(N.range?N.range.reverse():(w(I+".autorange",!0),N.range=[1,0]),H.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(C===!1&&G!==!1||C!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(C==="lasso"||C==="select")&&!(G==="lasso"||G==="select")?y.plot=!0:Y?Ks.update(y,Y):y.calc=!0,q.set(C))}}for(f in u){var Ae=Vy.applyContainerArrayChanges(e,i(t,f),u[f],y,i);Ae||(y.plot=!0)}for(var Pe in x){_=zn.getFromId(e,Pe);var me=_&&_._constraintGroup;if(me){y.calc=!0;for(var Ce in me)x[Ce]||(zn.getFromId(e,Ce)._constraintShrinkable=!0)}}(kU(e)||r.height||r.width)&&(y.plot=!0);var Me=a.shapes;for(c=0;c<Me.length;c++)if(Me[c].showlegend){y.calc=!0;break}return(y.plot||y.calc)&&(y.layoutReplot=!0),{flags:y,rangesAltered:x,undoit:T,redoit:b,eventData:s}}function kU(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&Cr.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function Qy(e,r,t,a){e=or.getGraphDiv(e),Ma.clearPromiseQueue(e),or.isPlainObject(r)||(r={}),or.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=Ma.coerceTraceIndices(e,a),i=_U(e,or.extendFlat({},r),n),o=i.flags,l=MU(e,or.extendFlat({},t)),s=l.flags;(o.calc||s.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&Ma.clearAxisTypes(e,n,t);var u=[];s.layoutReplot?u.push(wt.layoutReplot):o.fullReplot?u.push(Kr._doPlot):(u.push(Cr.previousPromises),wU(e,s,l)||Cr.supplyDefaults(e),o.style&&u.push(wt.doTraceStyle),(o.colorbars||s.colorbars)&&u.push(wt.doColorBars),s.legend&&u.push(wt.doLegend),s.layoutstyle&&u.push(wt.layoutStyles),s.axrange&&tg(u,l.rangesAltered),s.ticks&&u.push(wt.doTicksRelayout),s.modebar&&u.push(wt.doModeBar),s.camera&&u.push(wt.doCamera),u.push(Dd)),u.push(Cr.rehover,Cr.redrag,Cr.reselect),jn.add(e,Qy,[e,i.undoit,l.undoit,i.traces],Qy,[e,i.redoit,l.redoit,i.traces]);var f=or.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve(e)),f.then(function(){return e.emit("plotly_update",{data:i.eventData,layout:l.eventData}),e})}function Dw(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var J8e=[{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"}],K8e=[{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 sU(e,r){for(var t=0;t<r.length;t++){var a=r[t],n=e.match(a.pattern);if(n){var i=n[1]||"";return{head:i,tail:e.slice(i.length+1),attr:a.attr}}}}function uU(e,r){var t=zt(r,e).get();if(t!==void 0)return t;var a=e.split(".");for(a.pop();a.length>1;)if(a.pop(),t=zt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Q8e(e,r){for(var t=0;t<r.length;t++)if(r[t].uid===e)return t;return-1}function e9e(e,r,t){for(var a=0;a<r.length;a++)if(r[a].uid===e)return a;return!r[t]||r[t].uid?-1:t}function fU(e,r){var t=or.isPlainObject(e),a=Array.isArray(e);return t||a?(t&&or.isPlainObject(r)||a&&Array.isArray(r))&&JSON.stringify(e)===JSON.stringify(r):e===r}function r9e(e,r,t,a){var n=a._preGUI,i,o,l,s,u,f,c,v,d,p,m=[],y={},b={};for(i in n){if(u=sU(i,J8e),u){if(d=u.head,p=u.tail,o=u.attr||d+".uirevision",l=zt(a,o).get(),s=l&&uU(o,r),s&&s===l){if(f=n[i],f===null&&(f=void 0),c=zt(r,i),v=c.get(),fU(v,f)){v===void 0&&p==="autorange"&&m.push(d),c.set(rs(zt(a,i).get()));continue}else if(p==="autorange"||p.slice(0,6)==="range["){var T=n[d+".range[0]"],w=n[d+".range[1]"],x=n[d+".autorange"];if(x||x===null&&T===null&&w===null){if(!(d in y)){var _=zt(r,d).get();y[d]=_&&(_.autorange||_.autorange!==!1&&(!_.range||_.range.length!==2))}if(y[d]){c.set(rs(zt(a,i).get()));continue}}}}}else or.warn("unrecognized GUI edit: "+i);delete n[i],u&&u.tail.slice(0,6)==="range["&&(b[u.head]=1)}for(var k=0;k<m.length;k++){var M=m[k];if(b[M]){var q=zt(r,M).get();q&&delete q.autorange}}var C=a._tracePreGUI;for(var E in C){var P=C[E],R=null,B;for(i in P){if(!R){var I=Q8e(E,t);if(I<0){delete C[E];break}B=t[I];var N=e9e(E,e,B.index);if(N<0){delete C[E];break}R=e[N]}if(u=sU(i,K8e),u){if(u.attr?(l=zt(a,u.attr).get(),s=l&&uU(u.attr,r)):(l=B.uirevision,s=R.uirevision,s===void 0&&(s=r.uirevision)),s&&s===l&&(f=P[i],f===null&&(f=void 0),c=zt(R,i),v=c.get(),fU(v,f))){c.set(rs(zt(B,i).get()));continue}}else or.warn("unrecognized GUI edit: "+i+" in trace uid "+E);delete P[i]}}}function t9e(e,r,t,a){var n,i;function o(){return Kr.addFrames(e,n)}e=or.getGraphDiv(e),Ma.clearPromiseQueue(e);var l=e._fullData,s=e._fullLayout;if(!or.isPlotDiv(e)||!l||!s)i=Kr.newPlot(e,r,t,a);else{if(or.isPlainObject(r)){var u=r;r=u.data,t=u.layout,a=u.config,n=u.frames}var f=!1;if(a){let B=or.extendDeepAll({},e._context);e._context=void 0,hU(e,a),f=!Ma.collectionsAreEqual(B,e._context)}if(f){let B=e._ev.eventNames().map(I=>[I,e._ev.listeners(I)]);i=Kr.newPlot(e,r,t,a).then(()=>{for(let[I,N]of B)N.forEach(H=>e.on(I,H));return Kr.react(e,r,t,a)})}else{e.data=r||[],Ma.cleanData(e.data),e.layout=t||{},Ma.cleanLayout(e.layout),r9e(e.data,e.layout,l,s),Cr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,m=n9e(e,s,v,d,p),y=m.newDataRevision,b=a9e(e,l,c,d,p,y);if(kU(e)&&(m.layoutReplot=!0),b.calc||m.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(v),w=0;w<T.length;w++){var x=T[w],_=x.substring(0,5);if(_==="xaxis"||_==="yaxis"){var k=v[x]._emptyCategories;k&&k()}}}else Cr.supplyDefaultsUpdateCalc(e.calcdata,c);var M=[];if(n&&(e._transitionData={},Cr.createTransitionData(e),M.push(o)),v.transition&&(b.anim||m.anim))m.ticks&&M.push(wt.doTicksRelayout),Cr.doCalcdata(e),wt.doAutoRangeAndConstraints(e),M.push(function(){return Cr.transitionFromReact(e,b,m,s)});else if(b.fullReplot||m.layoutReplot)e._fullLayout._skipDefaults=!0,M.push(Kr._doPlot);else{for(var q in m.arrays){var C=m.arrays[q];if(C.length){var E=to.getComponentMethod(q,"drawOne");if(E!==or.noop)for(var P=0;P<C.length;P++)E(e,C[P]);else{var R=to.getComponentMethod(q,"draw");if(R===or.noop)throw new Error("cannot draw components: "+q);R(e)}}}M.push(Cr.previousPromises),b.style&&M.push(wt.doTraceStyle),(b.colorbars||m.colorbars)&&M.push(wt.doColorBars),m.legend&&M.push(wt.doLegend),m.layoutstyle&&M.push(wt.layoutStyles),m.axrange&&tg(M),m.ticks&&M.push(wt.doTicksRelayout),m.modebar&&M.push(wt.doModeBar),m.camera&&M.push(wt.doCamera),M.push(Dd)}M.push(Cr.rehover,Cr.redrag,Cr.reselect),i=or.syncOrAsync(M,e),(!i||!i.then)&&(i=Promise.resolve(e))}}return i.then(()=>(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function a9e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=Ks.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=rg.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s<r.length;s++)if(t[s]){if(u=t[s],v[u.uid])continue;v[u.uid]=1,eg(r[s],u,[],c)}return(l.calc||l.plot)&&(l.fullReplot=!0),n&&l.nChanges&&l.nChangesAnim&&(l.anim=l.nChanges===l.nChangesAnim&&o?"all":"some"),l}function n9e(e,r,t,a,n){var i=Ks.layoutFlags();i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0;function o(v){return rg.getLayoutValObject(t,v)}for(var l in t){if(!l.startsWith("xaxis")&&!l.startsWith("yaxis")||!r[l])continue;var s=t[l].domain,u=r[l].domain,f=r[l]._inputDomain;r[l]._inputDomain&&(s[0]===f[0]&&s[1]===f[1]?t[l].domain=r[l].domain:(s[0]!==u[0]||s[1]!==u[1])&&(t[l]._inputDomain=null));let v=t[l].range,d=r[l].range,p=r[l]._inputRange;if(p&&v&&d){let m=v[0]===p[0]&&v[1]===p[1],y=v[0]===d[0]&&v[1]===d[1];!m&&!y&&(t[l]._inputRange=null)}}var c={getValObject:o,flags:i,immutable:a,transition:n,gd:e};return eg(r,t,[],c),(i.plot||i.calc)&&(i.layoutReplot=!0),n&&i.nChanges&&i.nChangesAnim&&(i.anim=i.nChanges===i.nChangesAnim?"all":"some"),i}function eg(e,r,t,a){var n,i,o,l=a.getValObject,s=a.flags,u=a.immutable,f=a.inArray,c=a.arrayIndex;function v(){var I=n.editType;if(f&&I.indexOf("arraydraw")!==-1){or.pushUnique(s.arrays[f],c);return}Ks.update(s,n),I!=="none"&&s.nChanges++,a.transition&&n.anim&&s.nChangesAnim++,(TU.test(o)||AU.test(o))&&(s.rangesAltered[t[0]]=1),i==="datarevision"&&(s.newDataRevision=1)}function d(I){return I.valType==="data_array"||I.arrayOk}for(i in e){if(s.calc&&!a.transition)return;var p=e[i],m=r[i],y=t.concat(i);if(o=y.join("."),!(i.charAt(0)==="_"||typeof p=="function"||p===m)){if((i==="tick0"||i==="dtick")&&t[0]!=="geo"){var b=r.tickmode;if(b==="auto"||b==="array"||!b)continue}if(!(i==="range"&&r.autorange)&&!((i==="zmin"||i==="zmax")&&r.type==="contourcarpet")&&(n=l(y),!!n&&!(n._compareAsJSON&&JSON.stringify(p)===JSON.stringify(m)))){var T=n.valType,w,x=d(n),_=Array.isArray(p),k=Array.isArray(m);if(_&&k){var M="_input_"+i,q=e[M],C=r[M];if(Array.isArray(q)&&q===C)continue}if(m===void 0)x&&_?s.calc=!0:v();else if(n._isLinkedToArray){var E=[],P=!1;f||(s.arrays[i]=E);var R=Math.min(p.length,m.length),B=Math.max(p.length,m.length);if(R!==B)if(n.editType==="arraydraw")P=!0;else{v();continue}for(w=0;w<R;w++)eg(p[w],m[w],y.concat(w),or.extendFlat({inArray:i,arrayIndex:w},a));if(P)for(w=R;w<B;w++)E.push(w)}else!T&&or.isPlainObject(p)?eg(p,m,y,a):x?_&&k?(u&&(s.calc=!0),(u||a.newDataRevision)&&v()):_!==k?s.calc=!0:v():_&&k?(p.length!==m.length||String(p)!==String(m))&&v():v()}}}for(i in r)if(!(i in e||i.charAt(0)==="_"||typeof r[i]=="function"))if(n=l(t.concat(i)),d(n)&&Array.isArray(r[i])){s.calc=!0;return}else v()}function i9e(e,r,t){if(e=or.getGraphDiv(e),!or.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 a=e._transitionData;a._frameQueue||(a._frameQueue=[]),t=Cr.supplyAnimationDefaults(t);var n=t.transition,i=t.frame;a._frameWaitingCnt===void 0&&(a._frameWaitingCnt=0);function o(u){return Array.isArray(n)?u>=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var B=0;B<R.length;B++){var I;R[B].type==="byname"?I=Cr.computeFrame(e,R[B].name):I=R[B].data;var N=l(B),H=o(B);H.duration=Math.min(H.duration,N.duration);var G={frame:I,name:R[B].name,frameOpts:N,transitionOpts:H};B===R.length-1&&(G.onComplete=s(u,2),G.onInterrupt=f),a._frameQueue.push(G)}t.mode==="immediate"&&(a._lastFrameAt=-1/0),a._animationRaf||m()}}function d(){e.emit("plotly_animated"),window.cancelAnimationFrame(a._animationRaf),a._animationRaf=null}function p(){a._currentFrame&&a._currentFrame.onComplete&&a._currentFrame.onComplete();var R=a._currentFrame=a._frameQueue.shift();if(R){var B=R.name?R.name.toString():null;e._fullLayout._currentFrame=B,a._lastFrameAt=Date.now(),a._timeToNext=R.frameOpts.duration,Cr.transition(e,R.frame.data,R.frame.layout,Ma.coerceTraceIndices(e,R.frame.traces),R.frameOpts,R.transitionOpts).then(function(){R.onComplete&&R.onComplete()}),e.emit("plotly_animatingframe",{name:B,frame:R.frame,animation:{frame:R.frameOpts,transition:R.transitionOpts}})}else d()}function m(){e.emit("plotly_animating"),a._lastFrameAt=-1/0,a._timeToNext=0,a._runningTransitions=0,a._currentFrame=null;var R=function(){a._animationRaf=window.requestAnimationFrame(R),Date.now()-a._lastFrameAt>a._timeToNext&&p()};R()}var y=0;function b(R){return Array.isArray(n)?y>=n.length?R.transitionOpts=n[y]:R.transitionOpts=n[0]:R.transitionOpts=n,y++,R}var T,w,x=[],_=r==null,k=Array.isArray(r),M=!_&&!k&&or.isPlainObject(r);if(M)x.push({type:"object",data:b(or.extendFlat({},r))});else if(_||["string","number"].indexOf(typeof r)!==-1)for(T=0;T<a._frames.length;T++)w=a._frames[T],w&&(_||String(w.group)===String(r))&&x.push({type:"byname",name:String(w.name),data:b({name:w.name})});else if(k)for(T=0;T<r.length;T++){var q=r[T];["number","string"].indexOf(typeof q)!==-1?(q=String(q),x.push({type:"byname",name:q,data:b({name:q})})):or.isPlainObject(q)&&x.push({type:"object",data:b(or.extendFlat({},q))})}for(T=0;T<x.length;T++)if(w=x[T],w.type==="byname"&&!a._frameHash[w.data.name]){or.warn('animate failure: frame not found: "'+w.data.name+'"'),f();return}["next","immediate"].indexOf(t.mode)!==-1&&c(),t.direction==="reverse"&&x.reverse();var C=e._fullLayout._currentFrame;if(C&&t.fromcurrent){var E=-1;for(T=0;T<x.length;T++)if(w=x[T],w.type==="byname"&&w.name===C){E=T;break}if(E>0&&E<x.length-1){var P=[];for(T=0;T<x.length;T++)w=x[T],(x[T].type!=="byname"||T>E)&&P.push(w);x=P}}x.length>0?v(x):(e.emit("plotly_animated"),u())})}function o9e(e,r,t){if(e=or.getGraphDiv(e),r==null)return Promise.resolve();if(!or.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 a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(or.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,m=s[d]||c[d];d&&p&&typeof p=="number"&&m&&qw<lU&&(qw++,or.warn('addFrames: overwriting frame "'+(s[d]||c[d]).name+'" with a frame whose name of type "number" also equates to "'+d+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),qw===lU&&or.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[v]={name:v},f.push({frame:Cr.supplyFrameDefaults(r[a]),index:t&&t[a]!==void 0&&t[a]!==null?t[a]:u+a})}f.sort(function(M,q){return M.index>q.index?-1:M.index<q.index?1:0});var y=[],b=[],T=l.length;for(a=f.length-1;a>=0;a--){if(n=f[a].frame,typeof n.name=="number"&&or.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i<l.length&&(l[i]||{}).name!==n.name;i++);y.push({type:"replace",index:i,value:n}),b.unshift({type:"replace",index:i,value:l[i]})}else o=Math.max(0,Math.min(f[a].index,T)),y.push({type:"insert",index:o,value:n}),b.unshift({type:"delete",index:o}),T++}var w=Cr.modifyFrames,x=Cr.modifyFrames,_=[e,b],k=[e,y];return jn&&jn.add(e,w,_,x,k),Cr.modifyFrames(e,y)}function l9e(e,r){if(e=or.getGraphDiv(e),!or.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var t,a,n=e._transitionData._frames,i=[],o=[];if(!r)for(r=[],t=0;t<n.length;t++)r.push(t);for(r=r.slice(),r.sort(),t=r.length-1;t>=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=Cr.modifyFrames,s=Cr.modifyFrames,u=[e,o],f=[e,i];return jn&&jn.add(e,l,u,s,f),Cr.modifyFrames(e,i)}function s9e(e){e=or.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Cr.cleanPlot([],{},t,r),Cr.purge(e),Lw.purge(e),r._container&&r._container.remove(),delete e._context,e}function u9e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!or.equalDomRects(t,r._lastBBox)){var a=r._invTransform=or.inverseTransformMatrix(or.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function f9e(e){var r=Xy.select(e),t=e._fullLayout;if(t._calcInverseTransform=u9e,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 a={};Xy.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=or.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(N8e.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 n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.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 i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.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")}Kr.animate=i9e;Kr.addFrames=o9e;Kr.deleteFrames=l9e;Kr.addTraces=bU;Kr.deleteTraces=xU;Kr.extendTraces=yU;Kr.moveTraces=Cw;Kr.prependTraces=gU;Kr.newPlot=V8e;Kr._doPlot=O8e;Kr.purge=s9e;Kr.react=t9e;Kr.redraw=Y8e;Kr.relayout=Cd;Kr.restyle=Jy;Kr.setPlotConfig=U8e;Kr.update=Qy;Kr._guiRelayout=Dw(Cd);Kr._guiRestyle=Dw(Jy);Kr._guiUpdate=Dw(Qy);Kr._storeDirectGUIEdit=Z8e});var ts=z(ao=>{"use strict";var c9e=Ar();ao.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};ao.getRedrawFunc=function(e){return function(){c9e.getComponentMethod("colorbar","draw")(e)}};ao.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ao.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var SU=window.URL||window.webkitURL;ao.createObjectURL=function(e){return SU.createObjectURL(e)};ao.revokeObjectURL=function(e){return SU.revokeObjectURL(e)};ao.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=v9e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ao.octetStream=function(e){document.location.href="data:application/octet-stream"+e};ao.getPlotTitle=function(e){var a,n,i,o;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(o=(i=e.layout)==null?void 0:i.title)==null?void 0:o.text};ao.getPlotSubtitle=function(e){var a,n,i,o,l,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(l=(o=e.layout)==null?void 0:o.title)==null?void 0:l.subtitle)==null?void 0:s.text};function v9e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n<r;n++)a[n]=e.charCodeAt(n);return t}ao.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var ag=z((V$e,qU)=>{"use strict";var Rw=Pr(),G$e=ke(),h9e=et(),d9e=qr(),Y$e=(Wl(),Ne(jl)),Pw=/"/g,Tf="TOBESTRIPPED",p9e=new RegExp(`("${Tf})|(${Tf}")|(&quot;${Tf})|(${Tf}&quot;)`,"g"),m9e=["&amp;","&#38;","&#x26;","&quot;","&#34;","&#x22;","&apos;","&#39;","&#x27;"],y9e=["&lt;","&#60;","&#x3c;"],g9e=["&gt;","&#62;","&#x3e;"];function b9e(e){let r=Rw.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return m9e.includes(n)?a:y9e.includes(n)?"&#60;":g9e.includes(n)?"&#62;":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function x9e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")}qU.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(h9e.setRect,0,0,l,s).call(d9e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u<f.length;u++){var c=f[u];c.toSVG&&c.toSVG(r)}if(o){var v=o.node().childNodes,d=Array.prototype.slice.call(v);for(u=0;u<d.length;u++){var p=d[u];p.childNodes.length&&i.node().appendChild(p)}}n._draggers&&n._draggers.remove(),i.node().style.background="",i.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var y=Rw.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){y.remove();return}else y.style({visibility:null,display:null});var b=this.style.fontFamily;b&&b.indexOf('"')!==-1&&y.style("font-family",b.replace(Pw,Tf));var T=this.style.fontWeight;T&&(T==="normal"||T==="400")&&y.style("font-weight",void 0);var w=this.style.fontStyle;w&&w==="normal"&&y.style("font-style",void 0);var x=this.style.fontVariant;x&&x==="normal"&&y.style("font-variant",void 0)}),i.selectAll(".gradient_filled,.pattern_filled").each(function(){var y=Rw.select(this),b=this.style.fill;b&&b.indexOf("url(")!==-1&&y.style("fill",b.replace(Pw,Tf));var T=this.style.stroke;T&&T.indexOf("url(")!==-1&&y.style("stroke",T.replace(Pw,Tf))}),(t==="pdf"||t==="eps")&&i.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),t==="svg"&&a&&(i.attr("width",a*l),i.attr("height",a*s),i.attr("viewBox","0 0 "+l+" "+s));var m=new window.XMLSerializer().serializeToString(i.node());return m=b9e(m),m=x9e(m),m=m.replace(p9e,"'"),m}});var ng=z((j$e,LU)=>{"use strict";var _9e=ke(),w9e=Ju().EventEmitter,Ed=ts();function T9e(e){var r=e.emitter||new w9e,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,b;l==="svg"||_9e.isSafari()?b=Ed.encodeSVG(o):(y=Ed.createBlob(o,"svg"),b=Ed.createObjectURL(y)),s.width=v,s.height=d,m.onload=function(){var T;switch(y=null,Ed.revokeObjectURL(b),l!=="svg"&&p.drawImage(m,0,0,v,d),l){case"jpeg":T=s.toDataURL("image/jpeg");break;case"png":T=s.toDataURL("image/png");break;case"webp":T=s.toDataURL("image/webp");break;case"svg":T=b;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(T),e.promise||r.emit("success",T)},m.onerror=function(T){if(y=null,Ed.revokeObjectURL(b),n(T),!e.promise)return r.emit("error",T)},m.src=b});return e.promise?t:r}LU.exports=T9e});var zw=z((W$e,EU)=>{"use strict";var CU=Br(),DU=Ew(),A9e=_a(),Ml=ke(),Pd=ts(),M9e=ag(),k9e=ng(),S9e=Jv().version,Fw=(j_(),Ne(V_)).default;function q9e(e,r){r=r||{};var t,a,n,i;Ml.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Ml.getGraphDiv(e),t=Ml.extendDeep([],e.data),a=Ml.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Ml.validate(r[k],Fw[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Ml.join2(Fw.format.values,", "," or ")+".");var l={};function s(k,M){return Ml.coerce(r,l,Fw,k,M)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=Ml.extendFlat({},a);f?y.width=f:r.width===null&&CU(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&CU(i.height)&&(y.height=i.height);var b=Ml.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=Pd.getRedrawFunc(m);function w(){return new Promise(function(k){setTimeout(k,Pd.getDelay(m._fullLayout))})}function x(){return new Promise(function(k,M){var q=M9e(m,u,v),C=m._fullLayout.width,E=m._fullLayout.height;function P(){DU.purge(m),document.body.removeChild(m)}if(u==="full-json"){var R=A9e.graphJson(m,!1,"object",!0,!0);return R.version=S9e,R=JSON.stringify(R),P(),k(p?R:Pd.encodeJSON(R))}if(P(),u==="svg")return k(p?q:Pd.encodeSVG(q));var B=document.createElement("canvas");B.id=Ml.randstr(),k9e({format:u,width:C,height:E,scale:v,canvas:B,svg:q,promise:!0}).then(k).catch(M)})}function _(k){return p?k.replace(Pd.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){DU.newPlot(m,t,y,b).then(T).then(w).then(x).then(function(q){k(_(q))}).catch(function(q){M(q)})})}EU.exports=q9e});var FU=z((X$e,RU)=>{"use strict";var no=ke(),L9e=_a(),C9e=$c(),D9e=As().dfltConfig,Uo=no.isPlainObject,Mf=Array.isArray,Nw=no.isArrayOrTypedArray;RU.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=C9e.get(),n=[],i={_context:no.extendFlat({},D9e)},o,l;Mf(r)?(i.data=no.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Za("array","data"))),Uo(t)?(i.layout=no.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Za("object","layout"))),L9e.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;f<u;f++){var c=o[f],v=["data",f];if(!Uo(c)){n.push(Za("object",v));continue}var d=s[f],p=d.type,m=a.traces[p].attributes;m.type={valType:"enumerated",values:[p]},d.visible===!1&&c.visible!==!1&&n.push(Za("invisible",v)),ig(c,d,m,n,v)}var y=i._fullLayout,b=E9e(a,s);return ig(l,y,b,n,"layout"),n.length===0?void 0:n};function ig(e,r,t,a,n,i){i=i||[];for(var o=Object.keys(e),l=0;l<o.length;l++){var s=o[l],u=i.slice();u.push(s);var f=e[s],c=r[s],v=F9e(t,s),d=(v||{}).valType,p=d==="info_array",m=d==="colorscale",y=(v||{}).items;if(!R9e(t,s))a.push(Za("schema",n,u));else if(Uo(f)&&Uo(c)&&d!=="any")ig(f,c,v,a,n,u);else if(p&&Mf(f)){f.length>c.length&&a.push(Za("unused",n,u.concat(c.length)));var b=c.length,T=Array.isArray(y);T&&(b=Math.min(b,y.length));var w,x,_,k,M;if(v.dimensions===2)for(x=0;x<b;x++)if(Mf(f[x])){f[x].length>c[x].length&&a.push(Za("unused",n,u.concat(x,c[x].length)));var q=c[x].length;for(w=0;w<(T?Math.min(q,y[x].length):q);w++)_=T?y[x][w]:y,k=f[x][w],M=c[x][w],no.validate(k,_)?M!==k&&M!==+k&&a.push(Za("dynamic",n,u.concat(x,w),k,M)):a.push(Za("value",n,u.concat(x,w),k))}else a.push(Za("array",n,u.concat(x),f[x]));else for(x=0;x<b;x++)_=T?y[x]:y,k=f[x],M=c[x],no.validate(k,_)?M!==k&&M!==+k&&a.push(Za("dynamic",n,u.concat(x),k,M)):a.push(Za("value",n,u.concat(x),k))}else if(v.items&&!p&&Mf(f)){var C=y[Object.keys(y)[0]],E=[],P,R;for(P=0;P<c.length;P++){var B=c[P]._index||P;if(R=u.slice(),R.push(B),Uo(f[B])&&Uo(c[P])){E.push(B);var I=f[B],N=c[P];Uo(I)&&I.visible!==!1&&N.visible===!1?a.push(Za("invisible",n,R)):ig(I,N,C,a,n,R)}}for(P=0;P<f.length;P++)R=u.slice(),R.push(P),Uo(f[P])?E.indexOf(P)===-1&&a.push(Za("unused",n,R)):a.push(Za("object",n,R,f[P]))}else!Uo(f)&&Uo(c)?a.push(Za("object",n,u,f)):!Nw(f)&&Nw(c)&&!p&&!m?a.push(Za("array",n,u,f)):s in r?no.validate(f,v)?v.valType==="enumerated"&&(v.coerceNumber&&f!==+c||!Nw(f)&&f!==c||String(f)!==String(c))&&a.push(Za("dynamic",n,u,f,c)):a.push(Za("value",n,u,f)):a.push(Za("unused",n,u,f))}return a}function E9e(e,r){for(var t=e.layout.layoutAttributes,a=0;a<r.length;a++){var n=r[a],i=e.traces[n.type],o=i.layoutAttributes;o&&(n.subplot?no.extendFlat(t[i.attributes.subplot.dflt],o):no.extendFlat(t,o))}return t}var P9e={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=Af(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=Af(e)+"key "+r,t+" must be linked to an array container"},schema:function(e,r){return Af(e)+"key "+r+" is not part of the schema"},unused:function(e,r,t){var a=Uo(t)?"container":"key";return Af(e)+a+" "+r+" did not get coerced"},dynamic:function(e,r,t,a){return[Af(e)+"key",r,"(set to '"+t+"')","got reset to","'"+a+"'","during defaults."].join(" ")},invisible:function(e,r){return(r?Af(e)+"item "+r:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,r,t){return[Af(e)+"key "+r,"is set to an invalid value ("+t+")"].join(" ")}};function Af(e){return Mf(e)?"In data trace "+e[1]+", ":"In "+e+", "}function Za(e,r,t,a,n){t=t||"";var i,o;Mf(r)?(i=r[0],o=r[1]):(i=r,o=null);var l=N9e(t),s=P9e[e](r,l,a,n);return no.log(s),{code:e,container:i,trace:o,path:t,astr:l,msg:s}}function R9e(e,r){var t=PU(r),a=t.keyMinusId,n=t.id;return a in e&&e[a]._isSubplotObj&&n?!0:r in e}function F9e(e,r){if(r in e)return e[r];var t=PU(r);return e[t.keyMinusId]}var z9e=no.counterRegex("([a-z]+)");function PU(e){var r=e.match(z9e);return{keyMinusId:r&&r[1],id:r&&r[2]}}function N9e(e){if(!Mf(e))return String(e);for(var r="",t=0;t<e.length;t++){var a=e[t];typeof a=="number"?r=r.slice(0,-1)+"["+a+"]":r+=a,t<e.length-1&&(r+=".")}return r}});var NU=z((Z$e,zU)=>{"use strict";var I9e=ke(),og=ts();function B9e(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=og.createBlob(e,t),u=og.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),og.revokeObjectURL(u),s=null,o(r);if(I9e.isSafari()){var f=t==="svg"?",":";base64,";return og.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}zU.exports=B9e});var Iw=z(($$e,HU)=>{"use strict";var lg=ke(),IU=Da(),O9e=zw(),H9e=NU(),BU=ts(),OU=40;function U9e(e,r){var t;return lg.isPlainObject(e)||(t=lg.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(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=O9e(e,r),o=r.filename||e.fn;if(!o){let s=BU.getPlotTitle(e);if(s&&!IU.matchTex(s))o=lg.slugify(s,OU);else{let u=BU.getPlotSubtitle(e);u&&!IU.matchTex(u)&&(o=lg.slugify(u,OU))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),H9e(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}HU.exports=U9e});var jU=z(Bw=>{"use strict";var si=ke(),ui=si.isPlainObject,UU=$c(),GU=_a(),G9e=Gn(),YU=Pt(),VU=As().dfltConfig;Bw.makeTemplate=function(e){e=si.isPlainObject(e)?e:si.getGraphDiv(e),e=si.extendDeep({_context:VU},{data:e.data,layout:e.layout}),GU.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};Rd(d,p,V9e.bind(null,d));var m=si.coerce(d,{},G9e,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),Rd(t,a.layout,Y9e.bind(null,t)),delete a.layout.template;var n=t.template;if(ui(n)){var i=n.layout,o,l,s,u,f,c;ui(i)&&sg(i,a.layout);var v=n.data;if(ui(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;o<c;o++)sg(s[o%u],f[o]);for(o=c;o<u;o++)f.push(si.extendDeep({},s[o]))}for(l in v)l in a.data||(a.data[l]=si.extendDeep([],v[l]))}}return a};function sg(e,r){e=si.extendDeep({},e);var t=Object.keys(e).sort(),a,n;function i(f,c,v){if(ui(c)&&ui(f))sg(f,c);else if(Array.isArray(c)&&Array.isArray(f)){var d=YU.arrayTemplater({_template:e},v);for(n=0;n<c.length;n++){var p=c[n],m=d.newItem(p)._template;m&&sg(m,p)}var y=d.defaultItems();for(n=0;n<y.length;n++)c.push(y[n]._template);for(n=0;n<c.length;n++)delete c[n].templateitemname}}for(a=0;a<t.length;a++){var o=t[a],l=e[o];if(o in r?i(l,r[o],o):r[o]=l,ug(o)===o)for(var s in r){var u=ug(s);s!==u&&u===o&&!(s in e)&&i(l,r[s],o)}}}function ug(e){return e.replace(/[0-9]+$/,"")}function Rd(e,r,t,a,n){var i=n&&t(n);for(var o in e){var l=e[o],s=io(e,o,a),u=io(e,o,n),f=t(u);if(!f){var c=ug(o);c!==o&&(u=io(e,c,n),f=t(u))}if(!(i&&i===f)&&!(!f||f._noTemplating||f.valType==="data_array"||f.arrayOk&&Array.isArray(l)))if(!f.valType&&ui(l))Rd(l,r,t,s,u);else if(f._isLinkedToArray&&Array.isArray(l))for(var v=!1,d=0,p={},m=0;m<l.length;m++){var y=l[m];if(ui(y)){var b=y.name;if(b)p[b]||(Rd(y,r,t,io(l,d,s),io(l,d,u)),d++,p[b]=1);else if(!v){var T=YU.arrayDefaultKey(o),w=io(e,T,a),x=io(l,d,s);Rd(y,r,t,x,io(l,d,u));var _=si.nestedProperty(r,x),k=si.nestedProperty(r,w);k.set(_.get()),_.set(null),v=!0}}}else{var M=si.nestedProperty(r,s);M.set(l)}}}function Y9e(e,r){return UU.getLayoutValObject(e,si.nestedProperty({},r).parts)}function V9e(e,r){return UU.getTraceValObject(e,si.nestedProperty({},r).parts)}function io(e,r,t){var a;return t?Array.isArray(e)?a=t+"["+r+"]":a=t+"."+r:a=r,a}Bw.validateTemplate=function(e,r){var t=si.extendDeep({},{_context:VU,data:e.data,layout:e.layout}),a=t.layout||{};ui(r)||(r=a.template||{});var n=r.layout,i=r.data,o=[];t.layout=a,t.layout.template=r,GU.supplyDefaults(t);var l=t._fullLayout,s=t._fullData,u={};function f(w,x){for(var _ in w)if(_.charAt(0)!=="_"&&ui(w[_])){var k=ug(_),M=[],q;for(q=0;q<x.length;q++)M.push(io(w,_,x[q])),k!==_&&M.push(io(w,k,x[q]));for(q=0;q<M.length;q++)u[M[q]]=1;f(w[_],M)}}function c(w,x){for(var _ in w)if(_.indexOf("defaults")===-1&&ui(w[_])){var k=io(w,_,x);u[k]?c(w[_],k):o.push({code:"unused",path:k})}}if(ui(n)?(f(l,["layout"]),c(n,"layout")):o.push({code:"layout"}),!ui(i))o.push({code:"data"});else{for(var v={},d,p=0;p<s.length;p++){var m=s[p];d=m.type,v[d]=(v[d]||0)+1,m._template||o.push({code:"missing",index:m.index,traceType:d})}for(d in i){var y=i[d].length,b=v[d]||0;y>b?o.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function T(w,x){for(var _ in w)if(_.charAt(0)!=="_"){var k=w[_],M=io(w,_,x);ui(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),T(k,M)):Array.isArray(k)&&j9e(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(W9e)};function j9e(e){for(var r=0;r<e.length;r++)if(ui(e[r]))return!0}function W9e(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 XU=z(Xt=>{"use strict";var Ga=Ew();Xt._doPlot=Ga._doPlot;Xt.newPlot=Ga.newPlot;Xt.restyle=Ga.restyle;Xt.relayout=Ga.relayout;Xt.redraw=Ga.redraw;Xt.update=Ga.update;Xt._guiRestyle=Ga._guiRestyle;Xt._guiRelayout=Ga._guiRelayout;Xt._guiUpdate=Ga._guiUpdate;Xt._storeDirectGUIEdit=Ga._storeDirectGUIEdit;Xt.react=Ga.react;Xt.extendTraces=Ga.extendTraces;Xt.prependTraces=Ga.prependTraces;Xt.addTraces=Ga.addTraces;Xt.deleteTraces=Ga.deleteTraces;Xt.moveTraces=Ga.moveTraces;Xt.purge=Ga.purge;Xt.addFrames=Ga.addFrames;Xt.deleteFrames=Ga.deleteFrames;Xt.animate=Ga.animate;Xt.setPlotConfig=Ga.setPlotConfig;var X9e=wh().getGraphDiv,Z9e=by().eraseActiveShape;Xt.deleteActiveShape=function(e){return Z9e(X9e(e))};Xt.toImage=zw();Xt.validate=FU();Xt.downloadImage=Iw();var WU=jU();Xt.makeTemplate=WU.makeTemplate;Xt.validateTemplate=WU.validateTemplate});var Hw=z((Q$e,ZU)=>{"use strict";var Ow=ke(),$9e=Ar();ZU.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=$9e.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ow.minRowLength(i);o?l=Math.min(u,Ow.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=Ow.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var A0=z((eJe,KU)=>{"use strict";var $U=ke().dateTick0,J9e=(Kt(),Ne(aa)),K9e=J9e.ONEWEEK;function JU(e,r){return e%K9e===0?$U(r,1):$U(r,0)}KU.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",JU(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",JU(l,t.ycalendar)),n("yperiodalignment"))}}});var rG=z((rJe,eG)=>{"use strict";var QU=["orientation","groupnorm","stackgaps"];eG.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v<QU.length;v++){var d=QU[v],p=d+"Found";if(!u[p]){var m=r[d]!==void 0,y=d==="orientation";if((m||f)&&(u[d]=n(d,c[d]),y&&(u.fillDflt=u[d]==="h"?"tonextx":"tonexty"),m&&(u[p]=!0,!f&&(delete u.traces[0][d],y))))for(var b=0;b<u.traces.length-1;b++){var T=u.traces[b];T._input.fill!==T.fill&&(T.fill=u.fillDflt)}}}return u}}});var Uw=z((tJe,iG)=>{"use strict";var tG=qr(),aG=xi().hasColorscale,nG=Xl(),Q9e=ii();iG.exports=function(r,t,a,n,i,o={}){var l=Q9e.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),aG(r,"marker")&&nG(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=tG.background:u=tG.defaultLine,i("marker.line.color",u),aG(r,"marker.line")&&nG(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var Gw=z((aJe,oG)=>{"use strict";var eTe=ke().isArrayOrTypedArray,rTe=xi().hasColorscale,tTe=Xl();oG.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),rTe(r,"line"))tTe(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(eTe(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var Yw=z((nJe,lG)=>{"use strict";lG.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var Vw=z((iJe,sG)=>{"use strict";var aTe=ke();sG.exports=function(e,r,t,a,n){n=n||{},a("textposition"),aTe.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var jw=z((oJe,fG)=>{"use strict";var fg=qr(),uG=ke().isArrayOrTypedArray;function nTe(e){for(var r=fg.interpolate(e[0][1],e[1][1],.5),t=2;t<e.length;t++){var a=fg.interpolate(e[t-1][1],e[t][1],.5);r=fg.interpolate(r,a,e[t-1][0]/e[t][0])}return r}fG.exports=function(r,t,a,n,i){i||(i={});var o=!1;if(t.marker){var l=t.marker.color,s=(t.marker.line||{}).color;l&&!uG(l)?o=l:s&&!uG(s)&&(o=s)}var u;if(i.moduleHasFillgradient){var f=n("fillgradient.type");if(f!=="none"){n("fillgradient.start"),n("fillgradient.stop");var c=n("fillgradient.colorscale");c&&(u=nTe(c))}}n("fillcolor",fg.addOpacity((t.line||{}).color||o||u||a,.5))}});var dG=z((lJe,hG)=>{"use strict";var cG=ke(),iTe=Ar(),oTe=Qi(),lTe=(wd(),Ne(_d)),M0=ii(),sTe=Hw(),uTe=A0(),fTe=rG(),cTe=Uw(),vTe=Gw(),vG=Yw(),hTe=Vw(),dTe=jw(),pTe=ke().coercePattern;hG.exports=function(r,t,a,n){function i(d,p){return cG.coerce(r,t,oTe,d,p)}var o=sTe(r,t,n,i);if(o||(t.visible=!1),!!t.visible){uTe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=fTe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o<lTe.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",s),M0.hasMarkers(t)&&cTe(r,t,a,n,i,{gradient:!0}),M0.hasLines(t)&&(vTe(r,t,a,n,i,{backoff:!0}),vG(r,t,i),i("connectgaps"),i("line.simplify")),M0.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),hTe(r,t,n,i));var u=[];(M0.hasMarkers(t)||M0.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),u.push("points")),i("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(dTe(r,t,a,i,{moduleHasFillgradient:!0}),M0.hasLines(t)||vG(r,t,i),pTe(i,"fillpattern",t.fillcolor,!1));var f=(t.line||{}).color,c=(t.marker||{}).color;(t.fill==="tonext"||t.fill==="toself")&&u.push("fills"),i("hoveron",u.join("+")||"points"),t.hoveron!=="fills"&&(i("hovertemplate"),i("hovertemplatefallback"));var v=iTe.getComponentMethod("errorbars","supplyDefaults");v(r,t,f||c||a,{axis:"y"}),v(r,t,f||c||a,{axis:"x",inherit:"y"}),cG.coerceSelectionMarkerOpacity(t,i)}}});var Fd=z((sJe,pG)=>{"use strict";var mTe=wf().getAxisGroup;pG.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=mTe(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,m=p[d];t._offsetIndex=0,(i!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var yG=z((uJe,mG)=>{"use strict";var yTe=ke(),gTe=Fd(),bTe=Qi();mG.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return yTe.coerce(n._input,n,bTe,v)}if(t.scattermode==="group")for(i=0;i<r.length;i++)n=r[i],n.type==="scatter"&&(a=n._input,gTe(a,n,t,l,o));for(i=0;i<r.length;i++){var s=r[i];if(s.type==="scatter"){var u=s.fill;if(!(u==="none"||u==="toself")&&(s.opacity=void 0,u==="tonexty"||u==="tonextx"))for(var f=i-1;f>=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var bG=z((fJe,gG)=>{"use strict";var xTe=ke(),_Te=Zp();gG.exports=function(e,r){function t(n,i){return xTe.coerce(e,r,_Te,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var k0=z((cJe,_G)=>{"use strict";var wTe=Br(),xG=ke(),TTe=xG.dateTime2ms,cg=xG.incrementMonth,ATe=(Kt(),Ne(aa)),MTe=ATe.ONEAVGMONTH;_G.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(wTe(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],d=TTe(v,u)||0,p=[],m=[],y=[],b=n.length,T=0;T<b;T++){var w=n[T],x,_,k;if(l){for(x=Math.round((w-d)/(l*MTe)),k=cg(d,l*x,u);k>w;)k=cg(k,-l,u);for(;k<=w;)k=cg(k,l,u);_=cg(k,-l,u)}else{for(x=Math.round((w-d)/o),k=d+x*o;k>w;)k-=o;for(;k<=w;)k+=o;_=k-o}p[T]=f?_:c?k:(_+k)/2,m[T]=_,y[T]=k}return{vals:p,starts:m,ends:y}}});var Zw=z((vJe,TG)=>{"use strict";var Ww=xi().hasColorscale,Xw=e0(),wG=ii();TG.exports=function(r,t){wG.hasLines(t)&&Ww(t,"line")&&Xw(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),wG.hasMarkers(t)&&(Ww(t,"marker")&&Xw(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Ww(t,"marker.line")&&Xw(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var vg=z((hJe,AG)=>{"use strict";var ca=ke();AG.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;ca.mergeArray(t.text,r,"tx"),ca.mergeArray(t.texttemplate,r,"txt"),ca.mergeArray(t.hovertext,r,"htx"),ca.mergeArray(t.customdata,r,"data"),ca.mergeArray(t.textposition,r,"tp"),t.textfont&&(ca.mergeArrayCastPositive(t.textfont.size,r,"ts"),ca.mergeArray(t.textfont.color,r,"tc"),ca.mergeArray(t.textfont.family,r,"tf"),ca.mergeArray(t.textfont.weight,r,"tw"),ca.mergeArray(t.textfont.style,r,"ty"),ca.mergeArray(t.textfont.variant,r,"tv"),ca.mergeArray(t.textfont.textcase,r,"tC"),ca.mergeArray(t.textfont.lineposition,r,"tE"),ca.mergeArray(t.textfont.shadow,r,"tS"));var n=t.marker;if(n){ca.mergeArrayCastPositive(n.size,r,"ms"),ca.mergeArrayCastPositive(n.opacity,r,"mo"),ca.mergeArray(n.symbol,r,"mx"),ca.mergeArray(n.angle,r,"ma"),ca.mergeArray(n.standoff,r,"mf"),ca.mergeArray(n.color,r,"mc");var i=n.line;n.line&&(ca.mergeArray(i.color,r,"mlc"),ca.mergeArrayCastPositive(i.width,r,"mlw"),ca.mergeArray(i.dash,r,"mld"));var o=n.gradient;o&&o.type!=="none"&&(ca.mergeArray(o.type,r,"mgt"),ca.mergeArray(o.color,r,"mgc"))}}});var hg=z((dJe,kG)=>{"use strict";var MG=ke();kG.exports=function(r,t){MG.isArrayOrTypedArray(t.selectedpoints)&&MG.tagSelected(r,t)}});var dg=z((pJe,PG)=>{"use strict";var SG=Br(),Jw=ke(),zd=jr(),qG=k0(),$w=(Kt(),Ne(aa)).BADNUM,Kw=ii(),kTe=Zw(),STe=vg(),qTe=hg();function LTe(e,r){var t=e._fullLayout,a=r._xA=zd.getFromId(e,r.xaxis||"x","x"),n=r._yA=zd.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=qG(r,a,"x",i),s=qG(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=Qw(r,t,a,n),m=!1,y,b,T,w,x,_;DG(t,r);var k="x",M="y",q;if(p)Jw.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(M="s",q="x"):(k="s",q="y"),x=p.stackgaps==="interpolate";else{var C=CG(r,c);LG(e,r,a,n,u,f,C)}var E=!!r.xperiodalignment,P=!!r.yperiodalignment;for(b=0;b<c;b++){var R=v[b]={},B=SG(u[b]),I=SG(f[b]);B&&I?(R[k]=u[b],R[M]=f[b],E&&(R.orig_x=i[b],R.xEnd=l.ends[b],R.xStart=l.starts[b]),P&&(R.orig_y=o[b],R.yEnd=s.ends[b],R.yStart=s.starts[b])):p&&(y?B:I)?(R[q]=y?u[b]:f[b],R.gap=!0,x?(R.s=$w,m=!0):R.s=0):R[k]=R[M]=$w,d&&(R.id=String(d[b]))}if(STe(v,r),kTe(e,r),qTe(v,r),p){for(b=0;b<v.length;)v[b][q]===$w?v.splice(b,1):b++;if(Jw.sort(v,function(Y,j){return Y[q]-j[q]||Y.i-j.i}),m){for(b=0;b<v.length-1&&v[b].gap;)b++;for(_=v[b].s,_||(_=v[b].s=0),T=0;T<b;T++)v[T].s=_;for(w=v.length-1;w>b&&v[w].gap;)w--;for(_=v[w].s,T=v.length-1;T>w;T--)v[T].s=_;for(;b<w;)if(b++,v[b].gap){for(T=b+1;v[T].gap;)T++;for(var N=v[b-1][q],H=v[b-1].s,G=(v[T].s-H)/(v[T][q]-N);b<T;)v[b].s=H+(v[b][q]-N)*G,b++}}}return v}function LG(e,r,t,a,n,i,o){var l=r._length,s=e._fullLayout,u=t._id,f=a._id,c=s._firstScatter[EG(r)]===r.uid,v=(Qw(r,s,t,a)||{}).orientation,d=r.fill;t._minDtick=0,a._minDtick=0;var p={padded:!0},m={padded:!0};o&&(p.ppad=m.ppad=o);var y=l<2||n[0]!==n[l-1]||i[0]!==i[l-1];y&&(d==="tozerox"||d==="tonextx"&&(c||v==="h"))?p.tozero=!0:!(r.error_y||{}).visible&&(d==="tonexty"||d==="tozeroy"||!Kw.hasMarkers(r)&&!Kw.hasText(r))&&(p.padded=!1,p.ppad=0),y&&(d==="tozeroy"||d==="tonexty"&&(c||v==="v"))?m.tozero=!0:(d==="tonextx"||d==="tozerox")&&(m.padded=!1),u&&(r._extremes[u]=zd.findExtremes(t,n,p)),f&&(r._extremes[f]=zd.findExtremes(a,i,m))}function CG(e,r){if(Kw.hasMarkers(e)){var t=e.marker,a=1.6*(e.marker.sizeref||1),n;if(e.marker.sizemode==="area"?n=function(u){return Math.max(Math.sqrt((u||0)/a),3)}:n=function(u){return Math.max((u||0)/a,3)},Jw.isArrayOrTypedArray(t.size)){var i={type:"linear"};zd.setConvert(i);for(var o=i.makeCalcdata(e.marker,"size"),l=new Array(r),s=0;s<r;s++)l[s]=n(o[s]);return l}else return n(t.size)}}function DG(e,r){var t=EG(r),a=e._firstScatter;a[t]||(a[t]=r.uid)}function EG(e){var r=e.stackgroup;return e.xaxis+e.yaxis+e.type+(r?"-"+r:"")}function Qw(e,r,t,a){var n=e.stackgroup;if(n){var i=r._scatterStackOpts[t._id+a._id][n],o=i.orientation==="v"?a:t;if(o.type==="linear"||o.type==="log")return i}}PG.exports={calc:LTe,calcMarkerSize:CG,calcAxisExpansion:LG,setFirstScatter:DG,getStackOpts:Qw}});var FG=z((mJe,RG)=>{"use strict";RG.exports=pg;var CTe=ke().distinctVals;function pg(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i<e.length;i++){for(var o=e[i],l=0;l<o.length;l++){var s=o[l],u=s.p;u===void 0&&(u=s[a]),u!==void 0&&n.push(u)}o[0]&&o[0].width1&&(t=Math.min(o[0].width1,t))}this.positions=n;var f=CTe(n);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={}}pg.prototype.put=function(r,t,a){var n=this.getLabel(r,t,a),i=this.bins[n]||0;return this.bins[n]=i+a,i};pg.prototype.get=function(r,t,a){var n=this.getLabel(r,t,a);return this.bins[n]||0};pg.prototype.getLabel=function(r,t,a){var n=a<0&&this.sepNegVal?"v":"^",i=this.overlapNoMerge?r:Math.round(r/this.binWidth);return n+i+"g"+t}});var Nd={};Dt(Nd,{TEXTPAD:()=>DTe,eventDataKeys:()=>ETe});var DTe,ETe,Id=Ct(()=>{"use strict";DTe=3,ETe=["value","label"]});var yg=z((yJe,BG)=>{"use strict";var oo=Br(),{isArrayOrTypedArray:as}=ke(),{BADNUM:S0}=(Kt(),Ne(aa)),PTe=Ar(),Bd=jr(),{getAxisGroup:RTe}=wf(),mg=FG(),{TEXTPAD:FTe}=(Id(),Ne(Nd)),{LINE_SPACING:zTe}=(un(),Ne(sn)),{BR_TAG_ALL:NTe}=Da();function ITe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;u<i.length;u++){var f=i[u];if(f.visible===!0&&PTe.traceIs(f,"bar")&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?l.push(o[u]):s.push(o[u]),f._computePh))for(var c=e.calcdata[u],v=0;v<c.length;v++)typeof c[v].ph0=="function"&&(c[v].ph0=c[v].ph0()),typeof c[v].ph1=="function"&&(c[v].ph1=c[v].ph1())}var d={xCat:t.type==="category"||t.type==="multicategory",yCat:a.type==="category"||a.type==="multicategory",mode:n.barmode,norm:n.barnorm,gap:n.bargap,groupgap:n.bargroupgap};r8(e,t,a,s,d),r8(e,a,t,l,d)}function r8(e,r,t,a,n){if(a.length){var i,o,l,s,u;switch(HTe(t,a),n.mode){case"overlay":e8(e,r,t,a,n);break;case"group":for(i=[],o=[],l=0;l<a.length;l++)s=a[l],u=s[0].trace,u.offset===void 0?o.push(s):i.push(s);o.length&&UTe(e,r,t,o,n),i.length&&e8(e,r,t,i,n);break;case"stack":case"relative":for(i=[],o=[],l=0;l<a.length;l++)s=a[l],u=s[0].trace,u.base===void 0?o.push(s):i.push(s);OTe(o),o.length&&GTe(e,r,t,o,n),i.length&&e8(e,r,t,i,n);break}BTe(a),ZTe(a,r)}}function BTe(e){var r,t,a,n,i,o,l;for(r=0;r<e.length;r++)t=e[r],a=t[0].trace,n=t[0].t,n.cornerradiusvalue===void 0&&(i=a.marker?a.marker.cornerradius:void 0,i!==void 0&&(o=oo(i)?+i:+i.slice(0,-1),l=oo(i)?"px":"%",n.cornerradiusvalue=o,n.cornerradiusform=l))}function OTe(e){if(!(e.length<2)){var r,t,a,n,i,o,l;for(r=0;r<e.length&&(t=e[r],a=t[0].trace,i=a.marker?a.marker.cornerradius:void 0,i===void 0);r++);if(i!==void 0)for(o=oo(i)?+i:+i.slice(0,-1),l=oo(i)?"px":"%",r=0;r<e.length;r++)t=e[r],n=t[0].t,n.cornerradiusvalue=o,n.cornerradiusform=l}}function HTe(e,r){var t,a;for(t=0;t<r.length;t++){var n=r[t],i=n[0].trace,o=i.type==="funnel"?i._base:i.base,l,s=i.orientation==="h"?i.xcalendar:i.ycalendar,u=e.type==="category"||e.type==="multicategory"?function(){return null}:e.d2c;if(as(o)){for(a=0;a<Math.min(o.length,n.length);a++)l=u(o[a],0,s),oo(l)?(n[a].b=+l,n[a].hasB=1):n[a].b=0;for(;a<n.length;a++)n[a].b=0}else{l=u(o,0,s);var f=oo(l);for(l=f?l:0,a=0;a<n.length;a++)n[a].b=l,f&&(n[a].hasB=1)}}}function e8(e,r,t,a,n){for(var i=0;i<a.length;i++){var o=a[i],l=new mg([o],{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});t8(e,r,l,n),n.norm?(IG(l),a8(t,l,n)):NG(t,l)}}function UTe(e,r,t,a,n){var i=new mg(a,{posAxis:r,sepNegVal:!1,overlapNoMerge:!n.norm});t8(e,r,i,n),WTe(i,r),n.norm?(IG(i),a8(t,i,n)):NG(t,i)}function GTe(e,r,t,a,n){var i=new mg(a,{posAxis:r,sepNegVal:n.mode==="relative",overlapNoMerge:!(n.norm||n.mode==="stack"||n.mode==="relative")});t8(e,r,i,n),jTe(t,i,n);for(var o=0;o<a.length;o++)for(var l=a[o],s=l[0].t.offsetindex,u=0;u<l.length;u++){var f=l[u];if(f.s!==S0){var c=f.b+f.s===i.get(f.p,s,f.s);c&&(f._outmost=!0)}}n.norm&&a8(t,i,n)}function t8(e,r,t,a){var n=e._fullLayout,i=t.positions,o=t.distinctPositions,l=t.minDiff,s=t.traces,u=s.length,f=i.length!==o.length,c=l*(1-a.gap),v,d,p,m;if(r._id==="angularaxis")v=c,d=v*(1-(a.groupgap||0)),p=-d/2;else{var y=RTe(n,r._id)+s[0][0].trace.orientation;m=n._alignmentOpts[y]||{}}for(var b=0;b<u;b++){var T=s[b],w=T[0].trace;if(r._id!=="angularaxis"){var x=m[w.alignmentgroup]||{},_=Object.keys(x.offsetGroups||{}).length;_?v=c/_:v=f?c/u:c,d=v*(1-(a.groupgap||0)),_?p=((2*w._offsetIndex+1-_)*v-d)/2:p=f?((2*b+1-u)*v-d)/2:-d/2}var k=T[0].t;k.barwidth=d,k.offsetindex=w._offsetIndex||0,k.poffset=p,k.bargroupwidth=c,k.bardelta=l}t.binWidth=s[0][0].t.barwidth/100,YTe(t),VTe(r,t),r._id==="angularaxis"?zG(r,t):zG(r,t,f)}function YTe(e){var r=e.traces,t,a;for(t=0;t<r.length;t++){var n=r[t],i=n[0],o=i.trace,l=i.t,s=o._offset||o.offset,u=l.poffset,f;if(as(s)){for(f=Array.prototype.slice.call(s,0,n.length),a=0;a<f.length;a++)oo(f[a])||(f[a]=u);for(a=f.length;a<n.length;a++)f.push(u);l.poffset=f}else s!==void 0&&(l.poffset=s);var c=o._width||o.width,v=l.barwidth;if(as(c)){var d=Array.prototype.slice.call(c,0,n.length);for(a=0;a<d.length;a++)oo(d[a])||(d[a]=v);for(a=d.length;a<n.length;a++)d.push(v);if(l.barwidth=d,s===void 0){for(f=[],a=0;a<n.length;a++)f.push(u+(v-d[a])/2);l.poffset=f}}else c!==void 0&&(l.barwidth=c,s===void 0&&(l.poffset=u+(v-c)/2))}}function VTe(e,r){for(var t=r.traces,a=q0(e),n=0;n<t.length;n++)for(var i=t[n],o=i[0].t,l=o.poffset,s=as(l),u=o.barwidth,f=as(u),c=0;c<i.length;c++){var v=i[c],d=v.w=f?u[c]:u;v.p===void 0&&(v.p=v[a],v["orig_"+a]=v[a]);var p=(s?l[c]:l)+d/2;v[a]=v.p+p}}function zG(e,r,t){var a=r.traces,n=r.minDiff,i=n/2;Bd.minDtick(e,r.minDiff,r.distinctPositions[0],t);for(var o=0;o<a.length;o++){var l=a[o],s=l[0],u=s.trace,f=[],c,v,d,p;for(p=0;p<l.length;p++)c=l[p],v=c.p-i,d=c.p+i,f.push(v,d);if(u.width||u.offset){var m=s.t,y=m.poffset,b=m.barwidth,T=as(y),w=as(b);for(p=0;p<l.length;p++){c=l[p];var x=T?y[p]:y,_=w?b[p]:b;v=c.p+x,d=v+_,f.push(v,d)}}u._extremes[e._id]=Bd.findExtremes(e,f,{padded:!1})}}function NG(e,r){for(var t=r.traces,a=q0(e),n=0;n<t.length;n++){for(var i=t[n],o=i[0].trace,l=o.type==="scatter",s=o.orientation==="v",u=[],f=!1,c=0;c<i.length;c++){var v=i[c],d=l?0:v.b,p=l?s?v.y:v.x:d+v.s;v[a]=p,u.push(p),v.hasB&&u.push(d),(!v.hasB||!v.b)&&(f=!0)}let{ppadminus:m,ppadplus:y}=n8(o,i);o._extremes[e._id]=Bd.findExtremes(e,u,{tozero:f,padded:!0,ppadplus:y,ppadminus:m})}}function jTe(e,r,t){var a=q0(e),n=r.traces,i,o,l,s,u,f,c;for(s=0;s<n.length;s++)if(i=n[s],o=i[0].trace,o.type==="funnel")for(c=i[0].t.offsetindex,u=0;u<i.length;u++)f=i[u],f.s!==S0&&r.put(f.p,c,-.5*f.s);for(s=0;s<n.length;s++){i=n[s],o=i[0].trace,l=o.type==="funnel",c=o.type==="barpolar"?0:i[0].t.offsetindex;var v=[];for(u=0;u<i.length;u++)if(f=i[u],f.s!==S0){var d;l?d=f.s:d=f.s+f.b;var p=r.put(f.p,c,d),m=p+d;f.b=p,f[a]=m,t.norm||(v.push(m),f.hasB&&v.push(p))}if(!t.norm){let{ppadminus:y,ppadplus:b}=n8(o,i);o._extremes[e._id]=Bd.findExtremes(e,v,{tozero:!0,padded:!0,ppadplus:b,ppadminus:y})}}}function IG(e){for(var r=e.traces,t=0;t<r.length;t++)for(var a=r[t],n=a[0].t.offsetindex,i=0;i<a.length;i++){var o=a[i];o.s!==S0&&e.put(o.p,n,o.b+o.s)}}function WTe(e,r){for(var t=e.traces,a=0;a<t.length;a++){var n=t[a],i=n[0].trace,o=n[0].t.offsetindex;if(i.base===void 0)for(var l=new mg([n],{posAxis:r,sepNegVal:!0,overlapNoMerge:!0}),s=0;s<n.length;s++){var u=n[s];if(u.p!==S0){var f=l.put(u.p,o,u.b+u.s);f&&(u.b=f)}}}}function a8(e,r,t){var a=r.traces,n=q0(e),i=t.norm==="fraction"?1:100,o=i/1e9,l=e.l2c(e.c2l(0)),s=t.mode==="stack"?i:l;function u(k){return oo(e.c2l(k))&&(k<l-o||k>s+o||!oo(l))}for(var f=0;f<a.length;f++){for(var c=a[f],v=c[0].t.offsetindex,d=c[0].trace,p=[],m=!1,y=!1,b=0;b<c.length;b++){var T=c[b];if(T.s!==S0){var w=Math.abs(i/r.get(T.p,v,T.s));T.b*=w,T.s*=w;var x=T.b,_=x+T.s;T[n]=_,p.push(_),y=y||u(_),T.hasB&&(p.push(x),y=y||u(x)),(!T.hasB||!T.b)&&(m=!0)}}let{ppadminus:k,ppadplus:M}=n8(d,c);d._extremes[e._id]=Bd.findExtremes(e,p,{tozero:m,padded:y,ppadplus:M,ppadminus:k})}}function n8(e,r){if(e.orientation==="v"&&(e.text||e.texttemplate)&&e.textposition==="outside"&&(e.textangle==="auto"||e.textangle===0)){let a=function(i){return!i||typeof i!="string"?0:(i.match(NTe)||[]).length+1};var t;e.texttemplate?t=a(e.texttemplate):t=as(e.text)?Math.max(...e.text.map(i=>a(i))):a(e.text);let n=e.outsidetextfont.size*zTe*t+FTe;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function XTe(e,r,t,a){for(var n=q0(a),i=0;i<e.length;i++)for(var o=e[i],l=0;l<o.length;l++){var s=o[l],u=s[n];s._sMin=r[u],s._sMax=t[u]}}function ZTe(e,r){var t=q0(r),a={},n,i,o,l=1/0,s=-1/0;for(n=0;n<e.length;n++)for(o=e[n],i=0;i<o.length;i++){var u=o[i].p;oo(u)&&(l=Math.min(l,u),s=Math.max(s,u))}var f=1e4/(s-l),c=a.round=function(q){return String(Math.round(f*(q-l)))},v={},d={},p=e.some(function(q){var C=q[0].trace;return"marker"in C&&C.marker.cornerradius});for(n=0;n<e.length;n++){o=e[n],o[0].t.extents=a;var m=o[0].t.poffset,y=as(m);for(i=0;i<o.length;i++){var b=o[i],T=b[t]-b.w/2;if(oo(T)){var w=b[t]+b.w/2,x=c(b.p);a[x]?a[x]=[Math.min(T,a[x][0]),Math.max(w,a[x][1])]:a[x]=[T,w]}if(b.p0=b.p+(y?m[i]:m),b.p1=b.p0+b.w,b.s0=b.b,b.s1=b.s0+b.s,p){var _=Math.min(b.s0,b.s1)||0,k=Math.max(b.s0,b.s1)||0,M=b[t];v[M]=M in v?Math.min(v[M],_):_,d[M]=M in d?Math.max(d[M],k):k}}}p&&XTe(e,v,d,r)}function q0(e){return e._id.charAt(0)}BG.exports={crossTraceCalc:ITe,setGroupPositions:r8}});var GG=z((gJe,UG)=>{"use strict";var OG=dg(),HG=yg().setGroupPositions;function $Te(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;u<i.length;u++){var f=i[u];f.visible===!0&&f.type==="scatter"&&f.xaxis===t._id&&f.yaxis===a._id&&(f.orientation==="h"?l.push(o[u]):f.orientation==="v"&&s.push(o[u]))}var c={mode:n.scattermode,gap:n.scattergap};HG(e,t,a,s,c),HG(e,a,t,l,c)}UG.exports=function(r,t){r._fullLayout.scattermode==="group"&&$Te(r,t);var a=t.xaxis,n=t.yaxis,i=a._id+n._id,o=r._fullLayout._scatterStackOpts[i];if(o){var l=r.calcdata,s,u,f,c,v,d,p,m,y,b,T,w,x,_,k;for(var M in o){b=o[M];var q=b.traceIndices;if(q.length){for(T=b.stackgaps==="interpolate",w=b.groupnorm,b.orientation==="v"?(x="x",_="y"):(x="y",_="x"),k=new Array(q.length),s=0;s<k.length;s++)k[s]=!1;d=l[q[0]];var C=new Array(d.length);for(s=0;s<d.length;s++)C[s]=d[s][x];for(s=1;s<q.length;s++){for(v=l[q[s]],u=f=0;u<v.length;u++){for(p=v[u][x];p>C[f]&&f<C.length;f++)i8(v,u,C[f],s,k,T,x),u++;if(p!==C[f]){for(c=0;c<s;c++)i8(l[q[c]],f,p,c,k,T,x);C.splice(f,0,p)}f++}for(;f<C.length;f++)i8(v,u,C[f],s,k,T,x),u++}var E=C.length;for(u=0;u<d.length;u++){for(m=d[u][_]=d[u].s,s=1;s<q.length;s++)v=l[q[s]],v[0].trace._rawLength=v[0].trace._length,v[0].trace._length=E,m+=v[u].s,v[u][_]=m;if(w)for(y=(w==="fraction"?m:m/100)||1,s=0;s<q.length;s++){var P=l[q[s]][u];P[_]/=y,P.sNorm=P.s/y}}for(s=0;s<q.length;s++){v=l[q[s]];var R=v[0].trace,B=OG.calcMarkerSize(R,R._rawLength),I=Array.isArray(B);if(B&&k[s]||I){var N=B;for(B=new Array(E),u=0;u<E;u++)B[u]=v[u].gap?0:I?N[v[u].i]:N}var H=new Array(E),G=new Array(E);for(u=0;u<E;u++)H[u]=v[u].x,G[u]=v[u].y;OG.calcAxisExpansion(r,R,a,n,H,G,B),v[0].t.orientation=b.orientation}}}}};function i8(e,r,t,a,n,i,o){n[a]=!0;var l={i:null,gap:!0,s:0};if(l[o]=t,e.splice(r,0,l),r&&t===e[r-1][o]){var s=e[r-1];l.s=s.s,l.i=s.i,l.gap=s.gap}else i&&(l.s=JTe(e,r,t,o));r||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}function JTe(e,r,t,a){var n=e[r-1],i=e[r+1];return i?n?n.s+(i.s-n.s)*(t-n[a])/(i[a]-n[a]):i.s:n.s}});var l8=z((bJe,ZG)=>{"use strict";var KTe=et(),WG=(Kt(),Ne(aa)),Od=WG.BADNUM,XG=WG.LOG_CLIP,YG=XG+.5,VG=XG-.5,gg=ke(),QTe=gg.segmentsIntersect,jG=gg.constrain,o8=(wd(),Ne(_d));ZG.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",b=[],T=o8.minTolerance,w=r.length,x=new Array(w),_=0,k,M,q,C,E,P,R,B,I,N,H,G,Y,j,W,V;function J(Re){var Ze=r[Re];if(!Ze)return!1;var ze=t.linearized?n.l2p(Ze.x):n.c2p(Ze.x),rr=t.linearized?i.l2p(Ze.y):i.c2p(Ze.y);if(ze===Od){if(o&&(ze=n.c2p(Ze.x,!0)),ze===Od)return!1;l&&rr===Od&&(ze*=Math.abs(n._m*u*(n._m>0?YG:VG)/(i._m*s*(i._m>0?YG:VG)))),ze*=1e3}if(rr===Od){if(l&&(rr=i.c2p(Ze.y,!0)),rr===Od)return!1;rr*=1e3}return[ze,rr]}function re(Re,Ze,ze,rr){var cr=ze-Re,pr=rr-Ze,mr=.5-Re,ie=.5-Ze,ye=cr*cr+pr*pr,Fe=cr*mr+pr*ie;if(Fe>0&&Fe<ye){var He=mr*pr-ie*cr;if(He*He<ye)return!0}}var le,ne;function $(Re,Ze){var ze=Re[0]/s,rr=Re[1]/u,cr=Math.max(0,-ze,ze-1,-rr,rr-1);return cr&&le!==void 0&&re(ze,rr,le,ne)&&(cr=0),cr&&Ze&&re(ze,rr,Ze[0]/s,Ze[1]/u)&&(cr=0),(1+o8.toleranceGrowth*cr)*d}function ce(Re,Ze){var ze=Re[0]-Ze[0],rr=Re[1]-Ze[1];return Math.sqrt(ze*ze+rr*rr)}var te=o8.maxScreensAway,ge=-s*te,se=s*(1+te),oe=-u*te,Ae=u*(1+te),Pe=[[ge,oe,se,oe],[se,oe,se,Ae],[se,Ae,ge,Ae],[ge,Ae,ge,oe]],me,Ce,Me,Le,Se,Ee;function qe(Re,Ze){for(var ze=[],rr=0,cr=0;cr<4;cr++){var pr=Pe[cr],mr=QTe(Re[0],Re[1],Ze[0],Ze[1],pr[0],pr[1],pr[2],pr[3]);mr&&(!rr||Math.abs(mr.x-ze[0][0])>1||Math.abs(mr.y-ze[0][1])>1)&&(mr=[mr.x,mr.y],rr&&ce(mr,Re)<ce(ze[0],Re)?ze.unshift(mr):ze.push(mr),rr++)}return ze}function Ue(Re){if(Re[0]<ge||Re[0]>se||Re[1]<oe||Re[1]>Ae)return[jG(Re[0],ge,se),jG(Re[1],oe,Ae)]}function Je(Re,Ze){if(Re[0]===Ze[0]&&(Re[0]===ge||Re[0]===se)||Re[1]===Ze[1]&&(Re[1]===oe||Re[1]===Ae))return!0}function Ke(Re,Ze){var ze=[],rr=Ue(Re),cr=Ue(Ze);return rr&&cr&&Je(rr,cr)||(rr&&ze.push(rr),cr&&ze.push(cr)),ze}function De(Re,Ze,ze){return function(rr,cr){var pr=Ue(rr),mr=Ue(cr),ie=[];if(pr&&mr&&Je(pr,mr))return ie;pr&&ie.push(pr),mr&&ie.push(mr);var ye=2*gg.constrain((rr[Re]+cr[Re])/2,Ze,ze)-((pr||rr)[Re]+(mr||cr)[Re]);if(ye){var Fe;pr&&mr?Fe=ye>0==pr[Re]>mr[Re]?pr:mr:Fe=pr||mr,Fe[Re]+=ye}return ie}}var Be;p==="linear"||p==="spline"?Be=qe:p==="hv"||p==="vh"?Be=Ke:p==="hvh"?Be=De(0,ge,se):p==="vhv"&&(Be=De(1,oe,Ae));function er(Re,Ze){var ze=Ze[0]-Re[0],rr=(Ze[1]-Re[1])/ze,cr=(Re[1]*Ze[0]-Ze[1]*Re[0])/ze;return cr>0?[rr>0?ge:se,Ae]:[rr>0?se:ge,oe]}function ae(Re){var Ze=Re[0],ze=Re[1],rr=Ze===x[_-1][0],cr=ze===x[_-1][1];if(!(rr&&cr))if(_>1){var pr=Ze===x[_-2][0],mr=ze===x[_-2][1];rr&&(Ze===ge||Ze===se)&&pr?mr?_--:x[_-1]=Re:cr&&(ze===oe||ze===Ae)&&mr?pr?_--:x[_-1]=Re:x[_++]=Re}else x[_++]=Re}function be(Re){x[_-1][0]!==Re[0]&&x[_-1][1]!==Re[1]&&ae([Me,Le]),ae(Re),Se=null,Me=Le=0}var Ge=gg.isArrayOrTypedArray(c);function sr(Re){if(Re&&f&&(Re.i=k,Re.d=r,Re.trace=a,Re.marker=Ge?c[Re.i]:c,Re.backoff=f),le=Re[0]/s,ne=Re[1]/u,me=Re[0]<ge?ge:Re[0]>se?se:0,Ce=Re[1]<oe?oe:Re[1]>Ae?Ae:0,me||Ce){if(!_)x[_++]=[me||Re[0],Ce||Re[1]];else if(Se){var Ze=Be(Se,Re);Ze.length>1&&(be(Ze[0]),x[_++]=Ze[1])}else Ee=Be(x[_-1],Re)[0],x[_++]=Ee;var ze=x[_-1];me&&Ce&&(ze[0]!==me||ze[1]!==Ce)?(Se&&(Me!==me&&Le!==Ce?ae(Me&&Le?er(Se,Re):[Me||me,Le||Ce]):Me&&Le&&ae([Me,Le])),ae([me,Ce])):Me-me&&Le-Ce&&ae([me||Me,Ce||Le]),Se=Re,Me=me,Le=Ce}else Se&&be(Be(Se,Re)[0]),x[_++]=Re}for(k=0;k<w;k++)if(M=J(k),!!M){for(_=0,Se=null,sr(M),k++;k<w;k++){if(C=J(k),!C){if(v)continue;break}if(!m||!t.simplify){sr(C);continue}var vr=J(k+1);if(N=ce(C,M),!(!(y&&(_===0||_===w-1))&&N<$(C,vr)*T)){for(B=[(C[0]-M[0])/N,(C[1]-M[1])/N],E=M,H=N,G=j=W=0,R=!1,q=C,k++;k<r.length;k++){if(P=vr,vr=J(k+1),!P){if(v)continue;break}if(I=[P[0]-M[0],P[1]-M[1]],V=I[0]*B[1]-I[1]*B[0],j=Math.min(j,V),W=Math.max(W,V),W-j>$(P,vr))break;q=P,Y=I[0]*B[0]+I[1]*B[1],Y>H?(H=Y,C=P,R=!1):Y<G&&(G=Y,E=P,R=!0)}if(R?(sr(C),q!==E&&sr(E)):(E!==M&&sr(E),q!==C&&sr(C)),sr(q),k>=r.length||!P)break;sr(P),M=P}}Se&&ae([Me||Se[0],Le||Se[1]]),b.push(x.slice(0,_))}var ue=p.slice(p.length-1);if(f&&ue!=="h"&&ue!=="v"){for(var xe=!1,Ie=-1,We=[],Oe=0;Oe<b.length;Oe++)for(var Xe=0;Xe<b[Oe].length-1;Xe++){var Qe=b[Oe][Xe],_r=b[Oe][Xe+1],gr=KTe.applyBackoff(_r,Qe);(gr[0]!==_r[0]||gr[1]!==_r[1])&&(xe=!0),We[Ie+1]||(Ie++,We[Ie]=[Qe,[gr[0],gr[1]]])}return xe?We:b}return b}});var KG=z((xJe,JG)=>{"use strict";var $G={tonextx:1,tonexty:1,tonext:1};JG.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i<a.length;i++)n=a[i][0].trace,o=n.stackgroup||"",o?o in u?s=u[o]:(s=u[o]=v,v++):n.fill in $G&&d>=0?s=d:(s=d=v,v++),s<c&&(f=!0),n._groupIndex=c=s;var p=a.slice();f&&p.sort(function(y,b){var T=y[0].trace,w=b[0].trace;return T._groupIndex-w._groupIndex||T.index-w.index});var m={};for(i=0;i<p.length;i++)n=p[i][0].trace,o=n.stackgroup||"",n.visible===!0?(n._nexttrace=null,n.fill in $G&&(l=m[o],n._prevtrace=l||null,l&&(l._nexttrace=n)),n._ownfill=n.fill&&(n.fill.slice(0,6)==="tozero"||n.fill==="toself"||n.fill.slice(0,2)==="to"&&!n._prevtrace),m[o]=n):n._prevtrace=n._nexttrace=n._ownfill=null;return p}});var s8=z((_Je,rY)=>{"use strict";var Go=Pr(),eAe=Ar(),Hd=ke(),L0=Hd.ensureSingle,eY=Hd.identity,da=et(),C0=ii(),rAe=l8(),tAe=KG(),bg=tw().tester;rY.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=tAe(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),aAe(r,l,t),f){o&&(s=o());var v=Go.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){QG(r,p,t,d,c,this,i)})})}else l.each(function(d,p){QG(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function aAe(e,r,t){r.each(function(a){var n=L0(Go.select(this),"g","fills");da.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,eY);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=L0(Go.select(this),"path","js-fill")})})}function QG(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;nAe(e,r,t,a,n);var u=!!o&&o.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,m=Go.select(i),y=L0(m,"g","errorbars"),b=L0(m,"g","lines"),T=L0(m,"g","points"),w=L0(m,"g","text");if(eAe.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(m).style("opacity",d.opacity);var x,_,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,q;k==="y"?(M=1,q=v.c2p(0,!0)):k==="x"&&(M=0,q=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var C="",E=[],P=d._prevtrace,R=null,B=null;P&&(C=P._prevRevpath||"",_=P._nextFill,E=P._ownPolygons,R=P._fillsegments,B=P._fillElement);var I,N,H="",G="",Y,j,W,V,J,re,le=[];d._polygons=[];var ne=[],$=[],ce=Hd.noop;if(x=d._ownFill,C0.hasLines(d)||d.fill!=="none"){_&&_.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(Y=da.steps(p.shape),j=da.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?Y=j=function(De){var Be=De[De.length-1];return De.length>1&&De[0][0]===Be[0]&&De[0][1]===Be[1]?da.smoothclosed(De.slice(1),p.smoothing):da.smoothopen(De,p.smoothing)}:Y=j=function(De){return"M"+De.join("L")},W=function(De){return j(De.reverse())},$=rAe(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),ne=new Array($.length);var te=0;for(s=0;s<$.length;s++){var ge,se=$[s];!ge||!k?(ge=se.slice(),ne[te]=ge,te++):ge.push.apply(ge,se)}d._fillElement=null,d._fillExclusionElement=B,d._fillsegments=ne.slice(0,te),ne=d._fillsegments,$.length&&(V=$[0][0].slice(),J=$[$.length-1],re=J[J.length-1].slice()),ce=function(De){return function(Be){if(I=Y(Be),N=W(Be),H?k?(H+="L"+I.slice(1),G=N+("L"+G.slice(1))):(H+="Z"+I,G=N+"Z"+G):(H=I,G=N),C0.hasLines(d)){var er=Go.select(this);if(er.datum(a),De)f(er.style("opacity",0).attr("d",I).call(da.lineGroupStyle)).style("opacity",1);else{var ae=f(er);ae.attr("d",I),da.singleLineStyle(a,ae)}}}}}var oe=b.selectAll(".js-line").data($);f(oe.exit()).style("opacity",0).remove(),oe.each(ce(!1)),oe.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(da.lineGroupStyle).each(ce(!0)),da.setClipUrl(oe,t.layerClipId,e);function Ae(De){f(De).attr("d","M0,0Z")}var Pe=function(){var De=new Array(ne.length);for(s=0;s<ne.length;s++)De[s]=bg(ne[s]);return De},me=function(De){var Be,er;if(!De||De.length===0)for(Be=new Array(ne.length),er=0;er<ne.length;er++){var ae=ne[er][0].slice(),be=ne[er][ne[er].length-1].slice();ae[M]=be[M]=q;var Ge=[be,ae],sr=Ge.concat(ne[er]);Be[er]=bg(sr)}else{for(Be=new Array(De.length-1+ne.length),er=0;er<De.length-1;er++)Be[er]=bg(De[er]);var vr=De[De.length-1].slice();for(vr.reverse(),er=0;er<ne.length;er++)Be[De.length-1+er]=bg(ne[er].concat(vr))}return Be};$.length?(x?(x.datum(a),V&&re&&(k?(V[M]=re[M]=q,f(x).attr("d","M"+re+"L"+V+"L"+H.slice(1)).call(da.singleFillStyle,e),le=me(null)):(f(x).attr("d",H+"Z").call(da.singleFillStyle,e),le=Pe())),d._polygons=le,d._fillElement=x):_&&(d.fill.slice(0,6)==="tonext"&&H&&C?(d.fill==="tonext"?(f(_).attr("d",H+"Z"+C+"Z").call(da.singleFillStyle,e),le=Pe(),d._polygons=le.concat(E)):(f(_).attr("d",H+"L"+C.slice(1)+"Z").call(da.singleFillStyle,e),le=me(R),d._polygons=le),d._fillElement=_):Ae(_)),d._prevRevpath=G):(x?Ae(x):_&&Ae(_),d._prevRevpath=null),d._ownPolygons=le;function Ce(De){return De.filter(function(Be){return!Be.gap&&Be.vis})}function Me(De){return De.filter(function(Be){return Be.vis})}function Le(De){return De.filter(function(Be){return!Be.gap})}function Se(De){return De.id}function Ee(De){if(De.ids)return Se}function qe(){return!1}function Ue(De,Be,er){var ae,be,Ge,sr=er[0].trace,vr=C0.hasMarkers(sr),ue=C0.hasText(sr),xe=Ee(sr),Ie=qe,We=qe;if(vr||ue){var Oe=eY,Xe=sr.stackgroup,Qe=Xe&&e._fullLayout._scatterStackOpts[c._id+v._id][Xe].stackgaps==="infer zero";sr.marker.maxdisplayed||sr._needsCull?Oe=Qe?Me:Ce:Xe&&!Qe&&(Oe=Le),vr&&(Ie=Oe),ue&&(We=Oe)}be=De.selectAll("path.point"),ae=be.data(Ie,xe);var _r=ae.enter().append("path").classed("point",!0);u&&_r.call(da.pointStyle,sr,e).call(da.translatePoints,c,v).style("opacity",0).transition().style("opacity",1),ae.order();var gr;vr&&(gr=da.makePointStyleFns(sr)),ae.each(function(Re){var Ze=Go.select(this),ze=f(Ze);Ge=da.translatePoint(Re,ze,c,v),Ge?(da.singlePointStyle(Re,ze,sr,gr,e),t.layerClipId&&da.hideOutsideRangePoint(Re,ze,c,v,sr.xcalendar,sr.ycalendar),sr.customdata&&Ze.classed("plotly-customdata",Re.data!==null&&Re.data!==void 0)):ze.remove()}),u?ae.exit().transition().style("opacity",0).remove():ae.exit().remove(),be=Be.selectAll("g"),ae=be.data(We,xe),ae.enter().append("g").classed("textpoint",!0).append("text"),ae.order(),ae.each(function(Re){var Ze=Go.select(this),ze=f(Ze.select("text"));Ge=da.translatePoint(Re,ze,c,v),Ge?t.layerClipId&&da.hideOutsideRangePoint(Re,Ze,c,v,sr.xcalendar,sr.ycalendar):Ze.remove()}),ae.selectAll("text").call(da.textPointStyle,sr,e).each(function(Re){var Ze=c.c2p(Re.x),ze=v.c2p(Re.y);Go.select(this).selectAll("tspan.line").each(function(){f(Go.select(this)).attr({x:Ze,y:ze})})}),ae.exit().remove()}T.datum(a),w.datum(a),Ue(T,w,a);var Je=d.cliponaxis===!1,Ke=Je?null:t.layerClipId;da.setClipUrl(T,Ke,e),da.setClipUrl(w,Ke,e)}function nAe(e,r,t,a,n){var i=t.xaxis,o=t.yaxis,l=Go.extent(Hd.simpleMap(i.range,i.r2c)),s=Go.extent(Hd.simpleMap(o.range,o.r2c)),u=a[0].trace;if(C0.hasMarkers(u)){var f=u.marker.maxdisplayed;if(f!==0){var c=a.filter(function(m){return m.x>=l[0]&&m.x<=l[1]&&m.y>=s[0]&&m.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(m,y){var b=m[0].trace;C0.hasMarkers(b)&&b.marker.maxdisplayed>0&&y<r&&d++});var p=Math.round(d*v/3+Math.floor(d/3)*v/7.1);a.forEach(function(m){delete m.vis}),c.forEach(function(m,y){Math.round((y+p)%v)===0&&(m.vis=!0)})}}}});var Ud=z((wJe,tY)=>{"use strict";tY.exports={container:"marker",min:"cmin",max:"cmax"}});var u8=z((TJe,aY)=>{"use strict";var xg=jr();aY.exports=function(r,t,a){var n={},i={_fullLayout:a},o=xg.getFromTrace(i,t,"x"),l=xg.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=xg.tickText(o,o.c2l(s),!0).text,n.yLabel=xg.tickText(l,l.c2l(u),!0).text,n}});var kf=z((AJe,nY)=>{"use strict";var f8=Pr(),D0=et(),iAe=Ar();function oAe(e){var r=f8.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=f8.select(this),n=t.trace||t[0].trace;c8(a,n,e)}),r.selectAll("g.text").each(function(t){var a=f8.select(this),n=t.trace||t[0].trace;v8(a,n,e)}),r.selectAll("g.trace path.js-line").call(D0.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(D0.fillGroupStyle,e,!1),iAe.getComponentMethod("errorbars","style")(r)}function c8(e,r,t){D0.pointStyle(e.selectAll("path.point"),r,t)}function v8(e,r,t){D0.textPointStyle(e.selectAll("text"),r,t)}function lAe(e,r,t){var a=r[0].trace;a.selectedpoints?(D0.selectedPointStyle(t.selectAll("path.point"),a),D0.selectedTextStyle(t.selectAll("text"),a)):(c8(t,a,e),v8(t,a,e))}nY.exports={style:oAe,stylePoints:c8,styleText:v8,styleOnSelect:lAe}});var oY=z((MJe,iY)=>{"use strict";var E0=qr(),sAe=ii();iY.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&E0.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&E0.opacity(i)?i:o&&E0.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?E0.opacity(n)<.3?E0.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&E0.opacity(a)&&sAe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var d8=z((kJe,sY)=>{"use strict";var _g=ke(),lY=Yn(),uAe=Ar(),fAe=oY(),h8=qr(),cAe=_g.fillText;sY.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var y=function(G){if(p){var Y=l.c2p(G.xStart),j=l.c2p(G.xEnd);return u>=Math.min(Y,j)&&u<=Math.max(Y,j)?0:1/0}var W=Math.max(3,G.mrc||0),V=1-1/W,J=Math.abs(l.c2p(G.x)-u);return J<W?V*J/W:J-W+V},b=function(G){if(m){var Y=s.c2p(G.yStart),j=s.c2p(G.yEnd);return f>=Math.min(Y,j)&&f<=Math.max(Y,j)?0:1/0}var W=Math.max(3,G.mrc||0),V=1-1/W,J=Math.abs(s.c2p(G.y)-f);return J<W?V*J/W:J-W+V},T=function(G){var Y=Math.max(d,G.mrc||0),j=l.c2p(G.x)-u,W=s.c2p(G.y)-f;return Math.max(Math.sqrt(j*j+W*W)-Y,1-d/Y)},w=lY.getDistanceFunction(n,y,b,T);if(lY.getClosest(i,w,r),r.index!==!1){var x=i[r.index],_=l.c2p(x.x,!0),k=s.c2p(x.y,!0),M=x.mrc||1;r.index=x.i;var q=i[0].t.orientation,C=q&&(x.sNorm||x.s),E=q==="h"?C:x.orig_x!==void 0?x.orig_x:x.x,P=q==="v"?C:x.orig_y!==void 0?x.orig_y:x.y;return _g.extendFlat(r,{color:fAe(o,x),x0:_-M,x1:_+M,xLabelVal:E,y0:k-M,y1:k+M,yLabelVal:P,spikeDistance:T(x),hovertemplate:o.hovertemplate}),cAe(x,o,r),uAe.getComponentMethod("errorbars","hoverInfo")(x,o,r),[r]}}function R(G){if(!G)return!1;var Y=G.node();try{var j=new DOMPoint(c[0],c[1]);return Y.isPointInFill(j)}catch(V){var W=Y.ownerSVGElement.createSVGPoint();return W.x=c[0],W.y=c[1],Y.isPointInFill(W)}}function B(G){var Y,j=[],W=1/0,V=-1/0,J=1/0,re=-1/0,le;for(Y=0;Y<G.length;Y++){var ne=G[Y];ne.contains(c)&&(j.push(ne),J=Math.min(J,ne.ymin),re=Math.max(re,ne.ymax))}if(j.length===0)return null;J=Math.max(J,0),re=Math.min(re,s._length),le=(J+re)/2;var $,ce,te,ge,se,oe,Ae;for(Y=0;Y<j.length;Y++)for(ce=j[Y].pts,$=1;$<ce.length;$++)oe=ce[$-1][1],Ae=ce[$][1],oe>le!=Ae>=le&&(ge=ce[$-1][0],se=ce[$][0],Ae-oe&&(te=ge+(se-ge)*(le-oe)/(Ae-oe),W=Math.min(W,te),V=Math.max(V,te)));return W=Math.max(W,0),V=Math.min(V,l._length),{x0:W,x1:V,y0:le,y1:le}}if(v.indexOf("fills")!==-1&&o._fillElement){var I=R(o._fillElement)&&!R(o._fillExclusionElement);if(I){var N=B(o._polygons);N===null&&(N={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var H=h8.defaultLine;return h8.opacity(o.fillcolor)?H=o.fillcolor:h8.opacity((o.line||{}).color)&&(H=o.line.color),_g.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:H,hovertemplate:!1}),delete r.index,o.text&&!_g.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var p8=z((SJe,fY)=>{"use strict";var uY=ii();fY.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=l.mode&&!uY.hasMarkers(l)&&!uY.hasText(l);if(v)return[];if(t===!1)for(s=0;s<a.length;s++)a[s].selected=0;else for(s=0;s<a.length;s++)u=a[s],f=n.c2p(u.x),c=i.c2p(u.y),u.i!==null&&t.contains([f,c],!1,s,r)?(o.push({pointNumber:u.i,x:n.c2d(u.x),y:i.c2d(u.y)}),u.selected=1):u.selected=0;return o}});var vY=z((qJe,cY)=>{"use strict";cY.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var mY=z((LJe,pY)=>{"use strict";var wg=Ar().traceIs,m8=Am();pY.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(vAe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function vAe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=hAe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!wg(i,"cartesian")||wg(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,dY(i,a)){var u=hY(i),f=[];for(n=0;n<r.length;n++){var c=r[n];!wg(c,"box-violin")||(c[a+"axis"]||a)!==t||(c[u]!==void 0?f.push(c[u][0]):c.name!==void 0?f.push(c.name):f.push("text"),c[o]!==l&&(l=void 0))}e.type=m8(f,l,s)}else if(i.type==="splom"){var v=i.dimensions,d=v[i._axesDim[t]];d.visible&&(e.type=m8(d.values,l,s))}else e.type=m8(i[a]||[i[a+"0"]],l,s)}}}function hAe(e,r,t){for(var a=0;a<e.length;a++){var n=e[a];if(n.type==="splom"&&n._length>0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(dY(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function hY(e){return{v:"x",h:"y"}[e.orientation||"v"]}function dY(e,r){var t=hY(e),a=wg(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var gY=z((CJe,yY)=>{"use strict";var dAe=Qn().isTypedArraySpec;function pAe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i<r.data.length;i++){var l=r.data[i];l[t+"axis"]===e._id&&n.push(l)}for(i=0;i<n.length;i++){var s=n[i][t];for(o=0;o<s.length;o++){var u=s[o];u!=null&&(a[u]=1)}}return Object.keys(a)}yY.exports=function(r,t,a,n){if(t.type==="category"){var i=r.categoryarray,o=Array.isArray(i)&&i.length>0||dAe(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=pAe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var y8=z((DJe,xY)=>{"use strict";var bY=qr(),mAe=Hi(),yAe=ke();xY.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(q,C){return yAe.coerce2(r,t,n.attributes,q,C)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=bY.mix(i,n.bgColor,n.blend||mAe.lightFraction),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=bY.mix(t.gridcolor,n.bgColor,67),y=o("minor.gridcolor",m),b=o("minor.gridwidth",t.gridwidth||1),T=o("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!y||!!b||!!T);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),_=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!_||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var b8=z((EJe,kY)=>{"use strict";var _Y=Br(),gAe=Ar(),Gd=ke(),bAe=Pt(),xAe=zo(),g8=ji(),wY=im(),TY=om(),_Ae=sm(),wAe=um(),TAe=gY(),AAe=y8(),MAe=$6(),AY=l0(),Tg=(Ha(),Ne(Oa)).WEEKDAY_PATTERN,kAe=(Ha(),Ne(Oa)).HOUR_PATTERN;kY.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var d=gAe.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=Gd.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),AY(t,i),MAe(r,t,a,n),TAe(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==g8.color.dflt?m:l.color,b=s.label||i._dfltTitle[o];if(wAe(r,t,a,c,n),!u)return t;a("title.text",b),Gd.coerceFont(a,"title.font",l,{overrideDflt:{size:Gd.bigFont(l.size),color:y}}),wY(r,t,a,c);var T=n.hasMinor;if(T&&(bAe.newContainer(t,"minor"),wY(r,t,a,c,{isMinor:!0})),_Ae(r,t,a,c,n),TY(r,t,a,n),T){var w=n.isMinor;n.isMinor=!0,TY(r,t,a,n),n.isMinor=w}AAe(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:g8}),T&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var _=a("showdividers");_&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(xAe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:SAe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k<t.rangebreaks.length;k++)if(t.rangebreaks[k].pattern===Tg){t._hasDayOfWeekBreaks=!0;break}if(AY(t,i),i._has("scattergl")||i._has("splom"))for(var M=0;M<n.data.length;M++){var q=n.data[M];(q.type==="scattergl"||q.type==="splom")&&(q.visible=!1,Gd.warn(q.type+" traces do not work on axes with rangebreaks. Setting trace "+q.index+" to `visible: false`."))}}return t};function SAe(e,r,t){function a(v,d){return Gd.coerce(e,r,g8.rangebreaks,v,d)}var n=a("enabled");if(n){var i=a("bounds");if(i&&i.length>=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=MY(i[l]),s){o=Tg;break}}var u=a("pattern",o);if(u===Tg)for(l=0;l<2;l++)s=MY(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case Tg:if(!_Y(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case kAe:if(!_Y(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]<f[1]){if(i[0]<f[0]&&i[1]>f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]<f[1]){r.enabled=!1;return}}}else{var c=a("values");if(c&&c.length)a("dvalue");else{r.enabled=!1;return}}}}var qAe={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function MY(e){if(typeof e=="string")return qAe[e.slice(0,3).toLowerCase()]}});var x8=z((PJe,SY)=>{"use strict";var LAe=Br(),Ag=ke();SY.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,m;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(LAe(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var y=Ag.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=Ag.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(y==="free"){if(l==="y"){var T=a("autoshift");T&&(d=b==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",m);var w=!1;if(o.length&&(w=Ag.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!w){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),Ag.noneOrAll(r.domain,t.domain,c),l==="x"?(a("domainpad.left"),a("domainpad.right")):(a("domainpad.top"),a("domainpad.bottom")),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var zY=z((RJe,FY)=>{"use strict";var Sf=ke(),qY=qr(),CAe=No().isUnifiedHover,DAe=A7(),LY=Pt(),EAe=Oc(),CY=ji(),PAe=mY(),DY=b8(),RAe=wf(),EY=x8(),w8=Ca(),kl=w8.id2name,PY=w8.name2id,FAe=(Ha(),Ne(Oa)).AX_ID_PATTERN,RY=Ar(),Mg=RY.traceIs,_8=RY.getComponentMethod;function kg(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}FY.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},m,y;for(m=0;m<a.length;m++){var b=a[m];if(Mg(b,"cartesian")){var T;if(b.xaxis)T=kl(b.xaxis),kg(i,T,b);else if(b.xaxes)for(y=0;y<b.xaxes.length;y++)kg(i,kl(b.xaxes[y]),b);var w;if(b.yaxis)w=kl(b.yaxis),kg(i,w,b);else if(b.yaxes)for(y=0;y<b.yaxes.length;y++)kg(i,kl(b.yaxes[y]),b);if(b.type==="funnel"?b.orientation==="h"?(T&&(o[T]=!0),w&&(c[w]=!0)):w&&(l[w]=!0):b.type==="image"?(w&&(v[w]=!0),T&&(v[T]=!0)):(w&&(u[w]=!0,f[w]=!0),(!Mg(b,"carpet")||b.type==="carpet"&&!b._cheater)&&T&&(s[T]=!0)),b.type==="carpet"&&b._cheater&&T&&(o[T]=!0),Mg(b,"2dMap")&&(d[T]=!0,d[w]=!0),Mg(b,"oriented")){var x=b.orientation==="h"?w:T;p[x]=!0}}}var _=t._subplots,k=_.xaxis,M=_.yaxis,q=Sf.simpleMap(k,kl),C=Sf.simpleMap(M,kl),E=q.concat(C),P=qY.background;k.length&&M.length&&(P=Sf.coerce(r,t,EAe,"plot_bgcolor"));var R=qY.combine(P,t.paper_bgcolor),B,I,N,H,G;function Y(){var be=i[B]||[];G._traceIndices=be.map(function(Ge){return Ge.index}),G._annIndices=[],G._shapeIndices=[],G._selectionIndices=[],G._imgIndices=[],G._subplotsWith=[],G._counterAxes=[],G._name=G._attr=B,G._id=I}function j(be,Ge){return Sf.coerce(H,G,CY,be,Ge)}function W(be,Ge){return Sf.coerce2(H,G,CY,be,Ge)}function V(be){return be==="x"?M:k}function J(be,Ge){for(var sr=be==="x"?q:C,vr=[],ue=0;ue<sr.length;ue++){var xe=sr[ue];xe!==Ge&&!(r[xe]||{}).overlaying&&vr.push(PY(xe))}return vr}var re={x:V("x"),y:V("y")},le=re.x.concat(re.y),ne={},$=[];function ce(){var be=H.matches;FAe.test(be)&&le.indexOf(be)===-1&&(ne[be]=H.type,$=Object.keys(ne))}var te=DAe(r,t),ge=CAe(te);for(m=0;m<E.length;m++){B=E[m],I=PY(B),N=B.charAt(0),Sf.isPlainObject(r[B])||(r[B]={}),H=r[B],G=LY.newContainer(t,B,N+"axis"),Y();var se=N==="x"&&!s[B]&&o[B]||N==="y"&&!u[B]&&l[B],oe=N==="y"&&(!f[B]&&c[B]||v[B]),Ae={hasMinor:!0,letter:N,font:t.font,outerTicks:d[B],showGrid:!p[B],data:i[B]||[],bgColor:R,calendar:t.calendar,automargin:!0,visibleDflt:se,reverseDflt:oe,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[N]||{})[I],noAutotickangles:N==="y"};j("uirevision",t.uirevision),PAe(H,G,j,Ae),DY(H,G,j,Ae,t);var Pe=ge&&N===te.charAt(0),me=W("spikecolor",ge?G.color:void 0),Ce=W("spikethickness",ge?1.5:void 0),Me=W("spikedash",ge?"dot":void 0),Le=W("spikemode",ge?"across":void 0),Se=W("spikesnap"),Ee=j("showspikes",!!Pe||!!me||!!Ce||!!Me||!!Le||!!Se);Ee||(delete G.spikecolor,delete G.spikethickness,delete G.spikedash,delete G.spikemode,delete G.spikesnap);var qe=kl(H.overlaying),Ue=[0,1];if(t[qe]!==void 0){var Je=kl(t[qe].anchor);t[Je]!==void 0&&(Ue=t[Je].domain)}EY(H,G,j,{letter:N,counterAxes:re[N],overlayableAxes:J(N,B),grid:t.grid,overlayingDomain:Ue}),j("title.standoff"),ce(),G._input=H}for(m=0;m<$.length;){I=$[m++],B=kl(I),N=B.charAt(0),Sf.isPlainObject(r[B])||(r[B]={}),H=r[B],G=LY.newContainer(t,B,N+"axis"),Y();var Ke={letter:N,font:t.font,outerTicks:d[B],showGrid:!p[B],data:[],bgColor:R,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:n,splomStash:((t._splomAxes||{})[N]||{})[I]};j("uirevision",t.uirevision),G.type=ne[I]||"linear",DY(H,G,j,Ke,t),EY(H,G,j,{letter:N,counterAxes:re[N],overlayableAxes:J(N,B),grid:t.grid}),j("fixedrange"),j("modebardisable"),ce(),G._input=H}var De=_8("rangeslider","handleDefaults"),Be=_8("rangeselector","handleDefaults");for(m=0;m<q.length;m++)B=q[m],H=r[B],G=t[B],De(r,t,B),G.type==="date"&&Be(H,G,t,C,G.calendar),j("fixedrange"),j("modebardisable");for(m=0;m<C.length;m++){B=C[m],H=r[B],G=t[B];var er=t[kl(G.anchor)],ae=_8("rangeslider","isVisible")(er);j("fixedrange",ae),j("modebardisable")}RAe.handleDefaults(r,t,{axIds:le.concat($).sort(w8.idSort),axHasImage:v})}});var BY=z((FJe,IY)=>{"use strict";var zAe=Pr(),NY=Ar(),Sg=ke(),qi=et(),qg=jr();IY.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){qg.redrawComponents(r);return}function o(y){var b=y.xaxis,T=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(qi.setTranslate,0,0).call(qi.setScale,1,1),y.plot.call(qi.setTranslate,b._offset,T._offset).call(qi.setScale,1,1);var w=y.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(qi.setPointGroupScale,1,1),w.selectAll(".textpoint").call(qi.setTextPointsScale,1,1),w.call(qi.hideOutsideRangePoints,y)}function l(y,b){var T=y.plotinfo,w=T.xaxis,x=T.yaxis,_=w._length,k=x._length,M=!!y.xr1,q=!!y.yr1,C=[];if(M){var E=Sg.simpleMap(y.xr0,w.r2l),P=Sg.simpleMap(y.xr1,w.r2l),R=E[1]-E[0],B=P[1]-P[0];C[0]=(E[0]*(1-b)+b*P[0]-E[0])/(E[1]-E[0])*_,C[2]=_*(1-b+b*B/R),w.range[0]=w.l2r(E[0]*(1-b)+b*P[0]),w.range[1]=w.l2r(E[1]*(1-b)+b*P[1])}else C[0]=0,C[2]=_;if(q){var I=Sg.simpleMap(y.yr0,x.r2l),N=Sg.simpleMap(y.yr1,x.r2l),H=I[1]-I[0],G=N[1]-N[0];C[1]=(I[1]*(1-b)+b*N[1]-I[1])/(I[0]-I[1])*k,C[3]=k*(1-b+b*G/H),x.range[0]=w.l2r(I[0]*(1-b)+b*N[0]),x.range[1]=x.l2r(I[1]*(1-b)+b*N[1])}else C[1]=0,C[3]=k;qg.drawOne(r,w,{skipTitle:!0}),qg.drawOne(r,x,{skipTitle:!0}),qg.redrawComponents(r,[w._id,x._id]);var Y=M?_/C[2]:1,j=q?k/C[3]:1,W=M?C[0]:0,V=q?C[1]:0,J=M?C[0]/C[2]*_:0,re=q?C[1]/C[3]*k:0,le=w._offset-J,ne=x._offset-re;T.clipRect.call(qi.setTranslate,W,V).call(qi.setScale,1/Y,1/j),T.plot.call(qi.setTranslate,le,ne).call(qi.setScale,Y,j),qi.setPointGroupScale(T.zoomScalePts,1/Y,1/j),qi.setTextPointsScale(T.zoomScaleTxt,1/Y,1/j)}var s;n&&(s=n());function u(){for(var y={},b=0;b<t.length;b++){var T=t[b],w=T.plotinfo.xaxis,x=T.plotinfo.yaxis;T.xr1&&(y[w._name+".range"]=T.xr1.slice()),T.yr1&&(y[x._name+".range"]=T.yr1.slice())}return s&&s(),NY.call("relayout",r,y).then(function(){for(var _=0;_<t.length;_++)o(t[_].plotinfo)})}function f(){for(var y={},b=0;b<t.length;b++){var T=t[b],w=T.plotinfo.xaxis,x=T.plotinfo.yaxis;T.xr0&&(y[w._name+".range"]=T.xr0.slice()),T.yr0&&(y[x._name+".range"]=T.yr0.slice())}return NY.call("relayout",r,y).then(function(){for(var _=0;_<t.length;_++)o(t[_].plotinfo)})}var c,v,d,p=zAe.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(d),d=null,f()});function m(){v=Date.now();for(var y=Math.min(1,(v-c)/a.duration),b=p(y),T=0;T<t.length;T++)l(t[T],b);v-c>a.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var lo=z(bn=>{"use strict";var Cg=Pr(),OY=Ar(),qf=ke(),NAe=_a(),IAe=et(),HY=Kp().getModuleCalcData,Qs=Ca(),Yo=(Ha(),Ne(Oa)),BAe=(Wl(),Ne(jl)),st=qf.ensureSingle;function Lg(e,r,t){return qf.ensureSingle(e,r,t,function(a){a.datum(t)})}var Lf=Yo.zindexSeparator;bn.name="cartesian";bn.attr=["xaxis","yaxis"];bn.idRoot=["x","y"];bn.idRegex=Yo.idRegex;bn.attrRegex=Yo.attrRegex;bn.attributes=vY();bn.layoutAttributes=ji();bn.supplyLayoutDefaults=zY();bn.transitionAxes=BY();bn.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u<o.length;u++){var v=o[u].split("y");l[v[0]]=1,s["y"+v[1]]=1}for(u=0;u<a.length;u++)f=a[u],l[f]||(c=(e[Qs.id2name(f)]||{}).anchor,Yo.idRegex.y.test(c)||(c="y"),i.push(f+c),o.push(f+c),s[c]||(s[c]=1,qf.pushUnique(n,c)));for(u=0;u<n.length;u++)c=n[u],s[c]||(f=(e[Qs.id2name(c)]||{}).anchor,Yo.idRegex.x.test(f)||(f="x"),i.push(f+c),o.push(f+c),l[f]||(l[f]=1,qf.pushUnique(a,f)));if(!o.length){f="",c="";for(var d in e)if(Yo.attrRegex.test(d)){var p=d.charAt(0);p==="x"?(!f||+d.slice(5)<+f.slice(5))&&(f=d):(!c||+d.slice(5)<+c.slice(5))&&(c=d)}f=f?Qs.name2id(f):"x",c=c?Qs.name2id(c):"y",a.push(f),n.push(c),i.push(f+c)}};bn.plot=function(e,r,t,a){var n=e._fullLayout,i=n._subplots.cartesian,o=e.calcdata,l;if(!Array.isArray(r))for(r=[],l=0;l<o.length;l++)r.push(l);for(var s=n._zindices,u=0;u<s.length;u++){var f=s[u];for(l=0;l<i.length;l++){var c=i[l],v=n._plots[c];if(u>0){var d=v.id;if(d.indexOf(Lf)!==-1)continue;d+=Lf+(u+1),v=qf.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,y=0;y<o.length;y++){var b=o[y],T=b[0].trace;f===(T.zorder||0)&&T.xaxis+T.yaxis===c&&((r.indexOf(T.index)!==-1||T.carpet)&&(m&&m[0].trace.xaxis+m[0].trace.yaxis===c&&["tonextx","tonexty","tonext"].indexOf(T.fill)!==-1&&p.indexOf(m)===-1&&p.push(m),p.push(b)),m=b)}UY(e,v,p,t,a)}}};function UY(e,r,t,a,n){for(var i=Yo.traceLayerClasses,o=e._fullLayout,l=o._zindices,s=o._modules,u,f,c,v=[],d=[],p=0;p<l.length;p++)for(var m=l[p],y=0;y<s.length;y++){u=s[y];var b=u.name,T=OY.modules[b].categories;if(T.svg){var w=u.layerName||b+"layer",x=w+(p?Number(p)+1:""),_=u.plot;f=HY(t,_,m),c=f[0],t=f[1],c.length&&v.push({i:i.indexOf(w),zindex:p,className:x,plotMethod:_,cdModule:c}),T.zoomScale&&d.push("."+x)}}v.sort(function(q,C){return(q.zindex||0)-(C.zindex||0)||q.i-C.i});var k=r.plot.selectAll("g.mlayer").data(v,function(q){return q.className});if(k.enter().append("g").attr("class",function(q){return q.className}).classed("mlayer",!0).classed("rangeplot",r.isRangePlot),k.exit().remove(),k.order(),k.each(function(q){var C=Cg.select(this),E=q.className;q.plotMethod(e,r,q.cdModule,C,a,n),Yo.clipOnAxisFalseQuery.indexOf("."+E)===-1&&IAe.setClipUrl(C,r.layerClipId,e)}),o._has("scattergl")&&(u=OY.getModule("scattergl"),c=HY(t,u)[0],u.plot(e,r,c)),!e._context.staticPlot&&(r._hasClipOnAxisFalse&&(r.clipOnAxisFalseTraces=r.plot.selectAll(Yo.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),d.length)){var M=r.plot.selectAll(d.join(",")).selectAll(".trace");r.zoomScalePts=M.selectAll("path.point"),r.zoomScaleTxt=M.selectAll(".textpoint")}}bn.clean=function(e,r,t,a){var n=a._plots||{},i=r._plots||{},o=a._subplots||{},l,s,u;if(a._hasOnlyLargeSploms&&!r._hasOnlyLargeSploms)for(u in n)l=n[u],l.plotgroup&&l.plotgroup.remove();var f=a._has&&a._has("gl"),c=r._has&&r._has("gl");if(f&&!c)for(u in n)l=n[u],l._scene&&l._scene.destroy();if(o.xaxis&&o.yaxis){var v=Qs.listIds({_fullLayout:a});for(s=0;s<v.length;s++){var d=v[s];r[Qs.id2name(d)]||a._infolayer.selectAll(".g-"+d+"title").remove()}}var p=a._has&&a._has("cartesian"),m=r._has&&r._has("cartesian");if(p&&!m)YY(a._cartesianlayer.selectAll(".subplot"),a),a._defs.selectAll(".axesclip").remove(),delete a._axisConstraintGroups,delete a._axisMatchGroups;else if(o.cartesian)for(s=0;s<o.cartesian.length;s++){var y=o.cartesian[s];if(y.indexOf(Lf)===-1&&!i[y]){var b="."+y+",."+y+"-x,."+y+"-y";a._cartesianlayer.selectAll(b).remove(),VY(y,a)}}};bn.drawFramework=function(e){var r=e._fullLayout,t=e.calcdata,a,n={};for(a=0;a<t.length;a++){var i=t[a][0],o=i.trace,l=o.zorder||0;n[l]||(n[l]=[]),n[l].push(i)}var s=Object.keys(n).map(Number).sort(qf.sorterAsc);s.length||(s=[0]),r._zindices=s;var u=OAe(e),f=u.length,c=[];for(a=0;a<f;a++)c[a]=u[a].slice();for(var v=1;v<s.length;v++){var d=[];for(a=0;a<f;a++)d[a]=u[a].slice(),d[a][0]+=Lf+(v+1);c=c.concat(d)}var p=r._cartesianlayer.selectAll(".subplot").data(c,String);p.enter().append("g").attr("class",function(m){return"subplot "+m[0]}),p.order(),p.exit().call(YY,r),p.each(function(m){var y=m[0],b=y.indexOf(Lf),T=b!==-1,w=T?y.slice(0,b):y,x=r._plots[y];x||(x=qf.extendFlat({},r._plots[w]),x&&(x.id=y,r._plots[y]=x,r._subplots.cartesian.push(y))),x&&(x.plotgroup=Cg.select(this),GY(e,x),T||(x.draglayer=st(r._draggers,"g",y)))})};bn.rangePlot=function(e,r,t){GY(e,r),UY(e,r,t),NAe.style(e)};function OAe(e){var r=e._fullLayout,t=r._zindices.length,a=r._subplots.cartesian,n=a.length,i,o,l,s,u,f,c=[],v=[];for(i=0;i<n;i++){l=a[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;var d=u._mainAxis,p=f._mainAxis,m=d._id+p._id,y=r._plots[m];s.overlays=[],m!==l&&y?(s.mainplot=m,s.mainplotinfo=y,v.push(l)):(s.mainplot=void 0,s.mainplotinfo=void 0,c.push(l))}for(i=0;i<v.length;i++)l=v[i],s=r._plots[l],s.mainplotinfo.overlays.push(s);var b=c.concat(v),T=[];for(i=0;i<n;i++){l=b[i],s=r._plots[l],u=s.xaxis,f=s.yaxis;for(var w=[],x=1;x<=t;x++){var _="";for(x>1&&(_+=Lf+x),w.push(l+_),o=0;o<s.overlays.length;o++)w.push(s.overlays[o].id+_)}w=w.concat([u.layer,f.layer,u.overlaying||"",f.overlaying||""]),T.push(w)}return T}function GY(e,r){var t=e._fullLayout,a=r.plotgroup,n=r.id,i=n.indexOf(Lf),o=i!==-1,l=Yo.layerValue2layerClass[r.xaxis.layer],s=Yo.layerValue2layerClass[r.yaxis.layer],u=t._hasOnlyLargeSploms,f=t._zindices.length>1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=st(a,"path","xlines-above"),r.ylines=st(a,"path","ylines-above"),r.xaxislayer=st(a,"g","xaxislayer-above"),r.yaxislayer=st(a,"g","yaxislayer-above");else{if(!o){var v=st(a,"g","layer-subplot");r.shapelayer=st(v,"g","shapelayer"),r.imagelayer=st(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=st(a,"g","minor-gridlayer"),r.gridlayer=st(a,"g","gridlayer"),r.zerolinelayer=st(a,"g","zerolinelayer"));var d=st(a,"g","layer-between");r.shapelayerBetween=st(d,"g","shapelayer"),r.imagelayerBetween=st(d,"g","imagelayer"),st(a,"path","xlines-below"),st(a,"path","ylines-below"),r.overlinesBelow=st(a,"g","overlines-below"),st(a,"g","xaxislayer-below"),st(a,"g","yaxislayer-below"),r.overaxesBelow=st(a,"g","overaxes-below")}r.overplot=st(a,"g","overplot"),r.plot=st(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=st(a,"g","zerolinelayer-above"),o||(r.xlines=st(a,"path","xlines-above"),r.ylines=st(a,"path","ylines-above"),r.overlinesAbove=st(a,"g","overlines-above"),st(a,"g","xaxislayer-above"),st(a,"g","yaxislayer-above"),r.overaxesAbove=st(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,st(c.overlinesBelow,"path",m),st(c.overlinesBelow,"path",y),st(c.overaxesBelow,"g",m),st(c.overaxesBelow,"g",y),r.plot=st(c.overplot,"g",n),st(c.overlinesAbove,"path",m),st(c.overlinesAbove,"path",y),st(c.overaxesAbove,"g",m),st(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+l).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+l).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}o||(u||(Lg(r.minorGridlayer,"g",r.xaxis._id),Lg(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(Qs.idSort),Lg(r.gridlayer,"g",r.xaxis._id),Lg(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(Qs.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function YY(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Cg.select(this);f.remove(),VY(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o<i.length;o++){var l=i[o];t[l.id]&&l.plot.selectAll(".trace").remove()}}}function VY(e,r){r._draggers.selectAll("g."+e).remove(),r._defs.select("#clip"+r._uid+e+"plot").remove()}bn.toSVG=function(e){var r=e._fullLayout._glimages,t=Cg.select(e).selectAll(".svg-container"),a=t.filter(function(i,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,o=i.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:BAe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n)};bn.updateFx=Tw().updateFx});var WY=z((NJe,jY)=>{"use strict";var Dg=ii();jY.exports={hasLines:Dg.hasLines,hasMarkers:Dg.hasMarkers,hasText:Dg.hasText,isBubble:Dg.isBubble,attributes:Qi(),layoutAttributes:Zp(),supplyDefaults:dG(),crossTraceDefaults:yG(),supplyLayoutDefaults:bG(),calc:dg().calc,crossTraceCalc:GG(),arraysToCalcdata:vg(),plot:s8(),colorbar:Ud(),formatLabels:u8(),style:kf().style,styleOnSelect:kf().styleOnSelect,hoverPoints:d8(),selectPoints:p8(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:lo(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var $Y=z((IJe,ZY)=>{"use strict";var HAe=Pr(),UAe=qr(),XY=dw(),T8=ke(),GAe=T8.strScale,YAe=T8.strRotate,VAe=T8.strTranslate;ZY.exports=function(r,t,a){var n=r.node(),i=XY[a.arrowhead||0],o=XY[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,m,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,T=d.y-p.y;if(m=Math.atan2(T,b),y=m+Math.PI,c&&v&&c+v>Math.sqrt(b*b+T*T)){I();return}if(c){if(c*c>b*b+T*T){I();return}var w=c*Math.cos(m),x=c*Math.sin(m);p.x+=w,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+T*T){I();return}var _=v*Math.cos(m),k=v*Math.sin(m);d.x-=_,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),q="";if(M<c+v){I();return}var C=n.getPointAtLength(0),E=n.getPointAtLength(.1);m=Math.atan2(C.y-E.y,C.x-E.x),d=n.getPointAtLength(Math.min(v,M)),q="0px,"+v+"px,";var P=n.getPointAtLength(M),R=n.getPointAtLength(M-.1);y=Math.atan2(P.y-R.y,P.x-R.x),p=n.getPointAtLength(Math.max(0,M-c));var B=q?v+c:c;q+=M-B+"px,"+M+"px",r.style("stroke-dasharray",q)}function I(){r.style("stroke-dasharray","0px,100px")}function N(H,G,Y,j){H.path&&(H.noRotate&&(Y=0),HAe.select(n.parentNode).append("path").attr({class:r.attr("class"),d:H.path,transform:VAe(G.x,G.y)+YAe(Y*180/Math.PI)+GAe(j)}).style({fill:UAe.rgb(a.arrowcolor),"stroke-width":0}))}u&&N(o,d,m,s),f&&N(i,p,y,l)}});var Eg=z((BJe,rV)=>{"use strict";var JY=Pr(),A8=Ar(),jAe=_a(),ru=ke(),M8=ru.strTranslate,Vd=jr(),Cf=qr(),ns=et(),KY=Yn(),k8=Da(),S8=Ys(),Yd=Xi(),WAe=Pt().arrayEditor,XAe=$Y();rV.exports={draw:ZAe,drawOne:QY,drawRaw:eV};function ZAe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t<r.annotations.length;t++)r.annotations[t].visible&&QY(e,t);return jAe.previousPromises(e)}function QY(e,r){var t=e._fullLayout,a=t.annotations[r]||{},n=Vd.getFromId(e,a.xref),i=Vd.getFromId(e,a.yref);n&&n.setScale(),i&&i.setScale(),eV(e,a,r,!1,n,i)}function eu(e,r,t,a,n){var i=n[t],o=n[t+"ref"],l=t.indexOf("y")!==-1,s=Vd.getRefType(o)==="domain",u=l?a.h:a.w;return e?s?i+(l?-r:r)/e._length:e.p2r(e.r2p(i)+r):i+(l?-r:r)/u}function eV(e,r,t,a,n,i){var o=e._fullLayout,l=e._fullLayout._size,s=e._context.edits,u,f;a?(u="annotation-"+a,f=a+".annotations"):(u="annotation",f="annotations");var c=WAe(e.layout,f,r),v=c.modifyBase,d=c.modifyItem,p=c.getUpdateObj;o._infolayer.selectAll("."+u+'[data-index="'+t+'"]').remove();var m="clip"+o._uid+"_ann"+t;if(!r._input||r.visible===!1){JY.selectAll("#"+m).remove();return}var y={x:{},y:{}},b=+r.textangle||0,T=o._infolayer.append("g").classed(u,!0).attr("data-index",String(t)).style("opacity",r.opacity),w=T.append("g").classed("annotation-text-g",!0),x=s[r.showarrow?"annotationTail":"annotationPosition"],_=r.captureevents||s.annotationText||x;function k(j){var W={index:t,annotation:r._input,fullAnnotation:r,event:j};return a&&(W.subplotId=a),W}var M=w.append("g").style("pointer-events",_?"all":null).call(S8,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",k(JY.event))});r.hovertext&&M.on("mouseover",function(){var j=r.hoverlabel,W=j.font,V=this.getBoundingClientRect(),J=e.getBoundingClientRect();KY.loneHover({x0:V.left-J.left,x1:V.right-J.left,y:(V.top+V.bottom)/2-J.top,text:r.hovertext,color:j.bgcolor,borderColor:j.bordercolor,fontFamily:W.family,fontSize:W.size,fontColor:W.color,fontWeight:W.weight,fontStyle:W.style,fontVariant:W.variant,fontShadow:W.fontShadow,fontLineposition:W.fontLineposition,fontTextcase:W.fontTextcase},{container:o._hoverlayer.node(),outerContainer:o._paper.node(),gd:e})}).on("mouseout",function(){KY.loneUnhover(o._hoverlayer.node())});var q=r.borderwidth,C=r.borderpad,E=q+C,P=M.append("rect").attr("class","bg").style("stroke-width",q+"px").call(Cf.stroke,r.bordercolor).call(Cf.fill,r.bgcolor),R=r.width||r.height,B=o._topclips.selectAll("#"+m).data(R?[0]:[]);B.enter().append("clipPath").classed("annclip",!0).attr("id",m).append("rect"),B.exit().remove();var I=r.font,N=o._meta?ru.templateString(r.text,o._meta):r.text,H=M.append("text").classed("annotation-text",!0).text(N);function G(j){return j.call(ns.font,I).attr({"text-anchor":{left:"start",right:"end"}[r.align]||"middle"}),k8.convertToTspans(j,e,Y),j}function Y(){var j=H.selectAll("a");if(j.size()===1&&j.text()===H.text()){var W=M.insert("a",":first-child").attr({"xlink:xlink:href":j.attr("xlink:href"),"xlink:xlink:show":j.attr("xlink:show")}).style({cursor:"pointer"});W.node().appendChild(P.node())}var V=M.select(".annotation-text-math-group"),J=!V.empty(),re=ns.bBox((J?V:H).node()),le=re.width,ne=re.height,$=r.width||le,ce=r.height||ne,te=Math.round($+2*E),ge=Math.round(ce+2*E);function se(rr,cr){return cr==="auto"&&(rr<1/3?cr="left":rr>2/3?cr="right":cr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[cr]}for(var oe=!1,Ae=["x","y"],Pe=0;Pe<Ae.length;Pe++){var me=Ae[Pe],Ce=r[me+"ref"]||me,Me=r["a"+me+"ref"],Le={x:n,y:i}[me],Se=(b+(me==="x"?0:-90))*Math.PI/180,Ee=te*Math.cos(Se),qe=ge*Math.sin(Se),Ue=Math.abs(Ee)+Math.abs(qe),Je=r[me+"anchor"],Ke=r[me+"shift"]*(me==="x"?1:-1),De=y[me],Be,er,ae,be,Ge,sr=Vd.getRefType(Ce);if(Le&&sr!=="domain"){var vr=Le.r2fraction(r[me]);(vr<0||vr>1)&&(Me===Ce?(vr=Le.r2fraction(r["a"+me]),(vr<0||vr>1)&&(oe=!0)):oe=!0),Be=Le._offset+Le.r2p(r[me]),be=.5}else{var ue=sr==="domain";me==="x"?(ae=r[me],Be=ue?Le._offset+Le._length*ae:Be=l.l+l.w*ae):(ae=1-r[me],Be=ue?Le._offset+Le._length*ae:Be=l.t+l.h*ae),be=r.showarrow?.5:ae}if(r.showarrow){De.head=Be;var xe=r["a"+me];if(Ge=Ee*se(.5,r.xanchor)-qe*se(.5,r.yanchor),Me===Ce){var Ie=Vd.getRefType(Me);Ie==="domain"?(me==="y"&&(xe=1-xe),De.tail=Le._offset+Le._length*xe):Ie==="paper"?me==="y"?(xe=1-xe,De.tail=l.t+l.h*xe):De.tail=l.l+l.w*xe:De.tail=Le._offset+Le.r2p(xe),er=Ge}else De.tail=Be+xe,er=Ge+xe;De.text=De.tail+Ge;var We=o[me==="x"?"width":"height"];if(Ce==="paper"&&(De.head=ru.constrain(De.head,1,We-1)),Me==="pixel"){var Oe=-Math.max(De.tail-3,De.text),Xe=Math.min(De.tail+3,De.text)-We;Oe>0?(De.tail+=Oe,De.text+=Oe):Xe>0&&(De.tail-=Xe,De.text-=Xe)}De.tail+=Ke,De.head+=Ke}else Ge=Ue*se(be,Je),er=Ge,De.text=Be+Ge;De.text+=Ke,Ge+=Ke,er+=Ke,r["_"+me+"padplus"]=Ue/2+er,r["_"+me+"padminus"]=Ue/2-er,r["_"+me+"size"]=Ue,r["_"+me+"shift"]=Ge}if(oe){M.remove();return}var Qe=0,_r=0;if(r.align!=="left"&&(Qe=($-le)*(r.align==="center"?.5:1)),r.valign!=="top"&&(_r=(ce-ne)*(r.valign==="middle"?.5:1)),J)V.select("svg").attr({x:E+Qe-1,y:E+_r}).call(ns.setClipUrl,R?m:null,e);else{var gr=E+_r-re.top,Re=E+Qe-re.left;H.call(k8.positionText,Re,gr).call(ns.setClipUrl,R?m:null,e)}B.select("rect").call(ns.setRect,E,E,$,ce),P.call(ns.setRect,q/2,q/2,te-q,ge-q),M.call(ns.setTranslate,Math.round(y.x.text-te/2),Math.round(y.y.text-ge/2)),w.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var Ze=function(rr,cr){T.selectAll(".annotation-arrow-g").remove();var pr=y.x.head,mr=y.y.head,ie=y.x.tail+rr,ye=y.y.tail+cr,Fe=y.x.text+rr,He=y.y.text+cr,Gr=ru.rotationXYMatrix(b,Fe,He),rt=ru.apply2DTransform(Gr),qt=ru.apply2DTransform2(Gr),gt=+P.attr("width"),Ut=+P.attr("height"),Bt=Fe-.5*gt,Fa=Bt+gt,kt=He-.5*Ut,Zt=kt+Ut,$t=[[Bt,kt,Bt,Zt],[Bt,Zt,Fa,Zt],[Fa,Zt,Fa,kt],[Fa,kt,Bt,kt]].map(qt);if(!$t.reduce(function(bt,ma){return bt^!!ru.segmentsIntersect(pr,mr,pr+1e6,mr+1e6,ma[0],ma[1],ma[2],ma[3])},!1)){$t.forEach(function(bt){var ma=ru.segmentsIntersect(ie,ye,pr,mr,bt[0],bt[1],bt[2],bt[3]);ma&&(ie=ma.x,ye=ma.y)});var Lt=r.arrowwidth,ra=r.arrowcolor,sa=r.arrowside,Ot=T.append("g").style({opacity:Cf.opacity(ra)}).classed("annotation-arrow-g",!0),tr=Ot.append("path").attr("d","M"+ie+","+ye+"L"+pr+","+mr).style("stroke-width",Lt+"px").call(Cf.stroke,Cf.rgb(ra));if(XAe(tr,sa,r),s.annotationPosition&&tr.node().parentNode&&!a){var tt=pr,Yr=mr;if(r.standoff){var ft=Math.sqrt(Math.pow(pr-ie,2)+Math.pow(mr-ye,2));tt+=r.standoff*(ie-pr)/ft,Yr+=r.standoff*(ye-mr)/ft}var Ft=Ot.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ie-tt)+","+(ye-Yr),transform:M8(tt,Yr)}).style("stroke-width",Lt+6+"px").call(Cf.stroke,"rgba(0,0,0,0)").call(Cf.fill,"rgba(0,0,0,0)"),qa,at;Yd.init({element:Ft.node(),gd:e,prepFn:function(){var bt=ns.getTranslate(M);qa=bt.x,at=bt.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(bt,ma){var pi=rt(qa,at),nt=pi[0]+bt,La=pi[1]+ma;M.call(ns.setTranslate,nt,La),d("x",eu(n,bt,"x",l,r)),d("y",eu(i,ma,"y",l,r)),r.axref===r.xref&&d("ax",eu(n,bt,"ax",l,r)),r.ayref===r.yref&&d("ay",eu(i,ma,"ay",l,r)),Ot.attr("transform",M8(bt,ma)),w.attr({transform:"rotate("+b+","+nt+","+La+")"})},doneFn:function(){A8.call("_guiRelayout",e,p());var bt=document.querySelector(".js-notes-box-panel");bt&&bt.redraw(bt.selectedObj)}})}}};if(r.showarrow&&Ze(0,0),x){var ze;Yd.init({element:M.node(),gd:e,prepFn:function(){ze=w.attr("transform")},moveFn:function(rr,cr){var pr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",eu(n,rr,"ax",l,r)):d("ax",r.ax+rr),r.ayref===r.yref?d("ay",eu(i,cr,"ay",l.w,r)):d("ay",r.ay+cr),Ze(rr,cr);else{if(a)return;var mr,ie;if(n)mr=eu(n,rr,"x",l,r);else{var ye=r._xsize/l.w,Fe=r.x+(r._xshift-r.xshift)/l.w-ye/2;mr=Yd.align(Fe+rr/l.w,ye,0,1,r.xanchor)}if(i)ie=eu(i,cr,"y",l,r);else{var He=r._ysize/l.h,Gr=r.y-(r._yshift+r.yshift)/l.h-He/2;ie=Yd.align(Gr-cr/l.h,He,0,1,r.yanchor)}d("x",mr),d("y",ie),(!n||!i)&&(pr=Yd.getCursor(n?.5:mr,i?.5:ie,r.xanchor,r.yanchor))}w.attr({transform:M8(rr,cr)+ze}),S8(M,pr)},clickFn:function(rr,cr){r.captureevents&&e.emit("plotly_clickannotation",k(cr))},doneFn:function(){S8(M),A8.call("_guiRelayout",e,p());var rr=document.querySelector(".js-notes-box-panel");rr&&rr.redraw(rr.selectedObj)}})}}s.annotationText?H.call(k8.makeEditable,{delegate:M,gd:e}).call(G).on("edit",function(j){r.text=j,this.call(G),d("text",j),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),A8.call("_guiRelayout",e,p())}):H.call(G)}});var lV=z((OJe,oV)=>{"use strict";var tV=ke(),$Ae=Ar(),aV=Pt().arrayEditor;oV.exports={hasClickToShow:JAe,onClick:KAe};function JAe(e,r){var t=iV(e,r);return t.on.length>0||t.explicitOff.length>0}function KAe(e,r){var t=iV(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l<a.length;l++)s=aV(e.layout,"annotations",o[a[l]]),s.modifyItem("visible",!0),tV.extendFlat(i,s.getUpdateObj());for(l=0;l<n.length;l++)s=aV(e.layout,"annotations",o[n[l]]),s.modifyItem("visible",!1),tV.extendFlat(i,s.getUpdateObj());return $Ae.call("update",e,{},i)}}function iV(e,r){var t=e._fullLayout.annotations,a=[],n=[],i=[],o=(r||[]).length,l,s,u,f,c,v,d,p;for(l=0;l<t.length;l++)if(u=t[l],f=u.clicktoshow,f){for(s=0;s<o;s++)if(c=r[s],v=c.xaxis,d=c.yaxis,v._id===u.xref&&d._id===u.yref&&v.d2r(c.x)===nV(u._xclick,v)&&d.d2r(c.y)===nV(u._yclick,d)){u.visible?f==="onout"?p=n:p=i:p=a,p.push(l);break}s===o&&u.visible&&f==="onout"&&n.push(l)}return{on:a,off:n,explicitOff:i}}function nV(e,r){return r.type==="log"?r.l2r(e):r.d2r(e)}});var L8=z((HJe,sV)=>{"use strict";var q8=ke(),P0=qr();sV.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=P0.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),q8.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:P0.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(P0.opacity(i)?P0.rgb(i):P0.defaultLine)),b=n("hoverlabel.bordercolor",m.bordercolor||P0.contrast(y)),T=q8.extendFlat({},m.font);T.color||(T.color=b),q8.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var fV=z((UJe,uV)=>{"use strict";var C8=ke(),Df=jr(),QAe=zo(),eMe=L8(),rMe=w0();uV.exports=function(r,t){QAe(r,t,{name:"annotations",handleItemDefaults:tMe})};function tMe(e,r,t){function a(w,x){return C8.coerce(e,r,rMe,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){eMe(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],v=Df.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Df.getFromId(u,v);d._annIndices.push(r._index)}if(Df.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,m=Df.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==v&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Df.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(C8.noneOrAll(e,r,["x","y"]),o&&C8.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),T=a("yclick");r._xclick=b===void 0?r.x:Df.cleanPosition(b,u,r.xref),r._yclick=T===void 0?r.y:Df.cleanPosition(T,u,r.yref)}}}});var hV=z((GJe,vV)=>{"use strict";var D8=ke(),Ef=jr(),aMe=Eg().draw;vV.exports=function(r){var t=r._fullLayout,a=D8.filterVisible(t.annotations);if(a.length&&r._fullData.length)return D8.syncOrAsync([aMe,nMe],r)};function nMe(e){var r=e._fullLayout;D8.filterVisible(r.annotations).forEach(function(t){var a=Ef.getFromId(e,t.xref),n=Ef.getFromId(e,t.yref),i=Ef.getRefType(t.xref),o=Ef.getRefType(t.yref);t._extremes={},i==="range"&&cV(t,a),o==="range"&&cV(t,n)})}function cV(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,b;if(l===o){var T=Ef.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),w=Ef.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});b={min:[T.min[0],w.min[0]],max:[T.max[0],w.max[0]]}}else m=i?m+i:m,y=i?y-i:y,b=Ef.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,m),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var pV=z((YJe,dV)=>{"use strict";var iMe=Br(),oMe=j1();dV.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],m=null;i?m=oMe(p,t.range):m=Math.pow(10,p),iMe(m)||(m=null),n(f+d,m)}for(var v=0;v<l.length;v++)u=l[v],f="annotations["+v+"].",u[s+"ref"]===t._id&&c(s),u["a"+s+"ref"]===t._id&&c("a"+s)}});var gV=z((VJe,yV)=>{"use strict";var E8=Eg(),mV=lV();yV.exports={moduleType:"component",name:"annotations",layoutAttributes:w0(),supplyLayoutDefaults:fV(),includeBasePlot:Ad()("annotations"),calcAutorange:hV(),draw:E8.draw,drawOne:E8.drawOne,drawRaw:E8.drawRaw,hasClickToShow:mV.hasClickToShow,onClick:mV.onClick,convertCoords:pV()}});var Pg=z((jJe,bV)=>{"use strict";var Nt=w0(),lMe=Do().overrideAll,sMe=Pt().templatedArray;bV.exports=lMe(sMe("annotation",{visible:Nt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Nt.xanchor,xshift:Nt.xshift,yanchor:Nt.yanchor,yshift:Nt.yshift,text:Nt.text,textangle:Nt.textangle,font:Nt.font,width:Nt.width,height:Nt.height,opacity:Nt.opacity,align:Nt.align,valign:Nt.valign,bgcolor:Nt.bgcolor,bordercolor:Nt.bordercolor,borderpad:Nt.borderpad,borderwidth:Nt.borderwidth,showarrow:Nt.showarrow,arrowcolor:Nt.arrowcolor,arrowhead:Nt.arrowhead,startarrowhead:Nt.startarrowhead,arrowside:Nt.arrowside,arrowsize:Nt.arrowsize,startarrowsize:Nt.startarrowsize,arrowwidth:Nt.arrowwidth,standoff:Nt.standoff,startstandoff:Nt.startstandoff,hovertext:Nt.hovertext,hoverlabel:Nt.hoverlabel,captureevents:Nt.captureevents}),"calc","from-root")});var _V=z((WJe,xV)=>{"use strict";var P8=ke(),uMe=jr(),fMe=zo(),cMe=L8(),vMe=Pg();xV.exports=function(r,t,a){fMe(r,t,{name:"annotations",handleItemDefaults:hMe,fullLayout:a.fullLayout})};function hMe(e,r,t,a){function n(l,s){return P8.coerce(e,r,vMe,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],uMe.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(cMe(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),P8.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),P8.noneOrAll(e,r,["ax","ay"])))}});var MV=z((XJe,AV)=>{"use strict";var wV=ke(),TV=jr();AV.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n<a.length;n++)dMe(a[n],r);r.fullLayout._infolayer.selectAll(".annotation-"+r.id).remove()};function dMe(e,r){var t=r.fullSceneLayout,a=t.domain,n=r.fullLayout._size,i={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},wV.extendFlat(e._xa,i),TV.setConvert(e._xa),e._xa._offset=n.l+a.x[0]*n.w,e._xa.l2p=function(){return .5*(1+e._pdata[0]/e._pdata[3])*n.w*(a.x[1]-a.x[0])},e._ya={},wV.extendFlat(e._ya,i),TV.setConvert(e._ya),e._ya._offset=n.t+(1-a.y[1])*n.h,e._ya.l2p=function(){return .5*(1-e._pdata[1]/e._pdata[3])*n.h*(a.y[1]-a.y[0])}}});var SV=z((ZJe,kV)=>{"use strict";function R8(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function pMe(e,r){var t=R8(e.projection,R8(e.view,R8(e.model,[r[0],r[1],r[2],1])));return t}kV.exports=pMe});var LV=z(($Je,qV)=>{"use strict";var mMe=Eg().drawRaw,yMe=SV(),gMe=["x","y","z"];qV.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i<n.length;i++){for(var o=n[i],l=!1,s=0;s<3;s++){var u=gMe[s],f=o[u],c=t[u+"axis"],v=c.r2fraction(f);if(v<0||v>1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=yMe(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),mMe(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var EV=z((JJe,DV)=>{"use strict";var bMe=Ar(),CV=ke();DV.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Pg()}}},layoutAttributes:Pg(),handleDefaults:_V(),includeBasePlot:xMe,convert:MV(),draw:LV()};function xMe(e,r){var t=bMe.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i<n.length;i++){var o=n[i];a.test(o)&&(e[o].annotations||[]).length&&(CV.pushUnique(r._basePlotModules,t),CV.pushUnique(r._subplots.gl3d,o))}}});var F8=z((eKe,zV)=>{"use strict";var KJe=(Ha(),Ne(Oa)),PV=Ia(),RV=Qi().line,_Me=Ui().dash,Vo=St().extendFlat,wMe=Pt().templatedArray,QJe=(xd(),Ne(bd)),R0=Gn(),FV=w0(),{shapeTexttemplateAttrs:TMe,templatefallbackAttrs:AMe}=gi(),MMe=qp();zV.exports=wMe("shape",{visible:Vo({},R0.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Vo({},R0.legend,{editType:"calc+arraydraw"}),legendgroup:Vo({},R0.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Vo({},R0.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:PV({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Vo({},R0.legendrank,{editType:"calc+arraydraw"}),legendwidth:Vo({},R0.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:Vo({},FV.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:Vo({},FV.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:Vo({},RV.color,{editType:"arraydraw"}),width:Vo({},RV.width,{editType:"calc+arraydraw"}),dash:Vo({},_Me,{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:TMe({},{keys:Object.keys(MMe)}),texttemplatefallback:AMe({editType:"arraydraw"}),font:PV({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 IV=z((rKe,NV)=>{"use strict";var F0=ke(),Li=jr(),kMe=zo(),SMe=F8(),jd=Zs();NV.exports=function(r,t){kMe(r,t,{name:"shapes",handleItemDefaults:LMe})};function qMe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function LMe(e,r,t){function a(w,x){return F0.coerce(e,r,SMe,w,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),F0.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),v=a("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(w=>{var x=w+"anchor",_=w==="x"?c:v,k={_fullLayout:t},M,q,C,E;let P=w+"ref",R=e[P];if(Array.isArray(R)&&R.length>0){let B=jd.countDefiningCoords(s,o,w);E=Li.coerceRefArray(e,r,k,w,void 0,"paper",B),r["_"+w+"refArray"]=!0}else E=Li.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(E))E.forEach(function(B){Li.getRefType(B)==="range"&&(M=Li.getFromId(k,B),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(B){let I=E[B];Li.getRefType(I)==="range"?(M=Li.getFromId(k,I),q=jd.shapePositionToRange(M),C=jd.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(w+B+"shift")):q=C=F0.identity;let H=w+B,G=e[H];if(e[H]=q(e[H],!0),_==="pixel"?a(H,p[B]):Li.coercePosition(r,k,a,I,H,d[B]),r[H]=C(r[H]),e[H]=G,B===0&&_==="pixel"){let Y=e[x];e[x]=q(e[x],!0),Li.coercePosition(r,k,a,I,x,.25),r[x]=C(r[x]),e[x]=Y}});else{if(Li.getRefType(E)==="range"?(M=Li.getFromId(k,E),M._shapeIndices.push(r._index),C=jd.rangeToShapePosition(M),q=jd.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):q=C=F0.identity,u){let I=w+"0",N=w+"1",H=e[I],G=e[N];e[I]=q(e[I],!0),e[N]=q(e[N],!0),_==="pixel"?(a(I,p[0]),a(N,p[1])):(Li.coercePosition(r,k,a,E,I,d[0]),Li.coercePosition(r,k,a,E,N,d[1])),r[I]=C(r[I]),r[N]=C(r[N]),e[I]=H,e[N]=G}if(_==="pixel"){let I=e[x];e[x]=q(e[x],!0),Li.coercePosition(r,k,a,E,x,.25),r[x]=C(r[x]),e[x]=I}}}),u&&F0.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",y,b;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(b=a("label.text")),b||y){a("label.textangle");var T=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",qMe(m,T)),a("label.padding"),F0.coerceFont(a,"label.font",t.font)}}});var HV=z((tKe,OV)=>{"use strict";var CMe=qr(),BV=ke();function DMe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}OV.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),BV.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",CMe.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",DMe(o,u)),a("newshape.label.padding"),BV.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var XV=z((aKe,WV)=>{"use strict";var z8=ke(),so=jr(),Sl=(ed(),Ne(Qh)),N8=Zs();WV.exports=function(r){var t=r._fullLayout,a=z8.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n<a.length;n++){var i=a[n];i._extremes={};var o,l,s=so.getRefType(i.xref),u=so.getRefType(i.yref);if(s==="array"){let f=UV(r,i,"x");Object.entries(f).forEach(([c,v])=>{o=so.getFromId(r,c),i._extremes[o._id]=so.findExtremes(o,v,GV(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=so.getFromId(r,i.xref),l=VV(o,i,Sl.paramIsX),l&&(i._extremes[o._id]=so.findExtremes(o,l,GV(i))));if(u==="array"){let f=UV(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=so.getFromId(r,c),i._extremes[o._id]=so.findExtremes(o,v,YV(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=so.getFromId(r,i.yref),l=VV(o,i,Sl.paramIsY),l&&(i._extremes[o._id]=so.findExtremes(o,l,YV(i))))}};function UV(e,r,t){let a=r[t+"ref"],n=t==="x"?Sl.paramIsX:Sl.paramIsY;function i(c,v){c==="paper"||so.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Sl.segmentRE)||[];for(var l=0,s=0;s<c.length;s++){let v=c[s],d=v.charAt(0),p=n[d].drawn;if(p===void 0)continue;let m=v.slice(1).match(Sl.paramRE);m&&m.length>p&&(i(a[l],m[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let v=so.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=N8.decodeDate(f)),u[v._id]=o[c].map(f)}}return u}function GV(e){return jV(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function YV(e){return jV(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function jV(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?N8.extractPathCoords(n,i?Sl.paramIsY:Sl.paramIsX):[t,a],u=z8.aggNums(Math.max,null,s),f=z8.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,v=u>0?u+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function VV(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Sl.segmentRE),p,m,y,b,T;for(e.type==="date"&&(u=N8.decodeDate(u)),p=0;p<d.length;p++)m=d[p],y=t[m.charAt(0)].drawn,y!==void 0&&(b=d[p].slice(1).match(Sl.paramRE),!(!b||b.length<y)&&(T=u(b[y]),T<c&&(c=T),T>v&&(v=T)));if(v>=c)return[c,v]}}});var JV=z((nKe,$V)=>{"use strict";var ZV=by();$V.exports={moduleType:"component",name:"shapes",layoutAttributes:F8(),supplyLayoutDefaults:IV(),supplyDrawNewShapeDefaults:HV(),includeBasePlot:Ad()("shapes"),calcAutorange:XV(),draw:ZV.draw,drawOne:ZV.drawOne}});var I8=z((oKe,QV)=>{"use strict";var KV=(Ha(),Ne(Oa)),EMe=Pt().templatedArray,iKe=(xd(),Ne(bd));QV.exports=EMe("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",KV.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",KV.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var rj=z((lKe,ej)=>{"use strict";var PMe=ke(),B8=jr(),RMe=zo(),FMe=I8(),zMe="images";ej.exports=function(r,t){var a={name:zMe,handleItemDefaults:NMe};RMe(r,t,a)};function NMe(e,r,t){function a(v,d){return PMe.coerce(e,r,FMe,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=B8.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=B8.getFromId(o,f);c._imgIndices.push(r._index)}B8.coercePosition(r,o,a,f,u,0)}return r}});var ij=z((sKe,nj)=>{"use strict";var tj=Pr(),IMe=et(),z0=jr(),aj=Ca(),BMe=(Wl(),Ne(jl));nj.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l<t.images.length;l++){var s=t.images[l];if(s.visible)if(s.layer==="below"&&s.xref!=="paper"&&s.yref!=="paper"){o=aj.ref2id(s.xref)+aj.ref2id(s.yref);var u=t._plots[o];if(!u){i.push(s);continue}u.mainplot&&(o=u.mainplot.id),n[o]||(n[o]=[]),n[o].push(s)}else s.layer==="above"?a.push(s):i.push(s)}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 _=tj.select(this);if(this._imgSrc!==x.source)if(_.attr("xmlns",BMe.svg),!r._context.staticPlot||x.source&&x.source.slice(0,5)==="data:")_.attr("xlink:href",x.source),this._imgSrc=x.source;else{var k=new Promise(function(M){var q=new Image;this.img=q,q.setAttribute("crossOrigin","anonymous"),q.onerror=C,q.onload=function(){var E=document.createElement("canvas");E.width=this.width,E.height=this.height;var P=E.getContext("2d",{willReadFrequently:!0});P.drawImage(this,0,0);var R=E.toDataURL("image/png");_.attr("xlink:href",R),M()},_.on("error",C),q.src=x.source,this._imgSrc=x.source;function C(){_.remove(),M()}}.bind(this));r._promises.push(k)}}function v(x){var _=tj.select(this),k=z0.getFromId(r,x.xref),M=z0.getFromId(r,x.yref),q=z0.getRefType(x.xref)==="domain",C=z0.getRefType(x.yref)==="domain",E=t._size,P,R;k!==void 0?P=typeof x.xref=="string"&&q?k._length*x.sizex:Math.abs(k.l2p(x.sizex)-k.l2p(0)):P=x.sizex*E.w,M!==void 0?R=typeof x.yref=="string"&&C?M._length*x.sizey:Math.abs(M.l2p(x.sizey)-M.l2p(0)):R=x.sizey*E.h;var B=P*f.x[x.xanchor].offset,I=R*f.y[x.yanchor].offset,N=f.x[x.xanchor].sizing+f.y[x.yanchor].sizing,H,G;switch(k!==void 0?H=typeof x.xref=="string"&&q?k._length*x.x+k._offset:k.r2p(x.x)+k._offset:H=x.x*E.w+E.l,H+=B,M!==void 0?G=typeof x.yref=="string"&&C?M._length*(1-x.y)+M._offset:M.r2p(x.y)+M._offset:G=E.h-x.y*E.h+E.t,G+=I,x.sizing){case"fill":N+=" slice";break;case"stretch":N="none";break}_.attr({x:H,y:G,width:P,height:R,preserveAspectRatio:N,opacity:x.opacity});var Y=k&&z0.getRefType(x.xref)!=="domain"?k._id:"",j=M&&z0.getRefType(x.yref)!=="domain"?M._id:"",W=Y+j;IMe.setClipUrl(_,W?"clip"+t._uid+W:null,r)}function d(x){return[x.xref,x.x,x.sizex,x.yref,x.y,x.sizey].join("_")}function p(x,_){return x._index-_._index}var m=t._imageLowerLayer.selectAll("image").data(i,d),y=t._imageUpperLayer.selectAll("image").data(a,d);m.enter().append("image"),y.enter().append("image"),m.exit().remove(),y.exit().remove(),m.each(function(x){c.bind(this)(x),v.bind(this)(x)}),y.each(function(x){c.bind(this)(x),v.bind(this)(x)}),m.sort(p),y.sort(p);var b=Object.keys(t._plots);for(l=0;l<b.length;l++){o=b[l];var T=t._plots[o];if(T.imagelayer){var w=T.imagelayer.selectAll("image").data(n[o]||[],d);w.enter().append("image"),w.exit().remove(),w.each(function(x){c.bind(this)(x),v.bind(this)(x)}),w.sort(p)}}}});var sj=z((uKe,lj)=>{"use strict";var oj=Br(),OMe=j1();lj.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c<l.length;c++)if(u=l[c],f="images["+c+"].",u[s+"ref"]===t._id){var v=u[s],d=u["size"+s],p=null,m=null;if(i){p=OMe(v,t.range);var y=d/Math.pow(10,p)/2;m=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else p=Math.pow(10,v),m=p*(Math.pow(10,d/2)-Math.pow(10,-d/2));oj(p)?oj(m)||(m=null):(p=null,m=null),n(f+s,p),n(f+"size"+s,m)}}}});var fj=z((fKe,uj)=>{"use strict";uj.exports={moduleType:"component",name:"images",layoutAttributes:I8(),supplyLayoutDefaults:rj(),includeBasePlot:Ad()("images"),draw:ij(),convertCoords:sj()}});var Rg={};Dt(Rg,{activeColor:()=>cke,arrowOffsetX:()=>ske,arrowPadX:()=>ake,arrowSymbol:()=>hke,autoMarginIdRoot:()=>KMe,blankHeaderOpts:()=>QMe,buttonClassName:()=>XMe,containerClassName:()=>UMe,dropdownButtonClassName:()=>WMe,dropdownButtonGroupClassName:()=>jMe,gapButton:()=>fke,gapButtonHeader:()=>uke,headerArrowClassName:()=>VMe,headerClassName:()=>YMe,headerGroupClassName:()=>GMe,hoverColor:()=>vke,itemRectClassName:()=>ZMe,itemTextClassName:()=>$Me,menuIndexAttrName:()=>JMe,minHeight:()=>rke,minWidth:()=>eke,name:()=>HMe,rx:()=>nke,ry:()=>ike,textOffsetX:()=>oke,textOffsetY:()=>lke,textPadX:()=>tke});var HMe,UMe,GMe,YMe,VMe,jMe,WMe,XMe,ZMe,$Me,JMe,KMe,QMe,eke,rke,tke,ake,nke,ike,oke,lke,ske,uke,fke,cke,vke,hke,Fg=Ct(()=>{"use strict";HMe="updatemenus",UMe="updatemenu-container",GMe="updatemenu-header-group",YMe="updatemenu-header",VMe="updatemenu-header-arrow",jMe="updatemenu-dropdown-button-group",WMe="updatemenu-dropdown-button",XMe="updatemenu-button",ZMe="updatemenu-item-rect",$Me="updatemenu-item-text",JMe="updatemenu-active-index",KMe="updatemenu-",QMe={label:"  "},eke=30,rke=30,tke=24,ake=16,nke=2,ike=2,oke=12,lke=3,ske=4,uke=5,fke=2,cke="#F4FAFF",vke="#F4FAFF",hke={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var O8=z((cKe,vj)=>{"use strict";var dke=Ia(),pke=Hi(),mke=St().extendFlat,yke=Do().overrideAll,gke=Lp(),cj=Pt().templatedArray,bke=cj("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}});vj.exports=yke(cj("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:bke,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:mke(gke({editType:"arraydraw"}),{}),font:dke({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:pke.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var mj=z((vKe,pj)=>{"use strict";var zg=ke(),hj=zo(),dj=O8(),xke=(Fg(),Ne(Rg)),_ke=xke.name,wke=dj.buttons;pj.exports=function(r,t){var a={name:_ke,handleItemDefaults:Tke};hj(r,t,a)};function Tke(e,r,t){function a(o,l){return zg.coerce(e,r,dj,o,l)}var n=hj(e,r,{name:"buttons",handleItemDefaults:Ake}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),zg.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),zg.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Ake(e,r){function t(n,i){return zg.coerce(e,r,wke,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var bj=z((hKe,gj)=>{"use strict";gj.exports=oa;var jo=Pr(),yj=qr(),N0=et(),Ng=ke();function oa(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})}oa.barWidth=2;oa.barLength=20;oa.barRadius=2;oa.barPad=1;oa.barColor="#808BA4";oa.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",m=c==="up",y=s,b=f,T,w,x,_;!v&&!d&&!p&&!m&&(this.position.direction="down",v=!0);var k=v||m;k?(T=l,w=T+y,v?(x=u,_=Math.min(x+b,o),b=_-x):(_=u+b,x=Math.max(_-b,0),b=_-x)):(x=u,_=x+b,d?(w=l+y,T=Math.max(w-y,0),y=w-T):(T=l,w=Math.min(T+y,i),y=w-T)),this._box={l:T,t:x,w:y,h:b};var M=s>y,q=oa.barLength+2*oa.barPad,C=oa.barWidth+2*oa.barPad,E=l,P=u+f;P+C>o&&(P=o-C);var R=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(yj.fill,oa.barColor),M?(this.hbar=R.attr({rx:oa.barRadius,ry:oa.barRadius,x:E,y:P,width:q,height:C}),this._hbarXMin=E+q/2,this._hbarTranslateMax=y-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=f>b,I=oa.barWidth+2*oa.barPad,N=oa.barLength+2*oa.barPad,H=l+s,G=u;H+I>i&&(H=i-I);var Y=this.container.selectAll("rect.scrollbar-vertical").data(B?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(yj.fill,oa.barColor),B?(this.vbar=Y.attr({rx:oa.barRadius,ry:oa.barRadius,x:H,y:G,width:I,height:N}),this._vbarYMin=G+N/2,this._vbarTranslateMax=b-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,W=T-.5,V=B?w+I+.5:w+.5,J=x-.5,re=M?_+C+.5:_+.5,le=n._topdefs.selectAll("#"+j).data(M||B?[0]:[]);if(le.exit().remove(),le.enter().append("clipPath").attr("id",j).append("rect"),M||B?(this._clipRect=le.select("rect").attr({x:Math.floor(W),y:Math.floor(J),width:Math.ceil(V)-Math.floor(W),height:Math.ceil(re)-Math.floor(J)}),this.container.call(N0.setClipUrl,j,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(N0.setClipUrl,null),delete this._clipRect),M||B){var ne=jo.behavior.drag().on("dragstart",function(){jo.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ne);var $=jo.behavior.drag().on("dragstart",function(){jo.event.sourceEvent.preventDefault(),jo.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call($),B&&this.vbar.on(".drag",null).call($)}this.setTranslate(t,a)};oa.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(N0.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)};oa.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=jo.event.dx),this.vbar&&(t-=jo.event.dy),this.setTranslate(r,t)};oa.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=jo.event.deltaY),this.vbar&&(t+=jo.event.deltaY),this.setTranslate(r,t)};oa.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Ng.constrain(jo.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Ng.constrain(jo.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};oa.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Ng.constrain(r||0,0,a),t=Ng.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(N0.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 i=r/a;this.hbar.call(N0.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(N0.setTranslate,r,t+o*this._vbarTranslateMax)}}});var Lj=z((dKe,qj)=>{"use strict";var I0=Pr(),Wd=_a(),Xd=qr(),B0=et(),Ci=ke(),Ig=Da(),Mke=Pt().arrayEditor,_j=(un(),Ne(sn)).LINE_SPACING,Lr=(Fg(),Ne(Rg)),kke=bj();qj.exports=function(r){var t=r._fullLayout,a=Ci.filterVisible(t[Lr.name]);function n(v){Wd.autoMargin(r,kj(v))}var i=t._menulayer.selectAll("g."+Lr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Lr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){I0.select(this).selectAll("g."+Lr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Lr.headerGroupClassName).data(a,Ske);o.enter().append("g").classed(Lr.headerGroupClassName,!0);for(var l=Ci.ensureSingle(i,"g",Lr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s<a.length;s++){var u=a[s];Pke(r,u)}var f="updatemenus"+t._uid,c=new kke(r,l,f);o.enter().size()&&(l.node().parentNode.appendChild(l.node()),l.call(U8)),o.exit().each(function(v){l.call(U8),n(v)}).remove(),o.each(function(v){var d=I0.select(this),p=v.type==="dropdown"?l:null;Wd.manageCommandObserver(r,v,v.buttons,function(m){H8(r,v,v.buttons[m.index],d,p,c,m.index,!0)}),v.type==="dropdown"?(Tj(r,d,l,c,v),wj(l,v)&&Zd(r,d,l,c,v)):Zd(r,d,null,null,v)})}};function Ske(e){return e._index}function qke(e){return+e.attr(Lr.menuIndexAttrName)==-1}function wj(e,r){return+e.attr(Lr.menuIndexAttrName)===r._index}function H8(e,r,t,a,n,i,o,l){r.active=o,Mke(e.layout,Lr.name,r).applyUpdate("active",o),r.type==="buttons"?Zd(e,a,null,null,r):r.type==="dropdown"&&(n.attr(Lr.menuIndexAttrName,"-1"),Tj(e,a,n,i,r),l||Zd(e,a,n,i,r))}function Tj(e,r,t,a,n){var i=Ci.ensureSingle(r,"g",Lr.headerClassName,function(v){v.style("pointer-events","all")}),o=n._dims,l=n.active,s=n.buttons[l]||Lr.blankHeaderOpts,u={y:n.pad.t,yPad:0,x:n.pad.l,xPad:0,index:0},f={width:o.headerWidth,height:o.headerHeight};i.call(G8,n,s,e).call(Sj,n,u,f);var c=Ci.ensureSingle(r,"text",Lr.headerArrowClassName,function(v){v.attr("text-anchor","end").call(B0.font,n.font).text(Lr.arrowSymbol[n.direction])});c.attr({x:o.headerWidth-Lr.arrowOffsetX+n.pad.l,y:o.headerHeight/2+Lr.textOffsetY+n.pad.t}),i.on("click",function(){t.call(U8,String(wj(t,n)?-1:n._index)),Zd(e,r,t,a,n)}),i.on("mouseover",function(){i.call(Aj)}),i.on("mouseout",function(){i.call(Mj,n)}),B0.setTranslate(r,o.lx,o.ly)}function Zd(e,r,t,a,n){t||(t=r,t.attr("pointer-events","all"));var i=!qke(t)||n.type==="buttons"?n.buttons:[],o=n.type==="dropdown"?Lr.dropdownButtonClassName:Lr.buttonClassName,l=t.selectAll("g."+o).data(Ci.filterVisible(i)),s=l.enter().append("g").classed(o,!0),u=l.exit();n.type==="dropdown"?(s.attr("opacity","0").transition().attr("opacity","1"),u.transition().attr("opacity","0").remove()):u.remove();var f=0,c=0,v=n._dims,d=["up","down"].indexOf(n.direction)!==-1;n.type==="dropdown"&&(d?c=v.headerHeight+Lr.gapButtonHeader:f=v.headerWidth+Lr.gapButtonHeader),n.type==="dropdown"&&n.direction==="up"&&(c=-Lr.gapButtonHeader+Lr.gapButton-v.openHeight),n.type==="dropdown"&&n.direction==="left"&&(f=-Lr.gapButtonHeader+Lr.gapButton-v.openWidth);var p={x:v.lx+f+n.pad.l,y:v.ly+c+n.pad.t,yPad:Lr.gapButton,xPad:Lr.gapButton,index:0},m={l:p.x+n.borderwidth,t:p.y+n.borderwidth};l.each(function(y,b){var T=I0.select(this);T.call(G8,n,y,e).call(Sj,n,p),T.on("click",function(){I0.event.defaultPrevented||(y.execute&&(y.args2&&n.active===b?(H8(e,n,y,r,t,a,-1),Wd.executeAPICommand(e,y.method,y.args2)):(H8(e,n,y,r,t,a,b),Wd.executeAPICommand(e,y.method,y.args))),e.emit("plotly_buttonclicked",{menu:n,button:y,active:n.active}))}),T.on("mouseover",function(){T.call(Aj)}),T.on("mouseout",function(){T.call(Mj,n),l.call(xj,n)})}),l.call(xj,n),d?(m.w=Math.max(v.openWidth,v.headerWidth),m.h=p.y-m.t):(m.w=p.x-m.l,m.h=Math.max(v.openHeight,v.headerHeight)),m.direction=n.direction,a&&(l.size()?Lke(e,r,t,a,n,m):Cke(a))}function Lke(e,r,t,a,n,i){var o=n.direction,l=o==="up"||o==="down",s=n._dims,u=n.active,f,c,v;if(l)for(c=0,v=0;v<u;v++)c+=s.heights[v]+Lr.gapButton;else for(f=0,v=0;v<u;v++)f+=s.widths[v]+Lr.gapButton;a.enable(i,f,c),a.hbar&&a.hbar.attr("opacity","0").transition().attr("opacity","1"),a.vbar&&a.vbar.attr("opacity","0").transition().attr("opacity","1")}function Cke(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 G8(e,r,t,a){e.call(Dke,r).call(Eke,r,t,a)}function Dke(e,r){var t=Ci.ensureSingle(e,"rect",Lr.itemRectClassName,function(a){a.attr({rx:Lr.rx,ry:Lr.ry,"shape-rendering":"crispEdges"})});t.call(Xd.stroke,r.bordercolor).call(Xd.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function Eke(e,r,t,a){var n=Ci.ensureSingle(e,"text",Lr.itemTextClassName,function(l){l.attr({"text-anchor":"start","data-notex":1})}),i=t.label,o=a._fullLayout._meta;o&&(i=Ci.templateString(i,o)),n.call(B0.font,r.font).text(i).call(Ig.convertToTspans,a)}function xj(e,r){var t=r.active;e.each(function(a,n){var i=I0.select(this);n===t&&r.showactive&&i.select("rect."+Lr.itemRectClassName).call(Xd.fill,Lr.activeColor)})}function Aj(e){e.select("rect."+Lr.itemRectClassName).call(Xd.fill,Lr.hoverColor)}function Mj(e,r){e.select("rect."+Lr.itemRectClassName).call(Xd.fill,r.bgcolor)}function Pke(e,r){var t=r._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=B0.tester.selectAll("g."+Lr.dropdownButtonClassName).data(Ci.filterVisible(r.buttons));a.enter().append("g").classed(Lr.dropdownButtonClassName,!0);var n=["up","down"].indexOf(r.direction)!==-1;a.each(function(f,c){var v=I0.select(this);v.call(G8,r,f,e);var d=v.select("."+Lr.itemTextClassName),p=d.node()&&B0.bBox(d.node()).width,m=Math.max(p+Lr.textPadX,Lr.minWidth),y=r.font.size*_j,b=Ig.lineCount(d),T=Math.max(y*b,Lr.minHeight)+Lr.textOffsetY;T=Math.ceil(T),m=Math.ceil(m),t.widths[c]=m,t.heights[c]=T,t.height1=Math.max(t.height1,T),t.width1=Math.max(t.width1,m),n?(t.totalWidth=Math.max(t.totalWidth,m),t.openWidth=t.totalWidth,t.totalHeight+=T+Lr.gapButton,t.openHeight+=T+Lr.gapButton):(t.totalWidth+=m+Lr.gapButton,t.openWidth+=m+Lr.gapButton,t.totalHeight=Math.max(t.totalHeight,T),t.openHeight=t.totalHeight)}),n?t.totalHeight-=Lr.gapButton:t.totalWidth-=Lr.gapButton,t.headerWidth=t.width1+Lr.arrowPadX,t.headerHeight=t.height1,r.type==="dropdown"&&(n?(t.width1+=Lr.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=Lr.arrowPadX),a.remove();var i=t.totalWidth+r.pad.l+r.pad.r,o=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 s="left";Ci.isRightAnchor(r)&&(t.lx-=i,s="right"),Ci.isCenterAnchor(r)&&(t.lx-=i/2,s="center");var u="top";Ci.isBottomAnchor(r)&&(t.ly-=o,u="bottom"),Ci.isMiddleAnchor(r)&&(t.ly-=o/2,u="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),Wd.autoMargin(e,kj(r),{x:r.x,y:r.y,l:i*({right:1,center:.5}[s]||0),r:i*({left:1,center:.5}[s]||0),b:o*({top:1,middle:.5}[u]||0),t:o*({bottom:1,middle:.5}[u]||0)})}function kj(e){return Lr.autoMarginIdRoot+e._index}function Sj(e,r,t,a){a=a||{};var n=e.select("."+Lr.itemRectClassName),i=e.select("."+Lr.itemTextClassName),o=r.borderwidth,l=t.index,s=r._dims;B0.setTranslate(e,o+t.x,o+t.y);var u=["up","down"].indexOf(r.direction)!==-1,f=a.height||(u?s.heights[l]:s.height1);n.attr({x:0,y:0,width:a.width||(u?s.width1:s.widths[l]),height:f});var c=r.font.size*_j,v=Ig.lineCount(i),d=(v-1)*c/2;Ig.positionText(i,Lr.textOffsetX,f/2-d+Lr.textOffsetY),u?t.y+=s.heights[l]+t.yPad:t.x+=s.widths[l]+t.xPad,t.index++}function U8(e,r){e.attr(Lr.menuIndexAttrName,r||"-1").selectAll("g."+Lr.dropdownButtonClassName).remove()}});var Dj=z((pKe,Cj)=>{"use strict";var Rke=(Fg(),Ne(Rg));Cj.exports={moduleType:"component",name:Rke.name,layoutAttributes:O8(),supplyLayoutDefaults:mj(),draw:Lj()}});var $d={};Dt($d,{arrowOffsetX:()=>eSe,autoMarginIdRoot:()=>$ke,containerClassName:()=>zke,currentValueClass:()=>Wke,currentValueInset:()=>SSe,currentValuePadding:()=>kSe,gripBgActiveColor:()=>mSe,gripBgColor:()=>pSe,gripBorder:()=>vSe,gripBorderColor:()=>dSe,gripBorderWidth:()=>hSe,gripHeight:()=>cSe,gripRadius:()=>uSe,gripRectClass:()=>Hke,gripWidth:()=>fSe,groupClassName:()=>Nke,inputAreaClass:()=>Ike,inputProxyClass:()=>Gke,labelClass:()=>jke,labelGroupClass:()=>Vke,labelOffset:()=>gSe,labelPadding:()=>ySe,labelsClass:()=>Yke,menuIndexAttrName:()=>Zke,minHeight:()=>Kke,minWidth:()=>Jke,minorTickColor:()=>ASe,minorTickLength:()=>MSe,minorTickOffset:()=>TSe,name:()=>Fke,railBgColor:()=>oSe,railBorder:()=>aSe,railBorderColor:()=>iSe,railBorderWidth:()=>nSe,railHeight:()=>Xke,railInset:()=>lSe,railRadius:()=>rSe,railRectClass:()=>Bke,railTouchRectClass:()=>Oke,railWidth:()=>tSe,stepInset:()=>sSe,textPadX:()=>Qke,tickColor:()=>xSe,tickLength:()=>wSe,tickOffset:()=>_Se,tickRectClass:()=>Uke,tickWidth:()=>bSe});var Fke,zke,Nke,Ike,Bke,Oke,Hke,Uke,Gke,Yke,Vke,jke,Wke,Xke,Zke,$ke,Jke,Kke,Qke,eSe,rSe,tSe,aSe,nSe,iSe,oSe,lSe,sSe,uSe,fSe,cSe,vSe,hSe,dSe,pSe,mSe,ySe,gSe,bSe,xSe,_Se,wSe,TSe,ASe,MSe,kSe,SSe,Jd=Ct(()=>{"use strict";Fke="sliders",zke="slider-container",Nke="slider-group",Ike="slider-input-area",Bke="slider-rail-rect",Oke="slider-rail-touch-rect",Hke="slider-grip-rect",Uke="slider-tick-rect",Gke="slider-input-proxy",Yke="slider-labels",Vke="slider-label-group",jke="slider-label",Wke="slider-current-value",Xke=5,Zke="slider-active-index",$ke="slider-",Jke=30,Kke=30,Qke=40,eSe=4,rSe=2,tSe=5,aSe=4,nSe=1,iSe="#bec8d9",oSe="#f8fafc",lSe=8,sSe=10,uSe=10,fSe=20,cSe=20,vSe=20,hSe=1,dSe="#bec8d9",pSe="#f6f8fa",mSe="#dbdde0",ySe=8,gSe=0,bSe=1,xSe="#333",_Se=25,wSe=7,TSe=25,ASe="#333",MSe=4,kSe=8,SSe=0});var Y8=z((mKe,Rj)=>{"use strict";var Ej=Ia(),qSe=Lp(),LSe=St().extendDeepAll,CSe=Do().overrideAll,DSe=Th(),Pj=Pt().templatedArray,Pf=(Jd(),Ne($d)),ESe=Pj("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}});Rj.exports=CSe(Pj("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:ESe,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:LSe(qSe({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:DSe.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:Ej({})},font:Ej({}),activebgcolor:{valType:"color",dflt:Pf.gripBgActiveColor},bgcolor:{valType:"color",dflt:Pf.railBgColor},bordercolor:{valType:"color",dflt:Pf.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Pf.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Pf.tickLength},tickcolor:{valType:"color",dflt:Pf.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Pf.minorTickLength}}),"arraydraw","from-root")});var Ij=z((yKe,Nj)=>{"use strict";var O0=ke(),Fj=zo(),zj=Y8(),PSe=(Jd(),Ne($d)),RSe=PSe.name,FSe=zj.steps;Nj.exports=function(r,t){Fj(r,t,{name:RSe,handleItemDefaults:zSe})};function zSe(e,r,t){function a(c,v){return O0.coerce(e,r,zj,c,v)}for(var n=Fj(e,r,{name:"steps",handleItemDefaults:NSe}),i=0,o=0;o<n.length;o++)n[o].visible&&i++;var l;if(i<2?l=r.visible=!1:l=a("visible"),!!l){r._stepCount=i;var s=r._visibleSteps=O0.filterVisible(n),u=a("active");(n[u]||{}).visible||(r.active=s[0]._index),a("x"),a("y"),O0.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("len"),a("lenmode"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),O0.coerceFont(a,"font",t.font);var f=a("currentvalue.visible");f&&(a("currentvalue.xanchor"),a("currentvalue.prefix"),a("currentvalue.suffix"),a("currentvalue.offset"),O0.coerceFont(a,"currentvalue.font",r.font)),a("transition.duration"),a("transition.easing"),a("bgcolor"),a("activebgcolor"),a("bordercolor"),a("borderwidth"),a("ticklen"),a("tickwidth"),a("tickcolor"),a("minorticklen")}}function NSe(e,r){function t(i,o){return O0.coerce(e,r,FSe,i,o)}var a;if(e.method!=="skip"&&!Array.isArray(e.args)?a=r.visible=!1:a=t("visible"),a){t("method"),t("args");var n=t("label","step-"+r._index);t("value",n),t("execute")}}});var Xj=z((gKe,Wj)=>{"use strict";var Wo=Pr(),Bg=_a(),tu=qr(),Xo=et(),Di=ke(),ISe=Di.strTranslate,Kd=Da(),BSe=Pt().arrayEditor,Hr=(Jd(),Ne($d)),W8=(un(),Ne(sn)),Hj=W8.LINE_SPACING,V8=W8.FROM_TL,j8=W8.FROM_BR;Wj.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=OSe(a,r),i=a._infolayer.selectAll("g."+Hr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Hr.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Bg.autoMargin(r,Uj(f))}if(i.exit().each(function(){Wo.select(this).selectAll("g."+Hr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Hr.groupClassName).data(n,HSe);l.enter().append("g").classed(Hr.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s<n.length;s++){var u=n[s];USe(r,u)}l.each(function(f){var c=Wo.select(this);WSe(f),Bg.manageCommandObserver(r,f,f._visibleSteps,function(v){var d=c.data()[0];d.active!==v.index&&(d._dragging||Yj(r,c,d,v.index,!1,!0))}),GSe(r,Wo.select(this),f)})}};function Uj(e){return Hr.autoMarginIdRoot+e._index}function OSe(e,r){for(var t=e[Hr.name],a=[],n=0;n<t.length;n++){var i=t[n];i.visible&&(i._gd=r,a.push(i))}return a}function HSe(e){return e._index}function USe(e,r){var t=Xo.tester.selectAll("g."+Hr.labelGroupClass).data(r._visibleSteps);t.enter().append("g").classed(Hr.labelGroupClass,!0);var a=0,n=0;t.each(function(p){var m=Wo.select(this),y=Gj(m,{step:p},r),b=y.node();if(b){var T=Xo.bBox(b);n=Math.max(n,T.height),a=Math.max(a,T.width)}}),t.remove();var i=r._dims={};i.inputAreaWidth=Math.max(Hr.railWidth,Hr.gripHeight);var o=e._fullLayout._size;i.lx=o.l+o.w*r.x,i.ly=o.t+o.h*(1-r.y),r.lenmode==="fraction"?i.outerLength=Math.round(o.w*r.len):i.outerLength=r.len,i.inputAreaStart=0,i.inputAreaLength=Math.round(i.outerLength-r.pad.l-r.pad.r);var l=i.inputAreaLength-2*Hr.stepInset,s=l/(r._stepCount-1),u=a+Hr.labelPadding;if(i.labelStride=Math.max(1,Math.ceil(u/s)),i.labelHeight=n,i.currentValueMaxWidth=0,i.currentValueHeight=0,i.currentValueTotalHeight=0,i.currentValueMaxLines=1,r.currentvalue.visible){var f=Xo.tester.append("g");t.each(function(p){var m=Og(f,r,p.label),y=m.node()&&Xo.bBox(m.node())||{width:0,height:0},b=Kd.lineCount(m);i.currentValueMaxWidth=Math.max(i.currentValueMaxWidth,Math.ceil(y.width)),i.currentValueHeight=Math.max(i.currentValueHeight,Math.ceil(y.height)),i.currentValueMaxLines=Math.max(i.currentValueMaxLines,b)}),i.currentValueTotalHeight=i.currentValueHeight+r.currentvalue.offset,f.remove()}i.height=i.currentValueTotalHeight+Hr.tickOffset+r.ticklen+Hr.labelOffset+i.labelHeight+r.pad.t+r.pad.b;var c="left";Di.isRightAnchor(r)&&(i.lx-=i.outerLength,c="right"),Di.isCenterAnchor(r)&&(i.lx-=i.outerLength/2,c="center");var v="top";Di.isBottomAnchor(r)&&(i.ly-=i.height,v="bottom"),Di.isMiddleAnchor(r)&&(i.ly-=i.height/2,v="middle"),i.outerLength=Math.ceil(i.outerLength),i.height=Math.ceil(i.height),i.lx=Math.round(i.lx),i.ly=Math.round(i.ly);var d={y:r.y,b:i.height*j8[v],t:i.height*V8[v]};r.lenmode==="fraction"?(d.l=0,d.xl=r.x-r.len*V8[c],d.r=0,d.xr=r.x+r.len*j8[c]):(d.x=r.x,d.l=i.outerLength*V8[c],d.r=i.outerLength*j8[c]),Bg.autoMargin(e,Uj(r),d)}function GSe(e,r,t){(t.steps[t.active]||{}).visible||(t.active=t._visibleSteps[0]._index),r.call(Og,t).call(ZSe,t).call(VSe,t).call(jSe,t).call(XSe,e,t).call(YSe,e,t);var a=t._dims;Xo.setTranslate(r,a.lx+t.pad.l,a.ly+t.pad.t),r.call(jj,t,!1),r.call(Og,t)}function Og(e,r,t){if(r.currentvalue.visible){var a=r._dims,n,i;switch(r.currentvalue.xanchor){case"right":n=a.inputAreaLength-Hr.currentValueInset-a.currentValueMaxWidth,i="left";break;case"center":n=a.inputAreaLength*.5,i="middle";break;default:n=Hr.currentValueInset,i="left"}var o=Di.ensureSingle(e,"text",Hr.labelClass,function(v){v.attr({"text-anchor":i,"data-notex":1})}),l=r.currentvalue.prefix?r.currentvalue.prefix:"";if(typeof t=="string")l+=t;else{var s=r.steps[r.active].label,u=r._gd._fullLayout._meta;u&&(s=Di.templateString(s,u)),l+=s}r.currentvalue.suffix&&(l+=r.currentvalue.suffix),o.call(Xo.font,r.currentvalue.font).text(l).call(Kd.convertToTspans,r._gd);var f=Kd.lineCount(o),c=(a.currentValueMaxLines+1-f)*r.currentvalue.font.size*Hj;return Kd.positionText(o,n,c),o}}function YSe(e,r,t){var a=Di.ensureSingle(e,"rect",Hr.gripRectClass,function(n){n.call(Vj,r,e,t).style("pointer-events","all")});a.attr({width:Hr.gripWidth,height:Hr.gripHeight,rx:Hr.gripRadius,ry:Hr.gripRadius}).call(tu.stroke,t.bordercolor).call(tu.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function Gj(e,r,t){var a=Di.ensureSingle(e,"text",Hr.labelClass,function(o){o.attr({"text-anchor":"middle","data-notex":1})}),n=r.step.label,i=t._gd._fullLayout._meta;return i&&(n=Di.templateString(n,i)),a.call(Xo.font,t.font).text(n).call(Kd.convertToTspans,t._gd),a}function VSe(e,r){var t=Di.ensureSingle(e,"g",Hr.labelsClass),a=r._dims,n=t.selectAll("g."+Hr.labelGroupClass).data(a.labelSteps);n.enter().append("g").classed(Hr.labelGroupClass,!0),n.exit().remove(),n.each(function(i){var o=Wo.select(this);o.call(Gj,i,r),Xo.setTranslate(o,X8(r,i.fraction),Hr.tickOffset+r.ticklen+r.font.size*Hj+Hr.labelOffset+a.currentValueTotalHeight)})}function Bj(e,r,t,a,n){var i=Math.round(a*(t._stepCount-1)),o=t._visibleSteps[i]._index;o!==t.active&&Yj(e,r,t,o,!0,n)}function Yj(e,r,t,a,n,i){var o=t.active;t.active=a,BSe(e.layout,Hr.name,t).applyUpdate("active",a);var l=t.steps[t.active];r.call(jj,t,i),r.call(Og,t),e.emit("plotly_sliderchange",{slider:t,step:t.steps[t.active],interaction:n,previousActive:o}),l&&l.method&&n&&(r._nextMethod?(r._nextMethod.step=l,r._nextMethod.doCallback=n,r._nextMethod.doTransition=i):(r._nextMethod={step:l,doCallback:n,doTransition:i},r._nextMethodRaf=window.requestAnimationFrame(function(){var s=r._nextMethod.step;s.method&&(s.execute&&Bg.executeAPICommand(e,s.method,s.args),r._nextMethod=null,r._nextMethodRaf=null)})))}function Vj(e,r,t){if(r._context.staticPlot)return;var a=t.node(),n=Wo.select(r);function i(){return t.data()[0]}function o(){var l=i();r.emit("plotly_sliderstart",{slider:l});var s=t.select("."+Hr.gripRectClass);Wo.event.stopPropagation(),Wo.event.preventDefault(),s.call(tu.fill,l.activebgcolor);var u=Oj(l,Wo.mouse(a)[0]);Bj(r,t,l,u,!0),l._dragging=!0;function f(){var v=i(),d=Oj(v,Wo.mouse(a)[0]);Bj(r,t,v,d,!1)}n.on("mousemove",f),n.on("touchmove",f);function c(){var v=i();v._dragging=!1,s.call(tu.fill,v.bgcolor),n.on("mouseup",null),n.on("mousemove",null),n.on("touchend",null),n.on("touchmove",null),r.emit("plotly_sliderend",{slider:v,step:v.steps[v.active]})}n.on("mouseup",c),n.on("touchend",c)}e.on("mousedown",o),e.on("touchstart",o)}function jSe(e,r){var t=e.selectAll("rect."+Hr.tickRectClass).data(r._visibleSteps),a=r._dims;t.enter().append("rect").classed(Hr.tickRectClass,!0),t.exit().remove(),t.attr({width:r.tickwidth+"px","shape-rendering":"crispEdges"}),t.each(function(n,i){var o=i%a.labelStride===0,l=Wo.select(this);l.attr({height:o?r.ticklen:r.minorticklen}).call(tu.fill,r.tickcolor),Xo.setTranslate(l,X8(r,i/(r._stepCount-1))-.5*r.tickwidth,(o?Hr.tickOffset:Hr.minorTickOffset)+a.currentValueTotalHeight)})}function WSe(e){var r=e._dims;r.labelSteps=[];for(var t=e._stepCount,a=0;a<t;a+=r.labelStride)r.labelSteps.push({fraction:a/(t-1),step:e._visibleSteps[a]})}function jj(e,r,t){for(var a=e.select("rect."+Hr.gripRectClass),n=0,i=0;i<r._stepCount;i++)if(r._visibleSteps[i]._index===r.active){n=i;break}var o=X8(r,n/(r._stepCount-1));if(!r._invokingCommand){var l=a;t&&r.transition.duration>0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",ISe(o-Hr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function X8(e,r){var t=e._dims;return t.inputAreaStart+Hr.stepInset+(t.inputAreaLength-2*Hr.stepInset)*Math.min(1,Math.max(0,r))}function Oj(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Hr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Hr.stepInset-2*t.inputAreaStart)))}function XSe(e,r,t){var a=t._dims,n=Di.ensureSingle(e,"rect",Hr.railTouchRectClass,function(i){i.call(Vj,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Hr.tickOffset+t.ticklen+a.labelHeight)}).call(tu.fill,t.bgcolor).attr("opacity",0),Xo.setTranslate(n,0,a.currentValueTotalHeight)}function ZSe(e,r){var t=r._dims,a=t.inputAreaLength-Hr.railInset*2,n=Di.ensureSingle(e,"rect",Hr.railRectClass);n.attr({width:a,height:Hr.railWidth,rx:Hr.railRadius,ry:Hr.railRadius,"shape-rendering":"crispEdges"}).call(tu.stroke,r.bordercolor).call(tu.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Xo.setTranslate(n,Hr.railInset,(t.inputAreaWidth-Hr.railWidth)*.5+t.currentValueTotalHeight)}});var $j=z((bKe,Zj)=>{"use strict";var $Se=(Jd(),Ne($d));Zj.exports={moduleType:"component",name:$Se.name,layoutAttributes:Y8(),supplyLayoutDefaults:Ij(),draw:Xj()}});var Hg=z((xKe,Kj)=>{"use strict";var Jj=Hi();Kj.exports={bgcolor:{valType:"color",dflt:Jj.background,editType:"plot"},bordercolor:{valType:"color",dflt:Jj.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 Z8=z((_Ke,Qj)=>{"use strict";Qj.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 Ug={};Dt(Ug,{bgClassName:()=>QSe,containerClassName:()=>KSe,extraPad:()=>wqe,grabAreaCursor:()=>yqe,grabAreaFill:()=>mqe,grabAreaMaxClassName:()=>sqe,grabAreaMinClassName:()=>iqe,grabAreaWidth:()=>gqe,grabberMaxClassName:()=>lqe,grabberMinClassName:()=>nqe,handleMaxClassName:()=>uqe,handleMinClassName:()=>oqe,handleRadius:()=>xqe,handleStrokeWidth:()=>_qe,handleWidth:()=>bqe,maskColor:()=>vqe,maskMaxClassName:()=>tqe,maskMaxOppAxisClassName:()=>cqe,maskMinClassName:()=>rqe,maskMinOppAxisClassName:()=>fqe,maskOppAxisColor:()=>hqe,name:()=>JSe,rangePlotClassName:()=>eqe,slideBoxClassName:()=>aqe,slideBoxCursor:()=>pqe,slideBoxFill:()=>dqe});var JSe,KSe,QSe,eqe,rqe,tqe,aqe,nqe,iqe,oqe,lqe,sqe,uqe,fqe,cqe,vqe,hqe,dqe,pqe,mqe,yqe,gqe,bqe,xqe,_qe,wqe,Gg=Ct(()=>{"use strict";JSe="rangeslider",KSe="rangeslider-container",QSe="rangeslider-bg",eqe="rangeslider-rangeplot",rqe="rangeslider-mask-min",tqe="rangeslider-mask-max",aqe="rangeslider-slidebox",nqe="rangeslider-grabber-min",iqe="rangeslider-grabarea-min",oqe="rangeslider-handle-min",lqe="rangeslider-grabber-max",sqe="rangeslider-grabarea-max",uqe="rangeslider-handle-max",fqe="rangeslider-mask-min-opp-axis",cqe="rangeslider-mask-max-opp-axis",vqe="rgba(0,0,0,0.4)",hqe="rgba(0,0,0,0.2)",dqe="transparent",pqe="ew-resize",mqe="transparent",yqe="col-resize",gqe=10,bqe=4,xqe=1,_qe=1,wqe=15});var tW=z(Vg=>{"use strict";var Tqe=Ca(),Aqe=Da(),eW=(Gg(),Ne(Ug)),Mqe=(un(),Ne(sn)).LINE_SPACING,Yg=eW.name;function rW(e){var r=e&&e[Yg];return r&&r.visible}Vg.isVisible=rW;Vg.makeData=function(e){for(var r=Tqe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n<r.length;n++){var i=r[n];if(rW(i)){a.push(i);var o=i[Yg];o._id=Yg+i._id,o._height=(e.height-t.b-t.t)*o.thickness,o._offsetShift=Math.floor(o.borderwidth/2)}}e._rangeSliderData=a};Vg.autoMarginOpts=function(e,r){var t=e._fullLayout,a=r[Yg],n=r._id.charAt(0),i=0,o=0;if(r.side==="bottom"&&(i=r._depth,r.title.text!==t._dfltTitle[n])){o=1.5*r.title.font.size+10+a._offsetShift;var l=(r.title.text.match(Aqe.BR_TAG_ALL)||[]).length;o+=l*r.title.font.size*Mqe}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(t.margin.b,o),pad:eW.extraPad+a._offsetShift*2}}});var oW=z((TKe,iW)=>{"use strict";var jg=ke(),aW=Pt(),nW=Ca(),kqe=Hg(),Sqe=Z8();iW.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;jg.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=aW.newContainer(i,"rangeslider");function s(_,k){return jg.coerce(o,l,kqe,_,k)}var u,f;function c(_,k){return jg.coerce(u,f,Sqe,_,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(_){return _.slice(0,Math.max(0,_.indexOf("y")))===nW.name2id(a)}).map(function(_){return _.slice(_.indexOf("y"),_.length)}),m=jg.simpleMap(p,nW.id2name),y=0;y<m.length;y++){var b=m[y];u=o[b]||{},f=aW.newContainer(l,b,"yaxis");var T=t[b],w;u.range&&T.isValidRange(u.range)&&(w="fixed");var x=c("rangemode",w);x!=="match"&&c("range",T.range.slice())}l._input=o}}});var sW=z((AKe,lW)=>{"use strict";var qqe=Ca().list,Lqe=Bh().getAutoRange,Cqe=(Gg(),Ne(Ug));lW.exports=function(r){for(var t=qqe(r,"x",!0),a=0;a<t.length;a++){var n=t[a],i=n[Cqe.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=Lqe(r,n))}}});var vW=z((MKe,cW)=>{"use strict";var Wg=Pr(),Dqe=Ar(),Eqe=_a(),pa=ke(),Xg=pa.strTranslate,fW=et(),au=qr(),Pqe=o0(),Rqe=lo(),$8=Ca(),Fqe=Xi(),zqe=Ys(),Zr=(Gg(),Ne(Ug));cW.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a<t.length;a++){var n=t[a][Zr.name];n._clipId=n._id+"-"+r._uid}function i(l){return l._name}var o=r._infolayer.selectAll("g."+Zr.containerClassName).data(t,i);o.exit().each(function(l){var s=l[Zr.name];r._topdefs.select("#"+s._clipId).remove()}).remove(),t.length!==0&&(o.enter().append("g").classed(Zr.containerClassName,!0).attr("pointer-events","all"),o.each(function(l){var s=Wg.select(this),u=l[Zr.name],f=r[$8.id2name(l.anchor)],c=u[$8.id2name(l.anchor)];if(u.range){var v=pa.simpleMap(u.range,l.r2l),d=pa.simpleMap(l.range,l.r2l),p;d[0]<d[1]?p=[Math.min(v[0],d[0]),Math.max(v[1],d[1])]:p=[Math.max(v[0],d[0]),Math.min(v[1],d[1])],u.range=u._input.range=pa.simpleMap(p,l.l2r)}l.cleanRange("rangeslider.range");var m=r._size;u._width=l._length;let y=Math.round(l._offset);var b=Math.round(m.t+m.h*(1-l._counterDomainMin)+(l.side==="bottom"?l._depth:0)+u._offsetShift+Zr.extraPad);s.attr("transform",Xg(y,b)),u._rl=pa.simpleMap(u.range,l.r2l);var T=u._rl[0],w=u._rl[1],x=w-T;if(u.p2d=function(I){return I/u._width*x+T},u.d2p=function(I){return(I-T)/x*u._width},l.rangebreaks){var _=l.locateBreaks(T,w);if(_.length){var k,M,q=0;for(k=0;k<_.length;k++)M=_[k],q+=M.max-M.min;var C=u._width/(w-T-q),E=[-C*T];for(k=0;k<_.length;k++)M=_[k],E.push(E[E.length-1]-C*(M.max-M.min));for(u.d2p=function(I){for(var N=E[0],H=0;H<_.length;H++){var G=_[H];if(I>=G.max)N=E[H+1];else if(I<G.min)break}return N+C*I},k=0;k<_.length;k++)M=_[k],M.pmin=u.d2p(M.min),M.pmax=u.d2p(M.max);u.p2d=function(I){for(var N=E[0],H=0;H<_.length;H++){var G=_[H];if(I>=G.pmax)N=E[H+1];else if(I<G.pmin)break}return(I-N)/C}}}if(c.rangemode!=="match"){var P=f.r2l(c.range[0]),R=f.r2l(c.range[1]),B=R-P;u.d2pOppAxis=function(I){return(I-P)/B*u._height}}s.call(Oqe,e,l,u).call(Hqe,e,l,u).call(Uqe,e,l,u).call(Yqe,e,l,u,c).call(Vqe,e,l,u).call(jqe,e,l,u),Nqe(s,e,l,u),Bqe(s,e,l,u,f,c),l.side==="bottom"&&Pqe.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:b+u._height+u._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function uW(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function Nqe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Zr.slideBoxClassName).node(),i=e.select("rect."+Zr.grabAreaMinClassName).node(),o=e.select("rect."+Zr.grabAreaMaxClassName).node();function l(){var s=Wg.event,u=s.target,f=uW(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Fqe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var T=uW(b),w=+T-f,x,_,k;switch(u){case n:if(k="ew-resize",v+w>t._length||d+w<0)return;x=v+w,_=d+w;break;case i:if(k="col-resize",v+w>t._length)return;x=v+w,_=d;break;case o:if(k="col-resize",d+w<0)return;x=v,_=d+w;break;default:k="ew-resize",x=c,_=c+w;break}if(_<x){var M=_;_=x,x=M}a._pixelMin=x,a._pixelMax=_,zqe(Wg.select(p),k),Iqe(e,r,t,a)}function y(){p.removeEventListener("mousemove",m),p.removeEventListener("mouseup",y),this.removeEventListener("touchmove",m),this.removeEventListener("touchend",y),pa.removeElement(p)}}e.on("mousedown",l),e.on("touchstart",l)}function Iqe(e,r,t,a){function n(l){return t.l2r(pa.constrain(l,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),o=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){Dqe.call("_guiRelayout",r,t._name+".range",[i,o])})}function Bqe(e,r,t,a,n,i){var o=Zr.handleWidth/2;function l(b){return pa.constrain(b,0,a._width)}function s(b){return pa.constrain(b,0,a._height)}function u(b){return pa.constrain(b,-o,a._width+o)}var f=l(a.d2p(t._rl[0])),c=l(a.d2p(t._rl[1]));if(e.select("rect."+Zr.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+Zr.maskMinClassName).attr("width",f),e.select("rect."+Zr.maskMaxClassName).attr("x",c).attr("width",a._width-c),i.rangemode!=="match"){var v=a._height-s(a.d2pOppAxis(n._rl[1])),d=a._height-s(a.d2pOppAxis(n._rl[0]));e.select("rect."+Zr.maskMinOppAxisClassName).attr("x",f).attr("height",v).attr("width",c-f),e.select("rect."+Zr.maskMaxOppAxisClassName).attr("x",f).attr("y",d).attr("height",a._height-d).attr("width",c-f),e.select("rect."+Zr.slideBoxClassName).attr("y",v).attr("height",d-v)}var p=.5,m=Math.round(u(f-o))-p,y=Math.round(u(c-o))+p;e.select("g."+Zr.grabberMinClassName).attr("transform",Xg(m,p)),e.select("g."+Zr.grabberMaxClassName).attr("transform",Xg(y,p))}function Oqe(e,r,t,a){var n=pa.ensureSingle(e,"rect",Zr.bgClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=a.borderwidth%2===0?a.borderwidth:a.borderwidth-1,o=-a._offsetShift,l=fW.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:Xg(o,o),"stroke-width":l}).call(au.stroke,a.bordercolor).call(au.fill,a.bgcolor)}function Hqe(e,r,t,a){var n=r._fullLayout,i=pa.ensureSingleById(n._topdefs,"clipPath",a._clipId,function(o){o.append("rect").attr({x:0,y:0})});i.select("rect").attr({width:a._width,height:a._height})}function Uqe(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+Zr.rangePlotClassName).data(t._subplotsWith,pa.identity);i.enter().append("g").attr("class",function(l){return Zr.rangePlotClassName+" "+l}).call(fW.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=Wg.select(this),f=s===0,c=$8.getFromId(r,l,"y"),v=c._name,d=a[v],p={data:[],layout:{xaxis:{type:t.type,domain:[0,1],range:a.range.slice(),calendar:t.calendar},width:a._width,height:a._height,margin:{t:0,b:0,l:0,r:0}},_context:r._context};t.rangebreaks&&(p.layout.xaxis.rangebreaks=t.rangebreaks),p.layout[v]={type:c.type,domain:[0,1],range:d.rangemode!=="match"?d.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(p.layout[v].rangebreaks=c.rangebreaks),Eqe.supplyDefaults(p);var m=p._fullLayout.xaxis,y=p._fullLayout[v];m.clearCalc(),m.setScale(),y.clearCalc(),y.setScale();var b={id:l,plotgroup:u,xaxis:m,yaxis:y,isRangePlot:!0};f?o=b:(b.mainplot="xy",b.mainplotinfo=o),Rqe.rangePlot(r,b,Gqe(n,l))})}function Gqe(e,r){for(var t=[],a=0;a<e.length;a++){var n=e[a],i=n[0].trace;i.xaxis+i.yaxis===r&&t.push(n)}return t}function Yqe(e,r,t,a,n){var i=pa.ensureSingle(e,"rect",Zr.maskMinClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})});i.attr("height",a._height).call(au.fill,Zr.maskColor);var o=pa.ensureSingle(e,"rect",Zr.maskMaxClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});if(o.attr("height",a._height).call(au.fill,Zr.maskColor),n.rangemode!=="match"){var l=pa.ensureSingle(e,"rect",Zr.maskMinOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",a._width).call(au.fill,Zr.maskOppAxisColor);var s=pa.ensureSingle(e,"rect",Zr.maskMaxOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});s.attr("width",a._width).style("border-top",Zr.maskOppBorder).call(au.fill,Zr.maskOppAxisColor)}}function Vqe(e,r,t,a){if(!r._context.staticPlot){var n=pa.ensureSingle(e,"rect",Zr.slideBoxClassName,function(i){i.attr({y:0,cursor:Zr.slideBoxCursor,"shape-rendering":"crispEdges"})});n.attr({height:a._height,fill:Zr.slideBoxFill})}}function jqe(e,r,t,a){var n=pa.ensureSingle(e,"g",Zr.grabberMinClassName),i=pa.ensureSingle(e,"g",Zr.grabberMaxClassName),o={x:0,width:Zr.handleWidth,rx:Zr.handleRadius,fill:au.background,stroke:au.defaultLine,"stroke-width":Zr.handleStrokeWidth,"shape-rendering":"crispEdges"},l={y:Math.round(a._height/4),height:Math.round(a._height/2)},s=pa.ensureSingle(n,"rect",Zr.handleMinClassName,function(d){d.attr(o)});s.attr(l);var u=pa.ensureSingle(i,"rect",Zr.handleMaxClassName,function(d){d.attr(o)});u.attr(l);var f={width:Zr.grabAreaWidth,x:0,y:0,fill:Zr.grabAreaFill,cursor:r._context.staticPlot?void 0:Zr.grabAreaCursor},c=pa.ensureSingle(n,"rect",Zr.grabAreaMinClassName,function(d){d.attr(f)});c.attr("height",a._height);var v=pa.ensureSingle(i,"rect",Zr.grabAreaMaxClassName,function(d){d.attr(f)});v.attr("height",a._height)}});var dW=z((kKe,hW)=>{"use strict";var Wqe=ke(),Xqe=Hg(),Zqe=Z8(),J8=tW();hW.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Wqe.extendFlat({},Xqe,{yaxis:Zqe})}}},layoutAttributes:Hg(),handleDefaults:oW(),calcAutorange:sW(),draw:vW(),isVisible:J8.isVisible,makeData:J8.makeData,autoMarginOpts:J8.autoMarginOpts}});var Zg=z((SKe,mW)=>{"use strict";var $qe=Ia(),pW=Hi(),Jqe=Pt().templatedArray,Kqe=Jqe("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"});mW.exports={visible:{valType:"boolean",editType:"plot"},buttons:Kqe,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:$qe({editType:"plot"}),bgcolor:{valType:"color",dflt:pW.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:pW.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var K8={};Dt(K8,{darkAmount:()=>nLe,lightAmount:()=>aLe,minButtonWidth:()=>eLe,rx:()=>rLe,ry:()=>tLe,yPad:()=>Qqe});var Qqe,eLe,rLe,tLe,aLe,nLe,Q8=Ct(()=>{"use strict";Qqe=.02,eLe=30,rLe=3,tLe=3,aLe=25,nLe=10});var bW=z((qKe,gW)=>{"use strict";var $g=ke(),iLe=qr(),oLe=Pt(),lLe=zo(),yW=Zg(),e9=(Q8(),Ne(K8));gW.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=oLe.newContainer(t,"rangeselector");function s(d,p){return $g.coerce(o,l,yW,d,p)}var u=lLe(o,l,{name:"buttons",handleItemDefaults:sLe,calendar:i}),f=s("visible",u.length>0);if(f){var c=uLe(t,a,n);s("x",c[0]),s("y",c[1]),$g.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),$g.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",iLe.contrast(v,e9.lightAmount,e9.darkAmount)),s("bordercolor"),s("borderwidth")}};function sLe(e,r,t,a){var n=a.calendar;function i(s,u){return $g.coerce(e,r,yW.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function uLe(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i<a.length;i++){var o=r[a[i]].domain;o&&(n=Math.max(o[1],n))}return[e.domain[0],n+e9.yPad]}});var _W=z((LKe,xW)=>{"use strict";var fLe=d5(),cLe=ke().titleCase;xW.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=vLe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function vLe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=fLe["utc"+cLe(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var LW=z((CKe,qW)=>{"use strict";var Kg=Pr(),hLe=Ar(),dLe=_a(),wW=qr(),SW=et(),is=ke(),TW=is.strTranslate,Jg=Da(),pLe=Ca(),a9=(un(),Ne(sn)),AW=a9.LINE_SPACING,MW=a9.FROM_TL,kW=a9.FROM_BR,t9=(Q8(),Ne(K8)),mLe=_W();qW.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(yLe(r),gLe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Kg.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(is.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Kg.select(this),c=mLe(o,u);u._isActive=bLe(o,u,c),f.call(r9,l,u),f.call(_Le,l,u,r),f.on("click",function(){r._dragged||hLe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(r9,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(r9,l,u)})}),TLe(r,s,l,o._name,i)})};function yLe(e){for(var r=pLe.list(e,"x",!0),t=[],a=0;a<r.length;a++){var n=r[a];n.rangeselector&&n.rangeselector.visible&&t.push(n)}return t}function gLe(e){return e._id}function bLe(e,r,t){if(r.step==="all")return e.autorange===!0;var a=Object.keys(t);return e.range[0]===t[a[0]]&&e.range[1]===t[a[1]]}function r9(e,r,t){var a=is.ensureSingle(e,"rect","selector-rect",function(n){n.attr("shape-rendering","crispEdges")});a.attr({rx:t9.rx,ry:t9.ry}),a.call(wW.stroke,r.bordercolor).call(wW.fill,xLe(r,t)).style("stroke-width",r.borderwidth+"px")}function xLe(e,r){return r._isActive||r._isHovered?e.activecolor:e.bgcolor}function _Le(e,r,t,a){function n(o){Jg.convertToTspans(o,a)}var i=is.ensureSingle(e,"text","selector-text",function(o){o.attr("text-anchor","middle")});i.call(SW.font,r.font).text(wLe(t,a._fullLayout._meta)).call(n)}function wLe(e,r){return e.label?r?is.templateString(e.label,r):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function TLe(e,r,t,a,n){var i=0,o=0,l=t.borderwidth;r.each(function(){var d=Kg.select(this),p=d.select(".selector-text"),m=t.font.size*AW,y=Math.max(m*Jg.lineCount(p),16)+3;o=Math.max(o,y)}),r.each(function(){var d=Kg.select(this),p=d.select(".selector-rect"),m=d.select(".selector-text"),y=m.node()&&SW.bBox(m.node()).width,b=t.font.size*AW,T=Jg.lineCount(m),w=Math.max(y+10,t9.minButtonWidth);d.attr("transform",TW(l+i,l)),p.attr({x:0,y:0,width:w,height:o}),Jg.positionText(m,w/2,o/2-(T-1)*b/2+3),i+=w+5});var s=e._fullLayout._size,u=s.l+s.w*t.x,f=s.t+s.h*(1-t.y),c="left";is.isRightAnchor(t)&&(u-=i,c="right"),is.isCenterAnchor(t)&&(u-=i/2,c="center");var v="top";is.isBottomAnchor(t)&&(f-=o,v="bottom"),is.isMiddleAnchor(t)&&(f-=o/2,v="middle"),i=Math.ceil(i),o=Math.ceil(o),u=Math.round(u),f=Math.round(f),dLe.autoMargin(e,a+"-range-selector",{x:t.x,y:t.y,l:i*MW[c],r:i*kW[c],b:o*kW[v],t:o*MW[v]}),n.attr("transform",TW(u,f))}});var DW=z((DKe,CW)=>{"use strict";CW.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Zg()}}},layoutAttributes:Zg(),handleDefaults:bW(),draw:LW()}});var H0=z(n9=>{"use strict";var EW=St().extendFlat;n9.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]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",o={x:EW({},t,{}),y:EW({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};n9.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l<o.columns?n=o._domains.x[l]:delete e.domain.column);var s=t("domain.row");s!==void 0&&(s<o.rows?i=o._domains.y[s]:delete e.domain.row)}var u=t("domain.x",n),f=t("domain.y",i);u[0]<u[1]||(e.domain.x=n.slice()),f[0]<f[1]||(e.domain.y=i.slice())}});var NW=z((PKe,zW)=>{"use strict";var ALe=ke(),MLe=(Nc(),Ne(_h)).counter,kLe=H0().attributes,PW=(Ha(),Ne(Oa)).idRegex,SLe=Pt(),i9={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:[MLe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[PW.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[PW.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:kLe({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 Qg(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function qLe(e,r){var t=e.grid||{},a=Qg(r,t,"x"),n=Qg(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=SLe.newContainer(r,"grid");function v(k,M){return ALe.coerce(t,c,i9,k,M)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=v("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=v("roworder"),b=y==="top to bottom",T=i?.2:.1,w=i?.3:.1,x,_;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,_=r._splomGridDflt.yside),c._domains={x:RW("x",v,T,x,p),y:RW("y",v,w,_,d,b)}}function RW(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),v=0;v<n;v++){var d=u+f*v;s[i?n-1-v:v]=[d,d+c]}return s}function LLe(e,r){var t=r.grid;if(!(!t||!t._domains)){var a=e.grid||{},n=r._subplots,i=t._hasSubplotGrid,o=t.rows,l=t.columns,s=t.pattern==="independent",u,f,c,v,d,p,m,y=t._axisMap={};if(i){var b=a.subplots||[];p=t.subplots=new Array(o);var T=1;for(u=0;u<o;u++){var w=p[u]=new Array(l),x=b[u]||[];for(f=0;f<l;f++)if(s?(d=T===1?"xy":"x"+T+"y"+T,T++):d=x[f],w[f]="",n.cartesian.indexOf(d)!==-1){if(m=d.indexOf("y"),c=d.slice(0,m),v=d.slice(m),y[c]!==void 0&&y[c]!==f||y[v]!==void 0&&y[v]!==u)continue;w[f]=d,y[c]=f,y[v]=u}}}else{var _=Qg(r,a,"x"),k=Qg(r,a,"y");t.xaxes=FW(_,n.xaxis,l,y,"x"),t.yaxes=FW(k,n.yaxis,o,y,"y")}var M=t._anchors={},q=t.roworder==="top to bottom";for(var C in y){var E=C.charAt(0),P=t[E+"side"],R,B,I;if(P.length<8)M[C]="free";else if(E==="x"){if(P.charAt(0)==="t"===q?(R=0,B=1,I=o):(R=o-1,B=-1,I=-1),i){var N=y[C];for(u=R;u!==I;u+=B)if(d=p[u][N],!!d&&(m=d.indexOf("y"),d.slice(0,m)===C)){M[C]=d.slice(m);break}}else for(u=R;u!==I;u+=B)if(v=t.yaxes[u],n.cartesian.indexOf(C+v)!==-1){M[C]=v;break}}else if(P.charAt(0)==="l"?(R=0,B=1,I=l):(R=l-1,B=-1,I=-1),i){var H=y[C];for(u=R;u!==I;u+=B)if(d=p[H][u],!!d&&(m=d.indexOf("y"),d.slice(m)===C)){M[C]=d.slice(0,m);break}}else for(u=R;u!==I;u+=B)if(c=t.xaxes[u],n.cartesian.indexOf(c+C)!==-1){M[C]=c;break}}}}function FW(e,r,t,a,n){var i=new Array(t),o;function l(s,u){r.indexOf(u)!==-1&&a[u]===void 0?(i[s]=u,a[u]=s):i[s]=""}if(Array.isArray(e))for(o=0;o<t;o++)l(o,e[o]);else for(l(0,n),o=1;o<t;o++)l(o,n+(o+1));return i}zW.exports={moduleType:"component",name:"grid",schema:{layout:{grid:i9}},layoutAttributes:i9,sizeDefaults:qLe,contentDefaults:LLe}});var o9=z((RKe,IW)=>{"use strict";IW.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 HW=z((FKe,OW)=>{"use strict";var BW=Br(),CLe=Ar(),DLe=ke(),ELe=Pt(),PLe=o9();OW.exports=function(e,r,t,a){var n="error_"+a.axis,i=ELe.newContainer(r,n),o=e[n]||{};function l(p,m){return DLe.coerce(o,i,PLe,p,m)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||BW(o.thickness)||BW(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",CLe.traceIs(r,"gl3d")?0:4))}}});var l9=z((zKe,GW)=>{"use strict";GW.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=UW(t,r.value),l=UW(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function UW(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 jW=z((NKe,VW)=>{"use strict";var s9=Br(),RLe=Ar(),u9=jr(),FLe=ke(),zLe=l9();VW.exports=function(r){for(var t=r.calcdata,a=0;a<t.length;a++){var n=t[a],i=n[0].trace;if(i.visible===!0&&RLe.traceIs(i,"errorBarsOK")){var o=u9.getFromId(r,i.xaxis),l=u9.getFromId(r,i.yaxis);YW(n,i,o,"x"),YW(n,i,l,"y")}}};function YW(e,r,t,a){var n=r["error_"+a]||{},i=n.visible&&["linear","log"].indexOf(t.type)!==-1,o=[];if(i){for(var l=zLe(n),s=0;s<e.length;s++){var u=e[s],f=u.i;if(f===void 0)f=s;else if(f===null)continue;var c=u[a];if(s9(t.c2l(c))){var v=l(c,f);if(s9(v[0])&&s9(v[1])){var d=u[a+"s"]=c-v[0],p=u[a+"h"]=c+v[1];o.push(d,p)}}}var m=t._id,y=r._extremes[m],b=u9.findExtremes(t,o,FLe.extendFlat({tozero:y.opts.tozero},{padded:!0}));y.min=y.min.concat(b.min),y.max=y.max.concat(b.max)}}});var ZW=z((IKe,XW)=>{"use strict";var WW=Pr(),nu=Br(),NLe=et(),ILe=ii();XW.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(T){return T.id});var m=ILe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var y=WW.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){v.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),NLe.setClipUrl(y,a.layerClipId,r),y.each(function(T){var w=WW.select(this),x=BLe(T,o,l);if(!(m&&!T.vis)){var _,k=w.select("path.yerror");if(d.visible&&nu(x.x)&&nu(x.yh)&&nu(x.ys)){var M=d.width;_="M"+(x.x-M)+","+x.yh+"h"+2*M+"m-"+M+",0V"+x.ys,x.noYS||(_+="m-"+M+",0h"+2*M),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",_)}else k.remove();var q=w.select("path.xerror");if(v.visible&&nu(x.y)&&nu(x.xh)&&nu(x.xs)){var C=(v.copy_ystyle?d:v).width;_="M"+x.xh+","+(x.y-C)+"v"+2*C+"m0,-"+C+"H"+x.xs,x.noXS||(_+="m0,-"+C+"v"+2*C),i=!q.size(),i?q=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(q=q.transition().duration(n.duration).ease(n.easing)),q.attr("d",_)}else q.remove()}})}})};function BLe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),nu(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),nu(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var KW=z((BKe,JW)=>{"use strict";var OLe=Pr(),$W=qr();JW.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=OLe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call($W.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call($W.stroke,i.color)})}});var rX=z((OKe,eX)=>{"use strict";var Qd=ke(),QW=Do().overrideAll,e2=o9(),Rf={error_x:Qd.extendFlat({},e2),error_y:Qd.extendFlat({},e2)};delete Rf.error_x.copy_zstyle;delete Rf.error_y.copy_zstyle;delete Rf.error_y.copy_ystyle;var r2={error_x:Qd.extendFlat({},e2),error_y:Qd.extendFlat({},e2),error_z:Qd.extendFlat({},e2)};delete r2.error_x.copy_ystyle;delete r2.error_y.copy_ystyle;delete r2.error_z.copy_ystyle;delete r2.error_z.copy_zstyle;eX.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Rf,bar:Rf,histogram:Rf,scatter3d:QW(r2,"calc","nested"),scattergl:QW(Rf,"calc","nested")}},supplyDefaults:HW(),calc:jW(),makeComputeError:l9(),plot:ZW(),style:KW(),hoverInfo:HLe};function HLe(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 tX={};Dt(tX,{cn:()=>ULe});var ULe,aX=Ct(()=>{"use strict";ULe={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 cX=z((HKe,fX)=>{"use strict";var iu=Pr(),r3=_a(),nX=Ar(),os=jr(),e3=Xi(),uo=ke(),$o=uo.strTranslate,uX=St().extendFlat,f9=Ys(),Zo=et(),U0=qr(),GLe=o0(),YLe=Da(),VLe=xi().flipScale,jLe=b8(),WLe=x8(),XLe=ji(),v9=(un(),Ne(sn)),iX=v9.LINE_SPACING,oX=v9.FROM_TL,lX=v9.FROM_BR,ea=(aX(),Ne(tX)).cn;function ZLe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+ea.colorbar).data($Le(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(ea.colorbar,!0),t.each(function(a){var n=iu.select(this);uo.ensureSingle(n,"rect",ea.cbbg),uo.ensureSingle(n,"g",ea.cbfills),uo.ensureSingle(n,"g",ea.cblines),uo.ensureSingle(n,"g",ea.cbaxis,function(o){o.classed(ea.crisp,!0)}),uo.ensureSingle(n,"g",ea.cbtitleunshift,function(o){o.append("g").classed(ea.cbtitle,!0)}),uo.ensureSingle(n,"rect",ea.cboutline);var i=JLe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&KLe(n,a,e)}),t.exit().each(function(a){r3.autoMargin(e,a._id)}).remove(),t.order()}function $Le(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(w){return uX(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?VLe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f<t.length;f++){var c=t[f];if(o=c[0].trace,!!o._module){var v=o._module.colorbar;if(o.visible===!0&&v)for(var d=Array.isArray(v),p=d?v:[v],m=0;m<p.length;m++){l=p[m];var y=l.container;i=y?o[y]:o,i&&i.showscale&&(n=s(i.colorbar),n._id="cb"+o.uid+(d&&y?"-"+y:""),n._traceIndex=o.index,n._propPrefix=(y?y+".":"")+"colorbar.",n._meta=o._meta,u(),a.push(n))}}}for(var b in r._colorAxes)if(i=r[b],i.showscale){var T=r._colorAxes[b];n=s(i.colorbar),n._id="cb"+b,n._propPrefix=b+".colorbar.",n._meta=r._meta,l={min:"cmin",max:"cmax"},T[0]!=="heatmap"&&(o=T[1],l.calc=o._module.colorbar.calc),u(),a.push(n)}return a}var c9=(e,r)=>[Math.min(e[0]+r,e[1]),e[1]],sX=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function JLe(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,v=r.yanchor,d=r.xpad,p=r.ypad,m=r.x,y=a?r.y:1-r.y,b=r.yref==="paper",T=r.xref==="paper",w=t._fullLayout,x=w._size,_=r._fillcolor,k=r._line,M=r.title,q=M.side,C=r._zrange||iu.extent((typeof _=="function"?_:k.color).domain()),E=typeof k.color=="function"?k.color:function(){return k.color},P=typeof _=="function"?_:function(){return _},R=r._levels,B=QLe(t,r,C),I=B.fill,N=B.line,H=Math.round(o*(l==="fraction"?a?x.w:x.h:1)),G=H/(a?x.w:x.h),Y=Math.round(n*(i==="fraction"?a?x.h:x.w:1)),j=Y/(a?x.h:x.w),W=T?x.w:t._fullLayout.width,V=b?x.h:t._fullLayout.height,J=Math.round(a?m*W+d:y*V+p),re={center:.5,right:1}[c]||0,le={top:1,middle:.5}[v]||0,ne=a?m-re*G:y-le*G,$=a?y-le*j:m-re*j,ce=Math.round(a?V*(1-$):W*$);r._lenFrac=j,r._thickFrac=G,r._uFrac=ne,r._vFrac=$;var te=r._axis=eCe(t,r,C);te.position=G+(a?m+d/x.w:y+p/x.h);var ge=["top","bottom"].indexOf(q)!==-1;if(a&&ge&&(te.title.side=q,te.titlex=m+d/x.w,te.titley=$+(M.side==="top"?j-p/x.h:p/x.h)),!a&&!ge&&(te.title.side=q,te.titley=y+p/x.h,te.titlex=$+d/x.w),k.color&&r.tickmode==="auto"){te.tickmode="linear",te.tick0=R.start;var se=R.size,oe=uo.constrain(Y/50,4,15)+1,Ae=(C[1]-C[0])/((r.nticks||oe)*se);if(Ae>1){var Pe=Math.pow(10,Math.floor(Math.log(Ae)/Math.LN10));se*=Pe*uo.roundUp(Ae/Pe,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(te.tick0=0)}te.dtick=se}var me=a?p/x.h:d/x.w;te.domain=sX(c9([$,$+j],me),me),te.setScale(),e.attr("transform",$o(Math.round(x.l),Math.round(x.t)));var Ce=e.select("."+ea.cbtitleunshift).attr("transform",$o(-Math.round(x.l),-Math.round(x.t))),Me=te.ticklabelposition,Le=te.title.font.size,Se=e.select("."+ea.cbaxis),Ee,qe=0,Ue=0;function Je(ae,be){var Ge={propContainer:te,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+ea.cbtitle)},sr=ae.charAt(0)==="h"?ae.slice(1):"h"+ae;e.selectAll("."+sr+",."+sr+"-math-group").remove(),GLe.draw(t,ae,uX(Ge,be||{}))}function Ke(){if(a&&ge||!a&&!ge){var ae,be;q==="top"&&(ae=d+x.l+W*m,be=p+x.t+V*(1-$-j)+3+Le*.75),q==="bottom"&&(ae=d+x.l+W*m,be=p+x.t+V*(1-$)-3-Le*.25),q==="right"&&(be=p+x.t+V*y+3+Le*.75,ae=d+x.l+W*$),Je(te._id+"title",{attributes:{x:ae,y:be,"text-anchor":a?"start":"middle"}})}}function De(){if(a&&!ge||!a&&ge){var ae=te.position||0,be=te._offset+te._length/2,Ge,sr;if(q==="right")sr=be,Ge=x.l+W*ae+10+Le*(te.showticklabels?1:.5);else if(Ge=be,q==="bottom"&&(sr=x.t+V*ae+10+(Me.indexOf("inside")===-1?te.tickfont.size:0)+(te.ticks!=="inside"&&r.ticklen||0)),q==="top"){var vr=M.text.split("<br>").length;sr=x.t+V*ae+10-H-iX*Le*vr}Je((a?"h":"v")+te._id+"title",{avoid:{selection:iu.select(t).selectAll("g."+te._id+"tick"),side:q,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:Ge,y:sr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Be(){if(!a&&!ge||a&&ge){var ae=e.select("."+ea.cbtitle),be=ae.select("text"),Ge=[-s/2,s/2],sr=ae.select(".h"+te._id+"title-math-group").node(),vr=15.6;be.node()&&(vr=parseInt(be.node().style.fontSize,10)*iX);var ue;if(sr?(ue=Zo.bBox(sr),Ue=ue.width,qe=ue.height,qe>vr&&(Ge[1]-=(qe-vr)/2)):be.node()&&!be.classed(ea.jsPlaceholder)&&(ue=Zo.bBox(be.node()),Ue=ue.width,qe=ue.height),a){if(qe){if(qe+=5,q==="top")te.domain=sX(te.domain,qe/x.h),Ge[1]*=-1;else{te.domain=c9(te.domain,qe/x.h);var xe=YLe.lineCount(be);Ge[1]+=(1-xe)*vr}ae.attr("transform",$o(Ge[0],Ge[1])),te.setScale()}}else Ue&&(q==="right"&&(te.domain=c9(te.domain,(Ue+Le/2)/x.w)),ae.attr("transform",$o(Ge[0],Ge[1])),te.setScale())}e.selectAll("."+ea.cbfills+",."+ea.cblines).attr("transform",a?$o(0,Math.round(x.h*(1-te.domain[1]))):$o(Math.round(x.w*te.domain[0]),0)),Se.attr("transform",a?$o(0,Math.round(-x.t)):$o(Math.round(-x.l),0));var Ie=e.select("."+ea.cbfills).selectAll("rect."+ea.cbfill).attr("style","").data(I);Ie.enter().append("rect").classed(ea.cbfill,!0).attr("style",""),Ie.exit().remove();var We=C.map(te.c2p).map(Math.round).sort(function(gr,Re){return gr-Re});Ie.each(function(gr,Re){var Ze=[Re===0?C[0]:(I[Re]+I[Re-1])/2,Re===I.length-1?C[1]:(I[Re]+I[Re+1])/2].map(te.c2p).map(Math.round);a&&(Ze[1]=uo.constrain(Ze[1]+(Ze[1]>Ze[0])?1:-1,We[0],We[1]));var ze=iu.select(this).attr(a?"x":"y",J).attr(a?"y":"x",iu.min(Ze)).attr(a?"width":"height",Math.max(H,2)).attr(a?"height":"width",Math.max(iu.max(Ze)-iu.min(Ze),2));if(r._fillgradient)Zo.gradient(ze,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var rr=P(gr).replace("e-","");ze.attr("fill",U0.hexString(rr))}});var Oe=e.select("."+ea.cblines).selectAll("path."+ea.cbline).data(k.color&&k.width?N:[]);Oe.enter().append("path").classed(ea.cbline,!0),Oe.exit().remove(),Oe.each(function(gr){var Re=J,Ze=Math.round(te.c2p(gr))+k.width/2%1;iu.select(this).attr("d","M"+(a?Re+","+Ze:Ze+","+Re)+(a?"h":"v")+H).call(Zo.lineGroupStyle,k.width,E(gr),k.dash)}),Se.selectAll("g."+te._id+"tick,path").remove();var Xe=J+H+(s||0)/2-(r.ticks==="outside"?1:0),Qe=os.calcTicks(te),_r=os.getTickSigns(te)[2];return os.drawTicks(t,te,{vals:te.ticks==="inside"?os.clipEnds(te,Qe):Qe,layer:Se,path:os.makeTickPath(te,Xe,_r),transFn:os.makeTransTickFn(te)}),os.drawLabels(t,te,{vals:Qe,layer:Se,transFn:os.makeTransTickLabelFn(te),labelFns:os.makeLabelFns(te,Xe)})}function er(){var ae,be=H+s/2;Me.indexOf("inside")===-1&&(ae=Zo.bBox(Se.node()),be+=a?ae.width:ae.height),Ee=Ce.select("text");var Ge=0,sr=a&&q==="top",vr=!a&&q==="right",ue=0;if(Ee.node()&&!Ee.classed(ea.jsPlaceholder)){var xe,Ie=Ce.select(".h"+te._id+"title-math-group").node();Ie&&(a&&ge||!a&&!ge)?(ae=Zo.bBox(Ie),Ge=ae.width,xe=ae.height):(ae=Zo.bBox(Ce.node()),Ge=ae.right-x.l-(a?J:ce),xe=ae.bottom-x.t-(a?ce:J),!a&&q==="top"&&(be+=ae.height,ue=ae.height)),vr&&(Ee.attr("transform",$o(Ge/2+Le/2,0)),Ge*=2),be=Math.max(be,a?Ge:xe)}var We=(a?d:p)*2+be+u+s/2,Oe=0;!a&&M.text&&v==="bottom"&&y<=0&&(Oe=We/2,We+=Oe,ue+=Oe),w._hColorbarMoveTitle=Oe,w._hColorbarMoveCBTitle=ue;var Xe=u+s,Qe=(a?J:ce)-Xe/2-(a?d:0),_r=(a?ce:J)-(a?Y:p+ue-Oe);e.select("."+ea.cbbg).attr("x",Qe).attr("y",_r).attr(a?"width":"height",Math.max(We-Oe,2)).attr(a?"height":"width",Math.max(Y+Xe,2)).call(U0.fill,f).call(U0.stroke,r.bordercolor).style("stroke-width",u);var gr=vr?Math.max(Ge-10,0):0;e.selectAll("."+ea.cboutline).attr("x",(a?J:ce+d)+gr).attr("y",(a?ce+p-Y:J)+(sr?qe:0)).attr(a?"width":"height",Math.max(H,2)).attr(a?"height":"width",Math.max(Y-(a?2*p+qe:2*d+gr),2)).call(U0.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Re=a?re*We:0,Ze=a?0:(1-le)*We-ue;if(Re=T?x.l-Re:-Re,Ze=b?x.t-Ze:-Ze,e.attr("transform",$o(Re,Ze)),!a&&(u||U0.opacity(f)&&!U0.equals(w.paper_bgcolor,f))){var ze=Se.selectAll("text"),rr=ze[0].length,cr=e.select("."+ea.cbbg).node(),pr=Zo.bBox(cr),mr=Zo.getTranslate(e),ie=2;ze.each(function(Fa,kt){var Zt=0,$t=rr-1;if(kt===Zt||kt===$t){var Lt=Zo.bBox(this),ra=Zo.getTranslate(this),sa;if(kt===$t){var Ot=Lt.right+ra.x,tr=pr.right+mr.x+ce-u-ie+m;sa=tr-Ot,sa>0&&(sa=0)}else if(kt===Zt){var tt=Lt.left+ra.x,Yr=pr.left+mr.x+ce+u+ie;sa=Yr-tt,sa<0&&(sa=0)}sa&&(rr<3?this.setAttribute("transform","translate("+sa+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ye={},Fe=oX[c],He=lX[c],Gr=oX[v],rt=lX[v],qt=We-H;a?(i==="pixels"?(ye.y=y,ye.t=Y*Gr,ye.b=Y*rt):(ye.t=ye.b=0,ye.yt=y+n*Gr,ye.yb=y-n*rt),l==="pixels"?(ye.x=m,ye.l=We*Fe,ye.r=We*He):(ye.l=qt*Fe,ye.r=qt*He,ye.xl=m-o*Fe,ye.xr=m+o*He)):(i==="pixels"?(ye.x=m,ye.l=Y*Fe,ye.r=Y*He):(ye.l=ye.r=0,ye.xl=m+n*Fe,ye.xr=m-n*He),l==="pixels"?(ye.y=1-y,ye.t=We*Gr,ye.b=We*rt):(ye.t=qt*Gr,ye.b=qt*rt,ye.yt=y-o*Gr,ye.yb=y+o*rt));var gt=r.y<.5?"b":"t",Ut=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Bt={r:w.width-Qe-Re,l:Qe+ye.r,b:w.height-_r-Ze,t:_r+ye.b};T&&b?r3.autoMargin(t,r._id,ye):T?t._fullLayout._reservedMargin[r._id][gt]=Bt[gt]:b||a?t._fullLayout._reservedMargin[r._id][Ut]=Bt[Ut]:t._fullLayout._reservedMargin[r._id][gt]=Bt[gt]}return uo.syncOrAsync([r3.previousPromises,Ke,Be,De,r3.previousPromises,er],t)}function KLe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;e3.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),f9(e)},moveFn:function(u,f){e.attr("transform",o+$o(u,f)),l=e3.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=e3.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=e3.getCursor(l,s,r.xanchor,r.yanchor);f9(e,c)},doneFn:function(){if(f9(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?nX.call("_guiRestyle",t,u,r._traceIndex):nX.call("_guiRelayout",t,u)}}})}function QLe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o<c&&n.push(o);if(r._fillgradient)i=[0];else if(typeof r._fillcolor=="function"){var v=r._filllevels;if(v)for(s=v.end+v.size/100,u=v.size,l=0;l<1e5&&(o=v.start+l*u,!(u>0?o>=s:o<=s));l++)o>t[0]&&o<t[1]&&i.push(o);else i=n.map(function(d){return d-a.size/2}),i.push(i[i.length-1]+a.size)}else r._fillcolor&&typeof r._fillcolor=="string"&&(i=[0]);return a.size<0&&(n.reverse(),i.reverse()),{line:n,fill:i}}function eCe(e,r,t){var a=e._fullLayout,n=r.orientation==="v",i={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:n?"right":"bottom",position:1},o=n?"y":"x",l={type:"linear",_id:o+r._id},s={letter:o,font:a.font,noAutotickangles:o==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:a.calendar};function u(f,c){return uo.coerce(i,l,XLe,f,c)}return jLe(i,l,u,s,a),WLe(i,l,u,s),l}fX.exports={draw:ZLe}});var hX=z((UKe,vX)=>{"use strict";vX.exports={moduleType:"component",name:"colorbar",attributes:am(),supplyDefaults:l6(),draw:cX().draw,hasColorbar:e6()}});var pX=z((GKe,dX)=>{"use strict";dX.exports={moduleType:"component",name:"legend",layoutAttributes:t7(),supplyLayoutDefaults:n7(),draw:g7(),style:d7()}});var yX=z((YKe,mX)=>{"use strict";mX.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 bX=z((VKe,gX)=>{"use strict";gX.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var d9=z((jKe,TX)=>{"use strict";var rCe=Ar(),wX=ke(),h9=wX.extendFlat,xX=wX.extendDeep;function _X(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 tCe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}TX.exports=function(r,t){var a,n=r.data,i=r.layout,o=xX([],n),l=xX({},i,_X(t.tileClass)),s=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 u=Object.keys(l);for(a=0;a<u.length;a++)tCe(u[a])&&(l[u[a]].title={text:""});for(a=0;a<o.length;a++){var f=o[a];f.showscale=!1,f.marker&&(f.marker.showscale=!1),rCe.traceIs(f,"pie-like")&&(f.textposition="none")}}if(Array.isArray(t.annotations))for(a=0;a<t.annotations.length;a++)l.annotations.push(t.annotations[a]);var c=Object.keys(l).filter(function(y){return y.match(/^scene\d*$/)});if(c.length){var v={};for(t.tileClass==="thumbnail"&&(v={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),a=0;a<c.length;a++){var d=l[c[a]];d.xaxis||(d.xaxis={}),d.yaxis||(d.yaxis={}),d.zaxis||(d.zaxis={}),h9(d.xaxis,v),h9(d.yaxis,v),h9(d.zaxis,v),d._scene=null}}var p=document.createElement("div");t.tileClass&&(p.className=t.tileClass);var m={gd:p,td:p,layout:l,data:o,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"&&(m.config.setBackground=t.setBackground||"opaque"),m.gd.defaultLayout=_X(t.tileClass),m}});var kX=z((WKe,MX)=>{"use strict";var aCe=Ju().EventEmitter,nCe=Ar(),iCe=ke(),AX=ts(),oCe=d9(),lCe=ag(),sCe=ng();function uCe(e,r){var t=new aCe,a=oCe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=AX.getDelay(n._fullLayout);setTimeout(function(){var s=lCe(n),u=document.createElement("canvas");u.id=iCe.randstr(),t=sCe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=AX.getRedrawFunc(n);return nCe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}MX.exports=uCe});var LX=z((XKe,qX)=>{"use strict";var SX=ts(),fCe={getDelay:SX.getDelay,getRedrawFunc:SX.getRedrawFunc,clone:d9(),toSVG:ag(),svgToImg:ng(),toImage:kX(),downloadImage:Iw()};qX.exports=fCe});var DX=z(ls=>{"use strict";ls.version=Jv().version;ZS();RP();var cCe=Ar(),t2=ls.register=cCe.register,m9=XU(),CX=Object.keys(m9);for(t3=0;t3<CX.length;t3++)G0=CX[t3],G0.charAt(0)!=="_"&&(ls[G0]=m9[G0]),t2({moduleType:"apiMethod",name:G0,fn:m9[G0]});var G0,t3;t2(WY());t2([gV(),EV(),Al(),JV(),fj(),Dj(),$j(),dW(),DW(),NW(),rX(),vl(),hX(),pX(),Yn(),V7()]);t2([yX(),bX()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(t2(window.PlotlyLocales),delete window.PlotlyLocales);ls.Icons=ny();var a3=Yn(),p9=_a();ls.Plots={resize:p9.resize,graphJson:p9.graphJson,sendDataToCloud:p9.sendDataToCloud};ls.Fx={hover:a3.hover,unhover:a3.unhover,loneHover:a3.loneHover,loneUnhover:a3.loneUnhover};ls.Snapshot=LX();ls.PlotSchema=$c()});var PX=z(($Ke,EX)=>{"use strict";EX.exports=DX()});var zf=z((JKe,IX)=>{"use strict";var va=Qi(),RX=Fo().axisHoverFormat,{hovertemplateAttrs:vCe,texttemplateAttrs:hCe,templatefallbackAttrs:FX}=gi(),NX=cl(),dCe=Ia(),zX=(Id(),Ne(Nd)),pCe=Ui().pattern,Ff=St().extendFlat,y9=dCe({editType:"calc",arrayOk:!0,colorEditType:"style"}),mCe=va.marker,yCe=mCe.line,gCe=Ff({},yCe.width,{dflt:0}),bCe=Ff({width:gCe,editType:"calc"},NX("marker.line")),xCe=Ff({line:bCe,editType:"calc"},NX("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:pCe,cornerradius:{valType:"any",editType:"calc"}});IX.exports={x:va.x,x0:va.x0,dx:va.dx,y:va.y,y0:va.y0,dy:va.dy,xperiod:va.xperiod,yperiod:va.yperiod,xperiod0:va.xperiod0,yperiod0:va.yperiod0,xperiodalignment:va.xperiodalignment,yperiodalignment:va.yperiodalignment,xhoverformat:RX("x"),yhoverformat:RX("y"),text:va.text,texttemplate:hCe({editType:"plot"},{keys:zX.eventDataKeys}),texttemplatefallback:FX({editType:"plot"}),hovertext:va.hovertext,hovertemplate:vCe({},{keys:zX.eventDataKeys}),hovertemplatefallback:FX(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Ff({},y9,{}),insidetextfont:Ff({},y9,{}),outsidetextfont:Ff({},y9,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Ff({},va.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:xCe,offsetgroup:va.offsetgroup,alignmentgroup:va.alignmentgroup,selected:{marker:{opacity:va.selected.marker.opacity,color:va.selected.marker.color,editType:"style"},textfont:va.selected.textfont,editType:"style"},unselected:{marker:{opacity:va.unselected.marker.opacity,color:va.unselected.marker.color,editType:"style"},textfont:va.unselected.textfont,editType:"style"},zorder:va.zorder}});var n3=z((KKe,BX)=>{"use strict";BX.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var g9=z((QKe,UX)=>{"use strict";var _Ce=qr(),OX=xi().hasColorscale,HX=Xl(),wCe=ke().coercePattern;UX.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=OX(r,"marker");l&&HX(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",_Ce.defaultLine),OX(r,"marker.line")&&HX(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),wCe(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var Nf=z((eQe,XX)=>{"use strict";var GX=Br(),Y0=ke(),YX=qr(),TCe=Ar(),ACe=Hw(),MCe=A0(),kCe=g9(),SCe=Fd(),VX=zf(),i3=Y0.coerceFont;function qCe(e,r,t,a){function n(u,f){return Y0.coerce(e,r,VX,u,f)}var i=ACe(e,r,a,n);if(!i){r.visible=!1;return}MCe(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");WX(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),kCe(e,r,n,t,a);var l=(r.marker.line||{}).color,s=TCe.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||YX.defaultLine,{axis:"y"}),s(e,r,l||YX.defaultLine,{axis:"x",inherit:"y"}),Y0.coerceSelectionMarkerOpacity(r,n)}function LCe(e,r){var t,a;function n(l,s){return Y0.coerce(a._input,a,VX,l,s)}for(var i=0;i<e.length;i++)if(a=e[i],a.type==="bar"){t=a._input;var o=n("marker.cornerradius",r.barcornerradius);a.marker&&(a.marker.cornerradius=jX(o)),SCe(t,a,r,n,r.barmode)}}function jX(e){if(GX(e)){if(e=+e,e>=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&GX(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function WX(e,r,t,a,n,i){i=i||{};var o=i.moduleHasSelected!==!1,l=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",m=d||n==="outside";if(p||m){var y=i3(a,"textfont",t.font),b=Y0.extendFlat({},y),T=e.textfont&&e.textfont.color,w=!T;if(w&&delete b.color,i3(a,"insidetextfont",b),v){var x=Y0.extendFlat({},y);w&&delete x.color,i3(a,"pathbar.textfont",x)}m&&i3(a,"outsidetextfont",y),o&&a("selected.textfont.color"),l&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}XX.exports={supplyDefaults:qCe,crossTraceDefaults:LCe,handleText:WX,validateCornerradius:jX}});var b9=z((rQe,ZX)=>{"use strict";var CCe=Ar(),DCe=jr(),ECe=ke(),PCe=n3(),RCe=Nf().validateCornerradius;ZX.exports=function(e,r,t){function a(m,y){return ECe.coerce(e,r,PCe,m,y)}for(var n=!1,i=!1,o=!1,l={},s=a("barmode"),u=s==="group",f=0;f<t.length;f++){var c=t[f];if(CCe.traceIs(c,"bar")&&c.visible)n=!0;else continue;var v=c.xaxis+c.yaxis;if(u?(l[v]&&(o=!0),l[v]=!0):(v+=c._input.offsetgroup,l.length>0&&!l[v]&&(o=!0),l[v]=!0),c.visible&&c.type==="histogram"){var d=DCe.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!o?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=RCe(p)}});var o3=z((tQe,$X)=>{"use strict";var V0=ke();$X.exports=function(r,t){for(var a=0;a<r.length;a++)r[a].i=a;V0.mergeArray(t.text,r,"tx"),V0.mergeArray(t.hovertext,r,"htx");var n=t.marker;if(n){V0.mergeArray(n.opacity,r,"mo",!0),V0.mergeArray(n.color,r,"mc");var i=n.line;i&&(V0.mergeArray(i.color,r,"mlc"),V0.mergeArrayCastPositive(i.width,r,"mlw"))}}});var tZ=z((aQe,rZ)=>{"use strict";var JX=jr(),KX=k0(),QX=xi().hasColorscale,eZ=e0(),FCe=o3(),zCe=hg();rZ.exports=function(r,t){var a=JX.getFromId(r,t.xaxis||"x"),n=JX.getFromId(r,t.yaxis||"y"),i,o,l,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),l=n.makeCalcdata(t,"y"),s=KX(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=KX(t,a,"x",l),u=!!t.xperiodalignment,f="x"),o=s.vals;for(var v=Math.min(o.length,i.length),d=new Array(v),p=0;p<v;p++)d[p]={p:o[p],s:i[p]},u&&(d[p].orig_p=l[p],d[p][f+"End"]=s.ends[p],d[p][f+"Start"]=s.starts[p]),t.ids&&(d[p].id=String(t.ids[p]));return QX(t,"marker")&&eZ(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),QX(t,"marker.line")&&eZ(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),FCe(d,t),zCe(d,t),d}});var a2=z((nQe,nZ)=>{"use strict";var NCe=Pr(),ICe=ke();function BCe(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",o;switch(t){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}r.selectAll(o).each(function(l){var s=l.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=NCe.select(this).select("text");ICe.setTransormAndDisplay(u,s)}})}}function OCe(e,r,t){if(t.uniformtext.mode){var a=aZ(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i<n,t[a]=t[a]||1/0,r.hide||(t[a]=Math.min(t[a],Math.max(i,n)))}}function HCe(e,r){var t=aZ(e);r[t]=void 0}function aZ(e){return"_"+e+"Text_minsize"}nZ.exports={recordMinTextSize:OCe,clearMinTextSize:HCe,resizeText:BCe}});var l3=z(If=>{"use strict";var UCe=qr(),GCe=Br(),iZ=ke().isArrayOrTypedArray;If.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};If.coerceNumber=function(e,r,t){if(GCe(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&r<a||n!==void 0&&r>n;if(!i)return r}return t!==void 0?t:e.dflt};If.coerceColor=function(e,r,t){return UCe.isValid(r)?r:t!==void 0?t:e.dflt};If.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};If.getValue=function(e,r){var t;return iZ(e)?r<e.length&&(t=e[r]):t=e,t};If.getLineWidth=function(e,r){var t=0<r.mlw?r.mlw:iZ(e.marker.line.width)?0:e.marker.line.width;return t}});var j0=z((oQe,mZ)=>{"use strict";var n2=Pr(),YCe=qr(),i2=et(),oZ=ke(),lZ=Ar(),sZ=a2().resizeText,x9=zf(),VCe=x9.textfont,jCe=x9.insidetextfont,WCe=x9.outsidetextfont,vn=l3();function XCe(e){var r=n2.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");sZ(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&n2.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=n2.select(this),o=n[0].trace;uZ(i,o,e)}),lZ.getComponentMethod("errorbars","style")(r)}function uZ(e,r,t){i2.pointStyle(e.selectAll("path"),r,t),fZ(e,r,t)}function fZ(e,r,t){e.selectAll("text").each(function(a){var n=n2.select(this),i=oZ.ensureUniformFontSize(t,cZ(n,a,r,t));i2.font(n,i)})}function ZCe(e,r,t){var a=r[0].trace;a.selectedpoints?$Ce(t,a,e):(uZ(t,a,e),lZ.getComponentMethod("errorbars","style")(t))}function $Ce(e,r,t){i2.selectedPointStyle(e.selectAll("path"),r),JCe(e.selectAll("text"),r,t)}function JCe(e,r,t){e.each(function(a){var n=n2.select(this),i;if(a.selected){i=oZ.ensureUniformFontSize(t,cZ(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),i2.font(n,i)}else i2.selectedTextStyle(n,r)})}function cZ(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=pZ(r,t);i=hZ(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=dZ(t,r.i,n));return i}function vZ(e,r,t){return _9(VCe,e.textfont,r,t)}function hZ(e,r,t,a){var n=vZ(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:YCe.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),_9(jCe,e.insidetextfont,r,n)}function dZ(e,r,t){var a=vZ(e,r,t);return _9(WCe,e.outsidetextfont,r,a)}function _9(e,r,t,a){r=r||{};var n=vn.getValue(r.family,t),i=vn.getValue(r.size,t),o=vn.getValue(r.color,t),l=vn.getValue(r.weight,t),s=vn.getValue(r.style,t),u=vn.getValue(r.variant,t),f=vn.getValue(r.textcase,t),c=vn.getValue(r.lineposition,t),v=vn.getValue(r.shadow,t);return{family:vn.coerceString(e.family,n,a.family),size:vn.coerceNumber(e.size,i,a.size),color:vn.coerceColor(e.color,o,a.color),weight:vn.coerceString(e.weight,l,a.weight),style:vn.coerceString(e.style,s,a.style),variant:vn.coerceString(e.variant,u,a.variant),textcase:vn.coerceString(e.variant,f,a.textcase),lineposition:vn.coerceString(e.variant,c,a.lineposition),shadow:vn.coerceString(e.variant,v,a.shadow)}}function pZ(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}mZ.exports={style:XCe,styleTextPoints:fZ,styleOnSelect:ZCe,getInsideTextFont:hZ,getOutsideTextFont:dZ,getBarColor:pZ,resizeText:sZ}});var A9=z((lQe,AZ)=>{"use strict";var s3=Pr(),u3=Br(),Qa=ke(),KCe=Da(),QCe=qr(),ou=et(),eDe=Ar(),f3=jr().tickText,yZ=a2(),rDe=yZ.recordMinTextSize,tDe=yZ.clearMinTextSize,w9=j0(),W0=l3(),aDe=(Id(),Ne(Nd)),gZ=zf(),nDe=gZ.text,iDe=gZ.textposition,oDe=No().appendArrayPointValue,Nn=aDe.TEXTPAD;function lDe(e){return e.id}function sDe(e){if(e.ids)return lDe}function T9(e){return(e>0)-(e<0)}function Jo(e,r){return e<r?1:-1}function uDe(e,r,t,a){var n=[],i=[],o=a?r:t,l=a?t:r;return n[0]=o.c2p(e.s0,!0),i[0]=l.c2p(e.p0,!0),n[1]=o.c2p(e.s1,!0),i[1]=l.c2p(e.p1,!0),a?[n,i]:[i,n]}function bZ(e,r,t,a){if(!r.uniformtext.mode&&xZ(t)){var n;return a&&(n=a()),e.transition().duration(t.duration).ease(t.easing).each("end",function(){n&&n()}).each("interrupt",function(){n&&n()})}else return e}function xZ(e){return e&&e.duration>0}function fDe(e,r,t,a,n,i){var o=r.xaxis,l=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},tDe("bar",s));var f=Qa.makeTraceGroups(a,t,"trace bars").each(function(c){var v=s3.select(this),d=c[0].trace,p=c[0].t,m=d.type==="waterfall",y=d.type==="funnel",b=d.type==="histogram",T=d.type==="bar",w=T||y,x=0;m&&d.connector.visible&&d.connector.mode==="between"&&(x=d.connector.line.width/2);var _=d.orientation==="h",k=xZ(n),M=Qa.ensureSingle(v,"g","points"),q=sDe(d),C=M.selectAll("g.point").data(Qa.identity,q);C.enter().append("g").classed("point",!0),C.exit().remove(),C.each(function(P,R){var B=s3.select(this),I=uDe(P,o,l,_),N=I[0][0],H=I[0][1],G=I[1][0],Y=I[1][1],j=(_?H-N:Y-G)===0;j&&w&&W0.getLineWidth(d,P)&&(j=!1),j||(j=!u3(N)||!u3(H)||!u3(G)||!u3(Y)),P.isBlank=j,j&&(_?H=N:Y=G),x&&!j&&(_?(N-=Jo(N,H)*x,H+=Jo(N,H)*x):(G-=Jo(G,Y)*x,Y+=Jo(G,Y)*x));var W,V;if(d.type==="waterfall"){if(!j){var J=d[P.dir].marker;W=J.line.width,V=J.color}}else W=W0.getLineWidth(d,P),V=P.mc||d.marker.color;function re(ae){var be=s3.round(W/2%1,2);return n.gap===0&&n.groupgap===0?s3.round(Math.round(ae)-be,2):ae}function le(ae,be,Ge){return Ge&&ae===be?ae:Math.abs(ae-be)>=2?re(ae):ae>be?Math.ceil(ae):Math.floor(ae)}var ne=QCe.opacity(V),$=ne<1||W>.01?re:le;e._context.staticPlot||(N=$(N,H,_),H=$(H,N,_),G=$(G,Y,!_),Y=$(Y,G,!_));var ce=_?o.c2p:l.c2p,te;P.s0>0?te=P._sMax:P.s0<0?te=P._sMin:te=P.s1>0?P._sMax:P._sMin;function ge(ae,be){if(!ae)return 0;var Ge=Math.abs(_?Y-G:H-N),sr=Math.abs(_?H-N:Y-G),vr=$(Math.abs(ce(te,!0)-ce(0,!0))),ue=P.hasB?Math.min(Ge/2,sr/2):Math.min(Ge/2,vr),xe;if(be==="%"){var Ie=Math.min(50,ae);xe=Ge*(Ie/100)}else xe=ae;return $(Math.max(Math.min(xe,ue),0))}var se=T||b?ge(p.cornerradiusvalue,p.cornerradiusform):0,oe,Ae,Pe="M"+N+","+G+"V"+Y+"H"+H+"V"+G+"Z",me=0;if(se&&P.s){var Ce=T9(P.s0)===0||T9(P.s)===T9(P.s0)?P.s1:P.s0;if(me=$(P.hasB?0:Math.abs(ce(te,!0)-ce(Ce,!0))),me<se){var Me=Jo(N,H),Le=Jo(G,Y),Se=Me===-Le?1:0;if(_)if(P.hasB)oe="M"+(N+se*Me)+","+G+"A "+se+","+se+" 0 0 "+Se+" "+N+","+(G+se*Le)+"V"+(Y-se*Le)+"A "+se+","+se+" 0 0 "+Se+" "+(N+se*Me)+","+Y+"H"+(H-se*Me)+"A "+se+","+se+" 0 0 "+Se+" "+H+","+(Y-se*Le)+"V"+(G+se*Le)+"A "+se+","+se+" 0 0 "+Se+" "+(H-se*Me)+","+G+"Z";else{Ae=Math.abs(H-N)+me;var Ee=Ae<se?se-Math.sqrt(Ae*(2*se-Ae)):0,qe=me>0?Math.sqrt(me*(2*se-me)):0,Ue=Me>0?Math.max:Math.min;oe="M"+N+","+G+"V"+(Y-Ee*Le)+"H"+Ue(H-(se-me)*Me,N)+"A "+se+","+se+" 0 0 "+Se+" "+H+","+(Y-se*Le-qe)+"V"+(G+se*Le+qe)+"A "+se+","+se+" 0 0 "+Se+" "+Ue(H-(se-me)*Me,N)+","+(G+Ee*Le)+"Z"}else if(P.hasB)oe="M"+(N+se*Me)+","+G+"A "+se+","+se+" 0 0 "+Se+" "+N+","+(G+se*Le)+"V"+(Y-se*Le)+"A "+se+","+se+" 0 0 "+Se+" "+(N+se*Me)+","+Y+"H"+(H-se*Me)+"A "+se+","+se+" 0 0 "+Se+" "+H+","+(Y-se*Le)+"V"+(G+se*Le)+"A "+se+","+se+" 0 0 "+Se+" "+(H-se*Me)+","+G+"Z";else{Ae=Math.abs(Y-G)+me;var Je=Ae<se?se-Math.sqrt(Ae*(2*se-Ae)):0,Ke=me>0?Math.sqrt(me*(2*se-me)):0,De=Le>0?Math.max:Math.min;oe="M"+(N+Je*Me)+","+G+"V"+De(Y-(se-me)*Le,G)+"A "+se+","+se+" 0 0 "+Se+" "+(N+se*Me-Ke)+","+Y+"H"+(H-se*Me+Ke)+"A "+se+","+se+" 0 0 "+Se+" "+(H-Je*Me)+","+De(Y-(se-me)*Le,G)+"V"+G+"Z"}}else oe=Pe}else oe=Pe;var Be=bZ(Qa.ensureSingle(B,"path"),s,n,i);if(Be.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((H-N)*(Y-G))||j&&e._context.staticPlot?"M0,0Z":oe).call(ou.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var er=ou.makePointStyleFns(d);ou.singlePointStyle(P,Be,d,er,e)}cDe(e,r,B,c,R,N,H,G,Y,se,me,n,i),r.layerClipId&&ou.hideOutsideRangePoint(P,B.select("text"),o,l,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;ou.setClipUrl(v,E?null:r.layerClipId,e)});eDe.getComponentMethod("errorbars","plot")(e,f,r,n)}function cDe(e,r,t,a,n,i,o,l,s,u,f,c,v){var d=r.xaxis,p=r.yaxis,m=e._fullLayout,y;function b(Pe,me,Ce){var Me=Qa.ensureSingle(Pe,"text").text(me).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(ou.font,Ce).call(KCe.convertToTspans,e);return Me}var T=a[0].trace,w=T.orientation==="h",x=mDe(a,w,d,p),_=dDe(m,a,n,d,p);y=pDe(T,n);var k=c.mode==="stack"||c.mode==="relative",M=a[n],q=!k||M._outmost,C=M.hasB,E=u&&u-f>Nn;if(!_||y==="none"||(M.isBlank||i===o||l===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var P=m.font,R=w9.getBarColor(a[n],T),B=w9.getInsideTextFont(T,n,P,R),I=w9.getOutsideTextFont(T,n,P),N=T.insidetextanchor||"end",H=t.datum();w?d.type==="log"&&H.s0<=0&&(d.range[0]<d.range[1]?i=0:i=d._length):p.type==="log"&&H.s0<=0&&(p.range[0]<p.range[1]?l=p._length:l=0);var G=Math.abs(o-i),Y=Math.abs(s-l),j=G-2*Nn,W=Y-2*Nn,V,J,re,le,ne;if(y==="outside"&&!q&&!M.hasB&&(y="inside"),y==="auto")if(q){y="inside",ne=Qa.ensureUniformFontSize(e,B),V=b(t,_,ne),J=ou.bBox(V.node()),re=J.width,le=J.height;var $=re>0&&le>0,ce;E?C?ce=Bf(j-2*u,W,re,le,w)||Bf(j,W-2*u,re,le,w):w?ce=Bf(j-(u-f),W,re,le,w)||Bf(j,W-2*(u-f),re,le,w):ce=Bf(j,W-(u-f),re,le,w)||Bf(j-2*(u-f),W,re,le,w):ce=Bf(j,W,re,le,w),$&&ce?y="inside":(y="outside",V.remove(),V=null)}else y="inside";if(!V){ne=Qa.ensureUniformFontSize(e,y==="outside"?I:B),V=b(t,_,ne);var te=V.attr("transform");if(V.attr("transform",""),J=ou.bBox(V.node()),re=J.width,le=J.height,V.attr("transform",te),re<=0||le<=0){V.remove();return}}var ge=T.textangle,se,oe;y==="outside"?(oe=T.constraintext==="both"||T.constraintext==="outside",se=hDe(i,o,l,s,J,{isHorizontal:w,constrained:oe,angle:ge,zeroBarDir:x})):(oe=T.constraintext==="both"||T.constraintext==="inside",se=TZ(i,o,l,s,J,{isHorizontal:w,constrained:oe,angle:ge,anchor:N,hasB:C,r:u,overhead:f})),se.fontSize=ne.size,rDe(T.type==="histogram"?"bar":T.type,se,m),M.transform=se;var Ae=bZ(V,m,c,v);Qa.setTransormAndDisplay(Ae,se)}function Bf(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,o=t<=r&&a<=e,l=n?e>=t*(r/a):r>=a*(e/t);return i||o||l}function _Z(e){return e==="auto"?0:e}function wZ(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function TZ(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,d=(v+1)/2,p=1-d,m=i.hasB,y=i.r,b=i.overhead,T=n.width,w=n.height,x=Math.abs(r-e),_=Math.abs(a-t),k=x>2*Nn&&_>2*Nn?Nn:0;x-=2*k,_-=2*k;var M=_Z(s);s==="auto"&&!(T<=x&&w<=_)&&(T>x||w>_)&&(!(T>_||w>x)||T<w!=x<_)&&(M+=90);var q=wZ(n,M),C,E;if(y&&y-b>Nn){var P=vDe(e,r,t,a,q,y,b,o,m);C=P.scale,E=P.pad}else C=1,l&&(C=Math.min(1,x/q.x,_/q.y)),E=0;var R=n.left*p+n.right*d,B=(n.top+n.bottom)/2,I=(e+Nn)*p+(r-Nn)*d,N=(t+a)/2,H=0,G=0;if(c||f){var Y=(o?q.x:q.y)/2;y&&(f||m)&&(k+=E);var j=o?Jo(e,r):Jo(t,a);o?c?(I=e+j*k,H=-j*Y):(I=r-j*k,H=j*Y):c?(N=t+j*k,G=-j*Y):(N=a-j*k,G=j*Y)}return{textX:R,textY:B,targetX:I,targetY:N,anchorX:H,anchorY:G,scale:C,rotate:M}}function vDe(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*Nn),f=Math.max(0,Math.abs(a-t)-2*Nn),c=i-Nn,v=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=s?c*2:l?c-o:2*v,p=s?c*2:l?2*v:c-o,m,y,b,T,w;return n.y/n.x>=f/(u-d)?T=f/n.y:n.y/n.x<=(f-p)/u?T=u/n.x:!s&&l?(m=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),b=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,T=(-y+Math.sqrt(y*y-4*m*b))/(2*m)):s?(m=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),b=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,T=(-y+Math.sqrt(y*y-4*m*b))/(2*m)):(m=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),b=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,T=(-y+Math.sqrt(y*y-4*m*b))/(2*m)),T=Math.min(1,T),l?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*T)/2)*(c-(f-n.y*T)/2)))-o):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*T)/2)*(c-(u-n.x*T)/2)))-o),{scale:T,pad:w}}function hDe(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),d;o?d=v>2*Nn?Nn:0:d=c>2*Nn?Nn:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var m=_Z(s),y=wZ(n,m),b=(o?y.x:y.y)/2,T=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,_=(t+a)/2,k=0,M=0,q;return(o?e===r:t===a)&&i.zeroBarDir?q=i.zeroBarDir:q=o?Jo(r,e):Jo(t,a),o?(x=r-q*d,k=q*b):(_=a+q*d,M=-q*b),{textX:T,textY:w,targetX:x,targetY:_,anchorX:k,anchorY:M,scale:p,rotate:m}}function dDe(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=yDe(e,r,t,a,n):i.textinfo?l=gDe(r,t,a,n):l=W0.getValue(i.text,t),W0.coerceString(nDe,l)}function pDe(e,r){var t=W0.getValue(e.textposition,r);return W0.coerceEnumerated(iDe,t)}function mDe(e,r,t,a){for(var n=!1,i=!1,o=0;o<e.length;o++){var l=e[o].s;if(l>0?n=!0:l<0&&(i=!0),n&&i)return 0}var s=r?t:a,u=-Jo(s.range[0],s.range[1]);return i?n?0:-u:u}function yDe(e,r,t,a,n){var i=r[0].trace,o=Qa.castOption(i,t,"texttemplate");if(!o)return"";var l=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,d,p;f?(c="y",v=n,d="x",p=a):(c="x",v=a,d="y",p=n);function m(k){return f3(v,v.c2l(k),!0).text}function y(k){return f3(p,p.c2l(k),!0).text}var b=r[t],T={};T.label=b.p,T.labelLabel=T[c+"Label"]=m(b.p);var w=Qa.castOption(i,b.i,"text");(w===0||w)&&(T.text=w),T.value=b.s,T.valueLabel=T[d+"Label"]=y(b.s);var x={};oDe(x,i,b.i),(l||x.x===void 0)&&(x.x=f?T.value:T.label),(l||x.y===void 0)&&(x.y=f?T.label:T.value),(l||x.xLabel===void 0)&&(x.xLabel=f?T.valueLabel:T.labelLabel),(l||x.yLabel===void 0)&&(x.yLabel=f?T.labelLabel:T.valueLabel),s&&(T.delta=+b.rawS||b.s,T.deltaLabel=y(T.delta),T.final=b.v,T.finalLabel=y(T.final),T.initial=T.final-T.delta,T.initialLabel=y(T.initial)),u&&(T.value=b.s,T.valueLabel=y(T.value),T.percentInitial=b.begR,T.percentInitialLabel=Qa.formatPercent(b.begR),T.percentPrevious=b.difR,T.percentPreviousLabel=Qa.formatPercent(b.difR),T.percentTotal=b.sumR,T.percentTotalLabel=Qa.formatPercent(b.sumR));var _=Qa.castOption(i,b.i,"customdata");return _&&(T.customdata=_),Qa.texttemplateString({data:[x,T,i._meta],fallback:i.texttemplatefallback,labels:T,locale:e._d3locale,template:o})}function gDe(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",o=n.type==="waterfall",l=n.type==="funnel";function s(_){var k=i?a:t;return f3(k,_,!0).text}function u(_){var k=i?t:a;return f3(k,+_,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),d=[],p,m=function(_){return v.indexOf(_)!==-1};if(m("label")&&d.push(s(e[r].p)),m("text")&&(p=Qa.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var y=+c.rawS||c.s,b=c.v,T=b-y;m("initial")&&d.push(u(T)),m("delta")&&d.push(u(y)),m("final")&&d.push(u(b))}if(l){m("value")&&d.push(u(c.s));var w=0;m("percent initial")&&w++,m("percent previous")&&w++,m("percent total")&&w++;var x=w>1;m("percent initial")&&(p=Qa.formatPercent(c.begR),x&&(p+=" of initial"),d.push(p)),m("percent previous")&&(p=Qa.formatPercent(c.difR),x&&(p+=" of previous"),d.push(p)),m("percent total")&&(p=Qa.formatPercent(c.sumR),x&&(p+=" of total"),d.push(p))}return d.join("<br>")}AZ.exports={plot:fDe,toMoveInsideBar:TZ}});var k9=z((sQe,qZ)=>{"use strict";var o2=Yn(),bDe=Ar(),MZ=qr(),xDe=ke().fillText,_De=l3().getLineWidth,M9=jr().hoverLabelText,wDe=(Kt(),Ne(aa)).BADNUM;function TDe(e,r,t,a,n){var i=kZ(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=SZ(l,s),bDe.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function kZ(e,r,t,a,n){var i=e.cd,o=i[0].trace,l=i[0].t,s=a==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,d,p,m,y,b,T;o.orientation==="h"?(v=t,d=r,p="y",m="x",y=N,b=R):(v=r,d=t,p="x",m="y",b=N,y=R);var w=o[p+"period"],x=s||w;function _($){return M($,-1)}function k($){return M($,1)}function M($,ce){var te=$.w;return $[p]+ce*te/2}function q($){return $[p+"End"]-$[p+"Start"]}var C=s?_:w?function($){return $.p-q($)/2}:function($){return Math.min(_($),$.p-l.bardelta/2)},E=s?k:w?function($){return $.p+q($)/2}:function($){return Math.max(k($),$.p+l.bardelta/2)};function P($,ce,te){return n.finiteRange&&(te=0),o2.inbox($-v,ce-v,te+Math.min(1,Math.abs(ce-$)/T)-1)}function R($){return P(C($),E($),f)}function B($){return P(_($),k($),c)}function I($){var ce=$[m];if(u){var te=Math.abs($.rawS)||0;d>0?ce+=te:d<0&&(ce-=te)}return ce}function N($){var ce=d,te=$.b,ge=I($);return o2.inbox(te-ce,ge-ce,f+(ge-ce)/(ge-te)-1)}function H($){var ce=d,te=$.b,ge=I($);return o2.inbox(te-ce,ge-ce,c+(ge-ce)/(ge-te)-1)}var G=e[p+"a"],Y=e[m+"a"];T=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function j($){return(y($)+b($))/2}var W=o2.getDistanceFunction(a,y,b,j);if(o2.getClosest(i,W,e),e.index!==!1&&i[e.index].p!==wDe){x||(C=function($){return Math.min(_($),$.p-l.bargroupwidth/2)},E=function($){return Math.max(k($),$.p+l.bargroupwidth/2)});var V=e.index,J=i[V],re=o.base?J.b+J.s:J.s;e[m+"0"]=e[m+"1"]=Y.c2p(J[m],!0),e[m+"LabelVal"]=re;var le=l.extents[l.extents.round(J.p)];e[p+"0"]=G.c2p(s?C(J):le[0],!0),e[p+"1"]=G.c2p(s?E(J):le[1],!0);var ne=J.orig_p!==void 0;return e[p+"LabelVal"]=ne?J.orig_p:J.p,e.labelLabel=M9(G,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=M9(Y,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=M9(Y,J.b,o[m+"hoverformat"]),e.spikeDistance=(H(J)+B(J))/2,e[p+"Spike"]=G.c2p(J.p,!0),xDe(J,o,e),e.hovertemplate=o.hovertemplate,e}}function SZ(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=_De(e,r);if(MZ.opacity(t))return t;if(MZ.opacity(a)&&n)return a}qZ.exports={hoverPoints:TDe,hoverOnBars:kZ,getTraceColor:SZ}});var CZ=z((uQe,LZ)=>{"use strict";LZ.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var S9=z((fQe,DZ)=>{"use strict";DZ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=a[0].trace,l=o.type==="funnel",s=o.orientation==="h",u=[],f;if(t===!1)for(f=0;f<a.length;f++)a[f].selected=0;else for(f=0;f<a.length;f++){var c=a[f],v="ct"in c?c.ct:ADe(c,n,i,s,l);t.contains(v,!1,f,r)?(u.push({pointNumber:f,x:n.c2d(c.x),y:i.c2d(c.y)}),c.selected=1):c.selected=0}return u};function ADe(e,r,t,a,n){var i=r.c2p(a?e.s0:e.p0,!0),o=r.c2p(a?e.s1:e.p1,!0),l=t.c2p(a?e.p0:e.s0,!0),s=t.c2p(a?e.p1:e.s1,!0);return n?[(i+o)/2,(l+s)/2]:a?[o,(l+s)/2]:[(i+o)/2,s]}});var PZ=z((cQe,EZ)=>{"use strict";EZ.exports={attributes:zf(),layoutAttributes:n3(),supplyDefaults:Nf().supplyDefaults,crossTraceDefaults:Nf().crossTraceDefaults,supplyLayoutDefaults:b9(),calc:tZ(),crossTraceCalc:yg().crossTraceCalc,colorbar:Ud(),arraysToCalcdata:o3(),plot:A9().plot,style:j0().style,styleOnSelect:j0().styleOnSelect,hoverPoints:k9().hoverPoints,eventData:CZ(),selectPoints:S9(),moduleType:"trace",name:"bar",basePlotModule:lo(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var FZ=z((vQe,RZ)=>{"use strict";RZ.exports=PZ()});var c3=z((hQe,BZ)=>{"use strict";var MDe=zy(),fo=Qi(),zZ=zf(),kDe=Hi(),NZ=Fo().axisHoverFormat,{hovertemplateAttrs:SDe,templatefallbackAttrs:qDe}=gi(),ss=St().extendFlat,X0=fo.marker,IZ=X0.line;BZ.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:fo.xperiod,yperiod:fo.yperiod,xperiod0:fo.xperiod0,yperiod0:fo.yperiod0,xperiodalignment:fo.xperiodalignment,yperiodalignment:fo.yperiodalignment,xhoverformat:NZ("x"),yhoverformat:NZ("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:ss({},X0.symbol,{arrayOk:!1,editType:"plot"}),opacity:ss({},X0.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:ss({},X0.angle,{arrayOk:!1,editType:"calc"}),size:ss({},X0.size,{arrayOk:!1,editType:"calc"}),color:ss({},X0.color,{arrayOk:!1,editType:"style"}),line:{color:ss({},IZ.color,{arrayOk:!1,dflt:kDe.defaultLine,editType:"style"}),width:ss({},IZ.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:MDe(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:zZ.offsetgroup,alignmentgroup:zZ.alignmentgroup,selected:{marker:fo.selected.marker,editType:"style"},unselected:{marker:fo.unselected.marker,editType:"style"},text:ss({},fo.text,{}),hovertext:ss({},fo.hovertext,{}),hovertemplate:SDe({}),hovertemplatefallback:qDe(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:fo.zorder}});var v3=z((dQe,OZ)=>{"use strict";OZ.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var s2=z((pQe,YZ)=>{"use strict";var co=ke(),LDe=Ar(),CDe=qr(),DDe=A0(),EDe=Fd(),HZ=Am(),l2=c3();function PDe(e,r,t,a){function n(p,m){return co.coerce(e,r,l2,p,m)}if(UZ(e,r,n,a),r.visible!==!1){DDe(e,r,a,n),n("xhoverformat"),n("yhoverformat");var i=r._hasPreCompStats;i&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||t),n("line.width"),n("fillcolor",CDe.addOpacity(r.line.color,.5));var o=!1;if(i){var l=n("mean"),s=n("sd");l&&l.length&&(o=!0,s&&s.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),f;u==="quartiles"&&(f=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||f==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var c=!1;if(i){var v=n("notchspan");v&&v.length&&(c=!0)}else co.validate(e.notchwidth,l2.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),GZ(e,r,n,{prefix:"box"}),n("zorder")}}function UZ(e,r,t,a){function n(E){var P=0;return E&&E.length&&(P+=1,co.isArrayOrTypedArray(E[0])&&E[0].length&&(P+=1)),P}function i(E){return co.validate(e[E],l2[E])}var o=t("y"),l=t("x"),s;if(r.type==="box"){var u=t("q1"),f=t("median"),c=t("q3");r._hasPreCompStats=u&&u.length&&f&&f.length&&c&&c.length,s=Math.min(co.minRowLength(u),co.minRowLength(f),co.minRowLength(c))}else r._hasPreCompStats=!1;var v=n(o),d=n(l),p=v&&co.minRowLength(o),m=d&&co.minRowLength(l),y=a.calendar,b={autotypenumbers:a.autotypenumbers},T,w;if(r._hasPreCompStats)switch(String(d)+String(v)){case"00":var x=i("x0")||i("dx"),_=i("y0")||i("dy");_&&!x?T="h":T="v",w=s;break;case"10":T="v",w=Math.min(s,m);break;case"20":T="h",w=Math.min(s,l.length);break;case"01":T="h",w=Math.min(s,p);break;case"02":T="v",w=Math.min(s,o.length);break;case"12":T="v",w=Math.min(s,m,o.length);break;case"21":T="h",w=Math.min(s,l.length,p);break;case"11":w=0;break;case"22":var k=!1,M;for(M=0;M<l.length;M++)if(HZ(l[M],y,b)==="category"){k=!0;break}if(k)T="v",w=Math.min(s,m,o.length);else{for(M=0;M<o.length;M++)if(HZ(o[M],y,b)==="category"){k=!0;break}k?(T="h",w=Math.min(s,l.length,p)):(T="v",w=Math.min(s,m,o.length))}break}else v>0?(T="v",d>0?w=Math.min(m,p):w=Math.min(p)):d>0?(T="h",w=Math.min(m)):w=0;if(!w){r.visible=!1;return}r._length=w;var q=t("orientation",T);r._hasPreCompStats?q==="v"&&d===0?(t("x0",0),t("dx",1)):q==="h"&&v===0&&(t("y0",0),t("dy",1)):q==="v"&&d===0?t("x0"):q==="h"&&v===0&&t("y0");var C=LDe.getComponentMethod("calendars","handleTraceDefaults");C(e,r,["x","y"],a)}function GZ(e,r,t,a){var n=a.prefix,i=co.coerce2(e,r,l2,"marker.outliercolor"),o=t("marker.line.outliercolor"),l="outliers";r._hasPreCompStats?l="all":(i||o)&&(l="suspectedoutliers");var s=t(n+"points",l);s?(t("jitter",s==="all"?.3:0),t("pointpos",s==="all"?-1.5:0),t("marker.symbol"),t("marker.opacity"),t("marker.size"),t("marker.angle"),t("marker.color",r.line.color),t("marker.line.color"),t("marker.line.width"),s==="suspectedoutliers"&&(t("marker.line.outliercolor",r.marker.color),t("marker.line.outlierwidth")),t("selected.marker.color"),t("unselected.marker.color"),t("selected.marker.size"),t("unselected.marker.size"),t("text"),t("hovertext")):delete r.marker;var u=t("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(t("hovertemplate"),t("hovertemplatefallback")),co.coerceSelectionMarkerOpacity(r,t)}function RDe(e,r){var t,a;function n(s){return co.coerce(a._input,a,l2,s)}for(var i=0;i<e.length;i++){a=e[i];var o=a.type;if(o==="box"||o==="violin"){t=a._input;var l=r[o+"mode"];l==="group"&&EDe(t,a,r,n,l)}}}YZ.exports={supplyDefaults:PDe,crossTraceDefaults:RDe,handleSampleDefaults:UZ,handlePointsDefaults:GZ}});var q9=z((mQe,jZ)=>{"use strict";var FDe=Ar(),zDe=ke(),NDe=v3();function VZ(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l<t.length;l++){var s=t[l];if(FDe.traceIs(s,i)){o=!0;break}}o&&(a(n+"mode"),a(n+"gap"),a(n+"groupgap"))}function IDe(e,r,t){function a(n,i){return zDe.coerce(e,r,NDe,n,i)}VZ(e,r,t,a,"box")}jZ.exports={supplyLayoutDefaults:IDe,_supply:VZ}});var D9=z((yQe,r$)=>{"use strict";var C9=Br(),h3=jr(),BDe=k0(),ka=ke(),Ei=(Kt(),Ne(aa)).BADNUM,us=ka._;r$.exports=function(r,t){var a=r._fullLayout,n=h3.getFromId(r,t.xaxis||"x"),i=h3.getFromId(r,t.yaxis||"y"),o=[],l=t.type==="violin"?"_numViolins":"_numBoxes",s,u,f,c,v,d,p;t.orientation==="h"?(f=n,c="x",v=i,d="y",p=!!t.yperiodalignment):(f=i,c="y",v=n,d="x",p=!!t.xperiodalignment);var m=ODe(t,d,v,a[l]),y=m[0],b=m[1],T=ka.distinctVals(y,v),w=T.vals,x=T.minDiff/2,_,k,M,q,C,E,P=(t.boxpoints||t.points)==="all"?ka.identity:function(Se){return Se.v<_.lf||Se.v>_.uf};if(t._hasPreCompStats){var R=t[c],B=function(Se){return f.d2c((t[Se]||[])[s])},I=1/0,N=-1/0;for(s=0;s<t._length;s++){var H=y[s];if(C9(H)){if(_={},_.pos=_[d]=H,p&&b&&(_.orig_p=b[s]),_.q1=B("q1"),_.med=B("median"),_.q3=B("q3"),k=[],R&&ka.isArrayOrTypedArray(R[s]))for(u=0;u<R[s].length;u++)E=f.d2c(R[s][u]),E!==Ei&&(C={v:E,i:[s,u]},WZ(C,t,[s,u]),k.push(C));if(_.pts=k.sort(XZ),M=_[c]=k.map(ZZ),q=M.length,_.med!==Ei&&_.q1!==Ei&&_.q3!==Ei&&_.med>=_.q1&&_.q3>=_.med){var G=B("lowerfence");_.lf=G!==Ei&&G<=_.q1?G:$Z(_,M,q);var Y=B("upperfence");_.uf=Y!==Ei&&Y>=_.q3?Y:JZ(_,M,q);var j=B("mean");_.mean=j!==Ei?j:q?ka.mean(M,q):(_.q1+_.q3)/2;var W=B("sd");_.sd=j!==Ei&&W>=0?W:q?ka.stdev(M,q,_.mean):_.q3-_.q1,_.lo=KZ(_),_.uo=QZ(_);var V=B("notchspan");V=V!==Ei&&V>0?V:e$(_,q),_.ln=_.med-V,_.un=_.med+V;var J=_.lf,re=_.uf;t.boxpoints&&M.length&&(J=Math.min(J,M[0]),re=Math.max(re,M[q-1])),t.notched&&(J=Math.min(J,_.ln),re=Math.max(re,_.un)),_.min=J,_.max=re}else{ka.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+_.q1,"median = "+_.med,"q3 = "+_.q3].join(`
`));var le;_.med!==Ei?le=_.med:_.q1!==Ei?_.q3!==Ei?le=(_.q1+_.q3)/2:le=_.q1:_.q3!==Ei?le=_.q3:le=0,_.med=le,_.q1=_.q3=le,_.lf=_.uf=le,_.mean=_.sd=le,_.ln=_.un=le,_.min=_.max=le}I=Math.min(I,_.min),N=Math.max(N,_.max),_.pts2=k.filter(P),o.push(_)}}t._extremes[f._id]=h3.findExtremes(f,[I,N],{padded:!0})}else{var ne=f.makeCalcdata(t,c),$=HDe(w,x),ce=w.length,te=UDe(ce);for(s=0;s<t._length;s++)if(E=ne[s],!!C9(E)){var ge=ka.findBin(y[s],$);ge>=0&&ge<ce&&(C={v:E,i:s},WZ(C,t,s),te[ge].push(C))}var se=1/0,oe=-1/0,Ae=t.quartilemethod,Pe=Ae==="exclusive",me=Ae==="inclusive";for(s=0;s<ce;s++)if(te[s].length>0){if(_={},_.pos=_[d]=w[s],k=_.pts=te[s].sort(XZ),M=_[c]=k.map(ZZ),q=M.length,_.min=M[0],_.max=M[q-1],_.mean=ka.mean(M,q),_.sd=ka.stdev(M,q,_.mean)*t.sdmultiple,_.med=ka.interp(M,.5),q%2&&(Pe||me)){var Ce,Me;Pe?(Ce=M.slice(0,q/2),Me=M.slice(q/2+1)):me&&(Ce=M.slice(0,q/2+1),Me=M.slice(q/2)),_.q1=ka.interp(Ce,.5),_.q3=ka.interp(Me,.5)}else _.q1=ka.interp(M,.25),_.q3=ka.interp(M,.75);_.lf=$Z(_,M,q),_.uf=JZ(_,M,q),_.lo=KZ(_),_.uo=QZ(_);var Le=e$(_,q);_.ln=_.med-Le,_.un=_.med+Le,se=Math.min(se,_.ln),oe=Math.max(oe,_.un),_.pts2=k.filter(P),o.push(_)}t.notched&&ka.isTypedArray(ne)&&(ne=Array.from(ne)),t._extremes[f._id]=h3.findExtremes(f,t.notched?ne.concat([se,oe]):ne,{padded:!0})}return GDe(o,t),o.length>0?(o[0].t={num:a[l],dPos:x,posLetter:d,valLetter:c,labels:{med:us(r,"median:"),min:us(r,"min:"),q1:us(r,"q1:"),q3:us(r,"q3:"),max:us(r,"max:"),mean:t.boxmean==="sd"||t.sizemode==="sd"?us(r,"mean \xB1 \u03C3:").replace("\u03C3",t.sdmultiple===1?"\u03C3":t.sdmultiple+"\u03C3"):us(r,"mean:"),lf:us(r,"lower fence:"),uf:us(r,"upper fence:")}},a[l]++,o):[{t:{empty:!0}}]};function ODe(e,r,t,a){var n=r in e,i=r+"0"in e,o="d"+r in e;if(n||i&&o){var l=t.makeCalcdata(e,r),s=BDe(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||C9(e.name)&&["linear","log"].indexOf(t.type)!==-1||ka.isDateTime(e.name)&&t.type==="date")?u=e.name:u=a;for(var f=t.type==="multicategory"?t.r2c_just_indices(u):t.d2c(u,0,e[r+"calendar"]),c=e._length,v=new Array(c),d=0;d<c;d++)v[d]=f;return[v]}function HDe(e,r){for(var t=e.length,a=new Array(t+1),n=0;n<t;n++)a[n]=e[n]-r;return a[t]=e[t-1]+r,a}function UDe(e){for(var r=new Array(e),t=0;t<e;t++)r[t]=[];return r}var L9={text:"tx",hovertext:"htx"};function WZ(e,r,t){for(var a in L9)ka.isArrayOrTypedArray(r[a])&&(Array.isArray(t)?ka.isArrayOrTypedArray(r[a][t[0]])&&(e[L9[a]]=r[a][t[0]][t[1]]):e[L9[a]]=r[a][t])}function GDe(e,r){if(ka.isArrayOrTypedArray(r.selectedpoints))for(var t=0;t<e.length;t++){for(var a=e[t].pts||[],n={},i=0;i<a.length;i++)n[a[i].i]=i;ka.tagSelected(a,r,n)}}function XZ(e,r){return e.v-r.v}function ZZ(e){return e.v}function $Z(e,r,t){return t===0?e.q1:Math.min(e.q1,r[Math.min(ka.findBin(2.5*e.q1-1.5*e.q3,r,!0)+1,t-1)])}function JZ(e,r,t){return t===0?e.q3:Math.max(e.q3,r[Math.max(ka.findBin(2.5*e.q3-1.5*e.q1,r),0)])}function KZ(e){return 4*e.q1-3*e.q3}function QZ(e){return 4*e.q3-3*e.q1}function e$(e,r){return r===0?0:1.57*(e.q3-e.q1)/Math.sqrt(r)}});var E9=z((gQe,i$)=>{"use strict";var t$=jr(),YDe=ke(),VDe=wf().getAxisGroup,a$=["v","h"];function jDe(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i<a$.length;i++){for(var o=a$[i],l=o==="h"?n:a,s=[],u=0;u<t.length;u++){var f=t[u],c=f[0].t,v=f[0].trace;v.visible===!0&&(v.type==="box"||v.type==="candlestick")&&!c.empty&&(v.orientation||"v")===o&&v.xaxis===a._id&&v.yaxis===n._id&&s.push(u)}n$("box",e,s,l)}}function n$(e,r,t,a){var n=r.calcdata,i=r._fullLayout,o=a._id,l=o.charAt(0),s,u,f,c=[],v=0;for(s=0;s<t.length;s++)for(f=n[t[s]],u=0;u<f.length;u++)c.push(a.c2l(f[u].pos,!0)),v+=(f[u].pts2||[]).length;if(c.length){var d=YDe.distinctVals(c);(a.type==="category"||a.type==="multicategory")&&(d.minDiff=1);var p=d.minDiff/2;t$.minDtick(a,d.minDiff,d.vals[0],!0);var m=e==="violin"?"_numViolins":"_numBoxes",y=i[m],b=i[e+"mode"]==="group"&&y>1,T=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s<t.length;s++){f=n[t[s]];var x=f[0].trace,_=f[0].t,k=x.width,M=x.side,q,C,E,P;if(k)q=C=P=k/2,E=0;else if(q=p,b){var R=VDe(i,a._id)+x.orientation,B=i._alignmentOpts[R]||{},I=B[x.alignmentgroup]||{},N=Object.keys(I.offsetGroups||{}).length,H=N||y,G=N?x._offsetIndex:_.num;C=q*T*w/H,E=2*q*(-.5+(G+.5)/H)*T,P=q*T/H}else C=q*T*w,E=0,P=q;_.dPos=q,_.bPos=E,_.bdPos=C,_.wHover=P;var Y,j,W=E+C,V,J,re,le,ne,$,ce=!!k,te=(x.boxpoints||x.points)&&v>0;if(M==="positive"?(Y=q*(k?1:.5),V=W,j=V=E):M==="negative"?(Y=V=E,j=q*(k?1:.5),J=W):(Y=j=q,V=J=W),te){var ge=x.pointpos,se=x.jitter,oe=x.marker.size/2,Ae=0;ge+se>=0&&(Ae=W*(ge+se),Ae>Y?(ce=!0,ne=oe,re=Ae):Ae>V&&(ne=oe,re=Y)),Ae<=Y&&(re=Y);var Pe=0;ge-se<=0&&(Pe=-W*(ge-se),Pe>j?(ce=!0,$=oe,le=Pe):Pe>J&&($=oe,le=j)),Pe<=j&&(le=j)}else re=Y,le=j;var me=new Array(f.length);for(u=0;u<f.length;u++)me[u]=f[u].pos;x._extremes[o]=t$.findExtremes(a,me,{padded:ce,vpadminus:le,vpadplus:re,vpadLinearized:!0,ppadminus:{x:$,y:ne}[l],ppadplus:{x:ne,y:$}[l]})}}}i$.exports={crossTraceCalc:jDe,setPositionOffset:n$}});var P9=z((bQe,f$)=>{"use strict";var Z0=Pr(),Of=ke(),WDe=et(),o$=5,XDe=.01;function ZDe(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Of.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=Z0.select(this),u=l[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,d;c.orientation==="h"?(v=o,d=i):(v=i,d=o),l$(s,{pos:v,val:d},c,f,n),s$(s,{x:i,y:o},c,f),u$(s,{pos:v,val:d},c,f)})}function l$(e,r,t,a,n){var i=t.orientation==="h",o=r.val,l=r.pos,s=!!l.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,m=p?1-2*t.notchwidth:1,y,b;Array.isArray(a.bdPos)?(y=a.bdPos[0],b=a.bdPos[1]):(y=a.bdPos,b=a.bdPos);var T=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Of.identity:[]);T.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),T.exit().remove(),T.each(function(w){if(w.empty)return Z0.select(this).attr("d","M0,0Z");var x=l.c2l(w.pos+u,!0),_=l.l2p(x-y)+c,k=l.l2p(x+b)+c,M=s?(_+k)/2:l.l2p(x)+c,q=t.whiskerwidth,C=s?_*q+(1-q)*M:l.l2p(x-f)+c,E=s?k*q+(1-q)*M:l.l2p(x+f)+c,P=l.l2p(x-y*m)+c,R=l.l2p(x+b*m)+c,B=t.sizemode==="sd",I=o.c2p(B?w.mean-w.sd:w.q1,!0),N=B?o.c2p(w.mean+w.sd,!0):o.c2p(w.q3,!0),H=Of.constrain(B?o.c2p(w.mean,!0):o.c2p(w.med,!0),Math.min(I,N)+1,Math.max(I,N)-1),G=w.lf===void 0||t.boxpoints===!1||B,Y=o.c2p(G?w.min:w.lf,!0),j=o.c2p(G?w.max:w.uf,!0),W=o.c2p(w.ln,!0),V=o.c2p(w.un,!0);i?Z0.select(this).attr("d","M"+H+","+P+"V"+R+"M"+I+","+_+"V"+k+(p?"H"+W+"L"+H+","+R+"L"+V+","+k:"")+"H"+N+"V"+_+(p?"H"+V+"L"+H+","+P+"L"+W+","+_:"")+"Z"+(d?"M"+I+","+M+"H"+Y+"M"+N+","+M+"H"+j+(v===0?"":"M"+Y+","+C+"V"+E+"M"+j+","+C+"V"+E):"")):Z0.select(this).attr("d","M"+P+","+H+"H"+R+"M"+_+","+I+"H"+k+(p?"V"+W+"L"+R+","+H+"L"+k+","+V:"")+"V"+N+"H"+_+(p?"V"+V+"L"+P+","+H+"L"+_+","+W:"")+"Z"+(d?"M"+M+","+I+"V"+Y+"M"+M+","+N+"V"+j+(v===0?"":"M"+C+","+Y+"H"+E+"M"+C+","+j+"H"+E):""))})}function s$(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Of.seedPseudoRandom();var u=function(v){return v.forEach(function(d){d.t=a,d.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var d,p=v.pts2,m=Math.max((v.max-v.min)/10,v.q3-v.q1),y=m*1e-9,b=m*XDe,T=[],w=0,x;if(t.jitter){if(m===0)for(w=1,T=new Array(p.length),d=0;d<p.length;d++)T[d]=1;else for(d=0;d<p.length;d++){var _=Math.max(0,d-o$),k=p[_].v,M=Math.min(p.length-1,d+o$),q=p[M].v;s!=="all"&&(p[d].v<v.lf?q=Math.min(q,v.lf):k=Math.max(k,v.uf));var C=Math.sqrt(b*(M-_)/(q-k+y))||0;C=Of.constrain(Math.abs(C),0,1),T.push(C),w=Math.max(C,w)}x=t.jitter*2/(w||1)}for(d=0;d<p.length;d++){var E=p[d],P=E.v,R=t.jitter?x*T[d]*(Of.pseudoRandom()-.5):0,B=v.pos+l+o*(t.pointpos+R);t.orientation==="h"?(E.y=B,E.x=P):(E.x=B,E.y=P),s==="suspectedoutliers"&&P<v.uo&&P>v.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(WDe.translatePoints,n,i)}function u$(e,r,t,a){var n=r.val,i=r.pos,o=!!i.rangebreaks,l=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Of.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(d){var p=i.c2l(d.pos+l,!0),m=i.l2p(p-f)+s,y=i.l2p(p+c)+s,b=o?(m+y)/2:i.l2p(p)+s,T=n.c2p(d.mean,!0),w=n.c2p(d.mean-d.sd,!0),x=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?Z0.select(this).attr("d","M"+T+","+m+"V"+y+(u==="sd"?"m0,0L"+w+","+b+"L"+T+","+m+"L"+x+","+b+"Z":"")):Z0.select(this).attr("d","M"+m+","+T+"H"+y+(u==="sd"?"m0,0L"+b+","+w+"L"+m+","+T+"L"+b+","+x+"Z":""))})}f$.exports={plot:ZDe,plotBoxAndWhiskers:l$,plotPoints:s$,plotBoxMean:u$}});var N9=z((xQe,c$)=>{"use strict";var R9=Pr(),F9=qr(),z9=et();function $De(e,r,t){var a=t||R9.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=R9.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(F9.stroke,d).call(F9.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=R9.select(this),d=o[c.dir];s(v,d.line.width,d.line.color,d.fillcolor),v.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{s(u,l,o.line.color,o.fillcolor),i.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(F9.stroke,o.line.color);var f=i.selectAll("path.point");z9.pointStyle(f,o,e)}})}function JDe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?z9.selectedPointStyle(n,a):z9.pointStyle(n,a,e)}c$.exports={style:$De,styleOnSelect:JDe}});var B9=z((_Qe,p$)=>{"use strict";var KDe=jr(),I9=ke(),lu=Yn(),v$=qr(),QDe=I9.fillText;function eEe(e,r,t,a){var n=e.cd,i=n[0].trace,o=i.hoveron,l=[],s;return o.indexOf("boxes")!==-1&&(l=l.concat(h$(e,r,t,a))),o.indexOf("points")!==-1&&(s=d$(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function h$(e,r,t,a){var n=e.cd,i=e.xa,o=e.ya,l=n[0].trace,s=n[0].t,u=l.type==="violin",f,c,v,d,p,m,y,b,T,w,x,_=s.bdPos,k,M,q=s.wHover,C=function(oe){return v.c2l(oe.pos)+s.bPos-v.c2l(m)};u&&l.side!=="both"?(l.side==="positive"&&(T=function(oe){var Ae=C(oe);return lu.inbox(Ae,Ae+q,w)},k=_,M=0),l.side==="negative"&&(T=function(oe){var Ae=C(oe);return lu.inbox(Ae-q,Ae,w)},k=0,M=_)):(T=function(oe){var Ae=C(oe);return lu.inbox(Ae-q,Ae+q,w)},k=M=_);var E;u?E=function(oe){return lu.inbox(oe.span[0]-p,oe.span[1]-p,w)}:E=function(oe){return lu.inbox(oe.min-p,oe.max-p,w)},l.orientation==="h"?(p=r,m=t,y=E,b=T,f="y",v=o,c="x",d=i):(p=t,m=r,y=T,b=E,f="x",v=i,c="y",d=o);var P=Math.min(1,_/Math.abs(v.r2c(v.range[1])-v.r2c(v.range[0])));w=e.maxHoverDistance-P,x=e.maxSpikeDistance-P;function R(oe){return(y(oe)+b(oe))/2}var B=lu.getDistanceFunction(a,y,b,R);if(lu.getClosest(n,B,e),e.index===!1)return[];var I=n[e.index],N=l.line.color,H=(l.marker||{}).color;v$.opacity(N)&&l.line.width?e.color=N:v$.opacity(H)&&l.boxpoints?e.color=H:e.color=l.fillcolor,e[f+"0"]=v.c2p(I.pos+s.bPos-M,!0),e[f+"1"]=v.c2p(I.pos+s.bPos+k,!0),e[f+"LabelVal"]=I.orig_p!==void 0?I.orig_p:I.pos;var G=f+"Spike";e.spikeDistance=R(I)*x/w,e[G]=v.c2p(I.pos,!0);var Y=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,j=l.boxpoints||l.points,W=j&&Y?["max","uf","q3","med","mean","q1","lf","min"]:j&&!Y?["max","uf","q3","med","q1","lf","min"]:!j&&Y?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],V=d.range[1]<d.range[0];l.orientation===(V?"v":"h")&&W.reverse();for(var J=e.spikeDistance,re=e[G],le=[],ne=0;ne<W.length;ne++){var $=W[ne];if($ in I){var ce=I[$],te=d.c2p(ce,!0),ge=I9.extendFlat({},e);ge.attr=$,ge[c+"0"]=ge[c+"1"]=te,ge[c+"LabelVal"]=ce,ge[c+"Label"]=(s.labels?s.labels[$]+" ":"")+KDe.hoverLabelText(d,ce,l[c+"hoverformat"]),ge.hoverOnBox=!0,$==="mean"&&"sd"in I&&(l.boxmean==="sd"||l.sizemode==="sd")&&(ge[c+"err"]=I.sd),ge.hovertemplate=!1,le.push(ge)}}e.name="",e.spikeDistance=void 0,e[G]=void 0;for(var se=0;se<le.length;se++)le[se].attr!=="med"?(le[se].name="",le[se].spikeDistance=void 0,le[se][G]=void 0):(le[se].spikeDistance=J,le[se][G]=re);return le}function d$(e,r,t){for(var a=e.cd,n=e.xa,i=e.ya,o=a[0].trace,l=n.c2p(r),s=i.c2p(t),u,f=function(E){var P=Math.max(3,E.mrc||0);return Math.max(Math.abs(n.c2p(E.x)-l)-P,1-3/P)},c=function(E){var P=Math.max(3,E.mrc||0);return Math.max(Math.abs(i.c2p(E.y)-s)-P,1-3/P)},v=lu.quadrature(f,c),d=!1,p,m,y=0;y<a.length;y++){p=a[y];for(var b=0;b<(p.pts||[]).length;b++){m=p.pts[b];var T=v(m);T<=e.distance&&(e.distance=T,d=[y,b])}}if(!d)return!1;p=a[d[0]],m=p.pts[d[1]];var w=n.c2p(m.x,!0),x=i.c2p(m.y,!0),_=m.mrc||1;u=I9.extendFlat({},e,{index:m.i,color:(o.marker||{}).color,name:o.name,x0:w-_,x1:w+_,y0:x-_,y1:x+_,spikeDistance:e.distance,hovertemplate:o.hovertemplate});var k=p.orig_p,M=k!==void 0?k:p.pos,q;o.orientation==="h"?(q=i,u.xLabelVal=m.x,u.yLabelVal=M):(q=n,u.xLabelVal=M,u.yLabelVal=m.y);var C=q._id.charAt(0);return u[C+"Spike"]=q.c2p(p.pos,!0),QDe(m,o,u),u}p$.exports={hoverPoints:eEe,hoverOnBoxes:h$,hoverOnPoints:d$}});var y$=z((wQe,m$)=>{"use strict";m$.exports=function(r,t){return t.hoverOnBox&&(r.hoverOnBox=t.hoverOnBox),"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var O9=z((TQe,g$)=>{"use strict";g$.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s;if(t===!1)for(l=0;l<a.length;l++)for(s=0;s<(a[l].pts||[]).length;s++)a[l].pts[s].selected=0;else for(l=0;l<a.length;l++)for(s=0;s<(a[l].pts||[]).length;s++){var u=a[l].pts[s],f=n.c2p(u.x),c=i.c2p(u.y);t.contains([f,c],null,u.i,r)?(o.push({pointNumber:u.i,x:n.c2d(u.x),y:i.c2d(u.y)}),u.selected=1):u.selected=0}return o}});var x$=z((AQe,b$)=>{"use strict";b$.exports={attributes:c3(),layoutAttributes:v3(),supplyDefaults:s2().supplyDefaults,crossTraceDefaults:s2().crossTraceDefaults,supplyLayoutDefaults:q9().supplyLayoutDefaults,calc:D9(),crossTraceCalc:E9().crossTraceCalc,plot:P9().plot,style:N9().style,styleOnSelect:N9().styleOnSelect,hoverPoints:B9().hoverPoints,eventData:y$(),selectPoints:O9(),moduleType:"trace",name:"box",basePlotModule:lo(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var w$=z((MQe,_$)=>{"use strict";_$.exports=x$()});var u2=z((kQe,A$)=>{"use strict";var rEe=cl(),{extendFlat:fi}=St(),tEe=Gn(),{axisHoverFormat:H9}=Fo(),aEe=Ia(),{hovertemplateAttrs:nEe,templatefallbackAttrs:T$,texttemplateAttrs:iEe}=gi(),Pi=Qi();A$.exports=fi({z:{valType:"data_array",editType:"calc"},x:fi({},Pi.x,{impliedEdits:{xtype:"array"}}),x0:fi({},Pi.x0,{impliedEdits:{xtype:"scaled"}}),dx:fi({},Pi.dx,{impliedEdits:{xtype:"scaled"}}),y:fi({},Pi.y,{impliedEdits:{ytype:"array"}}),y0:fi({},Pi.y0,{impliedEdits:{ytype:"scaled"}}),dy:fi({},Pi.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:fi({},Pi.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:fi({},Pi.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:fi({},Pi.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:fi({},Pi.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:fi({},Pi.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:fi({},Pi.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:H9("x"),yhoverformat:H9("y"),zhoverformat:H9("z",1),hovertemplate:nEe(),hovertemplatefallback:T$(),texttemplate:iEe({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:T$({editType:"plot"}),textfont:aEe({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:fi({},tEe.showlegend,{dflt:!1}),zorder:Pi.zorder},rEe("",{cLetter:"z",autoColorDflt:!1}))});var U9=z((SQe,k$)=>{"use strict";var oEe=Br(),d3=ke(),lEe=Ar();k$.exports=function(r,t,a,n,i,o){var l=a("z");i=i||"x",o=o||"y";var s,u;if(l===void 0||!l.length)return 0;if(d3.isArray1D(l)){s=a(i),u=a(o);var f=d3.minRowLength(s),c=d3.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=M$(i,a),u=M$(o,a),!sEe(l))return 0;a("transpose"),t._length=null}var v=lEe.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function M$(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function sEe(e){for(var r=!0,t=!1,a=!1,n,i=0;i<e.length;i++){if(n=e[i],!d3.isArrayOrTypedArray(n)){r=!1;break}n.length>0&&(t=!0);for(var o=0;o<n.length;o++)if(oEe(n[o])){a=!0;break}}return r&&t&&a}});var f2=z((qQe,q$)=>{"use strict";var S$=ke();q$.exports=function(r,t){r("texttemplate"),r("texttemplatefallback");var a=S$.extendFlat({},t.font,{color:"auto",size:"auto"});S$.coerceFont(r,"textfont",a)}});var G9=z((LQe,L$)=>{"use strict";L$.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var E$=z((CQe,D$)=>{"use strict";var C$=ke(),uEe=U9(),fEe=f2(),cEe=A0(),vEe=G9(),hEe=Xl(),dEe=u2();D$.exports=function(r,t,a,n){function i(l,s){return C$.coerce(r,t,dEe,l,s)}var o=uEe(r,t,i,n);if(!o){t.visible=!1;return}cEe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),fEe(i,n),vEe(r,t,i,n),i("hoverongaps"),i("connectgaps",C$.isArray1D(t.z)&&t.zsmooth!==!1),hEe(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var Y9=z((DQe,P$)=>{"use strict";var $0=Br();P$.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return $0(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return $0(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if($0(n))if(n=Number(n),$0(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if($0(n))if(n=Number(n),$0(t[e])){if(t[e]<n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0}}});var V9=z((EQe,R$)=>{"use strict";R$.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n<t;n++)e[n]*=a},probability:function(e,r){for(var t=e.length,a=0;a<t;a++)e[a]/=r},density:function(e,r,t,a){var n=e.length;a=a||1;for(var i=0;i<n;i++)e[i]*=t[i]*a},"probability density":function(e,r,t,a){var n=e.length;a&&(r/=a);for(var i=0;i<n;i++)e[i]*=t[i]/r}}});var j9=z((PQe,F$)=>{"use strict";F$.exports=function(r,t){for(var a=r.length,n=0,i=0;i<a;i++)t[i]?(r[i]/=t[i],n+=r[i]):r[i]=null;return n}});var W9=z((RQe,G$)=>{"use strict";var J0=(Kt(),Ne(aa)),Hf=J0.ONEAVGYEAR,z$=J0.ONEAVGMONTH,m3=J0.ONEDAY,N$=J0.ONEHOUR,I$=J0.ONEMIN,B$=J0.ONESEC,O$=jr().tickIncrement;G$.exports=function(r,t,a,n,i){var o=-1.1*t,l=-.1*t,s=r-l,u=a[0],f=a[1],c=Math.min(p3(u+l,u+s,n,i),p3(f+l,f+s,n,i)),v=Math.min(p3(u+o,u+l,n,i),p3(f+o,f+l,n,i)),d,p;if(c>v&&v<Math.abs(f-u)/4e3?(d=c,p=!1):(d=Math.min(c,v),p=!0),n.type==="date"&&d>m3){var m=d===Hf?1:6,y=d===Hf?"M12":"M1";return function(b,T){var w=n.c2d(b,Hf,i),x=w.indexOf("-",m);x>0&&(w=w.slice(0,x));var _=n.d2c(w,0,i);if(_<b){var k=O$(_,y,!1,i);(_+k)/2<b+r&&(_=k)}return T&&p?O$(_,y,!0,i):_}}return function(b,T){var w=d*Math.round(b/d);return w+d/10<b&&w+d*.9<b+r&&(w+=d),T&&p&&(w-=d),w}};function p3(e,r,t,a){if(e*r<=0)return 1/0;for(var n=Math.abs(r-e),i=t.type==="date",o=H$(n,i),l=0;l<10;l++){var s=H$(o*80,i);if(o===s)break;if(pEe(s,e,r,i,t,a))o=s;else break}return o}function H$(e,r){return r&&e>B$?e>m3?e>Hf*1.1?Hf:e>z$*1.1?z$:m3:e>N$?N$:e>I$?I$:B$:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function pEe(e,r,t,a,n,i){if(a&&e>m3){var o=U$(r,n,i),l=U$(t,n,i),s=e===Hf?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function U$(e,r,t){var a=r.c2d(e,Hf,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var $9=z((FQe,X$)=>{"use strict";var X9=Br(),In=ke(),Y$=Ar(),vo=jr(),{hasColorscale:V$}=xi(),j$=e0(),mEe=o3(),W$=Y9(),yEe=V9(),gEe=j9(),bEe=W9();function xEe(e,r){var t=[],a=[],n=r.orientation==="h",i=vo.getFromId(e,n?r.yaxis:r.xaxis),o=n?"y":"x",l={x:"y",y:"x"}[o],s=r[o+"calendar"],u=r.cumulative,f,c=Z9(e,r,i,o),v=c[0],d=c[1],p=typeof v.size=="string",m=[],y=p?m:v,b=[],T=[],w=[],x=0,_=r.histnorm,k=r.histfunc,M=_.indexOf("density")!==-1,q,C,E;u.enabled&&M&&(_=_.replace(/ ?density$/,""),M=!1);var P=k==="max"||k==="min",R=P?null:0,B=W$.count,I=yEe[_],N=!1,H=function(Ae){return i.r2c(Ae,0,s)},G;for(In.isArrayOrTypedArray(r[l])&&k!=="count"&&(G=r[l],N=k==="avg",B=W$[k]),f=H(v.start),C=H(v.end)+(f-vo.tickIncrement(f,v.size,!1,s))/1e6;f<C&&t.length<1e6&&(q=vo.tickIncrement(f,v.size,!1,s),t.push((f+q)/2),a.push(R),w.push([]),m.push(f),M&&b.push(1/(q-f)),N&&T.push(0),!(q<=f));)f=q;m.push(f),!p&&i.type==="date"&&(y={start:H(y.start),end:H(y.end),size:y.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var Y=r["_"+o+"bingroup"],j={leftGap:1/0,rightGap:1/0};Y&&(e._fullLayout._roundFnOpts[Y]||(e._fullLayout._roundFnOpts[Y]=j),j=e._fullLayout._roundFnOpts[Y]);var W=a.length,V=!0,J=j.leftGap,re=j.rightGap,le={};for(f=0;f<d.length;f++){var ne=d[f];E=In.findBin(ne,y),E>=0&&E<W&&(x+=B(E,f,a,G,T),V&&w[E].length&&ne!==d[w[E][0]]&&(V=!1),w[E].push(f),le[f]=E,J=Math.min(J,ne-m[E]),re=Math.min(re,m[E+1]-ne))}j.leftGap=J,j.rightGap=re;var $;V||($=function(Ae,Pe){return function(){var me=e._fullLayout._roundFnOpts[Y];return bEe(me.leftGap,me.rightGap,m,i,s)(Ae,Pe)}}),N&&(x=gEe(a,T)),I&&I(a,x,b),u.enabled&&TEe(a,u.direction,u.currentbin);var ce=Math.min(t.length,a.length),te=[],ge=0,se=ce-1;for(f=0;f<ce;f++)if(a[f]){ge=f;break}for(f=ce-1;f>=ge;f--)if(a[f]){se=f;break}for(f=ge;f<=se;f++)if(X9(t[f])&&X9(a[f])){var oe={p:t[f],s:a[f],b:0};u.enabled||(oe.pts=w[f],V?oe.ph0=oe.ph1=w[f].length?d[w[f][0]]:t[f]:(r._computePh=!0,oe.ph0=$(m[f]),oe.ph1=$(m[f+1],!0))),te.push(oe)}return te.length===1&&(te[0].width1=vo.tickIncrement(te[0].p,v.size,!1,s)-te[0].p),V$(r,"marker")&&j$(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),V$(r,"marker.line")&&j$(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),mEe(te,r),In.isArrayOrTypedArray(r.selectedpoints)&&In.tagSelected(te,r,le),te}function Z9(e,r,t,a,n){var ne;var i=a+"bins",o=e._fullLayout,l=r["_"+a+"bingroup"],s=o._histogramBinOpts[l],u=o.barmode==="overlay",f,c,v,d,p,m,y,b=function($){return t.r2c($,0,d)},T=function($){return t.c2r($,0,d)},w=t.type==="date"?function($){return $||$===0?In.cleanDate($,null,d):null}:function($){return X9($)?Number($):null};function x($,ce,te){ce[$+"Found"]?(ce[$]=w(ce[$]),ce[$]===null&&(ce[$]=te[$])):(m[$]=ce[$]=te[$],In.nestedProperty(c[0],i+"."+$).set(te[$]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var _=[],k=!0,M=!1,q=!1;for(f=0;f<c.length;f++)if(v=c[f],v.visible){var C=s.dirs[f];p=v["_"+C+"pos0"]=t.makeCalcdata(v,C),_=In.concat(_,p),delete v["_"+a+"autoBinFinished"],r.visible===!0&&(k?k=!1:(delete v._autoBin,v["_"+a+"autoBinFinished"]=1),Y$.traceIs(v,"2dMap")&&(M=!0),v.type==="histogram2dcontour"&&(q=!0))}d=c[0][a+"calendar"];var E=vo.autoBin(_,t,s.nbins,M,d,s.sizeFound&&s.size),P=c[0]._autoBin={};if(m=P[s.dirs[0]]={},q&&(s.size||(E.start=T(vo.tickIncrement(b(E.start),E.size,!0,d))),s.end===void 0&&(E.end=T(vo.tickIncrement(b(E.end),E.size,!1,d)))),u&&!Y$.traceIs(r,"2dMap")&&E._dataSpan===0&&t.type!=="category"&&t.type!=="multicategory"&&r.bingroup===""&&!((ne=r._input[i])!=null&&ne.size)){if(n)return[E,p,!0];E=_Ee(e,r,t,a,i)}y=v.cumulative||{},y.enabled&&y.currentbin!=="include"&&(y.direction==="decreasing"?E.start=T(vo.tickIncrement(b(E.start),E.size,!0,d)):E.end=T(vo.tickIncrement(b(E.end),E.size,!1,d))),s.size=E.size,s.sizeFound||(m.size=E.size,In.nestedProperty(c[0],i+".size").set(E.size)),x("start",s,E),x("end",s,E)}p=r["_"+a+"pos0"],delete r["_"+a+"pos0"];var R=r._input[i]||{},B=In.extendFlat({},s),I=s.start,N=t.r2l(R.start),H=N!==void 0;if((s.startFound||H)&&N!==t.r2l(I)){var G=H?N:In.aggNums(Math.min,null,p),Y={type:t.type==="category"||t.type==="multicategory"?"linear":t.type,r2l:t.r2l,dtick:s.size,tick0:I,calendar:d,range:[G,vo.tickIncrement(G,s.size,!1,d)].map(t.l2r)},j=vo.tickFirst(Y);j>t.r2l(G)&&(j=vo.tickIncrement(j,s.size,!0,d)),B.start=t.l2r(j),H||In.nestedProperty(r,i+".start").set(B.start)}var W=s.end,V=t.r2l(R.end),J=V!==void 0;if((s.endFound||J)&&V!==t.r2l(W)){var re=J?V:In.aggNums(Math.max,null,p);B.end=t.l2r(re),J||In.nestedProperty(r,i+".start").set(B.end)}var le="autobin"+a;return r._input[le]===!1&&(r._input[i]=In.extendFlat({},r[i]||{}),delete r._input[le],delete r[le]),[B,p]}function _Ee(e,r,t,a,n){var i=e._fullLayout,o=wEe(e,r),l=!1,s=1/0,u=[r],f,c,v;for(f=0;f<o.length;f++)if(c=o[f],c===r)l=!0;else if(!l)v=i._histogramBinOpts[c["_"+a+"bingroup"]],s=Math.min(s,v.size||c[n].size);else{var d=Z9(e,c,t,a,!0),p=d[0],m=d[2];c["_"+a+"autoBinFinished"]=1,c["_"+a+"pos0"]=d[1],m?u.push(c):s=Math.min(s,p.size)}var y=new Array(u.length);for(f=0;f<u.length;f++)for(var b=u[f]["_"+a+"pos0"],T=0;T<b.length;T++)if(b[T]!==void 0){y[f]=b[T];break}for(isFinite(s)||(s=In.distinctVals(y).minDiff),f=0;f<u.length;f++){c=u[f];var w=c[a+"calendar"],x={start:t.c2r(y[f]-s/2,0,w),end:t.c2r(y[f]+s/2,0,w),size:s};c._input[n]=c[n]=x,v=i._histogramBinOpts[c["_"+a+"bingroup"]],v&&In.extendFlat(v,x)}return r[n]}function wEe(e,r){for(var t=r.xaxis,a=r.yaxis,n=r.orientation,i=[],o=e._fullData,l=0;l<o.length;l++){var s=o[l];s.type==="histogram"&&s.visible===!0&&s.orientation===n&&s.xaxis===t&&s.yaxis===a&&i.push(s)}return i}function TEe(e,r,t){var a,n,i;function o(s){i=e[s],e[s]/=2}function l(s){n=e[s],e[s]=i+n/2,i+=n}if(t==="half")if(r==="increasing")for(o(0),a=1;a<e.length;a++)l(a);else for(o(e.length-1),a=e.length-2;a>=0;a--)l(a);else if(r==="increasing"){for(a=1;a<e.length;a++)e[a]+=e[a-1];t==="exclude"&&(e.unshift(0),e.pop())}else{for(a=e.length-2;a>=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}X$.exports={calc:xEe,calcAllAutoBins:Z9}});var tJ=z((zQe,rJ)=>{"use strict";var Z$=ke(),K0=jr(),$$=Y9(),AEe=V9(),MEe=j9(),kEe=W9(),J$=$9().calcAllAutoBins;rJ.exports=function(r,t){var a=K0.getFromId(r,t.xaxis),n=K0.getFromId(r,t.yaxis),i=t.xcalendar,o=t.ycalendar,l=function(ue){return a.r2c(ue,0,i)},s=function(ue){return n.r2c(ue,0,o)},u=function(ue){return a.c2r(ue,0,i)},f=function(ue){return n.c2r(ue,0,o)},c,v,d,p,m=J$(r,t,a,"x"),y=m[0],b=m[1],T=J$(r,t,n,"y"),w=T[0],x=T[1],_=t._length;b.length>_&&b.splice(_,b.length-_),x.length>_&&x.splice(_,x.length-_);var k=[],M=[],q=[],C=typeof y.size=="string",E=typeof w.size=="string",P=[],R=[],B=C?P:y,I=E?R:w,N=0,H=[],G=[],Y=t.histnorm,j=t.histfunc,W=Y.indexOf("density")!==-1,V=j==="max"||j==="min",J=V?null:0,re=$$.count,le=AEe[Y],ne=!1,$=[],ce=[],te="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";te&&j!=="count"&&(ne=j==="avg",re=$$[j]);var ge=y.size,se=l(y.start),oe=l(y.end)+(se-K0.tickIncrement(se,ge,!1,i))/1e6;for(c=se;c<oe;c=K0.tickIncrement(c,ge,!1,i))M.push(J),P.push(c),ne&&q.push(0);P.push(c);var Ae=M.length,Pe=(c-se)/Ae,me=u(se+Pe/2),Ce=w.size,Me=s(w.start),Le=s(w.end)+(Me-K0.tickIncrement(Me,Ce,!1,o))/1e6;for(c=Me;c<Le;c=K0.tickIncrement(c,Ce,!1,o)){k.push(M.slice()),R.push(c);var Se=new Array(Ae);for(v=0;v<Ae;v++)Se[v]=[];G.push(Se),ne&&H.push(q.slice())}R.push(c);var Ee=k.length,qe=(c-Me)/Ee,Ue=f(Me+qe/2);W&&($=K$(M.length,B,Pe,C),ce=K$(k.length,I,qe,E)),!C&&a.type==="date"&&(B=Q$(l,B)),!E&&n.type==="date"&&(I=Q$(s,I));var Je=!0,Ke=!0,De=new Array(Ae),Be=new Array(Ee),er=1/0,ae=1/0,be=1/0,Ge=1/0;for(c=0;c<_;c++){var sr=b[c],vr=x[c];d=Z$.findBin(sr,B),p=Z$.findBin(vr,I),d>=0&&d<Ae&&p>=0&&p<Ee&&(N+=re(d,c,k[p],te,H[p]),G[p][d].push(c),Je&&(De[d]===void 0?De[d]=sr:De[d]!==sr&&(Je=!1)),Ke&&(Be[p]===void 0?Be[p]=vr:Be[p]!==vr&&(Ke=!1)),er=Math.min(er,sr-P[d]),ae=Math.min(ae,P[d+1]-sr),be=Math.min(be,vr-R[p]),Ge=Math.min(Ge,R[p+1]-vr))}if(ne)for(p=0;p<Ee;p++)N+=MEe(k[p],H[p]);if(le)for(p=0;p<Ee;p++)le(k[p],N,$,ce[p]);return{x:b,xRanges:eJ(P,Je&&De,er,ae,a,i),x0:me,dx:Pe,y:x,yRanges:eJ(R,Ke&&Be,be,Ge,n,o),y0:Ue,dy:qe,z:k,pts:G}};function K$(e,r,t,a){var n=new Array(e),i;if(a)for(i=0;i<e;i++)n[i]=1/(r[i+1]-r[i]);else{var o=1/t;for(i=0;i<e;i++)n[i]=o}return n}function Q$(e,r){return{start:e(r.start),end:e(r.end),size:r.size}}function eJ(e,r,t,a,n,i){var o,l=e.length-1,s=new Array(l),u=kEe(t,a,e,n,i);for(o=0;o<l;o++){var f=(r||[])[o];s[o]=f===void 0?[u(e[o]),u(e[o+1],!0)]:[f,f]}return s}});var oJ=z((NQe,iJ)=>{"use strict";var ql=ke(),aJ=(Kt(),Ne(aa)).BADNUM,nJ=k0();iJ.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=nJ(r,t,n,s).vals,u=nJ(r,a,i,u).vals;var f=r.text,c=f!==void 0&&ql.isArray1D(f),v=r.hovertext,d=v!==void 0&&ql.isArray1D(v),p,m,y=ql.distinctVals(s),b=y.vals,T=ql.distinctVals(u),w=T.vals,x=[],_,k,M=w.length,q=b.length;for(p=0;p<o.length;p++)x[p]=ql.init2dArray(M,q);c&&(_=ql.init2dArray(M,q)),d&&(k=ql.init2dArray(M,q));var C=ql.init2dArray(M,q);for(p=0;p<l;p++)if(s[p]!==aJ&&u[p]!==aJ){var E=ql.findBin(s[p]+y.minDiff/2,b),P=ql.findBin(u[p]+T.minDiff/2,w);for(m=0;m<o.length;m++){var R=o[m],B=r[R],I=x[m];I[P][E]=B[p],C[P][E]=p}c&&(_[P][E]=f[p]),d&&(k[P][E]=v[p])}for(r["_"+n]=b,r["_"+i]=w,m=0;m<o.length;m++)r["_"+o[m]]=x[m];c&&(r._text=_),d&&(r._hovertext=k),t&&t.type==="category"&&(r["_"+n+"CategoryMap"]=b.map(function(N){return t._categories[N]})),a&&a.type==="category"&&(r["_"+i+"CategoryMap"]=w.map(function(N){return a._categories[N]})),r._after2before=C}});var sJ=z((IQe,lJ)=>{"use strict";var SEe=Br(),qEe=ke(),y3=(Kt(),Ne(aa)).BADNUM;lJ.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(b){if(SEe(b))return+b}if(t&&t.transpose){for(i=0,u=0;u<r.length;u++)i=Math.max(i,r[u].length);if(i===0)return!1;l=function(b){return b.length},s=function(b,T,w){return(b[w]||[])[T]}}else i=r.length,l=function(b,T){return b[T].length},s=function(b,T,w){return(b[T]||[])[w]};var v=function(b,T,w){return T===y3||w===y3?y3:s(b,T,w)};function d(b){if(t&&t.type!=="carpet"&&t.type!=="contourcarpet"&&b&&b.type==="category"&&t["_"+b._id.charAt(0)].length){var T=b._id.charAt(0),w={},x=t["_"+T+"CategoryMap"]||t[T];for(u=0;u<x.length;u++)w[x[u]]=u;return function(_){var k=w[b._categories[_]];return k+1?k:y3}}else return qEe.identity}var p=d(a),m=d(n);n&&n.type==="category"&&(i=n._categories.length);var y=new Array(i);for(u=0;u<i;u++)for(a&&a.type==="category"?o=a._categories.length:o=l(r,u),y[u]=new Array(o),f=0;f<o;f++)y[u][f]=c(v(r,m(u),p(f)));return y}});var vJ=z((BQe,cJ)=>{"use strict";var LEe=ke(),uJ=.01,CEe=[[-1,0],[1,0],[0,-1],[0,1]];function DEe(e){return .5-.25*Math.min(1,e*.5)}cJ.exports=function(r,t){var a=1,n;for(fJ(r,t),n=0;n<t.length&&!(t[n][2]<4);n++);for(t=t.slice(n),n=0;n<100&&a>uJ;n++)a=fJ(r,t,DEe(a));return a>uJ&&LEe.log("interp2d didn't converge quickly",a),r};function fJ(e,r,t){var a=0,n,i,o,l,s,u,f,c,v,d,p,m,y;for(l=0;l<r.length;l++){for(n=r[l],i=n[0],o=n[1],p=e[i][o],d=0,v=0,s=0;s<4;s++)u=CEe[s],f=e[i+u[0]],f&&(c=f[o+u[1]],c!==void 0&&(d===0?m=y=c:(m=Math.min(m,c),y=Math.max(y,c)),v++,d+=c));if(v===0)throw"iterateInterp2d order is wrong: no defined neighbors";e[i][o]=d/v,p===void 0?v<4&&(a=1):(e[i][o]=(1+t)*e[i][o]-t*p,y>m&&(a=Math.max(a,Math.abs(e[i][o]-p)/(y-m))))}return a}});var dJ=z((OQe,hJ)=>{"use strict";var EEe=ke().maxRowLength;hJ.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=EEe(r),u,f,c,v,d,p,m,y;for(f=0;f<r.length;f++)for(u=o,o=i,i=r[f+1]||[],c=0;c<s;c++)o[c]===void 0&&(p=(o[c-1]!==void 0?1:0)+(o[c+1]!==void 0?1:0)+(u[c]!==void 0?1:0)+(i[c]!==void 0?1:0),p?(f===0&&p++,c===0&&p++,f===r.length-1&&p++,c===o.length-1&&p++,p<4&&(a[[f,c]]=[f,c,p]),t.push([f,c,p])):n.push([f,c]));for(;n.length;){for(m={},y=!1,d=n.length-1;d>=0;d--)v=n[d],f=v[0],c=v[1],p=((a[[f-1,c]]||l)[2]+(a[[f+1,c]]||l)[2]+(a[[f,c-1]]||l)[2]+(a[[f,c+1]]||l)[2])/20,p&&(m[v]=[f,c,p],n.splice(d,1),y=!0);if(!y)throw"findEmpties iterated with no new neighbors";for(v in m)a[v]=m[v],t.push(m[v])}return t.sort(function(b,T){return T[2]-b[2]})}});var gJ=z((HQe,yJ)=>{"use strict";var pJ=Ar(),mJ=ke().isArrayOrTypedArray;yJ.exports=function(r,t,a,n,i,o){var l=[],s=pJ.traceIs(r,"contour"),u=pJ.traceIs(r,"histogram"),f,c,v,d=mJ(t)&&t.length>1;if(d&&!u&&o.type!=="category"){var p=t.length;if(p<=i){if(s)l=Array.from(t).slice(0,i);else if(i===1)o.type==="log"?l=[.5*t[0],2*t[0]]:l=[t[0]-.5,t[0]+.5];else if(o.type==="log"){for(l=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],v=1;v<p;v++)l.push(Math.sqrt(t[v-1]*t[v]));l.push(Math.pow(t[p-1],1.5)/Math.pow(t[p-2],.5))}else{for(l=[1.5*t[0]-.5*t[1]],v=1;v<p;v++)l.push((t[v-1]+t[v])*.5);l.push(1.5*t[p-1]-.5*t[p-2])}if(p<i){var m=l[l.length-1],y;if(o.type==="log")for(y=m/l[l.length-2],v=p;v<i;v++)m*=y,l.push(m);else for(y=m-l[l.length-2],v=p;v<i;v++)m+=y,l.push(m)}}else return s?t.slice(0,i):t.slice(0,i+1)}else{var b=r[o._id.charAt(0)+"calendar"];if(u)f=o.r2c(a,0,b);else if(mJ(t)&&t.length===1)f=t[0];else if(a===void 0)f=0;else{var T=o.type==="log"?o.d2c:o.r2c;f=T(a,0,b)}for(c=n||1,v=s?0:-.5;v<i;v++)l.push(f+c*v)}return l}});var x3=z((UQe,wJ)=>{"use strict";var bJ=Ar(),J9=ke(),g3=jr(),xJ=k0(),PEe=tJ(),REe=e0(),FEe=oJ(),zEe=sJ(),NEe=vJ(),IEe=dJ(),b3=gJ(),K9=(Kt(),Ne(aa)).BADNUM;wJ.exports=function(r,t){var a=g3.getFromId(r,t.xaxis||"x"),n=g3.getFromId(r,t.yaxis||"y"),i=bJ.traceIs(t,"contour"),o=bJ.traceIs(t,"histogram"),l=i?"best":t.zsmooth,s,u,f,c,v,d,p,m,y,b,T;if(a._minDtick=0,n._minDtick=0,o)T=PEe(r,t),c=T.orig_x,s=T.x,u=T.x0,f=T.dx,m=T.orig_y,v=T.y,d=T.y0,p=T.dy,y=T.z;else{var w=t.z;J9.isArray1D(w)?(FEe(t,a,n,"x","y",["z"]),s=t._x,v=t._y,w=t._z):(c=t.x?a.makeCalcdata(t,"x"):[],m=t.y?n.makeCalcdata(t,"y"):[],s=xJ(t,a,"x",c).vals,v=xJ(t,n,"y",m).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,y=zEe(w,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(y=BEe(s,v,y),o||(s=_J(s),v=_J(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=IEe(y),NEe(y,t._emptypoints));function x(B){l=t._input.zsmooth=t.zsmooth=!1,J9.warn('cannot use zsmooth: "fast": '+B)}function _(B){if(B.length>1){var I=(B[B.length-1]-B[0])/(B.length-1),N=Math.abs(I/100);for(b=0;b<B.length-1;b++)if(Math.abs(B[b+1]-B[b]-I)>N)return!1}return!0}t._islinear=!1,a.type==="log"||n.type==="log"?l==="fast"&&x("log axis found"):_(s)?_(v)?t._islinear=!0:l==="fast"&&x("y scale is not linear"):l==="fast"&&x("x scale is not linear");var k=J9.maxRowLength(y),M=t.xtype==="scaled"?"":s,q=b3(t,M,u,f,k,a),C=t.ytype==="scaled"?"":v,E=b3(t,C,d,p,y.length,n);t._extremes[a._id]=g3.findExtremes(a,q),t._extremes[n._id]=g3.findExtremes(n,E);var P={x:q,y:E,z:y,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&c&&(P.orig_x=c),t.yperiodalignment&&m&&(P.orig_y=m),M&&M.length===q.length-1&&(P.xCenter=M),C&&C.length===E.length-1&&(P.yCenter=C),o&&(P.xRanges=T.xRanges,P.yRanges=T.yRanges,P.pts=T.pts),i||REe(r,t,{vals:y,cLetter:"z"}),i&&t.contours&&t.contours.coloring==="heatmap"){var R={type:t.type==="contour"?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};P.xfill=b3(R,M,u,f,k,a),P.yfill=b3(R,C,d,p,y.length,n)}return[P]};function _J(e){for(var r=[],t=e.length,a=0;a<t;a++){var n=e[a];n!==K9&&r.push(n)}return r}function BEe(e,r,t){for(var a=[],n=-1,i=0;i<t.length;i++)if(r[i]!==K9){n++,a[n]=[];for(var o=0;o<t[i].length;o++)e[o]!==K9&&a[n].push(t[i][o])}return a}});var _3={};Dt(_3,{CSS_DECLARATIONS:()=>TJ,STYLE:()=>OEe});var TJ,OEe,w3=Ct(()=>{"use strict";TJ=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],OEe=TJ.map(e=>e.join(": ")+"; ").join("")});var eT=z((GQe,MJ)=>{"use strict";var AJ=(w3(),Ne(_3)),HEe=et(),Q9=ke(),Q0=null;function UEe(){if(Q0!==null)return Q0;Q0=!1;var e=Q9.isSafari()||Q9.isMacWKWebView()||Q9.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(AJ.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")Q0=r.some(function(o){return t.apply(null,o)});else{var a=HEe.tester.append("image").attr("style",AJ.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;Q0=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return Q0}MJ.exports=UEe});var T3=z((YQe,FJ)=>{"use strict";var kJ=Pr(),GEe=Ar(),YEe=et(),VEe=jr(),ho=ke(),SJ=Da(),jEe=u8(),qJ=qr(),WEe=vl().extractOpts,XEe=vl().makeColorScaleFuncFromTrace,ZEe=(Wl(),Ne(jl)),$Ee=(un(),Ne(sn)),rT=$Ee.LINE_SPACING,JEe=eT(),KEe=(w3(),Ne(_3)).STYLE,PJ="heatmap-label";function RJ(e){return e.selectAll("g."+PJ)}function LJ(e){RJ(e).remove()}FJ.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;ho.makeTraceGroups(a,t,"hm").each(function(o){var l=kJ.select(this),s=o[0],u=s.trace,f=u.xgap||0,c=u.ygap||0,v=s.z,d=s.x,p=s.y,m=s.xCenter,y=s.yCenter,b=GEe.traceIs(u,"contour"),T=b?"best":u.zsmooth,w=v.length,x=ho.maxRowLength(v),_=!1,k=!1,M,q,C,E,P,R,B,I;for(R=0;M===void 0&&R<d.length-1;)M=n.c2p(d[R]),R++;for(R=d.length-1;q===void 0&&R>0;)q=n.c2p(d[R]),R--;for(q<M&&(C=q,q=M,M=C,_=!0),R=0;E===void 0&&R<p.length-1;)E=i.c2p(p[R]),R++;for(R=p.length-1;P===void 0&&R>0;)P=i.c2p(p[R]),R--;P<E&&(C=E,E=P,P=C,k=!0),b&&(m=d,y=p,d=s.xfill,p=s.yfill);var N="default";if(T?N=T==="best"?"smooth":"fast":u._islinear&&f===0&&c===0&&JEe()&&(N="fast"),N!=="fast"){var H=T==="best"?0:.5;M=Math.max(-H*n._length,M),q=Math.min((1+H)*n._length,q),E=Math.max(-H*i._length,E),P=Math.min((1+H)*i._length,P)}var G=Math.round(q-M),Y=Math.round(P-E),j=M>=n._length||q<=0||E>=i._length||P<=0;if(j){var W=l.selectAll("image").data([]);W.exit().remove(),LJ(l);return}var V,J;N==="fast"?(V=x,J=w):(V=G,J=Y);var re=document.createElement("canvas");re.width=V,re.height=J;var le=re.getContext("2d",{willReadFrequently:!0}),ne=XEe(u,{noNumericCheck:!0,returnArray:!0}),$,ce;N==="fast"?($=_?function(nt){return x-1-nt}:ho.identity,ce=k?function(nt){return w-1-nt}:ho.identity):($=function(nt){return ho.constrain(Math.round(n.c2p(d[nt])-M),0,G)},ce=function(nt){return ho.constrain(Math.round(i.c2p(p[nt])-E),0,Y)});var te=ce(0),ge=[te,te],se=_?0:1,oe=k?0:1,Ae=0,Pe=0,me=0,Ce=0,Me,Le,Se,Ee,qe;function Ue(nt,La=0){if(nt===void 0)return[0,0,0,0];var Wr=ne(nt);return Wr[0]=Math.round(Wr[0]),Wr[1]=Math.round(Wr[1]),Wr[2]=Math.round(Wr[2]),Ae+=La,Pe+=Wr[0]*La,me+=Wr[1]*La,Ce+=Wr[2]*La,Wr}function Je(nt,La,Wr,qu){var Ht=nt[Wr.bin0];if(Ht===void 0)return Ue(void 0,1);var $n=nt[Wr.bin1],On=La[Wr.bin0],ta=La[Wr.bin1],dc=$n-Ht||0,gs=On-Ht||0,Hn;return $n===void 0?ta===void 0?Hn=0:On===void 0?Hn=2*(ta-Ht):Hn=(2*ta-On-Ht)*2/3:ta===void 0?On===void 0?Hn=0:Hn=(2*Ht-$n-On)*2/3:On===void 0?Hn=(2*ta-$n-Ht)*2/3:Hn=ta+Ht-$n-On,Ue(Ht+Wr.frac*dc+qu.frac*(gs+Wr.frac*Hn))}if(N!=="default"){var Ke=0,De;try{De=new Uint8Array(V*J*4)}catch(nt){De=new Array(V*J*4)}if(N==="smooth"){var Be=m||d,er=y||p,ae=new Array(Be.length),be=new Array(er.length),Ge=new Array(G),sr=m?DJ:CJ,vr=y?DJ:CJ,ue,xe,Ie;for(R=0;R<Be.length;R++)ae[R]=Math.round(n.c2p(Be[R])-M);for(R=0;R<er.length;R++)be[R]=Math.round(i.c2p(er[R])-E);for(R=0;R<G;R++)Ge[R]=sr(R,ae);for(B=0;B<Y;B++)for(ue=vr(B,be),xe=v[ue.bin0],Ie=v[ue.bin1],R=0;R<G;R++,Ke+=4)qe=Je(xe,Ie,Ge[R],ue),EJ(De,Ke,qe)}else for(B=0;B<w;B++)for(Ee=v[B],ge=ce(B),R=0;R<x;R++)qe=Ue(Ee[R],1),Ke=(ge*x+$(R))*4,EJ(De,Ke,qe);var We=le.createImageData(V,J);try{We.data.set(De)}catch(nt){var Oe=We.data,Xe=Oe.length;for(B=0;B<Xe;B++)Oe[B]=De[B]}le.putImageData(We,0,0)}else{var Qe=Math.floor(f/2),_r=Math.floor(c/2);for(B=0;B<w;B++)if(Ee=v[B],ge.reverse(),ge[oe]=ce(B+1),!(ge[0]===ge[1]||ge[0]===void 0||ge[1]===void 0))for(Le=$(0),Me=[Le,Le],R=0;R<x;R++)Me.reverse(),Me[se]=$(R+1),!(Me[0]===Me[1]||Me[0]===void 0||Me[1]===void 0)&&(Se=Ee[R],qe=Ue(Se,(Me[1]-Me[0])*(ge[1]-ge[0])),le.fillStyle="rgba("+qe.join(",")+")",le.fillRect(Me[0]+Qe,ge[0]+_r,Me[1]-Me[0]-f,ge[1]-ge[0]-c))}if(Ae){Pe=Math.round(Pe/Ae),me=Math.round(me/Ae),Ce=Math.round(Ce/Ae);let nt=`rgb(${Pe}, ${me}, ${Ce})`;e._hmpixcount=(e._hmpixcount||0)+Ae,e._hmlumcount=(e._hmlumcount||0)+Ae*qJ.luminosity(nt)}var gr=l.selectAll("image").data(o);gr.enter().append("svg:image").attr({xmlns:ZEe.svg,preserveAspectRatio:"none"}),gr.attr({height:Y,width:G,x:M,y:E,"xlink:href":re.toDataURL("image/png")}),N==="fast"&&!T&&gr.attr("style",KEe),LJ(l);var Re=u.texttemplate;if(Re){var Ze=WEe(u),ze={type:"linear",range:[Ze.min,Ze.max],_separators:n._separators,_numFormat:n._numFormat},rr=u.type==="histogram2dcontour",cr=u.type==="contour",pr=cr?1:0,mr=cr?w-1:w,ie=cr?1:0,ye=cr?x-1:x,Fe=[];for(R=pr;R<mr;R++){var He;if(cr)He=s.y[R];else if(rr){if(R===0||R===w-1)continue;He=s.y[R]}else if(s.yCenter)He=s.yCenter[R];else{if(R+1===w&&s.y[R+1]===void 0)continue;He=(s.y[R]+s.y[R+1])/2}var Gr=Math.round(i.c2p(He));if(!(0>Gr||Gr>i._length))for(B=ie;B<ye;B++){var rt;if(cr)rt=s.x[B];else if(rr){if(B===0||B===x-1)continue;rt=s.x[B]}else if(s.xCenter)rt=s.xCenter[B];else{if(B+1===x&&s.x[B+1]===void 0)continue;rt=(s.x[B]+s.x[B+1])/2}var qt=Math.round(n.c2p(rt));if(!(0>qt||qt>n._length)){var gt=jEe({x:rt,y:He},u,e._fullLayout);gt.x=rt,gt.y=He;var Ut=s.z[R][B];Ut===void 0?(gt.z="",gt.zLabel=""):(gt.z=Ut,gt.zLabel=VEe.tickText(ze,Ut,"hover").text);var Bt=s.text&&s.text[R]&&s.text[R][B];(Bt===void 0||Bt===!1)&&(Bt=""),gt.text=Bt;var Fa=ho.texttemplateString({data:[gt,u._meta],fallback:u.texttemplatefallback,labels:gt,locale:e._fullLayout._d3locale,template:Re});if(Fa){var kt=Fa.split("<br>"),Zt=kt.length,$t=0;for(I=0;I<Zt;I++)$t=Math.max($t,kt[I].length);Fe.push({l:Zt,c:$t,t:Fa,x:qt,y:Gr,z:Ut})}}}}var Lt=u.textfont,ra=Lt.size,sa=e._fullLayout.font.size;if(!ra||ra==="auto"){var Ot=1/0,tr=1/0,tt=0,Yr=0;for(I=0;I<Fe.length;I++){var ft=Fe[I];if(tt=Math.max(tt,ft.l),Yr=Math.max(Yr,ft.c),I<Fe.length-1){var Ft=Fe[I+1],qa=Math.abs(Ft.x-ft.x),at=Math.abs(Ft.y-ft.y);qa&&(Ot=Math.min(Ot,qa)),at&&(tr=Math.min(tr,at))}}!isFinite(Ot)||!isFinite(tr)?ra=sa:(Ot-=f,tr-=c,Ot/=Yr,tr/=tt,Ot/=rT/2,tr/=rT,ra=Math.min(Math.floor(Ot),Math.floor(tr),sa))}if(ra<=0||!isFinite(ra))return;var bt=function(nt){return nt.x},ma=function(nt){return nt.y-ra*(nt.l*rT/2-1)},pi=RJ(l).data(Fe);pi.enter().append("g").classed(PJ,1).append("text").attr("text-anchor","middle").each(function(nt){var La=kJ.select(this),Wr=Lt.color;(!Wr||Wr==="auto")&&(Wr=qJ.contrast(nt.z===void 0?e._fullLayout.plot_bgcolor:`rgba(${ne(nt.z).map(Math.round).join()})`)),La.attr("data-notex",1).call(SJ.positionText,bt(nt),ma(nt)).call(YEe.font,{family:Lt.family,size:ra,color:Wr,weight:Lt.weight,style:Lt.style,variant:Lt.variant,textcase:Lt.textcase,lineposition:Lt.lineposition,shadow:Lt.shadow}).text(nt.t).call(SJ.convertToTspans,e)})}})};function CJ(e,r){var t=r.length-2,a=ho.constrain(ho.findBin(e,r),0,t),n=r[a],i=r[a+1],o=ho.constrain(a+(e-n)/(i-n)-.5,0,t),l=Math.round(o),s=Math.abs(o-l);return!o||o===t||!s?{bin0:l,bin1:l,frac:0}:{bin0:l,frac:s,bin1:Math.round(l+s/(o-l))}}function DJ(e,r){var t=r.length-1,a=ho.constrain(ho.findBin(e,r),0,t),n=r[a],i=r[a+1],o=(e-n)/(i-n)||0;return o<=0?{bin0:a,bin1:a,frac:0}:o<.5?{bin0:a,bin1:a+1,frac:o}:{bin0:a+1,bin1:a,frac:1-o}}function EJ(e,r,t){e[r]=t[0],e[r+1]=t[1],e[r+2]=t[2],e[r+3]=Math.round(t[3]*255)}});var tT=z((VQe,zJ)=>{"use strict";zJ.exports={min:"zmin",max:"zmax"}});var A3=z((jQe,NJ)=>{"use strict";var QEe=Pr();NJ.exports=function(r){QEe.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var k3=z((WQe,BJ)=>{"use strict";var IJ=Yn(),c2=ke(),M3=c2.isArrayOrTypedArray,ePe=jr(),rPe=vl().extractOpts;BJ.exports=function(r,t,a,n,i){i||(i={});var o=i.isContour,l=r.cd[0],s=l.trace,u=r.xa,f=r.ya,c=l.x,v=l.y,d=l.z,p=l.xCenter,m=l.yCenter,y=l.zmask,b=s.zhoverformat,T=c,w=v,x,_,k,M;if(r.index!==!1){try{k=Math.round(r.index[1]),M=Math.round(r.index[0])}catch(W){c2.error("Error hovering on heatmap, pointNumber must be [row,col], found:",r.index);return}if(k<0||k>=d[0].length||M<0||M>d.length)return}else{if(IJ.inbox(t-c[0],t-c[c.length-1],0)>0||IJ.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var q;for(T=[2*c[0]-c[1]],q=1;q<c.length;q++)T.push((c[q]+c[q-1])/2);for(T.push([2*c[c.length-1]-c[c.length-2]]),w=[2*v[0]-v[1]],q=1;q<v.length;q++)w.push((v[q]+v[q-1])/2);w.push([2*v[v.length-1]-v[v.length-2]])}k=Math.max(0,Math.min(T.length-2,c2.findBin(t,T))),M=Math.max(0,Math.min(w.length-2,c2.findBin(a,w)))}var C=u.c2p(c[k]),E=u.c2p(c[k+1]),P=f.c2p(v[M]),R=f.c2p(v[M+1]),B,I;o?(B=l.orig_x||c,I=l.orig_y||v,E=C,x=B[k],R=P,_=I[M]):(B=l.orig_x||p||c,I=l.orig_y||m||v,x=p?B[k]:(B[k]+B[k+1])/2,_=m?I[M]:(I[M]+I[M+1])/2,u&&u.type==="category"&&(x=c[k]),f&&f.type==="category"&&(_=v[M]),s.zsmooth&&(C=E=u.c2p(x),P=R=f.c2p(_)));var N=d[M][k];if(y&&!y[M][k]&&(N=void 0),!(N===void 0&&!s.hoverongaps)){var H;M3(l.hovertext)&&M3(l.hovertext[M])?H=l.hovertext[M][k]:M3(l.text)&&M3(l.text[M])&&(H=l.text[M][k]);var G=rPe(s),Y={type:"linear",range:[G.min,G.max],hoverformat:b,_separators:u._separators,_numFormat:u._numFormat},j=ePe.tickText(Y,N,"hover").text;return[c2.extendFlat(r,{index:s._after2before?s._after2before[M][k]:[M,k],distance:r.maxHoverDistance,spikeDistance:r.maxSpikeDistance,x0:C,x1:E,y0:P,y1:R,xLabelVal:x,yLabelVal:_,zLabelVal:N,zLabel:j,text:H})]}}});var HJ=z((XQe,OJ)=>{"use strict";OJ.exports={attributes:u2(),supplyDefaults:E$(),calc:x3(),plot:T3(),colorbar:tT(),style:A3(),hoverPoints:k3(),moduleType:"trace",name:"heatmap",basePlotModule:lo(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var GJ=z((ZQe,UJ)=>{"use strict";UJ.exports=HJ()});var aT=z(($Qe,YJ)=>{"use strict";YJ.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var VJ={};Dt(VJ,{eventDataKeys:()=>tPe});var tPe,jJ=Ct(()=>{"use strict";tPe=["binNumber"]});var S3=z((JQe,$J)=>{"use strict";var ci=zf(),WJ=Fo().axisHoverFormat,{hovertemplateAttrs:aPe,texttemplateAttrs:nPe,templatefallbackAttrs:XJ}=gi(),nT=Ia(),ZJ=aT(),iPe=(jJ(),Ne(VJ)),iT=St().extendFlat;$J.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:WJ("x"),yhoverformat:WJ("y"),text:iT({},ci.text,{}),hovertext:iT({},ci.hovertext,{}),orientation:ci.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:ZJ("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:ZJ("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:aPe({},{keys:iPe.eventDataKeys}),hovertemplatefallback:XJ(),texttemplate:nPe({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:XJ({editType:"plot"}),textposition:iT({},ci.textposition,{arrayOk:!1}),textfont:nT({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:nT({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:nT({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:ci.insidetextanchor,textangle:ci.textangle,cliponaxis:ci.cliponaxis,constraintext:ci.constraintext,marker:ci.marker,offsetgroup:ci.offsetgroup,alignmentgroup:ci.alignmentgroup,selected:ci.selected,unselected:ci.unselected,zorder:ci.zorder}});var eK=z((KQe,QJ)=>{"use strict";var JJ=Ar(),v2=ke(),KJ=qr(),oPe=Nf().handleText,lPe=g9(),sPe=S3();QJ.exports=function(r,t,a,n){function i(T,w){return v2.coerce(r,t,sPe,T,w)}var o=i("x"),l=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");oPe(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",l&&!o?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",d=o&&l?Math.min(v2.minRowLength(o)&&v2.minRowLength(l)):v2.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=JJ.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[v];m&&i("histfunc"),i("histnorm"),i("autobin"+c),lPe(r,t,i,a,n),v2.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,b=JJ.getComponentMethod("errorbars","supplyDefaults");b(r,t,y||KJ.defaultLine,{axis:"y"}),b(r,t,y||KJ.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var L3=z((QQe,aK)=>{"use strict";var h2=ke(),uPe=Ca(),q3=Ar().traceIs,fPe=Fd(),cPe=Nf().validateCornerradius,rK=h2.nestedProperty,oT=wf().getAxisGroup,tK=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],vPe=["x","y"];aK.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(N,H){return h2.coerce(l._input,l,l._module.attributes,N,H)}function m(N){return N.orientation==="v"?"x":"y"}function y(N,H){var G=uPe.getFromTrace({_fullLayout:t},N,H);return G.type}function b(N,H,G){var Y=N.uid+"__"+G;H||(H=Y);var j=y(N,G),W=N[G+"calendar"]||"",V=a[H],J=!0;V&&(j===V.axType&&W===V.calendar?(J=!1,V.traces.push(N),V.dirs.push(G)):(H=Y,j!==V.axType&&h2.warn(["Attempted to group the bins of trace",N.index,"set on a","type:"+j,"axis","with bins on","type:"+V.axType,"axis."].join(" ")),W!==V.calendar&&h2.warn(["Attempted to group the bins of trace",N.index,"set with a",W,"calendar","with bins",V.calendar?"on a "+V.calendar+" calendar":"w/o a set calendar"].join(" ")))),J&&(a[H]={traces:[N],dirs:[G],axType:j,calendar:N[G+"calendar"]||""}),N["_"+G+"bingroup"]=H}for(c=0;c<r.length;c++)if(l=r[c],q3(l,"histogram")){if(n.push(l),delete l._xautoBinFinished,delete l._yautoBinFinished,l.type==="histogram"){var T=p("marker.cornerradius",t.barcornerradius);l.marker&&(l.marker.cornerradius=cPe(T))}q3(l,"2dMap")||fPe(l._input,l,t,p,t.barmode)}var w=t._alignmentOpts||{};for(c=0;c<n.length;c++){if(l=n[c],u="",!q3(l,"2dMap")){if(f=m(l),t.barmode==="group"&&l.alignmentgroup){var x=l[f+"axis"],_=oT(t,x)+l.orientation;(w[_]||{})[l.alignmentgroup]&&(u=_)}!u&&t.barmode!=="overlay"&&(u=oT(t,l.xaxis)+oT(t,l.yaxis)+m(l))}u?(i[u]||(i[u]=[]),i[u].push(l)):o.push(l)}for(u in i){if(s=i[u],s.length===1){o.push(s[0]);continue}var k=!1;for(s.length&&(l=s[0],k=p("bingroup")),u=k||u,c=0;c<s.length;c++){l=s[c];var M=l._input.bingroup;M&&M!==u&&h2.warn(["Trace",l.index,"must match","within bingroup",u+".","Ignoring its bingroup:",M,"setting."].join(" ")),l.bingroup=u,b(l,u,m(l))}}for(c=0;c<o.length;c++){l=o[c];var q=p("bingroup");if(q3(l,"2dMap"))for(d=0;d<2;d++){f=vPe[d];var C=p(f+"bingroup",q?q+"__"+f:null);b(l,C,f)}else b(l,q,m(l))}for(u in a){var E=a[u];for(s=E.traces,v=0;v<tK.length;v++){var P=tK[v],R=P.name,B,I;if(!(R==="nbins"&&E.sizeFound)){for(c=0;c<s.length;c++){if(l=s[c],f=E.dirs[c],B=P.aStr[f],rK(l._input,B).get()!==void 0){E[R]=p(B),E[R+"Found"]=!0;break}I=(l._autoBin||{})[f]||{},I[R]&&rK(l,B).set(I[R])}if(R==="start"||R==="end")for(;c<s.length;c++)l=s[c],l["_"+f+"bingroup"]&&(I=(l._autoBin||{})[f]||{},p(B,I[R]));R==="nbins"&&!E.sizeFound&&!E.nbinsFound&&(l=s[0],E[R]=p(B))}}}}});var iK=z((eer,nK)=>{"use strict";var hPe=k9().hoverPoints,dPe=jr().hoverLabelText;nK.exports=function(r,t,a,n,i){var o=hPe(r,t,a,n,i);if(o){r=o[0];var l=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=dPe(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var lT=z((rer,oK)=>{"use strict";oK.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=o,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex,r.pointIndices=o}return r}});var sK=z((ter,lK)=>{"use strict";lK.exports={attributes:S3(),layoutAttributes:n3(),supplyDefaults:eK(),crossTraceDefaults:L3(),supplyLayoutDefaults:b9(),calc:$9().calc,crossTraceCalc:yg().crossTraceCalc,plot:A9().plot,layerName:"barlayer",style:j0().style,styleOnSelect:j0().styleOnSelect,colorbar:Ud(),hoverPoints:iK(),selectPoints:S9(),eventData:lT(),moduleType:"trace",name:"histogram",basePlotModule:lo(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var fK=z((aer,uK)=>{"use strict";uK.exports=sK()});var D3=z((ner,hK)=>{"use strict";var Ko=S3(),cK=aT(),C3=u2(),pPe=Gn(),sT=Fo().axisHoverFormat,{hovertemplateAttrs:mPe,texttemplateAttrs:yPe,templatefallbackAttrs:vK}=gi(),gPe=cl(),d2=St().extendFlat;hK.exports=d2({x:Ko.x,y:Ko.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Ko.histnorm,histfunc:Ko.histfunc,nbinsx:Ko.nbinsx,xbins:cK("x"),nbinsy:Ko.nbinsy,ybins:cK("y"),autobinx:Ko.autobinx,autobiny:Ko.autobiny,bingroup:d2({},Ko.bingroup,{}),xbingroup:d2({},Ko.bingroup,{}),ybingroup:d2({},Ko.bingroup,{}),xgap:C3.xgap,ygap:C3.ygap,zsmooth:C3.zsmooth,xhoverformat:sT("x"),yhoverformat:sT("y"),zhoverformat:sT("z",1),hovertemplate:mPe({},{keys:["z"]}),hovertemplatefallback:vK(),texttemplate:yPe({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:vK({editType:"plot"}),textfont:C3.textfont,showlegend:d2({},pPe.showlegend,{dflt:!1})},gPe("",{cLetter:"z",autoColorDflt:!1}))});var uT=z((ier,pK)=>{"use strict";var bPe=Ar(),dK=ke();pK.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=dK.minRowLength(i),s=dK.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=bPe.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y"],n);var f=a("z")||a("marker.color");f&&a("histfunc"),a("histnorm"),a("autobinx"),a("autobiny")}});var yK=z((oer,mK)=>{"use strict";var xPe=ke(),_Pe=uT(),wPe=G9(),TPe=Xl(),APe=f2(),MPe=D3();mK.exports=function(r,t,a,n){function i(o,l){return xPe.coerce(r,t,MPe,o,l)}_Pe(r,t,i,n),t.visible!==!1&&(wPe(r,t,i,n),TPe(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),i("hovertemplatefallback"),APe(i,n),i("xhoverformat"),i("yhoverformat"))}});var xK=z((ler,bK)=>{"use strict";var kPe=k3(),gK=jr().hoverLabelText;bK.exports=function(r,t,a,n,i){var o=kPe(r,t,a,n,i);if(o){r=o[0];var l=r.index,s=l[0],u=l[1],f=r.cd[0],c=f.trace,v=f.xRanges[u],d=f.yRanges[s];return r.xLabel=gK(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=gK(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var wK=z((ser,_K)=>{"use strict";_K.exports={attributes:D3(),supplyDefaults:yK(),crossTraceDefaults:L3(),calc:x3(),plot:T3(),layerName:"heatmaplayer",colorbar:tT(),style:A3(),hoverPoints:xK(),eventData:lT(),moduleType:"trace",name:"histogram2d",basePlotModule:lo(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var AK=z((uer,TK)=>{"use strict";TK.exports=wK()});var E3={};Dt(E3,{COMPARISON_OPS:()=>SPe,COMPARISON_OPS2:()=>qPe,CONSTRAINT_REDUCTION:()=>DPe,INTERVAL_OPS:()=>LPe,SET_OPS:()=>CPe});var SPe,qPe,LPe,CPe,DPe,P3=Ct(()=>{"use strict";SPe=["=","!=","<",">=",">","<="],qPe=["=","<",">=",">","<="],LPe=["[]","()","[)","(]","][",")(","](",")["],CPe=["{}","}{"],DPe={"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}});var F3=z((fer,qK)=>{"use strict";var Sa=u2(),R3=Qi(),kK=Fo(),fT=kK.axisHoverFormat,EPe=kK.descriptionOnlyNumbers,PPe=cl(),RPe=Ui().dash,FPe=Ia(),ev=St().extendFlat,SK=(P3(),Ne(E3)),zPe=SK.COMPARISON_OPS2,NPe=SK.INTERVAL_OPS,MK=R3.line;qK.exports=ev({z:Sa.z,x:Sa.x,x0:Sa.x0,dx:Sa.dx,y:Sa.y,y0:Sa.y0,dy:Sa.dy,xperiod:Sa.xperiod,yperiod:Sa.yperiod,xperiod0:R3.xperiod0,yperiod0:R3.yperiod0,xperiodalignment:Sa.xperiodalignment,yperiodalignment:Sa.yperiodalignment,text:Sa.text,hovertext:Sa.hovertext,transpose:Sa.transpose,xtype:Sa.xtype,ytype:Sa.ytype,xhoverformat:fT("x"),yhoverformat:fT("y"),zhoverformat:fT("z",1),hovertemplate:Sa.hovertemplate,hovertemplatefallback:Sa.hovertemplatefallback,texttemplate:ev({},Sa.texttemplate,{}),texttemplatefallback:Sa.texttemplatefallback,textfont:ev({},Sa.textfont,{}),hoverongaps:Sa.hoverongaps,connectgaps:ev({},Sa.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:FPe({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:EPe("contour label")},operation:{valType:"enumerated",values:[].concat(zPe).concat(NPe),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:ev({},MK.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:RPe,smoothing:ev({},MK.smoothing,{}),editType:"plot"},zorder:R3.zorder},PPe("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var vT=z((cer,CK)=>{"use strict";var xn=D3(),Ll=F3(),IPe=cl(),cT=Fo().axisHoverFormat,LK=St().extendFlat;CK.exports=LK({x:xn.x,y:xn.y,z:xn.z,marker:xn.marker,histnorm:xn.histnorm,histfunc:xn.histfunc,nbinsx:xn.nbinsx,xbins:xn.xbins,nbinsy:xn.nbinsy,ybins:xn.ybins,autobinx:xn.autobinx,autobiny:xn.autobiny,bingroup:xn.bingroup,xbingroup:xn.xbingroup,ybingroup:xn.ybingroup,autocontour:Ll.autocontour,ncontours:Ll.ncontours,contours:Ll.contours,line:{color:Ll.line.color,width:LK({},Ll.line.width,{dflt:.5}),dash:Ll.line.dash,smoothing:Ll.line.smoothing,editType:"plot"},xhoverformat:cT("x"),yhoverformat:cT("y"),zhoverformat:cT("z",1),hovertemplate:xn.hovertemplate,hovertemplatefallback:xn.hovertemplatefallback,texttemplate:Ll.texttemplate,texttemplatefallback:Ll.texttemplatefallback,textfont:Ll.textfont},IPe("",{cLetter:"z",editTypeOverride:"calc"}))});var hT=z((ver,DK)=>{"use strict";DK.exports=function(r,t,a,n){var i=n("contours.start"),o=n("contours.end"),l=i===!1||o===!1,s=a("contours.size"),u;l?u=t.autocontour=!0:u=a("autocontour",!1),(u||!s)&&a("ncontours")}});var dT=z((her,EK)=>{"use strict";var BPe=ke();EK.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;BPe.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var pT=z((der,PK)=>{"use strict";var OPe=Xl(),HPe=dT();PK.exports=function(r,t,a,n,i){var o=a("contours.coloring"),l,s="";o==="fill"&&(l=a("contours.showlines")),l!==!1&&(o!=="lines"&&(s=a("line.color","#000")),a("line.width",.5),a("line.dash")),o!=="none"&&(r.showlegend!==!0&&(t.showlegend=!1),t._dfltShowLegend=!1,OPe(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),HPe(a,n,s,i)}});var NK=z((per,zK)=>{"use strict";var RK=ke(),UPe=uT(),GPe=hT(),YPe=pT(),VPe=f2(),FK=vT();zK.exports=function(r,t,a,n){function i(l,s){return RK.coerce(r,t,FK,l,s)}function o(l){return RK.coerce2(r,t,FK,l)}UPe(r,t,i,n),t.visible!==!1&&(GPe(r,t,i,o),YPe(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),i("hovertemplatefallback"),t.contours&&t.contours.coloring==="heatmap"&&VPe(i,n))}});var OK=z((mer,BK)=>{"use strict";var yT=jr(),mT=ke();BK.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=mT.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=mT.aggNums(Math.max,null,t));var o=IK(n,i,r.ncontours);a.size=o.dtick,a.start=yT.tickFirst(o),o.range.reverse(),a.end=yT.tickFirst(o),a.start===n&&(a.start+=a.size),a.end===i&&(a.end-=a.size),a.start>a.end&&(a.start=a.end=(a.start+a.end)/2),r._input.contours||(r._input.contours={}),mT.extendFlat(r._input.contours,{start:a.start,end:a.end,size:a.size}),r._input.autocontour=!0}else if(a.type!=="constraint"){var l=a.start,s=a.end,u=r._input.contours;if(l>s&&(a.start=u.start=s,s=a.end=u.end=l,l=a.start),!(a.size>0)){var f;l===s?f=1:f=IK(l,s,r.ncontours).dtick,u.size=a.size=f}}};function IK(e,r,t){var a={type:"linear",range:[e,r]};return yT.autoTicks(a,(r-e)/(t||15)),a}});var p2=z((yer,HK)=>{"use strict";HK.exports=function(r){return r.end+r.size/1e6}});var gT=z((ger,GK)=>{"use strict";var UK=vl(),jPe=x3(),WPe=OK(),XPe=p2();GK.exports=function(r,t){var a=jPe(r,t),n=a[0].z;WPe(t,n);var i=t.contours,o=UK.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=XPe(i),f=i.size||1,c=Math.floor((u-s)/f)+1;isFinite(f)||(f=1,c=1);var v=s-f/2,d=v+c*f;l=[v,d]}else l=n;return UK.calc(r,t,{vals:l,cLetter:"z"}),a}});var z3={};Dt(z3,{BOTTOMSTART:()=>ZPe,CHOOSESADDLE:()=>eRe,LABELDISTANCE:()=>tRe,LABELINCREASE:()=>aRe,LABELMAX:()=>iRe,LABELMIN:()=>nRe,LABELOPTIMIZER:()=>oRe,LEFTSTART:()=>JPe,NEWDELTA:()=>QPe,RIGHTSTART:()=>KPe,SADDLEREMAINDER:()=>rRe,TOPSTART:()=>$Pe});var ZPe,$Pe,JPe,KPe,QPe,eRe,rRe,tRe,aRe,nRe,iRe,oRe,N3=Ct(()=>{"use strict";ZPe=[1,9,13,104,713],$Pe=[4,6,7,104,713],JPe=[8,12,14,208,1114],KPe=[2,3,11,208,1114],QPe=[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],eRe={104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},rRe={1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},tRe=2,aRe=10,nRe=3,iRe=10,oRe={EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}});var VK=z((ber,YK)=>{"use strict";var I3=(N3(),Ne(z3));YK.exports=function(r){var t=r[0].z,a=t.length,n=t[0].length,i=a===2||n===2,o,l,s,u,f,c,v,d,p;for(l=0;l<a-1;l++)for(u=[],l===0&&(u=u.concat(I3.BOTTOMSTART)),l===a-2&&(u=u.concat(I3.TOPSTART)),o=0;o<n-1;o++)for(s=u.slice(),o===0&&(s=s.concat(I3.LEFTSTART)),o===n-2&&(s=s.concat(I3.RIGHTSTART)),f=o+","+l,c=[[t[l][o],t[l][o+1]],[t[l+1][o],t[l+1][o+1]]],p=0;p<r.length;p++)d=r[p],v=lRe(d.level,c),v&&(d.crossings[f]=v,s.indexOf(v)!==-1&&(d.starts.push([o,l]),i&&s.indexOf(v,s.indexOf(v)+1)!==-1&&d.starts.push([o,l])))};function lRe(e,r){var t=(r[0][0]>e?0:1)+(r[0][1]>e?0:2)+(r[1][1]>e?0:4)+(r[1][0]>e?0:8);if(t===5||t===10){var a=(r[0][0]+r[0][1]+r[1][0]+r[1][1])/4;return e>a?t===5?713:1114:t===5?104:208}return t===15?0:t}});var ZK=z((xer,XK)=>{"use strict";var B3=ke(),rv=(N3(),Ne(z3));XK.exports=function(r,t,a){var n,i,o,l,s;for(t=t||.01,a=a||.01,o=0;o<r.length;o++){for(l=r[o],s=0;s<l.starts.length;s++)i=l.starts[s],jK(l,i,"edge",t,a);for(n=0;Object.keys(l.crossings).length&&n<1e4;)n++,i=Object.keys(l.crossings)[0].split(",").map(Number),jK(l,i,void 0,t,a);n===1e4&&B3.log("Infinite loop in contour?")}};function m2(e,r,t,a){return Math.abs(e[0]-r[0])<t&&Math.abs(e[1]-r[1])<a}function sRe(e,r){var t=e[2]-r[2],a=e[3]-r[3];return Math.sqrt(t*t+a*a)}function jK(e,r,t,a,n){var i=r.join(","),o=e.crossings[i],l=uRe(o,t,r),s=[WK(e,r,[-l[0],-l[1]])],u=e.z.length,f=e.z[0].length,c=r.slice(),v=l.slice(),d;for(d=0;d<1e4;d++){if(o>20?(o=rv.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=rv.SADDLEREMAINDER[o]):delete e.crossings[i],l=rv.NEWDELTA[o],!l){B3.log("Found bad marching index:",o,r,e.level);break}s.push(WK(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),m2(s[s.length-1],s[s.length-2],a,n)&&s.pop();var p=l[0]&&(r[0]<0||r[0]>f-2)||l[1]&&(r[1]<0||r[1]>u-2),m=r[0]===c[0]&&r[1]===c[1]&&l[0]===v[0]&&l[1]===v[1];if(m||t&&p)break;o=e.crossings[i]}d===1e4&&B3.log("Infinite loop in contour?");var y=m2(s[0],s[s.length-1],a,n),b=0,T=.2*e.smoothing,w=[],x=0,_,k,M,q,C,E,P,R,B,I,N;for(d=1;d<s.length;d++)P=sRe(s[d],s[d-1]),b+=P,w.push(P);var H=b/w.length*T;function G(W){return s[W%s.length]}for(d=s.length-2;d>=x;d--)if(_=w[d],_<H){for(M=0,k=d-1;k>=x&&_+w[k]<H;k--)_+=w[k];if(y&&d===s.length-2)for(M=0;M<k&&_+w[M]<H;M++)_+=w[M];C=d-k+M+1,E=Math.floor((d+k+M+2)/2),!y&&d===s.length-2?q=s[s.length-1]:!y&&k===-1?q=s[0]:C%2?q=G(E):q=[(G(E)[0]+G(E+1)[0])/2,(G(E)[1]+G(E+1)[1])/2],s.splice(k+1,d-k+1,q),d=k+1,M&&(x=M),y&&(d===s.length-2?s[M]=s[s.length-1]:d===0&&(s[s.length-1]=s[0]))}for(s.splice(0,x),d=0;d<s.length;d++)s[d].length=2;if(!(s.length<2))if(y)s.pop(),e.paths.push(s);else{t||B3.log("Unclosed interior contour?",e.level,c.join(","),s.join("L"));var Y=!1;for(R=0;R<e.edgepaths.length;R++)if(I=e.edgepaths[R],!Y&&m2(I[0],s[s.length-1],a,n)){s.pop(),Y=!0;var j=!1;for(B=0;B<e.edgepaths.length;B++)if(N=e.edgepaths[B],m2(N[N.length-1],s[0],a,n)){j=!0,s.shift(),e.edgepaths.splice(R,1),B===R?e.paths.push(s.concat(N)):(B>R&&B--,e.edgepaths[B]=N.concat(s,I));break}j||(e.edgepaths[R]=s.concat(I))}for(R=0;R<e.edgepaths.length&&!Y;R++)I=e.edgepaths[R],m2(I[I.length-1],s[0],a,n)&&(s.shift(),e.edgepaths[R]=I.concat(s),Y=!0);Y||e.edgepaths.push(s)}}function uRe(e,r,t){var a=0,n=0;return e>20&&r?e===208||e===1114?a=t[0]===0?1:-1:n=t[1]===0?1:-1:rv.BOTTOMSTART.indexOf(e)!==-1?n=1:rv.LEFTSTART.indexOf(e)!==-1?a=1:rv.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function WK(e,r,t){var a=r[0]+Math.max(t[0],0),n=r[1]+Math.max(t[1],0),i=e.z[n][a],o=e.xaxis,l=e.yaxis;if(t[1]){var s=(e.level-i)/(e.z[n][a+1]-i),u=(s!==1?(1-s)*o.c2l(e.x[a]):0)+(s!==0?s*o.c2l(e.x[a+1]):0);return[o.c2p(o.l2c(u),!0),l.c2p(e.y[n],!0),a+s,n]}else{var f=(e.level-i)/(e.z[n+1][a]-i),c=(f!==1?(1-f)*l.c2l(e.y[n]):0)+(f!==0?f*l.c2l(e.y[n+1]):0);return[o.c2p(e.x[a],!0),l.c2p(l.l2c(c),!0),a,n+f]}}});var QK=z((_er,KK)=>{"use strict";var bT=(P3(),Ne(E3)),fRe=Br();KK.exports={"[]":$K("[]"),"][":$K("]["),">":xT(">"),"<":xT("<"),"=":xT("=")};function JK(e,r){var t=Array.isArray(r),a;function n(i){return fRe(i)?+i:null}return bT.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):bT.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:bT.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function $K(e){return function(r){r=JK(e,r);var t=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return{start:t,end:a,size:a-t}}}function xT(e){return function(r){return r=JK(e,r),{start:r,end:1/0,size:1/0}}}});var tQ=z((wer,rQ)=>{"use strict";var eQ=ke(),cRe=QK(),vRe=p2();rQ.exports=function(r,t,a){for(var n=r.type==="constraint"?cRe[r._operation](r.value):r,i=n.size,o=[],l=vRe(n),s=a.trace._carpetTrace,u=s?{xaxis:s.aaxis,yaxis:s.baxis,x:a.a,y:a.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:a.x,y:a.y},f=n.start;f<l;f+=i)if(o.push(eQ.extendFlat({level:f,crossings:{},starts:[],edgepaths:[],paths:[],z:a.z,smoothing:a.trace.line.smoothing},u)),o.length>1e3){eQ.warn("Too many contours, clipping at 1000",r);break}return o}});var iQ=z((Ter,nQ)=>{"use strict";var tv=ke();nQ.exports=function(e,r){var t,a,n,i=function(s){return s.reverse()},o=function(s){return s};switch(r){case"=":case"<":return e;case">":for(e.length!==1&&tv.warn("Contour data invalid for the specified inequality operation."),a=e[0],t=0;t<a.edgepaths.length;t++)a.edgepaths[t]=i(a.edgepaths[t]);for(t=0;t<a.paths.length;t++)a.paths[t]=i(a.paths[t]);for(t=0;t<a.starts.length;t++)a.starts[t]=i(a.starts[t]);return e;case"][":var l=i;i=o,o=l;case"[]":for(e.length!==2&&tv.warn("Contour data invalid for the specified inequality range operation."),a=aQ(e[0]),n=aQ(e[1]),t=0;t<a.edgepaths.length;t++)a.edgepaths[t]=i(a.edgepaths[t]);for(t=0;t<a.paths.length;t++)a.paths[t]=i(a.paths[t]);for(t=0;t<a.starts.length;t++)a.starts[t]=i(a.starts[t]);for(;n.edgepaths.length;)a.edgepaths.push(o(n.edgepaths.shift()));for(;n.paths.length;)a.paths.push(o(n.paths.shift()));for(;n.starts.length;)a.starts.push(o(n.starts.shift()));return[a]}};function aQ(e){return tv.extendFlat({},e,{edgepaths:tv.extendDeep([],e.edgepaths),paths:tv.extendDeep([],e.paths),starts:tv.extendDeep([],e.starts)})}});var lQ=z((Aer,oQ)=>{"use strict";oQ.exports=function(e,r){var t=e[0],a=t.z,n;switch(r.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(n=0;n<e.length;n++){var o=e[n];o.prefixBoundary=!o.edgepaths.length&&(i>o.level||o.starts.length&&i===o.level)}break;case"constraint":if(t.prefixBoundary=!1,t.edgepaths.length)return;var l=t.x.length,s=t.y.length,u=-1/0,f=1/0;for(n=0;n<s;n++)f=Math.min(f,a[n][0]),f=Math.min(f,a[n][l-1]),u=Math.max(u,a[n][0]),u=Math.max(u,a[n][l-1]);for(n=1;n<l-1;n++)f=Math.min(f,a[0][n]),f=Math.min(f,a[s-1][n]),u=Math.max(u,a[0][n]),u=Math.max(u,a[s-1][n]);var c=r.value,v,d;switch(r._operation){case">":c>u&&(t.prefixBoundary=!0);break;case"<":(c<f||t.starts.length&&c===f)&&(t.prefixBoundary=!0);break;case"[]":v=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),(d<f||v>u||t.starts.length&&d===f)&&(t.prefixBoundary=!0);break;case"][":v=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),v<f&&d>u&&(t.prefixBoundary=!0);break}break}}});var _T=z(Bn=>{"use strict";var g2=Pr(),en=ke(),fs=et(),hRe=vl(),fQ=Da(),sQ=jr(),uQ=l0(),dRe=T3(),cQ=VK(),vQ=ZK(),pRe=tQ(),mRe=iQ(),hQ=lQ(),y2=(N3(),Ne(z3)),Cl=y2.LABELOPTIMIZER;Bn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;en.makeTraceGroups(n,a,"contour").each(function(l){var s=g2.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=pRe(d,t,u),m=en.ensureSingle(s,"g","heatmapcoloring"),y=[];d.coloring==="heatmap"&&(y=[l]),dRe(r,t,y,m),cQ(p),vQ(p);var b=i.c2p(c[0],!0),T=i.c2p(c[c.length-1],!0),w=o.c2p(v[0],!0),x=o.c2p(v[v.length-1],!0),_=[[b,x],[T,x],[T,w],[b,w]],k=p;d.type==="constraint"&&(k=mRe(p,d._operation)),yRe(s,_,d),gRe(s,k,_,d),bRe(s,p,r,u,d),_Re(s,t,r,u,_)})};function yRe(e,r,t){var a=en.ensureSingle(e,"g","contourbg"),n=a.selectAll("path").data(t.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+r.join("L")+"Z").style("stroke","none")}function gRe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&hQ(r,a);var o=en.ensureSingle(e,"g","contourfill"),l=o.selectAll("path").data(n?r:[]);l.enter().append("path"),l.exit().remove(),l.each(function(s){var u=(s.prefixBoundary?i:"")+dQ(s,t);u?g2.select(this).attr("d",u).style("stroke","none"):g2.select(this).remove()})}function dQ(e,r){var t="",a=0,n=e.edgepaths.map(function(b,T){return T}),i=!0,o,l,s,u,f,c;function v(b){return Math.abs(b[1]-r[0][1])<.01}function d(b){return Math.abs(b[1]-r[2][1])<.01}function p(b){return Math.abs(b[0]-r[0][0])<.01}function m(b){return Math.abs(b[0]-r[2][0])<.01}for(;n.length;){for(c=fs.smoothopen(e.edgepaths[a],e.smoothing),t+=i?c:c.replace(/^M/,"L"),n.splice(n.indexOf(a),1),o=e.edgepaths[a][e.edgepaths[a].length-1],u=-1,s=0;s<4;s++){if(!o){en.log("Missing end?",a,e);break}for(v(o)&&!m(o)?l=r[1]:p(o)?l=r[0]:d(o)?l=r[3]:m(o)&&(l=r[2]),f=0;f<e.edgepaths.length;f++){var y=e.edgepaths[f][0];Math.abs(o[0]-l[0])<.01?Math.abs(o[0]-y[0])<.01&&(y[1]-o[1])*(l[1]-y[1])>=0&&(l=y,u=f):Math.abs(o[1]-l[1])<.01?Math.abs(o[1]-y[1])<.01&&(y[0]-o[0])*(l[0]-y[0])>=0&&(l=y,u=f):en.log("endpt to newendpt is not vert. or horz.",o,l,y)}if(o=l,u>=0)break;t+="L"+l}if(u===e.edgepaths.length){en.log("unclosed perimeter path");break}a=u,i=n.indexOf(a)===-1,i&&(a=n[0],t+="Z")}for(a=0;a<e.paths.length;a++)t+=fs.smoothclosed(e.paths[a],e.smoothing);return t}function bRe(e,r,t,a,n){var i=t._context.staticPlot,o=en.ensureSingle(e,"g","contourlines"),l=n.showlines!==!1,s=n.showlabels,u=l&&s,f=Bn.createLines(o,l||s,r,i),c=Bn.createLineClip(o,u,t,a.trace.uid),v=e.selectAll("g.contourlabels").data(s?[0]:[]);if(v.exit().remove(),v.enter().append("g").classed("contourlabels",!0),s){var d=[],p=[];en.clearLocationCache();var m=Bn.labelFormatter(t,a),y=fs.tester.append("text").attr("data-notex",1).call(fs.font,n.labelfont),b=r[0].xaxis,T=r[0].yaxis,w=b._length,x=T._length,_=b.range,k=T.range,M=en.aggNums(Math.min,null,a.x),q=en.aggNums(Math.max,null,a.x),C=en.aggNums(Math.min,null,a.y),E=en.aggNums(Math.max,null,a.y),P=Math.max(b.c2p(M,!0),0),R=Math.min(b.c2p(q,!0),w),B=Math.max(T.c2p(E,!0),0),I=Math.min(T.c2p(C,!0),x),N={};_[0]<_[1]?(N.left=P,N.right=R):(N.left=R,N.right=P),k[0]<k[1]?(N.top=B,N.bottom=I):(N.top=I,N.bottom=B),N.middle=(N.top+N.bottom)/2,N.center=(N.left+N.right)/2,d.push([[N.left,N.top],[N.right,N.top],[N.right,N.bottom],[N.left,N.bottom]]);var H=Math.sqrt(w*w+x*x),G=y2.LABELDISTANCE*H/Math.max(1,r.length/y2.LABELINCREASE);f.each(function(Y){var j=Bn.calcTextOpts(Y.level,m,y,t);g2.select(this).selectAll("path").each(function(){var W=this,V=en.getVisibleSegment(W,N,j.height/2);if(V&&!(V.len<(j.width+j.height)*y2.LABELMIN))for(var J=Math.min(Math.ceil(V.len/G),y2.LABELMAX),re=0;re<J;re++){var le=Bn.findBestTextLocation(W,V,j,p,N);if(!le)break;Bn.addLabelData(le,j,p,d)}})}),y.remove(),Bn.drawLabels(v,p,t,c,u?d:null)}s&&!l&&f.remove()}Bn.createLines=function(e,r,t,a){var n=t[0].smoothing,i=e.selectAll("g.contourlevel").data(r?t:[]);if(i.exit().remove(),i.enter().append("g").classed("contourlevel",!0),r){var o=i.selectAll("path.openline").data(function(s){return s.pedgepaths||s.edgepaths});o.exit().remove(),o.enter().append("path").classed("openline",!0),o.attr("d",function(s){return fs.smoothopen(s,n)}).style("stroke-miterlimit",1).style("vector-effect",a?"none":"non-scaling-stroke");var l=i.selectAll("path.closedline").data(function(s){return s.ppaths||s.paths});l.exit().remove(),l.enter().append("path").classed("closedline",!0),l.attr("d",function(s){return fs.smoothclosed(s,n)}).style("stroke-miterlimit",1).style("vector-effect",a?"none":"non-scaling-stroke")}return i};Bn.createLineClip=function(e,r,t,a){var n=t._fullLayout._clips,i=r?"clipline"+a:null,o=n.selectAll("#"+i).data(r?[0]:[]);return o.exit().remove(),o.enter().append("clipPath").classed("contourlineclip",!0).attr("id",i),fs.setClipUrl(e,i,t),o};Bn.labelFormatter=function(e,r){var t=e._fullLayout,a=r.trace,n=a.contours,i={type:"linear",_id:"ycontour",showexponent:"all",exponentformat:"B"};if(n.labelformat)i.tickformat=n.labelformat,uQ(i,t);else{var o=hRe.extractOpts(a);if(o&&o.colorbar&&o.colorbar._axis)i=o.colorbar._axis;else{if(n.type==="constraint"){var l=n.value;en.isArrayOrTypedArray(l)?i.range=[l[0],l[l.length-1]]:i.range=[l,l]}else i.range=[n.start,n.end],i.nticks=(n.end-n.start)/n.size;i.range[0]===i.range[1]&&(i.range[1]+=i.range[0]||1),i.nticks||(i.nticks=1e3),uQ(i,t),sQ.prepTicks(i),i._tmin=null,i._tmax=null}}return function(s){return sQ.tickText(i,s).text}};Bn.calcTextOpts=function(e,r,t,a){var n=r(e);t.text(n).call(fQ.convertToTspans,a);var i=t.node(),o=fs.bBox(i,!0);return{text:n,width:o.width,height:o.height,fontSize:+i.style["font-size"].replace("px",""),level:e,dy:(o.top+o.bottom)/2}};Bn.findBestTextLocation=function(e,r,t,a,n){var i=t.width,o,l,s,u,f;r.isClosed?(l=r.len/Cl.INITIALSEARCHPOINTS,o=r.min+l/2,s=r.max):(l=(r.len-i)/(Cl.INITIALSEARCHPOINTS+1),o=r.min+l+i/2,s=r.max-(l+i)/2);for(var c=1/0,v=0;v<Cl.ITERATIONS;v++){for(var d=o;d<s;d+=l){var p=en.getTextLocation(e,r.total,d,i),m=xRe(p,t,a,n);m<c&&(c=m,f=p,u=d)}if(c>Cl.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=Cl.MAXCOST)return f};function xRe(e,r,t,a){var n=r.width/2,i=r.height/2,o=e.x,l=e.y,s=e.theta,u=Math.cos(s)*n,f=Math.sin(s)*n,c=(o>a.center?a.right-o:o-a.left)/(u+Math.abs(Math.sin(s)*i)),v=(l>a.middle?a.bottom-l:l-a.top)/(Math.abs(f)+Math.cos(s)*i);if(c<1||v<1)return 1/0;var d=Cl.EDGECOST*(1/(c-1)+1/(v-1));d+=Cl.ANGLECOST*s*s;for(var p=o-u,m=l-f,y=o+u,b=l+f,T=0;T<t.length;T++){var w=t[T],x=Math.cos(w.theta)*w.width/2,_=Math.sin(w.theta)*w.width/2,k=en.segmentDistance(p,m,y,b,w.x-x,w.y-_,w.x+x,w.y+_)*2/(r.height+w.height),M=w.level===r.level,q=M?Cl.SAMELEVELDISTANCE:1;if(k<=q)return 1/0;var C=Cl.NEIGHBORCOST*(M?Cl.SAMELEVELFACTOR:1);d+=C/(k-q)}return d}Bn.addLabelData=function(e,r,t,a){var n=r.fontSize,i=r.width+n/3,o=Math.max(0,r.height-n/3),l=e.x,s=e.y,u=e.theta,f=Math.sin(u),c=Math.cos(u),v=function(p,m){return[l+p*c-m*f,s+p*f+m*c]},d=[v(-i/2,-o/2),v(-i/2,o/2),v(i/2,o/2),v(i/2,-o/2)];t.push({text:r.text,x:l,y:s,dy:r.dy,theta:u,level:r.level,width:i,height:o}),a.push(d)};Bn.drawLabels=function(e,r,t,a,n){var i=e.selectAll("text").data(r,function(u){return u.text+","+u.x+","+u.y+","+u.theta});if(i.exit().remove(),i.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(u){var f=u.x+Math.sin(u.theta)*u.dy,c=u.y-Math.cos(u.theta)*u.dy;g2.select(this).text(u.text).attr({x:f,y:c,transform:"rotate("+180*u.theta/Math.PI+" "+f+" "+c+")"}).call(fQ.convertToTspans,t)}),n){for(var o="",l=0;l<n.length;l++)o+="M"+n[l].join("L")+"Z";var s=en.ensureSingle(a,"path","");s.attr("d",o)}};function _Re(e,r,t,a,n){var i=a.trace,o=t._fullLayout._clips,l="clip"+i.uid,s=o.selectAll("#"+l).data(i.connectgaps?[]:[0]);if(s.enter().append("clipPath").classed("contourclip",!0).attr("id",l),s.exit().remove(),i.connectgaps===!1){var u={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:r.xaxis,yaxis:r.yaxis,x:a.x,y:a.y,z:wRe(a),smoothing:0};cQ([u]),vQ([u]),hQ([u],{type:"levels"});var f=en.ensureSingle(s,"path","");f.attr("d",(u.prefixBoundary?"M"+n.join("L")+"Z":"")+dQ(u,n))}else l=null;fs.setClipUrl(e,l,t)}function wRe(e){var r=e.trace._emptypoints,t=[],a=e.z.length,n=e.z[0].length,i,o=[],l;for(i=0;i<n;i++)o.push(1);for(i=0;i<a;i++)t.push(o.slice());for(i=0;i<r.length;i++)l=r[i],t[l[0]][l[1]]=0;return e.zmask=t,t}});var TT=z((ker,pQ)=>{"use strict";var TRe=Pr(),wT=vl(),ARe=p2();pQ.exports=function(r){var t=r.contours,a=t.start,n=ARe(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=wT.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?wT.flipScale(s.colorscale):s.colorscale,f=u.length,c=new Array(f),v=new Array(f),d,p,m=s.min,y=s.max;if(t.coloring==="heatmap"){for(p=0;p<f;p++)d=u[p],c[p]=d[0]*(y-m)+m,v[p]=d[1];var b=TRe.extent([m,y,t.start,t.start+i*(o-1)]),T=b[m<y?0:1],w=b[m<y?1:0];T!==m&&(c.splice(0,0,T),v.splice(0,0,v[0])),w!==y&&(c.push(w),v.push(v[v.length-1]))}else{var x=r._input&&typeof r._input.zmin=="number"&&typeof r._input.zmax=="number";for(x&&(a<=m||n>=y)&&(a<=m&&(a=m),n>=y&&(n=y),o=Math.floor((n-a)/i)+1,l=0),p=0;p<f;p++)d=u[p],c[p]=(d[0]*(o+l-1)-l/2)*i+a,v[p]=d[1];(x||r.autocontour)&&(c[0]>m&&(c.unshift(m),v.unshift(v[0])),c[c.length-1]<y&&(c.push(y),v.push(v[v.length-1])))}return wT.makeColorScaleFunc({domain:c,range:v},{noNumericCheck:!0})}});var AT=z((Ser,yQ)=>{"use strict";var O3=Pr(),mQ=et(),MRe=A3(),kRe=TT();yQ.exports=function(r){var t=O3.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=O3.select(this),i=a[0].trace,o=i.contours,l=i.line,s=o.size||1,u=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",v=!f&&o.coloring==="fill",d=c||v?kRe(i):null;n.selectAll("g.contourlevel").each(function(y){O3.select(this).selectAll("path").call(mQ.lineGroupStyle,l.width,c?d(y.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(y){mQ.font(O3.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(y.level):l.color)})}),f)n.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(v){var m;n.selectAll("g.contourfill path").style("fill",function(y){return m===void 0&&(m=y.level),d(y.level+.5*s)}),m===void 0&&(m=u),n.selectAll("g.contourbg path").style("fill",d(m-.5*s))}}),MRe(r)}});var MT=z((qer,bQ)=>{"use strict";var gQ=vl(),SRe=TT(),qRe=p2();function LRe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=SRe(r,{isColorbar:!0});if(o==="heatmap"){var s=gQ.extractOpts(r);t._fillgradient=s.reversescale?gQ.flipScale(s.colorscale):s.colorscale,t._zrange=[s.min,s.max]}else o==="fill"&&(t._fillcolor=l);t._line={color:o==="lines"?l:n.color,width:a.showlines!==!1?n.width:0,dash:n.dash},t._levels={start:a.start,end:qRe(a),size:i}}bQ.exports={min:"zmin",max:"zmax",calc:LRe}});var kT=z((Ler,xQ)=>{"use strict";var H3=qr(),CRe=k3();xQ.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=CRe(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&H3.opacity(s.fillcolor)?l.color=H3.addOpacity(s.fillcolor,1):s.contours.showlines&&H3.opacity(s.line.color)&&(l.color=H3.addOpacity(s.line.color,1)))}),o}});var wQ=z((Cer,_Q)=>{"use strict";_Q.exports={attributes:vT(),supplyDefaults:NK(),crossTraceDefaults:L3(),calc:gT(),plot:_T().plot,layerName:"contourlayer",style:AT(),colorbar:MT(),hoverPoints:kT(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:lo(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var AQ=z((Der,TQ)=>{"use strict";TQ.exports=wQ()});var DQ=z((Eer,CQ)=>{"use strict";var MQ=Br(),DRe=dT(),qQ=qr(),kQ=qQ.addOpacity,ERe=qQ.opacity,LQ=(P3(),Ne(E3)),SQ=ke().isArrayOrTypedArray,PRe=LQ.CONSTRAINT_REDUCTION,RRe=LQ.COMPARISON_OPS2;CQ.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=PRe[c],FRe(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",kQ((r.line||{}).color||i,.5))),s){var v=f&&ERe(f)?kQ(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),DRe(a,n,u,o)};function FRe(e,r){var t;RRe.indexOf(r.operation)===-1?(e("contours.value",[0,1]),SQ(r.value)?r.value.length>2?r.value=r.value.slice(2):r.length===0?r.value=[0,1]:r.length<2?(t=parseFloat(r.value[0]),r.value=[t,t+1]):r.value=[parseFloat(r.value[0]),parseFloat(r.value[1])]:MQ(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),MQ(r.value)||(SQ(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var RQ=z((Per,PQ)=>{"use strict";var ST=ke(),zRe=U9(),NRe=A0(),IRe=DQ(),BRe=hT(),ORe=pT(),HRe=f2(),EQ=F3();PQ.exports=function(r,t,a,n){function i(u,f){return ST.coerce(r,t,EQ,u,f)}function o(u){return ST.coerce2(r,t,EQ,u)}var l=zRe(r,t,i,n);if(!l){t.visible=!1;return}NRe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hoverongaps"),i("hovertemplate"),i("hovertemplatefallback");var s=i("contours.type")==="constraint";i("connectgaps",ST.isArray1D(t.z)),s?IRe(r,t,i,n,a):(BRe(r,t,i,o),ORe(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&HRe(i,n),i("zorder")}});var zQ=z((Rer,FQ)=>{"use strict";FQ.exports={attributes:F3(),supplyDefaults:RQ(),calc:gT(),plot:_T().plot,style:AT(),colorbar:MT(),hoverPoints:kT(),moduleType:"trace",name:"contour",basePlotModule:lo(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var IQ=z((Fer,NQ)=>{"use strict";NQ.exports=zQ()});var qT=z((zer,UQ)=>{"use strict";var{hovertemplateAttrs:URe,texttemplateAttrs:GRe,templatefallbackAttrs:BQ}=gi(),YRe=zy(),Ri=Qi(),VRe=Gn(),OQ=cl(),jRe=Ui().dash,su=St().extendFlat,po=Ri.marker,b2=Ri.line,HQ=po.line;UQ.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:su({},Ri.mode,{dflt:"markers"}),text:su({},Ri.text,{}),texttemplate:GRe({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:BQ({editType:"plot"}),hovertext:su({},Ri.hovertext,{}),line:{color:b2.color,width:b2.width,dash:jRe,backoff:b2.backoff,shape:su({},b2.shape,{values:["linear","spline"]}),smoothing:b2.smoothing,editType:"calc"},connectgaps:Ri.connectgaps,cliponaxis:Ri.cliponaxis,fill:su({},Ri.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:YRe(),marker:su({symbol:po.symbol,opacity:po.opacity,angle:po.angle,angleref:po.angleref,standoff:po.standoff,maxdisplayed:po.maxdisplayed,size:po.size,sizeref:po.sizeref,sizemin:po.sizemin,sizemode:po.sizemode,line:su({width:HQ.width,dash:HQ.dash,editType:"calc"},OQ("marker.line")),gradient:po.gradient,editType:"calc"},OQ("marker")),textfont:Ri.textfont,textposition:Ri.textposition,selected:Ri.selected,unselected:Ri.unselected,hoverinfo:su({},VRe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:Ri.hoveron,hovertemplate:URe(),hovertemplatefallback:BQ()}});var jQ=z((Ner,VQ)=>{"use strict";var GQ=ke(),WRe=(wd(),Ne(_d)),av=ii(),XRe=Uw(),ZRe=Gw(),YQ=Yw(),$Re=Vw(),JRe=jw(),KRe=qT();VQ.exports=function(r,t,a,n){function i(v,d){return GQ.coerce(r,t,KRe,v,d)}var o=i("a"),l=i("b"),s=i("c"),u;if(o?(u=o.length,l?(u=Math.min(u,l.length),s&&(u=Math.min(u,s.length))):s?u=Math.min(u,s.length):u=0):l&&s&&(u=Math.min(l.length,s.length)),!u){t.visible=!1;return}t._length=u,i("sum"),i("text"),i("hovertext"),t.hoveron!=="fills"&&(i("hovertemplate"),i("hovertemplatefallback"));var f=u<WRe.PTS_LINESONLY?"lines+markers":"lines";i("mode",f),av.hasMarkers(t)&&XRe(r,t,a,n,i,{gradient:!0}),av.hasLines(t)&&(ZRe(r,t,a,n,i,{backoff:!0}),YQ(r,t,i),i("connectgaps")),av.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),$Re(r,t,n,i));var c=[];(av.hasMarkers(t)||av.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),c.push("points")),i("fill"),t.fill!=="none"&&(JRe(r,t,a,i),av.hasLines(t)||YQ(r,t,i)),(t.fill==="tonext"||t.fill==="toself")&&c.push("fills"),i("hoveron",c.join("+")||"points"),GQ.coerceSelectionMarkerOpacity(t,i)}});var XQ=z((Ier,WQ)=>{"use strict";var LT=jr();WQ.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=LT.tickText(i.aaxis,r.a,!0).text,n.bLabel=LT.tickText(i.baxis,r.b,!0).text,n.cLabel=LT.tickText(i.caxis,r.c,!0).text,n}});var KQ=z((Ber,JQ)=>{"use strict";var CT=Br(),QRe=Zw(),eFe=vg(),rFe=hg(),tFe=dg().calcMarkerSize,ZQ=["a","b","c"],$Q={a:["b","c"],b:["a","c"],c:["a","b"]};JQ.exports=function(r,t){var a=r._fullLayout[t.subplot],n=a.sum,i=t.sum||n,o={a:t.a,b:t.b,c:t.c},l=t.ids,s,u,f,c,v,d;for(s=0;s<ZQ.length;s++)if(f=ZQ[s],!o[f]){for(v=o[$Q[f][0]],d=o[$Q[f][1]],c=new Array(v.length),u=0;u<v.length;u++)c[u]=i-v[u]-d[u];o[f]=c}var p=t._length,m=new Array(p),y,b,T,w,x,_;for(s=0;s<p;s++)y=o.a[s],b=o.b[s],T=o.c[s],CT(y)&&CT(b)&&CT(T)?(y=+y,b=+b,T=+T,w=n/(y+b+T),w!==1&&(y*=w,b*=w,T*=w),_=y,x=T-b,m[s]={x,y:_,a:y,b,c:T},l&&(m[s].id=l[s])):m[s]={x:!1,y:!1};return tFe(t,p),QRe(r,t),eFe(m,t),rFe(m,t),m}});var eee=z((Oer,QQ)=>{"use strict";var aFe=s8();QQ.exports=function(r,t,a){var n=t.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var i=t.xaxis,o=t.yaxis,l={xaxis:i,yaxis:o,plot:n,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},s=t.layers.frontplot.select("g.scatterlayer"),u=0;u<a.length;u++){var f=a[u];f.length&&(f[0].trace._xA=i,f[0].trace._yA=o)}aFe(r,l,a,s)}});var tee=z((Her,ree)=>{"use strict";var nFe=d8();ree.exports=function(r,t,a,n){var i=nFe(r,t,a,n);if(!i||i[0].index===!1)return;var o=i[0];if(o.index===void 0){var l=1-o.y0/r.ya._length,s=r.xa._length,u=s*l/2,f=s-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),i}var c=o.cd[o.index],v=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[v.subplot]={_subplot:d};var m=v._module.formatLabels(c,v,p);o.aLabel=m.aLabel,o.bLabel=m.bLabel,o.cLabel=m.cLabel;var y=c.hi||v.hoverinfo,b=[];function T(x,_){b.push(x._hovertitle+": "+_)}if(!v.hovertemplate){var w=y.split("+");w.indexOf("all")!==-1&&(w=["a","b","c"]),w.indexOf("a")!==-1&&T(d.aaxis,o.aLabel),w.indexOf("b")!==-1&&T(d.baxis,o.bLabel),w.indexOf("c")!==-1&&T(d.caxis,o.cLabel)}return o.extraText=b.join("<br>"),o.hovertemplate=v.hovertemplate,i}});var nee=z((Uer,aee)=>{"use strict";aee.exports=function(r,t,a,n,i){if(t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),n[i]){var o=n[i];r.a=o.a,r.b=o.b,r.c=o.c}else r.a=t.a,r.b=t.b,r.c=t.c;return r}});var mee=z((Ger,pee)=>{"use strict";var cee=Pr(),DT=Ar(),yo=ke(),mo=yo.strTranslate,U3=yo._,Wn=qr(),Uf=et(),iee=Da(),x2=l0(),ET=St().extendFlat,iFe=_a(),cs=jr(),oee=Xi(),lee=Yn(),vee=yf(),see=vee.freeMode,oFe=vee.rectMode,PT=o0(),lFe=Al().prepSelect,sFe=Al().selectOnClick,uFe=Al().clearOutline,fFe=Al().clearSelectionsCache,hee=(Ha(),Ne(Oa));function dee(e,r){this.id=e.id,this.graphDiv=e.graphDiv,this.init(r),this.makeFramework(r),this.updateFx(r),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}pee.exports=dee;var Qo=dee.prototype;Qo.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Qo.plot=function(e,r){var t=this,a=r[t.id],n=r._size;t._hasClipOnAxisFalse=!1;for(var i=0;i<e.length;i++){var o=e[i][0].trace;if(o.cliponaxis===!1){t._hasClipOnAxisFalse=!0;break}}t.updateLayers(a),t.adjustLayout(a,n),iFe.generalUpdatePerTraceModule(t.graphDiv,t,e,a),t.layers.plotbg.select("path").call(Wn.fill,a.bgcolor)};Qo.makeFramework=function(e){var r=this,t=r.graphDiv,a=e[r.id],n=r.clipId="clip"+r.layoutId+r.id,i=r.clipIdRelative="clip-relative"+r.layoutId+r.id;r.clipDef=yo.ensureSingleById(e._clips,"clipPath",n,function(o){o.append("path").attr("d","M0,0Z")}),r.clipDefRelative=yo.ensureSingleById(e._clips,"clipPath",i,function(o){o.append("path").attr("d","M0,0Z")}),r.plotContainer=yo.ensureSingle(r.container,"g",r.id),r.updateLayers(a),Uf.setClipUrl(r.layers.backplot,n,t),Uf.setClipUrl(r.layers.grids,n,t)};Qo.updateFx=function(e){e._ternarylayer.selectAll("g.toplevel").style("cursor",e.dragmode==="pan"?"move":"crosshair")};Qo.updateLayers=function(e){var r=this,t=r.layers,a=["draglayer","plotbg","backplot","grids"];e.aaxis.layer==="below traces"&&a.push("aaxis","aline"),e.baxis.layer==="below traces"&&a.push("baxis","bline"),e.caxis.layer==="below traces"&&a.push("caxis","cline"),a.push("frontplot"),e.aaxis.layer==="above traces"&&a.push("aaxis","aline"),e.baxis.layer==="above traces"&&a.push("baxis","bline"),e.caxis.layer==="above traces"&&a.push("caxis","cline");var n=r.plotContainer.selectAll("g.toplevel").data(a,String),i=["agrid","bgrid","cgrid"];n.enter().append("g").attr("class",function(o){return"toplevel "+o}).each(function(o){var l=cee.select(this);t[o]=l,o==="frontplot"?l.append("g").classed("scatterlayer",!0):o==="backplot"?l.append("g").classed("maplayer",!0):o==="plotbg"?l.append("path").attr("d","M0,0Z"):o==="aline"||o==="bline"||o==="cline"?l.append("path"):o==="grids"&&i.forEach(function(s){t[s]=l.append("g").classed("grid "+s,!0)})}),n.order()};var nv=Math.sqrt(4/3);Qo.drawSpikelines=function(e,r,t,a){let n=this.graphDiv._fullLayout,i=[this.aaxis,this.baxis,this.caxis];if(!i.some(u=>u.showspikes))return;let o=this.sum-i[0].min-i[1].min-i[2].min,l=Wn.combine(n[this.id].bgcolor,n.paper_bgcolor),s;for(let u=0;u<i.length;u++){let f=i[u];if(!f.showspikes)continue;let c=f.spikesnap,v=c==="hovered data"?e:r||e;if(!v)continue;let d=c==="cursor";if(d&&(!Number.isFinite(t)||!Number.isFinite(a)))continue;let p=v.cd[v.index],m=d?a:p.a,y=d?(this.sum-a-t)/2:p.b,b=d?(this.sum-a+t)/2:p.c;if(!this.xaxis.isPtWithinRange({a:m,b:y,c:b}))continue;s||(s=n._hoverlayer.insert("g",":first-child").attr("class","ternary-spikes").attr("transform",mo(this.x0,this.y0)).style("pointer-events","none"));let T=yo.constrain((m-i[0].min)/o,0,1),w=yo.constrain((y-i[1].min)/o,0,1),x=yo.constrain((b-i[2].min)/o,0,1),_=this.w*(x+T/2),k=this.h*(1-T),[M,q,C,E]=[[this.w*T/2,k,this.w*(1-T/2),k],[this.w*(1-w),this.h,this.w*(1-w)/2,this.h*w],[this.w*(1+x)/2,this.h*x,this.w*x,this.h]][u],P=v.color||f.color,R=Wn.wcagContrast(P,l)<1.5?Wn.contrast(l):P,B=f.spikecolor||R,I=f.spikethickness,N=f.spikemode;if(N.indexOf("toaxis")!==-1||N.indexOf("across")!==-1){let ne=N.indexOf("across")!==-1;s.append("line").attr({class:"spikeline",x1:ne?C:_,y1:ne?E:k,x2:M,y2:q,"stroke-width":I,"stroke-dasharray":Uf.dashStyle(f.spikedash,I)}).call(Wn.stroke,B)}N.indexOf("marker")!==-1&&s.append("circle").attr({class:"spikeline",cx:M,cy:q,r:I}).call(Wn.fill,B);let H=s.append("g").attr("class","ternary-spikelabel").attr("transform",mo(M,q)),G=H.append("text").attr("text-anchor","middle").call(Uf.font,f.tickfont||n.font).text(cs.tickText(f,[m,y,b][u],!0).text).call(iee.convertToTspans,this.graphDiv),Y=Uf.bBox(G.node()),j=Y.width+6,W=Y.height+4,V=Math.min(6,W/2,j/2),J=u===0?-V-j:u===1?-j/2:0,re=u===0?-W/2:u===1?V:-W,le;u===0?le=`M0,0L${-V},${-V}V${re}H${J}v${W}H${-V}V${V}Z`:u===1?le=`M0,0L${V},${V}H${j/2}v${W}H${J}V${V}H${-V}Z`:le=`M0,0V${re}h${j}V0Z`,H.insert("path","text").attr("d",le).call(Wn.fill,B),G.call(iee.positionText,J+j/2-Y.left-Y.width/2,re+W/2-Y.top-Y.height/2),G.call(Wn.fill,Wn.contrast(B))}};Qo.adjustLayout=function(e,r){var t=this,a=e.domain,n=(a.x[0]+a.x[1])/2,i=(a.y[0]+a.y[1])/2,o=a.x[1]-a.x[0],l=a.y[1]-a.y[0],s=o*r.w,u=l*r.h,f=e.sum,c=e.aaxis.min,v=e.baxis.min,d=e.caxis.min,p,m,y,b,T,w;s>nv*u?(b=u,y=b*nv):(y=s,b=y/nv),T=o*y/s,w=l*b/u,p=r.l+r.w*n-y/2,m=r.t+r.h*(1-i)-b/2,t.x0=p,t.y0=m,t.w=y,t.h=b,t.sum=f,t.xaxis={type:"linear",range:[c+2*d-f,f-c-2*v],domain:[n-T/2,n+T/2],_id:"x"},x2(t.xaxis,t.graphDiv._fullLayout),t.xaxis.setScale(),t.xaxis.isPtWithinRange=function(I){return I.a>=t.aaxis.range[0]&&I.a<=t.aaxis.range[1]&&I.b>=t.baxis.range[1]&&I.b<=t.baxis.range[0]&&I.c>=t.caxis.range[1]&&I.c<=t.caxis.range[0]},t.yaxis={type:"linear",range:[c,f-v-d],domain:[i-w/2,i+w/2],_id:"y"},x2(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var x=t.yaxis.domain[0],_=t.aaxis=ET({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[x,x+w*nv],anchor:"free",position:0,_id:"y",_length:y});x2(_,t.graphDiv._fullLayout),_.setScale();var k=t.baxis=ET({},e.baxis,{range:[f-c-d,v],side:"bottom",domain:t.xaxis.domain,anchor:"free",position:0,_id:"x",_length:y});x2(k,t.graphDiv._fullLayout),k.setScale();var M=t.caxis=ET({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[x,x+w*nv],anchor:"free",position:0,_id:"y",_length:y});x2(M,t.graphDiv._fullLayout),M.setScale();var q="M"+p+","+(m+b)+"h"+y+"l-"+y/2+",-"+b+"Z";t.clipDef.select("path").attr("d",q),t.layers.plotbg.select("path").attr("d",q);var C="M0,"+b+"h"+y+"l-"+y/2+",-"+b+"Z";t.clipDefRelative.select("path").attr("d",C);var E=mo(p,m);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",E),t.clipDefRelative.select("path").attr("transform",null);var P=mo(p-k._offset,m+b);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=mo(p+y/2,m)+"rotate(30)"+mo(0,-_._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var B=mo(p+y/2,m)+"rotate(-30)"+mo(0,-M._offset);t.layers.caxis.attr("transform",B),t.layers.cgrid.attr("transform",B),t.drawAxes(!0),t.layers.aline.select("path").attr("d",_.showline?"M"+p+","+(m+b)+"l"+y/2+",-"+b:"M0,0").call(Wn.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),t.layers.bline.select("path").attr("d",k.showline?"M"+p+","+(m+b)+"h"+y:"M0,0").call(Wn.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),t.layers.cline.select("path").attr("d",M.showline?"M"+(p+y/2)+","+m+"l"+y/2+","+b:"M0,0").call(Wn.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),Uf.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};Qo.drawAxes=function(e){var r=this,t=r.graphDiv,a=r.id.slice(7)+"title",n=r.layers,i=r.aaxis,o=r.baxis,l=r.caxis;if(r.drawAx(i),r.drawAx(o),r.drawAx(l),e){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?l.tickfont.size*.75:0)+(l.ticks==="outside"?l.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=PT.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title.text",placeholder:U3(t,"Click to enter Component A title"),attributes:{x:r.x0+r.w/2,y:r.y0-i.title.font.size/3-s,"text-anchor":"middle"}}),n["b-title"]=PT.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title.text",placeholder:U3(t,"Click to enter Component B title"),attributes:{x:r.x0-u,y:r.y0+r.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=PT.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title.text",placeholder:U3(t,"Click to enter Component C title"),attributes:{x:r.x0+r.w+u,y:r.y0+r.h+l.title.font.size*.83+u,"text-anchor":"middle"}})}};Qo.drawAx=function(e){var r=this,t=r.graphDiv,a=e._name,n=a.charAt(0),i=e._id,o=r.layers[a],l=30,s=n+"tickLayout",u=cFe(e);r[s]!==u&&(o.selectAll("."+i+"tick").remove(),r[s]=u),e.setScale();var f=cs.calcTicks(e),c=cs.clipEnds(e,f),v=cs.makeTransTickFn(e),d=cs.getTickSigns(e)[2],p=yo.deg2rad(l),m=d*(e.linewidth||1)/2,y=d*e.ticklen,b=r.w,T=r.h,w=n==="b"?"M0,"+m+"l"+Math.sin(p)*y+","+Math.cos(p)*y:"M"+m+",0l"+Math.cos(p)*y+","+-Math.sin(p)*y,x={a:"M0,0l"+T+",-"+b/2,b:"M0,0l-"+b/2+",-"+T,c:"M0,0l-"+T+","+b/2}[n];cs.drawTicks(t,e,{vals:e.ticks==="inside"?c:f,layer:o,path:w,transFn:v,crisp:!1}),cs.drawGrid(t,e,{vals:c,layer:r.layers[n+"grid"],path:x,transFn:v,crisp:!1}),cs.drawLabels(t,e,{vals:f,layer:o,transFn:v,labelFns:cs.makeLabelFns(e,0,l)})};function cFe(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var $a=hee.MINZOOM/2+.87,vFe="m-0.87,.5h"+$a+"v3h-"+($a+5.2)+"l"+($a/2+2.6)+",-"+($a*.87+4.5)+"l2.6,1.5l-"+$a/2+","+$a*.87+"Z",hFe="m0.87,.5h-"+$a+"v3h"+($a+5.2)+"l-"+($a/2+2.6)+",-"+($a*.87+4.5)+"l-2.6,1.5l"+$a/2+","+$a*.87+"Z",dFe="m0,1l"+$a/2+","+$a*.87+"l2.6,-1.5l-"+($a/2+2.6)+",-"+($a*.87+4.5)+"l-"+($a/2+2.6)+","+($a*.87+4.5)+"l2.6,1.5l"+$a/2+",-"+$a*.87+"Z",pFe="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",uee=!0;Qo.clearOutline=function(){fFe(this.dragOptions),uFe(this.dragOptions.gd)};Qo.initInteractions=function(){var e=this,r=e.layers.plotbg.select("path").node(),t=e.graphDiv,a=t._fullLayout._zoomlayer,n,i;this.dragOptions={element:r,gd:t,plotinfo:{id:e.id,domain:t._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(P,R,B){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var I=e.dragOptions.dragmode=t._fullLayout.dragmode;see(I)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,I==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=b,e.dragOptions.doneFn=M,T(P,R,B)):I==="pan"?(e.dragOptions.moveFn=C,e.dragOptions.clickFn=b,e.dragOptions.doneFn=E,q(),e.clearOutline(t)):(oFe(I)||see(I))&&lFe(P,R,B,e.dragOptions,I)}};var o,l,s,u,f,c,v,d,p,m;function y(P){var R={};return R[e.id+".aaxis.min"]=P.a,R[e.id+".baxis.min"]=P.b,R[e.id+".caxis.min"]=P.c,R}function b(P,R){var B=t._fullLayout.clickmode;fee(t),P===2&&(t.emit("plotly_doubleclick",null),DT.call("_guiRelayout",t,y({a:0,b:0,c:0}))),B.indexOf("select")>-1&&P===1&&sFe(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),B.indexOf("event")>-1&&lee.click(t,R,e.id)}function T(P,R,B){var I=r.getBoundingClientRect();o=R-I.left,l=B-I.top,t._fullLayout._calcInverseTransform(t);var N=t._fullLayout._invTransform,H=yo.apply3DTransform(N)(o,l);o=H[0],l=H[1],s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s,u=e.aaxis.range[1]-s.a,c=Wn.luminosity(e.graphDiv._fullLayout[e.id].bgcolor),v="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=a.append("path").attr("class","zoombox").attr("transform",mo(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),m=a.append("path").attr("class","zoombox-corners").attr("transform",mo(e.x0,e.y0)).style({fill:Wn.background,stroke:Wn.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(t)}function w(P,R){return 1-R/e.h}function x(P,R){return 1-(P+(e.h-R)/Math.sqrt(3))/e.w}function _(P,R){return(P-(e.h-R)/Math.sqrt(3))/e.w}function k(P,R){var B=o+P*n,I=l+R*i,N=Math.max(0,Math.min(1,w(o,l),w(B,I))),H=Math.max(0,Math.min(1,x(o,l),x(B,I))),G=Math.max(0,Math.min(1,_(o,l),_(B,I))),Y=(N/2+G)*e.w,j=(1-N/2-H)*e.w,W=(Y+j)/2,V=j-Y,J=(1-N)*e.h,re=J-V/nv;V<hee.MINZOOM?(f=s,p.attr("d",v),m.attr("d","M0,0Z")):(f={a:s.a+N*u,b:s.b+H*u,c:s.c+G*u},p.attr("d",v+"M"+Y+","+J+"H"+j+"L"+W+","+re+"L"+Y+","+J+"Z"),m.attr("d","M"+o+","+l+pFe+"M"+Y+","+J+vFe+"M"+j+","+J+hFe+"M"+W+","+re+dFe)),d||(p.transition().style("fill",c>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),m.transition().style("opacity",1).duration(200),d=!0),t.emit("plotly_relayouting",y(f))}function M(){fee(t),f!==s&&(DT.call("_guiRelayout",t,y(f)),uee&&t.data&&t._context.showTips&&(yo.notifier(U3(t,"Double-click to zoom back out"),"long",t),uee=!1))}function q(){s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s}function C(P,R){var B=P/e.xaxis._m,I=R/e.yaxis._m;f={a:s.a-I,b:s.b+(B+I)/2,c:s.c-(B-I)/2};var N=[f.a,f.b,f.c].sort(yo.sorterAsc),H={a:N.indexOf(f.a),b:N.indexOf(f.b),c:N.indexOf(f.c)};N[0]<0&&(N[1]+N[0]/2<0?(N[2]+=N[0]+N[1],N[0]=N[1]=0):(N[2]+=N[0]/2,N[1]+=N[0]/2,N[0]=0),f={a:N[H.a],b:N[H.b],c:N[H.c]},R=(s.a-f.a)*e.yaxis._m,P=(s.c-f.c-s.b+f.b)*e.xaxis._m);var G=mo(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",G);var Y=mo(-P,-R);e.clipDefRelative.select("path").attr("transform",Y),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(Uf.hideOutsideRangePoints,e),t.emit("plotly_relayouting",y(f))}function E(){DT.call("_guiRelayout",t,y(f))}r.onmousemove=function(P){lee.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||oee.unhover(t,P)},oee.init(this.dragOptions)};function fee(e){cee.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var FT=z((Yer,yee)=>{"use strict";var mFe=Hi(),yFe=H0().attributes,Qr=ji(),gFe=Do().overrideAll,G3=St().extendFlat,RT={title:{text:Qr.title.text,font:Qr.title.font},color:Qr.color,tickmode:Qr.minor.tickmode,nticks:G3({},Qr.nticks,{dflt:6,min:1}),tick0:Qr.tick0,dtick:Qr.dtick,tickvals:Qr.tickvals,ticktext:Qr.ticktext,ticks:Qr.ticks,ticklen:Qr.ticklen,tickwidth:Qr.tickwidth,tickcolor:Qr.tickcolor,ticklabelstep:Qr.ticklabelstep,showticklabels:Qr.showticklabels,labelalias:Qr.labelalias,showtickprefix:Qr.showtickprefix,tickprefix:Qr.tickprefix,showticksuffix:Qr.showticksuffix,ticksuffix:Qr.ticksuffix,showexponent:Qr.showexponent,exponentformat:Qr.exponentformat,minexponent:Qr.minexponent,separatethousands:Qr.separatethousands,tickfont:Qr.tickfont,tickangle:Qr.tickangle,tickformat:Qr.tickformat,tickformatstops:Qr.tickformatstops,hoverformat:Qr.hoverformat,showline:G3({},Qr.showline,{dflt:!0}),linecolor:Qr.linecolor,linewidth:Qr.linewidth,showgrid:G3({},Qr.showgrid,{dflt:!0}),gridcolor:Qr.gridcolor,gridwidth:Qr.gridwidth,griddash:Qr.griddash,layer:Qr.layer,min:{valType:"number",dflt:0,min:0},showspikes:G3({},Qr.showspikes,{}),spikecolor:Qr.spikecolor,spikethickness:Qr.spikethickness,spikedash:Qr.spikedash,spikemode:Qr.spikemode,spikesnap:Qr.spikesnap},Y3=yee.exports=gFe({domain:yFe({name:"ternary"}),bgcolor:{valType:"color",dflt:mFe.background},sum:{valType:"number",dflt:1,min:0},aaxis:RT,baxis:RT,caxis:RT},"plot","from-root");Y3.uirevision={valType:"any",editType:"none"};Y3.aaxis.uirevision=Y3.baxis.uirevision=Y3.caxis.uirevision={valType:"any",editType:"none"}});var bee=z((Ver,gee)=>{"use strict";var bFe=ke(),xFe=Pt(),_Fe=H0().defaults;gee.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),v,d;function p(T,w){return bFe.coerce(v,d,o,T,w)}for(var m=0;m<f;m++){var y=u[m];r[y]?v=r[y]:v=r[y]={},d=xFe.newContainer(t,y,c),n.noUirevision||p("uirevision",t.uirevision);var b={};b[s]=[m/f,(m+1)/f],_Fe(d,t,p,b),n.id=y,l(v,d,p,n)}}});var Tee=z((jer,wee)=>{"use strict";var wFe=qr(),TFe=Pt(),_2=ke(),AFe=bee(),MFe=sm(),kFe=um(),SFe=om(),qFe=im(),LFe=y8(),_ee=FT(),xee=["aaxis","baxis","caxis"];wee.exports=function(r,t,a){AFe(r,t,a,{type:"ternary",attributes:_ee,handleDefaults:CFe,font:t.font,paper_bgcolor:t.paper_bgcolor})};function CFe(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=wFe.combine(n,a.paper_bgcolor);for(var o,l,s,u=0;u<xee.length;u++)o=xee[u],l=e[o]||{},s=TFe.newContainer(r,o),s._name=o,DFe(l,s,a,r);var f=r.aaxis,c=r.baxis,v=r.caxis;f.min+c.min+v.min>=i&&(f.min=0,c.min=0,v.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function DFe(e,r,t,a){var n=_ee[r._name];function i(x,_){return _2.coerce(e,r,n,x,_)}function o(x,_){return _2.coerce2(e,r,n,x,_)}i("uirevision",a.uirevision),r.type="linear";var l=i("color"),s=l!==n.color.dflt?l:t.font.color,u=r._name,f=u.charAt(0).toUpperCase(),c="Component "+f,v=i("title.text",c);r._hovertitle=v===c?v:f,_2.coerceFont(i,"title.font",t.font,{overrideDflt:{size:_2.bigFont(t.font.size),color:s}}),i("min"),qFe(e,r,i,"linear"),kFe(e,r,i,"linear"),MFe(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),SFe(e,r,i,{outerTicks:!0});var d=i("showticklabels");d&&(_2.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:s}}),i("tickangle"),i("tickformat")),LFe(e,r,i,{dfltColor:l,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer");var p=o("spikecolor"),m=o("spikethickness"),y=o("spikedash"),b=o("spikemode"),T=o("spikesnap"),w=i("showspikes",!!p||!!m||!!y||!!b||!!T);w||(delete r.spikecolor,delete r.spikethickness,delete r.spikedash,delete r.spikemode,delete r.spikesnap)}});var Aee=z(go=>{"use strict";var EFe=mee(),PFe=Kp().getSubplotCalcData,RFe=ke().counterRegex,iv="ternary";go.name=iv;var FFe=go.attr="subplot";go.idRoot=iv;go.idRegex=go.attrRegex=RFe(iv);var zFe=go.attributes={};zFe[FFe]={valType:"subplotid",dflt:"ternary",editType:"calc"};go.layoutAttributes=FT();go.supplyLayoutDefaults=Tee();go.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[iv],i=0;i<n.length;i++){var o=n[i],l=PFe(a,iv,o),s=t[o]._subplot;s||(s=new EFe({id:o,graphDiv:r,container:t._ternarylayer.node()},t),t[o]._subplot=s),s.plot(l,t,r._promises)}};go.clean=function(e,r,t,a){for(var n=a._subplots[iv]||[],i=0;i<n.length;i++){var o=n[i],l=a[o]._subplot;!r[o]&&l&&(l.plotContainer.remove(),l.clipDef.remove(),l.clipDefRelative.remove(),l.layers["a-title"].remove(),l.layers["b-title"].remove(),l.layers["c-title"].remove())}};go.updateFx=function(e){var r=e._fullLayout;r._ternarylayer.selectAll("g.toplevel").style("cursor",r.dragmode==="pan"?"move":"crosshair")}});var kee=z((Xer,Mee)=>{"use strict";Mee.exports={attributes:qT(),supplyDefaults:jQ(),colorbar:Ud(),formatLabels:XQ(),calc:KQ(),plot:eee(),style:kf().style,styleOnSelect:kf().styleOnSelect,hoverPoints:tee(),selectPoints:p8(),eventData:nee(),moduleType:"trace",name:"scatterternary",basePlotModule:Aee(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var qee=z((Zer,See)=>{"use strict";See.exports=kee()});var zT=z(($er,Cee)=>{"use strict";var Pa=c3(),ov=St().extendFlat,Lee=Fo().axisHoverFormat;Cee.exports={y:Pa.y,x:Pa.x,x0:Pa.x0,y0:Pa.y0,xhoverformat:Lee("x"),yhoverformat:Lee("y"),name:ov({},Pa.name,{}),orientation:ov({},Pa.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:Pa.fillcolor,points:ov({},Pa.boxpoints,{}),jitter:ov({},Pa.jitter,{}),pointpos:ov({},Pa.pointpos,{}),width:ov({},Pa.width,{}),marker:Pa.marker,text:Pa.text,hovertext:Pa.hovertext,hovertemplate:Pa.hovertemplate,hovertemplatefallback:Pa.hovertemplatefallback,quartilemethod:Pa.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:Pa.offsetgroup,alignmentgroup:Pa.alignmentgroup,selected:Pa.selected,unselected:Pa.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:Pa.zorder}});var BT=z((Jer,Dee)=>{"use strict";var NT=v3(),IT=ke().extendFlat;Dee.exports={violinmode:IT({},NT.boxmode,{}),violingap:IT({},NT.boxgap,{}),violingroupgap:IT({},NT.boxgroupgap,{})}});var zee=z((Ker,Fee)=>{"use strict";var Eee=ke(),NFe=qr(),Pee=s2(),Ree=zT();Fee.exports=function(r,t,a,n){function i(_,k){return Eee.coerce(r,t,Ree,_,k)}function o(_,k){return Eee.coerce2(r,t,Ree,_,k)}if(Pee.handleSampleDefaults(r,t,i,n),t.visible!==!1){i("bandwidth"),i("side");var l=i("width");l||(i("scalegroup",t.name),i("scalemode"));var s=i("span"),u;Array.isArray(s)&&(u="manual"),i("spanmode",u);var f=i("line.color",(r.marker||{}).color||a),c=i("line.width"),v=i("fillcolor",NFe.addOpacity(t.line.color,.5));Pee.handlePointsDefaults(r,t,i,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",v),m=o("box.line.color",f),y=o("box.line.width",c),b=i("box.visible",!!(d||p||m||y));b||(t.box={visible:!1});var T=o("meanline.color",f),w=o("meanline.width",c),x=i("meanline.visible",!!(T||w));x||(t.meanline={visible:!1}),i("quartilemethod"),i("zorder")}}});var Iee=z((Qer,Nee)=>{"use strict";var IFe=ke(),BFe=BT(),OFe=q9();Nee.exports=function(r,t,a){function n(i,o){return IFe.coerce(r,t,BFe,i,o)}OFe._supply(r,t,a,n,"violin")}});var V3=z(Gf=>{"use strict";var HFe=ke(),UFe={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Gf.makeKDE=function(e,r,t){var a=t.length,n=UFe.gaussian,i=e.bandwidth,o=1/(a*i);return function(l){for(var s=0,u=0;u<a;u++)s+=n((l-t[u])/i);return o*s}};Gf.getPositionOnKdePath=function(e,r,t){var a,n;r.orientation==="h"?(a="y",n="x"):(a="x",n="y");var i=HFe.findPointOnPath(e.path,t,n,{pathLength:e.pathLength}),o=e.posCenterPx,l=i[a],s=r.side==="both"?2*o-l:o;return[l,s]};Gf.getKdeValue=function(e,r,t){var a=e.pts.map(Gf.extractVal),n=Gf.makeKDE(e,r,a);return n(t)/e.posDensityScale};Gf.extractVal=function(e){return e.v}});var Hee=z((rrr,Oee)=>{"use strict";var OT=ke(),HT=jr(),GFe=D9(),Bee=V3(),YFe=(Kt(),Ne(aa)).BADNUM;Oee.exports=function(r,t){var a=GFe(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=HT.getFromId(r,t[t.orientation==="h"?"xaxis":"yaxis"]),o=1/0,l=-1/0,s=0,u=0,f=0;f<a.length;f++){var c=a[f],v=c.pts.map(Bee.extractVal),d=c.bandwidth=jFe(t,c,v),p=c.span=WFe(t,c,i,d);if(c.min===c.max&&d===0)p=c.span=[c.min,c.max],c.density=[{v:1,t:p[0]}],c.bandwidth=d,s=Math.max(s,1);else{var m=p[1]-p[0],y=Math.ceil(m/(d/3)),b=m/y;if(!isFinite(b)||!isFinite(y))return OT.error("Something went wrong with computing the violin span"),a[0].t.empty=!0,a;var T=Bee.makeKDE(c,t,v);c.density=new Array(y+1);for(var w=0;w<c.density.length;w++){var x=p[0]+w*b,_=T(x);c.density[w]={v:_,t:x},s=Math.max(s,_)}}u=Math.max(u,v.length),o=Math.min(o,p[0]),l=Math.max(l,p[1])}var k=HT.findExtremes(i,[o,l],{padded:!0});if(t._extremes[i._id]=k,t.width)a[0].t.maxKDE=s;else{var M=n._violinScaleGroupStats,q=t.scalegroup,C=M[q];C?(C.maxKDE=Math.max(C.maxKDE,s),C.maxCount=Math.max(C.maxCount,u)):M[q]={maxKDE:s,maxCount:u}}return a[0].t.labels.kde=OT._(r,"kde:"),a};function VFe(e,r,t){var a=Math.min(r,t/1.349);return 1.059*a*Math.pow(e,-.2)}function jFe(e,r,t){var a=r.max-r.min;if(!a)return e.bandwidth?e.bandwidth:0;if(e.bandwidth)return Math.max(e.bandwidth,a/1e4);var n=t.length,i=OT.stdev(t,n-1,r.mean);return Math.max(VFe(n,i,r.q3-r.q1),a/100)}function WFe(e,r,t,a){var n=e.spanmode,i=e.span||[],o=[r.min,r.max],l=[r.min-2*a,r.max+2*a],s;function u(c){var v=i[c],d=t.type==="multicategory"?t.r2c(v):t.d2c(v,0,e[r.valLetter+"calendar"]);return d===YFe?l[c]:d}n==="soft"?s=l:n==="hard"?s=o:s=[u(0),u(1)];var f={type:"linear",range:s};return HT.setConvert(f),f.cleanRange(),s}});var Yee=z((trr,Gee)=>{"use strict";var XFe=E9().setPositionOffset,Uee=["v","h"];Gee.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o<Uee.length;o++){for(var l=Uee[o],s=l==="h"?i:n,u=[],f=0;f<a.length;f++){var c=a[f],v=c[0].t,d=c[0].trace;d.visible===!0&&d.type==="violin"&&!v.empty&&d.orientation===l&&d.xaxis===n._id&&d.yaxis===i._id&&u.push(f)}XFe("violin",r,u,s)}}});var jee=z((arr,Vee)=>{"use strict";var UT=Pr(),GT=ke(),ZFe=et(),YT=P9(),$Fe=l8(),JFe=V3();Vee.exports=function(r,t,a,n){var i=r._context.staticPlot,o=r._fullLayout,l=t.xaxis,s=t.yaxis;function u(f,c){var v=$Fe(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return ZFe.smoothopen(v[0],1)}GT.makeTraceGroups(n,a,"trace violins").each(function(f){var c=UT.select(this),v=f[0],d=v.t,p=v.trace;if(p.visible!==!0||d.empty){c.remove();return}var m=d.bPos,y=d.bdPos,b=t[d.valLetter+"axis"],T=t[d.posLetter+"axis"],w=p.side==="both",x=w||p.side==="positive",_=w||p.side==="negative",k=c.selectAll("path.violin").data(GT.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(I){var N=UT.select(this),H=I.density,G=H.length,Y=T.c2l(I.pos+m,!0),j=T.l2p(Y),W;if(p.width)W=d.maxKDE/y;else{var V=o._violinScaleGroupStats[p.scalegroup];W=p.scalemode==="count"?V.maxKDE/y*(V.maxCount/I.pts.length):V.maxKDE/y}var J,re,le,ne,$,ce,te;if(x){for(ce=new Array(G),ne=0;ne<G;ne++)te=ce[ne]={},te[d.posLetter]=Y+H[ne].v/W,te[d.valLetter]=b.c2l(H[ne].t,!0);J=u(ce,p)}if(_){for(ce=new Array(G),$=0,ne=G-1;$<G;$++,ne--)te=ce[$]={},te[d.posLetter]=Y-H[ne].v/W,te[d.valLetter]=b.c2l(H[ne].t,!0);re=u(ce,p)}if(w)le=J+"L"+re.slice(1)+"Z";else{var ge=[j,b.c2p(H[0].t)],se=[j,b.c2p(H[G-1].t)];p.orientation==="h"&&(ge.reverse(),se.reverse()),x?le="M"+ge+"L"+J.slice(1)+"L"+se:le="M"+se+"L"+re.slice(1)+"L"+ge}N.attr("d",le),I.posCenterPx=j,I.posDensityScale=W*y,I.path=N.node(),I.pathLength=I.path.getTotalLength()/(w?2:1)});var M=p.box,q=M.width,C=(M.line||{}).width,E,P;w?(E=y*q,P=0):x?(E=[0,y*q/2],P=C*{x:1,y:-1}[d.posLetter]):(E=[y*q/2,0],P=C*{x:-1,y:1}[d.posLetter]),YT.plotBoxAndWhiskers(c,{pos:T,val:b},p,{bPos:m,bdPos:E,bPosPxOffset:P}),YT.plotBoxMean(c,{pos:T,val:b},p,{bPos:m,bdPos:E,bPosPxOffset:P});var R;!p.box.visible&&p.meanline.visible&&(R=GT.identity);var B=c.selectAll("path.meanline").data(R||[]);B.enter().append("path").attr("class","meanline").style("fill","none").style("vector-effect",i?"none":"non-scaling-stroke"),B.exit().remove(),B.each(function(I){var N=b.c2p(I.mean,!0),H=JFe.getPositionOnKdePath(I,p,N);UT.select(this).attr("d",p.orientation==="h"?"M"+N+","+H[0]+"V"+H[1]:"M"+H[0]+","+N+"H"+H[1])}),YT.plotPoints(c,{x:l,y:s},p,d)})}});var Zee=z((nrr,Xee)=>{"use strict";var Wee=Pr(),lv=qr(),KFe=kf().stylePoints;Xee.exports=function(r){var t=Wee.select(r).selectAll("g.trace.violins");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=a[0].trace,i=Wee.select(this),o=n.box||{},l=o.line||{},s=n.meanline||{},u=s.width;i.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(lv.stroke,n.line.color).call(lv.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(lv.stroke,l.color).call(lv.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(lv.stroke,s.color),i.selectAll("path.meanline").style(f).call(lv.stroke,s.color),KFe(i,n,r)})}});var Qee=z((irr,Kee)=>{"use strict";var QFe=qr(),VT=ke(),eze=jr(),$ee=B9(),Jee=V3();Kee.exports=function(r,t,a,n,i){i||(i={});var o=i.hoverLayer,l=r.cd,s=l[0].trace,u=s.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,v=[],d,p;if(f||c){var m=$ee.hoverOnBoxes(r,t,a,n);if(c&&m.length>0){var y=r.xa,b=r.ya,T,w,x,_,k;s.orientation==="h"?(k=t,T="y",x=b,w="x",_=y):(k=a,T="x",x=y,w="y",_=b);var M=l[r.index];if(k>=M.span[0]&&k<=M.span[1]){var q=VT.extendFlat({},r),C=_.c2p(k,!0),E=Jee.getKdeValue(M,s,k),P=Jee.getPositionOnKdePath(M,s,C),R=x._offset,B=x._length;q[T+"0"]=P[0],q[T+"1"]=P[1],q[w+"0"]=q[w+"1"]=C,q[w+"Label"]=w+": "+eze.hoverLabelText(_,k,s[w+"hoverformat"])+", "+l[0].t.labels.kde+" "+E.toFixed(3);for(var I=0,N=0;N<m.length;N++)if(m[N].attr==="med"){I=N;break}q.spikeDistance=m[I].spikeDistance;var H=T+"Spike";q[H]=m[I][H],m[I].spikeDistance=void 0,m[I][H]=void 0,q.hovertemplate=!1,v.push(q),p={},p[T+"1"]=VT.constrain(R+P[0],R,R+B),p[T+"2"]=VT.constrain(R+P[1],R,R+B),p[w+"1"]=p[w+"2"]=_._offset+C}}f&&(v=v.concat(m))}u.indexOf("points")!==-1&&(d=$ee.hoverOnPoints(r,t,a));var G=o.selectAll(".violinline-"+s.uid).data(p?[0]:[]);return G.enter().append("line").classed("violinline-"+s.uid,!0).attr("stroke-width",1.5),G.exit().remove(),G.attr(p).call(QFe.stroke,r.color),n==="closest"?d?[d]:v:(d&&v.push(d),v)}});var rre=z((orr,ere)=>{"use strict";ere.exports={attributes:zT(),layoutAttributes:BT(),supplyDefaults:zee(),crossTraceDefaults:s2().crossTraceDefaults,supplyLayoutDefaults:Iee(),calc:Hee(),crossTraceCalc:Yee(),plot:jee(),style:Zee(),styleOnSelect:kf().styleOnSelect,hoverPoints:Qee(),selectPoints:O9(),moduleType:"trace",name:"violin",basePlotModule:lo(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var are=z((lrr,tre)=>{"use strict";tre.exports=rre()});var w2={};Dt(w2,{colormodel:()=>jT});var jT,sv=Ct(()=>{"use strict";jT={rgb:{min:[0,0,0],max:[255,255,255],fmt:e=>e.slice(0,3),suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:e=>{let r=e.slice(0,3);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:e=>{let r=e.slice(0,4);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%",""]}}});var WT={};Dt(WT,{default:()=>tze});var nre,ire,j3,ore,lre,sre,ure,rze,tze,XT=Ct(()=>{"use strict";nre=wc(St()),ire=wc(Gn()),j3=wc(gi()),ore=wc(Qi());sv();lre=["rgb","rgba","rgba256","hsl","hsla"],sre=[],ure=[];for(let e of lre){let r=jT[e];sre.push(`For the \`${e}\` colormodel, it is [${(r.zminDflt||r.min).join(", ")}].`),ure.push(`For the \`${e}\` colormodel, it is [${(r.zmaxDflt||r.max).join(", ")}].`)}rze={source:{valType:"string",editType:"calc",description:["Specifies the data URI of the image to be visualized.",'The URI consists of "data:image/[<media subtype\\\\>][;base64\\\\],<data\\\\>"'].join(" ")},z:{valType:"data_array",editType:"calc",description:["A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color."].join(" ")},colormodel:{valType:"enumerated",values:lre,editType:"calc",description:["Color model used to map the numerical color components described in `z` into colors.","If `source` is specified, this attribute will be set to `rgba256`","otherwise it defaults to `rgb`."].join(" ")},zsmooth:{valType:"enumerated",values:["fast",!1],dflt:!1,editType:"plot",description:["Picks a smoothing algorithm used to smooth `z` data.","This only applies for image traces that use the `source` attribute."].join(" ")},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the lower bound for each color component.","Note that the default value will depend on the colormodel.",sre.join(" ")].join(" ")},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the higher bound for each color component.","Note that the default value will depend on the colormodel.",ure.join(" ")].join(" ")},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's x position. The left edge of the image","(or the right edge if the x axis is reversed or dx is negative)","will be found at xmin=x0-dx/2"].join(" ")},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's y position. The top edge of the image","(or the bottom edge if the y axis is NOT reversed or if dy is negative)","will be found at ymin=y0-dy/2. By default when an image trace is","included, the y axis will be reversed so that the image is right-side-up,","but you can disable this by setting yaxis.autorange=true or by providing","an explicit y axis range."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's horizontal size."},dy:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's vertical size"},text:{valType:"data_array",editType:"plot",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"plot",description:"Same as `text`."},hoverinfo:(0,nre.extendFlat)({},ire.default.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:(0,j3.hovertemplateAttrs)({},{keys:["z","color","colormodel"]}),hovertemplatefallback:(0,j3.templatefallbackAttrs)(),zorder:ore.zorder},tze=rze});var vre=z((urr,cre)=>{"use strict";var aze=ke(),nze=(XT(),Ne(WT)).default,fre=(sv(),Ne(w2)),ize=ts().IMAGE_URL_PREFIX;cre.exports=function(r,t){function a(o,l){return aze.coerce(r,t,nze,o,l)}a("source"),t.source&&!t.source.match(ize)&&delete t.source,t._hasSource=!!t.source;var n=a("z");if(t._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!t._hasZ&&!t._hasSource){t.visible=!1;return}a("x0"),a("y0"),a("dx"),a("dy");var i;t._hasZ?(a("colormodel","rgb"),i=fre.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=fre.colormodel[t.colormodel],t.zmin=i.zminDflt,t.zmax=i.zmaxDflt),a("zsmooth"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),t._length=null,a("zorder")}});var vs=z((frr,ZT)=>{typeof Object.create=="function"?ZT.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:ZT.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var $T=z((crr,hre)=>{hre.exports=Ju().EventEmitter});var mre=z(W3=>{"use strict";W3.byteLength=lze;W3.toByteArray=uze;W3.fromByteArray=vze;var Dl=[],bo=[],oze=typeof Uint8Array!="undefined"?Uint8Array:Array,JT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Yf=0,dre=JT.length;Yf<dre;++Yf)Dl[Yf]=JT[Yf],bo[JT.charCodeAt(Yf)]=Yf;var Yf,dre;bo[45]=62;bo[95]=63;function pre(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function lze(e){var r=pre(e),t=r[0],a=r[1];return(t+a)*3/4-a}function sze(e,r,t){return(r+t)*3/4-t}function uze(e){var r,t=pre(e),a=t[0],n=t[1],i=new oze(sze(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s<l;s+=4)r=bo[e.charCodeAt(s)]<<18|bo[e.charCodeAt(s+1)]<<12|bo[e.charCodeAt(s+2)]<<6|bo[e.charCodeAt(s+3)],i[o++]=r>>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=bo[e.charCodeAt(s)]<<2|bo[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=bo[e.charCodeAt(s)]<<10|bo[e.charCodeAt(s+1)]<<4|bo[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function fze(e){return Dl[e>>18&63]+Dl[e>>12&63]+Dl[e>>6&63]+Dl[e&63]}function cze(e,r,t){for(var a,n=[],i=r;i<t;i+=3)a=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),n.push(fze(a));return n.join("")}function vze(e){for(var r,t=e.length,a=t%3,n=[],i=16383,o=0,l=t-a;o<l;o+=i)n.push(cze(e,o,o+i>l?l:o+i));return a===1?(r=e[t-1],n.push(Dl[r>>2]+Dl[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Dl[r>>10]+Dl[r>>4&63]+Dl[r<<2&63]+"=")),n.join("")}});var yre=z(KT=>{KT.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<<l)-1,u=s>>1,f=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-f)-1,d>>=-f,f+=l;f>0;i=i*256+e[r+c],c+=v,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=o*256+e[r+c],c+=v,f-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-u}return(d?-1:1)*o*Math.pow(2,i-a)};KT.write=function(e,r,t,a,n,i){var o,l,s,u=i*8-n-1,f=(1<<u)-1,c=f>>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,m=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<<n|l,u+=n;u>0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=m*128}});var hv=z(vv=>{"use strict";var QT=mre(),fv=yre(),gre=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;vv.Buffer=je;vv.SlowBuffer=gze;vv.INSPECT_MAX_BYTES=50;var X3=2147483647;vv.kMaxLength=X3;je.TYPED_ARRAY_SUPPORT=hze();!je.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 hze(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(je.prototype,"parent",{enumerable:!0,get:function(){if(je.isBuffer(this))return this.buffer}});Object.defineProperty(je.prototype,"offset",{enumerable:!0,get:function(){if(je.isBuffer(this))return this.byteOffset}});function hs(e){if(e>X3)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,je.prototype),r}function je(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return aA(e)}return wre(e,r,t)}je.poolSize=8192;function wre(e,r,t){if(typeof e=="string")return pze(e,r);if(ArrayBuffer.isView(e))return mze(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(El(e,ArrayBuffer)||e&&El(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(El(e,SharedArrayBuffer)||e&&El(e.buffer,SharedArrayBuffer)))return rA(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return je.from(a,r,t);let n=yze(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return je.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}je.from=function(e,r,t){return wre(e,r,t)};Object.setPrototypeOf(je.prototype,Uint8Array.prototype);Object.setPrototypeOf(je,Uint8Array);function Tre(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function dze(e,r,t){return Tre(e),e<=0?hs(e):r!==void 0?typeof t=="string"?hs(e).fill(r,t):hs(e).fill(r):hs(e)}je.alloc=function(e,r,t){return dze(e,r,t)};function aA(e){return Tre(e),hs(e<0?0:nA(e)|0)}je.allocUnsafe=function(e){return aA(e)};je.allocUnsafeSlow=function(e){return aA(e)};function pze(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!je.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=Are(e,r)|0,a=hs(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function eA(e){let r=e.length<0?0:nA(e.length)|0,t=hs(r);for(let a=0;a<r;a+=1)t[a]=e[a]&255;return t}function mze(e){if(El(e,Uint8Array)){let r=new Uint8Array(e);return rA(r.buffer,r.byteOffset,r.byteLength)}return eA(e)}function rA(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');let a;return r===void 0&&t===void 0?a=new Uint8Array(e):t===void 0?a=new Uint8Array(e,r):a=new Uint8Array(e,r,t),Object.setPrototypeOf(a,je.prototype),a}function yze(e){if(je.isBuffer(e)){let r=nA(e.length)|0,t=hs(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||oA(e.length)?hs(0):eA(e);if(e.type==="Buffer"&&Array.isArray(e.data))return eA(e.data)}function nA(e){if(e>=X3)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+X3.toString(16)+" bytes");return e|0}function gze(e){return+e!=e&&(e=0),je.alloc(+e)}je.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==je.prototype};je.compare=function(r,t){if(El(r,Uint8Array)&&(r=je.from(r,r.offset,r.byteLength)),El(t,Uint8Array)&&(t=je.from(t,t.offset,t.byteLength)),!je.isBuffer(r)||!je.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);i<o;++i)if(r[i]!==t[i]){a=r[i],n=t[i];break}return a<n?-1:n<a?1:0};je.isEncoding=function(r){switch(String(r).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}};je.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return je.alloc(0);let a;if(t===void 0)for(t=0,a=0;a<r.length;++a)t+=r[a].length;let n=je.allocUnsafe(t),i=0;for(a=0;a<r.length;++a){let o=r[a];if(El(o,Uint8Array))i+o.length>n.length?(je.isBuffer(o)||(o=je.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(je.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function Are(e,r){if(je.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||El(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return tA(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Pre(e).length;default:if(n)return a?-1:tA(e).length;r=(""+r).toLowerCase(),n=!0}}je.byteLength=Are;function bze(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Lze(this,r,t);case"utf8":case"utf-8":return kre(this,r,t);case"ascii":return Sze(this,r,t);case"latin1":case"binary":return qze(this,r,t);case"base64":return Mze(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Cze(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}je.prototype._isBuffer=!0;function Vf(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}je.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<r;t+=2)Vf(this,t,t+1);return this};je.prototype.swap32=function(){let r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<r;t+=4)Vf(this,t,t+3),Vf(this,t+1,t+2);return this};je.prototype.swap64=function(){let r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<r;t+=8)Vf(this,t,t+7),Vf(this,t+1,t+6),Vf(this,t+2,t+5),Vf(this,t+3,t+4);return this};je.prototype.toString=function(){let r=this.length;return r===0?"":arguments.length===0?kre(this,0,r):bze.apply(this,arguments)};je.prototype.toLocaleString=je.prototype.toString;je.prototype.equals=function(r){if(!je.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:je.compare(this,r)===0};je.prototype.inspect=function(){let r="",t=vv.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};gre&&(je.prototype[gre]=je.prototype.inspect);je.prototype.compare=function(r,t,a,n,i){if(El(r,Uint8Array)&&(r=je.from(r,r.offset,r.byteLength)),!je.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),u=this.slice(n,i),f=r.slice(t,a);for(let c=0;c<s;++c)if(u[c]!==f[c]){o=u[c],l=f[c];break}return o<l?-1:l<o?1:0};function Mre(e,r,t,a,n){if(e.length===0)return-1;if(typeof t=="string"?(a=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,oA(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=je.from(r,a)),je.isBuffer(r))return r.length===0?-1:bre(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):bre(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function bre(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(f,c){return i===1?f[c]:f.readUInt16BE(c*i)}let u;if(n){let f=-1;for(u=t;u<o;u++)if(s(e,u)===s(r,f===-1?0:u-f)){if(f===-1&&(f=u),u-f+1===l)return f*i}else f!==-1&&(u-=u-f),f=-1}else for(t+l>o&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;c<l;c++)if(s(e,u+c)!==s(r,c)){f=!1;break}if(f)return u}return-1}je.prototype.includes=function(r,t,a){return this.indexOf(r,t,a)!==-1};je.prototype.indexOf=function(r,t,a){return Mre(this,r,t,a,!0)};je.prototype.lastIndexOf=function(r,t,a){return Mre(this,r,t,a,!1)};function xze(e,r,t,a){t=Number(t)||0;let n=e.length-t;a?(a=Number(a),a>n&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o<a;++o){let l=parseInt(r.substr(o*2,2),16);if(oA(l))return o;e[t+o]=l}return o}function _ze(e,r,t,a){return Z3(tA(r,e.length-t),e,t,a)}function wze(e,r,t,a){return Z3(Rze(r),e,t,a)}function Tze(e,r,t,a){return Z3(Pre(r),e,t,a)}function Aze(e,r,t,a){return Z3(Fze(r,e.length-t),e,t,a)}je.prototype.write=function(r,t,a,n){if(t===void 0)n="utf8",a=this.length,t=0;else if(a===void 0&&typeof t=="string")n=t,a=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return xze(this,r,t,a);case"utf8":case"utf-8":return _ze(this,r,t,a);case"ascii":case"latin1":case"binary":return wze(this,r,t,a);case"base64":return Tze(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Aze(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};je.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Mze(e,r,t){return r===0&&t===e.length?QT.fromByteArray(e):QT.fromByteArray(e.slice(r,t))}function kre(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n<t;){let i=e[n],o=null,l=i>239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,u,f,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],u=e[n+2],(s&192)===128&&(u&192)===128&&(c=(i&15)<<12|(s&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],u=e[n+2],f=e[n+3],(s&192)===128&&(u&192)===128&&(f&192)===128&&(c=(i&15)<<18|(s&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return kze(a)}var xre=4096;function kze(e){let r=e.length;if(r<=xre)return String.fromCharCode.apply(String,e);let t="",a=0;for(;a<r;)t+=String.fromCharCode.apply(String,e.slice(a,a+=xre));return t}function Sze(e,r,t){let a="";t=Math.min(e.length,t);for(let n=r;n<t;++n)a+=String.fromCharCode(e[n]&127);return a}function qze(e,r,t){let a="";t=Math.min(e.length,t);for(let n=r;n<t;++n)a+=String.fromCharCode(e[n]);return a}function Lze(e,r,t){let a=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>a)&&(t=a);let n="";for(let i=r;i<t;++i)n+=zze[e[i]];return n}function Cze(e,r,t){let a=e.slice(r,t),n="";for(let i=0;i<a.length-1;i+=2)n+=String.fromCharCode(a[i]+a[i+1]*256);return n}je.prototype.slice=function(r,t){let a=this.length;r=~~r,t=t===void 0?a:~~t,r<0?(r+=a,r<0&&(r=0)):r>a&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),t<r&&(t=r);let n=this.subarray(r,t);return Object.setPrototypeOf(n,je.prototype),n};function hn(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}je.prototype.readUintLE=je.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||hn(r,t,this.length);let n=this[r],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[r+o]*i;return n};je.prototype.readUintBE=je.prototype.readUIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||hn(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};je.prototype.readUint8=je.prototype.readUInt8=function(r,t){return r=r>>>0,t||hn(r,1,this.length),this[r]};je.prototype.readUint16LE=je.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||hn(r,2,this.length),this[r]|this[r+1]<<8};je.prototype.readUint16BE=je.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||hn(r,2,this.length),this[r]<<8|this[r+1]};je.prototype.readUint32LE=je.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||hn(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};je.prototype.readUint32BE=je.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||hn(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};je.prototype.readBigUInt64LE=uu(function(r){r=r>>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&T2(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))});je.prototype.readBigUInt64BE=uu(function(r){r=r>>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&T2(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<<BigInt(32))+BigInt(i)});je.prototype.readIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||hn(r,t,this.length);let n=this[r],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[r+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n};je.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||hn(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};je.prototype.readInt8=function(r,t){return r=r>>>0,t||hn(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};je.prototype.readInt16LE=function(r,t){r=r>>>0,t||hn(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};je.prototype.readInt16BE=function(r,t){r=r>>>0,t||hn(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};je.prototype.readInt32LE=function(r,t){return r=r>>>0,t||hn(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};je.prototype.readInt32BE=function(r,t){return r=r>>>0,t||hn(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};je.prototype.readBigInt64LE=uu(function(r){r=r>>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&T2(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24)});je.prototype.readBigInt64BE=uu(function(r){r=r>>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&T2(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<<BigInt(32))+BigInt(this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a)});je.prototype.readFloatLE=function(r,t){return r=r>>>0,t||hn(r,4,this.length),fv.read(this,r,!0,23,4)};je.prototype.readFloatBE=function(r,t){return r=r>>>0,t||hn(r,4,this.length),fv.read(this,r,!1,23,4)};je.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||hn(r,8,this.length),fv.read(this,r,!0,52,8)};je.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||hn(r,8,this.length),fv.read(this,r,!1,52,8)};function vi(e,r,t,a,n,i){if(!je.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<i)throw new RangeError('"value" argument is out of bounds');if(t+a>e.length)throw new RangeError("Index out of range")}je.prototype.writeUintLE=je.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;vi(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o<a&&(i*=256);)this[t+o]=r/i&255;return t+a};je.prototype.writeUintBE=je.prototype.writeUIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;vi(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};je.prototype.writeUint8=je.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,1,255,0),this[t]=r&255,t+1};je.prototype.writeUint16LE=je.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};je.prototype.writeUint16BE=je.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};je.prototype.writeUint32LE=je.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};je.prototype.writeUint32BE=je.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function Sre(e,r,t,a,n){Ere(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function qre(e,r,t,a,n){Ere(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}je.prototype.writeBigUInt64LE=uu(function(r,t=0){return Sre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeBigUInt64BE=uu(function(r,t=0){return qre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);vi(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i<a&&(o*=256);)r<0&&l===0&&this[t+i-1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};je.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);vi(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};je.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};je.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};je.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};je.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};je.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};je.prototype.writeBigInt64LE=uu(function(r,t=0){return Sre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});je.prototype.writeBigInt64BE=uu(function(r,t=0){return qre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Lre(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Cre(e,r,t,a,n){return r=+r,t=t>>>0,n||Lre(e,r,t,4,34028234663852886e22,-34028234663852886e22),fv.write(e,r,t,a,23,4),t+4}je.prototype.writeFloatLE=function(r,t,a){return Cre(this,r,t,!0,a)};je.prototype.writeFloatBE=function(r,t,a){return Cre(this,r,t,!1,a)};function Dre(e,r,t,a,n){return r=+r,t=t>>>0,n||Lre(e,r,t,8,17976931348623157e292,-17976931348623157e292),fv.write(e,r,t,a,52,8),t+8}je.prototype.writeDoubleLE=function(r,t,a){return Dre(this,r,t,!0,a)};je.prototype.writeDoubleBE=function(r,t,a){return Dre(this,r,t,!1,a)};je.prototype.copy=function(r,t,a,n){if(!je.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<a&&(n=a),n===a||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-a&&(n=r.length-t+a);let i=n-a;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,a,n):Uint8Array.prototype.set.call(r,this.subarray(a,n),t),i};je.prototype.fill=function(r,t,a,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,a=this.length):typeof a=="string"&&(n=a,a=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!je.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){let o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<a)throw new RangeError("Out of range index");if(a<=t)return this;t=t>>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i<a;++i)this[i]=r;else{let o=je.isBuffer(r)?r:je.from(r,n),l=o.length;if(l===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(i=0;i<a-t;++i)this[i+t]=o[i%l]}return this};var uv={};function iA(e,r,t){uv[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:r.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}iA("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);iA("ERR_INVALID_ARG_TYPE",function(e,r){return`The "${e}" argument must be of type number. Received type ${typeof r}`},TypeError);iA("ERR_OUT_OF_RANGE",function(e,r,t){let a=`The value of "${e}" is out of range.`,n=t;return Number.isInteger(t)&&Math.abs(t)>2**32?n=_re(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=_re(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function _re(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function Dze(e,r,t){cv(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&T2(r,e.length-(t+1))}function Ere(e,r,t,a,n,i){if(e>t||e<r){let o=typeof r=="bigint"?"n":"",l;throw i>3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new uv.ERR_OUT_OF_RANGE("value",l,e)}Dze(a,n,i)}function cv(e,r){if(typeof e!="number")throw new uv.ERR_INVALID_ARG_TYPE(r,"number",e)}function T2(e,r,t){throw Math.floor(e)!==e?(cv(e,t),new uv.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new uv.ERR_BUFFER_OUT_OF_BOUNDS:new uv.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var Eze=/[^+/0-9A-Za-z-_]/g;function Pze(e){if(e=e.split("=")[0],e=e.trim().replace(Eze,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function tA(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o<a;++o){if(t=e.charCodeAt(o),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function Rze(e){let r=[];for(let t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function Fze(e,r){let t,a,n,i=[];for(let o=0;o<e.length&&!((r-=2)<0);++o)t=e.charCodeAt(o),a=t>>8,n=t%256,i.push(n),i.push(a);return i}function Pre(e){return QT.toByteArray(Pze(e))}function Z3(e,r,t,a){let n;for(n=0;n<a&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function El(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function oA(e){return e!==e}var zze=(function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r})();function uu(e){return typeof BigInt=="undefined"?Nze:e}function Nze(){throw new Error("BigInt not supported")}});var $3=z((mrr,Rre)=>{"use strict";Rre.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var A2=z((yrr,Fre)=>{"use strict";var Ize=$3();Fre.exports=function(){return Ize()&&!!Symbol.toStringTag}});var J3=z((grr,zre)=>{"use strict";zre.exports=Object});var Ire=z((brr,Nre)=>{"use strict";Nre.exports=Error});var Ore=z((xrr,Bre)=>{"use strict";Bre.exports=EvalError});var Ure=z((_rr,Hre)=>{"use strict";Hre.exports=RangeError});var Yre=z((wrr,Gre)=>{"use strict";Gre.exports=ReferenceError});var lA=z((Trr,Vre)=>{"use strict";Vre.exports=SyntaxError});var dv=z((Arr,jre)=>{"use strict";jre.exports=TypeError});var Xre=z((Mrr,Wre)=>{"use strict";Wre.exports=URIError});var $re=z((krr,Zre)=>{"use strict";Zre.exports=Math.abs});var Kre=z((Srr,Jre)=>{"use strict";Jre.exports=Math.floor});var ete=z((qrr,Qre)=>{"use strict";Qre.exports=Math.max});var tte=z((Lrr,rte)=>{"use strict";rte.exports=Math.min});var nte=z((Crr,ate)=>{"use strict";ate.exports=Math.pow});var ote=z((Drr,ite)=>{"use strict";ite.exports=Math.round});var ste=z((Err,lte)=>{"use strict";lte.exports=Number.isNaN||function(r){return r!==r}});var fte=z((Prr,ute)=>{"use strict";var Bze=ste();ute.exports=function(r){return Bze(r)||r===0?r:r<0?-1:1}});var vte=z((Rrr,cte)=>{"use strict";cte.exports=Object.getOwnPropertyDescriptor});var jf=z((Frr,hte)=>{"use strict";var K3=vte();if(K3)try{K3([],"length")}catch(e){K3=null}hte.exports=K3});var M2=z((zrr,dte)=>{"use strict";var Q3=Object.defineProperty||!1;if(Q3)try{Q3({},"a",{value:1})}catch(e){Q3=!1}dte.exports=Q3});var yte=z((Nrr,mte)=>{"use strict";var pte=typeof Symbol!="undefined"&&Symbol,Oze=$3();mte.exports=function(){return typeof pte!="function"||typeof Symbol!="function"||typeof pte("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Oze()}});var sA=z((Irr,gte)=>{"use strict";gte.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var uA=z((Brr,bte)=>{"use strict";var Hze=J3();bte.exports=Hze.getPrototypeOf||null});var wte=z((Orr,_te)=>{"use strict";var Uze="Function.prototype.bind called on incompatible ",Gze=Object.prototype.toString,Yze=Math.max,Vze="[object Function]",xte=function(r,t){for(var a=[],n=0;n<r.length;n+=1)a[n]=r[n];for(var i=0;i<t.length;i+=1)a[i+r.length]=t[i];return a},jze=function(r,t){for(var a=[],n=t||0,i=0;n<r.length;n+=1,i+=1)a[i]=r[n];return a},Wze=function(e,r){for(var t="",a=0;a<e.length;a+=1)t+=e[a],a+1<e.length&&(t+=r);return t};_te.exports=function(r){var t=this;if(typeof t!="function"||Gze.apply(t)!==Vze)throw new TypeError(Uze+t);for(var a=jze(arguments,1),n,i=function(){if(this instanceof n){var f=t.apply(this,xte(a,arguments));return Object(f)===f?f:this}return t.apply(r,xte(a,arguments))},o=Yze(0,t.length-a.length),l=[],s=0;s<o;s++)l[s]="$"+s;if(n=Function("binder","return function ("+Wze(l,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var u=function(){};u.prototype=t.prototype,n.prototype=new u,u.prototype=null}return n}});var pv=z((Hrr,Tte)=>{"use strict";var Xze=wte();Tte.exports=Function.prototype.bind||Xze});var eb=z((Urr,Ate)=>{"use strict";Ate.exports=Function.prototype.call});var rb=z((Grr,Mte)=>{"use strict";Mte.exports=Function.prototype.apply});var Ste=z((Yrr,kte)=>{"use strict";kte.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var fA=z((Vrr,qte)=>{"use strict";var Zze=pv(),$ze=rb(),Jze=eb(),Kze=Ste();qte.exports=Kze||Zze.call(Jze,$ze)});var tb=z((jrr,Lte)=>{"use strict";var Qze=pv(),eNe=dv(),rNe=eb(),tNe=fA();Lte.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new eNe("a function is required");return tNe(Qze,rNe,r)}});var Fte=z((Wrr,Rte)=>{"use strict";var aNe=tb(),Cte=jf(),Ete;try{Ete=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var cA=!!Ete&&Cte&&Cte(Object.prototype,"__proto__"),Pte=Object,Dte=Pte.getPrototypeOf;Rte.exports=cA&&typeof cA.get=="function"?aNe([cA.get]):typeof Dte=="function"?function(r){return Dte(r==null?r:Pte(r))}:!1});var ab=z((Xrr,Bte)=>{"use strict";var zte=sA(),Nte=uA(),Ite=Fte();Bte.exports=zte?function(r){return zte(r)}:Nte?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return Nte(r)}:Ite?function(r){return Ite(r)}:null});var vA=z((Zrr,Ote)=>{"use strict";var nNe=Function.prototype.call,iNe=Object.prototype.hasOwnProperty,oNe=pv();Ote.exports=oNe.call(nNe,iNe)});var ob=z(($rr,jte)=>{"use strict";var ht,lNe=J3(),sNe=Ire(),uNe=Ore(),fNe=Ure(),cNe=Yre(),bv=lA(),gv=dv(),vNe=Xre(),hNe=$re(),dNe=Kre(),pNe=ete(),mNe=tte(),yNe=nte(),gNe=ote(),bNe=fte(),Yte=Function,hA=function(e){try{return Yte('"use strict"; return ('+e+").constructor;")()}catch(r){}},k2=jf(),xNe=M2(),dA=function(){throw new gv},_Ne=k2?(function(){try{return arguments.callee,dA}catch(e){try{return k2(arguments,"callee").get}catch(r){return dA}}})():dA,mv=yte()(),dn=ab(),wNe=uA(),TNe=sA(),Vte=rb(),S2=eb(),yv={},ANe=typeof Uint8Array=="undefined"||!dn?ht:dn(Uint8Array),Wf={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?ht:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ht:ArrayBuffer,"%ArrayIteratorPrototype%":mv&&dn?dn([][Symbol.iterator]()):ht,"%AsyncFromSyncIteratorPrototype%":ht,"%AsyncFunction%":yv,"%AsyncGenerator%":yv,"%AsyncGeneratorFunction%":yv,"%AsyncIteratorPrototype%":yv,"%Atomics%":typeof Atomics=="undefined"?ht:Atomics,"%BigInt%":typeof BigInt=="undefined"?ht:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ht:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ht:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ht:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":sNe,"%eval%":eval,"%EvalError%":uNe,"%Float16Array%":typeof Float16Array=="undefined"?ht:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?ht:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ht:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ht:FinalizationRegistry,"%Function%":Yte,"%GeneratorFunction%":yv,"%Int8Array%":typeof Int8Array=="undefined"?ht:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ht:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ht:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":mv&&dn?dn(dn([][Symbol.iterator]())):ht,"%JSON%":typeof JSON=="object"?JSON:ht,"%Map%":typeof Map=="undefined"?ht:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!mv||!dn?ht:dn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":lNe,"%Object.getOwnPropertyDescriptor%":k2,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ht:Promise,"%Proxy%":typeof Proxy=="undefined"?ht:Proxy,"%RangeError%":fNe,"%ReferenceError%":cNe,"%Reflect%":typeof Reflect=="undefined"?ht:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ht:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!mv||!dn?ht:dn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ht:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":mv&&dn?dn(""[Symbol.iterator]()):ht,"%Symbol%":mv?Symbol:ht,"%SyntaxError%":bv,"%ThrowTypeError%":_Ne,"%TypedArray%":ANe,"%TypeError%":gv,"%Uint8Array%":typeof Uint8Array=="undefined"?ht:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ht:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ht:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ht:Uint32Array,"%URIError%":vNe,"%WeakMap%":typeof WeakMap=="undefined"?ht:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ht:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ht:WeakSet,"%Function.prototype.call%":S2,"%Function.prototype.apply%":Vte,"%Object.defineProperty%":xNe,"%Object.getPrototypeOf%":wNe,"%Math.abs%":hNe,"%Math.floor%":dNe,"%Math.max%":pNe,"%Math.min%":mNe,"%Math.pow%":yNe,"%Math.round%":gNe,"%Math.sign%":bNe,"%Reflect.getPrototypeOf%":TNe};if(dn)try{null.error}catch(e){Hte=dn(dn(e)),Wf["%Error.prototype%"]=Hte}var Hte,MNe=function e(r){var t;if(r==="%AsyncFunction%")t=hA("async function () {}");else if(r==="%GeneratorFunction%")t=hA("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=hA("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&dn&&(t=dn(n.prototype))}return Wf[r]=t,t},Ute={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},q2=pv(),nb=vA(),kNe=q2.call(S2,Array.prototype.concat),SNe=q2.call(Vte,Array.prototype.splice),Gte=q2.call(S2,String.prototype.replace),ib=q2.call(S2,String.prototype.slice),qNe=q2.call(S2,RegExp.prototype.exec),LNe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,CNe=/\\(\\)?/g,DNe=function(r){var t=ib(r,0,1),a=ib(r,-1);if(t==="%"&&a!=="%")throw new bv("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new bv("invalid intrinsic syntax, expected opening `%`");var n=[];return Gte(r,LNe,function(i,o,l,s){n[n.length]=l?Gte(s,CNe,"$1"):o||i}),n},ENe=function(r,t){var a=r,n;if(nb(Ute,a)&&(n=Ute[a],a="%"+n[0]+"%"),nb(Wf,a)){var i=Wf[a];if(i===yv&&(i=MNe(a)),typeof i=="undefined"&&!t)throw new gv("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new bv("intrinsic "+r+" does not exist!")};jte.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new gv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new gv('"allowMissing" argument must be a boolean');if(qNe(/^%?[^%]*%?$/,r)===null)throw new bv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=DNe(r),n=a.length>0?a[0]:"",i=ENe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],SNe(a,kNe([0,1],u)));for(var f=1,c=!0;f<a.length;f+=1){var v=a[f],d=ib(v,0,1),p=ib(v,-1);if((d==='"'||d==="'"||d==="`"||p==='"'||p==="'"||p==="`")&&d!==p)throw new bv("property names with quotes must have matching quotes");if((v==="constructor"||!c)&&(s=!0),n+="."+v,o="%"+n+"%",nb(Wf,o))l=Wf[o];else if(l!=null){if(!(v in l)){if(!t)throw new gv("base intrinsic for "+r+" exists, but the property is not available.");return}if(k2&&f+1>=a.length){var m=k2(l,v);c=!!m,c&&"get"in m&&!("originalValue"in m.get)?l=m.get:l=l[v]}else c=nb(l,v),l=l[v];c&&!s&&(Wf[o]=l)}}return l}});var Xf=z((Jrr,Zte)=>{"use strict";var Wte=ob(),Xte=tb(),PNe=Xte([Wte("%String.prototype.indexOf%")]);Zte.exports=function(r,t){var a=Wte(r,!!t);return typeof a=="function"&&PNe(r,".prototype.")>-1?Xte([a]):a}});var Kte=z((Krr,Jte)=>{"use strict";var RNe=A2()(),FNe=Xf(),pA=FNe("Object.prototype.toString"),lb=function(r){return RNe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:pA(r)==="[object Arguments]"},$te=function(r){return lb(r)?!0:r!==null&&typeof r=="object"&&"length"in r&&typeof r.length=="number"&&r.length>=0&&pA(r)!=="[object Array]"&&"callee"in r&&pA(r.callee)==="[object Function]"},zNe=(function(){return lb(arguments)})();lb.isLegacyArguments=$te;Jte.exports=zNe?lb:$te});var nae=z((Qrr,aae)=>{"use strict";var Qte=Xf(),NNe=A2()(),INe=vA(),BNe=jf(),gA;NNe?(eae=Qte("RegExp.prototype.exec"),mA={},sb=function(){throw mA},yA={toString:sb,valueOf:sb},typeof Symbol.toPrimitive=="symbol"&&(yA[Symbol.toPrimitive]=sb),gA=function(r){if(!r||typeof r!="object")return!1;var t=BNe(r,"lastIndex"),a=t&&INe(t,"value");if(!a)return!1;try{eae(r,yA)}catch(n){return n===mA}}):(rae=Qte("Object.prototype.toString"),tae="[object RegExp]",gA=function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:rae(r)===tae});var eae,mA,sb,yA,rae,tae;aae.exports=gA});var oae=z((etr,iae)=>{"use strict";var ONe=Xf(),HNe=nae(),UNe=ONe("RegExp.prototype.exec"),GNe=dv();iae.exports=function(r){if(!HNe(r))throw new GNe("`regex` must be a RegExp");return function(a){return UNe(r,a)!==null}}});var sae=z((rtr,lae)=>{"use strict";var YNe=function*(){}.constructor;lae.exports=()=>YNe});var vae=z((ttr,cae)=>{"use strict";var fae=Xf(),VNe=oae(),jNe=VNe(/^\s*(?:function)?\*/),WNe=A2()(),uae=ab(),XNe=fae("Object.prototype.toString"),ZNe=fae("Function.prototype.toString"),$Ne=sae();cae.exports=function(r){if(typeof r!="function")return!1;if(jNe(ZNe(r)))return!0;if(!WNe){var t=XNe(r);return t==="[object GeneratorFunction]"}if(!uae)return!1;var a=$Ne();return a&&uae(r)===a.prototype}});var mae=z((atr,pae)=>{"use strict";var dae=Function.prototype.toString,xv=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,xA,ub;if(typeof xv=="function"&&typeof Object.defineProperty=="function")try{xA=Object.defineProperty({},"length",{get:function(){throw ub}}),ub={},xv(function(){throw 42},null,xA)}catch(e){e!==ub&&(xv=null)}else xv=null;var JNe=/^\s*class\b/,_A=function(r){try{var t=dae.call(r);return JNe.test(t)}catch(a){return!1}},bA=function(r){try{return _A(r)?!1:(dae.call(r),!0)}catch(t){return!1}},fb=Object.prototype.toString,KNe="[object Object]",QNe="[object Function]",eIe="[object GeneratorFunction]",rIe="[object HTMLAllCollection]",tIe="[object HTML document.all class]",aIe="[object HTMLCollection]",nIe=typeof Symbol=="function"&&!!Symbol.toStringTag,iIe=!(0 in[,]),wA=function(){return!1};typeof document=="object"&&(hae=document.all,fb.call(hae)===fb.call(document.all)&&(wA=function(r){if((iIe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=fb.call(r);return(t===rIe||t===tIe||t===aIe||t===KNe)&&r("")==null}catch(a){}return!1}));var hae;pae.exports=xv?function(r){if(wA(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{xv(r,null,xA)}catch(t){if(t!==ub)return!1}return!_A(r)&&bA(r)}:function(r){if(wA(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(nIe)return bA(r);if(_A(r))return!1;var t=fb.call(r);return t!==QNe&&t!==eIe&&!/^\[object HTML/.test(t)?!1:bA(r)}});var bae=z((ntr,gae)=>{"use strict";var oIe=mae(),lIe=Object.prototype.toString,yae=Object.prototype.hasOwnProperty,sIe=function(r,t,a){for(var n=0,i=r.length;n<i;n++)yae.call(r,n)&&(a==null?t(r[n],n,r):t.call(a,r[n],n,r))},uIe=function(r,t,a){for(var n=0,i=r.length;n<i;n++)a==null?t(r.charAt(n),n,r):t.call(a,r.charAt(n),n,r)},fIe=function(r,t,a){for(var n in r)yae.call(r,n)&&(a==null?t(r[n],n,r):t.call(a,r[n],n,r))};function cIe(e){return lIe.call(e)==="[object Array]"}gae.exports=function(r,t,a){if(!oIe(t))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=a),cIe(r)?sIe(r,t,n):typeof r=="string"?uIe(r,t,n):fIe(r,t,n)}});var _ae=z((itr,xae)=>{"use strict";xae.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var Tae=z((otr,wae)=>{"use strict";var TA=_ae(),vIe=typeof globalThis=="undefined"?window:globalThis;wae.exports=function(){for(var r=[],t=0;t<TA.length;t++)typeof vIe[TA[t]]=="function"&&(r[r.length]=TA[t]);return r}});var AA=z((ltr,kae)=>{"use strict";var Aae=M2(),hIe=lA(),_v=dv(),Mae=jf();kae.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new _v("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new _v("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new _v("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new _v("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new _v("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new _v("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!Mae&&Mae(r,t);if(Aae)Aae(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new hIe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var kA=z((str,qae)=>{"use strict";var MA=M2(),Sae=function(){return!!MA};Sae.hasArrayLengthDefineBug=function(){if(!MA)return null;try{return MA([],"length",{value:1}).length!==1}catch(r){return!0}};qae.exports=Sae});var Pae=z((utr,Eae)=>{"use strict";var dIe=ob(),Lae=AA(),pIe=kA()(),Cae=jf(),Dae=dv(),mIe=dIe("%Math.floor%");Eae.exports=function(r,t){if(typeof r!="function")throw new Dae("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||mIe(t)!==t)throw new Dae("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&Cae){var o=Cae(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(pIe?Lae(r,"length",t,!0,!0):Lae(r,"length",t)),r}});var Fae=z((ftr,Rae)=>{"use strict";var yIe=pv(),gIe=rb(),bIe=fA();Rae.exports=function(){return bIe(yIe,gIe,arguments)}});var L2=z((ctr,cb)=>{"use strict";var xIe=Pae(),zae=M2(),_Ie=tb(),Nae=Fae();cb.exports=function(r){var t=_Ie(arguments),a=1+r.length-(arguments.length-1);return xIe(t,a>0?a:0,!0)};zae?zae(cb.exports,"apply",{value:Nae}):cb.exports.apply=Nae});var CA=z((vtr,Hae)=>{"use strict";var db=bae(),wIe=Tae(),Iae=L2(),qA=Xf(),hb=jf(),vb=ab(),TIe=qA("Object.prototype.toString"),Oae=A2()(),Bae=typeof globalThis=="undefined"?window:globalThis,SA=wIe(),LA=qA("String.prototype.slice"),AIe=qA("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a<r.length;a+=1)if(r[a]===t)return a;return-1},pb={__proto__:null};Oae&&hb&&vb?db(SA,function(e){var r=new Bae[e];if(Symbol.toStringTag in r&&vb){var t=vb(r),a=hb(t,Symbol.toStringTag);if(!a&&t){var n=vb(t);a=hb(n,Symbol.toStringTag)}if(a&&a.get){var i=Iae(a.get);pb["$"+e]=i}}}):db(SA,function(e){var r=new Bae[e],t=r.slice||r.set;if(t){var a=Iae(t);pb["$"+e]=a}});function MIe(e){var r=!1;return db(pb,function(t,a){if(!r)try{"$"+t(e)===a&&(r=LA(a,1))}catch(n){}}),r}function kIe(e){var r=!1;return db(pb,function(t,a){if(!r)try{t(e),r=LA(a,1)}catch(n){}}),r}function SIe(e){return AIe(SA,e)>-1}function qIe(e){if(!e||typeof e!="object")return!1;if(!Oae){var r=LA(TIe(e),8,-1);return SIe(r)?r:r!=="Object"?!1:kIe(e)}return hb?MIe(e):null}Hae.exports=qIe});var Gae=z((htr,Uae)=>{"use strict";var LIe=CA();Uae.exports=function(r){return!!LIe(r)}});var PA=z(dt=>{"use strict";var CIe=Kte(),DIe=vae(),el=CA(),Yae=Gae();function wv(e){return e.call.bind(e)}var Vae=typeof BigInt!="undefined",jae=typeof Symbol!="undefined",xo=wv(Object.prototype.toString),EIe=wv(Number.prototype.valueOf),PIe=wv(String.prototype.valueOf),RIe=wv(Boolean.prototype.valueOf);Vae&&(Wae=wv(BigInt.prototype.valueOf));var Wae;jae&&(Xae=wv(Symbol.prototype.valueOf));var Xae;function D2(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}dt.isArgumentsObject=CIe;dt.isGeneratorFunction=DIe;dt.isTypedArray=Yae;function FIe(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}dt.isPromise=FIe;function zIe(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Yae(e)||$ae(e)}dt.isArrayBufferView=zIe;function NIe(e){return el(e)==="Uint8Array"}dt.isUint8Array=NIe;function IIe(e){return el(e)==="Uint8ClampedArray"}dt.isUint8ClampedArray=IIe;function BIe(e){return el(e)==="Uint16Array"}dt.isUint16Array=BIe;function OIe(e){return el(e)==="Uint32Array"}dt.isUint32Array=OIe;function HIe(e){return el(e)==="Int8Array"}dt.isInt8Array=HIe;function UIe(e){return el(e)==="Int16Array"}dt.isInt16Array=UIe;function GIe(e){return el(e)==="Int32Array"}dt.isInt32Array=GIe;function YIe(e){return el(e)==="Float32Array"}dt.isFloat32Array=YIe;function VIe(e){return el(e)==="Float64Array"}dt.isFloat64Array=VIe;function jIe(e){return el(e)==="BigInt64Array"}dt.isBigInt64Array=jIe;function WIe(e){return el(e)==="BigUint64Array"}dt.isBigUint64Array=WIe;function mb(e){return xo(e)==="[object Map]"}mb.working=typeof Map!="undefined"&&mb(new Map);function XIe(e){return typeof Map=="undefined"?!1:mb.working?mb(e):e instanceof Map}dt.isMap=XIe;function yb(e){return xo(e)==="[object Set]"}yb.working=typeof Set!="undefined"&&yb(new Set);function ZIe(e){return typeof Set=="undefined"?!1:yb.working?yb(e):e instanceof Set}dt.isSet=ZIe;function gb(e){return xo(e)==="[object WeakMap]"}gb.working=typeof WeakMap!="undefined"&&gb(new WeakMap);function $Ie(e){return typeof WeakMap=="undefined"?!1:gb.working?gb(e):e instanceof WeakMap}dt.isWeakMap=$Ie;function EA(e){return xo(e)==="[object WeakSet]"}EA.working=typeof WeakSet!="undefined"&&EA(new WeakSet);function JIe(e){return EA(e)}dt.isWeakSet=JIe;function bb(e){return xo(e)==="[object ArrayBuffer]"}bb.working=typeof ArrayBuffer!="undefined"&&bb(new ArrayBuffer);function Zae(e){return typeof ArrayBuffer=="undefined"?!1:bb.working?bb(e):e instanceof ArrayBuffer}dt.isArrayBuffer=Zae;function xb(e){return xo(e)==="[object DataView]"}xb.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&xb(new DataView(new ArrayBuffer(1),0,1));function $ae(e){return typeof DataView=="undefined"?!1:xb.working?xb(e):e instanceof DataView}dt.isDataView=$ae;var DA=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function C2(e){return xo(e)==="[object SharedArrayBuffer]"}function Jae(e){return typeof DA=="undefined"?!1:(typeof C2.working=="undefined"&&(C2.working=C2(new DA)),C2.working?C2(e):e instanceof DA)}dt.isSharedArrayBuffer=Jae;function KIe(e){return xo(e)==="[object AsyncFunction]"}dt.isAsyncFunction=KIe;function QIe(e){return xo(e)==="[object Map Iterator]"}dt.isMapIterator=QIe;function eBe(e){return xo(e)==="[object Set Iterator]"}dt.isSetIterator=eBe;function rBe(e){return xo(e)==="[object Generator]"}dt.isGeneratorObject=rBe;function tBe(e){return xo(e)==="[object WebAssembly.Module]"}dt.isWebAssemblyCompiledModule=tBe;function Kae(e){return D2(e,EIe)}dt.isNumberObject=Kae;function Qae(e){return D2(e,PIe)}dt.isStringObject=Qae;function ene(e){return D2(e,RIe)}dt.isBooleanObject=ene;function rne(e){return Vae&&D2(e,Wae)}dt.isBigIntObject=rne;function tne(e){return jae&&D2(e,Xae)}dt.isSymbolObject=tne;function aBe(e){return Kae(e)||Qae(e)||ene(e)||rne(e)||tne(e)}dt.isBoxedPrimitive=aBe;function nBe(e){return typeof Uint8Array!="undefined"&&(Zae(e)||Jae(e))}dt.isAnyArrayBuffer=nBe;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(dt,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var RA=z((ptr,ane)=>{ane.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var OA=z(pt=>{var nne=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n<t.length;n++)a[t[n]]=Object.getOwnPropertyDescriptor(r,t[n]);return a},iBe=/%[sdj%]/g;pt.format=function(e){if(!Sb(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(fu(arguments[t]));return r.join(" ")}for(var t=1,a=arguments,n=a.length,i=String(e).replace(iBe,function(l){if(l==="%%")return"%";if(t>=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t<n;o=a[++t])kb(o)||!Tv(o)?i+=" "+o:i+=" "+fu(o);return i};pt.deprecate=function(e,r){if(typeof process!="undefined"&&process.noDeprecation===!0)return e;if(typeof process=="undefined")return function(){return pt.deprecate(e,r).apply(this,arguments)};var t=!1;function a(){if(!t){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return a};var _b={},ine=/^$/;wb="false",wb=wb.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ine=new RegExp("^"+wb+"$","i");var wb;pt.debuglog=function(e){if(e=e.toUpperCase(),!_b[e])if(ine.test(e)){var r=process.pid;_b[e]=function(){var t=pt.format.apply(pt,arguments);console.error("%s %d: %s",e,r,t)}}else _b[e]=function(){};return _b[e]};function fu(e,r){var t={seen:[],stylize:lBe};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),IA(r)?t.showHidden=r:r&&pt._extend(t,r),$f(t.showHidden)&&(t.showHidden=!1),$f(t.depth)&&(t.depth=2),$f(t.colors)&&(t.colors=!1),$f(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=oBe),Ab(t,e,t.depth)}pt.inspect=fu;fu.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};fu.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function oBe(e,r){var t=fu.styles[r];return t?"\x1B["+fu.colors[t][0]+"m"+e+"\x1B["+fu.colors[t][1]+"m":e}function lBe(e,r){return e}function sBe(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function Ab(e,r,t){if(e.customInspect&&r&&Tb(r.inspect)&&r.inspect!==pt.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Sb(a)||(a=Ab(e,a,t)),a}var n=uBe(e,r);if(n)return n;var i=Object.keys(r),o=sBe(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),P2(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return FA(r);if(i.length===0){if(Tb(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(E2(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Mb(r))return e.stylize(Date.prototype.toString.call(r),"date");if(P2(r))return FA(r)}var s="",u=!1,f=["{","}"];if(one(r)&&(u=!0,f=["[","]"]),Tb(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(E2(r)&&(s=" "+RegExp.prototype.toString.call(r)),Mb(r)&&(s=" "+Date.prototype.toUTCString.call(r)),P2(r)&&(s=" "+FA(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return E2(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=fBe(e,r,t,o,i):v=i.map(function(d){return NA(e,r,t,o,d,u)}),e.seen.pop(),cBe(v,s,f)}function uBe(e,r){if($f(r))return e.stylize("undefined","undefined");if(Sb(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(lne(r))return e.stylize(""+r,"number");if(IA(r))return e.stylize(""+r,"boolean");if(kb(r))return e.stylize("null","null")}function FA(e){return"["+Error.prototype.toString.call(e)+"]"}function fBe(e,r,t,a,n){for(var i=[],o=0,l=r.length;o<l;++o)sne(r,String(o))?i.push(NA(e,r,t,a,String(o),!0)):i.push("");return n.forEach(function(s){s.match(/^\d+$/)||i.push(NA(e,r,t,a,s,!0))}),i}function NA(e,r,t,a,n,i){var o,l,s;if(s=Object.getOwnPropertyDescriptor(r,n)||{value:r[n]},s.get?s.set?l=e.stylize("[Getter/Setter]","special"):l=e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),sne(a,n)||(o="["+n+"]"),l||(e.seen.indexOf(s.value)<0?(kb(t)?l=Ab(e,s.value,null):l=Ab(e,s.value,t-1),l.indexOf(`
`)>-1&&(i?l=l.split(`
`).map(function(u){return"  "+u}).join(`
`).slice(2):l=`
`+l.split(`
`).map(function(u){return"   "+u}).join(`
`))):l=e.stylize("[Circular]","special")),$f(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function cBe(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(`
`)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+`
 `)+" "+e.join(`,
  `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}pt.types=PA();function one(e){return Array.isArray(e)}pt.isArray=one;function IA(e){return typeof e=="boolean"}pt.isBoolean=IA;function kb(e){return e===null}pt.isNull=kb;function vBe(e){return e==null}pt.isNullOrUndefined=vBe;function lne(e){return typeof e=="number"}pt.isNumber=lne;function Sb(e){return typeof e=="string"}pt.isString=Sb;function hBe(e){return typeof e=="symbol"}pt.isSymbol=hBe;function $f(e){return e===void 0}pt.isUndefined=$f;function E2(e){return Tv(e)&&BA(e)==="[object RegExp]"}pt.isRegExp=E2;pt.types.isRegExp=E2;function Tv(e){return typeof e=="object"&&e!==null}pt.isObject=Tv;function Mb(e){return Tv(e)&&BA(e)==="[object Date]"}pt.isDate=Mb;pt.types.isDate=Mb;function P2(e){return Tv(e)&&(BA(e)==="[object Error]"||e instanceof Error)}pt.isError=P2;pt.types.isNativeError=P2;function Tb(e){return typeof e=="function"}pt.isFunction=Tb;function dBe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}pt.isPrimitive=dBe;pt.isBuffer=RA();function BA(e){return Object.prototype.toString.call(e)}function zA(e){return e<10?"0"+e.toString(10):e.toString(10)}var pBe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function mBe(){var e=new Date,r=[zA(e.getHours()),zA(e.getMinutes()),zA(e.getSeconds())].join(":");return[e.getDate(),pBe[e.getMonth()],r].join(" ")}pt.log=function(){console.log("%s - %s",mBe(),pt.format.apply(pt,arguments))};pt.inherits=vs();pt._extend=function(e,r){if(!r||!Tv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function sne(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var Zf=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;pt.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(Zf&&r[Zf]){var t=r[Zf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Zf,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l<arguments.length;l++)o.push(arguments[l]);o.push(function(s,u){s?n(s):a(u)});try{r.apply(this,o)}catch(s){n(s)}return i}return Object.setPrototypeOf(t,Object.getPrototypeOf(r)),Zf&&Object.defineProperty(t,Zf,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,nne(r))};pt.promisify.custom=Zf;function yBe(e,r){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return r(e)}function gBe(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function r(){for(var t=[],a=0;a<arguments.length;a++)t.push(arguments[a]);var n=t.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(l){process.nextTick(o.bind(null,null,l))},function(l){process.nextTick(yBe.bind(null,l,o))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,nne(e)),r}pt.callbackify=gBe});var dne=z((ytr,hne)=>{"use strict";function une(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function fne(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?une(Object(t),!0).forEach(function(a){bBe(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):une(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function bBe(e,r,t){return r=vne(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function xBe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function cne(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,vne(a.key),a)}}function _Be(e,r,t){return r&&cne(e.prototype,r),t&&cne(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vne(e){var r=wBe(e,"string");return typeof r=="symbol"?r:String(r)}function wBe(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var TBe=hv(),qb=TBe.Buffer,ABe=OA(),HA=ABe.inspect,MBe=HA&&HA.custom||"inspect";function kBe(e,r,t){qb.prototype.copy.call(e,r,t)}hne.exports=(function(){function e(){xBe(this,e),this.head=null,this.tail=null,this.length=0}return _Be(e,[{key:"push",value:function(t){var a={data:t,next:null};this.length>0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(t){var a={data:t,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var a=this.head,n=""+a.data;a=a.next;)n+=t+a.data;return n}},{key:"concat",value:function(t){if(this.length===0)return qb.alloc(0);for(var a=qb.allocUnsafe(t>>>0),n=this.head,i=0;n;)kBe(n.data,a,i),i+=n.data.length,n=n.next;return a}},{key:"consume",value:function(t,a){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):t===this.head.data.length?n=this.shift():n=a?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var a=this.head,n=1,i=a.data;for(t-=i.length;a=a.next;){var o=a.data,l=t>o.length?o.length:t;if(l===o.length?i+=o:i+=o.slice(0,t),t-=l,t===0){l===o.length?(++n,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(l));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var a=qb.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(a),t-=n.data.length;n=n.next;){var o=n.data,l=t>o.length?o.length:t;if(o.copy(a,a.length-t,0,l),t-=l,t===0){l===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(l));break}++i}return this.length-=i,a}},{key:MBe,value:function(t,a){return HA(this,fne(fne({},a),{},{depth:0,customInspect:!1}))}}]),e})()});var GA=z((gtr,mne)=>{"use strict";function SBe(e,r){var t=this,a=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return a||n?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(UA,this,e)):process.nextTick(UA,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!r&&i?t._writableState?t._writableState.errorEmitted?process.nextTick(Lb,t):(t._writableState.errorEmitted=!0,process.nextTick(pne,t,i)):process.nextTick(pne,t,i):r?(process.nextTick(Lb,t),r(i)):process.nextTick(Lb,t)}),this)}function pne(e,r){UA(e,r),Lb(e)}function Lb(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function qBe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function UA(e,r){e.emit("error",r)}function LBe(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}mne.exports={destroy:SBe,undestroy:qBe,errorOrDestroy:LBe}});var Jf=z((btr,bne)=>{"use strict";function CBe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var gne={};function _o(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=(function(i){CBe(o,i);function o(l,s,u){return i.call(this,a(l,s,u))||this}return o})(t);n.prototype.name=t.name,n.prototype.code=e,gne[e]=n}function yne(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function DBe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function EBe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function PBe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}_o("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);_o("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&DBe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(EBe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(yne(r,"type"));else{var i=PBe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(yne(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);_o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");_o("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});_o("ERR_STREAM_PREMATURE_CLOSE","Premature close");_o("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});_o("ERR_MULTIPLE_CALLBACK","Callback called multiple times");_o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");_o("ERR_STREAM_WRITE_AFTER_END","write after end");_o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);_o("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);_o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");bne.exports.codes=gne});var YA=z((xtr,xne)=>{"use strict";var RBe=Jf().codes.ERR_INVALID_OPT_VALUE;function FBe(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function zBe(e,r,t,a){var n=FBe(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new RBe(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}xne.exports={getHighWaterMark:zBe}});var wne=z((_tr,_ne)=>{_ne.exports=NBe;function NBe(e,r){if(VA("noDeprecation"))return e;var t=!1;function a(){if(!t){if(VA("throwDeprecation"))throw new Error(r);VA("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function VA(e){try{if(!window.localStorage)return!1}catch(t){return!1}var r=window.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var XA=z((wtr,qne)=>{"use strict";qne.exports=Ra;function Ane(e){var r=this;this.next=null,this.entry=null,this.finish=function(){fOe(r,e)}}var Av;Ra.WritableState=F2;var IBe={deprecate:wne()},Mne=$T(),Db=hv().Buffer,BBe=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function OBe(e){return Db.from(e)}function HBe(e){return Db.isBuffer(e)||e instanceof BBe}var WA=GA(),UBe=YA(),GBe=UBe.getHighWaterMark,cu=Jf().codes,YBe=cu.ERR_INVALID_ARG_TYPE,VBe=cu.ERR_METHOD_NOT_IMPLEMENTED,jBe=cu.ERR_MULTIPLE_CALLBACK,WBe=cu.ERR_STREAM_CANNOT_PIPE,XBe=cu.ERR_STREAM_DESTROYED,ZBe=cu.ERR_STREAM_NULL_VALUES,$Be=cu.ERR_STREAM_WRITE_AFTER_END,JBe=cu.ERR_UNKNOWN_ENCODING,Mv=WA.errorOrDestroy;vs()(Ra,Mne);function KBe(){}function F2(e,r,t){Av=Av||Kf(),e=e||{},typeof t!="boolean"&&(t=r instanceof Av),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=GBe(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){iOe(r,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ane(this)}F2.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(F2.prototype,"buffer",{get:IBe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var Cb;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Cb=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ra,Symbol.hasInstance,{value:function(r){return Cb.call(this,r)?!0:this!==Ra?!1:r&&r._writableState instanceof F2}})):Cb=function(r){return r instanceof this};function Ra(e){Av=Av||Kf();var r=this instanceof Av;if(!r&&!Cb.call(Ra,this))return new Ra(e);this._writableState=new F2(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Mne.call(this)}Ra.prototype.pipe=function(){Mv(this,new WBe)};function QBe(e,r){var t=new $Be;Mv(e,t),process.nextTick(r,t)}function eOe(e,r,t,a){var n;return t===null?n=new ZBe:typeof t!="string"&&!r.objectMode&&(n=new YBe("chunk",["string","Buffer"],t)),n?(Mv(e,n),process.nextTick(a,n),!1):!0}Ra.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&HBe(e);return i&&!Db.isBuffer(e)&&(e=OBe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=KBe),a.ending?QBe(this,t):(i||eOe(this,a,e,t))&&(a.pendingcb++,n=tOe(this,a,i,e,r,t)),n};Ra.prototype.cork=function(){this._writableState.corked++};Ra.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&kne(this,e))};Ra.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new JBe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(Ra.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function rOe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=Db.from(r,t)),r}Object.defineProperty(Ra.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function tOe(e,r,t,a,n,i){if(!t){var o=rOe(r,a,n);a!==o&&(t=!0,n="buffer",a=o)}var l=r.objectMode?1:a.length;r.length+=l;var s=r.length<r.highWaterMark;if(s||(r.needDrain=!0),r.writing||r.corked){var u=r.lastBufferedRequest;r.lastBufferedRequest={chunk:a,encoding:n,isBuf:t,callback:i,next:null},u?u.next=r.lastBufferedRequest:r.bufferedRequest=r.lastBufferedRequest,r.bufferedRequestCount+=1}else jA(e,r,!1,l,a,n,i);return s}function jA(e,r,t,a,n,i,o){r.writelen=a,r.writecb=o,r.writing=!0,r.sync=!0,r.destroyed?r.onwrite(new XBe("write")):t?e._writev(n,r.onwrite):e._write(n,i,r.onwrite),r.sync=!1}function aOe(e,r,t,a,n){--r.pendingcb,t?(process.nextTick(n,a),process.nextTick(R2,e,r),e._writableState.errorEmitted=!0,Mv(e,a)):(n(a),e._writableState.errorEmitted=!0,Mv(e,a),R2(e,r))}function nOe(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function iOe(e,r){var t=e._writableState,a=t.sync,n=t.writecb;if(typeof n!="function")throw new jBe;if(nOe(t),r)aOe(e,t,a,r,n);else{var i=Sne(t)||e.destroyed;!i&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&kne(e,t),a?process.nextTick(Tne,e,t,i,n):Tne(e,t,i,n)}}function Tne(e,r,t,a){t||oOe(e,r),r.pendingcb--,a(),R2(e,r)}function oOe(e,r){r.length===0&&r.needDrain&&(r.needDrain=!1,e.emit("drain"))}function kne(e,r){r.bufferProcessing=!0;var t=r.bufferedRequest;if(e._writev&&t&&t.next){var a=r.bufferedRequestCount,n=new Array(a),i=r.corkedRequestsFree;i.entry=t;for(var o=0,l=!0;t;)n[o]=t,t.isBuf||(l=!1),t=t.next,o+=1;n.allBuffers=l,jA(e,r,!0,r.length,n,"",i.finish),r.pendingcb++,r.lastBufferedRequest=null,i.next?(r.corkedRequestsFree=i.next,i.next=null):r.corkedRequestsFree=new Ane(r),r.bufferedRequestCount=0}else{for(;t;){var s=t.chunk,u=t.encoding,f=t.callback,c=r.objectMode?1:s.length;if(jA(e,r,!1,c,s,u,f),t=t.next,r.bufferedRequestCount--,r.writing)break}t===null&&(r.lastBufferedRequest=null)}r.bufferedRequest=t,r.bufferProcessing=!1}Ra.prototype._write=function(e,r,t){t(new VBe("_write()"))};Ra.prototype._writev=null;Ra.prototype.end=function(e,r,t){var a=this._writableState;return typeof e=="function"?(t=e,e=null,r=null):typeof r=="function"&&(t=r,r=null),e!=null&&this.write(e,r),a.corked&&(a.corked=1,this.uncork()),a.ending||uOe(this,a,t),this};Object.defineProperty(Ra.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Sne(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function lOe(e,r){e._final(function(t){r.pendingcb--,t&&Mv(e,t),r.prefinished=!0,e.emit("prefinish"),R2(e,r)})}function sOe(e,r){!r.prefinished&&!r.finalCalled&&(typeof e._final=="function"&&!r.destroyed?(r.pendingcb++,r.finalCalled=!0,process.nextTick(lOe,e,r)):(r.prefinished=!0,e.emit("prefinish")))}function R2(e,r){var t=Sne(r);if(t&&(sOe(e,r),r.pendingcb===0&&(r.finished=!0,e.emit("finish"),r.autoDestroy))){var a=e._readableState;(!a||a.autoDestroy&&a.endEmitted)&&e.destroy()}return t}function uOe(e,r,t){r.ending=!0,R2(e,r),t&&(r.finished?process.nextTick(t):e.once("finish",t)),r.ended=!0,e.writable=!1}function fOe(e,r,t){var a=e.entry;for(e.entry=null;a;){var n=a.callback;r.pendingcb--,n(t),a=a.next}r.corkedRequestsFree.next=e}Object.defineProperty(Ra.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(r){this._writableState&&(this._writableState.destroyed=r)}});Ra.prototype.destroy=WA.destroy;Ra.prototype._undestroy=WA.undestroy;Ra.prototype._destroy=function(e,r){r(e)}});var Kf=z((Ttr,Cne)=>{"use strict";var cOe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};Cne.exports=Pl;var Lne=JA(),$A=XA();vs()(Pl,Lne);for(ZA=cOe($A.prototype),Eb=0;Eb<ZA.length;Eb++)Pb=ZA[Eb],Pl.prototype[Pb]||(Pl.prototype[Pb]=$A.prototype[Pb]);var ZA,Pb,Eb;function Pl(e){if(!(this instanceof Pl))return new Pl(e);Lne.call(this,e),$A.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",vOe)))}Object.defineProperty(Pl.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Pl.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Pl.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function vOe(){this._writableState.ended||process.nextTick(hOe,this)}function hOe(e){e.end()}Object.defineProperty(Pl.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(r){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=r,this._writableState.destroyed=r)}})});var Pne=z((KA,Ene)=>{var Rb=hv(),Rl=Rb.Buffer;function Dne(e,r){for(var t in e)r[t]=e[t]}Rl.from&&Rl.alloc&&Rl.allocUnsafe&&Rl.allocUnsafeSlow?Ene.exports=Rb:(Dne(Rb,KA),KA.Buffer=Qf);function Qf(e,r,t){return Rl(e,r,t)}Qf.prototype=Object.create(Rl.prototype);Dne(Rl,Qf);Qf.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Rl(e,r,t)};Qf.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=Rl(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};Qf.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Rl(e)};Qf.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Rb.SlowBuffer(e)}});var rM=z(Fne=>{"use strict";var eM=Pne().Buffer,Rne=eM.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function dOe(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function pOe(e){var r=dOe(e);if(typeof r!="string"&&(eM.isEncoding===Rne||!Rne(e)))throw new Error("Unknown encoding: "+e);return r||e}Fne.StringDecoder=z2;function z2(e){this.encoding=pOe(e);var r;switch(this.encoding){case"utf16le":this.text=_Oe,this.end=wOe,r=4;break;case"utf8":this.fillLast=gOe,r=4;break;case"base64":this.text=TOe,this.end=AOe,r=3;break;default:this.write=MOe,this.end=kOe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=eM.allocUnsafe(r)}z2.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t<e.length?r?r+this.text(e,t):this.text(e,t):r||""};z2.prototype.end=xOe;z2.prototype.text=bOe;z2.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function QA(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function mOe(e,r,t){var a=r.length-1;if(a<t)return 0;var n=QA(r[a]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--a<t||n===-2?0:(n=QA(r[a]),n>=0?(n>0&&(e.lastNeed=n-2),n):--a<t||n===-2?0:(n=QA(r[a]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function yOe(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function gOe(e){var r=this.lastTotal-this.lastNeed,t=yOe(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function bOe(e,r){var t=mOe(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var a=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",r,a)}function xOe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function _Oe(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var a=t.charCodeAt(t.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function wOe(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function TOe(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function AOe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function MOe(e){return e.toString(this.encoding)}function kOe(e){return e&&e.length?this.write(e):""}});var Fb=z((Mtr,Ine)=>{"use strict";var zne=Jf().codes.ERR_STREAM_PREMATURE_CLOSE;function SOe(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];e.apply(this,a)}}}function qOe(){}function LOe(e){return e.setHeader&&typeof e.abort=="function"}function Nne(e,r,t){if(typeof r=="function")return Nne(e,null,r);r||(r={}),t=SOe(t||qOe);var a=r.readable||r.readable!==!1&&e.readable,n=r.writable||r.writable!==!1&&e.writable,i=function(){e.writable||l()},o=e._writableState&&e._writableState.finished,l=function(){n=!1,o=!0,a||t.call(e)},s=e._readableState&&e._readableState.endEmitted,u=function(){a=!1,s=!0,n||t.call(e)},f=function(p){t.call(e,p)},c=function(){var p;if(a&&!s)return(!e._readableState||!e._readableState.ended)&&(p=new zne),t.call(e,p);if(n&&!o)return(!e._writableState||!e._writableState.ended)&&(p=new zne),t.call(e,p)},v=function(){e.req.on("finish",l)};return LOe(e)?(e.on("complete",l),e.on("abort",c),e.req?v():e.on("request",v)):n&&!e._writableState&&(e.on("end",i),e.on("close",i)),e.on("end",u),e.on("finish",l),r.error!==!1&&e.on("error",f),e.on("close",c),function(){e.removeListener("complete",l),e.removeListener("abort",c),e.removeListener("request",v),e.req&&e.req.removeListener("finish",l),e.removeListener("end",i),e.removeListener("close",i),e.removeListener("finish",l),e.removeListener("end",u),e.removeListener("error",f),e.removeListener("close",c)}}Ine.exports=Nne});var One=z((ktr,Bne)=>{"use strict";var zb;function vu(e,r,t){return r=COe(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function COe(e){var r=DOe(e,"string");return typeof r=="symbol"?r:String(r)}function DOe(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var EOe=Fb(),hu=Symbol("lastResolve"),ec=Symbol("lastReject"),N2=Symbol("error"),Nb=Symbol("ended"),rc=Symbol("lastPromise"),tM=Symbol("handlePromise"),tc=Symbol("stream");function du(e,r){return{value:e,done:r}}function POe(e){var r=e[hu];if(r!==null){var t=e[tc].read();t!==null&&(e[rc]=null,e[hu]=null,e[ec]=null,r(du(t,!1)))}}function ROe(e){process.nextTick(POe,e)}function FOe(e,r){return function(t,a){e.then(function(){if(r[Nb]){t(du(void 0,!0));return}r[tM](t,a)},a)}}var zOe=Object.getPrototypeOf(function(){}),NOe=Object.setPrototypeOf((zb={get stream(){return this[tc]},next:function(){var r=this,t=this[N2];if(t!==null)return Promise.reject(t);if(this[Nb])return Promise.resolve(du(void 0,!0));if(this[tc].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[N2]?l(r[N2]):o(du(void 0,!0))})});var a=this[rc],n;if(a)n=new Promise(FOe(a,this));else{var i=this[tc].read();if(i!==null)return Promise.resolve(du(i,!1));n=new Promise(this[tM])}return this[rc]=n,n}},vu(zb,Symbol.asyncIterator,function(){return this}),vu(zb,"return",function(){var r=this;return new Promise(function(t,a){r[tc].destroy(null,function(n){if(n){a(n);return}t(du(void 0,!0))})})}),zb),zOe),IOe=function(r){var t,a=Object.create(NOe,(t={},vu(t,tc,{value:r,writable:!0}),vu(t,hu,{value:null,writable:!0}),vu(t,ec,{value:null,writable:!0}),vu(t,N2,{value:null,writable:!0}),vu(t,Nb,{value:r._readableState.endEmitted,writable:!0}),vu(t,tM,{value:function(i,o){var l=a[tc].read();l?(a[rc]=null,a[hu]=null,a[ec]=null,i(du(l,!1))):(a[hu]=i,a[ec]=o)},writable:!0}),t));return a[rc]=null,EOe(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[ec];i!==null&&(a[rc]=null,a[hu]=null,a[ec]=null,i(n)),a[N2]=n;return}var o=a[hu];o!==null&&(a[rc]=null,a[hu]=null,a[ec]=null,o(du(void 0,!0))),a[Nb]=!0}),r.on("readable",ROe.bind(null,a)),a};Bne.exports=IOe});var Une=z((Str,Hne)=>{Hne.exports=function(){throw new Error("Readable.from is not available in the browser")}});var JA=z((Ltr,Kne)=>{"use strict";Kne.exports=Mt;var kv;Mt.ReadableState=jne;var qtr=Ju().EventEmitter,Vne=function(r,t){return r.listeners(t).length},B2=$T(),Ib=hv().Buffer,BOe=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function OOe(e){return Ib.from(e)}function HOe(e){return Ib.isBuffer(e)||e instanceof BOe}var aM=OA(),ut;aM&&aM.debuglog?ut=aM.debuglog("stream"):ut=function(){};var UOe=dne(),fM=GA(),GOe=YA(),YOe=GOe.getHighWaterMark,Bb=Jf().codes,VOe=Bb.ERR_INVALID_ARG_TYPE,jOe=Bb.ERR_STREAM_PUSH_AFTER_EOF,WOe=Bb.ERR_METHOD_NOT_IMPLEMENTED,XOe=Bb.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Sv,nM,iM;vs()(Mt,B2);var I2=fM.errorOrDestroy,oM=["error","close","destroy","pause","resume"];function ZOe(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Array.isArray(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function jne(e,r,t){kv=kv||Kf(),e=e||{},typeof t!="boolean"&&(t=r instanceof kv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=YOe(this,e,"readableHighWaterMark",t),this.buffer=new UOe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Sv||(Sv=rM().StringDecoder),this.decoder=new Sv(e.encoding),this.encoding=e.encoding)}function Mt(e){if(kv=kv||Kf(),!(this instanceof Mt))return new Mt(e);var r=this instanceof kv;this._readableState=new jne(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),B2.call(this)}Object.defineProperty(Mt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});Mt.prototype.destroy=fM.destroy;Mt.prototype._undestroy=fM.undestroy;Mt.prototype._destroy=function(e,r){r(e)};Mt.prototype.push=function(e,r){var t=this._readableState,a;return t.objectMode?a=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=Ib.from(e,r),r=""),a=!0),Wne(this,e,r,!1,a)};Mt.prototype.unshift=function(e){return Wne(this,e,null,!0,!1)};function Wne(e,r,t,a,n){ut("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,KOe(e,i);else{var o;if(n||(o=$Oe(i,r)),o)I2(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==Ib.prototype&&(r=OOe(r)),a)i.endEmitted?I2(e,new XOe):lM(e,i,r,!0);else if(i.ended)I2(e,new jOe);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?lM(e,i,r,!1):uM(e,i)):lM(e,i,r,!1)}else a||(i.reading=!1,uM(e,i))}return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function lM(e,r,t,a){r.flowing&&r.length===0&&!r.sync?(r.awaitDrain=0,e.emit("data",t)):(r.length+=r.objectMode?1:t.length,a?r.buffer.unshift(t):r.buffer.push(t),r.needReadable&&Ob(e)),uM(e,r)}function $Oe(e,r){var t;return!HOe(r)&&typeof r!="string"&&r!==void 0&&!e.objectMode&&(t=new VOe("chunk",["string","Buffer","Uint8Array"],r)),t}Mt.prototype.isPaused=function(){return this._readableState.flowing===!1};Mt.prototype.setEncoding=function(e){Sv||(Sv=rM().StringDecoder);var r=new Sv(e);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var t=this._readableState.buffer.head,a="";t!==null;)a+=r.write(t.data),t=t.next;return this._readableState.buffer.clear(),a!==""&&this._readableState.buffer.push(a),this._readableState.length=a.length,this};var Gne=1073741824;function JOe(e){return e>=Gne?e=Gne:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Yne(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=JOe(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}Mt.prototype.read=function(e){ut("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return ut("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?sM(this):Ob(this),null;if(e=Yne(e,r),e===0&&r.ended)return r.length===0&&sM(this),null;var a=r.needReadable;ut("need readable",a),(r.length===0||r.length-e<r.highWaterMark)&&(a=!0,ut("length less than watermark",a)),r.ended||r.reading?(a=!1,ut("reading or ended",a)):a&&(ut("do read"),r.reading=!0,r.sync=!0,r.length===0&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=Yne(t,r)));var n;return e>0?n=$ne(e,r):n=null,n===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&sM(this)),n!==null&&this.emit("data",n),n};function KOe(e,r){if(ut("onEofChunk"),!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,r.sync?Ob(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,Xne(e)))}}function Ob(e){var r=e._readableState;ut("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(ut("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(Xne,e))}function Xne(e){var r=e._readableState;ut("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,cM(e)}function uM(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(QOe,e,r))}function QOe(e,r){for(;!r.reading&&!r.ended&&(r.length<r.highWaterMark||r.flowing&&r.length===0);){var t=r.length;if(ut("maybeReadMore read 0"),e.read(0),t===r.length)break}r.readingMore=!1}Mt.prototype._read=function(e){I2(this,new WOe("_read()"))};Mt.prototype.pipe=function(e,r){var t=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e);break}a.pipesCount+=1,ut("pipe count=%d opts=%j",a.pipesCount,r);var n=(!r||r.end!==!1)&&e!==process.stdout&&e!==process.stderr,i=n?l:m;a.endEmitted?process.nextTick(i):t.once("end",i),e.on("unpipe",o);function o(y,b){ut("onunpipe"),y===t&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function l(){ut("onend"),e.end()}var s=eHe(t);e.on("drain",s);var u=!1;function f(){ut("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",v),e.removeListener("unpipe",o),t.removeListener("end",l),t.removeListener("end",m),t.removeListener("data",c),u=!0,a.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&s()}t.on("data",c);function c(y){ut("ondata");var b=e.write(y);ut("dest.write",b),b===!1&&((a.pipesCount===1&&a.pipes===e||a.pipesCount>1&&Jne(a.pipes,e)!==-1)&&!u&&(ut("false write response, pause",a.awaitDrain),a.awaitDrain++),t.pause())}function v(y){ut("onerror",y),m(),e.removeListener("error",v),Vne(e,"error")===0&&I2(e,y)}ZOe(e,"error",v);function d(){e.removeListener("finish",p),m()}e.once("close",d);function p(){ut("onfinish"),e.removeListener("close",d),m()}e.once("finish",p);function m(){ut("unpipe"),t.unpipe(e)}return e.emit("pipe",t),a.flowing||(ut("pipe resume"),t.resume()),e};function eHe(e){return function(){var t=e._readableState;ut("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Vne(e,"data")&&(t.flowing=!0,cM(e))}}Mt.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var a=r.pipes,n=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var i=0;i<n;i++)a[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Jne(r.pipes,e);return o===-1?this:(r.pipes.splice(o,1),r.pipesCount-=1,r.pipesCount===1&&(r.pipes=r.pipes[0]),e.emit("unpipe",this,t),this)};Mt.prototype.on=function(e,r){var t=B2.prototype.on.call(this,e,r),a=this._readableState;return e==="data"?(a.readableListening=this.listenerCount("readable")>0,a.flowing!==!1&&this.resume()):e==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,ut("on readable",a.length,a.reading),a.length?Ob(this):a.reading||process.nextTick(rHe,this)),t};Mt.prototype.addListener=Mt.prototype.on;Mt.prototype.removeListener=function(e,r){var t=B2.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(Zne,this),t};Mt.prototype.removeAllListeners=function(e){var r=B2.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Zne,this),r};function Zne(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function rHe(e){ut("readable nexttick read 0"),e.read(0)}Mt.prototype.resume=function(){var e=this._readableState;return e.flowing||(ut("resume"),e.flowing=!e.readableListening,tHe(this,e)),e.paused=!1,this};function tHe(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(aHe,e,r))}function aHe(e,r){ut("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),cM(e),r.flowing&&!r.reading&&e.read(0)}Mt.prototype.pause=function(){return ut("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ut("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function cM(e){var r=e._readableState;for(ut("flow",r.flowing);r.flowing&&e.read()!==null;);}Mt.prototype.wrap=function(e){var r=this,t=this._readableState,a=!1;e.on("end",function(){if(ut("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&r.push(o)}r.push(null)}),e.on("data",function(o){if(ut("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var l=r.push(o);l||(a=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(l){return function(){return e[l].apply(e,arguments)}})(n));for(var i=0;i<oM.length;i++)e.on(oM[i],this.emit.bind(this,oM[i]));return this._read=function(o){ut("wrapped _read",o),a&&(a=!1,e.resume())},this};typeof Symbol=="function"&&(Mt.prototype[Symbol.asyncIterator]=function(){return nM===void 0&&(nM=One()),nM(this)});Object.defineProperty(Mt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(Mt.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(Mt.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(r){this._readableState&&(this._readableState.flowing=r)}});Mt._fromList=$ne;Object.defineProperty(Mt.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function $ne(e,r){if(r.length===0)return null;var t;return r.objectMode?t=r.buffer.shift():!e||e>=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.first():t=r.buffer.concat(r.length),r.buffer.clear()):t=r.buffer.consume(e,r.decoder),t}function sM(e){var r=e._readableState;ut("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(nHe,r,e))}function nHe(e,r){if(ut("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var t=r._writableState;(!t||t.autoDestroy&&t.finished)&&r.destroy()}}typeof Symbol=="function"&&(Mt.from=function(e,r){return iM===void 0&&(iM=Une()),iM(Mt,e,r)});function Jne(e,r){for(var t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1}});var vM=z((Ctr,eie)=>{"use strict";eie.exports=ds;var Hb=Jf().codes,iHe=Hb.ERR_METHOD_NOT_IMPLEMENTED,oHe=Hb.ERR_MULTIPLE_CALLBACK,lHe=Hb.ERR_TRANSFORM_ALREADY_TRANSFORMING,sHe=Hb.ERR_TRANSFORM_WITH_LENGTH_0,Ub=Kf();vs()(ds,Ub);function uHe(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new oHe);t.writechunk=null,t.writecb=null,r!=null&&this.push(r),a(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function ds(e){if(!(this instanceof ds))return new ds(e);Ub.call(this,e),this._transformState={afterTransform:uHe.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",fHe)}function fHe(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(r,t){Qne(e,r,t)}):Qne(this,null,null)}ds.prototype.push=function(e,r){return this._transformState.needTransform=!1,Ub.prototype.push.call(this,e,r)};ds.prototype._transform=function(e,r,t){t(new iHe("_transform()"))};ds.prototype._write=function(e,r,t){var a=this._transformState;if(a.writecb=t,a.writechunk=e,a.writeencoding=r,!a.transforming){var n=this._readableState;(a.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};ds.prototype._read=function(e){var r=this._transformState;r.writechunk!==null&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0};ds.prototype._destroy=function(e,r){Ub.prototype._destroy.call(this,e,function(t){r(t)})};function Qne(e,r,t){if(r)return e.emit("error",r);if(t!=null&&e.push(t),e._writableState.length)throw new sHe;if(e._transformState.transforming)throw new lHe;return e.push(null)}});var aie=z((Dtr,tie)=>{"use strict";tie.exports=O2;var rie=vM();vs()(O2,rie);function O2(e){if(!(this instanceof O2))return new O2(e);rie.call(this,e)}O2.prototype._transform=function(e,r,t){t(null,e)}});var sie=z((Etr,lie)=>{"use strict";var hM;function cHe(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var oie=Jf().codes,vHe=oie.ERR_MISSING_ARGS,hHe=oie.ERR_STREAM_DESTROYED;function nie(e){if(e)throw e}function dHe(e){return e.setHeader&&typeof e.abort=="function"}function pHe(e,r,t,a){a=cHe(a);var n=!1;e.on("close",function(){n=!0}),hM===void 0&&(hM=Fb()),hM(e,{readable:r,writable:t},function(o){if(o)return a(o);n=!0,a()});var i=!1;return function(o){if(!n&&!i){if(i=!0,dHe(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new hHe("pipe"))}}}function iie(e){e()}function mHe(e,r){return e.pipe(r)}function yHe(e){return!e.length||typeof e[e.length-1]!="function"?nie:e.pop()}function gHe(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=yHe(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new vHe("streams");var n,i=r.map(function(o,l){var s=l<r.length-1,u=l>0;return pHe(o,s,u,function(f){n||(n=f),f&&i.forEach(iie),!s&&(i.forEach(iie),a(n))})});return r.reduce(mHe)}lie.exports=gHe});var fie=z((Ptr,uie)=>{uie.exports=wo;var dM=Ju().EventEmitter,bHe=vs();bHe(wo,dM);wo.Readable=JA();wo.Writable=XA();wo.Duplex=Kf();wo.Transform=vM();wo.PassThrough=aie();wo.finished=Fb();wo.pipeline=sie();wo.Stream=wo;function wo(){dM.call(this)}wo.prototype.pipe=function(e,r){var t=this;function a(f){e.writable&&e.write(f)===!1&&t.pause&&t.pause()}t.on("data",a);function n(){t.readable&&t.resume&&t.resume()}e.on("drain",n),!e._isStdio&&(!r||r.end!==!1)&&(t.on("end",o),t.on("close",l));var i=!1;function o(){i||(i=!0,e.end())}function l(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function s(f){if(u(),dM.listenerCount(this,"error")===0)throw f}t.on("error",s),e.on("error",s);function u(){t.removeListener("data",a),e.removeListener("drain",n),t.removeListener("end",o),t.removeListener("close",l),t.removeListener("error",s),e.removeListener("error",s),t.removeListener("end",u),t.removeListener("close",u),e.removeListener("close",u)}return t.on("end",u),t.on("close",u),e.on("close",u),e.emit("pipe",t),e}});var Lv=z(mt=>{var cie=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n<t.length;n++)a[t[n]]=Object.getOwnPropertyDescriptor(r,t[n]);return a},xHe=/%[sdj%]/g;mt.format=function(e){if(!Zb(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(pu(arguments[t]));return r.join(" ")}for(var t=1,a=arguments,n=a.length,i=String(e).replace(xHe,function(l){if(l==="%%")return"%";if(t>=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t<n;o=a[++t])Xb(o)||!qv(o)?i+=" "+o:i+=" "+pu(o);return i};mt.deprecate=function(e,r){if(typeof process!="undefined"&&process.noDeprecation===!0)return e;if(typeof process=="undefined")return function(){return mt.deprecate(e,r).apply(this,arguments)};var t=!1;function a(){if(!t){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return a};var Gb={},vie=/^$/;Yb="false",Yb=Yb.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),vie=new RegExp("^"+Yb+"$","i");var Yb;mt.debuglog=function(e){if(e=e.toUpperCase(),!Gb[e])if(vie.test(e)){var r=process.pid;Gb[e]=function(){var t=mt.format.apply(mt,arguments);console.error("%s %d: %s",e,r,t)}}else Gb[e]=function(){};return Gb[e]};function pu(e,r){var t={seen:[],stylize:wHe};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),gM(r)?t.showHidden=r:r&&mt._extend(t,r),nc(t.showHidden)&&(t.showHidden=!1),nc(t.depth)&&(t.depth=2),nc(t.colors)&&(t.colors=!1),nc(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=_He),jb(t,e,t.depth)}mt.inspect=pu;pu.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};pu.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function _He(e,r){var t=pu.styles[r];return t?"\x1B["+pu.colors[t][0]+"m"+e+"\x1B["+pu.colors[t][1]+"m":e}function wHe(e,r){return e}function THe(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function jb(e,r,t){if(e.customInspect&&r&&Vb(r.inspect)&&r.inspect!==mt.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Zb(a)||(a=jb(e,a,t)),a}var n=AHe(e,r);if(n)return n;var i=Object.keys(r),o=THe(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),U2(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return pM(r);if(i.length===0){if(Vb(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(H2(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Wb(r))return e.stylize(Date.prototype.toString.call(r),"date");if(U2(r))return pM(r)}var s="",u=!1,f=["{","}"];if(hie(r)&&(u=!0,f=["[","]"]),Vb(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(H2(r)&&(s=" "+RegExp.prototype.toString.call(r)),Wb(r)&&(s=" "+Date.prototype.toUTCString.call(r)),U2(r)&&(s=" "+pM(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return H2(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=MHe(e,r,t,o,i):v=i.map(function(d){return yM(e,r,t,o,d,u)}),e.seen.pop(),kHe(v,s,f)}function AHe(e,r){if(nc(r))return e.stylize("undefined","undefined");if(Zb(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(die(r))return e.stylize(""+r,"number");if(gM(r))return e.stylize(""+r,"boolean");if(Xb(r))return e.stylize("null","null")}function pM(e){return"["+Error.prototype.toString.call(e)+"]"}function MHe(e,r,t,a,n){for(var i=[],o=0,l=r.length;o<l;++o)pie(r,String(o))?i.push(yM(e,r,t,a,String(o),!0)):i.push("");return n.forEach(function(s){s.match(/^\d+$/)||i.push(yM(e,r,t,a,s,!0))}),i}function yM(e,r,t,a,n,i){var o,l,s;if(s=Object.getOwnPropertyDescriptor(r,n)||{value:r[n]},s.get?s.set?l=e.stylize("[Getter/Setter]","special"):l=e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),pie(a,n)||(o="["+n+"]"),l||(e.seen.indexOf(s.value)<0?(Xb(t)?l=jb(e,s.value,null):l=jb(e,s.value,t-1),l.indexOf(`
`)>-1&&(i?l=l.split(`
`).map(function(u){return"  "+u}).join(`
`).slice(2):l=`
`+l.split(`
`).map(function(u){return"   "+u}).join(`
`))):l=e.stylize("[Circular]","special")),nc(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function kHe(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(`
`)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+`
 `)+" "+e.join(`,
  `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}mt.types=PA();function hie(e){return Array.isArray(e)}mt.isArray=hie;function gM(e){return typeof e=="boolean"}mt.isBoolean=gM;function Xb(e){return e===null}mt.isNull=Xb;function SHe(e){return e==null}mt.isNullOrUndefined=SHe;function die(e){return typeof e=="number"}mt.isNumber=die;function Zb(e){return typeof e=="string"}mt.isString=Zb;function qHe(e){return typeof e=="symbol"}mt.isSymbol=qHe;function nc(e){return e===void 0}mt.isUndefined=nc;function H2(e){return qv(e)&&bM(e)==="[object RegExp]"}mt.isRegExp=H2;mt.types.isRegExp=H2;function qv(e){return typeof e=="object"&&e!==null}mt.isObject=qv;function Wb(e){return qv(e)&&bM(e)==="[object Date]"}mt.isDate=Wb;mt.types.isDate=Wb;function U2(e){return qv(e)&&(bM(e)==="[object Error]"||e instanceof Error)}mt.isError=U2;mt.types.isNativeError=U2;function Vb(e){return typeof e=="function"}mt.isFunction=Vb;function LHe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}mt.isPrimitive=LHe;mt.isBuffer=RA();function bM(e){return Object.prototype.toString.call(e)}function mM(e){return e<10?"0"+e.toString(10):e.toString(10)}var CHe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function DHe(){var e=new Date,r=[mM(e.getHours()),mM(e.getMinutes()),mM(e.getSeconds())].join(":");return[e.getDate(),CHe[e.getMonth()],r].join(" ")}mt.log=function(){console.log("%s - %s",DHe(),mt.format.apply(mt,arguments))};mt.inherits=vs();mt._extend=function(e,r){if(!r||!qv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function pie(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var ac=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;mt.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(ac&&r[ac]){var t=r[ac];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,ac,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l<arguments.length;l++)o.push(arguments[l]);o.push(function(s,u){s?n(s):a(u)});try{r.apply(this,o)}catch(s){n(s)}return i}return Object.setPrototypeOf(t,Object.getPrototypeOf(r)),ac&&Object.defineProperty(t,ac,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,cie(r))};mt.promisify.custom=ac;function EHe(e,r){if(!e){var t=new Error("Promise was rejected with a falsy value");t.reason=e,e=t}return r(e)}function PHe(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function r(){for(var t=[],a=0;a<arguments.length;a++)t.push(arguments[a]);var n=t.pop();if(typeof n!="function")throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(l){process.nextTick(o.bind(null,null,l))},function(l){process.nextTick(EHe.bind(null,l,o))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,cie(e)),r}mt.callbackify=PHe});var wM=z((Ftr,bie)=>{"use strict";function mu(e){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mu(e)}function mie(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,FHe(a.key),a)}}function RHe(e,r,t){return r&&mie(e.prototype,r),t&&mie(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FHe(e){var r=zHe(e,"string");return mu(r)==="symbol"?r:String(r)}function zHe(e,r){if(mu(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(mu(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function NHe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function IHe(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&_M(e,r)}function _M(e,r){return _M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},_M(e,r)}function BHe(e){var r=UHe();return function(){var a=$b(e),n;if(r){var i=$b(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return OHe(this,n)}}function OHe(e,r){if(r&&(mu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HHe(e)}function HHe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UHe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function $b(e){return $b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$b(e)}var gie={},Cv,xM;function G2(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=(function(i){IHe(l,i);var o=BHe(l);function l(s,u,f){var c;return NHe(this,l),c=o.call(this,a(s,u,f)),c.code=e,c}return RHe(l)})(t);gie[e]=n}function yie(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function GHe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function YHe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function VHe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}G2("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);G2("ERR_INVALID_ARG_TYPE",function(e,r,t){Cv===void 0&&(Cv=Jb()),Cv(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&GHe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(YHe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(yie(r,"type"));else{var i=VHe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(yie(r,"type"))}return n+=". Received type ".concat(mu(t)),n},TypeError);G2("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";xM===void 0&&(xM=Lv());var a=xM.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);G2("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(mu(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);G2("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];Cv===void 0&&(Cv=Jb()),Cv(r.length>0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);bie.exports.codes=gie});var Lie=z((ztr,qie)=>{"use strict";function xie(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function _ie(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?xie(Object(t),!0).forEach(function(a){jHe(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):xie(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function jHe(e,r,t){return r=Mie(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function WHe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function wie(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Mie(a.key),a)}}function XHe(e,r,t){return r&&wie(e.prototype,r),t&&wie(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mie(e){var r=ZHe(e,"string");return hi(r)==="symbol"?r:String(r)}function ZHe(e,r){if(hi(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(hi(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function $He(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&W2(e,r)}function JHe(e){var r=Sie();return function(){var a=X2(e),n;if(r){var i=X2(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return kie(this,n)}}function kie(e,r){if(r&&(hi(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TM(e)}function TM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AM(e){var r=typeof Map=="function"?new Map:void 0;return AM=function(a){if(a===null||!KHe(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(a))return r.get(a);r.set(a,n)}function n(){return Kb(a,arguments,X2(this).constructor)}return n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),W2(n,a)},AM(e)}function Kb(e,r,t){return Sie()?Kb=Reflect.construct.bind():Kb=function(n,i,o){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(n,l),u=new s;return o&&W2(u,o.prototype),u},Kb.apply(null,arguments)}function Sie(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function KHe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function W2(e,r){return W2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},W2(e,r)}function X2(e){return X2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},X2(e)}function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hi(e)}var QHe=Lv(),MM=QHe.inspect,eUe=wM(),rUe=eUe.codes.ERR_INVALID_ARG_TYPE;function Tie(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function tUe(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var rl="",Y2="",V2="",_n="",ic={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},aUe=10;function Aie(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function j2(e){return MM(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function nUe(e,r,t){var a="",n="",i=0,o="",l=!1,s=j2(e),u=s.split(`
`),f=j2(r).split(`
`),c=0,v="";if(t==="strictEqual"&&hi(e)==="object"&&hi(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),u.length===1&&f.length===1&&u[0]!==f[0]){var d=u[0].length+f[0].length;if(d<=aUe){if((hi(e)!=="object"||e===null)&&(hi(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(ic[t],`

`)+"".concat(u[0]," !== ").concat(f[0],`
`)}else if(t!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d<p){for(;u[0][c]===f[0][c];)c++;c>2&&(v=`
  `.concat(tUe(" ",c),"^"),c=0)}}}for(var m=u[u.length-1],y=f[f.length-1];m===y&&(c++<2?o=`
  `.concat(m).concat(o):a=m,u.pop(),f.pop(),!(u.length===0||f.length===0));)m=u[u.length-1],y=f[f.length-1];var b=Math.max(u.length,f.length);if(b===0){var T=s.split(`
`);if(T.length>30)for(T[26]="".concat(rl,"...").concat(_n);T.length>27;)T.pop();return"".concat(ic.notIdentical,`

`).concat(T.join(`
`),`
`)}c>3&&(o=`
`.concat(rl,"...").concat(_n).concat(o),l=!0),a!==""&&(o=`
  `.concat(a).concat(o),a="");var w=0,x=ic[t]+`
`.concat(Y2,"+ actual").concat(_n," ").concat(V2,"- expected").concat(_n),_=" ".concat(rl,"...").concat(_n," Lines skipped");for(c=0;c<b;c++){var k=c-i;if(u.length<c+1)k>1&&c>2&&(k>4?(n+=`
`.concat(rl,"...").concat(_n),l=!0):k>3&&(n+=`
  `.concat(f[c-2]),w++),n+=`
  `.concat(f[c-1]),w++),i=c,a+=`
`.concat(V2,"-").concat(_n," ").concat(f[c]),w++;else if(f.length<c+1)k>1&&c>2&&(k>4?(n+=`
`.concat(rl,"...").concat(_n),l=!0):k>3&&(n+=`
  `.concat(u[c-2]),w++),n+=`
  `.concat(u[c-1]),w++),i=c,n+=`
`.concat(Y2,"+").concat(_n," ").concat(u[c]),w++;else{var M=f[c],q=u[c],C=q!==M&&(!Tie(q,",")||q.slice(0,-1)!==M);C&&Tie(M,",")&&M.slice(0,-1)===q&&(C=!1,q+=","),C?(k>1&&c>2&&(k>4?(n+=`
`.concat(rl,"...").concat(_n),l=!0):k>3&&(n+=`
  `.concat(u[c-2]),w++),n+=`
  `.concat(u[c-1]),w++),i=c,n+=`
`.concat(Y2,"+").concat(_n," ").concat(q),a+=`
`.concat(V2,"-").concat(_n," ").concat(M),w+=2):(n+=a,a="",(k===1||c===0)&&(n+=`
  `.concat(q),w++))}if(w>20&&c<b-2)return"".concat(x).concat(_,`
`).concat(n,`
`).concat(rl,"...").concat(_n).concat(a,`
`)+"".concat(rl,"...").concat(_n)}return"".concat(x).concat(l?_:"",`
`).concat(n).concat(a).concat(o).concat(v)}var iUe=(function(e,r){$He(a,e);var t=JHe(a);function a(n){var i;if(WHe(this,a),hi(n)!=="object"||n===null)throw new rUe("options","Object",n);var o=n.message,l=n.operator,s=n.stackStartFn,u=n.actual,f=n.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)i=t.call(this,String(o));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(rl="\x1B[34m",Y2="\x1B[32m",_n="\x1B[39m",V2="\x1B[31m"):(rl="",Y2="",_n="",V2="")),hi(u)==="object"&&u!==null&&hi(f)==="object"&&f!==null&&"stack"in u&&u instanceof Error&&"stack"in f&&f instanceof Error&&(u=Aie(u),f=Aie(f)),l==="deepStrictEqual"||l==="strictEqual")i=t.call(this,nUe(u,f,l));else if(l==="notDeepStrictEqual"||l==="notStrictEqual"){var v=ic[l],d=j2(u).split(`
`);if(l==="notStrictEqual"&&hi(u)==="object"&&u!==null&&(v=ic.notStrictEqualObject),d.length>30)for(d[26]="".concat(rl,"...").concat(_n);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,`

`).concat(d.join(`
`),`
`))}else{var p=j2(u),m="",y=ic[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(ic[l],`

`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(m="".concat(j2(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(y,`

`).concat(p,`

should equal

`):m=" ".concat(l," ").concat(m)),i=t.call(this,"".concat(p).concat(m))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(TM(i),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),i.code="ERR_ASSERTION",i.actual=u,i.expected=f,i.operator=l,Error.captureStackTrace&&Error.captureStackTrace(TM(i),s),i.stack,i.name="AssertionError",kie(i)}return XHe(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return MM(this,_ie(_ie({},o),{},{customInspect:!1,depth:0}))}}]),a})(AM(Error),MM.custom);qie.exports=iUe});var kM=z((Ntr,Die)=>{"use strict";var Cie=Object.prototype.toString;Die.exports=function(r){var t=Cie.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&Cie.call(r.callee)==="[object Function]"),a}});var Oie=z((Itr,Bie)=>{"use strict";var Iie;Object.keys||(Z2=Object.prototype.hasOwnProperty,SM=Object.prototype.toString,Eie=kM(),qM=Object.prototype.propertyIsEnumerable,Pie=!qM.call({toString:null},"toString"),Rie=qM.call(function(){},"prototype"),$2=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Qb=function(e){var r=e.constructor;return r&&r.prototype===e},Fie={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},zie=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!Fie["$"+e]&&Z2.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Qb(window[e])}catch(r){return!0}}catch(r){return!0}return!1})(),Nie=function(e){if(typeof window=="undefined"||!zie)return Qb(e);try{return Qb(e)}catch(r){return!1}},Iie=function(r){var t=r!==null&&typeof r=="object",a=SM.call(r)==="[object Function]",n=Eie(r),i=t&&SM.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=Rie&&a;if(i&&r.length>0&&!Z2.call(r,0))for(var s=0;s<r.length;++s)o.push(String(s));if(n&&r.length>0)for(var u=0;u<r.length;++u)o.push(String(u));else for(var f in r)!(l&&f==="prototype")&&Z2.call(r,f)&&o.push(String(f));if(Pie)for(var c=Nie(r),v=0;v<$2.length;++v)!(c&&$2[v]==="constructor")&&Z2.call(r,$2[v])&&o.push($2[v]);return o});var Z2,SM,Eie,qM,Pie,Rie,$2,Qb,Fie,zie,Nie;Bie.exports=Iie});var LM=z((Btr,Gie)=>{"use strict";var oUe=Array.prototype.slice,lUe=kM(),Hie=Object.keys,ex=Hie?function(r){return Hie(r)}:Oie(),Uie=Object.keys;ex.shim=function(){if(Object.keys){var r=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);r||(Object.keys=function(a){return lUe(a)?Uie(oUe.call(a)):Uie(a)})}else Object.keys=ex;return Object.keys||ex};Gie.exports=ex});var Xie=z((Otr,Wie)=>{"use strict";var sUe=LM(),Vie=$3()(),jie=Xf(),rx=J3(),uUe=jie("Array.prototype.push"),Yie=jie("Object.prototype.propertyIsEnumerable"),fUe=Vie?rx.getOwnPropertySymbols:null;Wie.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=rx(r);if(arguments.length===1)return a;for(var n=1;n<arguments.length;++n){var i=rx(arguments[n]),o=sUe(i),l=Vie&&(rx.getOwnPropertySymbols||fUe);if(l)for(var s=l(i),u=0;u<s.length;++u){var f=s[u];Yie(i,f)&&uUe(o,f)}for(var c=0;c<o.length;++c){var v=o[c];if(Yie(i,v)){var d=i[v];a[v]=d}}}return a}});var $ie=z((Htr,Zie)=>{"use strict";var CM=Xie(),cUe=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a<r.length;++a)t[r[a]]=r[a];var n=Object.assign({},t),i="";for(var o in n)i+=o;return e!==i},vUe=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(r){return e[1]==="y"}return!1};Zie.exports=function(){return!Object.assign||cUe()||vUe()?CM:Object.assign}});var DM=z((Utr,Kie)=>{"use strict";var Jie=function(e){return e!==e};Kie.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||Jie(r)&&Jie(t))}});var tx=z((Gtr,Qie)=>{"use strict";var hUe=DM();Qie.exports=function(){return typeof Object.is=="function"?Object.is:hUe}});var aoe=z((Ytr,toe)=>{"use strict";var eoe=ob(),roe=L2(),dUe=roe(eoe("String.prototype.indexOf"));toe.exports=function(r,t){var a=eoe(r,!!t);return typeof a=="function"&&dUe(r,".prototype.")>-1?roe(a):a}});var J2=z((Vtr,loe)=>{"use strict";var pUe=LM(),mUe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",yUe=Object.prototype.toString,gUe=Array.prototype.concat,noe=AA(),bUe=function(e){return typeof e=="function"&&yUe.call(e)==="[object Function]"},ioe=kA()(),xUe=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!bUe(a)||!a())return}ioe?noe(e,r,t,!0):noe(e,r,t)},ooe=function(e,r){var t=arguments.length>2?arguments[2]:{},a=pUe(r);mUe&&(a=gUe.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n<a.length;n+=1)xUe(e,a[n],r[a[n]],t[a[n]])};ooe.supportsDescriptors=!!ioe;loe.exports=ooe});var uoe=z((jtr,soe)=>{"use strict";var _Ue=tx(),wUe=J2();soe.exports=function(){var r=_Ue();return wUe(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var hoe=z((Wtr,voe)=>{"use strict";var TUe=J2(),AUe=L2(),MUe=DM(),foe=tx(),kUe=uoe(),coe=AUe(foe(),Object);TUe(coe,{getPolyfill:foe,implementation:MUe,shim:kUe});voe.exports=coe});var EM=z((Xtr,doe)=>{"use strict";doe.exports=function(r){return r!==r}});var PM=z((Ztr,poe)=>{"use strict";var SUe=EM();poe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:SUe}});var yoe=z(($tr,moe)=>{"use strict";var qUe=J2(),LUe=PM();moe.exports=function(){var r=LUe();return qUe(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var _oe=z((Jtr,xoe)=>{"use strict";var CUe=L2(),DUe=J2(),EUe=EM(),goe=PM(),PUe=yoe(),boe=CUe(goe(),Number);DUe(boe,{getPolyfill:goe,implementation:EUe,shim:PUe});xoe.exports=boe});var Hoe=z((Ktr,Ooe)=>{"use strict";function woe(e,r){return NUe(e)||zUe(e,r)||FUe(e,r)||RUe()}function RUe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FUe(e,r){if(e){if(typeof e=="string")return Toe(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Toe(e,r)}}function Toe(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function zUe(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a,n,i,o,l=[],s=!0,u=!1;try{if(i=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=i.call(t)).done)&&(l.push(a.value),l.length!==r);s=!0);}catch(f){u=!0,n=f}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(u)throw n}}return l}}function NUe(e){if(Array.isArray(e))return e}function To(e){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},To(e)}var IUe=/a/g.flags!==void 0,ux=function(r){var t=[];return r.forEach(function(a){return t.push(a)}),t},Aoe=function(r){var t=[];return r.forEach(function(a,n){return t.push([n,a])}),t},Foe=Object.is?Object.is:hoe(),lx=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},RM=Number.isNaN?Number.isNaN:_oe();function zM(e){return e.call.bind(e)}var Q2=zM(Object.prototype.hasOwnProperty),sx=zM(Object.prototype.propertyIsEnumerable),Moe=zM(Object.prototype.toString),Xn=Lv().types,BUe=Xn.isAnyArrayBuffer,OUe=Xn.isArrayBufferView,koe=Xn.isDate,ax=Xn.isMap,Soe=Xn.isRegExp,nx=Xn.isSet,HUe=Xn.isNativeError,UUe=Xn.isBoxedPrimitive,qoe=Xn.isNumberObject,Loe=Xn.isStringObject,Coe=Xn.isBooleanObject,Doe=Xn.isBigIntObject,GUe=Xn.isSymbolObject,YUe=Xn.isFloat32Array,VUe=Xn.isFloat64Array;function jUe(e){if(e.length===0||e.length>10)return!0;for(var r=0;r<e.length;r++){var t=e.charCodeAt(r);if(t<48||t>57)return!0}return e.length===10&&e>=Math.pow(2,32)}function ix(e){return Object.keys(e).filter(jUe).concat(lx(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function zoe(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n<i;++n)if(e[n]!==r[n]){t=e[n],a=r[n];break}return t<a?-1:a<t?1:0}var ox=void 0,WUe=!0,XUe=!1,FM=0,NM=1,Noe=2,Ioe=3;function ZUe(e,r){return IUe?e.source===r.source&&e.flags===r.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(r)}function $Ue(e,r){if(e.byteLength!==r.byteLength)return!1;for(var t=0;t<e.byteLength;t++)if(e[t]!==r[t])return!1;return!0}function JUe(e,r){return e.byteLength!==r.byteLength?!1:zoe(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(r.buffer,r.byteOffset,r.byteLength))===0}function KUe(e,r){return e.byteLength===r.byteLength&&zoe(new Uint8Array(e),new Uint8Array(r))===0}function QUe(e,r){return qoe(e)?qoe(r)&&Foe(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(r)):Loe(e)?Loe(r)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(r):Coe(e)?Coe(r)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(r):Doe(e)?Doe(r)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(r):GUe(r)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(r)}function Ao(e,r,t,a){if(e===r)return e!==0?!0:t?Foe(e,r):!0;if(t){if(To(e)!=="object")return typeof e=="number"&&RM(e)&&RM(r);if(To(r)!=="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1}else{if(e===null||To(e)!=="object")return r===null||To(r)!=="object"?e==r:!1;if(r===null||To(r)!=="object")return!1}var n=Moe(e),i=Moe(r);if(n!==i)return!1;if(Array.isArray(e)){if(e.length!==r.length)return!1;var o=ix(e,ox),l=ix(r,ox);return o.length!==l.length?!1:K2(e,r,t,a,NM,o)}if(n==="[object Object]"&&(!ax(e)&&ax(r)||!nx(e)&&nx(r)))return!1;if(koe(e)){if(!koe(r)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(r))return!1}else if(Soe(e)){if(!Soe(r)||!ZUe(e,r))return!1}else if(HUe(e)||e instanceof Error){if(e.message!==r.message||e.name!==r.name)return!1}else if(OUe(e)){if(!t&&(YUe(e)||VUe(e))){if(!$Ue(e,r))return!1}else if(!JUe(e,r))return!1;var s=ix(e,ox),u=ix(r,ox);return s.length!==u.length?!1:K2(e,r,t,a,FM,s)}else{if(nx(e))return!nx(r)||e.size!==r.size?!1:K2(e,r,t,a,Noe);if(ax(e))return!ax(r)||e.size!==r.size?!1:K2(e,r,t,a,Ioe);if(BUe(e)){if(!KUe(e,r))return!1}else if(UUe(e)&&!QUe(e,r))return!1}return K2(e,r,t,a,FM)}function Eoe(e,r){return r.filter(function(t){return sx(e,t)})}function K2(e,r,t,a,n,i){if(arguments.length===5){i=Object.keys(e);var o=Object.keys(r);if(i.length!==o.length)return!1}for(var l=0;l<i.length;l++)if(!Q2(r,i[l]))return!1;if(t&&arguments.length===5){var s=lx(e);if(s.length!==0){var u=0;for(l=0;l<s.length;l++){var f=s[l];if(sx(e,f)){if(!sx(r,f))return!1;i.push(f),u++}else if(sx(r,f))return!1}var c=lx(r);if(s.length!==c.length&&Eoe(r,c).length!==u)return!1}else{var v=lx(r);if(v.length!==0&&Eoe(r,v).length!==0)return!1}}if(i.length===0&&(n===FM||n===NM&&e.length===0||e.size===0))return!0;if(a===void 0)a={val1:new Map,val2:new Map,position:0};else{var d=a.val1.get(e);if(d!==void 0){var p=a.val2.get(r);if(p!==void 0)return d===p}a.position++}a.val1.set(e,a.position),a.val2.set(r,a.position);var m=nGe(e,r,t,i,a,n);return a.val1.delete(e),a.val2.delete(r),m}function Poe(e,r,t,a){for(var n=ux(e),i=0;i<n.length;i++){var o=n[i];if(Ao(r,o,t,a))return e.delete(o),!0}return!1}function Boe(e){switch(To(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(RM(e))return!1}return!0}function eGe(e,r,t){var a=Boe(t);return a!=null?a:r.has(a)&&!e.has(a)}function rGe(e,r,t,a,n){var i=Boe(t);if(i!=null)return i;var o=r.get(i);return o===void 0&&!r.has(i)||!Ao(a,o,!1,n)?!1:!e.has(i)&&Ao(a,o,!1,n)}function tGe(e,r,t,a){for(var n=null,i=ux(e),o=0;o<i.length;o++){var l=i[o];if(To(l)==="object"&&l!==null)n===null&&(n=new Set),n.add(l);else if(!r.has(l)){if(t||!eGe(e,r,l))return!1;n===null&&(n=new Set),n.add(l)}}if(n!==null){for(var s=ux(r),u=0;u<s.length;u++){var f=s[u];if(To(f)==="object"&&f!==null){if(!Poe(n,f,t,a))return!1}else if(!t&&!e.has(f)&&!Poe(n,f,t,a))return!1}return n.size===0}return!0}function Roe(e,r,t,a,n,i){for(var o=ux(e),l=0;l<o.length;l++){var s=o[l];if(Ao(t,s,n,i)&&Ao(a,r.get(s),n,i))return e.delete(s),!0}return!1}function aGe(e,r,t,a){for(var n=null,i=Aoe(e),o=0;o<i.length;o++){var l=woe(i[o],2),s=l[0],u=l[1];if(To(s)==="object"&&s!==null)n===null&&(n=new Set),n.add(s);else{var f=r.get(s);if(f===void 0&&!r.has(s)||!Ao(u,f,t,a)){if(t||!rGe(e,r,s,u,a))return!1;n===null&&(n=new Set),n.add(s)}}}if(n!==null){for(var c=Aoe(r),v=0;v<c.length;v++){var d=woe(c[v],2),p=d[0],m=d[1];if(To(p)==="object"&&p!==null){if(!Roe(n,e,p,m,t,a))return!1}else if(!t&&(!e.has(p)||!Ao(e.get(p),m,!1,a))&&!Roe(n,e,p,m,!1,a))return!1}return n.size===0}return!0}function nGe(e,r,t,a,n,i){var o=0;if(i===Noe){if(!tGe(e,r,t,n))return!1}else if(i===Ioe){if(!aGe(e,r,t,n))return!1}else if(i===NM)for(;o<e.length;o++)if(Q2(e,o)){if(!Q2(r,o)||!Ao(e[o],r[o],t,n))return!1}else{if(Q2(r,o))return!1;for(var l=Object.keys(e);o<l.length;o++){var s=l[o];if(!Q2(r,s)||!Ao(e[s],r[s],t,n))return!1}return l.length===Object.keys(r).length}for(o=0;o<a.length;o++){var u=a[o];if(!Ao(e[u],r[u],t,n))return!1}return!0}function iGe(e,r){return Ao(e,r,XUe)}function oGe(e,r){return Ao(e,r,WUe)}Ooe.exports={isDeepEqual:iGe,isDeepStrictEqual:oGe}});var Jb=z((Qtr,ile)=>{"use strict";function tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tl(e)}function Uoe(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,sGe(a.key),a)}}function lGe(e,r,t){return r&&Uoe(e.prototype,r),t&&Uoe(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sGe(e){var r=uGe(e,"string");return tl(r)==="symbol"?r:String(r)}function uGe(e,r){if(tl(e)!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(tl(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function fGe(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var cGe=wM(),e1=cGe.codes,Goe=e1.ERR_AMBIGUOUS_ARGUMENT,Dv=e1.ERR_INVALID_ARG_TYPE,vGe=e1.ERR_INVALID_ARG_VALUE,hGe=e1.ERR_INVALID_RETURN_VALUE,gu=e1.ERR_MISSING_ARGS,bu=Lie(),dGe=Lv(),fx=dGe.inspect,Woe=Lv().types,pGe=Woe.isPromise,cx=Woe.isRegExp,mGe=$ie()(),Xoe=tx()(),vx=aoe()("RegExp.prototype.test"),yu,hx;function r1(){var e=Hoe();yu=e.isDeepEqual,hx=e.isDeepStrictEqual}var Yoe=!1,la=ile.exports=IM,dx={};function al(e){throw e.message instanceof Error?e.message:new bu(e)}function Zoe(e,r,t,a,n){var i=arguments.length,o;if(i===0)o="Failed";else if(i===1)t=e,e=void 0;else{if(Yoe===!1){Yoe=!0;var l=process.emitWarning?process.emitWarning:console.warn.bind(console);l("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}i===2&&(a="!=")}if(t instanceof Error)throw t;var s={actual:e,expected:r,operator:a===void 0?"fail":a,stackStartFn:n||Zoe};t!==void 0&&(s.message=t);var u=new bu(s);throw o&&(u.message=o,u.generatedMessage=!0),u}la.fail=Zoe;la.AssertionError=bu;function $oe(e,r,t,a){if(!t){var n=!1;if(r===0)n=!0,a="No value argument passed to `assert.ok()`";else if(a instanceof Error)throw a;var i=new bu({actual:t,expected:!0,message:a,operator:"==",stackStartFn:e});throw i.generatedMessage=n,i}}function IM(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];$oe.apply(void 0,[IM,r.length].concat(r))}la.ok=IM;la.equal=function e(r,t,a){if(arguments.length<2)throw new gu("actual","expected");r!=t&&al({actual:r,expected:t,message:a,operator:"==",stackStartFn:e})};la.notEqual=function e(r,t,a){if(arguments.length<2)throw new gu("actual","expected");r==t&&al({actual:r,expected:t,message:a,operator:"!=",stackStartFn:e})};la.deepEqual=function e(r,t,a){if(arguments.length<2)throw new gu("actual","expected");yu===void 0&&r1(),yu(r,t)||al({actual:r,expected:t,message:a,operator:"deepEqual",stackStartFn:e})};la.notDeepEqual=function e(r,t,a){if(arguments.length<2)throw new gu("actual","expected");yu===void 0&&r1(),yu(r,t)&&al({actual:r,expected:t,message:a,operator:"notDeepEqual",stackStartFn:e})};la.deepStrictEqual=function e(r,t,a){if(arguments.length<2)throw new gu("actual","expected");yu===void 0&&r1(),hx(r,t)||al({actual:r,expected:t,message:a,operator:"deepStrictEqual",stackStartFn:e})};la.notDeepStrictEqual=Joe;function Joe(e,r,t){if(arguments.length<2)throw new gu("actual","expected");yu===void 0&&r1(),hx(e,r)&&al({actual:e,expected:r,message:t,operator:"notDeepStrictEqual",stackStartFn:Joe})}la.strictEqual=function e(r,t,a){if(arguments.length<2)throw new gu("actual","expected");Xoe(r,t)||al({actual:r,expected:t,message:a,operator:"strictEqual",stackStartFn:e})};la.notStrictEqual=function e(r,t,a){if(arguments.length<2)throw new gu("actual","expected");Xoe(r,t)&&al({actual:r,expected:t,message:a,operator:"notStrictEqual",stackStartFn:e})};var Voe=lGe(function e(r,t,a){var n=this;fGe(this,e),t.forEach(function(i){i in r&&(a!==void 0&&typeof a[i]=="string"&&cx(r[i])&&vx(r[i],a[i])?n[i]=a[i]:n[i]=r[i])})});function yGe(e,r,t,a,n,i){if(!(t in e)||!hx(e[t],r[t])){if(!a){var o=new Voe(e,n),l=new Voe(r,n,e),s=new bu({actual:o,expected:l,operator:"deepStrictEqual",stackStartFn:i});throw s.actual=e,s.expected=r,s.operator=i.name,s}al({actual:e,expected:r,message:a,operator:i.name,stackStartFn:i})}}function Koe(e,r,t,a){if(typeof r!="function"){if(cx(r))return vx(r,e);if(arguments.length===2)throw new Dv("expected",["Function","RegExp"],r);if(tl(e)!=="object"||e===null){var n=new bu({actual:e,expected:r,message:t,operator:"deepStrictEqual",stackStartFn:a});throw n.operator=a.name,n}var i=Object.keys(r);if(r instanceof Error)i.push("name","message");else if(i.length===0)throw new vGe("error",r,"may not be an empty object");return yu===void 0&&r1(),i.forEach(function(o){typeof e[o]=="string"&&cx(r[o])&&vx(r[o],e[o])||yGe(e,r,o,t,i,a)}),!0}return r.prototype!==void 0&&e instanceof r?!0:Error.isPrototypeOf(r)?!1:r.call({},e)===!0}function Qoe(e){if(typeof e!="function")throw new Dv("fn","Function",e);try{e()}catch(r){return r}return dx}function joe(e){return pGe(e)||e!==null&&tl(e)==="object"&&typeof e.then=="function"&&typeof e.catch=="function"}function ele(e){return Promise.resolve().then(function(){var r;if(typeof e=="function"){if(r=e(),!joe(r))throw new hGe("instance of Promise","promiseFn",r)}else if(joe(e))r=e;else throw new Dv("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return r}).then(function(){return dx}).catch(function(t){return t})})}function rle(e,r,t,a){if(typeof t=="string"){if(arguments.length===4)throw new Dv("error",["Object","Error","Function","RegExp"],t);if(tl(r)==="object"&&r!==null){if(r.message===t)throw new Goe("error/message",'The error message "'.concat(r.message,'" is identical to the message.'))}else if(r===t)throw new Goe("error/message",'The error "'.concat(r,'" is identical to the message.'));a=t,t=void 0}else if(t!=null&&tl(t)!=="object"&&typeof t!="function")throw new Dv("error",["Object","Error","Function","RegExp"],t);if(r===dx){var n="";t&&t.name&&(n+=" (".concat(t.name,")")),n+=a?": ".concat(a):".";var i=e.name==="rejects"?"rejection":"exception";al({actual:void 0,expected:t,operator:e.name,message:"Missing expected ".concat(i).concat(n),stackStartFn:e})}if(t&&!Koe(r,t,a,e))throw r}function tle(e,r,t,a){if(r!==dx){if(typeof t=="string"&&(a=t,t=void 0),!t||Koe(r,t)){var n=a?": ".concat(a):".",i=e.name==="doesNotReject"?"rejection":"exception";al({actual:r,expected:t,operator:e.name,message:"Got unwanted ".concat(i).concat(n,`
`)+'Actual message: "'.concat(r&&r.message,'"'),stackStartFn:e})}throw r}}la.throws=function e(r){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];rle.apply(void 0,[e,Qoe(r)].concat(a))};la.rejects=function e(r){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];return ele(r).then(function(i){return rle.apply(void 0,[e,i].concat(a))})};la.doesNotThrow=function e(r){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];tle.apply(void 0,[e,Qoe(r)].concat(a))};la.doesNotReject=function e(r){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];return ele(r).then(function(i){return tle.apply(void 0,[e,i].concat(a))})};la.ifError=function e(r){if(r!=null){var t="ifError got unwanted exception: ";tl(r)==="object"&&typeof r.message=="string"?r.message.length===0&&r.constructor?t+=r.constructor.name:t+=r.message:t+=fx(r);var a=new bu({actual:r,expected:null,operator:"ifError",message:t,stackStartFn:e}),n=r.stack;if(typeof n=="string"){var i=n.split(`
`);i.shift();for(var o=a.stack.split(`
`),l=0;l<i.length;l++){var s=o.indexOf(i[l]);if(s!==-1){o=o.slice(0,s);break}}a.stack="".concat(o.join(`
`),`
`).concat(i.join(`
`))}throw a}};function ale(e,r,t,a,n){if(!cx(r))throw new Dv("regexp","RegExp",r);var i=n==="match";if(typeof e!="string"||vx(r,e)!==i){if(t instanceof Error)throw t;var o=!t;t=t||(typeof e!="string"?'The "string" argument must be of type string. Received type '+"".concat(tl(e)," (").concat(fx(e),")"):(i?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(fx(r),`. Input:

`).concat(fx(e),`
`));var l=new bu({actual:e,expected:r,message:t,operator:n,stackStartFn:a});throw l.generatedMessage=o,l}}la.match=function e(r,t,a){ale(r,t,a,e,"match")};la.doesNotMatch=function e(r,t,a){ale(r,t,a,e,"doesNotMatch")};function nle(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];$oe.apply(void 0,[nle,r.length].concat(r))}la.strict=mGe(nle,la,{equal:la.strictEqual,deepEqual:la.deepStrictEqual,notEqual:la.notStrictEqual,notDeepEqual:la.notDeepStrictEqual});la.strict.strict=la.strict});var lle=z((ear,ole)=>{var t1=1e3,a1=t1*60,n1=a1*60,i1=n1*24,gGe=i1*365.25;ole.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return bGe(e);if(t==="number"&&isNaN(e)===!1)return r.long?_Ge(e):xGe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function bGe(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),a=(r[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return t*gGe;case"days":case"day":case"d":return t*i1;case"hours":case"hour":case"hrs":case"hr":case"h":return t*n1;case"minutes":case"minute":case"mins":case"min":case"m":return t*a1;case"seconds":case"second":case"secs":case"sec":case"s":return t*t1;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function xGe(e){return e>=i1?Math.round(e/i1)+"d":e>=n1?Math.round(e/n1)+"h":e>=a1?Math.round(e/a1)+"m":e>=t1?Math.round(e/t1)+"s":e+"ms"}function _Ge(e){return px(e,i1,"day")||px(e,n1,"hour")||px(e,a1,"minute")||px(e,t1,"second")||e+" ms"}function px(e,r,t){if(!(e<r))return e<r*1.5?Math.floor(e/r)+" "+t:Math.ceil(e/r)+" "+t+"s"}});var ule=z((It,sle)=>{It=sle.exports=OM.debug=OM.default=OM;It.coerce=kGe;It.disable=AGe;It.enable=TGe;It.enabled=MGe;It.humanize=lle();It.names=[];It.skips=[];It.formatters={};var BM;function wGe(e){var r=0,t;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return It.colors[Math.abs(r)%It.colors.length]}function OM(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(BM||a);t.diff=n,t.prev=BM,t.curr=a,BM=a;for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];i[0]=It.coerce(i[0]),typeof i[0]!="string"&&i.unshift("%O");var l=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(u,f){if(u==="%%")return u;l++;var c=It.formatters[f];if(typeof c=="function"){var v=i[l];u=c.call(t,v),i.splice(l,1),l--}return u}),It.formatArgs.call(t,i);var s=r.log||It.log||console.log.bind(console);s.apply(t,i)}}return r.namespace=e,r.enabled=It.enabled(e),r.useColors=It.useColors(),r.color=wGe(e),typeof It.init=="function"&&It.init(r),r}function TGe(e){It.save(e),It.names=[],It.skips=[];for(var r=(typeof e=="string"?e:"").split(/[\s,]+/),t=r.length,a=0;a<t;a++)r[a]&&(e=r[a].replace(/\*/g,".*?"),e[0]==="-"?It.skips.push(new RegExp("^"+e.substr(1)+"$")):It.names.push(new RegExp("^"+e+"$")))}function AGe(){It.enable("")}function MGe(e){var r,t;for(r=0,t=It.skips.length;r<t;r++)if(It.skips[r].test(e))return!1;for(r=0,t=It.names.length;r<t;r++)if(It.names[r].test(e))return!0;return!1}function kGe(e){return e instanceof Error?e.stack||e.message:e}});var vle=z((Zn,cle)=>{Zn=cle.exports=ule();Zn.log=LGe;Zn.formatArgs=qGe;Zn.save=CGe;Zn.load=fle;Zn.useColors=SGe;Zn.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:DGe();Zn.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function SGe(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Zn.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function qGe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+Zn.humanize(this.diff),!!r){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var a=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(a++,i==="%c"&&(n=a))}),e.splice(n,0,t)}}function LGe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function CGe(e){try{e==null?Zn.storage.removeItem("debug"):Zn.storage.debug=e}catch(r){}}function fle(){var e;try{e=Zn.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}Zn.enable(fle());function DGe(){try{return window.localStorage}catch(e){}}});var xle=z((rar,ble)=>{var Ev=Jb(),xu=vle()("stream-parser");ble.exports=PGe;var dle=-1,mx=0,EGe=1,ple=2;function PGe(e){var r=e&&typeof e._transform=="function",t=e&&typeof e._write=="function";if(!r&&!t)throw new Error("must pass a Writable or Transform stream in");xu("extending Parser into stream"),e._bytes=RGe,e._skipBytes=FGe,r&&(e._passthrough=zGe),r?e._transform=IGe:e._write=NGe}function o1(e){xu("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=dle,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function RGe(e,r){Ev(!this._parserCallback,'there is already a "callback" set!'),Ev(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||o1(this),xu("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=mx}function FGe(e,r){Ev(!this._parserCallback,'there is already a "callback" set!'),Ev(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||o1(this),xu("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=EGe}function zGe(e,r){Ev(!this._parserCallback,'There is already a "callback" set!'),Ev(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||o1(this),xu("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=ple}function NGe(e,r,t){this._parserInit||o1(this),xu("write(%o bytes)",e.length),typeof r=="function"&&(t=r),yle(this,e,null,t)}function IGe(e,r,t){this._parserInit||o1(this),xu("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),yle(this,e,r,t)}function mle(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return hle(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return hle(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return mle(e,r.slice(n.length),t,a)}})}}function hle(e,r,t,a){if(e._parserBytesLeft-=r.length,xu("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===mx?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===ple&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===mx&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==mx&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=dle,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(gle(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var yle=gle(mle);function gle(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var _le=z(Fi=>{"use strict";Fi.readUInt16LE=function(e,r){return e[r]|e[r+1]<<8};Fi.readUInt16BE=function(e,r){return e[r]<<8|e[r+1]};Fi.readInt16LE=function(e,r){return Fi.readUInt16LE(e,r)<<16>>16};Fi.readInt16BE=function(e,r){return Fi.readUInt16BE(e,r)<<16>>16};Fi.readUInt32LE=function(e,r){return(e[r]|e[r+1]<<8|e[r+2]<<16)+e[r+3]*16777216};Fi.readUInt32BE=function(e,r){return e[r]*16777216+(e[r+1]<<16|e[r+2]<<8|e[r+3])};Fi.readInt32LE=function(e,r){return Fi.readUInt32LE(e,r)|0};Fi.readInt32BE=function(e,r){return Fi.readUInt32BE(e,r)|0}});var Tt=z(zi=>{"use strict";var wle=fie().Transform,BGe=xle(),_u=_le();function l1(){wle.call(this,{readableObjectMode:!0})}l1.prototype=Object.create(wle.prototype);l1.prototype.constructor=l1;BGe(l1.prototype);zi.ParserStream=l1;zi.sliceEq=function(e,r,t){for(var a=r,n=0;n<t.length;)if(e[a++]!==t[n++])return!1;return!0};zi.str2arr=function(e,r){var t=[],a=0;if(r&&r==="hex")for(;a<e.length;)t.push(parseInt(e.slice(a,a+2),16)),a+=2;else for(;a<e.length;a++)t.push(e.charCodeAt(a)&255);return t};function yx(e,r,t){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||"",this.name=this.constructor.name,this.message=e,r&&(this.code=r),t&&(this.statusCode=t)}yx.prototype=Object.create(Error.prototype);yx.prototype.constructor=yx;zi.ProbeError=yx;zi.readUInt16LE=_u.readUInt16LE;zi.readUInt16BE=_u.readUInt16BE;zi.readInt16LE=_u.readInt16LE;zi.readInt16BE=_u.readInt16BE;zi.readUInt32LE=_u.readUInt32LE;zi.readUInt32BE=_u.readUInt32BE;zi.readInt32LE=_u.readInt32LE;zi.readInt32BE=_u.readInt32BE});var Tle=z((nar,gx)=>{"use strict";var Pv=Tt().readUInt16BE,UM=Tt().readUInt32BE;function s1(e,r){if(e.length<4+r)return null;var t=UM(e,r);return e.length<t+r||t<8?null:{boxtype:String.fromCharCode.apply(null,e.slice(r+4,r+8)),data:e.slice(r+8,r+t),end:r+t}}gx.exports.unbox=s1;function OGe(e,r){for(var t=0;;){var a=s1(e,t);if(!a)break;switch(a.boxtype){case"ispe":r.sizes.push({width:UM(a.data,4),height:UM(a.data,8)});break;case"irot":r.transforms.push({type:"irot",value:a.data[0]&3});break;case"imir":r.transforms.push({type:"imir",value:a.data[0]&1});break}t=a.end}}function HM(e,r,t){for(var a=0,n=0;n<t;n++)a=a*256+(e[r+n]||0);return a}function HGe(e,r){for(var t=e[4]>>4&15,a=e[4]&15,n=e[5]>>4&15,i=Pv(e,6),o=8,l=0;l<i;l++){var s=Pv(e,o);o+=2;var u=Pv(e,o);o+=2;var f=HM(e,o,n);o+=n;var c=Pv(e,o);if(o+=2,u===0&&c===1){var v=HM(e,o,t),d=HM(e,o+t,a);r.item_loc[s]={length:d,offset:v+f}}o+=c*(t+a)}}function UGe(e,r){for(var t=Pv(e,4),a=6,n=0;n<t;n++){var i=s1(e,a);if(!i)break;if(i.boxtype==="infe"){for(var o=Pv(i.data,4),l="",s=8;s<i.data.length&&i.data[s];s++)l+=String.fromCharCode(i.data[s]);r.item_inf[l]=o}a=i.end}}function GGe(e,r){for(var t=0;;){var a=s1(e,t);if(!a)break;a.boxtype==="ipco"&&OGe(a.data,r),t=a.end}}function YGe(e,r){for(var t=4;;){var a=s1(e,t);if(!a)break;a.boxtype==="iprp"&&GGe(a.data,r),a.boxtype==="iloc"&&HGe(a.data,r),a.boxtype==="iinf"&&UGe(a.data,r),t=a.end}}function VGe(e){var r=e.reduce(function(n,i){return n.width>i.width||n.width===i.width&&n.height>i.height?n:i}),t=e.reduce(function(n,i){return n.height>i.height||n.height===i.height&&n.width>i.width?n:i}),a;return r.width>t.height||r.width===t.height&&r.height>t.width?a=r:a=t,a}gx.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(YGe(e,r),!!r.sizes.length){var t=VGe(r.sizes),a=1;r.transforms.forEach(function(i){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},l={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(i.type==="imir"&&(i.value===0?a=l[a]:(a=l[a],a=o[a],a=o[a])),i.type==="irot")for(var s=0;s<i.value;s++)a=o[a]});var n=null;return r.item_inf.Exif&&(n=r.item_loc[r.item_inf.Exif]),{width:t.width,height:t.height,orientation:r.transforms.length?a:null,variants:r.sizes,exif_location:n}}};gx.exports.getMimeType=function(e){var r=String.fromCharCode.apply(null,e.slice(0,4)),t={};t[r]=!0;for(var a=8;a<e.length;a+=4)t[String.fromCharCode.apply(null,e.slice(a,a+4))]=!0;if(!(!t.mif1&&!t.msf1&&!t.miaf))return r==="avif"||r==="avis"||r==="avio"?{type:"avif",mime:"image/avif"}:r==="heic"||r==="heix"?{type:"heic",mime:"image/heic"}:r==="hevc"||r==="hevx"?{type:"heic",mime:"image/heic-sequence"}:t.avif||t.avis?{type:"avif",mime:"image/avif"}:t.heic||t.heix||t.hevc||t.hevx||t.heis?t.msf1?{type:"heif",mime:"image/heif-sequence"}:{type:"heif",mime:"image/heif"}:{type:"avif",mime:"image/avif"}}});var xx=z((iar,GM)=>{"use strict";function bx(e,r){var t=new Error(e);return t.code=r,t}function jGe(e){try{return decodeURIComponent(escape(e))}catch(r){return e}}function ps(e,r,t){this.input=e.subarray(r,t),this.start=r;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if(a!=="II*\0"&&a!=="MM\0*")throw bx("invalid TIFF signature","EBADDATA");this.big_endian=a[0]==="M"}ps.prototype.each=function(e){this.aborted=!1;var r=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:r}];this.ifds_to_read.length>0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,e)}};ps.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw bx("unexpected EOF","EBADDATA");return this.big_endian?r[e]*256+r[e+1]:r[e]+r[e+1]*256};ps.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw bx("unexpected EOF","EBADDATA");return this.big_endian?r[e]*16777216+r[e+1]*65536+r[e+2]*256+r[e+3]:r[e]+r[e+1]*256+r[e+2]*65536+r[e+3]*16777216};ps.prototype.is_subifd_link=function(e,r){return e===0&&r===34665||e===0&&r===34853||e===34665&&r===40965};ps.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};ps.prototype.exif_format_read=function(e,r){var t;switch(e){case 1:case 2:return t=this.input[r],t;case 6:return t=this.input[r],t|(t&128)*33554430;case 3:return t=this.read_uint16(r),t;case 8:return t=this.read_uint16(r),t|(t&32768)*131070;case 4:return t=this.read_uint32(r),t;case 9:return t=this.read_uint32(r),t|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};ps.prototype.scan_ifd=function(e,r,t){var a=this.read_uint16(r);r+=2;for(var n=0;n<a;n++){var i=this.read_uint16(r),o=this.read_uint16(r+2),l=this.read_uint32(r+4),s=this.exif_format_length(o),u=l*s,f=u<=4?r+8:this.read_uint32(r+8),c=!1;if(f+u>this.input.length)throw bx("unexpected EOF","EBADDATA");for(var v=[],d=f,p=0;p<l;p++,d+=s){var m=this.exif_format_read(o,d);if(m===null){v=null;break}v.push(m)}Array.isArray(v)&&o===2&&(v=jGe(String.fromCharCode.apply(null,v)),v&&v[v.length-1]==="\0"&&(v=v.slice(0,-1))),this.is_subifd_link(e,i)&&Array.isArray(v)&&Number.isInteger(v[0])&&v[0]>0&&(this.ifds_to_read.push({id:i,offset:v[0]}),c=!0);var y={is_big_endian:this.big_endian,ifd:e,tag:i,format:o,count:l,entry_offset:r+this.start,data_length:u,data_offset:f+this.start,value:v,is_subifd_link:c};if(t(y)===!1){this.aborted=!0;return}r+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})};GM.exports.ExifParser=ps;GM.exports.get_orientation=function(e){var r=0;try{return new ps(e,0,e.length).each(function(t){if(t.ifd===0&&t.tag===274&&Array.isArray(t.value))return r=t.value[0],!1}),r}catch(t){return-1}}});var Mle=z((oar,Ale)=>{"use strict";var WGe=Tt().str2arr,XGe=Tt().sliceEq,ZGe=Tt().readUInt32BE,_x=Tle(),$Ge=xx(),JGe=WGe("ftyp");Ale.exports=function(e){if(XGe(e,4,JGe)){var r=_x.unbox(e,0);if(r){var t=_x.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=_x.unbox(e,n);if(!i)break;if(n=i.end,i.boxtype==="mdat")return;if(i.boxtype==="meta"){a=i.data;break}}if(a){var o=_x.readSizeFromMeta(a);if(o){var l={width:o.width,height:o.height,type:t.type,mime:t.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(l.variants=o.variants),o.orientation&&(l.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var s=ZGe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=$Ge.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var Lle=z((lar,qle)=>{"use strict";var KGe=Tt().str2arr,QGe=Tt().sliceEq,kle=Tt().readInt16LE,Sle=Tt().readInt32LE,eYe=Tt().readUInt32LE,rYe=KGe("BM");qle.exports=function(e){if(!(e.length<26)&&QGe(e,0,rYe)){var r,t,a=eYe(e,14);if(a===12)t=kle(e,18),r=kle(e,20);else if(a>12)t=Sle(e,18),r=Sle(e,22);else return;return{width:t,height:Math.abs(r),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var Rle=z((sar,Ple)=>{"use strict";var Ele=Tt().str2arr,Cle=Tt().sliceEq,Dle=Tt().readUInt16LE,tYe=Ele("GIF87a"),aYe=Ele("GIF89a");Ple.exports=function(e){if(!(e.length<10)&&!(!Cle(e,0,tYe)&&!Cle(e,0,aYe)))return{width:Dle(e,6),height:Dle(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var zle=z((uar,Fle)=>{"use strict";var YM=Tt().readUInt16LE,nYe=0,iYe=1,VM=16;Fle.exports=function(e){var r=YM(e,0),t=YM(e,2),a=YM(e,4);if(!(r!==nYe||t!==iYe||!a)&&!(e.length<6+a*VM)){for(var n=[],i={width:0,height:0},o=0;o<a;o++){var l=e[6+VM*o]||256,s=e[6+VM*o+1]||256,u={width:l,height:s};n.push(u),(l>i.width||s>i.height)&&(i=u)}return{width:i.width,height:i.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Ile=z((far,Nle)=>{"use strict";var jM=Tt().readUInt16BE,oYe=Tt().str2arr,lYe=Tt().sliceEq,sYe=xx(),uYe=oYe("Exif\0\0");Nle.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var r=2;;){for(;;){if(e.length-r<2)return;if(e[r++]===255)break}for(var t=e[r++],a;t===255;)t=e[r++];if(t>=208&&t<=217||t===1)a=0;else if(t>=192&&t<=254){if(e.length-r<2)return;a=jM(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&lYe(e,r,uYe)&&(n=sYe.get_orientation(e.slice(r+6,r+a))),a>=5&&t>=192&&t<=207&&t!==196&&t!==200&&t!==204){if(e.length-r<a)return;var i={width:jM(e,r+3),height:jM(e,r+1),type:"jpg",mime:"image/jpeg",wUnits:"px",hUnits:"px"};return n>0&&(i.orientation=n),i}r+=a}}});var Gle=z((car,Ule)=>{"use strict";var Hle=Tt().str2arr,Ble=Tt().sliceEq,Ole=Tt().readUInt32BE,fYe=Hle(`\x89PNG\r

`),cYe=Hle("IHDR");Ule.exports=function(e){if(!(e.length<24)&&Ble(e,0,fYe)&&Ble(e,12,cYe))return{width:Ole(e,16),height:Ole(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var jle=z((har,Vle)=>{"use strict";var vYe=Tt().str2arr,hYe=Tt().sliceEq,Yle=Tt().readUInt32BE,dYe=vYe("8BPS\0");Vle.exports=function(e){if(!(e.length<22)&&hYe(e,0,dYe))return{width:Yle(e,18),height:Yle(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var ZM=z(XM=>{"use strict";XM.MAX_DATA_LENGTH=1024*10;var WM="[a-zA-Z_:][a-zA-Z0-9:._-]*",Xle="[^\"'=<>`\\x00-\\x20]+",pYe="'[^']*'",mYe='"[^"]*"',yYe="(?:"+Xle+"|"+pYe+"|"+mYe+")",gYe="(?:\\s+"+WM+"(?:\\s*=\\s*"+yYe+")?)",bYe="<[?][\\s\\S]*?[?]>",xYe="<!--(?:[^-]|-[^-]|--[^>])*-->",_Ye="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",wYe="<![A-Za-z][^[>]*(?:\\[[\\s\\S]*?\\][^>]*)?>",TYe=new RegExp("^(?:\\s+|"+bYe+"|"+xYe+"|"+_Ye+"|"+wYe+")*"),AYe=new RegExp("^<("+WM+")("+gYe+"*)\\s*/?>"),Wle=new RegExp("\\s+("+WM+")(?:\\s*=\\s*(?:("+Xle+`)|'([^']*)'|"([^"]*)"))?`,"g"),MYe=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Rv(e){return typeof e=="number"&&isFinite(e)&&e>0}function Fl(e){var r=e.slice(-2),t=r.match(MYe);return t===null?"px":t[0]}XM.parse=function(e){var r=e.match(TYe)[0],t=AYe.exec(r.length?e.slice(r.length):e);if(t){var a=t[1];if(!(a!=="svg"&&a.slice(-4)!==":svg")){var n={},i;for(Wle.lastIndex=0;(i=Wle.exec(t[2]))!==null;)n[i[1]]=i[2]!==void 0?i[2]:i[3]!==void 0?i[3]:i[4];var o=n.width,l=n.height,s=n.viewBox||n.viewbox;o&&o.indexOf("%")!==-1&&(o=void 0),l&&l.indexOf("%")!==-1&&(l=void 0);var u=parseFloat(o),f=parseFloat(l);if(o&&l)return!Rv(u)||!Rv(f)?void 0:{width:u,height:f,type:"svg",mime:"image/svg+xml",wUnits:Fl(o),hUnits:Fl(l)};var c=(s||"").trim().split(/[\s,]+/),v=parseFloat(c[2]),d=parseFloat(c[3]);if(!(!Rv(v)||!Rv(d))&&Fl(c[2])===Fl(c[3])){var p=v/d;return o?Rv(u)?{width:u,height:u/p,type:"svg",mime:"image/svg+xml",wUnits:Fl(o),hUnits:Fl(o)}:void 0:l?Rv(f)?{width:f*p,height:f,type:"svg",mime:"image/svg+xml",wUnits:Fl(l),hUnits:Fl(l)}:void 0:{width:v,height:d,type:"svg",mime:"image/svg+xml",wUnits:Fl(c[2]),hUnits:Fl(c[3])}}}}}});var $le=z((par,Zle)=>{"use strict";var kYe=ZM().parse,SYe=ZM().MAX_DATA_LENGTH;Zle.exports=function(e){var r=0;e[0]===239&&e[1]===187&&e[2]===191&&(r=3);for(var t="",a=Math.min(e.length,r+SYe),n=r;n<a;n++)t+=String.fromCharCode(e[n]);return kYe(t)}});var rse=z((mar,ese)=>{"use strict";var Qle=Tt().str2arr,Jle=Tt().sliceEq,qYe=Tt().readUInt16LE,LYe=Tt().readUInt16BE,CYe=Tt().readUInt32LE,DYe=Tt().readUInt32BE,EYe=Qle("II*\0"),PYe=Qle("MM\0*");function wx(e,r,t){return t?LYe(e,r):qYe(e,r)}function $M(e,r,t){return t?DYe(e,r):CYe(e,r)}function Kle(e,r,t){var a=wx(e,r+2,t),n=$M(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?wx(e,r+8,t):$M(e,r+8,t)}ese.exports=function(e){if(!(e.length<8)&&!(!Jle(e,0,EYe)&&!Jle(e,0,PYe))){var r=e[0]===77,t=$M(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=wx(e,a+0,r)*12;if(!(n<=0)&&(a+=2,!(e.length-a<n))){var i,o,l,s;for(i=0;i<n;i+=12)s=wx(e,a+i,r),s===256?o=Kle(e,a+i,r):s===257&&(l=Kle(e,a+i,r));if(o&&l)return{width:o,height:l,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}}}}}}});var ose=z((yar,ise)=>{"use strict";var nse=Tt().str2arr,tse=Tt().sliceEq,ase=Tt().readUInt16LE,JM=Tt().readUInt32LE,RYe=xx(),FYe=nse("RIFF"),zYe=nse("WEBP");function NYe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:ase(e,r+6)&16383,height:ase(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function IYe(e,r){if(e[r]===47){var t=JM(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function BYe(e,r){return{width:(e[r+6]<<16|e[r+5]<<8|e[r+4])+1,height:(e[r+9]<<16|e[r+8]<<8|e[r+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}ise.exports=function(e){if(!(e.length<16)&&!(!tse(e,0,FYe)||!tse(e,8,zYe))){var r=12,t=null,a=0,n=JM(e,4)+8;if(!(n>e.length)){for(;r+8<n;){if(e[r]===0){r++;continue}var i=String.fromCharCode.apply(null,e.slice(r,r+4)),o=JM(e,r+4);i==="VP8 "&&o>=10?t=t||NYe(e,r+8):i==="VP8L"&&o>=5?t=t||IYe(e,r+8):i==="VP8X"&&o>=10?t=t||BYe(e,r+8):i==="EXIF"&&(a=RYe.get_orientation(e.slice(r+8,r+8+o)),r=1/0),r+=8+o}if(t)return a>0&&(t.orientation=a),t}}}});var sse=z((gar,lse)=>{"use strict";lse.exports={avif:Mle(),bmp:Lle(),gif:Rle(),ico:zle(),jpeg:Ile(),png:Gle(),psd:jle(),svg:$le(),tiff:rse(),webp:ose()}});var use=z((bar,QM)=>{"use strict";var KM=sse();function OYe(e){for(var r=Object.keys(KM),t=0;t<r.length;t++){var a=KM[r[t]](e);if(a)return a.width>0&&a.height>0?a:null}return null}QM.exports=function(r){return OYe(r)};QM.exports.parsers=KM});var cse=z(fse=>{"use strict";var HYe=use(),UYe=ts().IMAGE_URL_PREFIX,GYe=hv().Buffer;fse.getImageSize=function(e){var r=e.replace(UYe,""),t=new GYe(r,"base64");return HYe(t)}});var dse=z((_ar,hse)=>{"use strict";var vse=ke(),YYe=(sv(),Ne(w2)),VYe=Br(),Tx=jr(),jYe=ke().maxRowLength,WYe=cse().getImageSize;hse.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=jYe(t.z);else if(t._hasSource){var i=WYe(t.source);a=i.height,n=i.width}var o=Tx.getFromId(r,t.xaxis||"x"),l=Tx.getFromId(r,t.yaxis||"y"),s=o.d2c(t.x0)-t.dx/2,u=l.d2c(t.y0)-t.dy/2,f,c=[s,s+n*t.dx],v=[u,u+a*t.dy];if(o&&o.type==="log")for(f=0;f<n;f++)c.push(s+f*t.dx);if(l&&l.type==="log")for(f=0;f<a;f++)v.push(u+f*t.dy);t._extremes[o._id]=Tx.findExtremes(o,c),t._extremes[l._id]=Tx.findExtremes(l,v),t._scaler=$Ye(t);var d={x0:s,y0:u,z:t.z,w:n,h:a};return[d]};function XYe(e,r,t,a){return function(n){return vse.constrain((n-e)*r,t,a)}}function ZYe(e,r){return function(t){return vse.constrain(t,e,r)}}function $Ye(e){var r=YYe.colormodel[e.colormodel],t=r.colormodel||e.colormodel,a=t.length;e._sArray=[];for(var n=0;n<a;n++)r.min[n]!==e.zmin[n]||r.max[n]!==e.zmax[n]?e._sArray.push(XYe(e.zmin[n],(r.max[n]-r.min[n])/(e.zmax[n]-e.zmin[n]),r.min[n],r.max[n])):e._sArray.push(ZYe(r.min[n],r.max[n]));return function(i){for(var o=i.slice(0,a),l=0;l<a;l++){var s=o[l];if(!VYe(s))return!1;o[l]=e._sArray[l](s)}return o}}});var yse=z((war,mse)=>{"use strict";var JYe=Pr(),oc=ke(),pse=oc.strTranslate,KYe=(Wl(),Ne(jl)),QYe=(sv(),Ne(w2)),eVe=eT(),rVe=(w3(),Ne(_3)).STYLE;mse.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&eVe();oc.makeTraceGroups(n,a,"im").each(function(s){var u=JYe.select(this),f=s[0],c=f.trace,v=(c.zsmooth==="fast"||c.zsmooth===!1&&l)&&!c._hasZ&&c._hasSource&&i.type==="linear"&&o.type==="linear";c._realImage=v;var d=f.z,p=f.x0,m=f.y0,y=f.w,b=f.h,T=c.dx,w=c.dy,x,_,k,M,q,C;for(C=0;x===void 0&&C<y;)x=i.c2p(p+C*T),C++;for(C=y;_===void 0&&C>0;)_=i.c2p(p+C*T),C--;for(C=0;M===void 0&&C<b;)M=o.c2p(m+C*w),C++;for(C=b;q===void 0&&C>0;)q=o.c2p(m+C*w),C--;if(_<x&&(k=_,_=x,x=k),q<M&&(k=M,M=q,q=k),!v){var E=.5;x=Math.max(-E*i._length,x),_=Math.min((1+E)*i._length,_),M=Math.max(-E*o._length,M),q=Math.min((1+E)*o._length,q)}var P=Math.round(_-x),R=Math.round(q-M),B=P<=0||R<=0;if(B){var I=u.selectAll("image").data([]);I.exit().remove();return}function N(ne){var $=document.createElement("canvas");$.width=P,$.height=R;var ce=$.getContext("2d",{willReadFrequently:!0}),te=function(Ee){return oc.constrain(Math.round(i.c2p(p+Ee*T)-x),0,P)},ge=function(Ee){return oc.constrain(Math.round(o.c2p(m+Ee*w)-M),0,R)},se=QYe.colormodel[c.colormodel],oe=se.colormodel||c.colormodel,Ae=se.fmt,Pe;for(C=0;C<f.w;C++){var me=te(C),Ce=te(C+1);if(!(Ce===me||isNaN(Ce)||isNaN(me)))for(var Me=0;Me<f.h;Me++){var Le=ge(Me),Se=ge(Me+1);Se===Le||isNaN(Se)||isNaN(Le)||!ne(C,Me)||(Pe=c._scaler(ne(C,Me)),Pe?ce.fillStyle=oe+"("+Ae(Pe).join(",")+")":ce.fillStyle="rgba(0,0,0,0)",ce.fillRect(me,Le,Ce-me,Se-Le))}}return $}var H=u.selectAll("image").data([s]);H.enter().append("svg:image").attr({xmlns:KYe.svg,preserveAspectRatio:"none"}),H.exit().remove();var G=c.zsmooth===!1?rVe:"";if(v){var Y=oc.simpleMap(i.range,i.r2l),j=oc.simpleMap(o.range,o.r2l),W=Y[1]<Y[0],V=j[1]>j[0];if(W||V){var J=x+P/2,re=M+R/2;G+="transform:"+pse(J+"px",re+"px")+"scale("+(W?-1:1)+","+(V?-1:1)+")"+pse(-J+"px",-re+"px")+";"}}H.attr("style",G);var le=new Promise(function(ne){if(c._hasZ)ne();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===y&&c._canvas.el.height===b&&c._canvas.source===c.source)ne();else{var $=document.createElement("canvas");$.width=y,$.height=b;var ce=$.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var te=c._image;te.onload=function(){ce.drawImage(te,0,0),c._canvas={el:$,source:c.source},ne()},te.setAttribute("src",c.source)}}).then(function(){var ne,$;if(c._hasZ)$=N(function(ge,se){var oe=d[se][ge];return oc.isTypedArray(oe)&&(oe=Array.from(oe)),oe}),ne=$.toDataURL("image/png");else if(c._hasSource)if(v)ne=c.source;else{var ce=c._canvas.el.getContext("2d",{willReadFrequently:!0}),te=ce.getImageData(0,0,y,b).data;$=N(function(ge,se){var oe=4*(se*y+ge);return[te[oe],te[oe+1],te[oe+2],te[oe+3]]}),ne=$.toDataURL("image/png")}H.attr({"xlink:href":ne,height:R,width:P,x,y:M})});r._promises.push(le)})}});var bse=z((Tar,gse)=>{"use strict";var tVe=Pr();gse.exports=function(r){tVe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var Tse=z((Aar,wse)=>{"use strict";var xse=Yn(),_se=ke(),Ax=_se.isArrayOrTypedArray,aVe=(sv(),Ne(w2));wse.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(xse.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||xse.inbox(a-n.y0,a-(n.y0+n.h*i.dy),0)>0)){var s=Math.floor((t-n.x0)/i.dx),u=Math.floor(Math.abs(a-n.y0)/i.dy),f;if(i._hasZ?f=n.z[u][s]:i._hasSource&&(f=i._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(s,u,1,1).data),!!f){var c=n.hi||i.hoverinfo,v;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(v=!0)}var p=aVe.colormodel[i.colormodel],m=p.colormodel||i.colormodel,y=m.length,b=i._scaler(f),T=p.suffix,w=[];(i.hovertemplate||v)&&(w.push("["+[b[0]+T[0],b[1]+T[1],b[2]+T[2]].join(", ")),y===4&&w.push(", "+b[3]+T[3]),w.push("]"),w=w.join(""),r.extraText=m.toUpperCase()+": "+w);var x;Ax(i.hovertext)&&Ax(i.hovertext[u])?x=i.hovertext[u][s]:Ax(i.text)&&Ax(i.text[u])&&(x=i.text[u][s]);var _=l.c2p(n.y0+(u+.5)*i.dy),k=n.x0+(s+.5)*i.dx,M=n.y0+(u+.5)*i.dy,q="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[_se.extendFlat(r,{index:[u,s],x0:o.c2p(n.x0+s*i.dx),x1:o.c2p(n.x0+(s+1)*i.dx),y0:_,y1:_,color:b,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:q,text:x,hovertemplateLabels:{zLabel:q,colorLabel:w,"color[0]Label":b[0]+T[0],"color[1]Label":b[1]+T[1],"color[2]Label":b[2]+T[2],"color[3]Label":b[3]+T[3]}})]}}}});var Mse=z((Mar,Ase)=>{"use strict";Ase.exports=function(r,t){return"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r.color=t.color,r.colormodel=t.trace.colormodel,r.z||(r.z=t.color),r}});var Sse=z((kar,kse)=>{"use strict";kse.exports={attributes:(XT(),Ne(WT)).default,supplyDefaults:vre(),calc:dse(),plot:yse(),style:bse(),hoverPoints:Tse(),eventData:Mse(),moduleType:"trace",name:"image",basePlotModule:lo(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var Lse=z((Sar,qse)=>{"use strict";qse.exports=Sse()});var ek=z((qar,Dse)=>{"use strict";var Mx=Gn(),nVe=H0().attributes,iVe=Ia(),oVe=Hi(),{hovertemplateAttrs:lVe,texttemplateAttrs:sVe,templatefallbackAttrs:Cse}=gi(),wu=St().extendFlat,uVe=Ui().pattern,kx=iVe({editType:"plot",arrayOk:!0,colorEditType:"plot"});Dse.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:oVe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:uVe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:wu({},Mx.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:lVe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:Cse(),texttemplate:sVe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:Cse({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:wu({},kx,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:wu({},kx,{}),outsidetextfont:wu({},kx,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:wu({},Mx.showlegend,{arrayOk:!0}),legend:wu({},Mx.legend,{arrayOk:!0}),legendrank:wu({},Mx.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:wu({},kx,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:nVe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var Fse=z((Lar,Rse)=>{"use strict";var fVe=Br(),u1=ke(),cVe=ek(),vVe=H0().defaults,hVe=Nf().handleText,dVe=ke().coercePattern;function Ese(e,r){var t=u1.isArrayOrTypedArray(e),a=u1.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,o=0;o<n;o++){var l=r[o];if(fVe(l)&&l>0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function Pse(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var o=a("marker.colors");dVe(a,"marker.pattern",o),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function pVe(e,r,t,a){function n(T,w){return u1.coerce(e,r,cVe,T,w)}var i=n("labels"),o=n("values"),l=Ese(i,o),s=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,Pse(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",u1.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");hVe(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(v)||v==="auto",p=d||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");vVe(r,a,n);var m=n("hole"),y=n("title.text");if(y){var b=n("title.position",m?"middle center":"top center");!m&&b==="middle center"&&(r.title.position="top center"),u1.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}Rse.exports={handleLabelsAndValues:Ese,handleMarkerDefaults:Pse,supplyDefaults:pVe}});var rk=z((Car,zse)=>{"use strict";zse.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Ise=z((Dar,Nse)=>{"use strict";var mVe=ke(),yVe=rk();Nse.exports=function(r,t){function a(n,i){return mVe.coerce(r,t,yVe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var tk=z((Ear,Hse)=>{"use strict";var gVe=Br(),Fv=qr(),bVe={};function xVe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,o=r.marker.colors||[],l=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f<s;f++)i[f]=String(r.label0+f*r.dlabel);var v={},d=Bse(a["_"+r.type+"colormap"]),p=0,m=!1;for(f=0;f<s;f++){var y,b,T;if(u){if(y=l[f],!gVe(y))continue;y=+y}else y=1;b=i[f],(b===void 0||b==="")&&(b=f),b=String(b);var w=v[b];w===void 0?(v[b]=t.length,T=n.indexOf(b)!==-1,T||(p+=y),t.push({v:y,label:b,color:d(o[f],b),i:f,pts:[f],hidden:T})):(m=!0,c=t[w],c.v+=y,c.pts.push(f),c.hidden||(p+=y),c.color===!1&&o[f]&&(c.color=d(o[f],b)))}t=t.filter(function(_){return _.v>=0});var x=r.type==="funnelarea"?m:r.sort;return x&&t.sort(function(_,k){return k.v-_.v}),t[0]&&(t[0].vTotal=p),t}function Bse(e){return function(t,a){if(!t||!Fv.isValid(t))return!1;let n=Fv.rgbaString(t);return e[a]||(e[a]=n),n}}function _Ve(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],o=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=Ose(i,bVe));for(var l=0,s=0;s<n.length;s++){var u=n[s],f=u[0].trace.type;if(f===t)for(var c=0;c<u.length;c++){var v=u[c];v.color===!1&&(o[v.label]?v.color=o[v.label]:(o[v.label]=v.color=i[l%i.length],l++))}}}function Ose(e,r){var t,a=JSON.stringify(e),n=r[a];if(!n){for(n=e.slice(),t=0;t<e.length;t++)n.push(Fv.hexString(Fv.adjustLightness(e[t],20)));for(t=0;t<e.length;t++)n.push(Fv.hexString(Fv.adjustLightness(e[t],-20)));r[a]=n}return n}Hse.exports={calc:xVe,crossTraceCalc:_Ve,makePullColorFn:Bse,generateExtendedColors:Ose}});var Gse=z((Par,Use)=>{"use strict";var wVe=No().appendArrayMultiPointValues;Use.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),wVe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var cue=z((Rar,fue)=>{"use strict";var di=Pr(),TVe=_a(),Sx=Yn(),Zse=qr(),ms=et(),pn=ke(),AVe=pn.strScale,Yse=pn.strTranslate,ak=Da(),$se=a2(),MVe=$se.recordMinTextSize,kVe=$se.clearMinTextSize,Jse=(Id(),Ne(Nd)).TEXTPAD,Dr=Gm(),qx=Gse(),Vse=ke().isValidTextValue;function SVe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;kVe("pie",a),eue(r,e),lue(r,n);var i=pn.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=di.select(this),s=o[0],u=s.trace;zVe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=di.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(x,_){if(x.hidden){di.select(this).selectAll("path,g").remove();return}x.pointNumber=x.i,x.curveNumber=u.index,c[x.pxmid[1]<0?0:1][x.pxmid[0]<0?0:1].push(x);var k=s.cx,M=s.cy,q=di.select(this),C=q.selectAll("path.surface").data([x]);if(C.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(Kse,e,o),u.pull){var E=+Dr.castOption(u.pull,x.pts)||0;E>0&&(k+=E*x.pxmid[0],M+=E*x.pxmid[1])}x.cxFinal=k,x.cyFinal=M;function P(Y,j,W,V){var J=V*(j[0]-Y[0]),re=V*(j[1]-Y[1]);return"a"+V*s.r+","+V*s.r+" 0 "+x.largeArc+(W?" 1 ":" 0 ")+J+","+re}var R=u.hole;if(x.v===s.vTotal){var B="M"+(k+x.px0[0])+","+(M+x.px0[1])+P(x.px0,x.pxmid,!0,1)+P(x.pxmid,x.px0,!0,1)+"Z";R?C.attr("d","M"+(k+R*x.px0[0])+","+(M+R*x.px0[1])+P(x.px0,x.pxmid,!1,R)+P(x.pxmid,x.px0,!1,R)+"Z"+B):C.attr("d",B)}else{var I=P(x.px0,x.px1,!0,1);if(R){var N=1-R;C.attr("d","M"+(k+R*x.px1[0])+","+(M+R*x.px1[1])+P(x.px1,x.px0,!1,R)+"l"+N*x.px0[0]+","+N*x.px0[1]+I+"Z")}else C.attr("d","M"+k+","+M+"l"+x.px0[0]+","+x.px0[1]+I+"Z")}sue(e,x,s);var H=Dr.castOption(u.textposition,x.pts),G=q.selectAll("g.slicetext").data(x.text&&H!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var Y=pn.ensureSingle(di.select(this),"text","",function($){$.attr("data-notex",1)}),j=pn.ensureUniformFontSize(e,H==="outside"?LVe(u,x,a.font):Qse(u,x,a.font));Y.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(ms.font,j).call(ak.convertToTspans,e);var W=ms.bBox(Y.node()),V;if(H==="outside")V=Xse(W,x);else if(V=rue(W,x,s),H==="auto"&&V.scale<1){var J=pn.ensureUniformFontSize(e,u.outsidetextfont);Y.call(ms.font,J),W=ms.bBox(Y.node()),V=Xse(W,x)}var re=V.textPosAngle,le=re===void 0?x.pxmid:Lx(s.r,re);if(V.targetX=k+le[0]*V.rCenter+(V.x||0),V.targetY=M+le[1]*V.rCenter+(V.y||0),uue(V,W),V.outside){var ne=V.targetY;x.yLabelMin=ne-W.height/2,x.yLabelMid=ne,x.yLabelMax=ne+W.height/2,x.labelExtraX=0,x.labelExtraY=0,v=!0}V.fontSize=j.size,MVe(u.type,V,a),o[_].transform=V,pn.setTransormAndDisplay(Y,V)})});var d=di.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var x=pn.ensureSingle(di.select(this),"text","",function(M){M.attr("data-notex",1)}),_=u.title.text;u._meta&&(_=pn.templateString(_,u._meta)),x.text(_).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(ms.font,u.title.font).call(ak.convertToTspans,e);var k;u.title.position==="middle center"?k=EVe(s):k=iue(s,n),x.attr("transform",Yse(k.x,k.y)+AVe(Math.min(1,k.scale))+Yse(k.tx,k.ty))}),v&&RVe(c,u),qVe(f,u),v&&u.automargin){var p=ms.bBox(l.node()),m=u.domain,y=n.w*(m.x[1]-m.x[0]),b=n.h*(m.y[1]-m.y[0]),T=(.5*y-s.r)/n.w,w=(.5*b-s.r)/n.h;TVe.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-T,xr:m.x[1]+T,yb:m.y[0]-w,yt:m.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var o=di.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function qVe(e,r){e.each(function(t){var a=di.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,pn.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],o=t.cyFinal+t.pxmid[1],l="M"+i+","+o,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?l+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):l+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else l+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;pn.ensureSingle(a,"path","textline").call(Zse.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function Kse(e,r,t){var a=t[0],n=a.cx,i=a.cy,o=a.trace,l=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[o.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=Sx.castHoverinfo({hoverinfo:[Dr.castOption(c,s.pts)],_module:o._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,d=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),m=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Dr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;pn.isValidTextValue(b)&&y.push(b)}s.value=s.v,s.valueLabel=Dr.formatPieValue(s.v,m),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Dr.formatPiePercent(s.percent,m),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var T=f.hoverlabel,w=T.font,x=[];Sx.loneHover({trace:o,x0:d-v*a.r,x1:d+v*a.r,y:p,_x0:l?n+s.TL[0]:d-v*a.r,_x1:l?n+s.TR[0]:d+v*a.r,_y0:l?i+s.TL[1]:p-v*a.r,_y1:l?i+s.BL[1]:p+v*a.r,text:y.join("<br>"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Dr.castOption(T.bgcolor,s.pts)||s.color,borderColor:Dr.castOption(T.bordercolor,s.pts),fontFamily:Dr.castOption(w.family,s.pts),fontSize:Dr.castOption(w.size,s.pts),fontColor:Dr.castOption(w.color,s.pts),nameLength:Dr.castOption(T.namelength,s.pts),textAlign:Dr.castOption(T.align,s.pts),hovertemplate:Dr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[qx(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:x}),s.bbox=x[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,r.emit("plotly_hover",{points:[qx(s,f)],event:di.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=di.select(this).datum();o._hasHoverEvent&&(s.originalEvent=di.event,r.emit("plotly_unhover",{points:[qx(c,f)],event:di.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(Sx.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[o.index];r._dragging||u.hovermode===!1||(r._hoverdata=[qx(s,f)],Sx.click(r,di.event))})}function LVe(e,r,t){var a=Dr.castOption(e.outsidetextfont.color,r.pts)||Dr.castOption(e.textfont.color,r.pts)||t.color,n=Dr.castOption(e.outsidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.outsidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,o=Dr.castOption(e.outsidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,l=Dr.castOption(e.outsidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.outsidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.outsidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.outsidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.outsidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Qse(e,r,t){var a=Dr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Dr.castOption(e._input.textfont.color,r.pts));var n=Dr.castOption(e.insidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.insidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,o=Dr.castOption(e.insidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,l=Dr.castOption(e.insidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.insidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.insidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.insidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.insidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||Zse.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function eue(e,r){for(var t,a,n=0;n<e.length;n++)if(t=e[n][0],a=t.trace,a.title.text){var i=a.title.text;a._meta&&(i=pn.templateString(i,a._meta));var o=ms.tester.append("text").attr("data-notex",1).text(i).call(ms.font,a.title.font).call(ak.convertToTspans,r),l=ms.bBox(o.node(),!0);t.titleBox={width:l.width,height:l.height},o.remove()}}function rue(e,r,t){var a=t.r||r.rpx1,n=r.rInscribed,i=r.startangle===r.stopangle;if(i)return{rCenter:1-n,scale:0,rotate:0,textPosAngle:0};var o=r.ring,l=o===1&&Math.abs(r.startangle-r.stopangle)===Math.PI*2,s=r.halfangle,u=r.midangle,f=t.trace.insidetextorientation,c=f==="horizontal",v=f==="tangential",d=f==="radial",p=f==="auto",m=[],y;if(!p){var b=function(q,C){if(CVe(r,q)){var E=Math.abs(q-r.startangle),P=Math.abs(q-r.stopangle),R=E<P?E:P;C==="tan"?y=Wse(e,a,o,R,0):y=jse(e,a,o,R,Math.PI/2),y.textPosAngle=q,m.push(y)}},T;if(c||v){for(T=4;T>=-4;T-=2)b(Math.PI*T,"tan");for(T=4;T>=-4;T-=2)b(Math.PI*(T+1),"tan")}if(c||d){for(T=4;T>=-4;T-=2)b(Math.PI*(T+1.5),"rad");for(T=4;T>=-4;T-=2)b(Math.PI*(T+.5),"rad")}}if(l||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/w,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;m.push(y)}(p||d)&&(y=jse(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||v)&&(y=Wse(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y));for(var x=0,_=0,k=0;k<m.length;k++){var M=m[k].scale;if(_<M&&(_=M,x=k),!p&&_>=1)break}return m[x]}function CVe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t<r&&r<a}function jse(e,r,t,a,n){r=Math.max(0,r-2*Jse);var i=e.width/e.height,o=nue(i,a,r,t);return{scale:o*2/e.height,rCenter:tue(i,o/r),rotate:aue(n)}}function Wse(e,r,t,a,n){r=Math.max(0,r-2*Jse);var i=e.height/e.width,o=nue(i,a,r,t);return{scale:o*2/e.width,rCenter:tue(i,o/r),rotate:aue(n+Math.PI/2)}}function tue(e,r){return Math.cos(r)-e*r}function aue(e){return(180/Math.PI*e+720)%180-90}function nue(e,r,t,a){var n=e+1/(2*Math.tan(r));return t*Math.min(1/(Math.sqrt(n*n+.5)+n),a/(Math.sqrt(e*e+a/2)+e))}function DVe(e,r){return e.v===r.vTotal&&!r.trace.hole?1:Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2)}function Xse(e,r){var t=r.pxmid[0],a=r.pxmid[1],n=e.width/2,i=e.height/2;return t<0&&(n*=-1),a<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:n+Math.abs(i)*(n>0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function EVe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function iue(e,r){var t=1,a=1,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=oue(i),i.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var s=PVe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,o.x-=(1+n)*s,l.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,o.x+=(1+n)*s,l.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=nk(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function PVe(e,r){return e/(r===void 0?1:r)}function nk(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function oue(e){var r=e.pull;if(!r)return 0;var t;if(pn.isArrayOrTypedArray(r))for(r=0,t=0;t<e.pull.length;t++)e.pull[t]>r&&(r=e.pull[t]);return r}function RVe(e,r){var t,a,n,i,o,l,s,u,f,c,v,d,p;function m(w,x){return w.pxmid[1]-x.pxmid[1]}function y(w,x){return x.pxmid[1]-w.pxmid[1]}function b(w,x){x||(x={});var _=x.labelExtraY+(a?x.yLabelMax:x.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,M=a?w.yLabelMax:w.yLabelMin,q=w.cyFinal+o(w.px0[1],w.px1[1]),C=_-k,E,P,R,B,I,N;if(C*s>0&&(w.labelExtraY=C),!!pn.isArrayOrTypedArray(r.pull))for(P=0;P<c.length;P++)R=c[P],!(R===w||(Dr.castOption(r.pull,w.pts)||0)>=(Dr.castOption(r.pull,R.pts)||0))&&((w.pxmid[1]-R.pxmid[1])*s>0?(B=R.cyFinal+o(R.px0[1],R.px1[1]),C=B-k-w.labelExtraY,C*s>0&&(w.labelExtraY+=C)):(M+w.labelExtraY-q)*s>0&&(E=3*l*Math.abs(P-c.indexOf(w)),I=R.cxFinal+i(R.px0[0],R.px1[0]),N=I+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,N*l>0&&(w.labelExtraX+=N)))}for(a=0;a<2;a++)for(n=a?m:y,o=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,l=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],v=0;v<u.length;v++)u[v].yLabelMid!==void 0&&d.push(u[v]);for(p=!1,v=0;a&&v<f.length;v++)if(f[v].yLabelMid!==void 0){p=f[v];break}for(v=0;v<d.length;v++){var T=v&&d[v-1];p&&!v&&(T=p),b(d[v],T)}}}function lue(e,r){for(var t=[],a=0;a<e.length;a++){var n=e[a][0],i=n.trace,o=i.domain,l=r.w*(o.x[1]-o.x[0]),s=r.h*(o.y[1]-o.y[0]);i.title.text&&i.title.position!=="middle center"&&(s-=nk(n,r));var u=l/2,f=s/2;i.type==="funnelarea"&&!i.scalegroup&&(f/=i.aspectratio),n.r=Math.min(u,f)/(1+oue(i)),n.cx=r.l+r.w*(i.domain.x[1]+i.domain.x[0])/2,n.cy=r.t+r.h*(1-i.domain.y[0])-s/2,i.title.text&&i.title.position.indexOf("bottom")!==-1&&(n.cy-=nk(n,r)),i.scalegroup&&t.indexOf(i.scalegroup)===-1&&t.push(i.scalegroup)}FVe(e,t)}function FVe(e,r){for(var t,a,n,i=0;i<r.length;i++){var o=1/0,l=r[i];for(a=0;a<e.length;a++)if(t=e[a][0],n=t.trace,n.scalegroup===l){var s;if(n.type==="pie")s=t.r*t.r;else if(n.type==="funnelarea"){var u,f;n.aspectratio>1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}o=Math.min(o,s/t.vTotal)}for(a=0;a<e.length;a++)if(t=e[a][0],n=t.trace,n.scalegroup===l){var c=o*t.vTotal;n.type==="funnelarea"&&(c/=(1+n.baseratio)/2,c/=n.aspectratio),t.r=Math.sqrt(c)}}}function zVe(e){var r=e[0],t=r.r,a=r.trace,n=Dr.getRotationAngle(a.rotation),i=2*Math.PI/r.vTotal,o="px0",l="px1",s,u,f;if(a.direction==="counterclockwise"){for(s=0;s<e.length&&e[s].hidden;s++);if(s===e.length)return;n+=i*e[s].v,i*=-1,o="px1",l="px0"}for(f=Lx(t,n),s=0;s<e.length;s++)u=e[s],!u.hidden&&(u[o]=f,u.startangle=n,n+=i*u.v/2,u.pxmid=Lx(t,n),u.midangle=n,n+=i*u.v/2,f=Lx(t,n),u.stopangle=n,u[l]=f,u.largeArc=u.v>r.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=DVe(u,r))}function Lx(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function sue(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,o=n.textinfo;if(!i&&o&&o!=="none"){var l=o.split("+"),s=function(x){return l.indexOf(x)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var m=Dr.getFirstFilled(n.text,r.pts);Vse(m)&&p.push(m)}c&&p.push(Dr.formatPieValue(r.v,d)),v&&p.push(Dr.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("<br>")}function y(x){return{label:x.label,value:x.v,valueLabel:Dr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:Dr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:pn.castOption(n,x.i,"customdata")}}if(i){var b=pn.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var T=y(r),w=Dr.getFirstFilled(n.text,r.pts);(Vse(w)||w==="")&&(T.text=w),r.text=pn.texttemplateString({data:[T,n._meta],fallback:n.texttemplatefallback,labels:T,locale:e._fullLayout._d3locale,template:b})}}}function uue(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}fue.exports={plot:SVe,formatSliceLabel:sue,transformInsideText:rue,determineInsideTextFont:Qse,positionTitleOutside:iue,prerenderTitles:eue,layoutAreas:lue,attachFxHandlers:Kse,computeTransform:uue}});var due=z((Far,hue)=>{"use strict";var vue=Pr(),NVe=Ym(),IVe=a2().resizeText;hue.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");IVe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=vue.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){vue.select(this).call(NVe,l,i,r)})})}});var mue=z(zv=>{"use strict";var pue=_a();zv.name="pie";zv.plot=function(e,r,t,a){pue.plotBasePlot(zv.name,e,r,t,a)};zv.clean=function(e,r,t,a){pue.cleanBasePlot(zv.name,e,r,t,a)}});var gue=z((Nar,yue)=>{"use strict";yue.exports={attributes:ek(),supplyDefaults:Fse().supplyDefaults,supplyLayoutDefaults:Ise(),layoutAttributes:rk(),calc:tk().calc,crossTraceCalc:tk().crossTraceCalc,plot:cue().plot,style:due(),styleOne:Ym(),moduleType:"trace",name:"pie",basePlotModule:mue(),categories:["pie-like","pie","showLegend"],meta:{}}});var xue=z((Iar,bue)=>{"use strict";bue.exports=gue()});var wn=z((Bar,wue)=>{"use strict";var _ue=Object.getOwnPropertySymbols,BVe=Object.prototype.hasOwnProperty,OVe=Object.prototype.propertyIsEnumerable;function HVe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function UVe(){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 a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}wue.exports=UVe()?Object.assign:function(e,r){for(var t,a=HVe(e),n,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var o in t)BVe.call(t,o)&&(a[o]=t[o]);if(_ue){n=_ue(t);for(var l=0;l<n.length;l++)OVe.call(t,n[l])&&(a[n[l]]=t[n[l]])}}return a}});var Tn=z((Oar,Aue)=>{var Dx=wn();function Tue(){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={}}Dx(Tue.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,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.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 a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function ik(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Cx(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Dx(ik.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(Vr.local.invalidDate||Vr.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(Vr.local.differentCalendars||Vr.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?"-":"")+Cx(Math.abs(this.year()),4)+"-"+Cx(this.month(),2)+"-"+Cx(this.day(),2)}});function ok(){this.shortYearCutoff="+10"}Dx(ok.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new ik(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Vr.local.invalidYear||Vr.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,Vr.local.invalidYear||Vr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Cx(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Vr.local.invalidYear||Vr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Vr.local.invalidMonth||Vr.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,Vr.local.invalidMonth||Vr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Vr.local.invalidYear||Vr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Vr.local.invalidDate||Vr.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 a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;o<f.minMonth;)i--,o+=f.monthsInYear(i);for(var c=f.monthsInYear(i);o>c-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth<this.monthsInYear(n)&&t>=this.minDay&&t-this.minDay<this.daysInMonth(n)}return this._validateLevel--,a},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate);return Vr.instance().fromJD(this.toJD(a)).toJSDate()},fromJSDate:function(e){return this.fromJD(Vr.instance().fromJSDate(e).toJD())},_validate:function(e,r,t,a){if(e.year){if(this._validateLevel===0&&this.name!==e.calendar().name)throw(Vr.local.differentCalendars||Vr.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 a.replace(/\{0\}/,this.local.name);var n=this.newDate(e,r,t);return this._validateLevel--,n}catch(i){throw this._validateLevel--,i}}});function lk(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}lk.prototype=new ok;Dx(lk.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,Vr.local.invalidYear||Vr.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 a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Vr.local.invalidMonth||Vr.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 a=this._validate(e,r,t,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate);e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<3&&(r+=12,e--);var n=Math.floor(e/100),i=2-n+Math.floor(n/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t+i-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 a=t+1524,n=Math.floor((a-122.1)/365.25),i=Math.floor(365.25*n),o=Math.floor((a-i)/30.6001),l=a-i-Math.floor(o*30.6001),s=o-(o>13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Vr=Aue.exports=new Tue;Vr.cdate=ik;Vr.baseCalendar=ok;Vr.calendars.gregorian=lk});var Mue=z(()=>{var sk=wn(),rn=Tn();sk(rn.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"});rn.local=rn.regionalOptions[""];sk(rn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});sk(rn.baseCalendar.prototype,{UNIX_EPOCH:rn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:rn.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 rn.local.invalidFormat||rn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,_){for(var k=1;w+k<e.length&&e.charAt(w+k)===x;)k++;return w+=k-1,Math.floor(k/(_||1))>1},f=function(x,_,k,M){var q=""+_;if(u(x,M))for(;q.length<k;)q="0"+q;return q},c=function(x,_,k,M){return u(x)?M[_]:k[_]},v=this,d=function(x){return typeof i=="function"?i.call(v,x,u("m")):y(f("m",x.month(),2))},p=function(x,_){return _?typeof l=="function"?l.call(v,x):l[x.month()-v.minMonth]:typeof o=="function"?o.call(v,x):o[x.month()-v.minMonth]},m=this.local.digits,y=function(x){return t.localNumbers&&m?m(x):x},b="",T=!1,w=0;w<e.length;w++)if(T)e.charAt(w)==="'"&&!u("'")?T=!1:b+=e.charAt(w);else switch(e.charAt(w)){case"d":b+=y(f("d",r.day(),2));break;case"D":b+=c("D",r.dayOfWeek(),a,n);break;case"o":b+=f("o",r.dayOfYear(),3);break;case"w":b+=f("w",r.weekOfYear(),2);break;case"m":b+=d(r);break;case"M":b+=p(r,u("M"));break;case"y":b+=u("y",2)?r.year():(r.year()%100<10?"0":"")+r.year()%100;break;case"Y":u("Y",2),b+=r.formatYear();break;case"J":b+=r.toJD();break;case"@":b+=(r.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":b+=(r.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":u("'")?b+="'":T=!0;break;default:b+=e.charAt(w)}return b},parseDate:function(e,r,t){if(r==null)throw rn.local.invalidArguments||rn.regionalOptions[""].invalidArguments;if(r=typeof r=="object"?r.toString():r+"",r==="")return null;e=e||this.local.dateFormat,t=t||{};var a=t.shortYearCutoff||this.shortYearCutoff;a=typeof a!="string"?a:this.today().year()%100+parseInt(a,10);for(var n=t.dayNamesShort||this.local.dayNamesShort,i=t.dayNames||this.local.dayNames,o=t.parseMonth||this.local.parseMonth,l=t.monthNumbers||this.local.monthNumbers,s=t.monthNamesShort||this.local.monthNamesShort,u=t.monthNames||this.local.monthNames,f=-1,c=-1,v=-1,d=-1,p=-1,m=!1,y=!1,b=function(R,B){for(var I=1;C+I<e.length&&e.charAt(C+I)===R;)I++;return C+=I-1,Math.floor(I/(B||1))>1},T=function(R,B){var I=b(R,B),N=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],H=new RegExp("^-?\\d{1,"+N+"}"),G=r.substring(q).match(H);if(!G)throw(rn.local.missingNumberAt||rn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=G[0].length,parseInt(G[0],10)},w=this,x=function(){if(typeof l=="function"){b("m");var R=l.call(w,r.substring(q));return q+=R.length,R}return T("m")},_=function(R,B,I,N){for(var H=b(R,N)?I:B,G=0;G<H.length;G++)if(r.substr(q,H[G].length).toLowerCase()===H[G].toLowerCase())return q+=H[G].length,G+w.minMonth;throw(rn.local.unknownNameAt||rn.regionalOptions[""].unknownNameAt).replace(/\{0\}/,q)},k=function(){if(typeof u=="function"){var R=b("M")?u.call(w,r.substring(q)):s.call(w,r.substring(q));return q+=R.length,R}return _("M",s,u)},M=function(){if(r.charAt(q)!==e.charAt(C))throw(rn.local.unexpectedLiteralAt||rn.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,q);q++},q=0,C=0;C<e.length;C++)if(y)e.charAt(C)==="'"&&!b("'")?y=!1:M();else switch(e.charAt(C)){case"d":d=T("d");break;case"D":_("D",n,i);break;case"o":p=T("o");break;case"w":T("w");break;case"m":v=x();break;case"M":v=k();break;case"y":var E=C;m=!b("y",2),C=E,c=T("y",2);break;case"Y":c=T("Y",2);break;case"J":f=T("J")+.5,r.charAt(q)==="."&&(q++,T("J"));break;case"@":f=T("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=T("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":q=r.length;break;case"'":b("'")?M():y=!0;break;default:M()}if(q<r.length)throw rn.local.unexpectedText||rn.regionalOptions[""].unexpectedText;if(c===-1?c=this.today().year():c<100&&m&&(c+=a===-1?1900:this.today().year()-this.today().year()%100-(c<=a?0:100)),typeof v=="string"&&(v=o.call(this,c,v)),p>-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var kue=z(()=>{var Tu=Tn(),GVe=wn(),uk=Tu.instance();function Ex(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ex.prototype=new Tu.baseCalendar;GVe(Ex.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(VVe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(jVe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\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"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(WVe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!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 n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},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 a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Tu.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Tu.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r<t?n=r+1:n=r:n=r+1,n},intercalaryMonth:function(e){e=this._validateYear(e);var r=Au[e-Au[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 a=this._validateYear(e,Tu.local.invalidyear),n=Mu[a-Mu[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=uk.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/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=Au[e-Au[0]],a=t>>13,n=a?12:11;if(r>n)throw Tu.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Tu.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=ZVe(e,i,t,n);return uk.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=uk.fromJD(e),t=XVe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(YVe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(Ex.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var YVe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,VVe=/^\d?\d[iI]?/m,jVe=/^闰?十?[一二三四五六七八九]?月/m,WVe=/^闰?十?[一二三四五六七八九]?/m;Tu.calendars.chinese=Ex;var Au=[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],Mu=[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 XVe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)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 s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Mu[n.year-Mu[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Mu[i.year-Mu[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,m=new Date(c,v-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var b=Au[i.year-Au[0]],T;for(T=0;T<13;T++){var w=b&1<<12-T?30:29;if(p<w)break;p-=w}var x=b>>13;return!x||T<x?(i.isIntercalary=!1,i.month=1+T):T===x?(i.isIntercalary=!0,i.month=T):(i.isIntercalary=!1,i.month=T),i.day=1+p,i}function ZVe(e,r,t,a,n){var i,o;if(typeof e=="object")o=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var v=Au[o.year-Au[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m<p;m++){var y=v&1<<12-m?30:29;c+=y}var b=Mu[o.year-Mu[0]],T=b>>9&4095,w=b>>5&15,x=b&31,_=new Date(T,w-1,x+c);return i.year=_.getFullYear(),i.month=1+_.getMonth(),i.day=_.getDate(),i}});var Sue=z(()=>{var lc=Tn(),$Ve=wn();function fk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fk.prototype=new lc.baseCalendar;$Ve(fk.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,lc.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,lc.local.invalidYear||lc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,lc.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 a=this._validate(e,r,t,lc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.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 a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});lc.calendars.coptic=fk});var que=z(()=>{var ys=Tn(),JVe=wn();function ck(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ck.prototype=new ys.baseCalendar;JVe(ck.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,ys.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ys.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ys.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ys.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ys.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ys.local.invalidDate);return{century:KVe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,ys.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.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,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var KVe={20:"Fruitbat",21:"Anchovy"};ys.calendars.discworld=ck});var Lue=z(()=>{var sc=Tn(),QVe=wn();function vk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vk.prototype=new sc.baseCalendar;QVe(vk.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,sc.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,sc.local.invalidYear||sc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,sc.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 a=this._validate(e,r,t,sc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.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 a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});sc.calendars.ethiopian=vk});var Cue=z(()=>{var ku=Tn(),eje=wn();function hk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hk.prototype=new ku.baseCalendar;eje(hk.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,ku.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Px(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ku.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ku.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,ku.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Px(this.daysInYear(e),10)===5?30:r===9&&Px(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 a=this._validate(e,r,t,ku.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,ku.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o<r;o++)i+=this.daysInMonth(e,o)}else for(var o=7;o<r;o++)i+=this.daysInMonth(e,o);return i},_delay1:function(e){var r=Math.floor((235*e-234)/19),t=12084+13753*r,a=r*29+Math.floor(t/25920);return Px(3*(a+1),7)<3&&a++,a},_delay2:function(e){var r=this._delay1(e-1),t=this._delay1(e),a=this._delay1(e+1);return a-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 a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function Px(e,r){return e-r*Math.floor(e/r)}ku.calendars.hebrew=hk});var Due=z(()=>{var f1=Tn(),rje=wn();function dk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dk.prototype=new f1.baseCalendar;rje(dk.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,f1.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.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,f1.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 a=this._validate(e,r,t,f1.local.invalidDate);return e=a.year(),r=a.month(),t=a.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),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});f1.calendars.islamic=dk});var Eue=z(()=>{var c1=Tn(),tje=wn();function pk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pk.prototype=new c1.baseCalendar;tje(pk.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,c1.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,c1.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 a=this._validate(e,r,t,c1.local.invalidDate);return e=a.year(),r=a.month(),t=a.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,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});c1.calendars.julian=pk});var Rue=z(()=>{var Mo=Tn(),aje=wn();function yk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yk.prototype=new Mo.baseCalendar;aje(yk.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,Mo.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Mo.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+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 a=parseInt(e[t],10);if(Math.abs(a)>19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Mo.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Mo.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Mo.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Mo.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Mo.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Mo.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Mo.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=mk(e+8+340,365);return[Math.floor(r/20)+1,mk(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Pue(e+20,20),Pue(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Mo.local.invalidDate);return a.day()+a.month()*20+a.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),a=e%20;return this.newDate(r,t,a)}});function mk(e,r){return e-r*Math.floor(e/r)}function Pue(e,r){return mk(e-1,r)+1}Mo.calendars.mayan=yk});var zue=z(()=>{var uc=Tn(),nje=wn();function gk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gk.prototype=new uc.baseCalendar;var Fue=uc.instance("gregorian");nje(gk.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,uc.local.invalidYear||uc.regionalOptions[""].invalidYear);return Fue.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,uc.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(n,r,t){var a=this._validate(n,r,t,uc.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o<a.month();o++)i+=this.daysPerMonth[o-1];return i+Fue.toJD(n+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,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});uc.calendars.nanakshahi=gk});var Nue=z(()=>{var fc=Tn(),ije=wn();function bk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bk.prototype=new fc.baseCalendar;ije(bk.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 a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,fc.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,fc.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 a=this._validate(e,r,t,fc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=fc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=fc.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_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]}});fc.calendars.nepali=bk});var Iue=z(()=>{var Nv=Tn(),oje=wn();function Fx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Rx(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}Fx.prototype=new Nv.baseCalendar;oje(Fx.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,Nv.local.invalidYear);return Rx(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Nv.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 a=this._validate(e,r,t,Nv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i<e;i++)Rx(i)&&n++;else if(e<0)for(var i=e;i<0;i++)Rx(i)&&n--;return t+(r<=7?(r-1)*31:(r-1)*30+6)+(e>0?e-1:e)*365+n+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,Rx(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Nv.calendars.persian=Fx;Nv.calendars.jalali=Fx});var Bue=z(()=>{var cc=Tn(),lje=wn(),zx=cc.instance();function xk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xk.prototype=new cc.baseCalendar;lje(xk.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,cc.local.invalidYear),t=this._t2gYear(r.year());return zx.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,cc.local.invalidYear),n=this._t2gYear(a.year());return zx.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cc.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(n,r,t){var a=this._validate(n,r,t,cc.local.invalidDate),n=this._t2gYear(a.year());return zx.toJD(n,a.month(),a.day())},fromJD:function(e){var r=zx.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)}});cc.calendars.taiwan=xk});var Oue=z(()=>{var vc=Tn(),sje=wn(),Nx=vc.instance();function _k(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_k.prototype=new vc.baseCalendar;sje(_k.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,vc.local.invalidYear),t=this._t2gYear(r.year());return Nx.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,vc.local.invalidYear),n=this._t2gYear(a.year());return Nx.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,vc.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(n,r,t){var a=this._validate(n,r,t,vc.local.invalidDate),n=this._t2gYear(a.year());return Nx.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Nx.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)}});vc.calendars.thai=_k});var Hue=z(()=>{var hc=Tn(),uje=wn();function wk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wk.prototype=new hc.baseCalendar;uje(wk.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,hc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.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,hc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;i<Su.length;i++){if(Su[i]>a)return Su[n]-Su[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,hc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Su[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;a<Su.length&&!(Su[a]>r);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Su[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=hc.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=hc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});hc.calendars.ummalqura=wk;var Su=[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 Gue=z((ynr,Uue)=>{"use strict";Uue.exports=Tn();Mue();kue();Sue();que();Lue();Cue();Due();Eue();Rue();zue();Nue();Iue();Bue();Oue();Hue()});var $ue=z((gnr,Zue)=>{"use strict";var Vue=Gue(),v1=ke(),jue=(Kt(),Ne(aa)),fje=jue.EPOCHJD,cje=jue.ONEDAY,Mk={valType:"enumerated",values:v1.sortObjectKeys(Vue.calendars),editType:"calc",dflt:"gregorian"},Wue=function(e,r,t,a){var n={};return n[t]=Mk,v1.coerce(e,r,n,t,a)},vje=function(e,r,t,a){for(var n=0;n<t.length;n++)Wue(e,r,t[n]+"calendar",a.calendar)},hje={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"},dje={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"},pje={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"]},Ix="##",mje={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:Ix,w:Ix,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function yje(e,r,t){for(var a=Math.floor((r+.05)/cje)+fje,n=Xue(t).fromJD(a),i=0,o,l,s,u,f;(i=e.indexOf("%",i))!==-1;)o=e.charAt(i+1),o==="0"||o==="-"||o==="_"?(s=3,l=e.charAt(i+2),o==="_"&&(o="-")):(l=o,o="0",s=2),u=mje[l],u?(u===Ix?f=Ix:f=n.formatDate(u[o]),e=e.slice(0,i)+f+e.slice(i+s),i+=f.length):i+=s;return e}var Yue={};function Xue(e){var r=Yue[e];return r||(r=Yue[e]=Vue.instance(e),r)}function h1(e){return v1.extendFlat({},Mk,{description:e})}function kk(e){return"Sets the calendar system to use with `"+e+"` date data."}var Ak={xcalendar:h1(kk("x"))},zl=v1.extendFlat({},Ak,{ycalendar:h1(kk("y"))}),Tk=v1.extendFlat({},zl,{zcalendar:h1(kk("z"))}),Iv=h1(["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(" "));Zue.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:zl,bar:zl,box:zl,heatmap:zl,contour:zl,histogram:zl,histogram2d:zl,histogram2dcontour:zl,scatter3d:Tk,surface:Tk,mesh3d:Tk,scattergl:zl,ohlc:Ak,candlestick:Ak},layout:{calendar:h1(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:Iv},yaxis:{calendar:Iv},scene:{xaxis:{calendar:Iv},yaxis:{calendar:Iv},zaxis:{calendar:Iv}},polar:{radialaxis:{calendar:Iv}}}},layoutAttributes:Mk,handleDefaults:Wue,handleTraceDefaults:vje,CANONICAL_SUNDAY:dje,CANONICAL_TICK:hje,DFLTRANGE:pje,getCal:Xue,worldCalFmt:yje}});var Kue=z((bnr,Jue)=>{"use strict";Jue.exports=$ue()});var gje=z((xnr,efe)=>{var Que=PX();Que.register([FZ(),w$(),GJ(),fK(),AK(),AQ(),IQ(),qee(),are(),Lse(),xue(),Kue()]);efe.exports=Que});return gje();})();
/*! Bundled license information:

native-promise-only/lib/npo.src.js:
  (*! Native Promise Only
      v0.8.1 (c) Kyle Simpson
      MIT License: http://getify.mit-license.org
  *)

polybooljs/index.js:
  (*
   * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
   * @license MIT
   * @preserve Project Home: https://github.com/voidqk/polybooljs
   *)

ieee754/index.js:
  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)

buffer/index.js:
  (*!
   * The buffer module from node.js, for the browser.
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   *)

safe-buffer/index.js:
  (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)

assert/build/internal/util/comparisons.js:
  (*!
   * The buffer module from node.js, for the browser.
   *
   * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
   * @license  MIT
   *)

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

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